PageSourceSearch

https://clarifycapital.com/assets/application-c585d43f4a892ef58aaa…01d7cc9b6501543633ad29a53dce2cebd1059a5c.js

js clarifycapital.com collected 2026-09-24 17:19:37 UTC 309,656 bytes, 10 lines download raw bytes

1function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function plotChart(e){var t=document.getElementById(e);if(t){var n=JSON.parse(t.getAttribute("data-total-leads")),i=JSON.parse(t.getAttribute("data-emprivo")),s=JSON.parse(t.getAttribute("data-facebook")),r=JSON.parse(t.getAttribute("data-emprivo-with-banks")),o=JSON.parse(t.getAttribute("data-facebook-with-banks")),a=Object.keys(n).sort(),l={name:"Total Leads",type:"scatter",mode:"lines+markers",x:a,y:a.map(e=>n[e]||0)},u={name:"Total Organic",type:"scatter",mode:"lines+markers",x:a,y:a.map(e=>i[e]||0)},c={name:"Total Paid Social",type:"scatter",mode:"lines+markers",x:a,y:a.map(e=>s[e]||0)},d={name:"Organic Banks",type:"scatter",mode:"lines+markers",x:a,y:a.map(e=>r[e]||0)},h={name:"Paid Social Banks",type:"scatter",mode:"lines+markers",x:a,y:a.map(e=>o[e]||0)},p={plot_bgcolor:"transparent",paper_bgcolor:"transparent",margin:{t:20,l:40,r:40,b:40}};Plotly.newPlot(e,[l,u,c,d,h],p,{displayModeBar:!1,displaylogo:!1,responsive:!0})}}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";function e(e,t){return t&&`${t}::${we++}`||e.uidEvent||we++}function t(t){const n=e(t);return t.uidEvent=n,be[n]=be[n]||{},be[n]}function n(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function i(e,t,n){const i="string"==typeof t,s=i?n:t||n;let r=a(e);return ke.has(r)||(r=e),[i,s,r]}function s(s,r,o,a,u){if("string"!=typeof r||!s)return;let[c,d,h]=i(r,o,a);if(r in xe){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};d=e(d)}const p=t(s),f=p[h]||(p[h]={}),g=n(f,d,c?o:null);if(g)return void(g.oneOff=g.oneOff&&u);const m=e(d,r.replace(ve,"")),v=c?function(e,t,n){return function i(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return l(s,{delegateTarget:o}),i.oneOff&&Ae.off(e,s.type,t,n),n.apply(o,[s])}}(s,o,d):function(e,t){return function n(i){return l(i,{delegateTarget:e}),n.oneOff&&Ae.off(e,i.type,t),t.apply(e,[i])}}(s,d);v.delegationSelector=c?o:null,v.callable=d,v.oneOff=u,v.uidEvent=m,f[m]=v,s.addEventListener(h,v,c)}function r(e,t,i,s,r){const o=n(t[i],s,r);o&&(e.removeEventListener(i,o,Boolean(r)),delete t[i][o.uidEvent])}function o(e,t,n,i){const s=t[n]||{};for(const[o,a]of Object.entries(s))o.includes(i)&&r(e,t,n,a.callable,a.delegationSelector)}function a(e){return e=e.replace(ye,""),xe[e]||e}function l(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function u(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function c(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){return e instanceof h(e).Element||e instanceof Element}function f(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!=typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}function m(e){return e.split("-")[0]}function v(){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 y(){return!/^((?!chrome|android).)*safari/i.test(v())}function _(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&f(e)&&(s=e.offsetWidth>0&&nn(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&nn(i.height)/e.offsetHeight||1);var o=(p(e)?h(e):window).visualViewport,a=!y()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/s,u=(i.top+(a&&o?o.offsetTop:0))/r,c=i.width/s,d=i.height/r;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function b(e){var t=_(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function w(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;
vendor: 12,197 bytes, line 1
1if(n&&g(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function x(e){return h(e).getComputedStyle(e)}function k(e){return["table","td","th"].indexOf(d(e))>=0}function A(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function E(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||A(e)}function C(e){return f(e)&&"fixed"!==x(e).position?e.offsetParent:null}function T(e){for(var t=h(e),n=C(e);n&&k(n)&&"static"===x(n).position;)n=C(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(v());if(/Trident/i.test(v())&&f(e)&&"fixed"===x(e).position)return null;var n=E(e);for(g(n)&&(n=n.host);f(n)&&["html","body"].indexOf(d(n))<0;){var i=x(n);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 n;n=n.parentNode}return null}(e)||t}function S(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function D(e,t,n){return en(e,tn(t,n))}function O(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function L(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function $(e){return e.split("-")[1]}function F(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=o.x,f=void 0===p?0:p,g=o.y,m=void 0===g?0:g,v="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var y=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),b=$t,w=Dt,k=window;if(u){var E=T(n),C="clientHeight",S="clientWidth";E===h(n)&&"static"!==x(E=A(n)).position&&"absolute"===a&&(C="scrollHeight",S="scrollWidth"),(s===Dt||(s===$t||s===Lt)&&r===Pt)&&(w=Ot,m-=(d&&E===k&&k.visualViewport?k.visualViewport.height:E[C])-i.height,m*=l?1:-1),s!==$t&&(s!==Dt&&s!==Ot||r!==Pt)||(b=Lt,f-=(d&&E===k&&k.visualViewport?k.visualViewport.width:E[S])-i.width,f*=l?1:-1)}var D,O=Object.assign({position:a},u&&rn),L=!0===c?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:nn(n*s)/s||0,y:nn(i*s)/s||0}}({x:f,y:m},h(n)):{x:f,y:m};return f=L.x,m=L.y,l?Object.assign({},O,((D={})[w]=_?"0":"",D[b]=y?"0":"",D.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",D)):Object.assign({},O,((t={})[w]=_?m+"px":"",t[b]=y?f+"px":"",t.transform="",t))}function M(e){return e.replace(/left|right|bottom|top/g,function(e){return un[e]})}function I(e){return e.replace(/start|end/g,function(e){return cn[e]})}function P(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(e){return _(A(e)).left+P(e).scrollLeft}function j(e){var t=x(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function B(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:f(e)&&j(e)?e:B(E(e))}function R(e,t){var n;void 0===t&&(t=[]);var i=B(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=h(i),o=s?[r].concat(r.visualViewport||[],j(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(R(E(o)))}function q(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function H(e,t,n){return t===jt?q(function(e,t){var n=h(e),i=A(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var u=y();(u||!u&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+N(e),y:l}}(e,n)):p(t)?function(e,t){var n=_(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):q(function(e){var t,n=A(e),i=P(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=en(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=en(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+N(e),l=-i.scrollTop;return"rtl"===x(s||n).direction&&(a+=en(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(A(e)))}function V(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?m(s):null,o=s?$(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Dt:t={x:a,y:n.y-i.height};break;case Ot:t={x:a,y:n.y+n.height};break;case Lt:t={x:n.x+n.width,y:l};break;case $t:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var u=r?S(r):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case It:t[u]=t[u]-(n[c]/2-i[c]/2);break;case Pt:t[u]=t[u]+(n[c]/2-i[c]/2)}}return t}function z(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,o=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?Nt:a,u=n.rootBoundary,c=void 0===u?jt:u,h=n.elementContext,g=void 0===h?Bt:h,m=n.altBoundary,v=void 0!==m&&m,y=n.padding,b=void 0===y?0:y,k=O("number"!=typeof b?b:L(b,Mt)),C=g===Bt?Rt:Bt,S=e.rects.popper,D=e.elements[v?C:g],$=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=R(E(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&f(e)?T(e):e;return p(n)?t.filter(function(e){return p(e)&&w(e,n)&&"body"!==d(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=H(e,n,i);return t.top=en(s.top,t.top),t.right=tn(s.right,t.right),t.bottom=tn(s.bottom,t.bottom),t.left=en(s.left,t.left),t},H(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(p(D)?D:D.contextElement||A(e.elements.popper),l,c,o),F=_(e.elements.reference),M=V({reference:F,element:S,strategy:"absolute",placement:s}),I=q(Object.assign({},S,M)),P=g===Bt?I:F,N={top:$.top-P.top+k.top,bottom:P.bottom-$.bottom+k.bottom,left:$.left-P.left+k.left,right:P.right-$.right+k.right},j=e.modifiersData.offset;if(g===Bt&&j){var B=j[s];Object.keys(N).forEach(function(e){var t=[Lt,Ot].indexOf(e)>=0?1:-1,n=[Dt,Ot].indexOf(e)>=0?"y":"x";N[e]+=B[n]*t})}return N}function W(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Ht:l,c=$(i),d=c?a?qt:qt.filter(function(e){return $(e)===c}):Mt,h=d.filter(function(e){return u.indexOf(e)>=0});0===h.length&&(h=d);var p=h.reduce(function(t,n){return t[n]=z(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[m(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function U(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function G(e){return[Dt,Lt,Ot,$t].some(function(t){return e[t]>=0})}function Y(e,t,n){void 0===n&&(n=!1);var i,s,r=f(t),o=f(t)&&function(e){var t=e.getBoundingClientRect(),n=nn(t.width)/e.offsetWidth||1,i=nn(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=A(t),l=_(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==d(t)||j(a))&&(u=(i=t)!==h(i)&&f(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:P(i)),f(t)?((c=_(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=N(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function K(e){function t(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var s=n.get(e);s&&t(s)}}),s.push(e)}var n=new Map,i=new Set,s=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||t(e)}),s}function X(){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 Q(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?mn:s;return function(e,t,n){function s(){u.forEach(function(e){return e()}),u=[]}void 0===n&&(n=r);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},mn,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;s(),l.options=Object.assign({},r,l.options,o),l.scrollParents={reference:p(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var a,c,h=function(e){var t=K(e);return Jt.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,l.options.modifiers),c=a.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},{}),Object.keys(c).map(function(e){return c[e]})));return l.orderedModifiers=h.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:l,name:t,instance:d,options:i});u.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(X(t,n)){l.rects={reference:Y(t,T(n),"fixed"===l.options.strategy),popper:b(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var s=l.orderedModifiers[i],r=s.fn,o=s.options,a=void 0===o?{}:o,u=s.name;"function"==typeof r&&(l=r({state:l,options:a,name:u,instance:d})||l)}else l.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(e){d.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){s(),c=!0}};return X(e,t)?(d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d):d}}const J=new Map,Z={set(e,t,n){J.has(e)||J.set(e,new Map);const i=J.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>J.has(e)&&J.get(e).get(t)||null,remove(e,t){if(!J.has(e))return;const n=J.get(e);n.delete(t),0===n.size&&J.delete(e)}},ee="transitionend",te=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),ne=e=>{e.dispatchEvent(new Event(ee))},ie=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),se=e=>ie(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(te(e)):null,re=e=>{if(!ie(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},oe=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),ae=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?ae(e.parentNode):null},le=()=>{},ue=e=>{e.offsetHeight},ce=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,de=[],he=()=>"rtl"===document.documentElement.dir,pe=e=>{var t;t=()=>{const t=ce();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(de.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of de)e()}),de.push(t)):t()},fe=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,ge=(e,t,n=!0)=>{if(!n)return void fe(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let s=!1;const r=({target:n})=>{n===t&&(s=!0,t.removeEventListener(ee,r),fe(e))};t.addEventListener(ee,r),setTimeout(()=>{s||ne(t)},i)},me=(e,t,n,i)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!n&&i?e[s-1]:e[0]:(r+=n?1:-1,i&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},ve=/[^.]*(?=\..*)\.|.*/,ye=/\..*/,_e=/::\d+$/,be={};let we=1;
vendor: 4,630 bytes, line 1
1const xe={mouseenter:"mouseover",mouseleave:"mouseout"},ke=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]),Ae={on(e,t,n,i){s(e,t,n,i,!1)},one(e,t,n,i){s(e,t,n,i,!0)},off(e,n,s,a){if("string"!=typeof n||!e)return;const[l,u,c]=i(n,s,a),d=c!==n,h=t(e),p=h[c]||{},f=n.startsWith(".");if(void 0===u){if(f)for(const t of Object.keys(h))o(e,h,t,n.slice(1));for(const[t,i]of Object.entries(p)){const s=t.replace(_e,"");d&&!n.includes(s)||r(e,h,c,i.callable,i.delegationSelector)}}else{if(!Object.keys(p).length)return;r(e,h,c,u,l?s:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=ce();let s=null,r=!0,o=!0,u=!1;t!==a(t)&&i&&(s=i.Event(t,n),i(e).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=l(new Event(t,{bubbles:r,cancelable:!0}),n);return u&&c.preventDefault(),o&&e.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}},Ee={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${c(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${c(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=u(e.dataset[i])}return t},getDataAttribute:(e,t)=>u(e.getAttribute(`data-bs-${c(t)}`))};class Ce{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=ie(t)?Ee.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...ie(t)?Ee.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,s]of Object.entries(t)){const t=e[i],r=ie(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)}var n}}class Te extends Ce{constructor(e,t){super(),(e=se(e))&&(this._element=e,this._config=this._getConfig(t),Z.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Z.remove(this._element,this.constructor.DATA_KEY),Ae.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){ge(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Z.get(se(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.1"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Se=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return te(t)},De={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!oe(e)&&re(e))},getSelectorFromElement(e){const t=Se(e);
vendor: 21,007 bytes, lines 1-2
1return t&&De.findOne(t)?t:null},getElementFromSelector(e){const t=Se(e);return t?De.findOne(t):null},getMultipleElementsFromSelector(e){const t=Se(e);return t?De.find(t):[]}},Oe=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;Ae.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),oe(this))return;const s=De.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(s)[t]()})},Le=".bs.alert",$e=`close${Le}`,Fe=`closed${Le}`;class Me extends Te{static get NAME(){return"alert"}close(){if(Ae.trigger(this._element,$e).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ae.trigger(this._element,Fe),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Me.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Oe(Me,"close"),pe(Me);const Ie='[data-bs-toggle="button"]';class Pe extends Te{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Pe.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}Ae.on(document,"click.bs.button.data-api",Ie,e=>{e.preventDefault();const t=e.target.closest(Ie);Pe.getOrCreateInstance(t).toggle()}),pe(Pe);const Ne=".bs.swipe",je=`touchstart${Ne}`,Be=`touchmove${Ne}`,Re=`touchend${Ne}`,qe=`pointerdown${Ne}`,He=`pointerup${Ne}`,Ve={endCallback:null,leftCallback:null,rightCallback:null},ze={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class We extends Ce{constructor(e,t){super(),this._element=e,e&&We.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ve}static get DefaultType(){return ze}static get NAME(){return"swipe"}dispose(){Ae.off(this._element,Ne)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&fe(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ae.on(this._element,qe,e=>this._start(e)),Ae.on(this._element,He,e=>this._end(e)),this._element.classList.add("pointer-event")):(Ae.on(this._element,je,e=>this._start(e)),Ae.on(this._element,Be,e=>this._move(e)),Ae.on(this._element,Re,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ue=".bs.carousel",Ge=".data-api",Ye="next",Ke="prev",Xe="left",Qe="right",Je=`slide${Ue}`,Ze=`slid${Ue}`,et=`keydown${Ue}`,tt=`mouseenter${Ue}`,nt=`mouseleave${Ue}`,it=`dragstart${Ue}`,st=`load${Ue}${Ge}`,rt=`click${Ue}${Ge}`,ot="carousel",at="active",lt=".active",ut=".carousel-item",ct=lt+ut,dt={ArrowLeft:Qe,ArrowRight:Xe},ht={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ft extends Te{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=De.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ot&&this.cycle()}static get Default(){return ht}static get DefaultType(){return pt}static get NAME(){return"carousel"}next(){this._slide(Ye)}nextWhenVisible(){!document.hidden&&re(this._element)&&this.next()}prev(){this._slide(Ke)}pause(){this._isSliding&&ne(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Ae.one(this._element,Ze,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void Ae.one(this._element,Ze,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?Ye:Ke;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ae.on(this._element,et,e=>this._keydown(e)),"hover"===this._config.pause&&(Ae.on(this._element,tt,()=>this.pause()),Ae.on(this._element,nt,()=>this._maybeEnableCycle())),this._config.touch&&We.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of De.find(".carousel-item img",this._element))Ae.on(e,it,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Xe)),rightCallback:()=>this._slide(this._directionToOrder(Qe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new We(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=dt[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=De.findOne(lt,this._indicatorsElement);t.classList.remove(at),t.removeAttribute("aria-current");const n=De.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(at),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===Ye,s=t||me(this._getItems(),n,i,this._config.wrap);if(s===n)return;const r=this._getItemIndex(s),o=t=>Ae.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(o(Je).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const l=i?"carousel-item-start":"carousel-item-end",u=i?"carousel-item-next":"carousel-item-prev";s.classList.add(u),ue(s),n.classList.add(l),s.classList.add(l),this._queueCallback(()=>{s.classList.remove(l,u),s.classList.add(at),n.classList.remove(at,u,l),this._isSliding=!1,o(Ze)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return De.findOne(ct,this._element)}_getItems(){return De.find(ut,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return he()?e===Xe?Ke:Ye:e===Xe?Ye:Ke}_orderToDirection(e){return he()?e===Ke?Xe:Qe:e===Ke?Qe:Xe}static jQueryInterface(e){return this.each(function(){const t=ft.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}Ae.on(document,rt,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=De.getElementFromSelector(this);if(!t||!t.classList.contains(ot))return;e.preventDefault();const n=ft.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===Ee.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),Ae.on(window,st,()=>{const e=De.find('[data-bs-ride="carousel"]');for(const t of e)ft.getOrCreateInstance(t)}),pe(ft);const gt=".bs.collapse",mt=`show${gt}`,vt=`shown${gt}`,yt=`hide${gt}`,_t=`hidden${gt}`,bt=`click${gt}.data-api`,wt="show",xt="collapse",kt="collapsing",At=`:scope .${xt} .${xt}`,Et='[data-bs-toggle="collapse"]',Ct={parent:null,toggle:!0},Tt={parent:"(null|element)",toggle:"boolean"};class St extends Te{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=De.find(Et);for(const e of n){const t=De.getSelectorFromElement(e),n=De.find(t).filter(e=>e===this._element);null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ct}static get DefaultType(){return Tt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>St.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(Ae.trigger(this._element,mt).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(xt),this._element.classList.add(kt),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(kt),this._element.classList.add(xt,wt),this._element.style[t]="",Ae.trigger(this._element,vt)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Ae.trigger(this._element,yt).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,ue(this._element),this._element.classList.add(kt),this._element.classList.remove(xt,wt);for(const e of this._triggerArray){const t=De.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(kt),this._element.classList.add(xt),Ae.trigger(this._element,_t)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(wt)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=se(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Et);for(const t of e){const e=De.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=De.find(At,this._config.parent);return De.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={}
2;return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=St.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}Ae.on(document,bt,Et,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of De.getMultipleElementsFromSelector(this))St.getOrCreateInstance(e,{toggle:!1}).toggle()}),pe(St);var Dt="top",Ot="bottom",Lt="right",$t="left",Ft="auto",Mt=[Dt,Ot,Lt,$t],It="start",Pt="end",Nt="clippingParents",jt="viewport",Bt="popper",Rt="reference",qt=Mt.reduce(function(e,t){return e.concat([t+"-"+It,t+"-"+Pt])},[]),Ht=[].concat(Mt,[Ft]).reduce(function(e,t){return e.concat([t,t+"-"+It,t+"-"+Pt])},[]),Vt="beforeRead",zt="read",Wt="afterRead",Ut="beforeMain",Gt="main",Yt="afterMain",Kt="beforeWrite",Xt="write",Qt="afterWrite",Jt=[Vt,zt,Wt,Ut,Gt,Yt,Kt,Xt,Qt];const Zt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];f(s)&&d(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});f(i)&&d(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};var en=Math.max,tn=Math.min,nn=Math.round;const sn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=m(n.placement),l=S(a),u=[$t,Lt].indexOf(a)>=0?"height":"width";if(r&&o){var c=function(e,t){return O("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:L(e,Mt))}(s.padding,n),d=b(r),h="y"===l?Dt:$t,p="y"===l?Ot:Lt,f=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],v=T(r),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,_=f/2-g/2,w=c[h],x=y-d[u]-c[p],k=y/2-d[u]/2+_,A=D(w,k,x),E=l;n.modifiersData[i]=((t={})[E]=A,t.centerOffset=A-k,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&w(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var rn={top:"auto",right:"auto",bottom:"auto",left:"auto"};const on={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,u={placement:m(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,F(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,F(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var an={passive:!0};const ln={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=h(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&u.forEach(function(e){e.addEventListener("scroll",n.update,an)}),a&&l.addEventListener("resize",n.update,an),function(){r&&u.forEach(function(e){e.removeEventListener("scroll",n.update,an)}),a&&l.removeEventListener("resize",n.update,an)}},data:{}};var un={left:"right",right:"left",bottom:"top",top:"bottom"},cn={start:"end",end:"start"};const dn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,v=t.options.placement,y=m(v),_=l||(y!==v&&f?function(e){if(m(e)===Ft)return[];var t=M(e);return[I(e),t,I(t)]}(v):[M(v)]),b=[v].concat(_).reduce(function(e,n){return e.concat(m(n)===Ft?W(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:g}):n)},[]),w=t.rects.reference,x=t.rects.popper,k=new Map,A=!0,E=b[0],C=0;C<b.length;C++){var T=b[C],S=m(T),D=$(T)===It,O=[Dt,Ot].indexOf(S)>=0,L=O?"width":"height",F=z(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),P=O?D?Lt:$t:D?Ot:Dt;w[L]>x[L]&&(P=M(P));var N=M(P),j=[];if(r&&j.push(F[S]<=0),a&&j.push(F[P]<=0,F[N]<=0),j.every(function(e){return e})){E=T,A=!1;break}k.set(T,j)}if(A)for(var B=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},R=f?3:1;R>0&&"break"!==B(R);R--);t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},hn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=z(t,{elementContext:"reference"}),a=z(t,{altBoundary:!0}),l=U(o,i),u=U(a,s,r),c=G(l),d=G(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},pn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=Ht.reduce(function(e,n){return e[n]=function(e,t,n){var i=m(e),s=[$t,Dt].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[$t,Lt].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e},{}),a=o[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=o}},fn={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=V({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},gn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,g=void 0===f?0:f,v=z(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=m(t.placement),_=$(t.placement),w=!_,x=S(y),k="x"===x?"y":"x",A=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,L="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(A){if(r){var I,P="y"===x?Dt:$t,N="y"===x?Ot:Lt,j="y"===x?"height":"width",B=A[x],R=B+v[P],q=B-v[N],H=p?-C[j]/2:0,V=_===It?E[j]:C[j],W=_===It?-C[j]:-E[j],U=t.elements.arrow,G=p&&U?b(U):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=Y[P],X=Y[N],Q=D(0,E[j],G[j]),J=w?E[j]/2-H-Q-K-L.mainAxis:V-Q-K-L.mainAxis,Z=w?-E[j]/2+H+Q+X+L.mainAxis:W+Q+X+L.mainAxis,ee=t.elements.arrow&&T(t.elements.arrow),te=ee?"y"===x?ee.clientTop||0:ee.clientLeft||0:0,ne=null!=(I=null==F?void 0:F[x])?I:0,ie=B+Z-ne,se=D(p?tn(R,B+J-ne-te):R,B,p?en(q,ie):q);A[x]=se,M[x]=se-B}if(a){var re,oe="x"===x?Dt:$t,ae="x"===x?Ot:Lt,le=A[k],ue="y"===k?"height":"width",ce=le+v[oe],de=le-v[ae],he=-1!==[Dt,$t].indexOf(y),pe=null!=(re=null==F?void 0:F[k])?re:0,fe=he?ce:le-E[ue]-C[ue]-pe+L.altAxis,ge=he?le+E[ue]+C[ue]-pe-L.altAxis:de,me=p&&he?function(e,t,n){var i=D(e,t,n);return i>n?n:i}(fe,le,ge):D(p?fe:ce,le,p?ge:de);A[k]=me,M[k]=me-le}t.modifiersData[i]=M}},requiresIfExists:["offset"]};var mn={placement:"bottom",modifiers:[],strategy:"absolute"},vn=Q(),yn=Q({defaultModifiers:[ln,fn,on,Zt]}),_n=Q({defaultModifiers:[ln,fn,on,Zt,pn,dn,gn,sn,hn]});const bn=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Yt,afterRead:Wt,afterWrite:Qt,applyStyles:Zt,arrow:sn,auto:Ft,basePlacements:Mt,beforeMain:Ut,beforeRead:Vt,beforeWrite:Kt,bottom:Ot,clippingParents:Nt,computeStyles:on,createPopper:_n,createPopperBase:vn,createPopperLite:yn,detectOverflow:z,end:Pt,eventListeners:ln,flip:dn,hide:hn,left:$t,main:Gt,modifierPhases:Jt,offset:pn,placements:Ht,popper:Bt,popperGenerator:Q,popperOffsets:fn,preventOverflow:gn,read:zt,reference:Rt,right:Lt,start:It,top:Dt,variationPlacements:qt,viewport:jt,write:Xt},Symbol.toStringTag,{value:"Module"})),wn="dropdown",xn=".bs.dropdown",kn=".data-api",An="ArrowUp",En="ArrowDown",Cn=`hide${xn}`,Tn=`hidden${xn}
2`,Sn=`show${xn}`,Dn=`shown${xn}`,On=`click${xn}${kn}`,Ln=`keydown${xn}${kn}`,$n=`keyup${xn}${kn}`,Fn="show",Mn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',In=`${Mn}.${Fn}`,Pn=".dropdown-menu",Nn=he()?"top-end":"top-start",jn=he()?"top-start":"top-end",Bn=he()?"bottom-end":"bottom-start",Rn=he()?"bottom-start":"bottom-end",qn=he()?"left-start":"right-start",Hn=he()?"right-start":"left-start",Vn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},zn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Wn extends Te{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=De.next(this._element,Pn)[0]||De.prev(this._element,Pn)[0]||De.findOne(Pn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Vn}static get DefaultType(){return zn}static get NAME(){return wn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(oe(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ae.trigger(this._element,Sn,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2navbar-nav"))for(const e of[].concat(...document.body.children))Ae.on(e,"mouseover",le);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Fn),this._element.classList.add(Fn),Ae.trigger(this._element,Dn,e)}}hide(){if(oe(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ae.trigger(this._element,Cn,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Ae.off(e,"mouseover",le);this._popper&&this._popper.destroy(),this._menu.classList.remove(Fn),this._element.classList.remove(Fn),this._element.setAttribute("aria-expanded","false"),Ee.removeDataAttribute(this._menu,"popper"),Ae.trigger(this._element,Tn,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!ie(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${wn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===bn)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:ie(this._config.reference)?e=se(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=_n(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Fn)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return qn;if(e.classList.contains("dropstart"))return Hn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?jn:Nn:t?Rn:Bn}
vendor: 10,253 bytes, line 2
2_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Ee.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...fe(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=De.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>re(e));n.length&&me(n,t,e===En,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Wn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=De.find(In);for(const n of t){const t=Wn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:t._element};"click"===e.type&&(r.clickEvent=e),t._completeHide(r)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[An,En].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const s=this.matches(Mn)?this:De.prev(this,Mn)[0]||De.next(this,Mn)[0]||De.findOne(Mn,e.delegateTarget.parentNode),r=Wn.getOrCreateInstance(s);if(i)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),s.focus())}}Ae.on(document,Ln,Mn,Wn.dataApiKeydownHandler),Ae.on(document,Ln,Pn,Wn.dataApiKeydownHandler),Ae.on(document,On,Wn.clearMenus),Ae.on(document,$n,Wn.clearMenus),Ae.on(document,On,Mn,function(e){e.preventDefault(),Wn.getOrCreateInstance(this).toggle()}),pe(Wn);const Un="backdrop",Gn="show",Yn=`mousedown.bs.${Un}`,Kn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Xn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Qn extends Ce{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Kn}static get DefaultType(){return Xn}static get NAME(){return Un}show(e){if(!this._config.isVisible)return void fe(e);this._append();const t=this._getElement();this._config.isAnimated&&ue(t),t.classList.add(Gn),this._emulateAnimation(()=>{fe(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Gn),this._emulateAnimation(()=>{this.dispose(),fe(e)})):fe(e)}dispose(){this._isAppended&&(Ae.off(this._element,Yn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=se(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ae.on(e,Yn,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){ge(e,this._getElement(),this._config.isAnimated)}}const Jn=".bs.focustrap",Zn=`focusin${Jn}`,ei=`keydown.tab${Jn}`,ti="backward",ni={autofocus:!0,trapElement:null},ii={autofocus:"boolean",trapElement:"element"};class si extends Ce{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ni}static get DefaultType(){return ii}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ae.off(document,Jn),Ae.on(document,Zn,e=>this._handleFocusin(e)),Ae.on(document,ei,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ae.off(document,Jn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=De.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===ti?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ti:"forward")}}const ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",oi=".sticky-top",ai="padding-right",li="margin-right";class ui{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ai,t=>t+e),this._setElementAttributes(ri,ai,t=>t+e),this._setElementAttributes(oi,li,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ai),this._resetElementAttributes(ri,ai),this._resetElementAttributes(oi,li)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&Ee.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=Ee.getDataAttribute(e,t);null!==n?(Ee.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(ie(e))t(e);else for(const n of De.find(e,this._element))t(n)}}const ci=".bs.modal",di=`hide${ci}`,hi=`hidePrevented${ci}`,pi=`hidden${ci}`,fi=`show${ci}`,gi=`shown${ci}`,mi=`resize${ci}`,vi=`click.dismiss${ci}`,yi=`mousedown.dismiss${ci}`,_i=`keydown.dismiss${ci}`,bi=`click${ci}.data-api`,wi="modal-open",xi="show",ki="modal-static",Ai={backdrop:!0,focus:!0,keyboard:!0},Ei={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ci extends Te{constructor(e,t){super(e,t),this._dialog=De.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ui,this._addEventListeners()}static get Default(){return Ai}static get DefaultType(){return Ei}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ae.trigger(this._element,fi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(wi),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(Ae.trigger(this._element,di).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xi),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){Ae.off(window,ci),Ae.off(this._dialog,ci),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Qn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new si({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=De.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),ue(this._element),this._element.classList.add(xi),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ae.trigger(this._element,gi,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Ae.on(this._element,_i,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),Ae.on(window,mi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ae.on(this._element,yi,e=>{Ae.one(this._element,vi,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(wi),this._resetAdjustments(),this._scrollBar.reset(),Ae.trigger(this._element,pi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Ae.trigger(this._element,hi).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ki)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ki),this._queueCallback(()=>{this._element.classList.remove(ki),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=he()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=he()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=Ci.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method n
2amed "${e}"`);n[e](t)}})}}Ae.on(document,bi,'[data-bs-toggle="modal"]',function(e){const t=De.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ae.one(t,fi,e=>{e.defaultPrevented||Ae.one(t,pi,()=>{re(this)&&this.focus()})});const n=De.findOne(".modal.show");n&&Ci.getInstance(n).hide(),Ci.getOrCreateInstance(t).toggle(this)}),Oe(Ci),pe(Ci);const Ti=".bs.offcanvas",Si=".data-api",Di=`load${Ti}${Si}`,Oi="show",Li="showing",$i="hiding",Fi=".offcanvas.show",Mi=`show${Ti}`,Ii=`shown${Ti}`,Pi=`hide${Ti}`,Ni=`hidePrevented${Ti}`,ji=`hidden${Ti}`,Bi=`resize${Ti}`,Ri=`click${Ti}${Si}`,qi=`keydown.dismiss${Ti}`,Hi={backdrop:!0,keyboard:!0,scroll:!1},Vi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zi extends Te{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hi}static get DefaultType(){return Vi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Ae.trigger(this._element,Mi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ui).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Li),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Oi),this._element.classList.remove(Li),Ae.trigger(this._element,Ii,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(Ae.trigger(this._element,Pi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($i),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Oi,$i),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ui).reset(),Ae.trigger(this._element,ji)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Qn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():Ae.trigger(this._element,Ni)}:null})}_initializeFocusTrap(){return new si({trapElement:this._element})}_addEventListeners(){Ae.on(this._element,qi,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():Ae.trigger(this._element,Ni))})}static jQueryInterface(e){return this.each(function(){const t=zi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ae.on(document,Ri,'[data-bs-toggle="offcanvas"]',function(e){const t=De.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),oe(this))return;Ae.one(t,ji,()=>{re(this)&&this.focus()});const n=De.findOne(Fi);n&&n!==t&&zi.getInstance(n).hide(),zi.getOrCreateInstance(t).toggle(this)}),Ae.on(window,Di,()=>{for(const e of De.find(Fi))zi.getOrCreateInstance(e).show()}),Ae.on(window,Bi,()=>{for(const e of De.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&zi.getOrCreateInstance(e).hide()}),Oe(zi),pe(zi);const Wi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ui=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Gi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Yi=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Ui.has(n)||Boolean(Gi.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))},Ki={allowList:Wi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Xi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Qi={entry:"(string|element|function|null)",selector:"(string|element)"};class Ji extends Ce{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ki}static get DefaultType(){return Xi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>
vendor: 4,618 bytes, line 2
2this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Qi)}_setContent(e,t,n){const i=De.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?ie(t)?this._putElementInTemplate(se(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const e of s){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Yi(t,s)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return fe(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Zi=new Set(["sanitize","allowList","sanitizeFn"]),es="fade",ts="show",ns=".modal",is="hide.bs.modal",ss="hover",rs="focus",os={AUTO:"auto",TOP:"top",RIGHT:he()?"left":"right",BOTTOM:"bottom",LEFT:he()?"right":"left"},as={allowList:Wi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ls={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class us extends Te{constructor(e,t){if(void 0===bn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return as}static get DefaultType(){return ls}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Ae.off(this._element.closest(ns),is,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=Ae.trigger(this._element,this.constructor.eventName("show")),t=(ae(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),Ae.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ts),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Ae.on(e,"mouseover",le);this._queueCallback(()=>{Ae.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}
vendor: 5,395 bytes, lines 2-3
2hide(){if(this._isShown()&&!Ae.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ts),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Ae.off(e,"mouseover",le);this._activeTrigger.click=!1,
3this._activeTrigger[rs]=!1,this._activeTrigger[ss]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ae.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(es,ts),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(es),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ji({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(es)}_isShown(){return this.tip&&this.tip.classList.contains(ts)}_createPopper(e){const t=fe(this._config.placement,[this,e,this._element]),n=os[t.toUpperCase()];return _n(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return fe(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...fe(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)Ae.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if("manual"!==t){const e=t===ss?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===ss?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Ae.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?rs:ss]=!0,t._enter()}),Ae.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?rs:ss]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ae.on(this._element.closest(ns),is,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Ee.getDataAttributes(this._element);for(const e of Object.keys(t))Zi.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:se(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=us.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method n
3amed "${e}"`);t[e]()}})}}pe(us);const cs={...us.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ds={...us.DefaultType,content:"(null|string|element|function)"};class hs extends us{static get Default(){return cs}static get DefaultType(){return ds}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=hs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}pe(hs);const ps=".bs.scrollspy",fs=`activate${ps}`,gs=`click${ps}`,ms=`load${ps}.data-api`,vs="active",ys="[href]",_s=".nav-link",bs=`${_s}, .nav-item > ${_s}, .list-group-item`,ws={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},xs={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ks extends Te{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ws}static get DefaultType(){return xs}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=se(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ae.off(this._config.target,gs),Ae.on(this._config.target,gs,ys,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(n(r),!i)return}else s||e||n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=De.find(ys,this._config.target);for(const t of e){if(!t.hash||oe(t))continue;const e=De.findOne(decodeURI(t.hash),this._element);re(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(v
vendor: 4,009 bytes, line 3
3s),this._activateParents(e),Ae.trigger(this._element,fs,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))De.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(vs);else for(const t of De.parents(e,".nav, .list-group"))for(const e of De.prev(t,bs))e.classList.add(vs)}_clearActiveClass(e){e.classList.remove(vs);const t=De.find(`${ys}.${vs}`,e);for(const e of t)e.classList.remove(vs)}static jQueryInterface(e){return this.each(function(){const t=ks.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}Ae.on(window,ms,()=>{for(const e of De.find('[data-bs-spy="scroll"]'))ks.getOrCreateInstance(e)}),pe(ks);const As=".bs.tab",Es=`hide${As}`,Cs=`hidden${As}`,Ts=`show${As}`,Ss=`shown${As}`,Ds=`click${As}`,Os=`keydown${As}`,Ls=`load${As}`,$s="ArrowLeft",Fs="ArrowRight",Ms="ArrowUp",Is="ArrowDown",Ps="Home",Ns="End",js="active",Bs="fade",Rs="show",qs=":not(.dropdown-toggle)",Hs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Vs=`.nav-link${qs}, .list-group-item${qs}, [role="tab"]${qs}, ${Hs}`,zs=`.${js}[data-bs-toggle="tab"], .${js}[data-bs-toggle="pill"], .${js}[data-bs-toggle="list"]`;class Ws extends Te{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ae.on(this._element,Os,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?Ae.trigger(t,Es,{relatedTarget:e}):null;Ae.trigger(e,Ts,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(js),this._activate(De.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ae.trigger(e,Ss,{relatedTarget:t})):e.classList.add(Rs)},e,e.classList.contains(Bs)))}_deactivate(e,t){e&&(e.classList.remove(js),e.blur(),this._deactivate(De.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ae.trigger(e,Cs,{relatedTarget:t})):e.classList.remove(Rs)},e,e.classList.contains(Bs)))}_keydown(e){if(![$s,Fs,Ms,Is,Ps,Ns].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!oe(e));let n;if([Ps,Ns].includes(e.key))n=t[e.key===Ps?0:t.length-1];else{const i=[Fs,Is].includes(e.key);n=me(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),Ws.getOrCreateInstance(n).show())}_getChildren(){return De.find(Vs,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=De.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const s=De.findOne(e,n);s&&s.classList.toggle(i,t)};i(".dropdown-toggle",js),i(".dropdown-menu",Rs),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(js)}_getInnerElement(e){return e.matches(Vs)?e:De.findOne(Vs,e)}
3_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=Ws.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}Ae.on(document,Ds,Hs,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),oe(this)||Ws.getOrCreateInstance(this).show()}),Ae.on(window,Ls,()=>{for(const e of De.find(zs))Ws.getOrCreateInstance(e)}),pe(Ws);const Us=".bs.toast",Gs=`mouseover${Us}`,Ys=`mouseout${Us}`,Ks=`focusin${Us}`,Xs=`focusout${Us}`,Qs=`hide${Us}`,Js=`hidden${Us}`,Zs=`show${Us}`,er=`shown${Us}`,tr="hide",nr="show",ir="showing",sr={animation:"boolean",autohide:"boolean",delay:"number"},rr={animation:!0,autohide:!0,delay:5e3};class or extends Te{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return rr}static get DefaultType(){return sr}static get NAME(){return"toast"}show(){Ae.trigger(this._element,Zs).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(tr),ue(this._element),this._element.classList.add(nr,ir),this._queueCallback(()=>{this._element.classList.remove(ir),Ae.trigger(this._element,er),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(Ae.trigger(this._element,Qs).defaultPrevented||(this._element.classList.add(ir),this._queueCallback(()=>{this._element.classList.add(tr),this._element.classList.remove(ir,nr),Ae.trigger(this._element,Js)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(nr),super.dispose()}isShown(){return this._element.classList.contains(nr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ae.on(this._element,Gs,e=>this._onInteraction(e,!0)),Ae.on(this._element,Ys,e=>this._onInteraction(e,!1)),Ae.on(this._element,Ks,e=>this._onInteraction(e,!0)),Ae.on(this._element,Xs,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=or.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return Oe(or),pe(or),{Alert:Me,Button:Pe,Carousel:ft,Collapse:St,Dropdown:Wn,Modal:Ci,Offcanvas:zi,Popover:hs,ScrollSpy:ks,Tab:Ws,Toast:or,Tooltip:us}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IMask={})}(this,function(e){"use strict";function t(e){return"string"==typeof e||e instanceof String}function n(e){var t;return"object"==typeof e&&null!=e&&"Object"===(null==e||null==(t=e.constructor)?void 0:t.name)}function i(e,t){return Array.isArray(t)?i(e,(e,n)=>t.includes(n)):Object.entries(e).reduce((e,n)=>{let[i,s]=n;return t(s,i)&&(e[i]=s),e},{})}function s(e){switch(e){case p.LEFT:return p.FORCE_LEFT;case p.RIGHT:return p.FORCE_RIGHT;default:return e}}function r(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function o(e,t){if(t===e)return!0;const n=Array.isArray(t),i=Array.isArray(e);let s;if(n&&i){if(t.length!=e.length)return!1;for(s=0;s<t.length;s++)if(!o(t[s],e[s]))return!1;return!0}if(n!=i)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){const n=t instanceof Date,i=e instanceof Date;if(n&&i)return t.getTime()==e.getTime();if(n!=i)return!1;const r=t instanceof RegExp,a=e instanceof RegExp;if(r&&a)return t.toString()==e.toString();if(r!=a)return!1;const l=Object.keys(t);for(s=0;s<l.length;s++)if(!Object.prototype.hasOwnProperty.call(e,l[s]))return!1;for(s=0;s<l.length;s++)if(!o(e[l[s]],t[l[s]]))return!1;return!0}return!(!t||!e||"function"!=typeof t||"function"!=typeof e)&&t.toString()===e.toString()}function a(e,t){return new a.InputMask(e,t)}function l(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?a.MaskedRegExp:t(e)?a.MaskedPattern:e===Date?a.MaskedDate:e===Number?a.MaskedNumber:Array.isArray(e)||e===Array?a.MaskedDynamic:a.Masked&&e.prototype instanceof a.Masked?e:a.Masked&&e instanceof a.Masked?e.constructor:e instanceof Function?a.MaskedFunction:(console.warn("Mask not found for mask",e),a.Masked)}function u(e){if(!e)throw new Error("Options in not defined");if(a.Masked){if(e.prototype instanceof a.Masked)return{mask:e};const{mask:t,...s}=e instanceof a.Masked?{mask:e}:n(e)&&e.mask instanceof a.Masked?e:{};if(t){const e=t.mask;return{...i(t,(e,t)=>!t.startsWith("_")),mask:t.constructor,_mask:e,...s}}}return n(e)?{...e}:{mask:e}}function c(e){if(a.Masked&&e instanceof a.Masked)return e;const t=u(e),n=l(t.mask);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return t.mask===n&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new n(t)}function d(e,t,n){void 0===t&&(t=I.MASKED),void 0===n&&(n=I.MASKED);const i=c(e);return e=>i.runIsolated(i=>(i[t]=e,i[n]))}function h(e,t,n,i){return d(t,n,i)(e)}const p={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};class f{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?p.NONE:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?p.LEFT:p.RIGHT}}a.createMask=c;class g{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}a.MaskElement=g;class m extends g{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,t,n;return null!=(e=null==(t=(n=this.input).getRootNode)?void 0:t.call(n))?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){Object.keys(e).forEach(t=>this._toggleEventHandler(m.EVENTS_MAP[t],e[t]))}
3unbindEvents(){Object.keys(this._handlers).forEach(e=>this._toggleEventHandler(e))}_toggleEventHandler(e,t){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),t&&(this.input.addEventListener(e,t),this._handlers[e]=t)}}m.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},a.HTMLMaskElement=m;class v extends m{constructor(e){super(e),this.input=e,this._handlers={}}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}a.HTMLMaskElement=m;class y extends m{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==n||n<i?n:i}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,i=t&&t.focusOffset;return null==i||null==n||n>i?n:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(n))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}a.HTMLContenteditableMaskElement=y;class _{constructor(e,t){this.el=e instanceof g?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new y(e):new v(e),this.masked=c(t),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var t;return null==e||(null==(t=this.masked)?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof a.Masked)&&this.masked.constructor===l(e))return void this.masked.updateOptions({mask:e});const t=e instanceof a.Masked?e:c({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const n=this._listeners[e];n&&n.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,t=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==e||this.value!==t;this._unmaskedValue=e,this._value=t,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(e){const{mask:t,...n}=e,i=!this.maskEquals(t),s=!o(this.masked,n);i&&(this.mask=t),s&&this.masked.updateOptions(n),(i||s)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}
vendor: 7,060 bytes, line 3
3_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,p.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const t=new f({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,s=n===this.masked.rawInputValue?t.removeDirection:p.NONE;let r=this.masked.nearestInputPos(t.startChangePos+i,s);s!==p.NONE&&(r=this.masked.nearestInputPos(r,p.NONE)),this.updateControl(),this.updateCursor(r),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}a.InputMask=_;class b{static normalize(e){return Array.isArray(e)?e:[e,new b]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}a.ChangeDetails=b;class w{constructor(e,t,n){void 0===e&&(e=""),void 0===t&&(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class x{constructor(e){this._value="",this._update({...x.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){void 0===t&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new w(this.extractInput(e,t),e)}appendTail(e){return t(e)&&(e=new w(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new b({inserted:e,rawInserted:e})):new b}_appendChar(e,t,n){void 0===t&&(t={});const i=this.state;let s;if([e,s]=this.doPrepareChar(e,t),s=s.aggregate(this._appendCharRaw(e,t)),s.inserted){let e,r=!1!==this.doValidate(t);if(r&&null!=n){const t=this.state;!0===this.overwrite&&(e=n.state,n.unshift(this.displayValue.length-s.tailShift));let i=this.appendTail(n);r=i.rawInserted===n.toString(),r&&i.inserted||"shift"!==this.overwrite||(this.state=t,e=n.state,n.shift(),i=this.appendTail(n),r=i.rawInserted===n.toString()),r&&i.inserted&&(this.state=t)}r||(s=new b,this.state=i,n&&e&&(n.state=e))}return s}_appendPlaceholder(){return new b}_appendEager(){return new b}append(e,n,i){if(!t(e))throw new Error("value should be string");const s=t(i)?new w(String(i)):i;let r;null!=n&&n.tail&&(n._beforeTailState=this.state),[e,r]=this.doPrepare(e,n);for(let t=0;t<e.length;++t){const i=this._appendChar(e[t],n,s);if(!i.rawInserted&&!this.doSkipInvalid(e[t],n,s))break;r.aggregate(i)}return(!0===this.eager||"append"===this.eager)&&null!=n&&n.input&&e&&r.aggregate(this._appendEager()),null!=s&&(r.tailShift+=this.appendTail(s).tailShift),r}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new b}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.displayValue.length),{},""),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return Boolean(this.skipInvalid)}doPrepare(e,t){return void 0===t&&(t={}),b.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return void 0===t&&(t={}),b.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,n,i,r){void 0===i&&(i=p.NONE),void 0===r&&(r={input:!0});const o=e+t,a=this.extractTail(o),l=!0===this.eager||"remove"===this.eager;let u;l&&(i=s(i),u=this.extractInput(0,o,{raw:!0}));let c=e;const d=new b;if(i!==p.NONE&&(c=this.nearestInputPos(e,t>1&&0!==e&&!l?p.NONE:i),d.tailShift=c-e),d.aggregate(this.remove(c)),l&&i!==p.NONE&&u===this.rawInputValue)if(i===p.FORCE_LEFT){let e;for(;u===this.rawInputValue&&(e=this.displayValue.length);)d.aggregate(new b({tailShift:-1})).aggregate(this.remove(e-1))}else i===p.FORCE_RIGHT&&a.unshift();return d.aggregate(this.append(n,r,a))}maskEquals(e){return this.mask===e}
3typedValueEquals(e){const t=this.typedValue;return e===t||x.EMPTY_VALUES.includes(e)&&x.EMPTY_VALUES.includes(t)||!!this.format&&this.format(e,this)===this.format(this.typedValue,this)}}x.DEFAULTS={skipInvalid:!0},x.EMPTY_VALUES=[void 0,null,""],a.Masked=x;class k{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=t(e)?new w(String(e)):e;const n=this.chunks[this.chunks.length-1],i=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof w)i?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof k){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof a.MaskedPattern))return new w(this.toString()).appendTo(e);const t=new b;for(let n=0;n<this.chunks.length&&!t.skip;++n){const i=this.chunks[n],s=e._mapPosToBlock(e.displayValue.length),r=i.stop;let o;if(null!=r&&(!s||s.index<=r)){if(i instanceof k||e._stops.indexOf(r)>=0){
4const n=e._appendPlaceholder(r);t.aggregate(n)}o=i instanceof k&&e._blocks[r]}if(o){const n=o.appendTail(i);n.skip=!1,t.aggregate(n),e._value+=n.inserted;const s=i.toString().slice(n.rawInserted.length);s&&t.aggregate(e.append(s,{tail:!0}))}else t.aggregate(e.append(i.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...n}=e;Object.assign(this,n),this.chunks=t.map(e=>{const t="chunks"in e?new k:new w;return t.state=e,t})}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";const t=null!=e?e-this.from:e;let n=0;for(;n<this.chunks.length;){const e=this.chunks[n],i=e.unshift(t);if(e.toString()){if(!i)break;++n}else this.chunks.splice(n,1);if(i)return i}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class A{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null==(t=this.block)?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,p.FORCE_LEFT),0!==this.offset||void 0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,p.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,p.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value)return this.offset=this.block.nearestInputPos(this.offset,p.FORCE_RIGHT),this.offset!==this.block.value.length||void 0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,p.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,p.NONE),!0})}}class E{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new b}nearestInputPos(e,t){void 0===t&&(t=p.NONE);const n=this._value.length;switch(t){case p.LEFT:case p.FORCE_LEFT:return 0;default:return n}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),void 0===n&&(n={}),n.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return Boolean(this._value)}_appendChar(e,t){void 0===t&&(t={});const n=new b;if(this.isFilled)return n;const i=!0===this.eager||"append"===this.eager,s=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!i)&&!t.tail;return s&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=s&&(t.raw||t.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new b;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new w("")}appendTail(e){return t(e)&&(e=new w(String(e))),e.appendTo(this)}append(e,t,n){const i=this._appendChar(e[0],t);return null!=n&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=Boolean(e._rawInputValue)}}class C{constructor(e){const{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:r,eager:o,...a}=e;this.masked=c(a),Object.assign(this,{parent:t,isOptional:n,placeholderChar:i,displayChar:s,lazy:r,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),0===e&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new b}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new b;const n=this.masked.state,i=this.masked._appendChar(e,this.currentMaskFlags(t));return i.inserted&&!1===this.doValidate(t)&&(i.inserted=i.rawInserted="",this.masked.state=n),i.inserted||this.isOptional||this.lazy||t.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=Bo
4olean(i.inserted),i}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){const e=new b;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new b}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){void 0===t&&(t=p.NONE);const n=this.value.length,i=Math.min(Math.max(e,0),n);switch(t){case p.LEFT:case p.FORCE_LEFT:return this.isComplete?i:0;case p.RIGHT:case p.FORCE_RIGHT:return this.isComplete?i:n;default:return i}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(null==e||null==(t=e._beforeTailState)?void 0:t.masked)||(null==e?void 0:e._beforeTailState)}}}C.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
4D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class T extends x{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}}a.MaskedRegExp=T;class S extends x{constructor(e){super({...S.DEFAULTS,...e,definitions:Object.assign({},C.DEFAULT_DEFINITIONS,null==e?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let n=!1,i=!1;for(let s=0;s<t.length;++s){if(this.blocks){const e=t.slice(s),n=Object.keys(this.blocks).filter(t=>0===e.indexOf(t));n.sort((e,t)=>t.length-e.length);const i=n[0];if(i){const{expose:e,...t}=u(this.blocks[i]),n=c({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,...t,parent:this});n&&(this._blocks.push(n),e&&(this.exposeBlock=n),this._maskedBlocks[i]||(this._maskedBlocks[i]=[]),this._maskedBlocks[i].push(this._blocks.length-1)),s+=i.length-1;continue}}let r=t[s],o=r in e;if(r===S.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===r||"}"===r){n=!n;continue}if("["===r||"]"===r){i=!i;continue}if(r===S.ESCAPE_CHAR){if(++s,r=t[s],!r)break;o=!1}const a=o?new C({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...u(e[r]),parent:this}):new E({char:r,eager:this.eager,isUnmasking:n});this._blocks.push(a)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){const{_blocks:t,...n}=e;this._blocks.forEach((e,n)=>e.state=t[n]),super.state=n}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new b;let n=null==(e=this._mapPosToBlock(this.displayValue.length))?void 0:e.index;if(null==n)return t;this._blocks[n].isFilled&&++n;for(let e=n;e<this._blocks.length;++e){const n=this._blocks[e]._appendEager();if(!n.inserted)break;t.aggregate(n)}return t}_appendCharRaw(e,t){void 0===t&&(t={});const n=this._mapPosToBlock(this.displayValue.length),i=new b;if(!n)return i;for(let r=n.index;;++r){var s;const n=this._blocks[r];if(!n)break;const o=n._appendChar(e,{...t,_beforeTailState:null==(s=t._beforeTailState)||null==(s=s._blocks)?void 0:s[r]}),a=o.skip;if(i.aggregate(o),a||o.rawInserted)break}return i}extractTail(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);const n=new k;
4return e===t||this._forEachBlocksInRange(e,t,(e,t,i,s)=>{const r=e.extractTail(i,s);r.stop=this._findStopBefore(t),r.from=this._blockStartPos(t),r instanceof k&&(r.blockIndex=t),n.extend(r)}),n}extractInput(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),void 0===n&&(n={}),e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(e,t,s,r)=>{i+=e.extractInput(s,r,n)}),i}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(!(i<=e))break;t=i}return t}_appendPlaceholder(e){const t=new b;if(this.lazy&&null==e)return t;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;const i=n.index,s=null!=e?e:this._blocks.length;return this._blocks.slice(i,s).forEach(n=>{if(!n.lazy||null!=e){var i;const e=n._appendPlaceholder(null==(i=n._blocks)?void 0:i.length);this._value+=e.inserted,t.aggregate(e)}}),t}_mapPosToBlock(e){let t="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],s=t.length;if(t+=i.displayValue,e<=t.length)return{index:n,offset:e-s}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+t.displayValue.length,0)}_forEachBlocksInRange(e,t,n){void 0===t&&(t=this.displayValue.length);const i=this._mapPosToBlock(e);if(i){const e=this._mapPosToBlock(t),s=e&&i.index===e.index,r=i.offset,o=e&&s?e.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,r,o),e&&!s){for(let t=i.index+1;t<e.index;++t)n(this._blocks[t],t,0,this._blocks[t].displayValue.length);n(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,i,s)=>{n.aggregate(e.remove(i,s))}),n}nearestInputPos(e,t){if(void 0===t&&(t=p.NONE),!this._blocks.length)return 0;const n=new A(this,e);if(t===p.NONE)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.displayValue.length);if(t===p.LEFT||t===p.FORCE_LEFT){if(t===p.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===p.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e)return n.pos;if(n.popState(),n.ok&&n.pos<=e)return n.pos;n.popState()}return n.ok?n.pos:t===p.FORCE_LEFT?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return t===p.RIGHT||t===p.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===p.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(e,p.LEFT)))):e}totalInputPositions(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let n=0;return this._forEachBlocksInRange(e,t,(e,t,i,s)=>{n+=e.totalInputPositions(i,s)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}}S.DEFAULTS={lazy:!0,placeholderChar:"_"},S.STOP_CHAR="`",S.ESCAPE_CHAR="\\",S.InputDefinition=C,S.FixedDefinition=E,a.MaskedPattern=S;class D extends S{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:s=this.autofix,...r}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,i),this.autofix=s;const o=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<a.length&&a[l]===o[l];)++l;r.mask=a.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(r)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(e){let t="",n="";const[,i,s]=e.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(t="0".repeat(i.length)+s,n="9".repeat(i.length)+s),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepareChar(e,t){let n;if(void 0===t&&(t={}),[e,n]=super.doPrepareChar(e.replace(/\D/g,""),t),!this.autofix||!e)return[e,n];const i=String(this.from).padStart(this.maxLength,"0"),s=String(this.to).padStart(this.maxLength,"0"),r=this.value+e;if(r.length>this.maxLength)return["",n];const[o,a]=this.boundaries(r);return Number(a)<this.from?[i[r.length-1],n]:Number(o)>this.to?"pad"===this.autofix&&r.length<this.maxLength?["",n.aggregate(this.append(i[r.length-1]+e,t))]:[s[r.length-1],n]:[e,n]}doValidate(e){const t=this.value;if(-1===t.search(/[^0]/)&&t.length<=this._matchFrom)return!0;const[n,i]=this.boundaries(t);return this.from<=Number(i)&&Number(n)<=this.to&&super.doValidate(e)}}a.MaskedRange=D;class O extends S{constructor(e){const{mask:n,pattern:i,...s}={...O.DEFAULTS,...e};super({...s,mask:t(n)?n:i})}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:n,pattern:i,blocks:s,...r}={...O.DEFAULTS,...e},o=Object.assign({},O.GET_DEFAULT_BLOCKS());e.min&&(o.Y.from=e.min.getFullYear()),e.max&&(o.Y.to=e.max.getFullYear()),e.min&&e.max&&o.Y.from===o.Y.to&&(o.m.from=e.min.getMonth()+1,o.m.to=e.max.getMonth()+1,o.m.from===o.m.to&&(o.d.from=e.min.getDate(),o.d.to=e.max.getDate())),Object.assign(o,this.blocks,s),Object.keys(o).forEac
4h(t=>{const n=o[t];!("autofix"in n)&&"autofix"in e&&(n.autofix=e.autofix)}),super._update({...r,mask:t(n)?n:i,blocks:o})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&null!=t&&(null==this.min||this.min<=t)&&(null==this.max||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}O.GET_DEFAULT_BLOCKS=()=>({d:{mask:D,from:1,to:31,maxLength:2},m:{mask:D,from:1,to:12,maxLength:2},Y:{mask:D,from:1900,to:9999}}),O.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:e=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:e=>{const[t,n,i]=e.split(".").map(Number);return new Date(i,n-1,t)}},a.MaskedDate=O;class L extends x{constructor(e){super({...L.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{const{expose:t,...n}=u(e),i=c({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return t&&(this.exposeMask=i),i}):[])}_appendCharRaw(e,t){void 0===t&&(t={});const n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(e,t,n){void 0===e&&(e=""),void 0===t&&(t={}),void 0===n&&(n="");const i=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,s=this.rawInputValue,r=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:s,o=s.slice(r.length),a=this.currentMask,l=new b,u=null==a?void 0:a.state;if(this.currentMask=this.doDispatch(e,{...t},n),this.currentMask)if(this.currentMask!==a){if(this.currentMask.reset(),r){const e=this.currentMask.append(r,{raw:!0});l.tailShift=e.inserted.length-i.length}o&&(l.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)}else u&&(this.currentMask.state=u);return l}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new b;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return{...e,_beforeTailState:(null==(t=e._beforeTailState)?void 0:t.currentMaskRef)===this.currentMask&&(null==(n=e._beforeTailState)?void 0:n.currentMask)||e._beforeTailState}}doDispatch(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=""),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){void 0===t&&(t={});let[n,i]=super.doPrepare(e,t);if(this.currentMask){let e;[n,e]=super.doPrepare(n,this.currentMaskFlags(t)),i=i.aggregate(e)}return[n,i]}doPrepareChar(e,t){void 0===t&&(t={});let[n,i]=super.doPrepareChar(e,t);if(this.currentMask){let e;[n,e]=super.doPrepareChar(n,this.currentMaskFlags(t)),i=i.aggregate(e)}return[n,i]}reset(){var e;null==(e=this.currentMask)||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask)return this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,void this._applyDispatch();let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return Boolean(null==(e=this.currentMask)?void 0:e.isComplete)}get isFilled(){var e;return Boolean(null==(e=this.currentMask)?void 0:e.isFilled)}remove(e,t){const n=new b;return this.currentMask&&n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:null==(e=this.currentMask)?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:i,...s}=e;t&&this.compiledMasks.forEach((e,n)=>e.state=t[n]),null!=n&&(this.currentMask=n,this.currentMask.state=i),super.state=s}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,n)=>{if(!e[n])return;const{mask:i,...s}=e[n];return o(t,s)&&t.maskEquals(i)}):super.maskEquals(e)}typedValueEquals(e){var t;return Boolean(null==(t=this.currentMask)?void 0:t.typedValueEquals(e))}}
4L.DEFAULTS=void 0,L.DEFAULTS={dispatch:(e,t,n,i)=>{if(!t.compiledMasks.length)return;const s=t.rawInputValue,r=t.compiledMasks.map((r,o)=>{const a=t.currentMask===r,l=a?r.displayValue.length:r.nearestInputPos(r.displayValue.length,p.FORCE_LEFT);return r.rawInputValue!==s?(r.reset(),r.append(s,{raw:!0})):a||r.remove(l),r.append(e,t.currentMaskFlags(n)),r.appendTail(i),{index:o,weight:r.rawInputValue.length,totalInputPositions:r.totalInputPositions(0,Math.max(l,r.nearestInputPos(r.displayValue.length,p.FORCE_LEFT)))}});return r.sort((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[r[0].index]}},a.MaskedDynamic=L;class $ extends S{constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...n}=e;if(t){const e=t.map(e=>e.length),i=Math.min(...e),s=Math.max(...e)-i;n.mask="*".repeat(i),s&&(n.mask+="["+"*".repeat(s)+"]"),this.enum=t}super._update(n)}doValidate(e){return this.enum.some(e=>0===e.indexOf(this.unmaskedValue))&&super.doValidate(e)}}a.MaskedEnum=$;class F extends x{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}a.MaskedFunction=F;class M extends x{constructor(e){super({...M.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"("+r(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(r).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(r(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){void 0===t&&(t={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!n&&(i.skip=!0),!n||this.allowPositive||this.value||"-"===n||i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(e,t){void 0===t&&(t=!1);let n=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return void 0===e&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e,t){if(void 0===t&&(t={}),!this.thousandsSeparator)return super._appendCharRaw(e,t);const n=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const s=super._appendCharRaw(e,t);this._value=this._insertThousandsSeparators(this._value);const r=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(r);return s.tailShift+=(o-i)*this.thousandsSeparator.length,s.skip=!s.rawInserted&&e===this.thousandsSeparator,s}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n>=0&&(e=n);const i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),i=this.value.slice(t),s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const r=this._separatorsCountFromSlice(n);return new b({tailShift:(r-s)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case p.NONE:case p.LEFT:case p.FORCE_LEFT:{const n=this._findSeparatorAround(e-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===p.FORCE_LEFT)return n}break}case p.RIGHT:case p.FORCE_RIGHT:{const t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doValidate(e){let t=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(t){const e=this.number;t=t&&!isNaN(e)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return t&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,n,i)=>t+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,n){void 0===t&&(t={});const i=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===M.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,M.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){
5return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(M.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return null!=this.min&&this.min<0||null!=this.max&&this.max<0}get allowPositive(){return null!=this.min&&this.min>0||null!=this.max&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||M.EMPTY_VALUES.includes(e)&&M.EMPTY_VALUES.includes(this.typedValue))&&!(0===e&&""===this.value)}}M.UNMASKED_RADIX=".",M.EMPTY_VALUES=[...x.EMPTY_VALUES,0],M.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[M.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>
vendor: 6,111 bytes, line 5
5e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},a.MaskedNumber=M;const I={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};a.PIPE_TYPE=I,a.createPipe=d,a.pipe=h;try{globalThis.IMask=a}catch{}e.ChangeDetails=b,e.ChunksTailDetails=k,e.DIRECTION=p,e.HTMLContenteditableMaskElement=y,e.HTMLInputMaskElement=v,e.HTMLMaskElement=m,e.InputMask=_,e.MaskElement=g,e.Masked=x,e.MaskedDate=O,e.MaskedDynamic=L,e.MaskedEnum=$,e.MaskedFunction=F,e.MaskedNumber=M,e.MaskedPattern=S,e.MaskedRange=D,e.MaskedRegExp=T,e.PIPE_TYPE=I,e.PatternFixedDefinition=E,e.PatternInputDefinition=C,e.createMask=c,e.createPipe=d,e.default=a,e.forceDirection=s,e.normalizeOpts=u,e.pipe=h,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){var i,s,r=(n=n||be).createElement("script");if(r.text=e,t)for(i in we)(s=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,s);n.head.appendChild(r).parentNode.removeChild(r)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?he[pe.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=i(e);return!ye(e)&&!_e(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function a(e,t,n){return ye(t)?Ae.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?Ae.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Ae.grep(e,function(e){return de.call(t,e)>-1!==n}):Ae.filter(t,e,n)}function l(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return Ae.each(e.match(qe)||[],function(e,n){t[n]=!0}),t}function c(e){return e}function d(e){throw e}function h(e,t,n,i){var s;try{e&&ye(s=e.promise)?s.call(e).done(t).fail(n):e&&ye(s=e.then)?s.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}function p(){be.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),Ae.ready()}function f(e,t){return t.toUpperCase()}function g(e){return e.replace(We,"ms-").replace(Ue,f)}function m(){this.expando=Ae.expando+m.uid++}function v(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Xe.test(e)?JSON.parse(e):e)}function y(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Qe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=v(n)}catch(e){}Ke.set(e,t,n)}else n=void 0;return n}function _(e,t,n,i){var s,r,o=20,a=i?function(){return i.cur()}:function(){return Ae.css(e,t,"")},l=a(),u=n&&n[3]||(Ae.cssNumber[t]?"":"px"),c=e.nodeType&&(Ae.cssNumber[t]||"px"!==u&&+l)&&Ze.exec(Ae.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;o--;)Ae.style(e,t,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(o=0),c/=r;c*=2,Ae.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,s=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=s)),s}function b(e){var t,n=e.ownerDocument,i=e.nodeName,s=rt[i];return s||(t=n.body.appendChild(n.createElement(i)),s=Ae.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),rt[i]=s,s)}function w(e,t){for(var n,i,s=[],r=0,o=e.length;r<o;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(s[r]=Ye.get(i,"display")||null,s[r]||(i.style.display="")),""===i.style.display&&st(i)&&(s[r]=b(i))):"none"!==n&&(s[r]="none",Ye.set(i,"display",n)));for(r=0;r<o;r++)null!=s[r]&&(e[r].style.display=s[r]);return e}function x(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&r(e,t)?Ae.merge([e],n):n}function k(e,t){for(var n=0,i=e.length;n<i;n++)Ye.set(e[n],"globalEval",!t||Ye.get(t[n],"globalEval"))}function A(e,t,n,s,r){for(var o,a,l,u,c,d,h=t.createDocumentFragment(),p=[],f=0,g=e.length;f<g;f++)if((o=e[f])||0===o)if("object"===i(o))Ae.merge(p,o.nodeType?[o]:o);else if(ht.test(o)){for(a=a||h.appendChild(t.createElement("div")),l=(ut.exec(o)||["",""])[1].toLowerCase(),u=dt[l]||dt._default,a.innerHTML=u[1]+Ae.htmlPrefilter(o)+u[2],d=u[0];d--;)a=a.lastChild;Ae.merge(p,a.childNodes),(a=h.firstChild).textContent=""}else p.push(t.createTextNode(o));for(h.textContent="",f=0;o=p[f++];)if(s&&Ae.inArray(o,s)>-1)r&&r.push(o);else if(c=nt(o),a=x(h.appendChild(o),"script"),c&&k(a),n)for(d=0;o=a[d++];)ct.test(o.type||"")&&n.push(o);return h}function E(){return!0}function C(){return!1}function T(e,t,n,i,s,r){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)T(e,a,n,i,t[a],r);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=C;else if(!s)return e;return 1===r&&(o=s,s=function(e){return Ae().off(e),o.apply(this,arguments)},s.guid=o.guid||(o.guid=Ae.guid++)),e.each(function(){Ae.event.add(this,t,s,i,n)})}function S(e,t,n){n?(Ye.set(e,t,!1),Ae.event.add(e,t,{namespace:!1,handler:function(e){var n,i=Ye.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(Ae.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=le.call(arguments),Ye.set(this,t,i),this[t](),n=Ye.get(this,t),Ye.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(Ye.set(this,t,Ae.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=E)}})):void 0===Ye.get(e,t)&&Ae.event.add(e,t,E)}function D(e,t){return r(e,"table")&&r(11!==t.nodeType?t:t.firstChild,"tr")&&Ae(e).children("tbody")[0]||e}function O(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function L(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $(e,t){var n,i,s,r,o,a;if(1===t.nodeType){if(Ye.hasData(e)&&(a=Ye.get(e).events))for(s in Ye.remove(t,"handle events"),a)for(n=0,i=a[s].length;n<i;n++)Ae.event.add(t,s,a[s][n]);
vendor: 5,004 bytes, line 5
5Ke.hasData(e)&&(r=Ke.access(e),o=Ae.extend({},r),Ke.set(t,o))}}function F(e,t){var n=t.nodeName.toLowerCase();"input"===n&&lt.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function M(e,t,i,s){t=ue(t);var r,o,a,l,u,c,d=0,h=e.length,p=h-1,f=t[0],g=ye(f);if(g||h>1&&"string"==typeof f&&!ve.checkClone&&gt.test(f))return e.each(function(n){var r=e.eq(n);g&&(t[0]=f.call(this,n,r.html())),M(r,t,i,s)});if(h&&(o=(r=A(t,e[0].ownerDocument,!1,e,s)).firstChild,1===r.childNodes.length&&(r=o),o||s)){for(l=(a=Ae.map(x(r,"script"),O)).length;d<h;d++)u=r,d!==p&&(u=Ae.clone(u,!0,!0),l&&Ae.merge(a,x(u,"script"))),i.call(e[d],u,d);if(l)for(c=a[a.length-1].ownerDocument,Ae.map(a,L),d=0;d<l;d++)u=a[d],ct.test(u.type||"")&&!Ye.access(u,"globalEval")&&Ae.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?Ae._evalUrl&&!u.noModule&&Ae._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):n(u.textContent.replace(mt,""),u,c))}return e}function I(e,t,n){for(var i,s=t?Ae.filter(t,e):e,r=0;null!=(i=s[r]);r++)n||1!==i.nodeType||Ae.cleanData(x(i)),i.parentNode&&(n&&nt(i)&&k(x(i,"script")),i.parentNode.removeChild(i));return e}function P(e,t,n){var i,s,r,o,a=yt.test(t),l=e.style;return(n=n||_t(e))&&(o=n.getPropertyValue(t)||n[t],a&&o&&(o=o.replace(De,"$1")||void 0),""!==o||nt(e)||(o=Ae.style(e,t)),!ve.pixelBoxStyles()&&vt.test(o)&&wt.test(t)&&(i=l.width,s=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=s,l.maxWidth=r)),void 0!==o?o+"":o}function N(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function j(e){for(var t=e[0].toUpperCase()+e.slice(1),n=xt.length;n--;)if((e=xt[n]+t)in kt)return e}function B(e){var t=Ae.cssProps[e]||At[e];return t||(e in kt?e:At[e]=j(e)||e)}function R(e,t,n){var i=Ze.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function q(e,t,n,i,s,r){var o="width"===t?1:0,a=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(u+=Ae.css(e,n+et[o],!0,s)),i?("content"===n&&(l-=Ae.css(e,"padding"+et[o],!0,s)),"margin"!==n&&(l-=Ae.css(e,"border"+et[o]+"Width",!0,s))):(l+=Ae.css(e,"padding"+et[o],!0,s),"padding"!==n?l+=Ae.css(e,"border"+et[o]+"Width",!0,s):a+=Ae.css(e,"border"+et[o]+"Width",!0,s));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l+u}function H(e,t,n){var i=_t(e),s=(!ve.boxSizingReliable()||n)&&"border-box"===Ae.css(e,"boxSizing",!1,i),o=s,a=P(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(vt.test(a)){if(!n)return a;a="auto"}return(!ve.boxSizingReliable()&&s||!ve.reliableTrDimensions()&&r(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===Ae.css(e,"display",!1,i))&&e.getClientRects().length&&(s="border-box"===Ae.css(e,"boxSizing",!1,i),(o=l in e)&&(a=e[l])),(a=parseFloat(a)||0)+q(e,t,n||(s?"border":"content"),o,i,a)+"px"}function V(e,t,n,i,s){return new V.prototype.init(e,t,n,i,s)}function z(){Dt&&(!1===be.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(z):e.setTimeout(z,Ae.fx.interval),Ae.fx.tick())}function W(){return e.setTimeout(function(){St=void 0}),St=Date.now()}function U(e,t){var n,i=0,s={height:e};for(t=t?1:0;i<4;i+=2-t)s["margin"+(n=et[i])]=s["padding"+n]=e;return t&&(s.opacity=s.width=e),s}function G(e,t,n){for(var i,s=(X.tweeners[t]||[]).concat(X.tweeners["*"]),r=0,o=s.length;r<o;r++)if(i=s[r].call(n,t,e))return i}function Y(e,t,n){var i,s,r,o,a,l,u,c,d="width"in t||"height"in t,h=this,p={},f=e.style,g=e.nodeType&&st(e),m=Ye.get(e,"fxshow");for(i in n.queue||(null==(o=Ae._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,Ae.queue(e,"fx").length||o.empty.fire()})})),t)if(s=t[i],Ot.test(s)){if(delete t[i],r=r||"toggle"===s,s===(g?"hide":"show")){if("show"!==s||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||Ae.style(e,i)}if((l=!Ae.isEmptyObject(t))||!Ae.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=Ye.get(e,"display")),"none"===(c=Ae.css(e,"display"))&&(u?c=u:(w([e],!0),u=e.style.display||u,c=Ae.css(e,"display"),w([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===Ae.css(e,"float")&&(l||(h.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=Ye.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&w([e],!0),h.done(function(){for(i in g||w([e]),Ye.remove(e,"fxshow"),p)Ae.style(e,i,p[i])})),l=G(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}function K(e,t){var n,i,s,r,o;for(n in e)if(s=t[i=g(n)],r=e[n],Array.isArray(r)&&(s=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(o=Ae.cssHooks[i])&&"expand"in o)for(n in r=o.expand(r),delete e[i],r)n in e||(e[
vendor: 4,162 bytes, line 5
5n]=r[n],t[n]=s);else t[i]=s}function X(e,t,n){var i,s,r=0,o=X.prefilters.length,a=Ae.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=St||W(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,o=u.tweens.length;r<o;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&o?n:(o||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:Ae.extend({},t),opts:Ae.extend(!0,{specialEasing:{},easing:Ae.easing._default},n),originalProperties:t,originalOptions:n,startTime:St||W(),duration:n.duration,tweens:[],createTween:function(t,n){var i=Ae.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(s)return this;for(s=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(K(c,u.opts.specialEasing);r<o;r++)if(i=X.prefilters[r].call(u,e,c,u.opts))return ye(i.stop)&&(Ae._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return Ae.map(c,G,u),ye(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),Ae.fx.timer(Ae.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}function Q(e){return(e.match(qe)||[]).join(" ")}function J(e){return e.getAttribute&&e.getAttribute("class")||""}function Z(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(qe)||[]}function ee(e,t,n,s){var r;if(Array.isArray(t))Ae.each(t,function(t,i){n||Ht.test(e)?s(e,i):ee(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,s)});else if(n||"object"!==i(t))s(e,t);else for(r in t)ee(e+"["+r+"]",t[r],n,s)}function te(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,s=0,r=t.toLowerCase().match(qe)||[];if(ye(n))for(;i=r[s++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function ne(e,t,n,i){function s(a){var l;return r[a]=!0,Ae.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}var r={},o=e===en;return s(t.dataTypes[0])||!r["*"]&&s("*")}function ie(e,t){var n,i,s=Ae.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:i||(i={}))[n]=t[n]);return i&&Ae.extend(!0,e,i),e}function se(e,t,n){for(var i,s,r,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}function re(e,t,n,i){var s,r,o,a,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=u[l+" "+r]||u["* "+r]))for(s in u)if((a=s.split(" "))[1]===r&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[s]:!0!==u[s]&&(r=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}var oe=[],ae=Object.getPrototypeOf,le=oe.slice,ue=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},ce=oe.push,de=oe.indexOf,he={},pe=he.toString,fe=he.hasOwnProperty,ge=fe.toString,me=ge.call(Object),ve={},ye=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_e=function(e){return null!=e&&e===e.window},be=e.document,we={type:!0,src:!0,nonce:!0,noModule:!0},xe="3.7.0",ke=/HTML$/i,Ae=function(e,t){return new Ae.fn.init(e,t)};Ae.fn=Ae.prototype={jquery:xe,constructor:Ae,length:0,toArray:function(){return le.call(this)},get:function(e){return null==e?le.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Ae.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Ae.each(this,e)},map:function(e){return this.pushStack(Ae.map(this,function(t,n){return e.call(t,n,t)}
vendor: 7,297 bytes, line 5
5))},slice:function(){return this.pushStack(le.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Ae.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Ae.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ce,sort:oe.sort,splice:oe.splice},Ae.extend=Ae.fn.extend=function(){var e,t,n,i,s,r,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||ye(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(u&&i&&(Ae.isPlainObject(i)||(s=Array.isArray(i)))?(n=o[t],r=s&&!Array.isArray(n)?[]:s||Ae.isPlainObject(n)?n:{},s=!1,o[t]=Ae.extend(u,r,i)):void 0!==i&&(o[t]=i));return o},Ae.extend({expando:"jQuery"+(xe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==pe.call(e))&&(!(t=ae(e))||"function"==typeof(n=fe.call(t,"constructor")&&t.constructor)&&ge.call(n)===me)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){n(e,{nonce:t&&t.nonce},i)},each:function(e,t){var n,i=0;if(s(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,s=e.nodeType;if(s){if(1===s||9===s||11===s)return e.textContent;if(3===s||4===s)return e.nodeValue}else for(;t=e[i++];)n+=Ae.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?Ae.merge(n,"string"==typeof e?[e]:e):ce.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:de.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!ke.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,s=e.length;i<n;i++)e[s++]=t[i];return e.length=s,e},grep:function(e,t,n){for(var i=[],s=0,r=e.length,o=!n;s<r;s++)!t(e[s],s)!==o&&i.push(e[s]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(s(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return ue(a)},guid:1,support:ve}),"function"==typeof Symbol&&(Ae.fn[Symbol.iterator]=oe[Symbol.iterator]),Ae.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){he["[object "+t+"]"]=t.toLowerCase()});var Ee=oe.pop,Ce=oe.sort,Te=oe.splice,Se="[\\x20\\t\\r\\n\\f]",De=new RegExp("^"+Se+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Se+"+$","g");Ae.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var Oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Ae.escapeSelector=function(e){return(e+"").replace(Oe,o)};var Le=be,$e=ce;!function(){function t(){try{return O.activeElement}catch(e){}}function n(e,t,i,s){var r,o,a,l,u,c,p,m=t&&t.ownerDocument,v=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return i;if(!s&&(h(t),t=t||O,$)){if(11!==v&&(u=ie.exec(e)))if(r=u[1]){if(9===v){if(!(a=t.getElementById(r)))return i;if(a.id===r)return I.call(i,a),i}else if(m&&(a=m.getElementById(r))&&n.contains(t,a)&&a.id===r)return I.call(i,a),i}else{if(u[2])return I.apply(i,t.getElementsByTagName(e)),i;if((r=u[3])&&t.getElementsByClassName)return I.apply(i,t.getElementsByClassName(r)),i}if(!(H[e+" "]||F&&F.test(e))){if(p=e,m=t,1===v&&(Q.test(e)||X.test(e))){for((m=se.test(e)&&d(t.parentNode)||t)==t&&ve.scope||((l=t.getAttribute("id"))?l=Ae.escapeSelector(l):t.setAttribute("id",l=P)),o=(c=f(e)).length;o--;)c[o]=(l?"#"+l:":scope")+" "+g(c[o]);p=c.join(",")}try{return I.apply(i,m.querySelectorAll(p)),i}catch(t){H(e,!0)}finally{l===P&&t.removeAttribute("id")}}}return A(e.replace(De,"$1"),t,i,s)}function i(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function s(e){return e[P]=!0,e}function o(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e){return function(t){return r(t,"input")&&t.type===e}}function l(e){return function(t){return(r(t,"input")||r(t,"button"))&&t.type===e}}function u(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return s(function(t){return t=+t,s(function(n,i){for(var s,r=e([],n.length,t),o=r.length;o--;)n[s=r[o]]&&(n[s]=!(i[s]=n[s]))})})}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function h(e){var t,i=e?e.ownerDocument||e:Le;return i!=O&&9===i.nodeType&&i.documentElement?(L=(O=i).documentElement,$=!Ae.isXMLDoc(O),M=L.matches||L.webkitMatchesSelector||L.msMatchesSelector,Le!=O&&(t=O.defaultView)&&t.top!==t&&t.addEventListener("unload",ue),ve.getById=o(function(e){return L.appendChild(e).id=Ae.expando,!O.getElementsByName||!O.getElementsByName(Ae.expando).length}),ve.disconnectedMatch=o(function(e){return M.call(e,"*")}),ve.scope=o(function(){return O.querySelectorAll(":scope")}),ve.cssHas=o(function(){try{return O.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),ve.getById?(C.filter.ID=function(e){var t=e.replace(re,ae);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&$){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(re,ae);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&$){var n,i,s,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(s=t.getElementsByName(e),i=0;r=s[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),C.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},C.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&$)return t.getElementsByClassName(e)},F=[],o(function(e){var t;L.appendChild(e).innerHTML="<a id='"+P+"' href='' disabled='disabled'></a><select id='"+P+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||F.push("\\["+Se+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]"),e.querySelectorAll(":checked").length||F.push(":checked"),(t=O.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),L.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),(t=O.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||F.push("\\["+Se+"*name"+Se+"*="+Se+"*(?:''|\"\")")}),ve.cssHas||F.push(":has"),F=F.length&&new RegExp(F.join("|")),V=function(e,t){if(e===t)return D=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;
vendor: 5,803 bytes, line 5
5return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ve.sortDetached&&t.compareDocumentPosition(e)===i?e===O||e.ownerDocument==Le&&n.contains(Le,e)?-1:t===O||t.ownerDocument==Le&&n.contains(Le,t)?1:S?de.call(S,e)-de.call(S,t):0:4&i?-1:1)},O):O}function p(){}function f(e,t){var i,s,r,o,a,l,u,c=R[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=C.preFilter;a;){for(o in i&&!(s=K.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),i=!1,(s=X.exec(a))&&(i=s.shift(),r.push({value:i,type:s[0].replace(De," ")}),a=a.slice(i.length)),C.filter)!(s=ee[o].exec(a))||u[o]&&!(s=u[o](s))||(i=s.shift(),r.push({value:i,type:o,matches:s}),a=a.slice(i.length));if(!i)break}return t?a.length:a?n.error(e):R(e,l).slice(0)}function g(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function m(e,t,n){var i=t.dir,s=t.next,o=s||i,a=n&&"parentNode"===o,l=j++;return t.first?function(t,n,s){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,s);return!1}:function(t,n,u){var c,d,h=[N,l];if(u){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(d=t[P]||(t[P]={}),s&&r(t,s))t=t[i]||t;else{if((c=d[o])&&c[0]===N&&c[1]===l)return h[2]=c[2];if(d[o]=h,h[2]=e(t,n,u))return!0}return!1}}function v(e){return e.length>1?function(t,n,i){for(var s=e.length;s--;)if(!e[s](t,n,i))return!1;return!0}:e[0]}function y(e,t,i){for(var s=0,r=t.length;s<r;s++)n(e,t[s],i);return i}function _(e,t,n,i,s){for(var r,o=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,s)||(o.push(r),u&&t.push(a)));return o}function b(e,t,n,i,r,o){return i&&!i[P]&&(i=b(i)),r&&!r[P]&&(r=b(r,o)),s(function(s,o,a,l){var u,c,d,h,p=[],f=[],g=o.length,m=s||y(t||"*",a.nodeType?[a]:a,[]),v=!e||!s&&t?m:_(m,p,e,a,l);if(n?n(v,h=r||(s?e:g||i)?[]:o,a,l):h=v,i)for(u=_(h,f),i(u,[],a,l),c=u.length;c--;)(d=u[c])&&(h[f[c]]=!(v[f[c]]=d));if(s){if(r||e){if(r){for(u=[],c=h.length;c--;)(d=h[c])&&u.push(v[c]=d);r(null,h=[],u,l)}for(c=h.length;c--;)(d=h[c])&&(u=r?de.call(s,d):p[c])>-1&&(s[u]=!(o[u]=d))}}else h=_(h===o?h.splice(g,h.length):h),r?r(null,o,h,l):I.apply(o,h)})}function w(e){for(var t,n,i,s=e.length,r=C.relative[e[0].type],o=r||C.relative[" "],a=r?1:0,l=m(function(e){return e===t},o,!0),u=m(function(e){return de.call(t,e)>-1},o,!0),c=[function(e,n,i){var s=!r&&(i||n!=T)||((t=n).nodeType?l(e,n,i):u(e,n,i));return t=null,s}];a<s;a++)if(n=C.relative[e[a].type])c=[m(v(c),n)];else{if((n=C.filter[e[a].type].apply(null,e[a].matches))[P]){for(i=++a;i<s&&!C.relative[e[i].type];i++);return b(a>1&&v(c),a>1&&g(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(De,"$1"),n,a<i&&w(e.slice(a,i)),i<s&&w(e=e.slice(i)),i<s&&g(e))}c.push(n)}return v(c)}function x(e,t){var n=t.length>0,i=e.length>0,r=function(s,r,o,a,l){var u,c,d,p=0,f="0",g=s&&[],m=[],v=T,y=s||i&&C.find.TAG("*",l),b=N+=null==v?1:Math.random()||.1,w=y.length;for(l&&(T=r==O||r||l);f!==w&&null!=(u=y[f]);f++){if(i&&u){for(c=0,r||u.ownerDocument==O||(h(u),o=!$);d=e[c++];)if(d(u,r||O,o)){I.call(a,u);break}l&&(N=b)}n&&((u=!d&&u)&&p--,s&&g.push(u))}if(p+=f,n&&f!==p){for(c=0;d=t[c++];)d(g,m,r,o);if(s){if(p>0)for(;f--;)g[f]||m[f]||(m[f]=Ee.call(a));m=_(m)}I.apply(a,m),l&&!s&&m.length>0&&p+t.length>1&&Ae.uniqueSort(a)}return l&&(N=b,T=v),g};return n?s(r):r}function k(e,t){var n,i=[],s=[],r=q[e+" "];if(!r){for(t||(t=f(e)),n=t.length;n--;)(r=w(t[n]))[P]?i.push(r):s.push(r);(r=q(e,x(s,i))).selector=e}return r}function A(e,t,n,i){var s,r,o,a,l,u="function"==typeof e&&e,c=!i&&f(e=u.selector||e);if(n=n||[],1===c.length){if((r=c[0]=c[0].slice(0)).length>2&&"ID"===(o=r[0]).type&&9===t.nodeType&&$&&C.relative[r[1].type]){if(!(t=(C.find.ID(o.matches[0].replace(re,ae),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(s=ee.needsContext.test(e)?0:r.length;s--&&(o=r[s],!C.relative[a=o.type]);)if((l=C.find[a])&&(i=l(o.matches[0].replace(re,ae),se.test(r[0].type)&&d(t.parentNode)||t))){if(r.splice(s,1),!(e=i.length&&g(r)))return I.apply(n,i),n;break}}return(u||k(e,c))(i,t,!$,n,!t||se.test(e)&&d(t.parentNode)||t),n}var E,C,T,S,D,O,L,$,F,M,I=$e,P=Ae.expando,N=0,j=0,B=i(),R=i(),q=i(),H=i(),V=function(e,t){return e===t&&(D=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="(?:\\\\[\\da-fA-F]{1,6}"+Se+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+Se+"*("+W+")(?:"+Se+"*([*^$|!~]?=)"+Se+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+Se+"*\\]",G=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",Y=new RegExp(Se+"+","g"),K=new RegExp("^"+Se+"*,"+Se+"*"),X=new RegExp("^"+Se+"*([>+~]|"+Se+")"+Se+"*"),Q=new RegExp(Se+"|>"),J=new RegExp(G),Z=new RegExp("^"+W+"$"),ee={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Se+"*(even|odd|(([+-]|)(\\d*)n|)"+Se+"*(?:([+-]|)"+Se+"*(\\d+)|))"+Se+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Se+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Se+"*((?:-\\d)?\\d*)"+Se+"*\\)|)(?=[^-]|$)","i")},te=/^(?:input|select|textarea|button)$/i,ne=/^h\d$/i,ie=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,se=/[+~]/,re=new RegExp("\\\\[\\da-fA-F]{1,6}"+Se+"?|\\\\([^\\r\\n\\f])","g"),ae=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ue=function(){h()},ce=m(function(e){return!0===e.disabled&&r(e,"fieldset")},{dir:"parentNode",next:"legend"});try{I.apply(oe=le.call(Le.childNodes),Le.childNodes),oe[Le.childNodes.length].nodeType}catch(e){I={apply:function(e,t){$e.apply(e,le.call(t))}
vendor: 5,986 bytes, lines 5-6
5,call:function(e){$e.apply(e,le.call(arguments,1))}}}for(E in n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if(h(e),$&&!H[t+" "]&&(!F||!F.test(t)))try{var i=M.call(e,t);if(i||ve.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){H(t,!0)}return n(t,O,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!=O&&h(e),Ae.contains(e,t)},n.attr=function(e,t){(e.ownerDocument||e)!=O&&h(e);var n=C.attrHandle[t.toLowerCase()],i=n&&fe.call(C.attrHandle,t.toLowerCase())?n(e,t,!$):void 0;return void 0!==i?i:e.getAttribute(t)},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Ae.uniqueSort=function(e){var t,n=[],i=0,s=0;if(D=!ve.sortStable,S=!ve.sortStable&&le.call(e,0),Ce.call(e,V),D){for(;t=e[s++];)t===e[s]&&(i=n.push(s));for(;i--;)Te.call(e,n[i],1)}return S=null,e},Ae.fn.uniqueSort=function(){return this.pushStack(Ae.uniqueSort(le.apply(this)))},C=Ae.expr={cacheLength:50,createPseudo:s,match:ee,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,ae),e[3]=(e[3]||e[4]||e[5]||"").replace(re,ae),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ee.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,ae).toLowerCase();return"*"===e?function(){return!0}:function(e){return r(e,t)}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+Se+")"+e+"("+Se+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(s){var r=n.attr(s,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(Y," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,s){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===i&&0===s?function(e){return!!e.parentNode}:function(t,n,u){var c,d,h,p,f,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=l&&t.nodeName.toLowerCase(),y=!u&&!l,_=!1;if(m){if(o){for(;g;){for(h=t;h=h[g];)if(l?r(h,v):1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&y){for(_=(p=(c=(d=m[P]||(m[P]={}))[e]||[])[0]===N&&c[1])&&c[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(_=p=0)||f.pop();)if(1===h.nodeType&&++_&&h===t){d[e]=[N,p,_];break}}else if(y&&(_=p=(c=(d=t[P]||(t[P]={}))[e]||[])[0]===N&&c[1]),!1===_)for(;(h=++p&&h&&h[g]||(_=p=0)||f.pop())&&(!(l?r(h,v):1===h.nodeType)||!++_||(y&&((d=h[P]||(h[P]={}))[e]=[N,_]),h!==t)););return(_-=s)===i||_%i===0&&_/i>=0}}},PSEUDO:function(e,t){var i,r=C.pseudos[e]||C.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return r[P]?r(t):r.length>1?(i=[e,e,"",t],C.setFilters.hasOwnProperty(e.toLowerCase())?s(function(e,n){for(var i,s=r(e,t),o=s.length;o--;)e[i=de.call(e,s[o])]=!(n[i]=s[o])}):function(e){return r(e,0,i)}):r}},pseudos:{not:s(function(e){var t=[],n=[],i=k(e.replace(De,"$1"))
6;return i[P]?s(function(e,t,n,s){for(var r,o=i(e,null,s,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,s,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:s(function(e){return function(t){return n(e,t).length>0}}),contains:s(function(e){return e=e.replace(re,ae),function(t){return(t.textContent||Ae.text(t)).indexOf(e)>-1}}),lang:s(function(e){return Z.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(re,ae).toLowerCase(),function(t){var n;do{if(n=$?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===t()&&O.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(e){return r(e,"input")&&!!e.checked||r(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ne.test(e.nodeName)},input:function(e){return te.test(e.nodeName)},button:function(e){return r(e,"input")&&"button"===e.type||r(e,"button")},text:function(e){var t;return r(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},C.pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[E]=a(E);for(E in{submit:!0,reset:!0})C.pseudos[E]=l(E);p.prototype=C.filters=C.pseudos,C.setFilters=new p,ve.sortStable=P.split("").sort(V).join("")===P,h(),ve.sortDetached=o(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),Ae.find=n,Ae.expr[":"]=Ae.expr.pseudos,Ae.unique=Ae.uniqueSort,n.compile=k,n.select=A,n.setDocument=h,n.escape=Ae.escapeSelector,n.getText=Ae.text,n.isXML=Ae.isXMLDoc,n.selectors=Ae.expr,n.support=Ae.supp
vendor: 4,935 bytes, line 6
6ort,n.uniqueSort=Ae.uniqueSort}();var Fe=function(e,t,n){for(var i=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&Ae(e).is(n))break;i.push(e)}return i},Me=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Ie=Ae.expr.match.needsContext,Pe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Ae.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Ae.find.matchesSelector(i,e)?[i]:[]:Ae.find.matches(e,Ae.grep(t,function(e){return 1===e.nodeType}))},Ae.fn.extend({find:function(e){var t,n,i=this.length,s=this;if("string"!=typeof e)return this.pushStack(Ae(e).filter(function(){for(t=0;t<i;t++)if(Ae.contains(s[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)Ae.find(e,s[t],n);return i>1?Ae.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&Ie.test(e)?Ae(e):e||[],!1).length}});var Ne,je=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Ae.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||Ne,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:je.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof Ae?t[0]:t,Ae.merge(this,Ae.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:be,!0)),Pe.test(i[1])&&Ae.isPlainObject(t))for(i in t)ye(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(s=be.getElementById(i[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ye(e)?void 0!==n.ready?n.ready(e):e(Ae):Ae.makeArray(e,this)}).prototype=Ae.fn,Ne=Ae(be);var Be=/^(?:parents|prev(?:Until|All))/,Re={children:!0,contents:!0,next:!0,prev:!0};Ae.fn.extend({has:function(e){var t=Ae(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Ae.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,s=this.length,r=[],o="string"!=typeof e&&Ae(e);if(!Ie.test(e))for(;i<s;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&Ae.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?Ae.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?de.call(Ae(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Ae.uniqueSort(Ae.merge(this.get(),Ae(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Ae.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Fe(e,"parentNode")},parentsUntil:function(e,t,n){return Fe(e,"parentNode",n)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return Fe(e,"nextSibling")},prevAll:function(e){return Fe(e,"previousSibling")},nextUntil:function(e,t,n){return Fe(e,"nextSibling",n)},prevUntil:function(e,t,n){return Fe(e,"previousSibling",n)},siblings:function(e){return Me((e.parentNode||{}).firstChild,e)},children:function(e){return Me(e.firstChild)},contents:function(e){return null!=e.contentDocument&&ae(e.contentDocument)?e.contentDocument:(r(e,"template")&&(e=e.content||e),Ae.merge([],e.childNodes))}},function(e,t){Ae.fn[e]=function(n,i){var s=Ae.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=Ae.filter(i,s)),this.length>1&&(Re[e]||Ae.uniqueSort(s),Be.test(e)&&s.reverse()),this.pushStack(s)}});var qe=/[^\x20\t\r\n\f]+/g;Ae.Callbacks=function(e){e="string"==typeof e?u(e):Ae.extend({},e);var t,n,s,r,o=[],a=[],l=-1,c=function(){for(r=r||e.once,s=t=!0;a.length;l=-1)for(n=a.shift();++l<o.length;)!1===o[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},d={add:function(){return o&&(n&&!t&&(l=o.length-1,a.push(n)),function t(n){Ae.each(n,function(n,s){ye(s)?e.unique&&d.has(s)||o.push(s):s&&s.length&&"string"!==i(s)&&t(s)})}(arguments),n&&!t&&c()),this},remove:function(){return Ae.each(arguments,function(e,t){for(var n;(n=Ae.inArray(t,o,n))>-1;)o.splice(n,1),n<=l&&l--}),this},has:function(e){return e?Ae.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},Ae.extend({Deferred:function(t){var n=[["notify","progress",Ae.Callbacks("memory"),Ae.Callbacks("memory"),2],["resolve","done",Ae.Callbacks("once memory"),Ae.Callbacks("once memory"),0,"resolved"],["reject","fail",Ae.Callbacks("once memory"),Ae.Callbacks("once memory"),1,"rejected"]],i="pe
6nding",s={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return Ae.Deferred(function(t){Ae.each(n,function(n,i){var s=ye(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=s&&s.apply(this,arguments);e&&ye(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,s?[e]:arguments)})}),e=null}).promise()},then:function(t,i,s){function r(t,n,i,s){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<o)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,ye(u)?s?u.call(e,r(o,n,c,s),r(o,n,d,s)):(o++,u.call(e,r(o,n,c,s),r(o,n,d,s),r(o,n,c,n.notifyWith))):(i!==c&&(a=void 0,l=[e]),(s||n.resolveWith)(a,l))}},h=s?u:function(){try{u()}catch(e){Ae.Deferred.exceptionHook&&Ae.Deferred.exceptionHook(e,h.error),t+1>=o&&(i!==d&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?h():(Ae.Deferred.getErrorHook?h.error=Ae.Deferred.getErrorHook():Ae.Deferred.getStackHook&&(h.error=Ae.Deferred.getStackHook()),e.setTimeout(h)
vendor: 12,132 bytes, line 6
6)}}var o=0;return Ae.Deferred(function(e){n[0][3].add(r(0,e,ye(s)?s:c,e.notifyWith)),n[1][3].add(r(0,e,ye(t)?t:c)),n[2][3].add(r(0,e,ye(i)?i:d))}).promise()},promise:function(e){return null!=e?Ae.extend(e,s):s}},r={};return Ae.each(n,function(e,t){var o=t[2],a=t[5];s[t[1]]=o.add,a&&o.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=o.fireWith}),s.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),s=le.call(arguments),r=Ae.Deferred(),o=function(e){return function(n){i[e]=this,s[e]=arguments.length>1?le.call(arguments):n,--t||r.resolveWith(i,s)}};if(t<=1&&(h(e,r.done(o(n)).resolve,r.reject,!t),"pending"===r.state()||ye(s[n]&&s[n].then)))return r.then();for(;n--;)h(s[n],o(n),r.reject);return r.promise()}});var He=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Ae.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&He.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Ae.readyException=function(t){e.setTimeout(function(){throw t})};var Ve=Ae.Deferred();Ae.fn.ready=function(e){return Ve.then(e).catch(function(e){Ae.readyException(e)}),this},Ae.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Ae.readyWait:Ae.isReady)||(Ae.isReady=!0,!0!==e&&--Ae.readyWait>0||Ve.resolveWith(be,[Ae]))}}),Ae.ready.then=Ve.then,"complete"===be.readyState||"loading"!==be.readyState&&!be.documentElement.doScroll?e.setTimeout(Ae.ready):(be.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var ze=function(e,t,n,s,r,o,a){var l=0,u=e.length,c=null==n;if("object"===i(n))for(l in r=!0,n)ze(e,t,l,n[l],!0,o,a);else if(void 0!==s&&(r=!0,ye(s)||(a=!0),c&&(a?(t.call(e,s),t=null):(c=t,t=function(e,t,n){return c.call(Ae(e),n)})),t))for(;l<u;l++)t(e[l],n,a?s:s.call(e[l],l,t(e[l],n)));return r?e:c?t.call(e):u?t(e[0],n):o},We=/^-ms-/,Ue=/-([a-z])/g,Ge=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};m.uid=1,m.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Ge(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,s=this.cache(e);if("string"==typeof t)s[g(t)]=n;else for(i in t)s[g(i)]=t[i];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][g(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(g):(t=g(t))in i?[t]:t.match(qe)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||Ae.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!Ae.isEmptyObject(t)}};var Ye=new m,Ke=new m,Xe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Qe=/[A-Z]/g;Ae.extend({hasData:function(e){return Ke.hasData(e)||Ye.hasData(e)},data:function(e,t,n){return Ke.access(e,t,n)},removeData:function(e,t){Ke.remove(e,t)},_data:function(e,t,n){return Ye.access(e,t,n)},_removeData:function(e,t){Ye.remove(e,t)}}),Ae.fn.extend({data:function(e,t){var n,i,s,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(s=Ke.get(r),1===r.nodeType&&!Ye.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=g(i.slice(5)),y(r,i,s[i]));Ye.set(r,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){Ke.set(this,e)}):ze(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Ke.get(r,e))||void 0!==(n=y(r,e))?n:void 0;this.each(function(){Ke.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ke.remove(this,e)})}}),Ae.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Ye.get(e,t),n&&(!i||Array.isArray(n)?i=Ye.access(e,t,Ae.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Ae.queue(e,t),i=n.length,s=n.shift(),r=Ae._queueHooks(e,t),o=function(){Ae.dequeue(e,t)};"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===t&&n.unshift("inprogress"),delete r.stop,s.call(e,o,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ye.get(e,n)||Ye.access(e,n,{empty:Ae.Callbacks("once memory").add(function(){Ye.remove(e,[t+"queue",n])})})}}),Ae.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Ae.queue(this[0],e):void 0===t?this:this.each(function(){var n=Ae.queue(this,e,t);Ae._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Ae.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Ae.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,s=Ae.Deferred(),r=this,o=this.length,a=function(){--i||s.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Ye.get(r[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),s.promise(t)}});var Je=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ze=new RegExp("^(?:([+-])=|)("+Je+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],tt=be.documentElement,nt=function(e){return Ae.contains(e.ownerDocument,e)},it={composed:!0};tt.getRootNode&&(nt=function(e){return Ae.contains(e.ownerDocument,e)||e.getRootNode(it)===e.ownerDocument});var st=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&nt(e)&&"none"===Ae.css(e,"display")},rt={};Ae.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){st(this)?Ae(this).show():Ae(this).hide()})}});var ot,at,lt=/^(?:checkbox|radio)$/i,ut=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ct=/^$|^module$|\/(?:java|ecma)script/i;ot=be.createDocumentFragment().appendChild(be.createElement("div")),(at=be.createElement("input")).setAttribute("type","radio"),at.setAttribute("checked","checked"),at.setAttribute("name","t"),ot.appendChild(at),ve.checkClone=ot.cloneNode(!0).cloneNode(!0).lastChild.checked,ot.innerHTML="<textarea>x</textarea>",ve.noCloneChecked=!!ot.cloneNode(!0).lastChild.defaultValue,ot.innerHTML="<option></option>",ve.option=!!ot.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,ve.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var ht=/<|&#?\w+;/,pt=/^([^.]*)(?:\.(.+)|)/;Ae.event={global:{},add:function(e,t,n,i,s){var r,o,a,l,u,c,d,h,p,f,g,m=Ye.get(e);if(Ge(e))for(n.handler&&(n=(r=n).handler,s=r.selector),s&&Ae.find.matchesSelector(tt,s),n.guid||(n.guid=Ae.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==Ae&&Ae.event.triggered!==t.type?Ae.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(qe)||[""]).length;u--;)p=g=(a=pt.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=Ae.event.special[p]||{},p=(s?d.delegateType:d.bindType)||p,d=Ae.event.special[p]||{},c=Ae.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&Ae.expr.match.needsContext.test(s),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,o)||e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,c):h.push(c),Ae.event.global[p]=!0)},remove:function(e,t,n,i,s){var r,o,a,l,u,c,d,h,p,f,g,m=Ye.hasData(e)&&Ye.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(qe)||[""]).length;u--;)if(p=g=(a=pt.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=Ae.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=h.length;r--;)c=h[r],!s&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(r,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||Ae.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)Ae.event.remove(e,p+t[u],n,i,!0);Ae.isEmptyObject(l)&&Ye.remove(e,"handle events")}},dispatch:function(e){var t,n,i,s,r,o,a=new Array(arguments.length),l=Ae.event.fix(e),u=(Ye.get(this,"events")||Object.create(null))[l.type]||[],c=Ae.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(o=Ae.event.handlers.call(this,l,u),t=0;(s=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,n=0;(r=s.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((Ae.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,s,r,o,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],o={},n=0;n<l;n++)void 0===o[s=(i=t[n]).selector+" "]&&(o[s]=i.needsContext?Ae(s,this).index(u)>-1:Ae.find(s,this,null,[u]).length),o[s]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(Ae.Event.prototype,e,{enumerable:!0,configurable:!0,get:ye(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Ae.expando]?e:new Ae.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return lt.test(t.type)&&t.click&&r(t,"input")&&S(t,"click",!0),!1},trigger:function(e){var t=this||e;return lt.test(t.type)&&t.click&&r(t,"input")&&S(t,"click"),!0},_default:function(e){var t=e.target;return lt.test(t.type)&&t.click&&r(t,"input")&&Ye.get(t,"click")||r(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Ae.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Ae.Event=function(e,t){if(!(this instanceof Ae.Event))return new Ae.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?E:C,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Ae.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[Ae.expando]=!0},Ae.Event.prototype={constructor:Ae.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=E,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=E,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=E,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Ae.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Ae.event.addProp),Ae.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(be.documentMode){var n=Ye.get(this,"handle"),i=Ae.event.fix(e);
vendor: 1,040 bytes, line 6
6i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else Ae.event.simulate(t,e.target,Ae.event.fix(e))}Ae.event.special[e]={setup:function(){var i;if(S(this,e,!0),!be.documentMode)return!1;(i=Ye.get(this,t))||this.addEventListener(t,n),Ye.set(this,t,(i||0)+1)},trigger:function(){return S(this,e),!0},teardown:function(){var e;if(!be.documentMode)return!1;(e=Ye.get(this,t)-1)?Ye.set(this,t,e):(this.removeEventListener(t,n),Ye.remove(this,t))},_default:function(t){return Ye.get(t.target,e)},delegateType:t},Ae.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,s=be.documentMode?this:i,r=Ye.get(s,t);r||(be.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),Ye.set(s,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,s=be.documentMode?this:i,r=Ye.get(s,t)-1;r?Ye.set(s,t,r):(be.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),Ye.remove(s,t))}}}),Ae.each({mouseenter:"mouseover",mouseleave:"mou
6seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Ae.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,s=e.relatedTarget,r=e.handleObj;return s&&(s===i||Ae.contains(i,s))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),Ae.fn.extend({on:function(e,t,n,i){return T(this,e,t,n,i)},one:function(e,t,n,i){return T(this,e,t,n,i,1)},off:function(e,t,n){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Ae(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=C),this.each(function(){Ae.event.remove(this,e,n,t)})}});var ft=/<script|<style|<link/i,gt=/checked\s*(?:[^=]|=\s*.checked.)/i,mt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Ae.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,s,r,o,a=e.cloneNode(!0),l=nt(e);if(!(ve.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Ae.isXMLDoc(e)))for(o=x(a),i=0,s=(r=x(e)).length;i<s;i++)F(r[i],o[i]);if(t)if(n)for(r=r||x(e),o=o||x(a),i=0,s=r.length;i<s;i++)$(r[i],o[i]);else $(e,a);return(o=x(a,"script")).length>0&&k(o,!l&&x(e,"script")),a},cleanData:function(e){for(var t,n,i,s=Ae.event.special,r=0;void 0!==(n=e[r]);r++)if(Ge(n)){if(t=n[Ye.expando]){if(t.events)for(i in t.events)s[i]?Ae.event.remove(n,i):Ae.removeEvent(n,i,t.handle);n[Ye.expando]=void 0}n[Ke.expando]&&(n[Ke.expando]=void 0)}}}),Ae.fn.extend({detach:function(e){return I(this,e,!0)},remove:function(e){return I(this,e)},text:function(e){return ze(this,function(e){return void 0===e?Ae.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return M(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||D(this,e).appendChild(e)})},prepend:function(){return M(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=D(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return M(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return M(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Ae.cleanData(x(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Ae.clone(this,e,t)})},html:function(e){return ze(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ft.test(e)&&!dt[(ut.exec(e)||["",""])[1].toLowerCase()]){e=Ae.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(Ae.cleanData(x(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return M(this,arguments,function(t){var n=this.parentNode;Ae.inArray(this,e)<0&&(Ae.cleanData(x(this)),n&&n.replaceChild(t,this))},e)}}),Ae.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Ae.fn[e]=function(e){for(var n,i=[],s=Ae(e),r=s.length-1,o=0;o<=r;o++)n=o===r?this:this.clone(!0),Ae(s[o])[t](n),ce.apply(i,n.get());return this.pushStack(i)}});var vt=new RegExp("^("+Je+")(?!px)[a-z%]+$","i"),yt=/^--/,_t=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},bt=function(e,t,n){var i,s,r={};for(s in t)r[s]=e.style[s],e.style[s]=t[s];for(s in i=n.call(e),t)e.style[s]=r[s];return i},wt=new RegExp(et.join("|"),"i");!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",tt.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",o=36===n(t.right),s=36===n(t.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),tt.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var i,s,r,o,a,l,u=be.createElement("div"),c=be.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ve.clearCloneStyle="content-box"===c.style.backgroundClip,Ae.extend(ve,{boxSizingReliable:function(){return t(),s},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,n,i,s;return null==a&&(t=be.createElement("table"),n=be.createElement("tr"),i=be.createElement("div"),t.style.cssText="position:absolute;
6left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",tt.appendChild(t).appendChild(n).appendChild(i),s=e.getComputedStyle(n),a=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===n.offsetHeight,tt.removeChild(t)),a}}))}();var xt=["Webkit","Moz","ms"],kt=be.createElement("div").style,At={},Et=/^(none|table(?!-c[ea]).+)/,Ct={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"};Ae.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=P(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,r,o,a=g(t),l=yt.test(t),u=e.style;if(l||(t=B(a)),o=Ae.cssHooks[t]||Ae.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(s=o.get(e,!1,i))?s:u[t];"string"===(r=typeof n)&&(s=Ze.exec(n))&&s[1]&&(n=_(e,t,s),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=s&&s[3]||(Ae.cssNumber[a]?"":"px")),ve.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var s,r,o,a=g(t);return yt.test(t)||(t=B(a)),(o=Ae.cssHooks[t]||Ae.cssHooks[a])&&"get"in o&&(s=o.get(e,!0,n)),void 0===s&&(s=P(e,t,i)),"normal"===s&&t in Tt&&(s=Tt[t]),""===n||n?(r=parseFloat(s),!0===n||isFinite(r)?r||0:s):s}}),Ae.each(["height","width"],function(e,t){Ae.cssHooks[t]={get:function(e,n,i){if(n)return!Et.test(Ae.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?H(e,t,i):bt(e,Ct,function(){return H(e,t,i)})},set:function(e,n,i){var s,r=_t(e),o=!ve.scrollboxSize()&&"absolute"===r.position,a=(o||i)&&"border-box"===Ae.css(e,"boxSizing",!1,r),l=i?q(e,t,i,a,r):0;return a&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-q(e,t,"border",!1,r)-.5)),l&&(s=Ze.exec(n))&&"px"!==(s[3]||"px")&&(e.style[t]=n,n=Ae.css(e,t)),R(e,n,l)}}}),Ae.cssHooks.marginLeft=N(ve.reliableMarginLeft,function(e,t){if(t)return(parseFloat(P(e,"marginLeft"))||e.getBoundingClientRect().left-bt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),Ae.each({margin:"",padding:"",border:"Width"},function(e,t){Ae.cssHooks[e+t]={expand:function(n){for(var i=0,s={},r="string"==typeof n?n.split(" "):[n];i<4;i++)s[e+et[i]+t]=r[i]||r[i-2]||r[0];return s}},"margin"!==e&&(Ae.cssHooks[e+t].set=R)}),Ae.fn.extend({css:function(e,t){return ze(this,function(e,t,n){var i,s,r={},o=0;if(Array.isArray(t)){for(i=_t(e),s=t.length;o<s;o++)r[t[o]]=Ae.css(e,t[o],!1,i);return r}return void 0!==n?Ae.style(e,t,n):Ae.css(e,t)},e,t,arguments.length>1)}}),Ae.Tween=V,V.prototype={constructor:V,init:function(e,t,n,i,s,r){this.elem=e,this.prop=n,this.easing=s||Ae.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(Ae.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=Ae.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Ae.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Ae.fx.step[e.prop]?Ae.fx.step[e.prop](e):1!==e.elem.nodeType||!Ae.cssHooks[e.prop]&&null==e.elem.style[B(e.prop)]?e.elem[e.prop]=e.now:Ae.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Ae.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Ae.fx=V.prototype.init,Ae.fx.step={};var St,Dt,Ot=/^(?:toggle|show|hide)$/,Lt=/queueHooks$/;Ae.Animation=Ae.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return _(n.elem,e,Ze.exec(t),n),n}]},tweener:function(e,t){ye(e)?(t=e,e=["*"]):e=e.match(qe);for(var n,i=0,s=e.length;i<s;i++)n=e[i],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[Y],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),Ae.speed=function(e,t,n){var i=e&&"object"==typeof e?Ae.extend({},e):{complete:n||!n&&t||ye(e)&&e,duration:e,easing:n&&t||t&&!ye(t)&&t};return Ae.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in Ae.fx.speeds?i.duration=Ae.fx.speeds[i.duration]:i.duration=Ae.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ye(i.old)&&i.old.call(this),i.queue&&Ae.dequeue(this,i.queue)},i},Ae.fn.extend({fadeTo:function(e,t,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var s=Ae.isEmptyObject(e),r=Ae.speed(t,n,i),o=function(){var t=X(this,Ae.extend({},e),r);(s||Ye.get(this,"finish"))&&t.stop(!0)};return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,s=null!=e&&e+"queueHooks",r=Ae.timers,o=Ye.get(this);if(s)o[s]&&o[s].stop&&i(o[s]);else for(s in o)o[s]&&o[s].stop&&Lt.test(s)&&i(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=e&&r[s].queue!==e||(r[s].anim.stop(n),t=!1,r.splice(s,1));!t&&n||Ae.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Ye.get(this),i=n[e+"queue"],s=n[e+"queueHooks"],r=Ae.timers,o=i?i.length:0
7;for(n.finish=!0,Ae.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1)
vendor: 10,154 bytes, line 7
7);for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),Ae.each(["toggle","show","hide"],function(e,t){var n=Ae.fn[t];Ae.fn[t]=function(e,i,s){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,i,s)}}),Ae.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Ae.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),Ae.timers=[],Ae.fx.tick=function(){var e,t=0,n=Ae.timers;for(St=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||Ae.fx.stop(),St=void 0},Ae.fx.timer=function(e){Ae.timers.push(e),Ae.fx.start()},Ae.fx.interval=13,Ae.fx.start=function(){Dt||(Dt=!0,z())},Ae.fx.stop=function(){Dt=null},Ae.fx.speeds={slow:600,fast:200,_default:400},Ae.fn.delay=function(t,n){return t=Ae.fx&&Ae.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var s=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(s)}})},function(){var e=be.createElement("input"),t=be.createElement("select").appendChild(be.createElement("option"));e.type="checkbox",ve.checkOn=""!==e.value,ve.optSelected=t.selected,(e=be.createElement("input")).value="t",e.type="radio",ve.radioValue="t"===e.value}();var $t,Ft=Ae.expr.attrHandle;Ae.fn.extend({attr:function(e,t){return ze(this,Ae.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Ae.removeAttr(this,e)})}}),Ae.extend({attr:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?Ae.prop(e,t,n):(1===r&&Ae.isXMLDoc(e)||(s=Ae.attrHooks[t.toLowerCase()]||(Ae.expr.match.bool.test(t)?$t:void 0)),void 0!==n?null===n?void Ae.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:(e.setAttribute(t,n+""),n):s&&"get"in s&&null!==(i=s.get(e,t))?i:null==(i=Ae.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!ve.radioValue&&"radio"===t&&r(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,s=t&&t.match(qe);if(s&&1===e.nodeType)for(;n=s[i++];)e.removeAttribute(n)}}),$t={set:function(e,t,n){return!1===t?Ae.removeAttr(e,n):e.setAttribute(n,n),n}},Ae.each(Ae.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ft[t]||Ae.find.attr;Ft[t]=function(e,t,i){var s,r,o=t.toLowerCase();return i||(r=Ft[o],Ft[o]=s,s=null!=n(e,t,i)?o:null,Ft[o]=r),s}});var Mt=/^(?:input|select|textarea|button)$/i,It=/^(?:a|area)$/i;Ae.fn.extend({prop:function(e,t){return ze(this,Ae.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Ae.propFix[e]||e]})}}),Ae.extend({prop:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&Ae.isXMLDoc(e)||(t=Ae.propFix[t]||t,s=Ae.propHooks[t]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:e[t]=n:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=Ae.find.attr(e,"tabindex");return t?parseInt(t,10):Mt.test(e.nodeName)||It.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ve.optSelected||(Ae.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Ae.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Ae.propFix[this.toLowerCase()]=this}),Ae.fn.extend({addClass:function(e){var t,n,i,s,r,o;return ye(e)?this.each(function(t){Ae(this).addClass(e.call(this,t,J(this)))}):(t=Z(e)).length?this.each(function(){if(i=J(this),n=1===this.nodeType&&" "+Q(i)+" "){for(r=0;r<t.length;r++)s=t[r],n.indexOf(" "+s+" ")<0&&(n+=s+" ");o=Q(n),i!==o&&this.setAttribute("class",o)}}):this},removeClass:function(e){var t,n,i,s,r,o;return ye(e)?this.each(function(t){Ae(this).removeClass(e.call(this,t,J(this)))}):arguments.length?(t=Z(e)).length?this.each(function(){if(i=J(this),n=1===this.nodeType&&" "+Q(i)+" "){for(r=0;r<t.length;r++)for(s=t[r];n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");o=Q(n),i!==o&&this.setAttribute("class",o)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,i,s,r,o=typeof e,a="string"===o||Array.isArray(e);return ye(e)?this.each(function(n){Ae(this).toggleClass(e.call(this,n,J(this),t),t)}):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Z(e),this.each(function(){if(a)for(r=Ae(this),s=0;s<n.length;s++)i=n[s],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==e&&"boolean"!==o||((i=J(this))&&Ye.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":Ye.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Q(J(n))+" ").indexOf(t)>-1)return!0;return!1}});var Pt=/\r/g;Ae.fn.extend({val:function(e){var t,n,i,s=this[0];return arguments.length?(i=ye(e),this.each(function(n){var s;1===this.nodeType&&(null==(s=i?e.call(this,n,Ae(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=Ae.map(s,function(e){return null==e?"":e+""})),(t=Ae.valHooks[this.type]||Ae.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))})):s?(t=Ae.valHooks[s.type]||Ae.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(s,"value"))?n:"string"==typeof(n=s.value)?n.replace(Pt,""):null==n?"":n:void 0}}),Ae.extend({valHooks:{option:{get:function(e){var t=Ae.find.attr(e,"value");return null!=t?t:Q(Ae.text(e))}},select:{get:function(e){var t,n,i,s=e.options,o=e.selectedIndex,a="select-one"===e.type,l=a?null:[],u=a?o+1:s.length;for(i=o<0?u:a?o:0;i<u;i++)if(((n=s[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!r(n.parentNode,"optgroup"))){if(t=Ae(n).val(),a)return t;l.push(t)}return l},set:function(e,t){for(var n,i,s=e.options,r=Ae.makeArray(t),o=s.length;o--;)((i=s[o]).selected=Ae.inArray(Ae.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),Ae.each(["radio","checkbox"],function(){Ae.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Ae.inArray(Ae(e).val(),t)>-1}},ve.checkOn||(Ae.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Nt=e.location,jt={guid:Date.now()},Bt=/\?/;Ae.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||Ae.error("Invalid XML: "+(i?Ae.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Rt=/^(?:focusinfocus|focusoutblur)$/,qt=function(e){e.stopPropagation()};Ae.extend(Ae.event,{trigger:function(t,n,i,s){var r,o,a,l,u,c,d,h,p=[i||be],f=fe.call(t,"type")?t.type:t,g=fe.call(t,"namespace")?t.namespace.split("."):[];if(o=h=a=i=i||be,3!==i.nodeType&&8!==i.nodeType&&!Rt.test(f+Ae.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),u=f.indexOf(":")<0&&"on"+f,(t=t[Ae.expando]?t:new Ae.Event(f,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:Ae.makeArray(n,[t]),d=Ae.event.special[f]||{},s||!d.trigger||!1!==d.trigger.apply(i,n))){if(!s&&!d.noBubble&&!_e(i)){for(l=d.delegateType||f,Rt.test(l+f)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(i.ownerDocument||be)&&p.push(a.defaultView||a.parentWindow||e)}for(r=0;(o=p[r++])&&!t.isPropagationStopped();)h=o,t.type=r>1?l:d.bindType||f,(c=(Ye.get(o,"events")||Object.create(null))[t.type]&&Ye.get(o,"handle"))&&c.apply(o,n),(c=u&&o[u])&&c.apply&&Ge(o)&&(t.result=c.apply(o,n),!1===t.result&&t.preventDefault());return t.type=f,s||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),n)||!Ge(i)||u&&ye(i[f])&&!_e(i)&&((a=i[u])&&(i[u]=null),Ae.event.triggered=f,t.isPropagationStopped()&&h.addEventListener(f,qt),i[f](),t.isPropagationStopped()&&h.removeEventListener(f,qt),Ae.event.triggered=void 0,a&&(i[u]=a)),t.result}},simulate:function(e,t,n){var i=Ae.extend(new Ae.Event,n,{type:e,isSimulated:!0});Ae.event.trigger(i,null,t)}}),Ae.fn.extend({trigger:function(e,t){return this.each(function(){Ae.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Ae.event.trigger(e,t,n,!0)}});var Ht=/\[\]$/,Vt=/\r?\n/g,zt=/^(?:submit|button|image|reset|file)$/i,Wt=/^(?:input|select|textarea|keygen)/i;Ae.param=function(e,t){var n,i=[],s=function(e,t){var n=ye(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Ae.isPlainObject(e))Ae.each(e,function(){s(this.name,this.value)});else for(n in e)ee(n,e[n],t,s);return i.join("&")},Ae.fn.extend({serialize:function(){return Ae.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Ae.prop(this,"elements");return e?Ae.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Ae(this).is(":disabled")&&Wt.test(this.nodeName)&&!zt.test(e)&&(this.checked||!lt.test(e))}).map(function(e,t){var n=Ae(this).val();return null==n?null:Array.isArray(n)?Ae.map(n,function(e){return{name:t.name,value:e.replace(Vt,"\r\n")}}):{name:t.name,value:n.replace(Vt,"\r\n")}}).get()}});var Ut=/%20/g,Gt=/#.*$/,Yt=/([?&])_=[^&]*/,Kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Xt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Qt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Zt={},en={},tn="*/".concat("*"),nn=be.createElement("a");nn.href=Nt.href,Ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nt.href,type:"GET",isLocal:Xt.test(Nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Ae.parseXML}
vendor: 8,680 bytes, line 7
7,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,Ae.ajaxSettings),t):ie(Ae.ajaxSettings,e)},ajaxPrefilter:te(Zt),ajaxTransport:te(en),ajax:function(t,n){function i(t,n,i,a){var u,h,p,b,w,x=n;c||(c=!0,l&&e.clearTimeout(l),s=void 0,o=a||"",k.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(b=se(f,k,i)),!u&&Ae.inArray("script",f.dataTypes)>-1&&Ae.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=re(f,b,k,u),u?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(Ae.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(Ae.etag[r]=w)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=b.state,h=b.data,u=!(p=b.error))):(p=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(n||x)+"",u?v.resolveWith(g,[h,x,k]):v.rejectWith(g,[k,x,p]),k.statusCode(_),_=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[k,f,u?h:p]),y.fireWith(g,[k,x]),d&&(m.trigger("ajaxComplete",[k,f]),--Ae.active||Ae.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var s,r,o,a,l,u,c,d,h,p,f=Ae.ajaxSetup({},n),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?Ae(g):Ae.event,v=Ae.Deferred(),y=Ae.Callbacks("once memory"),_=f.statusCode||{},b={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Kt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||x;return s&&s.abort(t),i(0,t),this}};if(v.promise(k),f.url=((t||f.url||Nt.href)+"").replace(Jt,Nt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(qe)||[""],null==f.crossDomain){u=be.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=nn.protocol+"//"+nn.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Ae.param(f.data,f.traditional)),ne(Zt,f,n,k),c)return k;for(h in(d=Ae.event&&f.global)&&0===Ae.active++&&Ae.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Qt.test(f.type),r=f.url.replace(Gt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ut,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Bt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Yt,"$1"),p=(Bt.test(r)?"&":"?")+"_="+jt.guid+++p),f.url=r+p),f.ifModified&&(Ae.lastModified[r]&&k.setRequestHeader("If-Modified-Since",Ae.lastModified[r]),Ae.etag[r]&&k.setRequestHeader("If-None-Match",Ae.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+tn+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(g,k,f)||c))return k.abort();if(x="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),s=ne(en,f,n,k)){if(k.readyState=1,d&&m.trigger("ajaxSend",[k,f]),c)return k;f.async&&f.timeout>0&&(l=e.setTimeout(function(){k.abort("timeout")},f.timeout));try{c=!1,s.send(b,i)}catch(e){if(c)throw e;i(-1,e)}}else i(-1,"No Transport");return k},getJSON:function(e,t,n){return Ae.get(e,t,n,"json")},getScript:function(e,t){return Ae.get(e,void 0,t,"script")}}),Ae.each(["get","post"],function(e,t){Ae[t]=function(e,n,i,s){return ye(n)&&(s=s||i,i=n,n=void 0),Ae.ajax(Ae.extend({url:e,type:t,dataType:s,data:n,success:i},Ae.isPlainObject(e)&&e))}}),Ae.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Ae._evalUrl=function(e,t,n){return Ae.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Ae.globalEval(e,t,n)}})},Ae.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye(e)&&(e=e.call(this[0])),t=Ae(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ye(e)?this.each(function(t){Ae(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Ae(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ye(e);return this.each(function(n){Ae(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Ae(this).replaceWith(this.childNodes)}),this}}),Ae.expr.pseudos.hidden=function(e){return!Ae.expr.pseudos.visible(e)},Ae.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Ae.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var sn={0:200,1223:204},rn=Ae.ajaxSettings.xhr();ve.cors=!!rn&&"withCredentials"in rn,ve.ajax=rn=!!rn,Ae.ajaxTransport(function(t){var n,i;if(ve.cors||rn&&!t.crossDomain)return{send:function(s,r){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(o,s[o]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(sn[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),Ae.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Ae.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Ae.globalEval(e),e}}}),Ae.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Ae.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,s){t=Ae("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),be.head.appendChild(t[0])},abort:function(){n&&n()}}});var on,an=[],ln=/(=)\?(?=&|$)|\?\?/;Ae.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=an.pop()||Ae.expando+"_"+jt.guid++;return this[e]=!0,e}}),Ae.ajaxPrefilter("json jsonp",function(t,n,i){var s,r,o,a=!1!==t.jsonp&&(ln.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ln.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=ye(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ln,"$1"+s):!1!==t.jsonp&&(t.url+=(Bt.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return o||Ae.error(s+" was not called"),o[0]},t.dataTypes[0]="json",r=e[s],e[s]=function(){o=arguments},i.always(function(){void 0===r?Ae(e).removeProp(s):e[s]=r,t[s]&&(t.jsonpCallback=n.jsonpCallback,an.push(s)),o&&ye(r)&&r(o[0]),o=r=void 0}),"script"}),ve.createHTMLDocument=((on=be.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===on.childNodes.length),Ae.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ve.createHTMLDocument?((i=(t=be.implementation.createHTMLDocument("")).createElement("base")).href=be.location.href,t.head.appendChild(i)):t=be),r=!n&&[],(s=Pe.exec(e))?[t.createElement(s[1])]:(s=A([e],t,r),r&&r.length&&Ae(r).remove(),Ae.merge([],s.childNodes)));var i,s,r},Ae.fn.load=function(e,t,n){var i,s,r,o=this,a=e.indexOf(" ");return a>-1&&(i=Q(e.slice(a)),e=e.slice(0,a)),ye(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),o.length>0&&Ae.ajax({url:e,type:s||"GET",dataType:"html",data:t}
7).done(function(e){r=arguments,o.html(i?Ae("<div>").append(Ae.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},Ae.expr.pseudos.animated=function(e){return Ae.grep(Ae.timers,function(t){return e===t.elem}).length},Ae.offset={setOffset:function(e,t,n){var i,s,r,o,a,l,u=Ae.css(e,"position"),c=Ae(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=Ae.css(e,"top"),l=Ae.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(o=(i=c.position()).top,s=i.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),ye(t)&&(t=t.call(e,n,Ae.extend({},a))),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+s),"using"in t?t.using.call(e,d):c.css(d)}},Ae.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Ae.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],s={top:0,left:0};if("fixed"===Ae.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Ae.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((s=Ae(e).offset()).top+=Ae.css(e,"borderTopWidth",!0),s.left+=Ae.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-Ae.css(i,"marginTop",!0),left:t.left-s.left-Ae.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Ae.css(e,"position");)e=e.offsetParent;return e||tt})}}),Ae.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Ae.fn[e]=function(i){return ze(this,function(e,i,s){var r;if(_e(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===s)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:s,n?s:r.pageYOffset):e[i]=s},e,i,arguments.length)}}),Ae.each(["top","left"],function(e,t){Ae.cssHooks[t]=N(ve.pixelPosition,function(e,n){if(n)return n=P(e,t),vt.test(n)?Ae(e).position()[t]+"px":n})}),Ae.each({Height:"height",Width:"width"},function(e,t){Ae.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){Ae.fn[i]=function(s,r){var o=arguments.length&&(n||"boolean"!=typeof s),a=n||(!0===s||!0===r?"margin":"border");return ze(this,function(t,n,s){var r;return _e(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===s?Ae.css(t,n,a):Ae.style(t,n,s,a)},t,o?s:void 0,o)}})}),Ae.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Ae.fn[t]=function(e){return this.on(t,e)}}),Ae.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Ae.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){Ae.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var un=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Ae.proxy=function(e,t){var n,i,s;if("string"==typeof t&&(n=e[t],t=e,e=n),ye(e))return i=le.call(arguments,2),s=function(){return e.apply(t||this,i.concat(le.call(arguments)))},s.guid=e.guid=e.guid||Ae.guid++,s},Ae.holdReady=function(e){e?Ae.readyWait++:Ae.ready(!0)},Ae.isArray=Array.isArray,Ae.parseJSON=JSON.parse,Ae.nodeName=r,Ae.isFunction=ye,Ae.isWindow=_e,Ae.camelCase=g,Ae.type=i,Ae.now=Date.now,Ae.isNumeric=function(e){var t=Ae.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Ae.trim=function(e){return null==e?"":(e+"").replace(un,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Ae});var cn=e.jQuery,dn=e.$;return Ae.noConflict=function(t){return e.$===Ae&&(e.$=dn),t&&e.jQuery===Ae&&(e.jQuery=cn),Ae},void 0===t&&(e.jQuery=e.$=Ae),Ae}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){function s(e,t){return w.call(e,t)}function r(e,t){var n,i,s,r,o,a,l,u,c,d,h,p=t&&t.split("/"),f=_.map,g=f&&f["*"]||{};if(e){for(o=(e=e.split("/")).length-1,_.nodeIdCompat&&k.test(e[o])&&(e[o]=e[o].replace(k,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)if("."===(h=e[c]))e.splice(c,1),c-=1;
7else if(".."===h){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((p||g)&&f){for(c=(n=e.split("/")).length;c>0;c-=1){if(i=n.slice(0,c).join("/"),p)for(d=p.length;d>0;d-=1)if((s=f[p.slice(0,d).join("/")])&&(s=s[i])){r=s,a=c;break}if(r)break;!l&&g&&g[i]&&(l=g[i],u=c)}!r&&l&&(r=l,a=u),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function o(e,n){return function(){var i=x.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),f.apply(t,i.concat([e,n]))}}function a(e){return function(t){return r(t,e)}}function l(e){return function(t){v[e]=t}}function u(e){if(s(y,e)){var n=y[e];delete y[e],b[e]=!0,p.apply(t,n)}if(!s(v,e)&&!s(b,e))throw new Error("No "+e);return v[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return e?c(e):[]}function h(e){return function(){return _&&_.config&&_.config[e]||{}}}var p,f,g,m,v={},y={},_={},b={},w=Object.prototype.hasOwnProperty,x=[].slice,k=/\.js$/;g=function(e,t){var n,i=c(e),s=i[0],o=t[1];return e=i[1],s&&(n=u(s=r(s,o))),s?e=n&&n.normalize?n.normalize(e,a(o)):r(e,o):(s=(i=c(e=r(e,o)))[0],e=i[1],s&&(n=u(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},m={require:function(e){return o(e)},exports:function(e){var t=v[e];return void 0!==t?t:v[e]={}},module:function(e){return{id:e,uri:"",exports:v[e],config:h(e)}}},p=function(e,n,i,r){var a,c,h,p,f,_,w,x=[],k=typeof i;if(_=d(r=r||e),"undefined"===k||"function"===k){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(c=(p=g(n[f],_)).f))x[f]=m.require(e);else if("exports"===c)x[f]=m.exports(e),w=!0;else if("module"===c)a=x[f]=m.module(e);else if(s(v,c)||s(y,c)||s(b,c))x[f]=u(c);else{if(!p.p)throw new Error(e+" missing "+c);p.p.load(p.n,o(r,!0),l(c),{}),x[f]=v[c]}h=i?i.apply(v[e],x):void 0,e&&(a&&a.exports!==t&&a.exports!==v[e]?v[e]=a.exports:h===t&&w||(v[e]=h))}else e&&(v[e]=i)},e=n=f=function(e,n,i,s,r){if("string"==typeof e)return m[e]?m[e](n):u(g(e,d(n)).f);if(!e.splice){if((_=e).deps&&f(_.deps,_.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=s,s=r),s?p(t,e,n,i):setTimeout(function(){p(t,e,n,i)},4),f},f.config=function(e){return f(e)},e._defined=v,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),s(v,e)||s(y,e)||(y[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i)}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}var n={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var s in t)i.call(t,s)&&(e[s]=t[s]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,s=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),s=n.prototype.constructor),s.apply(this,arguments)}function s(){this.constructor=i}var r=t(n),o=t(e);n.displayName=e.displayName,i.prototype=new s;for(var a=0;a<o.length;a++){var l=o[a];i.prototype[l]=e.prototype[l]}for(var u=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var s=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),s.apply(this,arguments)}},c=0;c<r.length;c++){var d=r[c];i.prototype[d]=u(d)}return i}},i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1
7)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var s=0;s<n.length;s++){var r=n[s];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),s==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),s=n.style.overflowX,r=n.style.overflowY;return(s!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===s||"scroll"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.__cache={};var s=0;return n.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++s).toString()+"-"+n.generateChars(4),e.setAttribute("data-select2-id",t)),t},n.StoreData=function(e,t,i){var s=n.GetUniqueElementId(e);n.__cache[s]||(n.__cache[s]={}),n.__cache[s][t]=i},n.GetData=function(t,i){var s=n.GetUniqueElementId(t);return i?n.__cache[s]&&null!=n.__cache[s][i]?n.__cache[s][i]:e(t).data(i):n.__cache[s]},n.RemoveData=function(e){var t=n.GetUniqueElementId(e);null!=n.__cache[t]&&delete n.__cache[t],e.removeAttribute("data-select2-id")},n.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter(function(e){return 0===e.indexOf("select2-")});var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter(function(e){return 0!==e.indexOf("select2-")});var s=n.concat(i);e.setAttribute("class",s.join(" "))},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(t.message);i.append(n(s(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],s=this.option(i);t.push(s)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var s=i.map(function(e){return e.id.toString()});n.$results.find(".select2-results__option--selectable").each(function(){var n=e(this),i=t.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&s.indexOf(r)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li")
8;i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var s={role:"option"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var o in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(s["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(s.role="group",s["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),s){var a=s[o];i.setAttribute(o,a)}if(n.children){var l=e(i),u=document.createElement("strong");u.className="select2-results__group",this.template(n,u);for(var c=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);c.push(p)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(c),l.append(u),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n){var i=this,s=n.id+"-results";this.$results.attr("id",s),n.on("results:all",function(e){i.clear(),i.append(e.data),n.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),n.on("results:append",function(e){i.append(e.data),n.isOpen()&&i.setClasses()}),n.on("query",function(e){i.hideMessages(),i.showLoading(e)}
8),n.on("select",function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),n.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),n.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var s=n-1;0===e.length&&(s=0);var r=t.eq(s);r.trigger("mouseenter");var o=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-o);0===s?i.$results.scrollTop(0):a-o<0&&i.$results.scrollTop(l)}}),n.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var s=t.eq(n);s.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),o=s.offset().top+s.outerHeight(!1),a=i.$results.scrollTop()+o-r;0===n?i.$results.scrollTop(0):o>r&&i.$results.scrollTop(a)}}),n.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),n.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,s=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();s?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(n){var s=e(this),r=t.GetData(this,"data");s.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:n,data:r}):i.trigger("close",{}):i.trigger("select",{originalEvent:n,data:r})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(){var n=t.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,s=this.$results.scrollTop()+(i-n),r=i-n;s-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(s)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=s(r):e(n).append(r)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e){var t=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){t.trigger("focus",e)}),this.$selection.on("blur",function(e){t._handleBlur(e)}),this.$selection.on("keydown",function(e){t.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){t.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){t.update(e.data)}),e.on("open",function(){t.$selection.attr("aria-expanded","true"),t.$selection.attr("aria-owns",i),t._attachCloseHandler(e)}),e.on("close",function(){t.$selection.attr("aria-expanded","fal
8se"),t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),t.$selection.trigger("focus"),t._detachCloseHandler(e)}),e.on("enable",function(){t.$selection.attr("tabindex",t._tabindex),t.$selection.attr("aria-disabled","false")}),e.on("disable",function(){t.$selection.attr("tabindex","-1"),t.$selection.attr("aria-disabled","true")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=i[0]&&t.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var s=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),e.on("focus",function(){e.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var s=t.title||t.text;s?n.attr("title",s):n.removeAttr("title")}else this.clear()},i}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,s){var r=this;i.__super__.bind.apply(this,arguments);var o=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!r.isDisabled()){var i=e(this).parent(),s=n.GetData(i[0],"data");r.trigger("unselect",{originalEvent:t,data:s})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){r.isDisabled()||e.stopPropagation()})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var r=e[s],o=this.selectionContainer(),a=this.display(r,o),l=i+n.generateChars(4)+"-";r.id?l+=r.id:l+=n.generateChars(4),o.find(".select2-selection__choice__display").append(a).attr("id",l);var u=r.title||r.text;u&&o.attr("title",u);var c=this.options.get("translations").get("removeItem"),d=o.find(".select2-selection__choice__remove");d.attr("title",c()),d.attr("aria-label",c()),d.attr("aria-describedby",l),n.StoreData(o[0],"data",r),t.pu
8sh(o)}this.$selection.find(".select2-selection__rendered").append(t)}},i}),t.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");var i=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",i),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var s=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:s};if(this.trigger("clear",o),o.prevented)this.$element.val(r);else{for(var a=0;a<s.length;a++)if(o={data:s[a]},this.trigger("unselect",o),o.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var s=this.$selection.find(".select2-selection__rendered").attr("id"),r=this.options.get("translations").get("removeAllItems"),o=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');o.attr("title",r()),o.attr("aria-label",r()),o.attr("aria-describedby",s),n.StoreData(o[0],"data",i),this.$selection.prepend(o),this.$selection[0].classList.add("select2-selection--clearable")}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var s=t.call(this);return this._transferTabIndex(),s.append(this.$searchContainer),s},i.prototype.bind=function(e,i,s){var r=this,o=i.id+"-results",a=i.id+"-container";e.call(this,i,s),r.$search.attr("aria-describedby",a),i.on("open",function(){r.$search.attr("aria-controls",o),r.$search.trigger("focus")}),i.on("close",function(){r.$search.val(""),r.resizeSearch(),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),i.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),i.on("disable",function(){r.$search.prop("disabled",!0)}),i.on("focus",function(){r.$search.trigger("focus")}),i.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var i=r.$selection.find(".select2-selection__choice").last();if(i.length>0){var s=t.GetData(i[0],"data");r.searchRemoveChoice(s),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var l=document.documentMode,u=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){u?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(u&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}})},i.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},i}),t.define("select2/selection/selectionCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasse
8s(n[0],this.$element[0])),n.addClass(i),n},t}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var s=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==r.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});s.$element.trigger(i),-1!==o.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u0152":"OE","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7
8a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u0153":"oe","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f"
8:"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03ce":"\u03c9","\u03c2":"\u03c3","\u2019":"'"}}),t.define("select2/data/base",["../utils"],function(e){function t(){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(n(e))}))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var i=[];(e=[e]).push.apply(e,n);for(var s=0;s<e.length;s++){var r=e[s].id;-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(n){for(var i=[],s=0;s<n.length;s++){var r=n[s].id;r!==e.id&&-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(e){var t=this;this.container=e,e.on("select",function(e){t.select(e.data)}),e.on("unselect",function(e){t.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],s=this;this.$element.children().each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),r=s.item(t),o=s.matches(e,r);null!==o&&i.push(o)}}),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var s=this._normalizeItem(e);return s.element=i,t.StoreData(i,"data",s),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var s=e[0]
9;if("option"===s.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===s.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),o=[],a=0;a<r.length;a++){var l=n(r[a]),u=this.item(l);o.push(u)}i.children=o}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){function t(e){return function(){return n(this).val()==e.id}}for(var i=this,s=this.$element.find("option"),r=s.map(function(){return i.item(n(this)).id}).get(),o=[],a=0;a<e.length;a++){var l=this._normalizeItem(e[a]);if(r.indexOf(l.id)>=0){var u=s.filter(t(l)),c=this.item(u),d=n.extend(!0,{},l,c),h=this.option(d);u.replaceWith(h)}else{var p=this.option(l);if(l.children){var f=this.convertToOptions(l.children);p.append(f)}o.push(p)}}return o},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var s=n.ajax(e);return s.then(t),s.fail(i),s}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var n=r.transport(r,function(n){var i=s.processResults(n,e);s.options.get("debug")&&window.console&&console.error&&(i&&i.results&&Array.isArray(i.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(i)},function(){(!("status"in n)||0!==n.status&&"0"!==n.status)&&s.trigger("results:message",{message:"errorLoading"})});s._request=n}var s=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(e,t,n){var i=n.get("tags"),s=n.get("createTag");void 0!==s&&(this.createTag=s);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;
9o++){var a=i[o],l=this._normalizeItem(a),u=this.option(l);this.$element.append(u)}}return t.prototype.query=function(e,t,n){function i(e,r){for(var o=e.results,a=0;a<o.length;a++){var l=o[a],u=null!=l.children&&!i({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||u)return!r&&(e.data=o,void n(e))}if(r)return!0;var c=s.createTag(t);if(null!=c){var d=s.option(c);d.attr("data-select2-tag","true"),s.addOptions([d]),s.insertTag(o,c)}e.results=o,n(e)}var s=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,i):e.call(this,t,n)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){function s(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}r(n)}function r(e){o.trigger("select",{data:e})}var o=this;n.term=n.term||"";var a=this.tokenizer(n,this.options,s);a.term!==n.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.trigger("focus")),n.term=a.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,s){for(var r=i.get("tokenSeparators")||[],o=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<o.length;){var u=o[a];if(-1!==r.indexOf(u)){var c=o.substr(0,a),d=l(e.extend({},n,{term:c}));null!=d?(s(d),o=o.substr(a+1)||"",a=0):a++}else a++}return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search"),s=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=s,this.$search=s.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(s),n},t.prototype.bind=function(t,n,i){var s=this,r=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._
9keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){e(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),n.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",r),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),n.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||s.$search.trigger("focus")}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))}),n.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var s=t[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var s=this,r="scroll.
9select2."+i.id,o="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(){var n=t.GetData(this,"select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(r+" "+o+" "+a,function(){s._positionDropdown(),s._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var s="scroll.select2."+i.id,r="resize.select2."+i.id,o="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(s),e(window).off(s+" "+r+" "+o)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<r.top-a.height,c=l.bottom>r.bottom+a.height,d={left:r.left,top:o.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(p=h.offset()),d.top-=p.top,d.left-=p.left,n||i||(s="below"),c||!u||n?!u&&c&&n&&(s="below"):s="above",("above"==s||n&&"below"!==s)&&(d.top=o.top-p.top-a.height),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var s=t[i];s.children?n+=e(s.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var s=this.getHighlightedResults();if(!(s.length<1)){var r=e.GetData(s[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/dropdown/dropdownCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("dropdownCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t}),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(n.length>0){var i=n.first(),s=e.GetData(i[0],"data").element;if(s&&s.getAttribute&&"true"===s.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results\u2026"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching\u2026"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(e,t,n,i,s,r,o,a,l,u,c,d,h,p,f,g,m,v,y,_,b,w,x,k,A,E,C,T,S,D){function O(){this.reset()}return O.prototype.apply=function(c){if(null==(c=e.extend(!0,{},this.defaults,c)).dataAdapter&&(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=p:c.dataAdapter=h,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,_)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,m))),null==c.resultsAdapter&&(c.resultsAdapter=t,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,k)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,x)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,C)),c.tags&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,D))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=b;else{var d=u.Decorate(b,w);c.dropdownAdapter=d}0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,E)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,T)),null!=c.dropdownCssClass&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,S)),c.dropdownAdapter=u.Decorate(c.dropdownAdapter,A)}null==c.selectionAdapter&&(c.multiple?c.selectionAdapter=i:c.selectionAdapter=n,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s
9)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,r)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),null!=c.selectionCssClass&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.selectionAdapter=u.Decorate(c.selectionAdapter,l)),c.language=this._resolveLanguage(c.language),c.language.push("en");for(var O=[],L=0;L<c.language.length;L++){var $=c.language[L];-1===O.indexOf($)&&O.push($)}return c.language=O,c.translations=this._processTranslations(c.language,c.debug),c},O.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,s){if(null==i.term||""===i.term.trim())return s;if(s.children&&s.children.length>0){for(var r=e.extend(!0,{},s),o=s.children.length-1;o>=0;o--){null==n(i,s.children[o])&&r.children.splice(o,1)}return r.children.length>0?r:n(i,r)}var a=t(s.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?s:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,s=t.prop("lang"),r=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(s),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r));return e.language=o,e},O.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],s=0;s<n.length;s++)if(i.push(n[s]),"string"==typeof n[s]&&n[s].indexOf("-")>0){var r=n[s].split("-")[0];i.push(r)}return i},O.prototype._processTranslations=function(t,n){for(var i=new c,s=0;s<t.length;s++){var r=new c,o=t[s];if("string"==typeof o)try{r=c.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,r=c.loadPath(o)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(o)?new c(o):o;i.extend(r)}return i},O.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var s=u._convertData(i);e.extend(!0,this.defaults,s)},new O}),t.define("select2/options",["jquery","./defaults","./utils"],function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){function i(e,t){return t.toUpperCase()}var s=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));for(var r={},o=0;o<t[0].attributes.length;o++){var a=t[0].attributes[o].name,l="data-";if(a.substr(0,l.length)==l){var u=a.substring(l.length),c=n.GetData(t[0],u);r[u.replace(/-([a-z])/g,i)]=c}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var d=e.extend(!0,{},n.GetData(t[0]),r);for(var h in d=n._convertData(d))s.indexOf(h)>-1||(e.isPlainObject(this.options[h])?e.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var s=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),s.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var u=this.options.get("dropdownAdapter");this.dropdown=new u(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(s,n.Observable),s.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},s.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},s.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var o=r.split(";"),a=0,l=o.length;a<l;a+=1){var u=o[a].replace(/\s/g,"").match(n);if(null!==u&&u.length>=1)return u[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},s.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},s.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(t){e._syncA(),e._syncS(t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},s.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},s.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)})},s.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},s.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},s.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container[0].classList.add("select2-container--open")}),this.on("close",function(){e.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){e.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){e.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){e.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}
9),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},s.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},s.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0)for(var n=0;n<e.addedNodes.length;n++){if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},s.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},s.prototype.trigger=function(e,t){var n=s.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},s.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},s.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},s.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},s.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},s.prototype.focus=function(){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},s.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},s.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},s.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},s.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),
10n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},s.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},s}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,s){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,o=Array.prototype.slice.call(arguments,1
10);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,o)}),r.indexOf(t)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n}),function(e){var t=0,n=function(){return(new Date).getTime()+t++},i=function(e){return"["+e+"]$1"},s=function(e){return"_"+e+"_$1"},r=function(t,n,i){return t?"function"==typeof t?(n&&console.warn("association-insertion-traversal is ignored, because association-insertion-node is given as a function."),t(i)):"string"==typeof t?n?i[n](t):"this"==t?i:e(t):void 0:i.parent()};e(document).on("click",".add_fields",function(t){t.preventDefault(),t.stopPropagation();var o=e(this),a=o.data("association"),l=o.data("associations"),u=o.data("association-insertion-template"),c=o.data("association-insertion-method")||o.data("association-insertion-position")||"before",d=o.data("association-insertion-node"),h=o.data("association-insertion-traversal"),p=parseInt(o.data("count"),10),f=new RegExp("\\[new_"+a+"\\](.*?\\s)","g"),g=new RegExp("_new_"+a+"_(\\w*)","g"),m=n(),v=u.replace(f,i(m)),y=[],_=t;for(v==u&&(f=new RegExp("\\[new_"+l+"\\](.*?\\s)","g"),g=new RegExp("_new_"+l+"_(\\w*)","g"),v=u.replace(f,i(m))),y=[v=v.replace(g,s(m))],p=isNaN(p)?1:Math.max(p,1),p-=1;p;)m=n(),v=(v=u.replace(f,i(m))).replace(g,s(m)),y.push(v),p-=1;var b=r(d,h,o);b&&0!=b.length||console.warn("Couldn't find the element to insert the template. Make sure your `data-association-insertion-*` on `link_to_add_association` is correct."),e.each(y,function(t,n){var i=e(n),s=jQuery.Event("cocoon:before-insert");if(b.trigger(s,[i,_]),!s.isDefaultPrevented()){b[c](i);b.trigger("cocoon:after-insert",[i,_])}})}),e(document).on("click",".remove_fields.dynamic, .remove_fields.existing",function(t){var n=e(this),i=n.data("wrapper-class")||"nested-fields",s=n.closest("."+i),r=s.parent(),o=t;t.preventDefault(),t.stopPropagation();var a=jQuery.Event("cocoon:before-remove");if(r.trigger(a,[s,o]),!a.isDefaultPrevented()){var l=r.data("remove-timeout")||0;setTimeout(function(){n.hasClass("dynamic")?s.detach():(n.prev("input[type=hidden]").val("1"),s.hide()),r.trigger("cocoon:after-remove",[s,o])},l)}}),e(document).on("ready page:load turbolinks:load",function(){e(".remove_fields.existing.destroyed").each(function(){var t=e(this),n=t.data("wrapper-class")||"nested-fields";t.closest("."+n).hide()})})}(jQuery),$(function(){$(document).on("cocoon:after-insert",function(e,t){if(t.hasClass("bucket-rule-condition")){t.find(".criteria-select-wrapper select").trigger("change")}else if(t.hasClass("bucket-rule-condition-group")){t.find('.add_fields[data-association="bucket_rule_condition"]').trigger("click")}}),$(document).on("cocoon:before-remove",function(e,t){if(t.addClass("removed"),t.hasClass("bucket-rule-condition")){0===t.parent().find(".bucket-rule-condition:not(.removed)").length&&t.parent().find(".remove-or-condition-group").trigger("click")}})}),$(function(){function e(e){const n=e.target.value,s=$(this).closest(".bucket-rule-condition-wrapper");i(n,s[0]),t(n,s),s.find(".bucket-rule-condition-operator-wrapper select").trigger("change")}function t(e,t){const n="year_started"===e,i=t.find(".bucket-rule-condition-operator-wrapper select");n?i.find("option").each(function(){"is"===this.value||"is_not"===this.value?$(this).prop("disabled",!1):$(this).prop("disabled",!0)}):i.find("option").each(function(){$(this).prop("disabled",!1)})}function n(e){const t=e.target.value,n=$(this).closest(".bucket-rule-condition-wrapper").find(".bucket-rule-condition-value-wrapper"),i=n.find(".active select");switch(t){case"":case"is_present":n.addClass("d-none");break;case"is":case"is_not":case"contains":n.removeClass("d-none"),i.select2({multiple:!1});break;case"is_in":case"is_not_in":n.removeClass("d-none"),i.select2({multiple:!0})}}function i(e,t){const n=t.querySelector(".credit-score-options-wrapper"),i=t.querySelector(".monthly-revenue-options-wrapper"),s=t.querySelector(".industry-options-wrapper"),r=t.querySelector(".use-of-funds-options-wrapper"),a=t.querySelector(".business-entity-type-options-wrapper"),l=t.querySelector(".borrow-amount-options-wrapper"),u=t.querySelector(".monthly-gross-sales-options-wrapper"),c=t.querySelector(".year-started-options-wrapper"),d=t.querySelector(".time-in-business-options-wrapper"),h=t.querySelector(".free-text-input-wrapper"),p=[n,i,s,r,a,l,u,c,h,d];o("credit_score"===e?n:"year_started"===e?c:"monthly_revenue"===e?i:"industry"===e?s:"use_of_funds"===e?r:"business_entity_type"===e?a:"borrow_amount"===e?l:"monthly_gross_sales"===e?u:"time_in_business"===e?d:h,p)}function s(e){e.classList.add("d-none"),e.classList.remove("active");
10e.querySelectorAll("input, select").forEach(e=>{e.disabled=!0})}function r(e){e.classList.add("active"),e.classList.remove("d-none");e.querySelectorAll("input, select").forEach(e=>{e.disabled=!1})}function o(e,t){t.forEach(t=>{t===e?r(t):s(t)})}const a=".bucket-rule-condition-wrapper .criteria-select-wrapper",l=$(`${a} select`);$(document).on("change",a,e),$(document).on("change",".bucket-rule-condition-operator-wrapper select",n),l.each((e,t)=>{$(t).trigger("change")})}),$(function(){function e(e){$(".enter-address-manually",e).on("click",function(e){e.preventDefault(),e.target.closest(".address-container").querySelectorAll(".address-items").forEach(e=>{e.classList.remove("d-none")}),$(this).addClass("d-none")})}function t(e){const t=$(".business-details-autocomplete",e);t.length&&t.each(function(){const e=this,t=new google.maps.places.Autocomplete(e);t.setComponentRestrictions({country:"us"}),e.placeholder="",t.addListener("place_changed",function(){const n=t.getPlace();if(n.address_components){let t="",i="",s="",r="";$.each(n.address_components,function(e,n){const o=n.types;o.includes("street_number")&&(t+=n.long_name+" "),o.includes("route")&&(t+=n.long_name),(o.includes("locality")||o.includes("sublocality")||o.includes("postal_town"))&&(i=n.long_name),o.includes("administrative_area_level_1")&&(s=n.long_name),o.includes("postal_code")&&(r=n.long_name)});let o=e.closest(".address-container"),a=o.querySelectorAll(".address-items"),l=o.querySelectorAll(".enter-address-manually");a.forEach(e=>{$(".street_address",e).val(t),$(".city",e).val(i),$(".state",e).find("option").each(function(){if($(this).text()===s)return $(this).prop("selected",!0),!1}),$(".zip",e).val(r),e.classList.remove("d-none")}),l.forEach(e=>{e.classList.add("d-none")})}})})}window.enterAddressManually=e,window.initGooglePlacesAutocomplete=t}),$(document).ready(function(){enterAddressManually(),initGooglePlacesAutocomplete()}),document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector(".with-spinner");e&&e.addEventListener("click",function(t){t.preventDefault(),document.getElementById("spinner").style.display="flex",e.classList.add("disabled"),setTimeout(()=>{window.location.href=e.href},1e3)})}
10),window.ordinalize=function(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])},function(){var e=".generic-lead-attachment-uploader",t=".uploader-select-file-btn";$(document).on("drop",e,function(e){e.preventDefault(),e.stopPropagation();var t=e.originalEvent.dataTransfer.files,n=$(this).find('input[type="file"]');n[0].files=t,n.trigger("change")}),$(document).on("dragover",e,function(e){e.preventDefault(),e.stopPropagation(),this.classList.add("dragging")}),$(document).on("dragleave",e,function(e){e.preventDefault(),e.stopPropagation(),this.classList.remove("dragging")});var n=e+' input[type="file"]';$(document).on("change",n,function(){$(this).closest("form").submit()}),$(document).on("click",t,function(t){t.preventDefault(),$(this).closest(e).find('input[type="file"]').trigger("click")})}(),function(){"use strict";function e(e){function t(){var e=s.querySelector(".loan-carousel__slide");if(!e)return s.clientWidth;var t=window.getComputedStyle(s),n=parseFloat(t.columnGap||t.gap)||0;return e.getBoundingClientRect().width+n}function n(){var e=s.querySelectorAll(".loan-carousel__slide");if(!e.length)return s.scrollWidth-s.clientWidth;var t,n=e[e.length-1],i=s.scrollWidth-s.clientWidth;return t=-1!==window.getComputedStyle(n).scrollSnapAlign.indexOf("center")?n.offsetLeft+n.offsetWidth/2-s.clientWidth/2:n.offsetLeft+n.offsetWidth-s.clientWidth,Math.max(0,Math.min(t,i))}function i(){var t=s.scrollLeft<=1,i=s.scrollLeft>=n()-1;r&&(r.disabled=t),o&&(o.disabled=i),e.classList.toggle("is-at-start",t),e.classList.toggle("is-at-end",i)}var s=e.querySelector(".loan-carousel__track"),r=e.querySelector(".loan-carousel__arrow--prev"),o=e.querySelector(".loan-carousel__arrow--next");if(s){r&&r.addEventListener("click",function(){s.scrollBy({left:-t(),behavior:"smooth"})}),o&&o.addEventListener("click",function(){var e=Math.min(s.scrollLeft+t(),n());s.scrollTo({left:e,behavior:"smooth"})}),s.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i);var a=!1,l=!1,u=0,c=0;s.addEventListener("pointerdown",function(e){void 0!==e.button&&0!==e.button||(a=!0,l=!1,u=e.clientX,c=s.scrollLeft,s.classList.add("is-dragging"))}),window.addEventListener("pointermove",function(e){if(a){var t=e.clientX-u;Math.abs(t)>3&&(l=!0),s.scrollLeft=c-t}}),window.addEventListener("pointerup",function(){a&&(a=!1,s.classList.remove("is-dragging"))}),s.addEventListener("click",function(e){l&&(e.preventDefault(),e.stopPropagation(),l=!1)},!0),i()}}function t(){for(var t=document.querySelectorAll("[data-loan-carousel]"),n=0;n<t.length;n++)e(t[n])}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}(),$(document).on("change",".additional-document-type-select",function(){var e=$
10(this).closest("form").find(".additional-document-attachment-uploader-wrapper");this.value?e.removeClass("d-none"):e.addClass("d-none")}),document.addEventListener("DOMContentLoaded",function(){plotChart("leadsDailyChart"),plotChart("leadsWeeklyChart"),plotChart("leadsMonthlyChart"),document.querySelectorAll('[data-bs-toggle="pill"]').forEach(function(e){e.addEventListener("shown.bs.tab",function(e){plotChart("leads"+capitalizeFirstLetter(e.target.getAttribute("href").replace("#",""))+"Chart")})})}),document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("organic_lead_quality");if(!e)return;let t=[],n=JSON.parse(e.getAttribute("data-weeks")||"[]"),i=JSON.parse(e.getAttribute("data-buckets")||"[]"),s=JSON.parse(e.getAttribute("data-bucket-data")||"{}"),r=JSON.parse(e.getAttribute("data-bucket-names")||"{}");i.forEach(function(e){let i={x:n,y:s[e],name:r[e]||e,type:"bar"};t.push(i)});let o={barmode:"stack",plot_bgcolor:"transparent",paper_bgcolor:"transparent",margin:{t:20,l:40,r:40,b:40}};Plotly.newPlot("organic_lead_quality",t,o,{displayModeBar:!1,displaylogo:!1,responsive:!0})}),document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("login-analytics");if(!e)return;let t=[],n=JSON.parse(e.getAttribute("data-analytics-series")),i=JSON.parse(e.getAttribute("data-analytics-keys")),s=JSON.parse(e.getAttribute("data-analytics-data")),r=JSON.parse(e.getAttribute("data-analytics-labels"));i.forEach(function(e){let i={x:n,y:s[e],name:r[e]||e,type:"bar"};t.push(i)});let o={barmode:"stack",plot_bgcolor:"transparent",paper_bgcolor:"transparent",margin:{t:20,l:40,r:40,b:40}};Plotly.newPlot("login-analytics",t,o,{displayModeBar:!1,displaylogo:!1,responsive:!0})});import{posthog}from"posthog-js";void 0!==window.POSTHOG_API_KEY&&(posthog.init(window.POSTHOG_API_KEY,{api_host:window.POSTHOG_API_HOST||"https://data.clarifycapital.com"}),window.POSTHOG_USER_ID&&posthog.identify(window.POSTHOG_USER_ID),window.RESET_POSTHOG&&posthog.reset());import Rails from"@rails/ujs";Rails.start();const tooltipTriggerList=document.querySelectorAll('[data-bs-toggle="tooltip"]'),tooltipList=[...tooltipTriggerList].map(e=>new bootstrap.Tooltip(e)),popoverTriggerList=document.querySelectorAll('[data-bs-toggle="popover"]'),popoverList=[...popoverTriggerList].map(e=>new bootstrap.Popover(e)),navbar=document.querySelector("nav.navbar");window.onscroll=()=>{window.scrollY>1?navbar.classList.add("nav-scrolled"):navbar.classList.remove("nav-scrolled")},window.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll("img[data-src]");Array.from(e).forEach(e=>{e.src=e.getAttribute("data-src")})},!1);for(var videos=document.querySelectorAll(".youtube-video"),i=0;i<videos.length;i++)videos[i].addEventListener("click",function(){var e=document.createElement("iframe");e.setAttribute("allowfullscreen",""),e.setAttribute("allow","autoplay; fullscreen"),e.setAttribute("src","https://www.youtube.com/embed/"+this.dataset.videoid+"?autoplay=1&rel=0&modestbranding=1"),this.innerHTML="",this.appendChild(e),event.preventDefault()});document.querySelectorAll("input.number").length&&document.querySelectorAll("input.number").forEach(e=>{e.addEventListener("keyup",t=>{t.which>=37&&t.which<=40||(e.value=e.value.replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,","))})}),window.initPhoneMasks=function(){document.querySelectorAll("#phone, .phone").forEach(e=>{IMask(e,{mask:"(000) 000-0000"})})},window.initSecurityNumberMasks=function(){document.querySelectorAll(".social-security-number").forEach(e=>{IMask(e,{mask:"000-00-0000"})})},window.initFederalTaxIdMasks=function(){document.querySelectorAll(".federal-tax-id").forEach(e=>{IMask(e,{mask:"00-0000000"})})},window.initPhoneMasks(),window.initSecurityNumberMasks(),window.initFederalTaxIdMasks();const scrollSpy=new bootstrap.ScrollSpy(document.body,{target:"#table-of-contents"});

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.