PageSourceSearch

https://www.cusanus-gymnasium.de/:res/modules/module-view.de.js?fp=fca9d3504aa4

js cusanus-gymnasium.de collected 2026-10-06 18:29:32 UTC 1,736,995 bytes, 41,349 lines download raw bytes

1
2(function(){
3const __ionasCoreApi=(function(exports){
4'use strict';
5const COMMUNICATION_ERROR_MESSAGE="Communication with server failed";
6const COMMUNICATION_ERROR_CODE="communication_error";
7const COOKIES_NOT_SUPPORT_MESSAGE="Cookies must be permitted";
8const COOKIES_NOT_SUPPORT_CODE="cookies_not_supported";
9const BAD_CAPTCHA_RESPONSE_MESSAGE="Bad captcha response";
10const BAD_CAPTCHA_RESPONSE_CODE="bad_captcha_response";
11const PASSWORD_EXPIRED_RESPONSE_MESSAGE="Password expired response";
12const PASSWORD_EXPIRED_RESPONSE_CODE="password_expired_response";
13const VERIFICATION_CODE_NEEDED_RESPONSE_CODE="verification_code_needed";
14const BAD_CREDENTIALS_MESSAGE="Bad credentials";
15const BAD_CREDENTIALS_CODE="bad_credentials";
16const COOKIE_CONSENT_INFO_UNAVAILABLE_MESSAGE="Cookie consent information unavailable";
17const COOKIE_CONSENT_INFO_UNAVAILABLE_CODE="cookies_consent_information_unavailable";
18const CUSTOM_ERROR_CODE="custom_error";
19class XhrError extends Error{
20statusText;
21status;
22constructor(message,statusText,status){
23super(message);
24this.statusText=statusText;
25this.status=status;
26}
27}
28class SessionError extends Error{
29code;
30constructor(message,code){
31super(message);
32this.code=code;
33}
34}
35function isCommunicationError(error){
36return error
37&&(error instanceof SessionError||("code"in error))
38&&COMMUNICATION_ERROR_CODE===error.code;
39}
40function isLacksCookieSupportError(error){
41return error
42&&(error instanceof SessionError||("code"in error))
43&&COOKIES_NOT_SUPPORT_CODE===error.code;
44}
45function isBadCaptchaResponseError(error){
46return error
47&&(error instanceof SessionError||("code"in error))
48&&BAD_CAPTCHA_RESPONSE_CODE===error.code;
49}
50function isPasswordExpiredResponseError(error){
51return error
52&&(error instanceof SessionError||("code"in error))
53&&PASSWORD_EXPIRED_RESPONSE_CODE===error.code;
54}
55function isBadCredentialsError(error){
56return error
57&&(error instanceof SessionError||("code"in error))
58&&BAD_CREDENTIALS_CODE===error.code;
59}
60function isCookieConsentInfoUnavailableError(error){
61return error
62&&(error instanceof SessionError||("code"in error))
63&&COOKIE_CONSENT_INFO_UNAVAILABLE_CODE===error.code;
64}
65let ionasInfoElement=document.getElementById('ionasInfo');
66var ionasInfo=ionasInfoElement?JSON.parse(ionasInfoElement.innerText):undefined;
67function getBaseUrl(){
68if(ionasInfo?.context){
69return ionasInfo.context;
70}
71const ionas4=window.ionas4;
72if(ionas4?.contextPath){
73return"";
74}
75if(document.head.dataset.contextPath!==undefined){
76return document.head.dataset.contextPath;
77}
78const baseLink=document.head.querySelector("link[rel='base']");
79if(baseLink&&baseLink.href){
80return baseLink.href;
81}
82return"";
83}
84function getBackendBaseUrl(){
85if(ionasInfo?.backend){
86return ionasInfo.backend;
87}
88const baseLink=document.head.querySelector("link[rel='base']");
89if(baseLink&&baseLink.href){
90return baseLink.href;
91}
92return"";
93}
94let coreCookieInfo=null;
95async function requestCoreCookieInfo(){
96let response=await fetch(getBaseUrl()+'/:ionasinfo/coreCookieConsent',{headers:{'Accept':'application/json'}});
97if(response.ok){
98return response.json();
99}
100throw new SessionError(COOKIE_CONSENT_INFO_UNAVAILABLE_MESSAGE,COOKIE_CONSENT_INFO_UNAVAILABLE_CODE);
101}
102function getCoreCookieInfo(){
103return coreCookieInfo=(coreCookieInfo||requestCoreCookieInfo());
104}
105window.addEventListener('cookie-consent-issued',()=>{
106window.IONAS_CSRF_TOKEN=undefined;
107window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES=undefined;
108});
109async function requestCsrfToken(permitCookies){
110let url=new URL(getBaseUrl()+'/:ionasinfo/csrfToken',location.href);
111if(permitCookies){
112let coreCookieInfo=await getCoreCookieInfo();
113url.searchParams.append(coreCookieInfo.cookieName,coreCookieInfo.cookieValue);
114}
115let response=await fetch(url.href,{headers:{'Accept':'application/json'}});
116if(response.ok){
117return response.json();
118}
119throw new Error("Cannot fetch CSRF token. "+response.statusText);
120}
121function getCsrfToken(permitCookies){
122if(permitCookies){
123window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES??=requestCsrfToken(permitCookies).finally(()=>{
124window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES=undefined;
125});
126return window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES;
127}
128else{
129window.IONAS_CSRF_TOKEN??=requestCsrfToken(permitCookies).finally(()=>{
130window.IONAS_CSRF_TOKEN=undefined;
131});
132return window.IONAS_CSRF_TOKEN;
133}
134}
135async function getCsrfHeaders(permitCookies){
136let csrfToken=await getCsrfToken(permitCookies);
137const csrfHeaders=new Headers();
138csrfHeaders.append(csrfToken.headerName,csrfToken.token);
139return csrfHeaders;
140}
141async function loadLoginOptions(targetUri){
142const url=getBaseUrl()+'/:users/login/options?targetUri='+encodeURIComponent(targetUri||"");
143return fetch(url,{headers:{'Accept':'application/json'}})
144.then(response=>{
145if(response.ok){
146return response.json();
147}
148else{
149throw new SessionError(`${response.status} ${response.statusText}`,COMMUNICATION_ERROR_CODE);
150}
151});
152}
153async function determineCaptchaIsNecessary(){
154return fetch(getBaseUrl()+'/:users/login/displayCaptcha',{headers:{'Accept':'application/json'}})
155.then(response=>{
156if(response.ok){
157return response.json();
158}
159else{
160throw new SessionError(`${response.status} ${response.statusText}`,COMMUNICATION_ERROR_CODE);
161}
162})
163.then(answer=>{
164return{
165type:answer.type,
166display:answer.display,
167until:answer.until?new Date(answer.until):null
168};
169});
170}
171async function login(username,password,optionsOrCaptcha){
172document.cookie="menu-slide-in=false; path=/";
173if(!(";"+document.cookie+";").match(/;\s*menu-slide-in=false;/)){
174return Promise.reject(new SessionError(COOKIES_NOT_SUPPORT_MESSAGE,COOKIES_NOT_SUPPORT_CODE));
175}
176const data=new FormData();
177data.append("login",username);
178data.append("password",password);
179data.append("dologin","true");
180let contextPath=getBaseUrl().match(/^(?:https?:\/\/[^\/]+)?(\/[^\/]+)$/)?.[1];
181data.append("deviceId",localStorage.getItem("ionas-device-id"+contextPath)||localStorage.getItem("ionas-device-id")||"");
182return getCoreCookieInfo().then(cookieInfo=>{
183let captcha;
184let verificationCode;
185if(typeof optionsOrCaptcha==="string"){
186captcha=optionsOrCaptcha;
187}
188else if(optionsOrCaptcha!==undefined){
189captcha=optionsOrCaptcha.captcha;
190verificationCode=optionsOrCaptcha.verificationCode;
191}
192data.append(cookieInfo.cookieName,cookieInfo.cookieValue);
193if(captcha){
194data.append("g-recaptcha-response",captcha);
195}
196if(verificationCode){
197data.append("verificationCode",verificationCode);
198}
199return getCsrfHeaders(true)
200.then(csrfHeaders=>{
201let headers=new Headers(csrfHeaders);
202headers.set("Accept","application/json");
203return fetch(getBaseUrl()+'/:users/login/checkSession',{
204method:'POST',
205body:data,
206headers:headers
207});
208})
209.then(response=>{
210if(response.ok){
211return response.json();
212}
213else{
214throw new SessionError(`${response.status} ${response.statusText}`,COMMUNICATION_ERROR_CODE);
215}
216})
217.then(answer=>{
218if(answer.__errorNo&&answer.__errorNo===42){
219throw new SessionError(BAD_CAPTCHA_RESPONSE_MESSAGE,BAD_CAPTCHA_RESPONSE_CODE);
220}
221else if(answer.__errorNo&&answer.__errorNo===46){
222throw new SessionError(PASSWORD_EXPIRED_RESPONSE_MESSAGE,PASSWORD_EXPIRED_RESPONSE_CODE);
223}
224else if(answer.__errorNo&&answer.__errorNo===47){
225throw new SessionError(answer.__error,VERIFICATION_CODE_NEEDED_RESPONSE_CODE);
226}
227else if(answer.__error){
228throw new SessionError(answer.__error,CUSTOM_ERROR_CODE);
229}
230else if(answer!==false){
231let result=answer;
232if(result.deviceId!=null){
233localStorage.setItem("ionas-device-id"+contextPath,result.deviceId);
234}
235return result;
236}
237else{
238throw new SessionError(BAD_CREDENTIALS_MESSAGE,BAD_CREDENTIALS_CODE);
239}
240});
241});
242}
243async function loadCurrentSessionInfo(){
244return fetch(getBaseUrl()+'/:users/login/sessionInfo',{headers:{'Accept':'application/json'}})
245.then(response=>{
246if(response.ok){
247return response.json();
248}
249else{
250throw new SessionError(`${response.status} ${response.statusText}`,COMMUNICATION_ERROR_CODE);
251}
252});
253}
254function getLogoutUrl(){
255return ionasInfo?.logoutRoot||getBaseUrl()+'/:logout';
256}
257async function logout(){
258return logoutCurrentWindow('/');
259}
260async function logoutCurrentWindow(logoutSuccessPath){
261let csrfHeaders=await getCsrfHeaders();
262let headers=new Headers(csrfHeaders);
263headers.set("Accept","application/json");
264return fetch(getLogoutUrl()+(logoutSuccessPath||"/"),{
265method:'POST',
266headers:headers
267});
268}
269async function forgotPassword(email){
270return getCsrfHeaders()
271.then(csrfHeaders=>{
272let headers=new Headers(csrfHeaders);
273headers.set("Accept","application/json");
274const data=new FormData();
275data.append("email",email);
276return fetch(getBaseUrl()+'/:users/login/forgotPassword',{
277method:'POST',
278body:data,
279headers:headers
280});
281})
282.then(response=>{
283if(response.ok){
284return response.json();
285}
286else{
287throw new SessionError(`${response.status} ${response.statusText}`,COMMUNICATION_ERROR_CODE);
288}
289})
290.then(response=>{
291return response;
292});
293}
294function eventually(func,timeout,immediate){
295let timeoutHandle=undefined;
296if(immediate){
297return function(...args){
298if(!timeoutHandle){
299func.apply(this,args);
300timeoutHandle=setTimeout(function(){
301timeoutHandle=undefined;
302},timeout||0);
303}
304};
305}
306else{
307return function(...args){
308if(timeoutHandle){
309clearTimeout(timeoutHandle);
310}
311timeoutHandle=setTimeout((function(){
312timeoutHandle=undefined;
313func.apply(this,args);
314}).bind(this),timeout||0);
315};
316}
317}
318function once(func){
319let called=false;
320return function(...args){
321if(!called){
322called=true;
323return func.apply(this,args);
324}
325};
326}
327function debounced(func,immediate){
328return eventually(func,300,immediate);
329}
330function delayedAsync(func,delay,restartDelay){
331let active=false;
332let retrigger=false;
333let timeout=null;
334let timeoutTime=0;
335let finish=function(){
336active=false;
337if(retrigger){
338retrigger=false;
339executeNow();
340}
341};
342let executeNow=function(){
343active=true;
344try{
345func().catch(function(error){throw error;});
346}
347finally{
348finish();
349}
350};
351let trigger=function(){
352timeout=null;
353if(active){
354retrigger=true;
355}
356else{
357executeNow();
358}
359};
360return function(customDelay){
361let actualDelay=customDelay!=null?customDelay:delay;
362let newTimeoutTime=Date.now()+actualDelay;
363if(timeout!=null){
364if(restartDelay||actualDelay<0||newTimeoutTime<timeoutTime){
365clearTimeout(timeout);
366timeout=null;
367}
368else{
369return;
370}
371}
372if(actualDelay<0){
373trigger();
374}
375else{
376timeout=setTimeout(trigger,actualDelay);
377timeoutTime=newTimeoutTime;
378}
379};
380}
381function delayedAsyncRestart(func,delay){
382return delayedAsync(func,delay,true);
383}
384function findElement(elementList,predicate,thisArg){
385if(elementList){
386for(let i=0,n=elementList.length;i<n;i++){
387if(predicate.call(thisArg,elementList[i],i,elementList)){
388return elementList[i];
389}
390}
391}
392return null;
393}
394async function whenReadyState(state,document){
395return new Promise(function(resolve){
396let effectiveState=state||'complete';
397let effectiveDocument=document||window.document;
398function onReadyStateChange(){
399if(effectiveDocument.readyState===effectiveState){
400resolve(effectiveDocument);
401effectiveDocument.removeEventListener('readystatechange',onReadyStateChange);
402}
403}
404effectiveDocument.addEventListener('readystatechange',onReadyStateChange);
405onReadyStateChange();
406});
407}
408function ngAppInvoke(){
409let $rootElement=jQuery('[ng-app]');
410let $injector=$rootElement.injector();
411return $injector.invoke.apply($injector,arguments);
412}
413exports.BAD_CAPTCHA_RESPONSE_CODE=BAD_CAPTCHA_RESPONSE_CODE;
414exports.BAD_CAPTCHA_RESPONSE_MESSAGE=BAD_CAPTCHA_RESPONSE_MESSAGE;
415exports.BAD_CREDENTIALS_CODE=BAD_CREDENTIALS_CODE;
416exports.BAD_CREDENTIALS_MESSAGE=BAD_CREDENTIALS_MESSAGE;
417exports.COMMUNICATION_ERROR_CODE=COMMUNICATION_ERROR_CODE;
418exports.COMMUNICATION_ERROR_MESSAGE=COMMUNICATION_ERROR_MESSAGE;
419exports.COOKIES_NOT_SUPPORT_CODE=COOKIES_NOT_SUPPORT_CODE;
420exports.COOKIES_NOT_SUPPORT_MESSAGE=COOKIES_NOT_SUPPORT_MESSAGE;
421exports.COOKIE_CONSENT_INFO_UNAVAILABLE_CODE=COOKIE_CONSENT_INFO_UNAVAILABLE_CODE;
422exports.COOKIE_CONSENT_INFO_UNAVAILABLE_MESSAGE=COOKIE_CONSENT_INFO_UNAVAILABLE_MESSAGE;
423exports.CUSTOM_ERROR_CODE=CUSTOM_ERROR_CODE;
424exports.PASSWORD_EXPIRED_RESPONSE_CODE=PASSWORD_EXPIRED_RESPONSE_CODE;
425exports.PASSWORD_EXPIRED_RESPONSE_MESSAGE=PASSWORD_EXPIRED_RESPONSE_MESSAGE;
426exports.SessionError=SessionError;
427exports.VERIFICATION_CODE_NEEDED_RESPONSE_CODE=VERIFICATION_CODE_NEEDED_RESPONSE_CODE;
428exports.XhrError=XhrError;
429exports.debounced=debounced;
430exports.delayedAsync=delayedAsync;
431exports.delayedAsyncRestart=delayedAsyncRestart;
432exports.determineCaptchaIsNecessary=determineCaptchaIsNecessary;
433exports.eventually=eventually;
434exports.findElement=findElement;
435exports.forgotPassword=forgotPassword;
436exports.getBackendBaseUrl=getBackendBaseUrl;
437exports.getBaseUrl=getBaseUrl;
438exports.getCoreCookieInfo=getCoreCookieInfo;
439exports.getCsrfHeaders=getCsrfHeaders;
440exports.getCsrfToken=getCsrfToken;
441exports.ionasInfo=ionasInfo;
442exports.isBadCaptchaResponseError=isBadCaptchaResponseError;
443exports.isBadCredentialsError=isBadCredentialsError;
444exports.isCommunicationError=isCommunicationError;
445exports.isCookieConsentInfoUnavailableError=isCookieConsentInfoUnavailableError;
446exports.isLacksCookieSupportError=isLacksCookieSupportError;
447exports.isPasswordExpiredResponseError=isPasswordExpiredResponseError;
448exports.loadCurrentSessionInfo=loadCurrentSessionInfo;
449exports.loadLoginOptions=loadLoginOptions;
450exports.login=login;
451exports.logout=logout;
452exports.logoutCurrentWindow=logoutCurrentWindow;
453exports.ngAppInvoke=ngAppInvoke;
454exports.once=once;
455exports.whenReadyState=whenReadyState;
456Object.defineProperty(exports,'__esModule',{value:true});
457return exports;
458})({});self.__ionasCoreApi=__ionasCoreApi;
459}());
460self.ionas=(function(ionas,__ionasCoreApi){
461async function getCsrfHeaders(permitCookies){
462let csrfHeadersAsObject={};
463let csrfHeaders=await __ionasCoreApi.getCsrfHeaders(permitCookies);
464csrfHeaders.forEach(function(value,key){csrfHeadersAsObject[key]=value;});
465return csrfHeadersAsObject;
466}
467return Object.assign(ionas,{
468ionasInfo:__ionasCoreApi.ionasInfo,
469getCoreCookieInfo:__ionasCoreApi.getCoreCookieInfo,
470getCsrfToken:__ionasCoreApi.getCsrfToken,
471getCsrfHeaders:getCsrfHeaders,
472eventually:__ionasCoreApi.eventually,
473debounced:__ionasCoreApi.debounced,
474once:__ionasCoreApi.once,
475findElement:__ionasCoreApi.findElement,
476whenReadyState:__ionasCoreApi.whenReadyState,
477delayedAsync:__ionasCoreApi.delayedAsync,
478delayedAsyncRestart:__ionasCoreApi.delayedAsyncRestart,
479doLogout:__ionasCoreApi.logoutCurrentWindow,
480ngAppInvoke:__ionasCoreApi.ngAppInvoke
481});
482}(self.ionas||{},self.__ionasCoreApi));
483var ionas;
484(function(ionas){
485ionas.UMLAUT_MAPPING={
486"ä":"ae",
487"ö":"oe",
488"ü":"ue",
489"ß":"ss",
490"é":"e"
491};
492function normalizeName(name,forFile){
493var normalizedName="";
494var previousIsNonWordCharacter=false;
495name=name.toLowerCase();
496for(var index=0;
496index<name.length;index++){
497var character=name[index];
498if(character.match(/^[a-zA-Z0-9äöüßé]$/)){
499if(previousIsNonWordCharacter&&normalizedName.length>0){
500normalizedName+="-";
501}
502if(ionas.UMLAUT_MAPPING[character]){
503normalizedName+=ionas.UMLAUT_MAPPING[character];
504}
505else{
506normalizedName+=character;
507}
508previousIsNonWordCharacter=false;
509}
510else if(forFile&&"."==character){
511normalizedName+=".";
512previousIsNonWordCharacter=false;
513}
514else{
515previousIsNonWordCharacter=true;
516}
517}
518return normalizedName;
519}
520ionas.normalizeName=normalizeName;
521})(ionas||(ionas={}));self.ionas=(function(ionas){
522var RESIZE_EXPRESSION_PATTERN=new RegExp("(([^:]+):)?(\\d+,\\d+,\\d+,\\d+)?_?(.*)");
523var DATA_DYMANIC_RESIZE_IN_PROGRESS="data-dynamic-resize-in-progress";
524var isSrcsetSupported=(function(){
525var img=new Image();
526return('srcset'in img);
527}());
528async function whenWindowLoaded(){
529return new Promise(function(resolve){
530if(document.readyState==='complete'){
531resolve();
532}else{
533window.addEventListener("load",resolve);
534}
535});
536}
537async function whenDocumentReady(){
538return new Promise(function(resolve,reject){
539if(document.readyState==='interactive'||document.readyState==='c
539omplete'){
540resolve();
541}else{
542document.addEventListener("DOMContentLoaded",resolve);
543}
544});
545}
546function isVisible(element){
547return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length);
548}
549function handleDynamicResize(image){
550var resizeMode=image.getAttribute("data-resize-mode");
551if("dynamic"===resizeMode&&isVisible(image)){
552doDynamicResize(image);
553}
554}
555function doDynamicResize(image){
556if(image.getAttribute("data-src")){
557resizeImageAttribute(image,"data-src");
558}else if(image.getAttribute("src")){
559resizeImageAttribute(image,"src");
560}
561}
562function handleRetinaSupport(image){
563let src=image.getAttribute('data-src');
564if(src){
565const dpr=window.devicePixelRatio;
566if(dpr>1){
567let newSrc=setSrcParam(src,"dpr",dpr);
568image.setAttribute('data-src',newSrc);
569}
570}
571}
572function registerImage(image){
573var lazyMode=image.getAttribute('data-lazy-mode');
574image.removeAttribute('data-lazy-mode');
575var resizeMode=image.getAttribute("data-resize-mode");
576handleRetinaSupport(image);
577handleDynamicResize(image);
578if("dynamic"===resizeMode){
579resizeObserver.observe(image);
580}
581if(lazyMode==='after-load'){
582whenWindowLoaded().then(loadImage.bind(this,image));
583}else if(lazyMode==='on-visible'){
584lazyIntersectionObserver.observe(image);
585}else if(lazyMode==='none'){
586loadImage(image);
587}
588imageSrcObserver.observe(image,imageSrcObserverOptions);
589image.addEventListener('load',function(){
590image.classList.add("complete");
591if("dynamic"===resizeMode){
592image.classList.remove("image-resizing");
593image.removeAttribute(DATA_DYMANIC_RESIZE_IN_PROGRESS);
594}
595});
596}
597function registerImages(images){
598for(var i=0;i<images.length;i++){
599registerImage(images[i]);
600}
601}
602function join(array,seperator){
603return array.filter(function(element){
604return element;
605}).join(seperator);
606}
607function setSrcParam(src,paramName,newParamValue){
608let url=new URL(src,window.location.href);
609let oldParamValue=url.searchParams.get(paramName);
610if(oldParamValue){
611let matches=RESIZE_EXPRESSION_PATTERN.exec(oldParamValue);
612if(matches){
613let hash=matches[2];
614let clipValue=matches[3];
615if(clipValue===undefined){
616hash=undefined;
617}
618newParamValue=join([hash,join([clipValue,newParamValue],'_')],':');
619}
620}
621url.searchParams.set(paramName,newParamValue);
622return url.href;
623}
624function findImageResizeValue(width,height){
625let resizeOptions=window.ionasInfo.resizeOptions;
626let maxAspectRatio=resizeOptions.maxAspectRatio;
627let allowedValues=resizeOptions.allowedValues;
628function constrainValue(value){
629let greaterValues=allowedValues.filter(function(allowedValue){
630return value<=allowedValue;
631});
632return greaterValues.length===0?allowedValues[allowedValues.length-1]:greaterValues[0];
633}
634if(width>0&&height>0){
635let aspectRatio=Math.max(1/maxAspectRatio,Math.min(width/height,maxAspectRatio));
636if(aspectRatio<1.0){
637width=Math.round(height*aspectRatio);
638}else{
639height=Math.round(width/aspectRatio);
640}
641}
642width=constrainValue(width);
643height=constrainValue(height);
644return""+width+"x"+height+"c";
645}
646function resizeImageAttribute(image,attributeName){
647let attributeValue=image.getAttribute(attributeName);
648let newAttributeValue=resizeImageSrc(attributeValue,image.width,image.height);
649if(newAttributeValue!==attributeValue){
650image.setAttribute(DATA_DYMANIC_RESIZE_IN_PROGRESS,"true");
651image.setAttribute(attributeName,newAttributeValue);
652image.classList.add("image-resizing");
653}
654}
655function resizeImageSrc(src,width,height){
656return src&&!src.startsWith("data:")&&!src.startsWith("blob:")&&width>0&&height>0
657?setSrcParam(src,"resize",findImageResizeValue(width,height))
658:src;
659}
660function loadImage(image){
661function switchAttribute(attributeName){
662let dataAttributeName='data-'+attributeName;
663let value=image.getAttribute(dataAttributeName);
664if(value){
665image.setAttribute(attributeName,value);
666image.removeAttribute(dataAttributeName);
667}
668}
669switchAttribute('sizes');
670switchAttribute('srcset');
671if(!isSrcsetSupported||!image.getAttribute('srcset')){
672switchAttribute('src');
673if(!image.complete){
674image.classList.add("i4-image-loading");
675image.addEventListener('load',function(){
676image.classList.remove("i4-image-loading");
677});
678}
679}
680}
681var lazyIntersectionOptions={root:null,rootMargin:"0px",threshold:0.01};
682var lazyIntersectionObserver=new IntersectionObserver(function(intersections,observer){
683intersections.forEach(function(intersection){
684if(intersection.intersectionRatio>0){
685observer.unobserve(intersection.target);
686loadImage(intersection.target);
687}
688});
689},lazyIntersectionOptions);
690function isImage(node){
691return node.nodeType===Node.ELEMENT_NODE&&node.nodeName==="IMG";
692}
693function getObserverTarget(observerEntry){
694return observerEntry.target;
695}
696var imageSrcObserver=new MutationObserver(function(mutations){
697mutations.filter(function(mutation){return mutation.type==="attributes"&&mutation.attributeName==="src";})
698.map(getObserverTarget)
699.filter(isImage)
700.filter(function(image){return!image.hasAttribute(DATA_DYMANIC_RESIZE_IN_PROGRESS);})
701.forEach(function(image){handleDynamicResize(image);});
702});
703var imageSrcObserverOptions={attributes:true,childList:false,characterData:false,subtree:false};
704imageSrcObserver.observe(document.body,imageSrcObserverOptions);
705var resizeObserver=new ResizeObserver(function(entries){
706entries.map(getObserverTarget)
707.filter(isImage)
708.forEach(function(image){
709if(image.resizeTimeoutHandle){
710clearTimeout(image.resizeTimeoutHandle);
711}
712image.resizeTimeoutHandle=setTimeout(function(){
713image.resizeTimeoutHandle=undefined;
714handleDynamicResize(image);
715},500);
716});
717});
718document.body.addEventListener("imageSizeChange",function(e){
719for(var i=0;i<e.images.length;i++){
720handleDynamicResize(e.images[i]);
721}
722});
723whenDocumentReady().then(function registerAllImages(){
724var nodeList=document.querySelectorAll("img");
725for(var i=0;i<nodeList.length;i++){
726registerImage(nodeList[i]);
727}
728});
729var newImagesObserver=new MutationObserver(function(mutations){
730mutations.forEach(function(mutation){
731for(var j=0,m=mutation.addedNodes.length;j<m;j++){
732var node=mutation.addedNodes[j];
733if(node.nodeType===Node.ELEMENT_NODE){
734if(node.nodeName==="IMG"){
735registerImage(node);
736}else{
737var imageNodeList=node.querySelectorAll("img");
738for(var i=0,n=imageNodeList.length;i<n;i++){
739registerImage(imageNodeList[i]);
740}
741}
742}
743}
744});
745});
746newImagesObserver.observe(document.body,{attributes:false,childList:true,characterData:false,subtree:true});
747return Object.assign(ionas,{
748registerImage,
749registerImages,
750handleDynamicResize,
751resizeImageSrc
752});
753}(self.ionas||{}));
754function stopJavascriptEvents(event){
755event.preventDefault();
756event.stopPropagation();
757}
758(function webpackUniversalModuleDefinition(root,factory){
759if(typeof exports==='object'&&typeof module==='object')
760module.exports=factory();
761else if(typeof define==='function'&&define.amd)
762define("whatInput",[],factory);
763else if(typeof exports==='object')
764exports["whatInput"]=factory();
765else
766root["whatInput"]=factory();
767})(this,function(){
768return(function(modules){
769var installedModules={};
770function __webpack_require__(moduleId){
771if(installedModules[moduleId])
772return installedModules[moduleId].exports;
773var module=installedModules[moduleId]={
774exports:{},
775id:moduleId,
776loaded:false
777};
778modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
779module.loaded=true;
780return module.exports;
781}
782__webpack_require__.m=modules;
783__webpack_require__.c=installedModules;
784__webpack_require__.p="";
785return __webpack_require__(0);
786})
787([
788function(module,exports){
789module.exports=(function(){
790var docElem=document.documentElement;
791var currentInput='initial';
792var currentIntent=null;
793var formInputs=[
794'input',
795'select',
796'textarea'
797];
798var ignoreMap=[
79916,
80017,
80118,
80291,
80393
804];
805var inputMap={
806'keyup':'keyboard',
807'mousedown':'mouse',
808'mousemove':'mouse',
809'MSPointerDown':'pointer',
810'MSPointerMove':'pointer',
811'pointerdown':'pointer',
812'pointermove':'pointer',
813'touchstart':'touch'
814};
815var inputTypes=[];
816var isBuffering=false;
817var pointerMap={
8182:'touch',
8193:'touch',
8204:'mouse'
821};
822var touchTimer=null;
823var setUp=function(){
824inputMap[detectWheel()]='mouse';
825addListeners();
826setInput();
827};
828var addListeners=function(){
829if(window.PointerEvent){
830docElem.addEventListener('pointerdown',updateInput);
831docElem.addEventListener('pointermove',setIntent);
832}else if(window.MSPointerEvent){
833docElem.addEventListener('MSPointerDown',updateInput);
834docElem.addEventListener('MSPointerMove',setIntent);
835}else{
836docElem.addEventListener('mousedown',updateInput);
837docElem.addEventListener('mousemove',setIntent);
838if('ontouchstart'in window){
839docElem.addEventListener('touchstart',touchBuffer);
840}
841}
842docElem.addEventListener(detectWheel(),setIntent);
843docElem.addEventListener('keydown',updateInput);
844docElem.addEventListener('keyup',updateInput);
845};
846var updateInput=function(event){
847if(!isBuffering){
848var eventKey=event.which;
849var value=inputMap[event.type];
850if(value==='pointer')value=pointerType(event);
851if(
852currentInput!==value||
853currentIntent!==value
854){
855var activeElem=document.activeElement;
856var activeInput=(
857activeElem&&
858activeElem.nodeName&&
859formInputs.indexOf(activeElem.nodeName.toLowerCase())===-1
860)?true:false;
861if(
862value==='touch'||
863(value==='mouse'&&ignoreMap.indexOf(eventKey)===-1)||
864(value==='keyboard'&&activeInput)
865){
866currentInput=currentIntent=value;
867setInput();
868}
869}
870}
871};
872var setInput=function(){
873docElem.setAttribute('data-whatinput',currentInput);
874docElem.setAttribute('data-whatintent',currentInput);
875if(inputTypes.indexOf(currentInput)===-1){
876inputTypes.push(currentInput);
877docElem.className+=' whatinput-types-'+currentInput;
878}
879};
880var setIntent=function(event){
881if(!isBuffering){
882var value=inputMap[event.type];
883if(value==='pointer')value=pointerType(event);
884if(currentIntent!==value){
885currentIntent=value;
886docElem.setAttribute('data-whatintent',currentIntent);
887}
888}
889};
890var touchBuffer=function(event){
891window.clearTimeout(touchTimer);
892updateInput(event);
893isBuffering=true;
894touchTimer=window.setTimeout(function(){
895isBuffering=false;
896},200);
897};
898var pointerType=function(event){
899if(typeof event.pointerType==='number'){
900return pointerMap[event.pointerType];
901}else{
902return(event.pointerType==='pen')?'touch':event.pointerType;
903}
904};
905var detectWheel=function(){
906return'onwheel'in document.createElement('div')?
907'wheel':
908document.onmousewheel!==undefined?
909'mousewheel':
910'DOMMouseScroll';
911};
912if(
913'addEventListener'in window&&
914Array.prototype.indexOf
915){
916setUp();
917}
918return{
919ask:function(opt){return(opt==='loose')?currentIntent:currentInput;},
920types:function(){return inputTypes;}
921};
922}());
923}
924])
925});
926;
927(function(global,factory){
928"use strict";
929if(typeof module==="object"&&typeof module.exports==="object"){
930module.exports=global.document?
931factory(global,true):
932function(w){
933if(!w.document){
934throw new Error("jQuery requires a window with a document");
935}
936return factory(w);
937};
938}else{
939factory(global);
940}
941})(typeof window!=="undefined"?window:this,function(window,noGlobal){
942"use strict";
943var arr=[];
944var getProto=Object.getPrototypeOf;
945var slice=arr.slice;
946var flat=arr.flat?function(array){
947return arr.flat.call(array);
948}:function(array){
949return arr.concat.apply([],array);
950};
951var push=arr.push;
952var indexOf=arr.indexOf;
953var class2type={};
954var toString=class2type.toString;
955var hasOwn=class2type.hasOwnProperty;
956var fnToString=hasOwn.toString;
957var ObjectFunctionString=fnToString.call(Object);
958var support={};
959var isFunction=function isFunction(obj){
960return typeof obj==="function"&&typeof obj.nodeType!=="number"&&
961typeof obj.item!=="function";
962};
963var isWindow=function isWindow(obj){
964return obj!=null&&obj===obj.window;
965};
966var document=window.document;
967var preservedScriptAttributes={
968type:true,
969src:true,
970nonce:true,
971noModule:true
972};
973function DOMEval(code,node,doc){
974doc=doc||document;
975var i,val,
976script=doc.createElement("script");
977script.text=code;
978if(node){
979for(i in preservedScriptAttributes){
980val=node[i]||node.getAttribute&&node.getAttribute(i);
981if(val){
982script.setAttribute(i,val);
983}
984}
985}
986doc.head.appendChild(script).parentNode.removeChild(script);
987}
988function toType(obj){
989if(obj==null){
990return obj+"";
991}
992return typeof obj==="object"||typeof obj==="function"?
993class2type[toString.call(obj)]||"object":
994typeof obj;
995}
996var version="3.7.1",
997rhtmlSuffix=/HTML$/i,
998jQuery=function(selector,context){
999return new jQuery.fn.init(selector,context);
1000};
1001jQuery.fn=jQuery.prototype={
1002jquery:version,
1003constructor:jQuery,
1004length:0,
1005toArray:function(){
1006return slice.call(this);
1007},
1008get:function(num){
1009if(num==null){
1010return slice.call(this);
1011}
1012return num<0?this[num+this.length]:this[num];
1013},
1014pushStack:function(elems){
1015var ret=jQuery.merge(this.constructor(),elems);
vendor: 141,740 bytes, lines 1016-7540
1016ret.prevObject=this;
1017return ret;
1018},
1019each:function(callback){
1020return jQuery.each(this,callback);
1021},
1022map:function(callback){
1023return this.pushStack(jQuery.map(this,function(elem,i){
1024return callback.call(elem,i,elem);
1025}));
1026},
1027slice:function(){
1028return this.pushStack(slice.apply(this,arguments));
1029},
1030first:function(){
1031return this.eq(0);
1032},
1033last:function(){
1034return this.eq(-1);
1035},
1036even:function(){
1037return this.pushStack(jQuery.grep(this,function(_elem,i){
1038return(i+1)%2;
1039}));
1040},
1041odd:function(){
1042return this.pushStack(jQuery.grep(this,function(_elem,i){
1043return i%2;
1044}));
1045},
1046eq:function(i){
1047var len=this.length,
1048j=+i+(i<0?len:0);
1049return this.pushStack(j>=0&&j<len?[this[j]]:[]);
1050},
1051end:function(){
1052return this.prevObject||this.constructor();
1053},
1054push:push,
1055sort:arr.sort,
1056splice:arr.splice
1057};
1058jQuery.extend=jQuery.fn.extend=function(){
1059var options,name,src,copy,copyIsArray,clone,
1060target=arguments[0]||{},
1061i=1,
1062length=arguments.length,
1063deep=false;
1064if(typeof target==="boolean"){
1065deep=target;
1066target=arguments[i]||{};
1067i++;
1068}
1069if(typeof target!=="object"&&!isFunction(target)){
1070target={};
1071}
1072if(i===length){
1073target=this;
1074i--;
1075}
1076for(;i<length;i++){
1077if((options=arguments[i])!=null){
1078for(name in options){
1079copy=options[name];
1080if(name==="__proto__"||target===copy){
1081continue;
1082}
1083if(deep&&copy&&(jQuery.isPlainObject(copy)||
1084(copyIsArray=Array.isArray(copy)))){
1085src=target[name];
1086if(copyIsArray&&!Array.isArray(src)){
1087clone=[];
1088}else if(!copyIsArray&&!jQuery.isPlainObject(src)){
1089clone={};
1090}else{
1091clone=src;
1092}
1093copyIsArray=false;
1094target[name]=jQuery.extend(deep,clone,copy);
1095}else if(copy!==undefined){
1096target[name]=copy;
1097}
1098}
1099}
1100}
1101return target;
1102};
1103jQuery.extend({
1104expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),
1105isReady:true,
1106error:function(msg){
1107throw new Error(msg);
1108},
1109noop:function(){},
1110isPlainObject:function(obj){
1111var proto,Ctor;
1112if(!obj||toString.call(obj)!=="[object Object]"){
1113return false;
1114}
1115proto=getProto(obj);
1116if(!proto){
1117return true;
1118}
1119Ctor=hasOwn.call(proto,"constructor")&&proto.constructor;
1120return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString;
1121},
1122isEmptyObject:function(obj){
1123var name;
1124for(name in obj){
1125return false;
1126}
1127return true;
1128},
1129globalEval:function(code,options,doc){
1130DOMEval(code,{nonce:options&&options.nonce},doc);
1131},
1132each:function(obj,callback){
1133var length,i=0;
1134if(isArrayLike(obj)){
1135length=obj.length;
1136for(;i<length;i++){
1137if(callback.call(obj[i],i,obj[i])===false){
1138break;
1139}
1140}
1141}else{
1142for(i in obj){
1143if(callback.call(obj[i],i,obj[i])===false){
1144break;
1145}
1146}
1147}
1148return obj;
1149},
1150text:function(elem){
1151var node,
1152ret="",
1153i=0,
1154nodeType=elem.nodeType;
1155if(!nodeType){
1156while((node=elem[i++])){
1157ret+=jQuery.text(node);
1158}
1159}
1160if(nodeType===1||nodeType===11){
1161return elem.textContent;
1162}
1163if(nodeType===9){
1164return elem.documentElement.textContent;
1165}
1166if(nodeType===3||nodeType===4){
1167return elem.nodeValue;
1168}
1169return ret;
1170},
1171makeArray:function(arr,results){
1172var ret=results||[];
1173if(arr!=null){
1174if(isArrayLike(Object(arr))){
1175jQuery.merge(ret,
1176typeof arr==="string"?
1177[arr]:arr
1178);
1179}else{
1180push.call(ret,arr);
1181}
1182}
1183return ret;
1184},
1185inArray:function(elem,arr,i){
1186return arr==null?-1:indexOf.call(arr,elem,i);
1187},
1188isXMLDoc:function(elem){
1189var namespace=elem&&elem.namespaceURI,
1190docElem=elem&&(elem.ownerDocument||elem).documentElement;
1191return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML");
1192},
1193merge:function(first,second){
1194var len=+second.length,
1195j=0,
1196i=first.length;
1197for(;j<len;j++){
1198first[i++]=second[j];
1199}
1200first.length=i;
1201return first;
1202},
1203grep:function(elems,callback,invert){
1204var callbackInverse,
1205matches=[],
1206i=0,
1207length=elems.length,
1208callbackExpect=!invert;
1209for(;i<length;i++){
1210callbackInverse=!callback(elems[i],i);
1211if(callbackInverse!==callbackExpect){
1212matches.push(elems[i]);
1213}
1214}
1215return matches;
1216},
1217map:function(elems,callback,arg){
1218var length,value,
1219i=0,
1220ret=[];
1221if(isArrayLike(elems)){
1222length=elems.length;
1223for(;i<length;i++){
1224value=callback(elems[i],i,arg);
1225if(value!=null){
1226ret.push(value);
1227}
1228}
1229}else{
1230for(i in elems){
1231value=callback(elems[i],i,arg);
1232if(value!=null){
1233ret.push(value);
1234}
1235}
1236}
1237return flat(ret);
1238},
1239guid:1,
1240support:support
1241});
1242if(typeof Symbol==="function"){
1243jQuery.fn[Symbol.iterator]=arr[Symbol.iterator];
1244}
1245jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
1246function(_i,name){
1247class2type["[object "+name+"]"]=name.toLowerCase();
1248});
1249function isArrayLike(obj){
1250var length=!!obj&&"length"in obj&&obj.length,
1251type=toType(obj);
1252if(isFunction(obj)||isWindow(obj)){
1253return false;
1254}
1255return type==="array"||length===0||
1256typeof length==="number"&&length>0&&(length-1)in obj;
1257}
1258function nodeName(elem,name){
1259return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();
1260}
1261var pop=arr.pop;
1262var sort=arr.sort;
1263var splice=arr.splice;
1264var whitespace="[\\x20\\t\\r\\n\\f]";
1265var rtrimCSS=new RegExp(
1266"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$",
1267"g"
1268);
1269jQuery.contains=function(a,b){
1270var bup=b&&b.parentNode;
1271return a===bup||!!(bup&&bup.nodeType===1&&(
1272a.contains?
1273a.contains(bup):
1274a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16
1275));
1276};
1277var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
1278function fcssescape(ch,asCodePoint){
1279if(asCodePoint){
1280if(ch==="\0"){
1281return"\uFFFD";
1282}
1283return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";
1284}
1285return"\\"+ch;
1286}
1287jQuery.escapeSelector=function(sel){
1288return(sel+"").replace(rcssescape,fcssescape);
1289};
1290var preferredDoc=document,
1291pushNative=push;
1292(function(){
1293var i,
1294Expr,
1295outermostContext,
1296sortInput,
1297hasDuplicate,
1298push=pushNative,
1299document,
1300documentElement,
1301documentIsHTML,
1302rbuggyQSA,
1303matches,
1304expando=jQuery.expando,
1305dirruns=0,
1306done=0,
1307classCache=createCache(),
1308tokenCache=createCache(),
1309compilerCache=createCache(),
1310nonnativeSelectorCache=createCache(),
1311sortOrder=function(a,b){
1312if(a===b){
1313hasDuplicate=true;
1314}
1315return 0;
1316},
1317booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+
1318"loop|multiple|open|readonly|required|scoped",
1319identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+
1320"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
1321attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+
1322"*([*^$|!~]?=)"+whitespace+
1323"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+
1324whitespace+"*\\]",
1325pseudos=":("+identifier+")(?:\\(("+
1326"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+
1327"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+
1328".*"+
1329")\\)|)",
1330rwhitespace=new RegExp(whitespace+"+","g"),
1331rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),
1332rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+
1333whitespace+"*"),
1334rdescend=new RegExp(whitespace+"|>"),
1335rpseudo=new RegExp(pseudos),
1336ridentifier=new RegExp("^"+identifier+"$"),
1337matchExpr={
1338ID:new RegExp("^#("+identifier+")"),
1339CLASS:new RegExp("^\\.("+identifier+")"),
1340TAG:new RegExp("^("+identifier+"|[*])"),
1341ATTR:new RegExp("^"+attributes),
1342PSEUDO:new RegExp("^"+pseudos),
1343CHILD:new RegExp(
1344"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+
1345whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+
1346whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),
1347bool:new RegExp("^(?:"+booleans+")$","i"),
1348needsContext:new RegExp("^"+whitespace+
1349"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+
1350"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")
1351},
1352rinputs=/^(?:input|select|textarea|button)$/i,
1353rheader=/^h\d$/i,
1354rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
1355rsibling=/[+~]/,
1356runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+
1357"?|\\\\([^\\r\\n\\f])","g"),
1358funescape=function(escape,nonHex){
1359var high="0x"+escape.slice(1)-0x10000;
1360if(nonHex){
1361return nonHex;
1362}
1363return high<0?
1364String.fromCharCode(high+0x10000):
1365String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);
1366},
1367unloadHandler=function(){
1368setDocument();
1369},
1370inDisabledFieldset=addCombinator(
1371function(elem){
1372return elem.disabled===true&&nodeName(elem,"fieldset");
1373},
1374{dir:"parentNode",next:"legend"}
1375);
1376function safeActiveElement(){
1377try{
1378return document.activeElement;
1379}catch(err){}
1380}
1381try{
1382push.apply(
1383(arr=slice.call(preferredDoc.childNodes)),
1384preferredDoc.childNodes
1385);
1386arr[preferredDoc.childNodes.length].nodeType;
1387}catch(e){
1388push={
1389apply:function(target,els){
1390pushNative.apply(target,slice.call(els));
1391},
1392call:function(target){
1393pushNative.apply(target,slice.call(arguments,1));
1394}
1395};
1396}
1397function find(selector,context,results,seed){
1398var m,i,elem,nid,match,groups,newSelector,
1399newContext=context&&context.ownerDocument,
1400nodeType=context?context.nodeType:9;
1401results=results||[];
1402if(typeof selector!=="string"||!selector||
1403nodeType!==1&&nodeType!==9&&nodeType!==11){
1404return results;
1405}
1406if(!seed){
1407setDocument(context);
1408context=context||document;
1409if(documentIsHTML){
1410if(nodeType!==11&&(match=rquickExpr.exec(selector))){
1411if((m=match[1])){
1412if(nodeType===9){
1413if((elem=context.getElementById(m))){
1414if(elem.id===m){
1415push.call(results,elem);
1416return results;
1417}
1418}else{
1419return results;
1420}
1421}else{
1422if(newContext&&(elem=newContext.getElementById(m))&&
1423find.contains(context,elem)&&
1424elem.id===m){
1425push.call(results,elem);
1426return results;
1427}
1428}
1429}else if(match[2]){
1430push.apply(results,context.getElementsByTagName(selector));
1431return results;
1432}else if((m=match[3])&&context.getElementsByClassName){
1433push.apply(results,context.getElementsByClassName(m));
1434return results;
1435}
1436}
1437if(!nonnativeSelectorCache[selector+" "]&&
1438(!rbuggyQSA||!rbuggyQSA.test(selector))){
1439newSelector=selector;
1440newContext=context;
1441if(nodeType===1&&
1442(rdescend.test(selector)||rleadingCombinator.test(selector))){
1443newContext=rsibling.test(selector)&&testContext(context.parentNode)||
1444context;
1445if(newContext!=context||!support.scope){
1446if((nid=context.getAttribute("id"))){
1447nid=jQuery.escapeSelector(nid);
1448}else{
1449context.setAttribute("id",(nid=expando));
1450}
1451}
1452groups=tokenize(selector);
1453i=groups.length;
1454while(i--){
1455groups[i]=(nid?"#"+nid:":scope")+" "+
1456toSelector(groups[i]);
1457}
1458newSelector=groups.join(",");
1459}
1460try{
1461push.apply(results,
1462newContext.querySelectorAll(newSelector)
1463);
1464return results;
1465}catch(qsaError){
1466nonnativeSelectorCache(selector,true);
1467}finally{
1468if(nid===expando){
1469context.removeAttribute("id");
1470}
1471}
1472}
1473}
1474}
1475return select(selector.replace(rtrimCSS,"$1"),context,results,seed);
1476}
1477function createCache(){
1478var keys=[];
1479function cache(key,value){
1480if(keys.push(key+" ")>Expr.cacheLength){
1481delete cache[keys.shift()];
1482}
1483return(cache[key+" "]=value);
1484}
1485return cache;
1486}
1487function markFunction(fn){
1488fn[expando]=true;
1489return fn;
1490}
1491function assert(fn){
1492var el=document.createElement("fieldset");
1493try{
1494return!!fn(el);
1495}catch(e){
1496return false;
1497}finally{
1498if(el.parentNode){
1499el.parentNode.removeChild(el);
1500}
1501el=null;
1502}
1503}
1504function createInputPseudo(type){
1505return function(elem){
1506return nodeName(elem,"input")&&elem.type===type;
1507};
1508}
1509function createButtonPseudo(type){
1510return function(elem){
1511return(nodeName(elem,"input")||nodeName(elem,"button"))&&
1512elem.type===type;
1513};
1514}
1515function createDisabledPseudo(disabled){
1516return function(elem){
1517if("form"in elem){
1518if(elem.parentNode&&elem.disabled===false){
1519if("label"in elem){
1520if("label"in elem.parentNode){
1521return elem.parentNode.disabled===disabled;
1522}else{
1523return elem.disabled===disabled;
1524}
1525}
1526return elem.isDisabled===disabled||
1527elem.isDisabled!==!disabled&&
1528inDisabledFieldset(elem)===disabled;
1529}
1530return elem.disabled===disabled;
1531}else if("label"in elem){
1532return elem.disabled===disabled;
1533}
1534return false;
1535};
1536}
1537function createPositionalPseudo(fn){
1538return markFunction(function(argument){
1539argument=+argument;
1540return markFunction(function(seed,matches){
1541var j,
1542matchIndexes=fn([],seed.length,argument),
1543i=matchIndexes.length;
1544while(i--){
1545if(seed[(j=matchIndexes[i])]){
1546seed[j]=!(matches[j]=seed[j]);
1547}
1548}
1549});
1550});
1551}
1552function testContext(context){
1553return context&&typeof context.getElementsByTagName!=="undefined"&&context;
1554}
1555function setDocument(node){
1556var subWindow,
1557doc=node?node.ownerDocument||node:preferredDoc;
1558if(doc==document||doc.nodeType!==9||!doc.documentElement){
1559return document;
1560}
1561document=doc;
1562documentElement=document.documentElement;
1563documentIsHTML=!jQuery.isXMLDoc(document);
1564matches=documentElement.matches||
1565documentElement.webkitMatchesSelector||
1566documentElement.msMatchesSelector;
1567if(documentElement.msMatchesSelector&&
1568preferredDoc!=document&&
1569(subWindow=document.defaultView)&&subWindow.top!==subWindow){
1570subWindow.addEventListener("unload",unloadHandler);
1571}
1572support.getById=assert(function(el){
1573documentElement.appendChild(el).id=jQuery.expando;
1574return!document.getElementsByName||
1575!document.getElementsByName(jQuery.expando).length;
1576});
1577support.disconnectedMatch=assert(function(el){
1578return matches.call(el,"*");
1579});
1580support.scope=assert(function(){
1581return document.querySelectorAll(":scope");
1582});
1583support.cssHas=assert(function(){
1584try{
1585document.querySelector(":has(*,:jqfake)");
1586return false;
1587}catch(e){
1588return true;
1589}
1590});
1591if(support.getById){
1592Expr.filter.ID=function(id){
1593var attrId=id.replace(runescape,funescape);
1594return function(elem){
1595return elem.getAttribute("id")===attrId;
1596};
1597};
1598Expr.find.ID=function(id,context){
1599if(typeof context.getElementById!=="undefined"&&documentIsHTML){
1600var elem=context.getElementById(id);
1601return elem?[elem]:[];
1602}
1603};
1604}else{
1605Expr.filter.ID=function(id){
1606var attrId=id.replace(runescape,funescape);
1607return function(elem){
1608var node=typeof elem.getAttributeNode!=="undefined"&&
1609elem.getAttributeNode("id");
1610return node&&node.value===attrId;
1611};
1612};
1613Expr.find.ID=function(id,context){
1614if(typeof context.getElementById!=="undefined"&&documentIsHTML){
1615var node,i,elems,
1616elem=context.getElementById(id);
1617if(elem){
1618node=elem.getAttributeNode("id");
1619if(node&&node.value===id){
1620return[elem];
1621}
1622elems=context.getElementsByName(id);
1623i=0;
1624while((elem=elems[i++])){
1625node=elem.getAttributeNode("id");
1626if(node&&node.value===id){
1627return[elem];
1628}
1629}
1630}
1631return[];
1632}
1633};
1634}
1635Expr.find.TAG=function(tag,context){
1636if(typeof context.getElementsByTagName!=="undefined"){
1637return context.getElementsByTagName(tag);
1638}else{
1639return context.querySelectorAll(tag);
1640}
1641};
1642Expr.find.CLASS=function(className,context){
1643if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){
1644return context.getElementsByClassName(className);
1645}
1646};
1647rbuggyQSA=[];
1648assert(function(el){
1649var input;
1650documentElement.appendChild(el).innerHTML=
1651"<a id='"+expando+"' href='' disabled='disabled'></a>"+
1652"<select id='"+expando+"-\r\\' disabled='disabled'>"+
1653"<option selected=''></option></select>";
1654if(!el.querySelectorAll("[selected]").length){
1655rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")");
1656}
1657if(!el.querySelectorAll("[id~="+expando+"-]").length){
1658rbuggyQSA.push("~=");
1659}
1660if(!el.querySelectorAll("a#"+expando+"+*").length){
1661rbuggyQSA.push(".#.+[+~]");
1662}
1663if(!el.querySelectorAll(":checked").length){
1664rbuggyQSA.push(":checked");
1665}
1666input=document.createElement("input");
1667input.setAttribute("type","hidden");
1668el.appendChild(input).setAttribute("name","D");
1669documentElement.appendChild(el).disabled=true;
1670if(el.querySelectorAll(":disabled").length!==2){
1671rbuggyQSA.push(":enabled",":disabled");
1672}
1673input=document.createElement("input");
1674input.setAttribute("name","");
1675el.appendChild(input);
1676if(!el.querySelectorAll("[name='']").length){
1677rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+
1678whitespace+"*(?:''|\"\")");
1679}
1680});
1681if(!support.cssHas){
1682rbuggyQSA.push(":has");
1683}
1684rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));
1685sortOrder=function(a,b){
1686if(a===b){
1687hasDuplicate=true;
1688return 0;
1689}
1690var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;
1691if(compare){
1692return compare;
1693}
1694compare=(a.ownerDocument||a)==(b.ownerDocument||b)?
1695a.compareDocumentPosition(b):
16961;
1697if(compare&1||
1698(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){
1699if(a===document||a.ownerDocument==preferredDoc&&
1700find.contains(preferredDoc,a)){
1701return-1;
1702}
1703if(b===document||b.ownerDocument==preferredDoc&&
1704find.contains(preferredDoc,b)){
1705return 1;
1706}
1707return sortInput?
1708(indexOf.call(sortInput,a)-indexOf.call(sortInput,b)):
17090;
1710}
1711return compare&4?-1:1;
1712};
1713return document;
1714}
1715find.matches=function(expr,elements){
1716return find(expr,null,null,elements);
1717};
1718find.matchesSelector=function(elem,expr){
1719setDocument(elem);
1720if(documentIsHTML&&
1721!nonnativeSelectorCache[expr+" "]&&
1722(!rbuggyQSA||!rbuggyQSA.test(expr))){
1723try{
1724var ret=matches.call(elem,expr);
1725if(ret||support.disconnectedMatch||
1726elem.document&&elem.document.nodeType!==11){
1727return ret;
1728}
1729}catch(e){
1730nonnativeSelectorCache(expr,true);
1731}
1732}
1733return find(expr,document,null,[elem]).length>0;
1734};
1735find.contains=function(context,elem){
1736if((context.ownerDocument||context)!=document){
1737setDocument(context);
1738}
1739return jQuery.contains(context,elem);
1740};
1741find.attr=function(elem,name){
1742if((elem.ownerDocument||elem)!=document){
1743setDocument(elem);
1744}
1745var fn=Expr.attrHandle[name.toLowerCase()],
1746val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?
1747fn(elem,name,!documentIsHTML):
1748undefined;
1749if(val!==undefined){
1750return val;
1751}
1752return elem.getAttribute(name);
1753};
1754find.error=function(msg){
1755throw new Error("Syntax error, unrecognized expression: "+msg);
1756};
1757jQuery.uniqueSort=function(results){
1758var elem,
1759duplicates=[],
1760j=0,
1761i=0;
1762hasDuplicate=!support.sortStable;
1763sortInput=!support.sortStable&&slice.call(results,0);
1764sort.call(results,sortOrder);
1765if(hasDuplicate){
1766while((elem=results[i++])){
1767if(elem===results[i]){
1768j=duplicates.push(i);
1769}
1770}
1771while(j--){
1772splice.call(results,duplicates[j],1);
1773}
1774}
1775sortInput=null;
1776return results;
1777};
1778jQuery.fn.uniqueSort=function(){
1779return this.pushStack(jQuery.uniqueSort(slice.apply(this)));
1780};
1781Expr=jQuery.expr={
1782cacheLength:50,
1783createPseudo:markFunction,
1784match:matchExpr,
1785attrHandle:{},
1786find:{},
1787relative:{
1788">":{dir:"parentNode",first:true},
1789" ":{dir:"parentNode"},
1790"+":{dir:"previousSibling",first:true},
1791"~":{dir:"previousSibling"}
1792},
1793preFilter:{
1794ATTR:function(match){
1795match[1]=match[1].replace(runescape,funescape);
1796match[3]=(match[3]||match[4]||match[5]||"")
1797.replace(runescape,funescape);
1798if(match[2]==="~="){
1799match[3]=" "+match[3]+" ";
1800}
1801return match.slice(0,4);
1802},
1803CHILD:function(match){
1804match[1]=match[1].toLowerCase();
1805if(match[1].slice(0,3)==="nth"){
1806if(!match[3]){
1807find.error(match[0]);
1808}
1809match[4]=+(match[4]?
1810match[5]+(match[6]||1):
18112*(match[3]==="even"||match[3]==="odd")
1812);
1813match[5]=+((match[7]+match[8])||match[3]==="odd");
1814}else if(match[3]){
1815find.error(match[0]);
1816}
1817return match;
1818},
1819PSEUDO:function(match){
1820var excess,
1821unquoted=!match[6]&&match[2];
1822if(matchExpr.CHILD.test(match[0])){
1823return null;
1824}
1825if(match[3]){
1826match[2]=match[4]||match[5]||"";
1827}else if(unquoted&&rpseudo.test(unquoted)&&
1828(excess=tokenize(unquoted,true))&&
1829(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){
1830match[0]=match[0].slice(0,excess);
1831match[2]=unquoted.slice(0,excess);
1832}
1833return match.slice(0,3);
1834}
1835},
1836filter:{
1837TAG:function(nodeNameSelector){
1838var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();
1839return nodeNameSelector==="*"?
1840function(){
1841return true;
1842}:
1843function(elem){
1844return nodeName(elem,expectedNodeName);
1845};
1846},
1847CLASS:function(className){
1848var pattern=classCache[className+" "];
1849return pattern||
1850(pattern=new RegExp("(^|"+whitespace+")"+className+
1851"("+whitespace+"|$)"))&&
1852classCache(className,function(elem){
1853return pattern.test(
1854typeof elem.className==="string"&&elem.className||
1855typeof elem.getAttribute!=="undefined"&&
1856elem.getAttribute("class")||
1857""
1858);
1859});
1860},
1861ATTR:function(name,operator,check){
1862return function(elem){
1863var result=find.attr(elem,name);
1864if(result==null){
1865return operator==="!=";
1866}
1867if(!operator){
1868return true;
1869}
1870result+="";
1871if(operator==="="){
1872return result===check;
1873}
1874if(operator==="!="){
1875return result!==check;
1876}
1877if(operator==="^="){
1878return check&&result.indexOf(check)===0;
1879}
1880if(operator==="*="){
1881return check&&result.indexOf(check)>-1;
1882}
1883if(operator==="$="){
1884return check&&result.slice(-check.length)===check;
1885}
1886if(operator==="~="){
1887return(" "+result.replace(rwhitespace," ")+" ")
1888.indexOf(check)>-1;
1889}
1890if(operator==="|="){
1891return result===check||result.slice(0,check.length+1)===check+"-";
1892}
1893return false;
1894};
1895},
1896CHILD:function(type,what,_argument,first,last){
1897var simple=type.slice(0,3)!=="nth",
1898forward=type.slice(-4)!=="last",
1899ofType=what==="of-type";
1900return first===1&&last===0?
1901function(elem){
1902return!!elem.parentNode;
1903}:
1904function(elem,_context,xml){
1905var cache,outerCache,node,nodeIndex,start,
1906dir=simple!==forward?"nextSibling":"previousSibling",
1907parent=elem.parentNode,
1908name=ofType&&elem.nodeName.toLowerCase(),
1909useCache=!xml&&!ofType,
1910diff=false;
1911if(parent){
1912if(simple){
1913while(dir){
1914node=elem;
1915while((node=node[dir])){
1916if(ofType?
1917nodeName(node,name):
1918node.nodeType===1){
1919return false;
1920}
1921}
1922start=dir=type==="only"&&!start&&"nextSibling";
1923}
1924return true;
1925}
1926start=[forward?parent.firstChild:parent.lastChild];
1927if(forward&&useCache){
1928outerCache=parent[expando]||(parent[expando]={});
1929cache=outerCache[type]||[];
1930nodeIndex=cache[0]===dirruns&&cache[1];
1931diff=nodeIndex&&cache[2];
1932node=nodeIndex&&parent.childNodes[nodeIndex];
1933while((node=++nodeIndex&&node&&node[dir]||
1934(diff=nodeIndex=0)||start.pop())){
1935if(node.nodeType===1&&++diff&&node===elem){
1936outerCache[type]=[dirruns,nodeIndex,diff];
1937break;
1938}
1939}
1940}else{
1941if(useCache){
1942outerCache=elem[expando]||(elem[expando]={});
1943cache=outerCache[type]||[];
1944nodeIndex=cache[0]===dirruns&&cache[1];
1945diff=nodeIndex;
1946}
1947if(diff===false){
1948while((node=++nodeIndex&&node&&node[dir]||
1949(diff=nodeIndex=0)||start.pop())){
1950if((ofType?
1951nodeName(node,name):
1952node.nodeType===1)&&
1953++diff){
1954if(useCache){
1955outerCache=node[expando]||
1956(node[expando]={});
1957outerCache[type]=[dirruns,diff];
1958}
1959if(node===elem){
1960break;
1961}
1962}
1963}
1964}
1965}
1966diff-=last;
1967return diff===first||(diff%first===0&&diff/first>=0);
1968}
1969};
1970},
1971PSEUDO:function(pseudo,argument){
1972var args,
1973fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||
1974find.error("unsupported pseudo: "+pseudo);
1975if(fn[expando]){
1976return fn(argument);
1977}
1978if(fn.length>1){
1979args=[pseudo,pseudo,"",argument];
1980return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?
1981markFunction(function(seed,matches){
1982var idx,
1983matched=fn(seed,argument),
1984i=matched.length;
1985while(i--){
1986idx=indexOf.call(seed,matched[i]);
1987seed[idx]=!(matches[idx]=matched[i]);
1988}
1989}):
1990function(elem){
1991return fn(elem,0,args);
1992};
1993}
1994return fn;
1995}
1996},
1997pseudos:{
1998not:markFunction(function(selector){
1999var input=[],
2000results=[],
2001matcher=compile(selector.replace(rtrimCSS,"$1"));
2002return matcher[expando]?
2003markFunction(function(seed,matches,_context,xml){
2004var elem,
2005unmatched=matcher(seed,null,xml,[]),
2006i=seed.length;
2007while(i--){
2008if((elem=unmatched[i])){
2009seed[i]=!(matches[i]=elem);
2010}
2011}
2012}):
2013function(elem,_context,xml){
2014input[0]=elem;
2015matcher(input,null,xml,results);
2016input[0]=null;
2017return!results.pop();
2018};
2019}),
2020has:markFunction(function(selector){
2021return function(elem){
2022return find(selector,elem).length>0;
2023};
2024}),
2025contains:markFunction(function(text){
2026text=text.replace(runescape,funescape);
2027return function(elem){
2028return(elem.textContent||jQuery.text(elem)).indexOf(text)>-1;
2029};
2030}),
2031lang:markFunction(function(lang){
2032if(!ridentifier.test(lang||"")){
2033find.error("unsupported lang: "+lang);
2034}
2035lang=lang.replace(runescape,funescape).toLowerCase();
2036return function(elem){
2037var elemLang;
2038do{
2039if((elemLang=documentIsHTML?
2040elem.lang:
2041elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){
2042elemLang=elemLang.toLowerCase();
2043return elemLang===lang||elemLang.indexOf(lang+"-")===0;
2044}
2045}while((elem=elem.parentNode)&&elem.nodeType===1);
2046return false;
2047};
2048}),
2049target:function(elem){
2050var hash=window.location&&window.location.hash;
2051return hash&&hash.slice(1)===elem.id;
2052},
2053root:function(elem){
2054return elem===documentElement;
2055},
2056focus:function(elem){
2057return elem===safeActiveElement()&&
2058document.hasFocus()&&
2059!!(elem.type||elem.href||~elem.tabIndex);
2060},
2061enabled:createDisabledPseudo(false),
2062disabled:createDisabledPseudo(true),
2063checked:function(elem){
2064return(nodeName(elem,"input")&&!!elem.checked)||
2065(nodeName(elem,"option")&&!!elem.selected);
2066},
2067selected:function(elem){
2068if(elem.parentNode){
2069elem.parentNode.selectedIndex;
2070}
2071return elem.selected===true;
2072},
2073empty:function(elem){
2074for(elem=elem.firstChild;elem;elem=elem.nextSibling){
2075if(elem.nodeType<6){
2076return false;
2077}
2078}
2079return true;
2080},
2081parent:function(elem){
2082return!Expr.pseudos.empty(elem);
2083},
2084header:function(elem){
2085return rheader.test(elem.nodeName);
2086},
2087input:function(elem){
2088return rinputs.test(elem.nodeName);
2089},
2090button:function(elem){
2091return nodeName(elem,"input")&&elem.type==="button"||
2092nodeName(elem,"button");
2093},
2094text:function(elem){
2095var attr;
2096return nodeName(elem,"input")&&elem.type==="text"&&
2097((attr=elem.getAttribute("type"))==null||
2098attr.toLowerCase()==="text");
2099},
2100first:createPositionalPseudo(function(){
2101return[0];
2102}),
2103last:createPositionalPseudo(function(_matchIndexes,length){
2104return[length-1];
2105}),
2106eq:createPositionalPseudo(function(_matchIndexes,length,argument){
2107return[argument<0?argument+length:argument];
2108}),
2109even:createPositionalPseudo(function(matchIndexes,length){
2110var i=0;
2111for(;i<length;i+=2){
2112matchIndexes.push(i);
2113}
2114return matchIndexes;
2115}),
2116odd:createPositionalPseudo(function(matchIndexes,length){
2117var i=1;
2118for(;i<length;i+=2){
2119matchIndexes.push(i);
2120}
2121return matchIndexes;
2122}),
2123lt:createPositionalPseudo(function(matchIndexes,length,argument){
2124var i;
2125if(argument<0){
2126i=argument+length;
2127}else if(argument>length){
2128i=length;
2129}else{
2130i=argument;
2131}
2132for(;--i>=0;){
2133matchIndexes.push(i);
2134}
2135return matchIndexes;
2136}),
2137gt:createPositionalPseudo(function(matchIndexes,length,argument){
2138var i=argument<0?argument+length:argument;
2139for(;++i<length;){
2140matchIndexes.push(i);
2141}
2142return matchIndexes;
2143})
2144}
2145};
2146Expr.pseudos.nth=Expr.pseudos.eq;
2147for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){
2148Expr.pseudos[i]=createInputPseudo(i);
2149}
2150for(i in{submit:true,reset:true}){
2151Expr.pseudos[i]=createButtonPseudo(i);
2152}
2153function setFilters(){}
2154setFilters.prototype=Expr.filters=Expr.pseudos;
2155Expr.setFilters=new setFilters();
2156function tokenize(selector,parseOnly){
2157var matched,match,tokens,type,
2158soFar,groups,preFilters,
2159cached=tokenCache[selector+" "];
2160if(cached){
2161return parseOnly?0:cached.slice(0);
2162}
2163soFar=selector;
2164groups=[];
2165preFilters=Expr.preFilter;
2166while(soFar){
2167if(!matched||(match=rcomma.exec(soFar))){
2168if(match){
2169soFar=soFar.slice(match[0].length)||soFar;
2170}
2171groups.push((tokens=[]));
2172}
2173matched=false;
2174if((match=rleadingCombinator.exec(soFar))){
2175matched=match.shift();
2176tokens.push({
2177value:matched,
2178type:match[0].replace(rtrimCSS," ")
2179});
2180soFar=soFar.slice(matched.length);
2181}
2182for(type in Expr.filter){
2183if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||
2184(match=preFilters[type](match)))){
2185matched=match.shift();
2186tokens.push({
2187value:matched,
2188type:type,
2189matches:match
2190});
2191soFar=soFar.slice(matched.length);
2192}
2193}
2194if(!matched){
2195break;
2196}
2197}
2198if(parseOnly){
2199return soFar.length;
2200}
2201return soFar?
2202find.error(selector):
2203tokenCache(selector,groups).slice(0);
2204}
2205function toSelector(tokens){
2206var i=0,
2207len=tokens.length,
2208selector="";
2209for(;i<len;i++){
2210selector+=tokens[i].value;
2211}
2212return selector;
2213}
2214function addCombinator(matcher,combinator,base){
2215var dir=combinator.dir,
2216skip=combinator.next,
2217key=skip||dir,
2218checkNonElements=base&&key==="parentNode",
2219doneName=done++;
2220return combinator.first?
2221function(elem,context,xml){
2222while((elem=elem[dir])){
2223if(elem.nodeType===1||checkNonElements){
2224return matcher(elem,context,xml);
2225}
2226}
2227return false;
2228}:
2229function(elem,context,xml){
2230var oldCache,outerCache,
2231newCache=[dirruns,doneName];
2232if(xml){
2233while((elem=elem[dir])){
2234if(elem.nodeType===1||checkNonElements){
2235if(matcher(elem,context,xml)){
2236return true;
2237}
2238}
2239}
2240}else{
2241while((elem=elem[dir])){
2242if(elem.nodeType===1||checkNonElements){
2243outerCache=elem[expando]||(elem[expando]={});
2244if(skip&&nodeName(elem,skip)){
2245elem=elem[dir]||elem;
2246}else if((oldCache=outerCache[key])&&
2247oldCache[0]===dirruns&&oldCache[1]===doneName){
2248return(newCache[2]=oldCache[2]);
2249}else{
2250outerCache[key]=newCache;
2251if((newCache[2]=matcher(elem,context,xml))){
2252return true;
2253}
2254}
2255}
2256}
2257}
2258return false;
2259};
2260}
2261function elementMatcher(matchers){
2262return matchers.length>1?
2263function(elem,context,xml){
2264var i=matchers.length;
2265while(i--){
2266if(!matchers[i](elem,context,xml)){
2267return false;
2268}
2269}
2270return true;
2271}:
2272matchers[0];
2273}
2274function multipleContexts(selector,contexts,results){
2275var i=0,
2276len=contexts.length;
2277for(;i<len;i++){
2278find(selector,contexts[i],results);
2279}
2280return results;
2281}
2282function condense(unmatched,map,filter,context,xml){
2283var elem,
2284newUnmatched=[],
2285i=0,
2286len=unmatched.length,
2287mapped=map!=null;
2288for(;i<len;i++){
2289if((elem=unmatched[i])){
2290if(!filter||filter(elem,context,xml)){
2291newUnmatched.push(elem);
2292if(mapped){
2293map.push(i);
2294}
2295}
2296}
2297}
2298return newUnmatched;
2299}
2300function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){
2301if(postFilter&&!postFilter[expando]){
2302postFilter=setMatcher(postFilter);
2303}
2304if(postFinder&&!postFinder[expando]){
2305postFinder=setMatcher(postFinder,postSelector);
2306}
2307return markFunction(function(seed,results,context,xml){
2308var temp,i,elem,matcherOut,
2309preMap=[],
2310postMap=[],
2311preexisting=results.length,
2312elems=seed||
2313multipleContexts(selector||"*",
2314context.nodeType?[context]:context,[]),
2315matcherIn=preFilter&&(seed||!selector)?
2316condense(elems,preMap,preFilter,context,xml):
2317elems;
2318if(matcher){
2319matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)?
2320[]:
2321results;
2322matcher(matcherIn,matcherOut,context,xml);
2323}else{
2324matcherOut=matcherIn;
2325}
2326if(postFilter){
2327temp=condense(matcherOut,postMap);
2328postFilter(temp,[],context,xml);
2329i=temp.length;
2330while(i--){
2331if((elem=temp[i])){
2332matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);
2333}
2334}
2335}
2336if(seed){
2337if(postFinder||preFilter){
2338if(postFinder){
2339temp=[];
2340i=matcherOut.length;
2341while(i--){
2342if((elem=matcherOut[i])){
2343temp.push((matcherIn[i]=elem));
2344}
2345}
2346postFinder(null,(matcherOut=[]),temp,xml);
2347}
2348i=matcherOut.length;
2349while(i--){
2350if((elem=matcherOut[i])&&
2351(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){
2352seed[temp]=!(results[temp]=elem);
2353}
2354}
2355}
2356}else{
2357matcherOut=condense(
2358matcherOut===results?
2359matcherOut.splice(preexisting,matcherOut.length):
2360matcherOut
2361);
2362if(postFinder){
2363postFinder(null,results,matcherOut,xml);
2364}else{
2365push.apply(results,matcherOut);
2366}
2367}
2368});
2369}
2370function matcherFromTokens(tokens){
2371var checkContext,matcher,j,
2372len=tokens.length,
2373leadingRelative=Expr.relative[tokens[0].type],
2374implicitRelative=leadingRelative||Expr.relative[" "],
2375i=leadingRelative?1:0,
2376matchContext=addCombinator(function(elem){
2377return elem===checkContext;
2378},implicitRelative,true),
2379matchAnyContext=addCombinator(function(elem){
2380return indexOf.call(checkContext,elem)>-1;
2381},implicitRelative,true),
2382matchers=[function(elem,context,xml){
2383var ret=(!leadingRelative&&(xml||context!=outermostContext))||(
2384(checkContext=context).nodeType?
2385matchContext(elem,context,xml):
2386matchAnyContext(elem,context,xml));
2387checkContext=null;
2388return ret;
2389}];
2390for(;i<len;i++){
2391if((matcher=Expr.relative[tokens[i].type])){
2392matchers=[addCombinator(elementMatcher(matchers),matcher)];
2393}else{
2394matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);
2395if(matcher[expando]){
2396j=++i;
2397for(;j<len;j++){
2398if(Expr.relative[tokens[j].type]){
2399break;
2400}
2401}
2402return setMatcher(
2403i>1&&elementMatcher(matchers),
2404i>1&&toSelector(
2405tokens.slice(0,i-1)
2406.concat({value:tokens[i-2].type===" "?"*":""})
2407).replace(rtrimCSS,"$1"),
2408matcher,
2409i<j&&matcherFromTokens(tokens.slice(i,j)),
2410j<len&&matcherFromTokens((tokens=tokens.slice(j))),
2411j<len&&toSelector(tokens)
2412);
2413}
2414matchers.push(matcher);
2415}
2416}
2417return elementMatcher(matchers);
2418}
2419function matcherFromGroupMatchers(elementMatchers,setMatchers){
2420var bySet=setMatchers.length>0,
2421byElement=elementMatchers.length>0,
2422superMatcher=function(seed,context,xml,results,outermost){
2423var elem,j,matcher,
2424matchedCount=0,
2425i="0",
2426unmatched=seed&&[],
2427setMatched=[],
2428contextBackup=outermostContext,
2429elems=seed||byElement&&Expr.find.TAG("*",outermost),
2430dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1),
2431len=elems.length;
2432if(outermost){
2433outermostContext=context==document||context||outermost;
2434}
2435for(;i!==len&&(elem=elems[i])!=null;i++){
2436if(byElement&&elem){
2437j=0;
2438if(!context&&elem.ownerDocument!=document){
2439setDocument(elem);
2440xml=!documentIsHTML;
2441}
2442while((matcher=elementMatchers[j++])){
2443if(matcher(elem,context||document,xml)){
2444push.call(results,elem);
2445break;
2446}
2447}
2448if(outermost){
2449dirruns=dirrunsUnique;
2450}
2451}
2452if(bySet){
2453if((elem=!matcher&&elem)){
2454matchedCount--;
2455}
2456if(seed){
2457unmatched.push(elem);
2458}
2459}
2460}
2461matchedCount+=i;
2462if(bySet&&i!==matchedCount){
2463j=0;
2464while((matcher=setMatchers[j++])){
2465matcher(unmatched,setMatched,context,xml);
2466}
2467if(seed){
2468if(matchedCount>0){
2469while(i--){
2470if(!(unmatched[i]||setMatched[i])){
2471setMatched[i]=pop.call(results);
2472}
2473}
2474}
2475setMatched=condense(setMatched);
2476}
2477push.apply(results,setMatched);
2478if(outermost&&!seed&&setMatched.length>0&&
2479(matchedCount+setMatchers.length)>1){
2480jQuery.uniqueSort(results);
2481}
2482}
2483if(outermost){
2484dirruns=dirrunsUnique;
2485outermostContext=contextBackup;
2486}
2487return unmatched;
2488};
2489return bySet?
2490markFunction(superMatcher):
2491superMatcher;
2492}
2493function compile(selector,match){
2494var i,
2495setMatchers=[],
2496elementMatchers=[],
2497cached=compilerCache[selector+" "];
2498if(!cached){
2499if(!match){
2500match=tokenize(selector);
2501}
2502i=match.length;
2503while(i--){
2504cached=matcherFromTokens(match[i]);
2505if(cached[expando]){
2506setMatchers.push(cached);
2507}else{
2508elementMatchers.push(cached);
2509}
2510}
2511cached=compilerCache(selector,
2512matcherFromGroupMatchers(elementMatchers,setMatchers));
2513cached.selector=selector;
2514}
2515return cached;
2516}
2517function select(selector,context,results,seed){
2518var i,tokens,token,type,find,
2519compiled=typeof selector==="function"&&selector,
2520match=!seed&&tokenize((selector=compiled.selector||selector));
2521results=results||[];
2522if(match.length===1){
2523tokens=match[0]=match[0].slice(0);
2524if(tokens.length>2&&(token=tokens[0]).type==="ID"&&
2525context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){
2526context=(Expr.find.ID(
2527token.matches[0].replace(runescape,funescape),
2528context
2529)||[])[0];
2530if(!context){
2531return results;
2532}else if(compiled){
2533context=context.parentNode;
2534}
2535selector=selector.slice(tokens.shift().value.length);
2536}
2537i=matchExpr.needsContext.test(selector)?0:tokens.length;
2538while(i--){
2539token=tokens[i];
2540if(Expr.relative[(type=token.type)]){
2541break;
2542}
2543if((find=Expr.find[type])){
2544if((seed=find(
2545token.matches[0].replace(runescape,funescape),
2546rsibling.test(tokens[0].type)&&
2547testContext(context.parentNode)||context
2548))){
2549tokens.splice(i,1);
2550selector=seed.length&&toSelector(tokens);
2551if(!selector){
2552push.apply(results,seed);
2553return results;
2554}
2555break;
2556}
2557}
2558}
2559}
2560(compiled||compile(selector,match))(
2561seed,
2562context,
2563!documentIsHTML,
2564results,
2565!context||rsibling.test(selector)&&testContext(context.parentNode)||context
2566);
2567return results;
2568}
2569support.sortStable=expando.split("").sort(sortOrder).join("")===expando;
2570setDocument();
2571support.sortDetached=assert(function(el){
2572return el.compareDocumentPosition(document.createElement("fieldset"))&1;
2573});
2574jQuery.find=find;
2575jQuery.expr[":"]=jQuery.expr.pseudos;
2576jQuery.unique=jQuery.uniqueSort;
2577find.compile=compile;
2578find.select=select;
2579find.setDocument=setDocument;
2580find.tokenize=tokenize;
2581find.escape=jQuery.escapeSelector;
2582find.getText=jQuery.text;
2583find.isXML=jQuery.isXMLDoc;
2584find.selectors=jQuery.expr;
2585find.support=jQuery.support;
2586find.uniqueSort=jQuery.uniqueSort;
2587})();
2588var dir=function(elem,dir,until){
2589var matched=[],
2590truncate=until!==undefined;
2591while((elem=elem[dir])&&elem.nodeType!==9){
2592if(elem.nodeType===1){
2593if(truncate&&jQuery(elem).is(until)){
2594break;
2595}
2596matched.push(elem);
2597}
2598}
2599return matched;
2600};
2601var siblings=function(n,elem){
2602var matched=[];
2603for(;n;n=n.nextSibling){
2604if(n.nodeType===1&&n!==elem){
2605matched.push(n);
2606}
2607}
2608return matched;
2609};
2610var rneedsContext=jQuery.expr.match.needsContext;
2611var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i);
2612function winnow(elements,qualifier,not){
2613if(isFunction(qualifier)){
2614return jQuery.grep(elements,function(elem,i){
2615return!!qualifier.call(elem,i,elem)!==not;
2616});
2617}
2618if(qualifier.nodeType){
2619return jQuery.grep(elements,function(elem){
2620return(elem===qualifier)!==not;
2621});
2622}
2623if(typeof qualifier!=="string"){
2624return jQuery.grep(elements,function(elem){
2625return(indexOf.call(qualifier,elem)>-1)!==not;
2626});
2627}
2628return jQuery.filter(qualifier,elements,not);
2629}
2630jQuery.filter=function(expr,elems,not){
2631var elem=elems[0];
2632if(not){
2633expr=":not("+expr+")";
2634}
2635if(elems.length===1&&elem.nodeType===1){
2636return jQuery.find.matchesSelector(elem,expr)?[elem]:[];
2637}
2638return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){
2639return elem.nodeType===1;
2640}));
2641};
2642jQuery.fn.extend({
2643find:function(selector){
2644var i,ret,
2645len=this.length,
2646self=this;
2647if(typeof selector!=="string"){
2648return this.pushStack(jQuery(selector).filter(function(){
2649for(i=0;i<len;i++){
2650if(jQuery.contains(self[i],this)){
2651return true;
2652}
2653}
2654}));
2655}
2656ret=this.pushStack([]);
2657for(i=0;i<len;i++){
2658jQuery.find(selector,self[i],ret);
2659}
2660return len>1?jQuery.uniqueSort(ret):ret;
2661},
2662filter:function(selector){
2663return this.pushStack(winnow(this,selector||[],false));
2664},
2665not:function(selector){
2666return this.pushStack(winnow(this,selector||[],true));
2667},
2668is:function(selector){
2669return!!winnow(
2670this,
2671typeof selector==="string"&&rneedsContext.test(selector)?
2672jQuery(selector):
2673selector||[],
2674false
2675).length;
2676}
2677});
2678var rootjQuery,
2679rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
2680init=jQuery.fn.init=function(selector,context,root){
2681var match,elem;
2682if(!selector){
2683return this;
2684}
2685root=root||rootjQuery;
2686if(typeof selector==="string"){
2687if(selector[0]==="<"&&
2688selector[selector.length-1]===">"&&
2689selector.length>=3){
2690match=[null,selector,null];
2691}else{
2692match=rquickExpr.exec(selector);
2693}
2694if(match&&(match[1]||!context)){
2695if(match[1]){
2696context=context instanceof jQuery?context[0]:context;
2697jQuery.merge(this,jQuery.parseHTML(
2698match[1],
2699context&&context.nodeType?context.ownerDocument||context:document,
2700true
2701));
2702if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){
2703for(match in context){
2704if(isFunction(this[match])){
2705this[match](context[match]);
2706}else{
2707this.attr(match,context[match]);
2708}
2709}
2710}
2711return this;
2712}else{
2713elem=document.getElementById(match[2]);
2714if(elem){
2715this[0]=elem;
2716this.length=1;
2717}
2718return this;
2719}
2720}else if(!context||context.jquery){
2721return(context||root).find(selector);
2722}else{
2723return this.constructor(context).find(selector);
2724}
2725}else if(selector.nodeType){
2726this[0]=selector;
2727this.length=1;
2728return this;
2729}else if(isFunction(selector)){
2730return root.ready!==undefined?
2731root.ready(selector):
2732selector(jQuery);
2733}
2734return jQuery.makeArray(selector,this);
2735};
2736init.prototype=jQuery.fn;
2737rootjQuery=jQuery(document);
2738var rparentsprev=/^(?:parents|prev(?:Until|All))/,
2739guaranteedUnique={
2740children:true,
2741contents:true,
2742next:true,
2743prev:true
2744};
2745jQuery.fn.extend({
2746has:function(target){
2747var targets=jQuery(target,this),
2748l=targets.length;
2749return this.filter(function(){
2750var i=0;
2751for(;i<l;i++){
2752if(jQuery.contains(this,targets[i])){
2753return true;
2754}
2755}
2756});
2757},
2758closest:function(selectors,context){
2759var cur,
2760i=0,
2761l=this.length,
2762matched=[],
2763targets=typeof selectors!=="string"&&jQuery(selectors);
2764if(!rneedsContext.test(selectors)){
2765for(;i<l;i++){
2766for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){
2767if(cur.nodeType<11&&(targets?
2768targets.index(cur)>-1:
2769cur.nodeType===1&&
2770jQuery.find.matchesSelector(cur,selectors))){
2771matched.push(cur);
2772break;
2773}
2774}
2775}
2776}
2777return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched);
2778},
2779index:function(elem){
2780if(!elem){
2781return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1;
2782}
2783if(typeof elem==="string"){
2784return indexOf.call(jQuery(elem),this[0]);
2785}
2786return indexOf.call(this,
2787elem.jquery?elem[0]:elem
2788);
2789},
2790add:function(selector,context){
2791return this.pushStack(
2792jQuery.uniqueSort(
2793jQuery.merge(this.get(),jQuery(selector,context))
2794)
2795);
2796},
2797addBack:function(selector){
2798return this.add(selector==null?
2799this.prevObject:this.prevObject.filter(selector)
2800);
2801}
2802});
2803function sibling(cur,dir){
2804while((cur=cur[dir])&&cur.nodeType!==1){}
2805return cur;
2806}
2807jQuery.each({
2808parent:function(elem){
2809var parent=elem.parentNode;
2810return parent&&parent.nodeType!==11?parent:null;
2811},
2812parents:function(elem){
2813return dir(elem,"parentNode");
2814},
2815parentsUntil:function(elem,_i,until){
2816return dir(elem,"parentNode",until);
2817},
2818next:function(elem){
2819return sibling(elem,"nextSibling");
2820},
2821prev:function(elem){
2822return sibling(elem,"previousSibling");
2823},
2824nextAll:function(elem){
2825return dir(elem,"nextSibling");
2826},
2827prevAll:function(elem){
2828return dir(elem,"previousSibling");
2829},
2830nextUntil:function(elem,_i,until){
2831return dir(elem,"nextSibling",until);
2832},
2833prevUntil:function(elem,_i,until){
2834return dir(elem,"previousSibling",until);
2835},
2836siblings:function(elem){
2837return siblings((elem.parentNode||{}).firstChild,elem);
2838},
2839children:function(elem){
2840return siblings(elem.firstChild);
2841},
2842contents:function(elem){
2843if(elem.contentDocument!=null&&
2844getProto(elem.contentDocument)){
2845return elem.contentDocument;
2846}
2847if(nodeName(elem,"template")){
2848elem=elem.content||elem;
2849}
2850return jQuery.merge([],elem.childNodes);
2851}
2852},function(name,fn){
2853jQuery.fn[name]=function(until,selector){
2854var matched=jQuery.map(this,fn,until);
2855if(name.slice(-5)!=="Until"){
2856selector=until;
2857}
2858if(selector&&typeof selector==="string"){
2859matched=jQuery.filter(selector,matched);
2860}
2861if(this.length>1){
2862if(!guaranteedUnique[name]){
2863jQuery.uniqueSort(matched);
2864}
2865if(rparentsprev.test(name)){
2866matched.reverse();
2867}
2868}
2869return this.pushStack(matched);
2870};
2871});
2872var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g);
2873function createOptions(options){
2874var object={};
2875jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){
2876object[flag]=true;
2877});
2878return object;
2879}
2880jQuery.Callbacks=function(options){
2881options=typeof options==="string"?
2882createOptions(options):
2883jQuery.extend({},options);
2884var
2885firing,
2886memory,
2887fired,
2888locked,
2889list=[],
2890queue=[],
2891firingIndex=-1,
2892fire=function(){
2893locked=locked||options.once;
2894fired=firing=true;
2895for(;queue.length;firingIndex=-1){
2896memory=queue.shift();
2897while(++firingIndex<list.length){
2898if(list[firingIndex].apply(memory[0],memory[1])===false&&
2899options.stopOnFalse){
2900firingIndex=list.length;
2901memory=false;
2902}
2903}
2904}
2905if(!options.memory){
2906memory=false;
2907}
2908firing=false;
2909if(locked){
2910if(memory){
2911list=[];
2912}else{
2913list="";
2914}
2915}
2916},
2917self={
2918add:function(){
2919if(list){
2920if(memory&&!firing){
2921firingIndex=list.length-1;
2922queue.push(memory);
2923}
2924(function add(args){
2925jQuery.each(args,function(_,arg){
2926if(isFunction(arg)){
2927if(!options.unique||!self.has(arg)){
2928list.push(arg);
2929}
2930}else if(arg&&arg.length&&toType(arg)!=="string"){
2931add(arg);
2932}
2933});
2934})(arguments);
2935if(memory&&!firing){
2936fire();
2937}
2938}
2939return this;
2940},
2941remove:function(){
2942jQuery.each(arguments,function(_,arg){
2943var index;
2944while((index=jQuery.inArray(arg,list,index))>-1){
2945list.splice(index,1);
2946if(index<=firingIndex){
2947firingIndex--;
2948}
2949}
2950});
2951return this;
2952},
2953has:function(fn){
2954return fn?
2955jQuery.inArray(fn,list)>-1:
2956list.length>0;
2957},
2958empty:function(){
2959if(list){
2960list=[];
2961}
2962return this;
2963},
2964disable:function(){
2965locked=queue=[];
2966list=memory="";
2967return this;
2968},
2969disabled:function(){
2970return!list;
2971},
2972lock:function(){
2973locked=queue=[];
2974if(!memory&&!firing){
2975list=memory="";
2976}
2977return this;
2978},
2979locked:function(){
2980return!!locked;
2981},
2982fireWith:function(context,args){
2983if(!locked){
2984args=args||[];
2985args=[context,args.slice?args.slice():args];
2986queue.push(args);
2987if(!firing){
2988fire();
2989}
2990}
2991return this;
2992},
2993fire:function(){
2994self.fireWith(this,arguments);
2995return this;
2996},
2997fired:function(){
2998return!!fired;
2999}
3000};
3001return self;
3002};
3003function Identity(v){
3004return v;
3005}
3006function Thrower(ex){
3007throw ex;
3008}
3009function adoptValue(value,resolve,reject,noValue){
3010var method;
3011try{
3012if(value&&isFunction((method=value.promise))){
3013method.call(value).done(resolve).fail(reject);
3014}else if(value&&isFunction((method=value.then))){
3015method.call(value,resolve,reject);
3016}else{
3017resolve.apply(undefined,[value].slice(noValue));
3018}
3019}catch(value){
3020reject.apply(undefined,[value]);
3021}
3022}
3023jQuery.extend({
3024Deferred:function(func){
3025var tuples=[
3026["notify","progress",jQuery.Callbacks("memory"),
3027jQuery.Callbacks("memory"),2],
3028["resolve","done",jQuery.Callbacks("once memory"),
3029jQuery.Callbacks("once memory"),0,"resolved"],
3030["reject","fail",jQuery.Callbacks("once memory"),
3031jQuery.Callbacks("once memory"),1,"rejected"]
3032],
3033state="pending",
3034promise={
3035state:function(){
3036return state;
3037},
3038always:function(){
3039deferred.done(arguments).fail(arguments);
3040return this;
3041},
3042"catch":function(fn){
3043return promise.then(null,fn);
3044},
3045pipe:function(){
3046var fns=arguments;
3047return jQuery.Deferred(function(newDefer){
3048jQuery.each(tuples,function(_i,tuple){
3049var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];
3050deferred[tuple[1]](function(){
3051var returned=fn&&fn.apply(this,arguments);
3052if(returned&&isFunction(returned.promise)){
3053returned.promise()
3054.progress(newDefer.notify)
3055.done(newDefer.resolve)
3056.fail(newDefer.reject);
3057}else{
3058newDefer[tuple[0]+"With"](
3059this,
3060fn?[returned]:arguments
3061);
3062}
3063});
3064});
3065fns=null;
3066}).promise();
3067},
3068then:function(onFulfilled,onRejected,onProgress){
3069var maxDepth=0;
3070function resolve(depth,deferred,handler,special){
3071return function(){
3072var that=this,
3073args=arguments,
3074mightThrow=function(){
3075var returned,then;
3076if(depth<maxDepth){
3077return;
3078}
3079returned=handler.apply(that,args);
3080if(returned===deferred.promise()){
3081throw new TypeError("Thenable self-resolution");
3082}
3083then=returned&&
3084(typeof returned==="object"||
3085typeof returned==="function")&&
3086returned.then;
3087if(isFunction(then)){
3088if(special){
3089then.call(
3090returned,
3091resolve(maxDepth,deferred,Identity,special),
3092resolve(maxDepth,deferred,Thrower,special)
3093);
3094}else{
3095maxDepth++;
3096then.call(
3097returned,
3098resolve(maxDepth,deferred,Identity,special),
3099resolve(maxDepth,deferred,Thrower,special),
3100resolve(maxDepth,deferred,Identity,
3101deferred.notifyWith)
3102);
3103}
3104}else{
3105if(handler!==Identity){
3106that=undefined;
3107args=[returned];
3108}
3109(special||deferred.resolveWith)(that,args);
3110}
3111},
3112process=special?
3113mightThrow:
3114function(){
3115try{
3116mightThrow();
3117}catch(e){
3118if(jQuery.Deferred.exceptionHook){
3119jQuery.Deferred.exceptionHook(e,
3120process.error);
3121}
3122if(depth+1>=maxDepth){
3123if(handler!==Thrower){
3124that=undefined;
3125args=[e];
3126}
3127deferred.rejectWith(that,args);
3128}
3129}
3130};
3131if(depth){
3132process();
3133}else{
3134if(jQuery.Deferred.getErrorHook){
3135process.error=jQuery.Deferred.getErrorHook();
3136}else if(jQuery.Deferred.getStackHook){
3137process.error=jQuery.Deferred.getStackHook();
3138}
3139window.setTimeout(process);
3140}
3141};
3142}
3143return jQuery.Deferred(function(newDefer){
3144tuples[0][3].add(
3145resolve(
31460,
3147newDefer,
3148isFunction(onProgress)?
3149onProgress:
3150Identity,
3151newDefer.notifyWith
3152)
3153);
3154tuples[1][3].add(
3155resolve(
31560,
3157newDefer,
3158isFunction(onFulfilled)?
3159onFulfilled:
3160Identity
3161)
3162);
3163tuples[2][3].add(
3164resolve(
31650,
3166newDefer,
3167isFunction(onRejected)?
3168onRejected:
3169Thrower
3170)
3171);
3172}).promise();
3173},
3174promise:function(obj){
3175return obj!=null?jQuery.extend(obj,promise):promise;
3176}
3177},
3178deferred={};
3179jQuery.each(tuples,function(i,tuple){
3180var list=tuple[2],
3181stateString=tuple[5];
3182promise[tuple[1]]=list.add;
3183if(stateString){
3184list.add(
3185function(){
3186state=stateString;
3187},
3188tuples[3-i][2].disable,
3189tuples[3-i][3].disable,
3190tuples[0][2].lock,
3191tuples[0][3].lock
3192);
3193}
3194list.add(tuple[3].fire);
3195deferred[tuple[0]]=function(){
3196deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments);
3197return this;
3198};
3199deferred[tuple[0]+"With"]=list.fireWith;
3200});
3201promise.promise(deferred);
3202if(func){
3203func.call(deferred,deferred);
3204}
3205return deferred;
3206},
3207when:function(singleValue){
3208var
3209remaining=arguments.length,
3210i=remaining,
3211resolveContexts=Array(i),
3212resolveValues=slice.call(arguments),
3213primary=jQuery.Deferred(),
3214updateFunc=function(i){
3215return function(value){
3216resolveContexts[i]=this;
3217resolveValues[i]=arguments.length>1?slice.call(arguments):value;
3218if(!(--remaining)){
3219primary.resolveWith(resolveContexts,resolveValues);
3220}
3221};
3222};
3223if(remaining<=1){
3224adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,
3225!remaining);
3226if(primary.state()==="pending"||
3227isFunction(resolveValues[i]&&resolveValues[i].then)){
3228return primary.then();
3229}
3230}
3231while(i--){
3232adoptValue(resolveValues[i],updateFunc(i),primary.reject);
3233}
3234return primary.promise();
3235}
3236});
3237var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
3238jQuery.Deferred.exceptionHook=function(error,asyncError){
3239if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){
3240window.console.warn("jQuery.Deferred exception: "+error.message,
3241error.stack,asyncError);
3242}
3243};
3244jQuery.readyException=function(error){
3245window.setTimeout(function(){
3246throw error;
3247});
3248};
3249var readyList=jQuery.Deferred();
3250jQuery.fn.ready=function(fn){
3251readyList
3252.then(fn)
3253.catch(function(error){
3254jQuery.readyException(error);
3255});
3256return this;
3257};
3258jQuery.extend({
3259isReady:false,
3260readyWait:1,
3261ready:function(wait){
3262if(wait===true?--jQuery.readyWait:jQuery.isReady){
3263return;
3264}
3265jQuery.isReady=true;
3266if(wait!==true&&--jQuery.readyWait>0){
3267return;
3268}
3269readyList.resolveWith(document,[jQuery]);
3270}
3271});
3272jQuery.ready.then=readyList.then;
3273function completed(){
3274document.removeEventListener("DOMContentLoaded",completed);
3275window.removeEventListener("load",completed);
3276jQuery.ready();
3277}
3278if(document.readyState==="complete"||
3279(document.readyState!=="loading"&&!document.documentElement.doScroll)){
3280window.setTimeout(jQuery.ready);
3281}else{
3282document.addEventListener("DOMContentLoaded",completed);
3283window.addEventListener("load",completed);
3284}
3285var access=function(elems,fn,key,value,chainable,emptyGet,raw){
3286var i=0,
3287len=elems.length,
3288bulk=key==null;
3289if(toType(key)==="object"){
3290chainable=true;
3291for(i in key){
3292access(elems,fn,i,key[i],true,emptyGet,raw);
3293}
3294}else if(value!==undefined){
3295chainable=true;
3296if(!isFunction(value)){
3297raw=true;
3298}
3299if(bulk){
3300if(raw){
3301fn.call(elems,value);
3302fn=null;
3303}else{
3304bulk=fn;
3305fn=function(elem,_key,value){
3306return bulk.call(jQuery(elem),value);
3307};
3308}
3309}
3310if(fn){
3311for(;i<len;i++){
3312fn(
3313elems[i],key,raw?
3314value:
3315value.call(elems[i],i,fn(elems[i],key))
3316);
3317}
3318}
3319}
3320if(chainable){
3321return elems;
3322}
3323if(bulk){
3324return fn.call(elems);
3325}
3326return len?fn(elems[0],key):emptyGet;
3327};
3328var rmsPrefix=/^-ms-/,
3329rdashAlpha=/-([a-z])/g;
3330function fcamelCase(_all,letter){
3331return letter.toUpperCase();
3332}
3333function camelCase(string){
3334return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);
3335}
3336var acceptData=function(owner){
3337return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType);
3338};
3339function Data(){
3340this.expando=jQuery.expando+Data.uid++;
3341}
3342Data.uid=1;
3343Data.prototype={
3344cache:function(owner){
3345var value=owner[this.expando];
3346if(!value){
3347value={};
3348if(acceptData(owner)){
3349if(owner.nodeType){
3350owner[this.expando]=value;
3351}else{
3352Object.defineProperty(owner,this.expando,{
3353value:value,
3354configurable:true
3355});
3356}
3357}
3358}
3359return value;
3360},
3361set:function(owner,data,value){
3362var prop,
3363cache=this.cache(owner);
3364if(typeof data==="string"){
3365cache[camelCase(data)]=value;
3366}else{
3367for(prop in data){
3368cache[camelCase(prop)]=data[prop];
3369}
3370}
3371return cache;
3372},
3373get:function(owner,key){
3374return key===undefined?
3375this.cache(owner):
3376owner[this.expando]&&owner[this.expando][camelCase(key)];
3377},
3378access:function(owner,key,value){
3379if(key===undefined||
3380((key&&typeof key==="string")&&value===undefined)){
3381return this.get(owner,key);
3382}
3383this.set(owner,key,value);
3384return value!==undefined?value:key;
3385},
3386remove:function(owner,key){
3387var i,
3388cache=owner[this.expando];
3389if(cache===undefined){
3390return;
3391}
3392if(key!==undefined){
3393if(Array.isArray(key)){
3394key=key.map(camelCase);
3395}else{
3396key=camelCase(key);
3397key=key in cache?
3398[key]:
3399(key.match(rnothtmlwhite)||[]);
3400}
3401i=key.length;
3402while(i--){
3403delete cache[key[i]];
3404}
3405}
3406if(key===undefined||jQuery.isEmptyObject(cache)){
3407if(owner.nodeType){
3408owner[this.expando]=undefined;
3409}else{
3410delete owner[this.expando];
3411}
3412}
3413},
3414hasData:function(owner){
3415var cache=owner[this.expando];
3416return cache!==undefined&&!jQuery.isEmptyObject(cache);
3417}
3418};
3419var dataPriv=new Data();
3420var dataUser=new Data();
3421var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
3422rmultiDash=/[A-Z]/g;
3423function getData(data){
3424if(data==="true"){
3425return true;
3426}
3427if(data==="false"){
3428return false;
3429}
3430if(data==="null"){
3431return null;
3432}
3433if(data===+data+""){
3434return+data;
3435}
3436if(rbrace.test(data)){
3437return JSON.parse(data);
3438}
3439return data;
3440}
3441function dataAttr(elem,key,data){
3442var name;
3443if(data===undefined&&elem.nodeType===1){
3444name="data-"+key.replace(rmultiDash,"-$&").toLowerCase();
3445data=elem.getAttribute(name);
3446if(typeof data==="string"){
3447try{
3448data=getData(data);
3449}catch(e){}
3450dataUser.set(elem,key,data);
3451}else{
3452data=undefined;
3453}
3454}
3455return data;
3456}
3457jQuery.extend({
3458hasData:function(elem){
3459return dataUser.hasData(elem)||dataPriv.hasData(elem);
3460},
3461data:function(elem,name,data){
3462return dataUser.access(elem,name,data);
3463},
3464removeData:function(elem,name){
3465dataUser.remove(elem,name);
3466},
3467_data:function(elem,name,data){
3468return dataPriv.access(elem,name,data);
3469},
3470_removeData:function(elem,name){
3471dataPriv.remove(elem,name);
3472}
3473});
3474jQuery.fn.extend({
3475data:function(key,value){
3476var i,name,data,
3477elem=this[0],
3478attrs=elem&&elem.attributes;
3479if(key===undefined){
3480if(this.length){
3481data=dataUser.get(elem);
3482if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){
3483i=attrs.length;
3484while(i--){
3485if(attrs[i]){
3486name=attrs[i].name;
3487if(name.indexOf("data-")===0){
3488name=camelCase(name.slice(5));
3489dataAttr(elem,name,data[name]);
3490}
3491}
3492}
3493dataPriv.set(elem,"hasDataAttrs",true);
3494}
3495}
3496return data;
3497}
3498if(typeof key==="object"){
3499return this.each(function(){
3500dataUser.set(this,key);
3501});
3502}
3503return access(this,function(value){
3504var data;
3505if(elem&&value===undefined){
3506data=dataUser.get(elem,key);
3507if(data!==undefined){
3508return data;
3509}
3510data=dataAttr(elem,key);
3511if(data!==undefined){
3512return data;
3513}
3514return;
3515}
3516this.each(function(){
3517dataUser.set(this,key,value);
3518});
3519},null,value,arguments.length>1,null,true);
3520},
3521removeData:function(key){
3522return this.each(function(){
3523dataUser.remove(this,key);
3524});
3525}
3526});
3527jQuery.extend({
3528queue:function(elem,type,data){
3529var queue;
3530if(elem){
3531type=(type||"fx")+"queue";
3532queue=dataPriv.get(elem,type);
3533if(data){
3534if(!queue||Array.isArray(data)){
3535queue=dataPriv.access(elem,type,jQuery.makeArray(data));
3536}else{
3537queue.push(data);
3538}
3539}
3540return queue||[];
3541}
3542},
3543dequeue:function(elem,type){
3544type=type||"fx";
3545var queue=jQuery.queue(elem,type),
3546startLength=queue.length,
3547fn=queue.shift(),
3548hooks=jQuery._queueHooks(elem,type),
3549next=function(){
3550jQuery.dequeue(elem,type);
3551};
3552if(fn==="inprogress"){
3553fn=queue.shift();
3554startLength--;
3555}
3556if(fn){
3557if(type==="fx"){
3558queue.unshift("inprogress");
3559}
3560delete hooks.stop;
3561fn.call(elem,next,hooks);
3562}
3563if(!startLength&&hooks){
3564hooks.empty.fire();
3565}
3566},
3567_queueHooks:function(elem,type){
3568var key=type+"queueHooks";
3569return dataPriv.get(elem,key)||dataPriv.access(elem,key,{
3570empty:jQuery.Callbacks("once memory").add(function(){
3571dataPriv.remove(elem,[type+"queue",key]);
3572})
3573});
3574}
3575});
3576jQuery.fn.extend({
3577queue:function(type,data){
3578var setter=2;
3579if(typeof type!=="string"){
3580data=type;
3581type="fx";
3582setter--;
3583}
3584if(arguments.length<setter){
3585return jQuery.queue(this[0],type);
3586}
3587return data===undefined?
3588this:
3589this.each(function(){
3590var queue=jQuery.queue(this,type,data);
3591jQuery._queueHooks(this,type);
3592if(type==="fx"&&queue[0]!=="inprogress"){
3593jQuery.dequeue(this,type);
3594}
3595});
3596},
3597dequeue:function(type){
3598return this.each(function(){
3599jQuery.dequeue(this,type);
3600});
3601},
3602clearQueue:function(type){
3603return this.queue(type||"fx",[]);
3604},
3605promise:function(type,obj){
3606var tmp,
3607count=1,
3608defer=jQuery.Deferred(),
3609elements=this,
3610i=this.length,
3611resolve=function(){
3612if(!(--count)){
3613defer.resolveWith(elements,[elements]);
3614}
3615};
3616if(typeof type!=="string"){
3617obj=type;
3618type=undefined;
3619}
3620type=type||"fx";
3621while(i--){
3622tmp=dataPriv.get(elements[i],type+"queueHooks");
3623if(tmp&&tmp.empty){
3624count++;
3625tmp.empty.add(resolve);
3626}
3627}
3628resolve();
3629return defer.promise(obj);
3630}
3631});
3632var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
3633var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i");
3634var cssExpand=["Top","Right","Bottom","Left"];
3635var documentElement=document.documentElement;
3636var isAttached=function(elem){
3637return jQuery.contains(elem.ownerDocument,elem);
3638},
3639composed={composed:true};
3640if(documentElement.getRootNode){
3641isAttached=function(elem){
3642return jQuery.contains(elem.ownerDocument,elem)||
3643elem.getRootNode(composed)===elem.ownerDocument;
3644};
3645}
3646var isHiddenWithinTree=function(elem,el){
3647elem=el||elem;
3648return elem.style.display==="none"||
3649elem.style.display===""&&
3650isAttached(elem)&&
3651jQuery.css(elem,"display")==="none";
3652};
3653function adjustCSS(elem,prop,valueParts,tween){
3654var adjusted,scale,
3655maxIterations=20,
3656currentValue=tween?
3657function(){
3658return tween.cur();
3659}:
3660function(){
3661return jQuery.css(elem,prop,"");
3662},
3663initial=currentValue(),
3664unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),
3665initialInUnit=elem.nodeType&&
3666(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&&
3667rcssNum.exec(jQuery.css(elem,prop));
3668if(initialInUnit&&initialInUnit[3]!==unit){
3669initial=initial/2;
3670unit=unit||initialInUnit[3];
3671initialInUnit=+initial||1;
3672while(maxIterations--){
3673jQuery.style(elem,prop,initialInUnit+unit);
3674if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){
3675maxIterations=0;
3676}
3677initialInUnit=initialInUnit/scale;
3678}
3679initialInUnit=initialInUnit*2;
3680jQuery.style(elem,prop,initialInUnit+unit);
3681valueParts=valueParts||[];
3682}
3683if(valueParts){
3684initialInUnit=+initialInUnit||+initial||0;
3685adjusted=valueParts[1]?
3686initialInUnit+(valueParts[1]+1)*valueParts[2]:
3687+valueParts[2];
3688if(tween){
3689tween.unit=unit;
3690tween.start=initialInUnit;
3691tween.end=adjusted;
3692}
3693}
3694return adjusted;
3695}
3696var defaultDisplayMap={};
3697function getDefaultDisplay(elem){
3698var temp,
3699doc=elem.ownerDocument,
3700nodeName=elem.nodeName,
3701display=defaultDisplayMap[nodeName];
3702if(display){
3703return display;
3704}
3705temp=doc.body.appendChild(doc.createElement(nodeName));
3706display=jQuery.css(temp,"display");
3707temp.parentNode.removeChild(temp);
3708if(display==="none"){
3709display="block";
3710}
3711defaultDisplayMap[nodeName]=display;
3712return display;
3713}
3714function showHide(elements,show){
3715var display,elem,
3716values=[],
3717index=0,
3718length=elements.length;
3719for(;index<length;index++){
3720elem=elements[index];
3721if(!elem.style){
3722continue;
3723}
3724display=elem.style.display;
3725if(show){
3726if(display==="none"){
3727values[index]=dataPriv.get(elem,"display")||null;
3728if(!values[index]){
3729elem.style.display="";
3730}
3731}
3732if(elem.style.display===""&&isHiddenWithinTree(elem)){
3733values[index]=getDefaultDisplay(elem);
3734}
3735}else{
3736if(display!=="none"){
3737values[index]="none";
3738dataPriv.set(elem,"display",display);
3739}
3740}
3741}
3742for(index=0;index<length;index++){
3743if(values[index]!=null){
3744elements[index].style.display=values[index];
3745}
3746}
3747return elements;
3748}
3749jQuery.fn.extend({
3750show:function(){
3751return showHide(this,true);
3752},
3753hide:function(){
3754return showHide(this);
3755},
3756toggle:function(state){
3757if(typeof state==="boolean"){
3758return state?this.show():this.hide();
3759}
3760return this.each(function(){
3761if(isHiddenWithinTree(this)){
3762jQuery(this).show();
3763}else{
3764jQuery(this).hide();
3765}
3766});
3767}
3768});
3769var rcheckableType=(/^(?:checkbox|radio)$/i);
3770var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]*)/i);
3771var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i);
3772(function(){
3773var fragment=document.createDocumentFragment(),
3774div=fragment.appendChild(document.createElement("div")),
3775input=document.createElement("input");
3776input.setAttribute("type","radio");
3777input.setAttribute("checked","checked");
3778input.setAttribute("name","t");
3779div.appendChild(input);
3780support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;
3781div.innerHTML="<textarea>x</textarea>";
3782support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;
3783div.innerHTML="<option></option>";
3784support.option=!!div.lastChild;
3785})();
3786var wrapMap={
3787thead:[1,"<table>","</table>"],
3788col:[2,"<table><colgroup>","</colgroup></table>"],
3789tr:[2,"<table><tbody>","</tbody></table>"],
3790td:[3,"<table><tbody><tr>","</tr></tbody></table>"],
3791_default:[0,"",""]
3792};
3793wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;
3794wrapMap.th=wrapMap.td;
3795if(!support.option){
3796wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"];
3797}
3798function getAll(context,tag){
3799var ret;
3800if(typeof context.getElementsByTagName!=="undefined"){
3801ret=context.getElementsByTagName(tag||"*");
3802}else if(typeof context.querySelectorAll!=="undefined"){
3803ret=context.querySelectorAll(tag||"*");
3804}else{
3805ret=[];
3806}
3807if(tag===undefined||tag&&nodeName(context,tag)){
3808return jQuery.merge([context],ret);
3809}
3810return ret;
3811}
3812function setGlobalEval(elems,refElements){
3813var i=0,
3814l=elems.length;
3815for(;i<l;i++){
3816dataPriv.set(
3817elems[i],
3818"globalEval",
3819!refElements||dataPriv.get(refElements[i],"globalEval")
3820);
3821}
3822}
3823var rhtml=/<|&#?\w+;/;
3824function buildFragment(elems,context,scripts,selection,ignored){
3825var elem,tmp,tag,wrap,attached,j,
3826fragment=context.createDocumentFragment(),
3827nodes=[],
3828i=0,
3829l=elems.length;
3830for(;i<l;i++){
3831elem=elems[i];
3832if(elem||elem===0){
3833if(toType(elem)==="object"){
3834jQuery.merge(nodes,elem.nodeType?[elem]:elem);
3835}else if(!rhtml.test(elem)){
3836nodes.push(context.createTextNode(elem));
3837}else{
3838tmp=tmp||fragment.appendChild(context.createElement("div"));
3839tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();
3840wrap=wrapMap[tag]||wrapMap._default;
3841tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2];
3842j=wrap[0];
3843while(j--){
3844tmp=tmp.lastChild;
3845}
3846jQuery.merge(nodes,tmp.childNodes);
3847tmp=fragment.firstChild;
3848tmp.textContent="";
3849}
3850}
3851}
3852fragment.textContent="";
3853i=0;
3854while((elem=nodes[i++])){
3855if(selection&&jQuery.inArray(elem,selection)>-1){
3856if(ignored){
3857ignored.push(elem);
3858}
3859continue;
3860}
3861attached=isAttached(elem);
3862tmp=getAll(fragment.appendChild(elem),"script");
3863if(attached){
3864setGlobalEval(tmp);
3865}
3866if(scripts){
3867j=0;
3868while((elem=tmp[j++])){
3869if(rscriptType.test(elem.type||"")){
3870scripts.push(elem);
3871}
3872}
3873}
3874}
3875return fragment;
3876}
3877var rtypenamespace=/^([^.]*)(?:\.(.+)|)/;
3878function returnTrue(){
3879return true;
3880}
3881function returnFalse(){
3882return false;
3883}
3884function on(elem,types,selector,data,fn,one){
3885var origFn,type;
3886if(typeof types==="object"){
3887if(typeof selector!=="string"){
3888data=data||selector;
3889selector=undefined;
3890}
3891for(type in types){
3892on(elem,type,selector,data,types[type],one);
3893}
3894return elem;
3895}
3896if(data==null&&fn==null){
3897fn=selector;
3898data=selector=undefined;
3899}else if(fn==null){
3900if(typeof selector==="string"){
3901fn=data;
3902data=undefined;
3903}else{
3904fn=data;
3905data=selector;
3906selector=undefined;
3907}
3908}
3909if(fn===false){
3910fn=returnFalse;
3911}else if(!fn){
3912return elem;
3913}
3914if(one===1){
3915origFn=fn;
3916fn=function(event){
3917jQuery().off(event);
3918return origFn.apply(this,arguments);
3919};
3920fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);
3921}
3922return elem.each(function(){
3923jQuery.event.add(this,types,fn,data,selector);
3924});
3925}
3926jQuery.event={
3927global:{},
3928add:function(elem,types,handler,data,selector){
3929var handleObjIn,eventHandle,tmp,
3930events,t,handleObj,
3931special,handlers,type,namespaces,origType,
3932elemData=dataPriv.get(elem);
3933if(!acceptData(elem)){
3934return;
3935}
3936if(handler.handler){
3937handleObjIn=handler;
3938handler=handleObjIn.handler;
3939selector=handleObjIn.selector;
3940}
3941if(selector){
3942jQuery.find.matchesSelector(documentElement,selector);
3943}
3944if(!handler.guid){
3945handler.guid=jQuery.guid++;
3946}
3947if(!(events=elemData.events)){
3948events=elemData.events=Object.create(null);
3949}
3950if(!(eventHandle=elemData.handle)){
3951eventHandle=elemData.handle=function(e){
3952return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type?
3953jQuery.event.dispatch.apply(elem,arguments):undefined;
3954};
3955}
3956types=(types||"").match(rnothtmlwhite)||[""];
3957t=types.length;
3958while(t--){
3959tmp=rtypenamespace.exec(types[t])||[];
3960type=origType=tmp[1];
3961namespaces=(tmp[2]||"").split(".").sort();
3962if(!type){
3963continue;
3964}
3965special=jQuery.event.special[type]||{};
3966type=(selector?special.delegateType:special.bindType)||type;
3967special=jQuery.event.special[type]||{};
3968handleObj=jQuery.extend({
3969type:type,
3970origType:origType,
3971data:data,
3972handler:handler,
3973guid:handler.guid,
3974selector:selector,
3975needsContext:selector&&jQuery.expr.match.needsContext.test(selector),
3976namespace:namespaces.join(".")
3977},handleObjIn);
3978if(!(handlers=events[type])){
3979handlers=events[type]=[];
3980handlers.delegateCount=0;
3981if(!special.setup||
3982special.setup.call(elem,data,namespaces,eventHandle)===false){
3983if(elem.addEventListener){
3984elem.addEventListener(type,eventHandle);
3985}
3986}
3987}
3988if(special.add){
3989special.add.call(elem,handleObj);
3990if(!handleObj.handler.guid){
3991handleObj.handler.guid=handler.guid;
3992}
3993}
3994if(selector){
3995handlers.splice(handlers.delegateCount++,0,handleObj);
3996}else{
3997handlers.push(handleObj);
3998}
3999jQuery.event.global[type]=true;
4000}
4001},
4002remove:function(elem,types,handler,selector,mappedTypes){
4003var j,origCount,tmp,
4004events,t,handleObj,
4005special,handlers,type,namespaces,origType,
4006elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);
4007if(!elemData||!(events=elemData.events)){
4008return;
4009}
4010types=(types||"").match(rnothtmlwhite)||[""];
4011t=types.length;
4012while(t--){
4013tmp=rtypenamespace.exec(types[t])||[];
4014type=origType=tmp[1];
4015namespaces=(tmp[2]||"").split(".").sort();
4016if(!type){
4017for(type in events){
4018jQuery.event.remove(elem,type+types[t],handler,selector,true);
4019}
4020continue;
4021}
4022special=jQuery.event.special[type]||{};
4023type=(selector?special.delegateType:special.bindType)||type;
4024handlers=events[type]||[];
4025tmp=tmp[2]&&
4026new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");
4027origCount=j=handlers.length;
4028while(j--){
4029handleObj=handlers[j];
4030if((mappedTypes||origType===handleObj.origType)&&
4031(!handler||handler.guid===handleObj.guid)&&
4032(!tmp||tmp.test(handleObj.namespace))&&
4033(!selector||selector===handleObj.selector||
4034selector==="**"&&handleObj.selector)){
4035handlers.splice(j,1);
4036if(handleObj.selector){
4037handlers.delegateCount--;
4038}
4039if(special.remove){
4040special.remove.call(elem,handleObj);
4041}
4042}
4043}
4044if(origCount&&!handlers.length){
4045if(!special.teardown||
4046special.teardown.call(elem,namespaces,elemData.handle)===false){
4047jQuery.removeEvent(elem,type,elemData.handle);
4048}
4049delete events[type];
4050}
4051}
4052if(jQuery.isEmptyObject(events)){
4053dataPriv.remove(elem,"handle events");
4054}
4055},
4056dispatch:function(nativeEvent){
4057var i,j,ret,matched,handleObj,handlerQueue,
4058args=new Array(arguments.length),
4059event=jQuery.event.fix(nativeEvent),
4060handlers=(
4061dataPriv.get(this,"events")||Object.create(null)
4062)[event.type]||[],
4063special=jQuery.event.special[event.type]||{};
4064args[0]=event;
4065for(i=1;i<arguments.length;i++){
4066args[i]=arguments[i];
4067}
4068event.delegateTarget=this;
4069if(special.preDispatch&&special.preDispatch.call(this,event)===false){
4070return;
4071}
4072handlerQueue=jQuery.event.handlers.call(this,event,handlers);
4073i=0;
4074while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){
4075event.currentTarget=matched.elem;
4076j=0;
4077while((handleObj=matched.handlers[j++])&&
4078!event.isImmediatePropagationStopped()){
4079if(!event.rnamespace||handleObj.namespace===false||
4080event.rnamespace.test(handleObj.namespace)){
4081event.handleObj=handleObj;
4082event.data=handleObj.data;
4083ret=((jQuery.event.special[handleObj.origType]||{}).handle||
4084handleObj.handler).apply(matched.elem,args);
4085if(ret!==undefined){
4086if((event.result=ret)===false){
4087event.preventDefault();
4088event.stopPropagation();
4089}
4090}
4091}
4092}
4093}
4094if(special.postDispatch){
4095special.postDispatch.call(this,event);
4096}
4097return event.result;
4098},
4099handlers:function(event,handlers){
4100var i,handleObj,sel,matchedHandlers,matchedSelectors,
4101handlerQueue=[],
4102delegateCount=handlers.delegateCount,
4103cur=event.target;
4104if(delegateCount&&
4105cur.nodeType&&
4106!(event.type==="click"&&event.button>=1)){
4107for(;cur!==this;cur=cur.parentNode||this){
4108if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){
4109matchedHandlers=[];
4110matchedSelectors={};
4111for(i=0;i<delegateCount;i++){
4112handleObj=handlers[i];
4113sel=handleObj.selector+" ";
4114if(matchedSelectors[sel]===undefined){
4115matchedSelectors[sel]=handleObj.needsContext?
4116jQuery(sel,this).index(cur)>-1:
4117jQuery.find(sel,this,null,[cur]).length;
4118}
4119if(matchedSelectors[sel]){
4120matchedHandlers.push(handleObj);
4121}
4122}
4123if(matchedHandlers.length){
4124handlerQueue.push({elem:cur,handlers:matchedHandlers});
4125}
4126}
4127}
4128}
4129cur=this;
4130if(delegateCount<handlers.length){
4131handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)});
4132}
4133return handlerQueue;
4134},
4135addProp:function(name,hook){
4136Object.defineProperty(jQuery.Event.prototype,name,{
4137enumerable:true,
4138configurable:true,
4139get:isFunction(hook)?
4140function(){
4141if(this.originalEvent){
4142return hook(this.originalEvent);
4143}
4144}:
4145function(){
4146if(this.originalEvent){
4147return this.originalEvent[name];
4148}
4149},
4150set:function(value){
4151Object.defineProperty(this,name,{
4152enumerable:true,
4153configurable:true,
4154writable:true,
4155value:value
4156});
4157}
4158});
4159},
4160fix:function(originalEvent){
4161return originalEvent[jQuery.expando]?
4162originalEvent:
4163new jQuery.Event(originalEvent);
4164},
4165special:{
4166load:{
4167noBubble:true
4168},
4169click:{
4170setup:function(data){
4171var el=this||data;
4172if(rcheckableType.test(el.type)&&
4173el.click&&nodeName(el,"input")){
4174leverageNative(el,"click",true);
4175}
4176return false;
4177},
4178trigger:function(data){
4179var el=this||data;
4180if(rcheckableType.test(el.type)&&
4181el.click&&nodeName(el,"input")){
4182leverageNative(el,"click");
4183}
4184return true;
4185},
4186_default:function(event){
4187var target=event.target;
4188return rcheckableType.test(target.type)&&
4189target.click&&nodeName(target,"input")&&
4190dataPriv.get(target,"click")||
4191nodeName(target,"a");
4192}
4193},
4194beforeunload:{
4195postDispatch:function(event){
4196if(event.result!==undefined&&event.originalEvent){
4197event.originalEvent.returnValue=event.result;
4198}
4199}
4200}
4201}
4202};
4203function leverageNative(el,type,isSetup){
4204if(!isSetup){
4205if(dataPriv.get(el,type)===undefined){
4206jQuery.event.add(el,type,returnTrue);
4207}
4208return;
4209}
4210dataPriv.set(el,type,false);
4211jQuery.event.add(el,type,{
4212namespace:false,
4213handler:function(event){
4214var result,
4215saved=dataPriv.get(this,type);
4216if((event.isTrigger&1)&&this[type]){
4217if(!saved){
4218saved=slice.call(arguments);
4219dataPriv.set(this,type,saved);
4220this[type]();
4221result=dataPriv.get(this,type);
4222dataPriv.set(this,type,false);
4223if(saved!==result){
4224event.stopImmediatePropagation();
4225event.preventDefault();
4226return result;
4227}
4228}else if((jQuery.event.special[type]||{}).delegateType){
4229event.stopPropagation();
4230}
4231}else if(saved){
4232dataPriv.set(this,type,jQuery.event.trigger(
4233saved[0],
4234saved.slice(1),
4235this
4236));
4237event.stopPropagation();
4238event.isImmediatePropagationStopped=returnTrue;
4239}
4240}
4241});
4242}
4243jQuery.removeEvent=function(elem,type,handle){
4244if(elem.removeEventListener){
4245elem.removeEventListener(type,handle);
4246}
4247};
4248jQuery.Event=function(src,props){
4249if(!(this instanceof jQuery.Event)){
4250return new jQuery.Event(src,props);
4251}
4252if(src&&src.type){
4253this.originalEvent=src;
4254this.type=src.type;
4255this.isDefaultPrevented=src.defaultPrevented||
4256src.defaultPrevented===undefined&&
4257src.returnValue===false?
4258returnTrue:
4259returnFalse;
4260this.target=(src.target&&src.target.nodeType===3)?
4261src.target.parentNode:
4262src.target;
4263this.currentTarget=src.currentTarget;
4264this.relatedTarget=src.relatedTarget;
4265}else{
4266this.type=src;
4267}
4268if(props){
4269jQuery.extend(this,props);
4270}
4271this.timeStamp=src&&src.timeStamp||Date.now();
4272this[jQuery.expando]=true;
4273};
4274jQuery.Event.prototype={
4275constructor:jQuery.Event,
4276isDefaultPrevented:returnFalse,
4277isPropagationStopped:returnFalse,
4278isImmediatePropagationStopped:returnFalse,
4279isSimulated:false,
4280preventDefault:function(){
4281var e=this.originalEvent;
4282this.isDefaultPrevented=returnTrue;
4283if(e&&!this.isSimulated){
4284e.preventDefault();
4285}
4286},
4287stopPropagation:function(){
4288var e=this.originalEvent;
4289this.isPropagationStopped=returnTrue;
4290if(e&&!this.isSimulated){
4291e.stopPropagation();
4292}
4293},
4294stopImmediatePropagation:function(){
4295var e=this.originalEvent;
4296this.isImmediatePropagationStopped=returnTrue;
4297if(e&&!this.isSimulated){
4298e.stopImmediatePropagation();
4299}
4300this.stopPropagation();
4301}
4302};
4303jQuery.each({
4304altKey:true,
4305bubbles:true,
4306cancelable:true,
4307changedTouches:true,
4308ctrlKey:true,
4309detail:true,
4310eventPhase:true,
4311metaKey:true,
4312pageX:true,
4313pageY:true,
4314shiftKey:true,
4315view:true,
4316"char":true,
4317code:true,
4318charCode:true,
4319key:true,
4320keyCode:true,
4321button:true,
4322buttons:true,
4323clientX:true,
4324clientY:true,
4325offsetX:true,
4326offsetY:true,
4327pointerId:true,
4328pointerType:true,
4329screenX:true,
4330screenY:true,
4331targetTouches:true,
4332toElement:true,
4333touches:true,
4334which:true
4335},jQuery.event.addProp);
4336jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){
4337function focusMappedHandler(nativeEvent){
4338if(document.documentMode){
4339var handle=dataPriv.get(this,"handle"),
4340event=jQuery.event.fix(nativeEvent);
4341event.type=nativeEvent.type==="focusin"?"focus":"blur";
4342event.isSimulated=true;
4343handle(nativeEvent);
4344if(event.target===event.currentTarget){
4345handle(event);
4346}
4347}else{
4348jQuery.event.simulate(delegateType,nativeEvent.target,
4349jQuery.event.fix(nativeEvent));
4350}
4351}
4352jQuery.event.special[type]={
4353setup:function(){
4354var attaches;
4355leverageNative(this,type,true);
4356if(document.documentMode){
4357attaches=dataPriv.get(this,delegateType);
4358if(!attaches){
4359this.addEventListener(delegateType,focusMappedHandler);
4360}
4361dataPriv.set(this,delegateType,(attaches||0)+1);
4362}else{
4363return false;
4364}
4365},
4366trigger:function(){
4367leverageNative(this,type);
4368return true;
4369},
4370teardown:function(){
4371var attaches;
4372if(document.documentMode){
4373attaches=dataPriv.get(this,delegateType)-1;
4374if(!attaches){
4375this.removeEventListener(delegateType,focusMappedHandler);
4376dataPriv.remove(this,delegateType);
4377}else{
4378dataPriv.set(this,delegateType,attaches);
4379}
4380}else{
4381return false;
4382}
4383},
4384_default:function(event){
4385return dataPriv.get(event.target,type);
4386},
4387delegateType:delegateType
4388};
4389jQuery.event.special[delegateType]={
4390setup:function(){
4391var doc=this.ownerDocument||this.document||this,
4392dataHolder=document.documentMode?this:doc,
4393attaches=dataPriv.get(dataHolder,delegateType);
4394if(!attaches){
4395if(document.documentMode){
4396this.addEventListener(delegateType,focusMappedHandler);
4397}else{
4398doc.addEventListener(type,focusMappedHandler,true);
4399}
4400}
4401dataPriv.set(dataHolder,delegateType,(attaches||0)+1);
4402},
4403teardown:function(){
4404var doc=this.ownerDocument||this.document||this,
4405dataHolder=document.documentMode?this:doc,
4406attaches=dataPriv.get(dataHolder,delegateType)-1;
4407if(!attaches){
4408if(document.documentMode){
4409this.removeEventListener(delegateType,focusMappedHandler);
4410}else{
4411doc.removeEventListener(type,focusMappedHandler,true);
4412}
4413dataPriv.remove(dataHolder,delegateType);
4414}else{
4415dataPriv.set(dataHolder,delegateType,attaches);
4416}
4417}
4418};
4419});
4420jQuery.each({
4421mouseenter:"mouseover",
4422mouseleave:"mouseout",
4423pointerenter:"pointerover",
4424pointerleave:"pointerout"
4425},function(orig,fix){
4426jQuery.event.special[orig]={
4427delegateType:fix,
4428bindType:fix,
4429handle:function(event){
4430var ret,
4431target=this,
4432related=event.relatedTarget,
4433handleObj=event.handleObj;
4434if(!related||(related!==target&&!jQuery.contains(target,related))){
4435event.type=handleObj.origType;
4436ret=handleObj.handler.apply(this,arguments);
4437event.type=fix;
4438}
4439return ret;
4440}
4441};
4442});
4443jQuery.fn.extend({
4444on:function(types,selector,data,fn){
4445return on(this,types,selector,data,fn);
4446},
4447one:function(types,selector,data,fn){
4448return on(this,types,selector,data,fn,1);
4449},
4450off:function(types,selector,fn){
4451var handleObj,type;
4452if(types&&types.preventDefault&&types.handleObj){
4453handleObj=types.handleObj;
4454jQuery(types.delegateTarget).off(
4455handleObj.namespace?
4456handleObj.origType+"."+handleObj.namespace:
4457handleObj.origType,
4458handleObj.selector,
4459handleObj.handler
4460);
4461return this;
4462}
4463if(typeof types==="object"){
4464for(type in types){
4465this.off(type,selector,types[type]);
4466}
4467return this;
4468}
4469if(selector===false||typeof selector==="function"){
4470fn=selector;
4471selector=undefined;
4472}
4473if(fn===false){
4474fn=returnFalse;
4475}
4476return this.each(function(){
4477jQuery.event.remove(this,types,fn,selector);
4478});
4479}
4480});
4481var
4482rnoInnerhtml=/<script|<style|<link/i,
4483rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,
4484rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g;
4485function manipulationTarget(elem,content){
4486if(nodeName(elem,"table")&&
4487nodeName(content.nodeType!==11?content:content.firstChild,"tr")){
4488return jQuery(elem).children("tbody")[0]||elem;
4489}
4490return elem;
4491}
4492function disableScript(elem){
4493elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;
4494return elem;
4495}
4496function restoreScript(elem){
4497if((elem.type||"").slice(0,5)==="true/"){
4498elem.type=elem.type.slice(5);
4499}else{
4500elem.removeAttribute("type");
4501}
4502return elem;
4503}
4504function cloneCopyEvent(src,dest){
4505var i,l,type,pdataOld,udataOld,udataCur,events;
4506if(dest.nodeType!==1){
4507return;
4508}
4509if(dataPriv.hasData(src)){
4510pdataOld=dataPriv.get(src);
4511events=pdataOld.events;
4512if(events){
4513dataPriv.remove(dest,"handle events");
4514for(type in events){
4515for(i=0,l=events[type].length;i<l;i++){
4516jQuery.event.add(dest,type,events[type][i]);
4517}
4518}
4519}
4520}
4521if(dataUser.hasData(src)){
4522udataOld=dataUser.access(src);
4523udataCur=jQuery.extend({},udataOld);
4524dataUser.set(dest,udataCur);
4525}
4526}
4527function fixInput(src,dest){
4528var nodeName=dest.nodeName.toLowerCase();
4529if(nodeName==="input"&&rcheckableType.test(src.type)){
4530dest.checked=src.checked;
4531}else if(nodeName==="input"||nodeName==="textarea"){
4532dest.defaultValue=src.defaultValue;
4533}
4534}
4535function domManip(collection,args,callback,ignored){
4536args=flat(args);
4537var fragment,first,scripts,hasScripts,node,doc,
4538i=0,
4539l=collection.length,
4540iNoClone=l-1,
4541value=args[0],
4542valueIsFunction=isFunction(value);
4543if(valueIsFunction||
4544(l>1&&typeof value==="string"&&
4545!support.checkClone&&rchecked.test(value))){
4546return collection.each(function(index){
4547var self=collection.eq(index);
4548if(valueIsFunction){
4549args[0]=value.call(this,index,self.html());
4550}
4551domManip(self,args,callback,ignored);
4552});
4553}
4554if(l){
4555fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);
4556first=fragment.firstChild;
4557if(fragment.childNodes.length===1){
4558fragment=first;
4559}
4560if(first||ignored){
4561scripts=jQuery.map(getAll(fragment,"script"),disableScript);
4562hasScripts=scripts.length;
4563for(;i<l;i++){
4564node=fragment;
4565if(i!==iNoClone){
4566node=jQuery.clone(node,true,true);
4567if(hasScripts){
4568jQuery.merge(scripts,getAll(node,"script"));
4569}
4570}
4571callback.call(collection[i],node,i);
4572}
4573if(hasScripts){
4574doc=scripts[scripts.length-1].ownerDocument;
4575jQuery.map(scripts,restoreScript);
4576for(i=0;i<hasScripts;i++){
4577node=scripts[i];
4578if(rscriptType.test(node.type||"")&&
4579!dataPriv.access(node,"globalEval")&&
4580jQuery.contains(doc,node)){
4581if(node.src&&(node.type||"").toLowerCase()!=="module"){
4582if(jQuery._evalUrl&&!node.noModule){
4583jQuery._evalUrl(node.src,{
4584nonce:node.nonce||node.getAttribute("nonce")
4585},doc);
4586}
4587}else{
4588DOMEval(node.textContent.replace(rcleanScript,""),node,doc);
4589}
4590}
4591}
4592}
4593}
4594}
4595return collection;
4596}
4597function remove(elem,selector,keepData){
4598var node,
4599nodes=selector?jQuery.filter(selector,elem):elem,
4600i=0;
4601for(;(node=nodes[i])!=null;i++){
4602if(!keepData&&node.nodeType===1){
4603jQuery.cleanData(getAll(node));
4604}
4605if(node.parentNode){
4606if(keepData&&isAttached(node)){
4607setGlobalEval(getAll(node,"script"));
4608}
4609node.parentNode.removeChild(node);
4610}
4611}
4612return elem;
4613}
4614jQuery.extend({
4615htmlPrefilter:function(html){
4616return html;
4617},
4618clone:function(elem,dataAndEvents,deepDataAndEvents){
4619var i,l,srcElements,destElements,
4620clone=elem.cloneNode(true),
4621inPage=isAttached(elem);
4622if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&
4623!jQuery.isXMLDoc(elem)){
4624destElements=getAll(clone);
4625srcElements=getAll(elem);
4626for(i=0,l=srcElements.length;i<l;i++){
4627fixInput(srcElements[i],destElements[i]);
4628}
4629}
4630if(dataAndEvents){
4631if(deepDataAndEvents){
4632srcElements=srcElements||getAll(elem);
4633destElements=destElements||getAll(clone);
4634for(i=0,l=srcElements.length;i<l;i++){
4635cloneCopyEvent(srcElements[i],destElements[i]);
4636}
4637}else{
4638cloneCopyEvent(elem,clone);
4639}
4640}
4641destElements=getAll(clone,"script");
4642if(destElements.length>0){
4643setGlobalEval(destElements,!inPage&&getAll(elem,"script"));
4644}
4645return clone;
4646},
4647cleanData:function(elems){
4648var data,elem,type,
4649special=jQuery.event.special,
4650i=0;
4651for(;(elem=elems[i])!==undefined;i++){
4652if(acceptData(elem)){
4653if((data=elem[dataPriv.expando])){
4654if(data.events){
4655for(type in data.events){
4656if(special[type]){
4657jQuery.event.remove(elem,type);
4658}else{
4659jQuery.removeEvent(elem,type,data.handle);
4660}
4661}
4662}
4663elem[dataPriv.expando]=undefined;
4664}
4665if(elem[dataUser.expando]){
4666elem[dataUser.expando]=undefined;
4667}
4668}
4669}
4670}
4671});
4672jQuery.fn.extend({
4673detach:function(selector){
4674return remove(this,selector,true);
4675},
4676remove:function(selector){
4677return remove(this,selector);
4678},
4679text:function(value){
4680return access(this,function(value){
4681return value===undefined?
4682jQuery.text(this):
4683this.empty().each(function(){
4684if(this.nodeType===1||this.nodeType===11||this.nodeType===9){
4685this.textContent=value;
4686}
4687});
4688},null,value,arguments.length);
4689},
4690append:function(){
4691return domManip(this,arguments,function(elem){
4692if(this.nodeType===1||this.nodeType===11||this.nodeType===9){
4693var target=manipulationTarget(this,elem);
4694target.appendChild(elem);
4695}
4696});
4697},
4698prepend:function(){
4699return domManip(this,arguments,function(elem){
4700if(this.nodeType===1||this.nodeType===11||this.nodeType===9){
4701var target=manipulationTarget(this,elem);
4702target.insertBefore(elem,target.firstChild);
4703}
4704});
4705},
4706before:function(){
4707return domManip(this,arguments,function(elem){
4708if(this.parentNode){
4709this.parentNode.insertBefore(elem,this);
4710}
4711});
4712},
4713after:function(){
4714return domManip(this,arguments,function(elem){
4715if(this.parentNode){
4716this.parentNode.insertBefore(elem,this.nextSibling);
4717}
4718});
4719},
4720empty:function(){
4721var elem,
4722i=0;
4723for(;(elem=this[i])!=null;i++){
4724if(elem.nodeType===1){
4725jQuery.cleanData(getAll(elem,false));
4726elem.textContent="";
4727}
4728}
4729return this;
4730},
4731clone:function(dataAndEvents,deepDataAndEvents){
4732dataAndEvents=dataAndEvents==null?false:dataAndEvents;
4733deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;
4734return this.map(function(){
4735return jQuery.clone(this,dataAndEvents,deepDataAndEvents);
4736});
4737},
4738html:function(value){
4739return access(this,function(value){
4740var elem=this[0]||{},
4741i=0,
4742l=this.length;
4743if(value===undefined&&elem.nodeType===1){
4744return elem.innerHTML;
4745}
4746if(typeof value==="string"&&!rnoInnerhtml.test(value)&&
4747!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){
4748value=jQuery.htmlPrefilter(value);
4749try{
4750for(;i<l;i++){
4751elem=this[i]||{};
4752if(elem.nodeType===1){
4753jQuery.cleanData(getAll(elem,false));
4754elem.innerHTML=value;
4755}
4756}
4757elem=0;
4758}catch(e){}
4759}
4760if(elem){
4761this.empty().append(value);
4762}
4763},null,value,arguments.length);
4764},
4765replaceWith:function(){
4766var ignored=[];
4767return domManip(this,arguments,function(elem){
4768var parent=this.parentNode;
4769if(jQuery.inArray(this,ignored)<0){
4770jQuery.cleanData(getAll(this));
4771if(parent){
4772parent.replaceChild(elem,this);
4773}
4774}
4775},ignored);
4776}
4777});
4778jQuery.each({
4779appendTo:"append",
4780prependTo:"prepend",
4781insertBefore:"before",
4782insertAfter:"after",
4783replaceAll:"replaceWith"
4784},function(name,original){
4785jQuery.fn[name]=function(selector){
4786var elems,
4787ret=[],
4788insert=jQuery(selector),
4789last=insert.length-1,
4790i=0;
4791for(;i<=last;i++){
4792elems=i===last?this:this.clone(true);
4793jQuery(insert[i])[original](elems);
4794push.apply(ret,elems.get());
4795}
4796return this.pushStack(ret);
4797};
4798});
4799var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");
4800var rcustomProp=/^--/;
4801var getStyles=function(elem){
4802var view=elem.ownerDocument.defaultView;
4803if(!view||!view.opener){
4804view=window;
4805}
4806return view.getComputedStyle(elem);
4807};
4808var swap=function(elem,options,callback){
4809var ret,name,
4810old={};
4811for(name in options){
4812old[name]=elem.style[name];
4813elem.style[name]=options[name];
4814}
4815ret=callback.call(elem);
4816for(name in options){
4817elem.style[name]=old[name];
4818}
4819return ret;
4820};
4821var rboxStyle=new RegExp(cssExpand.join("|"),"i");
4822(function(){
4823function computeStyleTests(){
4824if(!div){
4825return;
4826}
4827container.style.cssText="position:absolute;left:-11111px;width:60px;"+
4828"margin-top:1px;padding:0;border:0";
4829div.style.cssText=
4830"position:relative;display:block;box-sizing:border-box;overflow:scroll;"+
4831"margin:auto;border:1px;padding:1px;"+
4832"width:60%;top:1%";
4833documentElement.appendChild(container).appendChild(div);
4834var divStyle=window.getComputedStyle(div);
4835pixelPositionVal=divStyle.top!=="1%";
4836reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;
4837div.style.right="60%";
4838pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;
4839boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;
4840div.style.position="absolute";
4841scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12;
4842documentElement.removeChild(container);
4843div=null;
4844}
4845function roundPixelMeasures(measure){
4846return Math.round(parseFloat(measure));
4847}
4848var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,
4849reliableTrDimensionsVal,reliableMarginLeftVal,
4850container=document.createElement("div"),
4851div=document.createElement("div");
4852if(!div.style){
4853return;
4854}
4855div.style.backgroundClip="content-box";
4856div.cloneNode(true).style.backgroundClip="";
4857support.clearCloneStyle=div.style.backgroundClip==="content-box";
4858jQuery.extend(support,{
4859boxSizingReliable:function(){
4860computeStyleTests();
4861return boxSizingReliableVal;
4862},
4863pixelBoxStyles:function(){
4864computeStyleTests();
4865return pixelBoxStylesVal;
4866},
4867pixelPosition:function(){
4868computeStyleTests();
4869return pixelPositionVal;
4870},
4871reliableMarginLeft:function(){
4872computeStyleTests();
4873return reliableMarginLeftVal;
4874},
4875scrollboxSize:function(){
4876computeStyleTests();
4877return scrollboxSizeVal;
4878},
4879reliableTrDimensions:function(){
4880var table,tr,trChild,trStyle;
4881if(reliableTrDimensionsVal==null){
4882table=document.createElement("table");
4883tr=document.createElement("tr");
4884trChild=document.createElement("div");
4885table.style.cssText="position:absolute;left:-11111px;border-collapse:separate";
4886tr.style.cssText="box-sizing:content-box;border:1px solid";
4887tr.style.height="1px";
4888trChild.style.height="9px";
4889trChild.style.display="block";
4890documentElement
4891.appendChild(table)
4892.appendChild(tr)
4893.appendChild(trChild);
4894trStyle=window.getComputedStyle(tr);
4895reliableTrDimensionsVal=(parseInt(trStyle.height,10)+
4896parseInt(trStyle.borderTopWidth,10)+
4897parseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight;
4898documentElement.removeChild(table);
4899}
4900return reliableTrDimensionsVal;
4901}
4902});
4903})();
4904function curCSS(elem,name,computed){
4905var width,minWidth,maxWidth,ret,
4906isCustomProp=rcustomProp.test(name),
4907style=elem.style;
4908computed=computed||getStyles(elem);
4909if(computed){
4910ret=computed.getPropertyValue(name)||computed[name];
4911if(isCustomProp&&ret){
4912ret=ret.replace(rtrimCSS,"$1")||undefined;
4913}
4914if(ret===""&&!isAttached(elem)){
4915ret=jQuery.style(elem,name);
4916}
4917if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){
4918width=style.width;
4919minWidth=style.minWidth;
4920maxWidth=style.maxWidth;
4921style.minWidth=style.maxWidth=style.width=ret;
4922ret=computed.width;
4923style.width=width;
4924style.minWidth=minWidth;
4925style.maxWidth=maxWidth;
4926}
4927}
4928return ret!==undefined?
4929ret+"":
4930ret;
4931}
4932function addGetHookIf(conditionFn,hookFn){
4933return{
4934get:function(){
4935if(conditionFn()){
4936delete this.get;
4937return;
4938}
4939return(this.get=hookFn).apply(this,arguments);
4940}
4941};
4942}
4943var cssPrefixes=["Webkit","Moz","ms"],
4944emptyStyle=document.createElement("div").style,
4945vendorProps={};
4946function vendorPropName(name){
4947var capName=name[0].toUpperCase()+name.slice(1),
4948i=cssPrefixes.length;
4949while(i--){
4950name=cssPrefixes[i]+capName;
4951if(name in emptyStyle){
4952return name;
4953}
4954}
4955}
4956function finalPropName(name){
4957var final=jQuery.cssProps[name]||vendorProps[name];
4958if(final){
4959return final;
4960}
4961if(name in emptyStyle){
4962return name;
4963}
4964return vendorProps[name]=vendorPropName(name)||name;
4965}
4966var
4967rdisplayswap=/^(none|table(?!-c[ea]).+)/,
4968cssShow={position:"absolute",visibility:"hidden",display:"block"},
4969cssNormalTransform={
4970letterSpacing:"0",
4971fontWeight:"400"
4972};
4973function setPositiveNumber(_elem,value,subtract){
4974var matches=rcssNum.exec(value);
4975return matches?
4976Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):
4977value;
4978}
4979function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){
4980var i=dimension==="width"?1:0,
4981extra=0,
4982delta=0,
4983marginDelta=0;
4984if(box===(isBorderBox?"border":"content")){
4985return 0;
4986}
4987for(;i<4;i+=2){
4988if(box==="margin"){
4989marginDelta+=jQuery.css(elem,box+cssExpand[i],true,styles);
4990}
4991if(!isBorderBox){
4992delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);
4993if(box!=="padding"){
4994delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);
4995}else{
4996extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);
4997}
4998}else{
4999if(box==="content"){
5000delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles);
5001}
5002if(box!=="margin"){
5003delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);
5004}
5005}
5006}
5007if(!isBorderBox&&computedVal>=0){
5008delta+=Math.max(0,Math.ceil(
5009elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-
5010computedVal-
5011delta-
5012extra-
50130.5
5014))||0;
5015}
5016return delta+marginDelta;
5017}
5018function getWidthOrHeight(elem,dimension,extra){
5019var styles=getStyles(elem),
5020boxSizingNeeded=!support.boxSizingReliable()||extra,
5021isBorderBox=boxSizingNeeded&&
5022jQuery.css(elem,"boxSizing",false,styles)==="border-box",
5023valueIsBorderBox=isBorderBox,
5024val=curCSS(elem,dimension,styles),
5025offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);
5026if(rnumnonpx.test(val)){
5027if(!extra){
5028return val;
5029}
5030val="auto";
5031}
5032if((!support.boxSizingReliable()&&isBorderBox||
5033!support.reliableTrDimensions()&&nodeName(elem,"tr")||
5034val==="auto"||
5035!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&&
5036elem.getClientRects().length){
5037isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box";
5038valueIsBorderBox=offsetProp in elem;
5039if(valueIsBorderBox){
5040val=elem[offsetProp];
5041}
5042}
5043val=parseFloat(val)||0;
5044return(val+
5045boxModelAdjustment(
5046elem,
5047dimension,
5048extra||(isBorderBox?"border":"content"),
5049valueIsBorderBox,
5050styles,
5051val
5052)
5053)+"px";
5054}
5055jQuery.extend({
5056cssHooks:{
5057opacity:{
5058get:function(elem,computed){
5059if(computed){
5060var ret=curCSS(elem,"opacity");
5061return ret===""?"1":ret;
5062}
5063}
5064}
5065},
5066cssNumber:{
5067animationIterationCount:true,
5068aspectRatio:true,
5069borderImageSlice:true,
5070columnCount:true,
5071flexGrow:true,
5072flexShrink:true,
5073fontWeight:true,
5074gridArea:true,
5075gridColumn:true,
5076gridColumnEnd:true,
5077gridColumnStart:true,
5078gridRow:true,
5079gridRowEnd:true,
5080gridRowStart:true,
5081lineHeight:true,
5082opacity:true,
5083order:true,
5084orphans:true,
5085scale:true,
5086widows:true,
5087zIndex:true,
5088zoom:true,
5089fillOpacity:true,
5090floodOpacity:true,
5091stopOpacity:true,
5092strokeMiterlimit:true,
5093strokeOpacity:true
5094},
5095cssProps:{},
5096style:function(elem,name,value,extra){
5097if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){
5098return;
5099}
5100var ret,type,hooks,
5101origName=camelCase(name),
5102isCustomProp=rcustomProp.test(name),
5103style=elem.style;
5104if(!isCustomProp){
5105name=finalPropName(origName);
5106}
5107hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
5108if(value!==undefined){
5109type=typeof value;
5110if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){
5111value=adjustCSS(elem,name,ret);
5112type="number";
5113}
5114if(value==null||value!==value){
5115return;
5116}
5117if(type==="number"&&!isCustomProp){
5118value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px");
5119}
5120if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){
5121style[name]="inherit";
5122}
5123if(!hooks||!("set"in hooks)||
5124(value=hooks.set(elem,value,extra))!==undefined){
5125if(isCustomProp){
5126style.setProperty(name,value);
5127}else{
5128style[name]=value;
5129}
5130}
5131}else{
5132if(hooks&&"get"in hooks&&
5133(ret=hooks.get(elem,false,extra))!==undefined){
5134return ret;
5135}
5136return style[name];
5137}
5138},
5139css:function(elem,name,extra,styles){
5140var val,num,hooks,
5141origName=camelCase(name),
5142isCustomProp=rcustomProp.test(name);
5143if(!isCustomProp){
5144name=finalPropName(origName);
5145}
5146hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
5147if(hooks&&"get"in hooks){
5148val=hooks.get(elem,true,extra);
5149}
5150if(val===undefined){
5151val=curCSS(elem,name,styles);
5152}
5153if(val==="normal"&&name in cssNormalTransform){
5154val=cssNormalTransform[name];
5155}
5156if(extra===""||extra){
5157num=parseFloat(val);
5158return extra===true||isFinite(num)?num||0:val;
5159}
5160return val;
5161}
5162});
5163jQuery.each(["height","width"],function(_i,dimension){
5164jQuery.cssHooks[dimension]={
5165get:function(elem,computed,extra){
5166if(computed){
5167return rdisplayswap.test(jQuery.css(elem,"display"))&&
5168(!elem.getClientRects().length||!elem.getBoundingClientRect().width)?
5169swap(elem,cssShow,function(){
5170return getWidthOrHeight(elem,dimension,extra);
5171}):
5172getWidthOrHeight(elem,dimension,extra);
5173}
5174},
5175set:function(elem,value,extra){
5176var matches,
5177styles=getStyles(elem),
5178scrollboxSizeBuggy=!support.scrollboxSize()&&
5179styles.position==="absolute",
5180boxSizingNeeded=scrollboxSizeBuggy||extra,
5181isBorderBox=boxSizingNeeded&&
5182jQuery.css(elem,"boxSizing",false,styles)==="border-box",
5183subtract=extra?
5184boxModelAdjustment(
5185elem,
5186dimension,
5187extra,
5188isBorderBox,
5189styles
5190):
51910;
5192if(isBorderBox&&scrollboxSizeBuggy){
5193subtract-=Math.ceil(
5194elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-
5195parseFloat(styles[dimension])-
5196boxModelAdjustment(elem,dimension,"border",false,styles)-
51970.5
5198);
5199}
5200if(subtract&&(matches=rcssNum.exec(value))&&
5201(matches[3]||"px")!=="px"){
5202elem.style[dimension]=value;
5203value=jQuery.css(elem,dimension);
5204}
5205return setPositiveNumber(elem,value,subtract);
5206}
5207};
5208});
5209jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,
5210function(elem,computed){
5211if(computed){
5212return(parseFloat(curCSS(elem,"marginLeft"))||
5213elem.getBoundingClientRect().left-
5214swap(elem,{marginLeft:0},function(){
5215return elem.getBoundingClientRect().left;
5216})
5217)+"px";
5218}
5219}
5220);
5221jQuery.each({
5222margin:"",
5223padding:"",
5224border:"Width"
5225},function(prefix,suffix){
5226jQuery.cssHooks[prefix+suffix]={
5227expand:function(value){
5228var i=0,
5229expanded={},
5230parts=typeof value==="string"?value.split(" "):[value];
5231for(;i<4;i++){
5232expanded[prefix+cssExpand[i]+suffix]=
5233parts[i]||parts[i-2]||parts[0];
5234}
5235return expanded;
5236}
5237};
5238if(prefix!=="margin"){
5239jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;
5240}
5241});
5242jQuery.fn.extend({
5243css:function(name,value){
5244return access(this,function(elem,name,value){
5245var styles,len,
5246map={},
5247i=0;
5248if(Array.isArray(name)){
5249styles=getStyles(elem);
5250len=name.length;
5251for(;i<len;i++){
5252map[name[i]]=jQuery.css(elem,name[i],false,styles);
5253}
5254return map;
5255}
5256return value!==undefined?
5257jQuery.style(elem,name,value):
5258jQuery.css(elem,name);
5259},name,value,arguments.length>1);
5260}
5261});
5262function Tween(elem,options,prop,end,easing){
5263return new Tween.prototype.init(elem,options,prop,end,easing);
5264}
5265jQuery.Tween=Tween;
5266Tween.prototype={
5267constructor:Tween,
5268init:function(elem,options,prop,end,easing,unit){
5269this.elem=elem;
5270this.prop=prop;
5271this.easing=easing||jQuery.easing._default;
5272this.options=options;
5273this.start=this.now=this.cur();
5274this.end=end;
5275this.unit=unit||(jQuery.cssNumber[prop]?"":"px");
5276},
5277cur:function(){
5278var hooks=Tween.propHooks[this.prop];
5279return hooks&&hooks.get?
5280hooks.get(this):
5281Tween.propHooks._default.get(this);
5282},
5283run:function(percent){
5284var eased,
5285hooks=Tween.propHooks[this.prop];
5286if(this.options.duration){
5287this.pos=eased=jQuery.easing[this.easing](
5288percent,this.options.duration*percent,0,1,this.options.duration
5289);
5290}else{
5291this.pos=eased=percent;
5292}
5293this.now=(this.end-this.start)*eased+this.start;
5294if(this.options.step){
5295this.options.step.call(this.elem,this.now,this);
5296}
5297if(hooks&&hooks.set){
5298hooks.set(this);
5299}else{
5300Tween.propHooks._default.set(this);
5301}
5302return this;
5303}
5304};
5305Tween.prototype.init.prototype=Tween.prototype;
5306Tween.propHooks={
5307_default:{
5308get:function(tween){
5309var result;
5310if(tween.elem.nodeType!==1||
5311tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){
5312return tween.elem[tween.prop];
5313}
5314result=jQuery.css(tween.elem,tween.prop,"");
5315return!result||result==="auto"?0:result;
5316},
5317set:function(tween){
5318if(jQuery.fx.step[tween.prop]){
5319jQuery.fx.step[tween.prop](tween);
5320}else if(tween.elem.nodeType===1&&(
5321jQuery.cssHooks[tween.prop]||
5322tween.elem.style[finalPropName(tween.prop)]!=null)){
5323jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);
5324}else{
5325tween.elem[tween.prop]=tween.now;
5326}
5327}
5328}
5329};
5330Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={
5331set:function(tween){
5332if(tween.elem.nodeType&&tween.elem.parentNode){
5333tween.elem[tween.prop]=tween.now;
5334}
5335}
5336};
5337jQuery.easing={
5338linear:function(p){
5339return p;
5340},
5341swing:function(p){
5342return 0.5-Math.cos(p*Math.PI)/2;
5343},
5344_default:"swing"
5345};
5346jQuery.fx=Tween.prototype.init;
5347jQuery.fx.step={};
5348var
5349fxNow,inProgress,
5350rfxtypes=/^(?:toggle|show|hide)$/,
5351rrun=/queueHooks$/;
5352function schedule(){
5353if(inProgress){
5354if(document.hidden===false&&window.requestAnimationFrame){
5355window.requestAnimationFrame(schedule);
5356}else{
5357window.setTimeout(schedule,jQuery.fx.interval);
5358}
5359jQuery.fx.tick();
5360}
5361}
5362function createFxNow(){
5363window.setTimeout(function(){
5364fxNow=undefined;
5365});
5366return(fxNow=Date.now());
5367}
5368function genFx(type,includeWidth){
5369var which,
5370i=0,
5371attrs={height:type};
5372includeWidth=includeWidth?1:0;
5373for(;i<4;i+=2-includeWidth){
5374which=cssExpand[i];
5375attrs["margin"+which]=attrs["padding"+which]=type;
5376}
5377if(includeWidth){
5378attrs.opacity=attrs.width=type;
5379}
5380return attrs;
5381}
5382function createTween(value,prop,animation){
5383var tween,
5384collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),
5385index=0,
5386length=collection.length;
5387for(;index<length;index++){
5388if((tween=collection[index].call(animation,prop,value))){
5389return tween;
5390}
5391}
5392}
5393function defaultPrefilter(elem,props,opts){
5394var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,
5395isBox="width"in props||"height"in props,
5396anim=this,
5397orig={},
5398style=elem.style,
5399hidden=elem.nodeType&&isHiddenWithinTree(elem),
5400dataShow=dataPriv.get(elem,"fxshow");
5401if(!opts.queue){
5402hooks=jQuery._queueHooks(elem,"fx");
5403if(hooks.unqueued==null){
5404hooks.unqueued=0;
5405oldfire=hooks.empty.fire;
5406hooks.empty.fire=function(){
5407if(!hooks.unqueued){
5408oldfire();
5409}
5410};
5411}
5412hooks.unqueued++;
5413anim.always(function(){
5414anim.always(function(){
5415hooks.unqueued--;
5416if(!jQuery.queue(elem,"fx").length){
5417hooks.empty.fire();
5418}
5419});
5420});
5421}
5422for(prop in props){
5423value=props[prop];
5424if(rfxtypes.test(value)){
5425delete props[prop];
5426toggle=toggle||value==="toggle";
5427if(value===(hidden?"hide":"show")){
5428if(value==="show"&&dataShow&&dataShow[prop]!==undefined){
5429hidden=true;
5430}else{
5431continue;
5432}
5433}
5434orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop);
5435}
5436}
5437propTween=!jQuery.isEmptyObject(props);
5438if(!propTween&&jQuery.isEmptyObject(orig)){
5439return;
5440}
5441if(isBox&&elem.nodeType===1){
5442opts.overflow=[style.overflow,style.overflowX,style.overflowY];
5443restoreDisplay=dataShow&&dataShow.display;
5444if(restoreDisplay==null){
5445restoreDisplay=dataPriv.get(elem,"display");
5446}
5447display=jQuery.css(elem,"display");
5448if(display==="none"){
5449if(restoreDisplay){
5450display=restoreDisplay;
5451}else{
5452showHide([elem],true);
5453restoreDisplay=elem.style.display||restoreDisplay;
5454display=jQuery.css(elem,"display");
5455showHide([elem]);
5456}
5457}
5458if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){
5459if(jQuery.css(elem,"float")==="none"){
5460if(!propTween){
5461anim.done(function(){
5462style.display=restoreDisplay;
5463});
5464if(restoreDisplay==null){
5465display=style.display;
5466restoreDisplay=display==="none"?"":display;
5467}
5468}
5469style.display="inline-block";
5470}
5471}
5472}
5473if(opts.overflow){
5474style.overflow="hidden";
5475anim.always(function(){
5476style.overflow=opts.overflow[0];
5477style.overflowX=opts.overflow[1];
5478style.overflowY=opts.overflow[2];
5479});
5480}
5481propTween=false;
5482for(prop in orig){
5483if(!propTween){
5484if(dataShow){
5485if("hidden"in dataShow){
5486hidden=dataShow.hidden;
5487}
5488}else{
5489dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay});
5490}
5491if(toggle){
5492dataShow.hidden=!hidden;
5493}
5494if(hidden){
5495showHide([elem],true);
5496}
5497anim.done(function(){
5498if(!hidden){
5499showHide([elem]);
5500}
5501dataPriv.remove(elem,"fxshow");
5502for(prop in orig){
5503jQuery.style(elem,prop,orig[prop]);
5504}
5505});
5506}
5507propTween=createTween(hidden?dataShow[prop]:0,prop,anim);
5508if(!(prop in dataShow)){
5509dataShow[prop]=propTween.start;
5510if(hidden){
5511propTween.end=propTween.start;
5512propTween.start=0;
5513}
5514}
5515}
5516}
5517function propFilter(props,specialEasing){
5518var index,name,easing,value,hooks;
5519for(index in props){
5520name=camelCase(index);
5521easing=specialEasing[name];
5522value=props[index];
5523if(Array.isArray(value)){
5524easing=value[1];
5525value=props[index]=value[0];
5526}
5527if(index!==name){
5528props[name]=value;
5529delete props[index];
5530}
5531hooks=jQuery.cssHooks[name];
5532if(hooks&&"expand"in hooks){
5533value=hooks.expand(value);
5534delete props[name];
5535for(index in value){
5536if(!(index in props)){
5537props[index]=value[index];
5538specialEasing[index]=easing;
5539}
5540}
5541}else{
5542specialEasing[name]=easing;
5543}
5544}
5545}
5546function Animation(elem,properties,options){
5547var result,
5548stopped,
5549index=0,
5550length=Animation.prefilters.length,
5551deferred=jQuery.Deferred().always(function(){
5552delete tick.elem;
5553}),
5554tick=function(){
5555if(stopped){
5556return false;
5557}
5558var currentTime=fxNow||createFxNow(),
5559remaining=Math.max(0,animation.startTime+animation.duration-currentTime),
5560temp=remaining/animation.duration||0,
5561percent=1-temp,
5562index=0,
5563length=animation.tweens.length;
5564for(;index<length;index++){
5565animation.tweens[index].run(percent);
5566}
5567deferred.notifyWith(elem,[animation,percent,remaining]);
5568if(percent<1&&length){
5569return remaining;
5570}
5571if(!length){
5572deferred.notifyWith(elem,[animation,1,0]);
5573}
5574deferred.resolveWith(elem,[animation]);
5575return false;
5576},
5577animation=deferred.promise({
5578elem:elem,
5579props:jQuery.extend({},properties),
5580opts:jQuery.extend(true,{
5581specialEasing:{},
5582easing:jQuery.easing._default
5583},options),
5584originalProperties:properties,
5585originalOptions:options,
5586startTime:fxNow||createFxNow(),
5587duration:options.duration,
5588tweens:[],
5589createTween:function(prop,end){
5590var tween=jQuery.Tween(elem,animation.opts,prop,end,
5591animation.opts.specialEasing[prop]||animation.opts.easing);
5592animation.tweens.push(tween);
5593return tween;
5594},
5595stop:function(gotoEnd){
5596var index=0,
5597length=gotoEnd?animation.tweens.length:0;
5598if(stopped){
5599return this;
5600}
5601stopped=true;
5602for(;index<length;index++){
5603animation.tweens[index].run(1);
5604}
5605if(gotoEnd){
5606deferred.notifyWith(elem,[animation,1,0]);
5607deferred.resolveWith(elem,[animation,gotoEnd]);
5608}else{
5609deferred.rejectWith(elem,[animation,gotoEnd]);
5610}
5611return this;
5612}
5613}),
5614props=animation.props;
5615propFilter(props,animation.opts.specialEasing);
5616for(;index<length;index++){
5617result=Animation.prefilters[index].call(animation,elem,props,animation.opts);
5618if(result){
5619if(isFunction(result.stop)){
5620jQuery._queueHooks(animation.elem,animation.opts.queue).stop=
5621result.stop.bind(result);
5622}
5623return result;
5624}
5625}
5626jQuery.map(props,createTween,animation);
5627if(isFunction(animation.opts.start)){
5628animation.opts.start.call(elem,animation);
5629}
5630animation
5631.progress(animation.opts.progress)
5632.done(animation.opts.done,animation.opts.complete)
5633.fail(animation.opts.fail)
5634.always(animation.opts.always);
5635jQuery.fx.timer(
5636jQuery.extend(tick,{
5637elem:elem,
5638anim:animation,
5639queue:animation.opts.queue
5640})
5641);
5642return animation;
5643}
5644jQuery.Animation=jQuery.extend(Animation,{
5645tweeners:{
5646"*":[function(prop,value){
5647var tween=this.createTween(prop,value);
5648adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);
5649return tween;
5650}]
5651},
5652tweener:function(props,callback){
5653if(isFunction(props)){
5654callback=props;
5655props=["*"];
5656}else{
5657props=props.match(rnothtmlwhite);
5658}
5659var prop,
5660index=0,
5661length=props.length;
5662for(;index<length;index++){
5663prop=props[index];
5664Animation.tweeners[prop]=Animation.tweeners[prop]||[];
5665Animation.tweeners[prop].unshift(callback);
5666}
5667},
5668prefilters:[defaultPrefilter],
5669prefilter:function(callback,prepend){
5670if(prepend){
5671Animation.prefilters.unshift(callback);
5672}else{
5673Animation.prefilters.push(callback);
5674}
5675}
5676});
5677jQuery.speed=function(speed,easing,fn){
5678var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{
5679complete:fn||!fn&&easing||
5680isFunction(speed)&&speed,
5681duration:speed,
5682easing:fn&&easing||easing&&!isFunction(easing)&&easing
5683};
5684if(jQuery.fx.off){
5685opt.duration=0;
5686}else{
5687if(typeof opt.duration!=="number"){
5688if(opt.duration in jQuery.fx.speeds){
5689opt.duration=jQuery.fx.speeds[opt.duration];
5690}else{
5691opt.duration=jQuery.fx.speeds._default;
5692}
5693}
5694}
5695if(opt.queue==null||opt.queue===true){
5696opt.queue="fx";
5697}
5698opt.old=opt.complete;
5699opt.complete=function(){
5700if(isFunction(opt.old)){
5701opt.old.call(this);
5702}
5703if(opt.queue){
5704jQuery.dequeue(this,opt.queue);
5705}
5706};
5707return opt;
5708};
5709jQuery.fn.extend({
5710fadeTo:function(speed,to,easing,callback){
5711return this.filter(isHiddenWithinTree).css("opacity",0).show()
5712.end().animate({opacity:to},speed,easing,callback);
5713},
5714animate:function(prop,speed,easing,callback){
5715var empty=jQuery.isEmptyObject(prop),
5716optall=jQuery.speed(speed,easing,callback),
5717doAnimation=function(){
5718var anim=Animation(this,jQuery.extend({},prop),optall);
5719if(empty||dataPriv.get(this,"finish")){
5720anim.stop(true);
5721}
5722};
5723doAnimation.finish=doAnimation;
5724return empty||optall.queue===false?
5725this.each(doAnimation):
5726this.queue(optall.queue,doAnimation);
5727},
5728stop:function(type,clearQueue,gotoEnd){
5729var stopQueue=function(hooks){
5730var stop=hooks.stop;
5731delete hooks.stop;
5732stop(gotoEnd);
5733};
5734if(typeof type!=="string"){
5735gotoEnd=clearQueue;
5736clearQueue=type;
5737type=undefined;
5738}
5739if(clearQueue){
5740this.queue(type||"fx",[]);
5741}
5742return this.each(function(){
5743var dequeue=true,
5744index=type!=null&&type+"queueHooks",
5745timers=jQuery.timers,
5746data=dataPriv.get(this);
5747if(index){
5748if(data[index]&&data[index].stop){
5749stopQueue(data[index]);
5750}
5751}else{
5752for(index in data){
5753if(data[index]&&data[index].stop&&rrun.test(index)){
5754stopQueue(data[index]);
5755}
5756}
5757}
5758for(index=timers.length;index--;){
5759if(timers[index].elem===this&&
5760(type==null||timers[index].queue===type)){
5761timers[index].anim.stop(gotoEnd);
5762dequeue=false;
5763timers.splice(index,1);
5764}
5765}
5766if(dequeue||!gotoEnd){
5767jQuery.dequeue(this,type);
5768}
5769});
5770},
5771finish:function(type){
5772if(type!==false){
5773type=type||"fx";
5774}
5775return this.each(function(){
5776var index,
5777data=dataPriv.get(this),
5778queue=data[type+"queue"],
5779hooks=data[type+"queueHooks"],
5780timers=jQuery.timers,
5781length=queue?queue.length:0;
5782data.finish=true;
5783jQuery.queue(this,type,[]);
5784if(hooks&&hooks.stop){
5785hooks.stop.call(this,true);
5786}
5787for(index=timers.length;index--;){
5788if(timers[index].elem===this&&timers[index].queue===type){
5789timers[index].anim.stop(true);
5790timers.splice(index,1);
5791}
5792}
5793for(index=0;index<length;index++){
5794if(queue[index]&&queue[index].finish){
5795queue[index].finish.call(this);
5796}
5797}
5798delete data.finish;
5799});
5800}
5801});
5802jQuery.each(["toggle","show","hide"],function(_i,name){
5803var cssFn=jQuery.fn[name];
5804jQuery.fn[name]=function(speed,easing,callback){
5805return speed==null||typeof speed==="boolean"?
5806cssFn.apply(this,arguments):
5807this.animate(genFx(name,true),speed,easing,callback);
5808};
5809});
5810jQuery.each({
5811slideDown:genFx("show"),
5812slideUp:genFx("hide"),
5813slideToggle:genFx("toggle"),
5814fadeIn:{opacity:"show"},
5815fadeOut:{opacity:"hide"},
5816fadeToggle:{opacity:"toggle"}
5817},function(name,props){
5818jQuery.fn[name]=function(speed,easing,callback){
5819return this.animate(props,speed,easing,callback);
5820};
5821});
5822jQuery.timers=[];
5823jQuery.fx.tick=function(){
5824var timer,
5825i=0,
5826timers=jQuery.timers;
5827fxNow=Date.now();
5828for(;i<timers.length;i++){
5829timer=timers[i];
5830if(!timer()&&timers[i]===timer){
5831timers.splice(i--,1);
5832}
5833}
5834if(!timers.length){
5835jQuery.fx.stop();
5836}
5837fxNow=undefined;
5838};
5839jQuery.fx.timer=function(timer){
5840jQuery.timers.push(timer);
5841jQuery.fx.start();
5842};
5843jQuery.fx.interval=13;
5844jQuery.fx.start=function(){
5845if(inProgress){
5846return;
5847}
5848inProgress=true;
5849schedule();
5850};
5851jQuery.fx.stop=function(){
5852inProgress=null;
5853};
5854jQuery.fx.speeds={
5855slow:600,
5856fast:200,
5857_default:400
5858};
5859jQuery.fn.delay=function(time,type){
5860time=jQuery.fx?jQuery.fx.speeds[time]||time:time;
5861type=type||"fx";
5862return this.queue(type,function(next,hooks){
5863var timeout=window.setTimeout(next,time);
5864hooks.stop=function(){
5865window.clearTimeout(timeout);
5866};
5867});
5868};
5869(function(){
5870var input=document.createElement("input"),
5871select=document.createElement("select"),
5872opt=select.appendChild(document.createElement("option"));
5873input.type="checkbox";
5874support.checkOn=input.value!=="";
5875support.optSelected=opt.selected;
5876input=document.createElement("input");
5877input.value="t";
5878input.type="radio";
5879support.radioValue=input.value==="t";
5880})();
5881var boolHook,
5882attrHandle=jQuery.expr.attrHandle;
5883jQuery.fn.extend({
5884attr:function(name,value){
5885return access(this,jQuery.attr,name,value,arguments.length>1);
5886},
5887removeAttr:function(name){
5888return this.each(function(){
5889jQuery.removeAttr(this,name);
5890});
5891}
5892});
5893jQuery.extend({
5894attr:function(elem,name,value){
5895var ret,hooks,
5896nType=elem.nodeType;
5897if(nType===3||nType===8||nType===2){
5898return;
5899}
5900if(typeof elem.getAttribute==="undefined"){
5901return jQuery.prop(elem,name,value);
5902}
5903if(nType!==1||!jQuery.isXMLDoc(elem)){
5904hooks=jQuery.attrHooks[name.toLowerCase()]||
5905(jQuery.expr.match.bool.test(name)?boolHook:undefined);
5906}
5907if(value!==undefined){
5908if(value===null){
5909jQuery.removeAttr(elem,name);
5910return;
5911}
5912if(hooks&&"set"in hooks&&
5913(ret=hooks.set(elem,value,name))!==undefined){
5914return ret;
5915}
5916elem.setAttribute(name,value+"");
5917return value;
5918}
5919if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){
5920return ret;
5921}
5922ret=jQuery.find.attr(elem,name);
5923return ret==null?undefined:ret;
5924},
5925attrHooks:{
5926type:{
5927set:function(elem,value){
5928if(!support.radioValue&&value==="radio"&&
5929nodeName(elem,"input")){
5930var val=elem.value;
5931elem.setAttribute("type",value);
5932if(val){
5933elem.value=val;
5934}
5935return value;
5936}
5937}
5938}
5939},
5940removeAttr:function(elem,value){
5941var name,
5942i=0,
5943attrNames=value&&value.match(rnothtmlwhite);
5944if(attrNames&&elem.nodeType===1){
5945while((name=attrNames[i++])){
5946elem.removeAttribute(name);
5947}
5948}
5949}
5950});
5951boolHook={
5952set:function(elem,value,name){
5953if(value===false){
5954jQuery.removeAttr(elem,name);
5955}else{
5956elem.setAttribute(name,name);
5957}
5958return name;
5959}
5960};
5961jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){
5962var getter=attrHandle[name]||jQuery.find.attr;
5963attrHandle[name]=function(elem,name,isXML){
5964var ret,handle,
5965lowercaseName=name.toLowerCase();
5966if(!isXML){
5967handle=attrHandle[lowercaseName];
5968attrHandle[lowercaseName]=ret;
5969ret=getter(elem,name,isXML)!=null?
5970lowercaseName:
5971null;
5972attrHandle[lowercaseName]=handle;
5973}
5974return ret;
5975};
5976});
5977var rfocusable=/^(?:input|select|textarea|button)$/i,
5978rclickable=/^(?:a|area)$/i;
5979jQuery.fn.extend({
5980prop:function(name,value){
5981return access(this,jQuery.prop,name,value,arguments.length>1);
5982},
5983removeProp:function(name){
5984return this.each(function(){
5985delete this[jQuery.propFix[name]||name];
5986});
5987}
5988});
5989jQuery.extend({
5990prop:function(elem,name,value){
5991var ret,hooks,
5992nType=elem.nodeType;
5993if(nType===3||nType===8||nType===2){
5994return;
5995}
5996if(nType!==1||!jQuery.isXMLDoc(elem)){
5997name=jQuery.propFix[name]||name;
5998hooks=jQuery.propHooks[name];
5999}
6000if(value!==undefined){
6001if(hooks&&"set"in hooks&&
6002(ret=hooks.set(elem,value,name))!==undefined){
6003return ret;
6004}
6005return(elem[name]=value);
6006}
6007if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){
6008return ret;
6009}
6010return elem[name];
6011},
6012propHooks:{
6013tabIndex:{
6014get:function(elem){
6015var tabindex=jQuery.find.attr(elem,"tabindex");
6016if(tabindex){
6017return parseInt(tabindex,10);
6018}
6019if(
6020rfocusable.test(elem.nodeName)||
6021rclickable.test(elem.nodeName)&&
6022elem.href
6023){
6024return 0;
6025}
6026return-1;
6027}
6028}
6029},
6030propFix:{
6031"for":"htmlFor",
6032"class":"className"
6033}
6034});
6035if(!support.optSelected){
6036jQuery.propHooks.selected={
6037get:function(elem){
6038var parent=elem.parentNode;
6039if(parent&&parent.parentNode){
6040parent.parentNode.selectedIndex;
6041}
6042return null;
6043},
6044set:function(elem){
6045var parent=elem.parentNode;
6046if(parent){
6047parent.selectedIndex;
6048if(parent.parentNode){
6049parent.parentNode.selectedIndex;
6050}
6051}
6052}
6053};
6054}
6055jQuery.each([
6056"tabIndex",
6057"readOnly",
6058"maxLength",
6059"cellSpacing",
6060"cellPadding",
6061"rowSpan",
6062"colSpan",
6063"useMap",
6064"frameBorder",
6065"contentEditable"
6066],function(){
6067jQuery.propFix[this.toLowerCase()]=this;
6068});
6069function stripAndCollapse(value){
6070var tokens=value.match(rnothtmlwhite)||[];
6071return tokens.join(" ");
6072}
6073function getClass(elem){
6074return elem.getAttribute&&elem.getAttribute("class")||"";
6075}
6076function classesToArray(value){
6077if(Array.isArray(value)){
6078return value;
6079}
6080if(typeof value==="string"){
6081return value.match(rnothtmlwhite)||[];
6082}
6083return[];
6084}
6085jQuery.fn.extend({
6086addClass:function(value){
6087var classNames,cur,curValue,className,i,finalValue;
6088if(isFunction(value)){
6089return this.each(function(j){
6090jQuery(this).addClass(value.call(this,j,getClass(this)));
6091});
6092}
6093classNames=classesToArray(value);
6094if(classNames.length){
6095return this.each(function(){
6096curValue=getClass(this);
6097cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" ");
6098if(cur){
6099for(i=0;i<classNames.length;i++){
6100className=classNames[i];
6101if(cur.indexOf(" "+className+" ")<0){
6102cur+=className+" ";
6103}
6104}
6105finalValue=stripAndCollapse(cur);
6106if(curValue!==finalValue){
6107this.setAttribute("class",finalValue);
6108}
6109}
6110});
6111}
6112return this;
6113},
6114removeClass:function(value){
6115var classNames,cur,curValue,className,i,finalValue;
6116if(isFunction(value)){
6117return this.each(function(j){
6118jQuery(this).removeClass(value.call(this,j,getClass(this)));
6119});
6120}
6121if(!arguments.length){
6122return this.attr("class","");
6123}
6124classNames=classesToArray(value);
6125if(classNames.length){
6126return this.each(function(){
6127curValue=getClass(this);
6128cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" ");
6129if(cur){
6130for(i=0;i<classNames.length;i++){
6131className=classNames[i];
6132while(cur.indexOf(" "+className+" ")>-1){
6133cur=cur.replace(" "+className+" "," ");
6134}
6135}
6136finalValue=stripAndCollapse(cur);
6137if(curValue!==finalValue){
6138this.setAttribute("class",finalValue);
6139}
6140}
6141});
6142}
6143return this;
6144},
6145toggleClass:function(value,stateVal){
6146var classNames,className,i,self,
6147type=typeof value,
6148isValidValue=type==="string"||Array.isArray(value);
6149if(isFunction(value)){
6150return this.each(function(i){
6151jQuery(this).toggleClass(
6152value.call(this,i,getClass(this),stateVal),
6153stateVal
6154);
6155});
6156}
6157if(typeof stateVal==="boolean"&&isValidValue){
6158return stateVal?this.addClass(value):this.removeClass(value);
6159}
6160classNames=classesToArray(value);
6161return this.each(function(){
6162if(isValidValue){
6163self=jQuery(this);
6164for(i=0;i<classNames.length;i++){
6165className=classNames[i];
6166if(self.hasClass(className)){
6167self.removeClass(className);
6168}else{
6169self.addClass(className);
6170}
6171}
6172}else if(value===undefined||type==="boolean"){
6173className=getClass(this);
6174if(className){
6175dataPriv.set(this,"__className__",className);
6176}
6177if(this.setAttribute){
6178this.setAttribute("class",
6179className||value===false?
6180"":
6181dataPriv.get(this,"__className__")||""
6182);
6183}
6184}
6185});
6186},
6187hasClass:function(selector){
6188var className,elem,
6189i=0;
6190className=" "+selector+" ";
6191while((elem=this[i++])){
6192if(elem.nodeType===1&&
6193(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){
6194return true;
6195}
6196}
6197return false;
6198}
6199});
6200var rreturn=/\r/g;
6201jQuery.fn.extend({
6202val:function(value){
6203var hooks,ret,valueIsFunction,
6204elem=this[0];
6205if(!arguments.length){
6206if(elem){
6207hooks=jQuery.valHooks[elem.type]||
6208jQuery.valHooks[elem.nodeName.toLowerCase()];
6209if(hooks&&
6210"get"in hooks&&
6211(ret=hooks.get(elem,"value"))!==undefined
6212){
6213return ret;
6214}
6215ret=elem.value;
6216if(typeof ret==="string"){
6217return ret.replace(rreturn,"");
6218}
6219return ret==null?"":ret;
6220}
6221return;
6222}
6223valueIsFunction=isFunction(value);
6224return this.each(function(i){
6225var val;
6226if(this.nodeType!==1){
6227return;
6228}
6229if(valueIsFunction){
6230val=value.call(this,i,jQuery(this).val());
6231}else{
6232val=value;
6233}
6234if(val==null){
6235val="";
6236}else if(typeof val==="number"){
6237val+="";
6238}else if(Array.isArray(val)){
6239val=jQuery.map(val,function(value){
6240return value==null?"":value+"";
6241});
6242}
6243hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];
6244if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){
6245this.value=val;
6246}
6247});
6248}
6249});
6250jQuery.extend({
6251valHooks:{
6252option:{
6253get:function(elem){
6254var val=jQuery.find.attr(elem,"value");
6255return val!=null?
6256val:
6257stripAndCollapse(jQuery.text(elem));
6258}
6259},
6260select:{
6261get:function(elem){
6262var value,option,i,
6263options=elem.options,
6264index=elem.selectedIndex,
6265one=elem.type==="select-one",
6266values=one?null:[],
6267max=one?index+1:options.length;
6268if(index<0){
6269i=max;
6270}else{
6271i=one?index:0;
6272}
6273for(;i<max;i++){
6274option=options[i];
6275if((option.selected||i===index)&&
6276!option.disabled&&
6277(!option.parentNode.disabled||
6278!nodeName(option.parentNode,"optgroup"))){
6279value=jQuery(option).val();
6280if(one){
6281return value;
6282}
6283values.push(value);
6284}
6285}
6286return values;
6287},
6288set:function(elem,value){
6289var optionSet,option,
6290options=elem.options,
6291values=jQuery.makeArray(value),
6292i=options.length;
6293while(i--){
6294option=options[i];
6295if(option.selected=
6296jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1
6297){
6298optionSet=true;
6299}
6300}
6301if(!optionSet){
6302elem.selectedIndex=-1;
6303}
6304return values;
6305}
6306}
6307}
6308});
6309jQuery.each(["radio","checkbox"],function(){
6310jQuery.valHooks[this]={
6311set:function(elem,value){
6312if(Array.isArray(value)){
6313return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1);
6314}
6315}
6316};
6317if(!support.checkOn){
6318jQuery.valHooks[this].get=function(elem){
6319return elem.getAttribute("value")===null?"on":elem.value;
6320};
6321}
6322});
6323var location=window.location;
6324var nonce={guid:Date.now()};
6325var rquery=(/\?/);
6326jQuery.parseXML=function(data){
6327var xml,parserErrorElem;
6328if(!data||typeof data!=="string"){
6329return null;
6330}
6331try{
6332xml=(new window.DOMParser()).parseFromString(data,"text/xml");
6333}catch(e){}
6334parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0];
6335if(!xml||parserErrorElem){
6336jQuery.error("Invalid XML: "+(
6337parserErrorElem?
6338jQuery.map(parserErrorElem.childNodes,function(el){
6339return el.textContent;
6340}).join("\n"):
6341data
6342));
6343}
6344return xml;
6345};
6346var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,
6347stopPropagationCallback=function(e){
6348e.stopPropagation();
6349};
6350jQuery.extend(jQuery.event,{
6351trigger:function(event,data,elem,onlyHandlers){
6352var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,
6353eventPath=[elem||document],
6354type=hasOwn.call(event,"type")?event.type:event,
6355namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];
6356cur=lastElement=tmp=elem=elem||document;
6357if(elem.nodeType===3||elem.nodeType===8){
6358return;
6359}
6360if(rfocusMorph.test(type+jQuery.event.triggered)){
6361return;
6362}
6363if(type.indexOf(".")>-1){
6364namespaces=type.split(".");
6365type=namespaces.shift();
6366namespaces.sort();
6367}
6368ontype=type.indexOf(":")<0&&"on"+type;
6369event=event[jQuery.expando]?
6370event:
6371new jQuery.Event(type,typeof event==="object"&&event);
6372event.isTrigger=onlyHandlers?2:3;
6373event.namespace=namespaces.join(".");
6374event.rnamespace=event.namespace?
6375new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):
6376null;
6377event.result=undefined;
6378if(!event.target){
6379event.target=elem;
6380}
6381data=data==null?
6382[event]:
6383jQuery.makeArray(data,[event]);
6384special=jQuery.event.special[type]||{};
6385if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){
6386return;
6387}
6388if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){
6389bubbleType=special.delegateType||type;
6390if(!rfocusMorph.test(bubbleType+type)){
6391cur=cur.parentNode;
6392}
6393for(;cur;cur=cur.parentNode){
6394eventPath.push(cur);
6395tmp=cur;
6396}
6397if(tmp===(elem.ownerDocument||document)){
6398eventPath.push(tmp.defaultView||tmp.parentWindow||window);
6399}
6400}
6401i=0;
6402while((cur=eventPath[i++])&&!event.isPropagationStopped()){
6403lastElement=cur;
6404event.type=i>1?
6405bubbleType:
6406special.bindType||type;
6407handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&
6408dataPriv.get(cur,"handle");
6409if(handle){
6410handle.apply(cur,data);
6411}
6412handle=ontype&&cur[ontype];
6413if(handle&&handle.apply&&acceptData(cur)){
6414event.result=handle.apply(cur,data);
6415if(event.result===false){
6416event.preventDefault();
6417}
6418}
6419}
6420event.type=type;
6421if(!onlyHandlers&&!event.isDefaultPrevented()){
6422if((!special._default||
6423special._default.apply(eventPath.pop(),data)===false)&&
6424acceptData(elem)){
6425if(ontype&&isFunction(elem[type])&&!isWindow(elem)){
6426tmp=elem[ontype];
6427if(tmp){
6428elem[ontype]=null;
6429}
6430jQuery.event.triggered=type;
6431if(event.isPropagationStopped()){
6432lastElement.addEventListener(type,stopPropagationCallback);
6433}
6434elem[type]();
6435if(event.isPropagationStopped()){
6436lastElement.removeEventListener(type,stopPropagationCallback);
6437}
6438jQuery.event.triggered=undefined;
6439if(tmp){
6440elem[ontype]=tmp;
6441}
6442}
6443}
6444}
6445return event.result;
6446},
6447simulate:function(type,elem,event){
6448var e=jQuery.extend(
6449new jQuery.Event(),
6450event,
6451{
6452type:type,
6453isSimulated:true
6454}
6455);
6456jQuery.event.trigger(e,null,elem);
6457}
6458});
6459jQuery.fn.extend({
6460trigger:function(type,data){
6461return this.each(function(){
6462jQuery.event.trigger(type,data,this);
6463});
6464},
6465triggerHandler:function(type,data){
6466var elem=this[0];
6467if(elem){
6468return jQuery.event.trigger(type,data,elem,true);
6469}
6470}
6471});
6472var
6473rbracket=/\[\]$/,
6474rCRLF=/\r?\n/g,
6475rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,
6476rsubmittable=/^(?:input|select|textarea|keygen)/i;
6477function buildParams(prefix,obj,traditional,add){
6478var name;
6479if(Array.isArray(obj)){
6480jQuery.each(obj,function(i,v){
6481if(traditional||rbracket.test(prefix)){
6482add(prefix,v);
6483}else{
6484buildParams(
6485prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]",
6486v,
6487traditional,
6488add
6489);
6490}
6491});
6492}else if(!traditional&&toType(obj)==="object"){
6493for(name in obj){
6494buildParams(prefix+"["+name+"]",obj[name],traditional,add);
6495}
6496}else{
6497add(prefix,obj);
6498}
6499}
6500jQuery.param=function(a,traditional){
6501var prefix,
6502s=[],
6503add=function(key,valueOrFunction){
6504var value=isFunction(valueOrFunction)?
6505valueOrFunction():
6506valueOrFunction;
6507s[s.length]=encodeURIComponent(key)+"="+
6508encodeURIComponent(value==null?"":value);
6509};
6510if(a==null){
6511return"";
6512}
6513if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){
6514jQuery.each(a,function(){
6515add(this.name,this.value);
6516});
6517}else{
6518for(prefix in a){
6519buildParams(prefix,a[prefix],traditional,add);
6520}
6521}
6522return s.join("&");
6523};
6524jQuery.fn.extend({
6525serialize:function(){
6526return jQuery.param(this.serializeArray());
6527},
6528serializeArray:function(){
6529return this.map(function(){
6530var elements=jQuery.prop(this,"elements");
6531return elements?jQuery.makeArray(elements):this;
6532}).filter(function(){
6533var type=this.type;
6534return this.name&&!jQuery(this).is(":disabled")&&
6535rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&
6536(this.checked||!rcheckableType.test(type));
6537}).map(function(_i,elem){
6538var val=jQuery(this).val();
6539if(val==null){
6540return null;
6541}
6542if(Array.isArray(val)){
6543return jQuery.map(val,function(val){
6544return{name:elem.name,value:val.replace(rCRLF,"\r\n")};
6545});
6546}
6547return{name:elem.name,value:val.replace(rCRLF,"\r\n")};
6548}).get();
6549}
6550});
6551var
6552r20=/%20/g,
6553rhash=/#.*$/,
6554rantiCache=/([?&])_=[^&]*/,
6555rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,
6556rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
6557rnoContent=/^(?:GET|HEAD)$/,
6558rprotocol=/^\/\//,
6559prefilters={},
6560transports={},
6561allTypes="*/".concat("*"),
6562originAnchor=document.createElement("a");
6563originAnchor.href=location.href;
6564function addToPrefiltersOrTransports(structure){
6565return function(dataTypeExpression,func){
6566if(typeof dataTypeExpression!=="string"){
6567func=dataTypeExpression;
6568dataTypeExpression="*";
6569}
6570var dataType,
6571i=0,
6572dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];
6573if(isFunction(func)){
6574while((dataType=dataTypes[i++])){
6575if(dataType[0]==="+"){
6576dataType=dataType.slice(1)||"*";
6577(structure[dataType]=structure[dataType]||[]).unshift(func);
6578}else{
6579(structure[dataType]=structure[dataType]||[]).push(func);
6580}
6581}
6582}
6583};
6584}
6585function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){
6586var inspected={},
6587seekingTransport=(structure===transports);
6588function inspect(dataType){
6589var selected;
6590inspected[dataType]=true;
6591jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){
6592var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);
6593if(typeof dataTypeOrTransport==="string"&&
6594!seekingTransport&&!inspected[dataTypeOrTransport]){
6595options.dataTypes.unshift(dataTypeOrTransport);
6596inspect(dataTypeOrTransport);
6597return false;
6598}else if(seekingTransport){
6599return!(selected=dataTypeOrTransport);
6600}
6601});
6602return selected;
6603}
6604return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");
6605}
6606function ajaxExtend(target,src){
6607var key,deep,
6608flatOptions=jQuery.ajaxSettings.flatOptions||{};
6609for(key in src){
6610if(src[key]!==undefined){
6611(flatOptions[key]?target:(deep||(deep={})))[key]=src[key];
6612}
6613}
6614if(deep){
6615jQuery.extend(true,target,deep);
6616}
6617return target;
6618}
6619function ajaxHandleResponses(s,jqXHR,responses){
6620var ct,type,finalDataType,firstDataType,
6621contents=s.contents,
6622dataTypes=s.dataTypes;
6623while(dataTypes[0]==="*"){
6624dataTypes.shift();
6625if(ct===undefined){
6626ct=s.mimeType||jqXHR.getResponseHeader("Content-Type");
6627}
6628}
6629if(ct){
6630for(type in contents){
6631if(contents[type]&&contents[type].test(ct)){
6632dataTypes.unshift(type);
6633break;
6634}
6635}
6636}
6637if(dataTypes[0]in responses){
6638finalDataType=dataTypes[0];
6639}else{
6640for(type in responses){
6641if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){
6642finalDataType=type;
6643break;
6644}
6645if(!firstDataType){
6646firstDataType=type;
6647}
6648}
6649finalDataType=finalDataType||firstDataType;
6650}
6651if(finalDataType){
6652if(finalDataType!==dataTypes[0]){
6653dataTypes.unshift(finalDataType);
6654}
6655return responses[finalDataType];
6656}
6657}
6658function ajaxConvert(s,response,jqXHR,isSuccess){
6659var conv2,current,conv,tmp,prev,
6660converters={},
6661dataTypes=s.dataTypes.slice();
6662if(dataTypes[1]){
6663for(conv in s.converters){
6664converters[conv.toLowerCase()]=s.converters[conv];
6665}
6666}
6667current=dataTypes.shift();
6668while(current){
6669if(s.responseFields[current]){
6670jqXHR[s.responseFields[current]]=response;
6671}
6672if(!prev&&isSuccess&&s.dataFilter){
6673response=s.dataFilter(response,s.dataType);
6674}
6675prev=current;
6676current=dataTypes.shift();
6677if(current){
6678if(current==="*"){
6679current=prev;
6680}else if(prev!=="*"&&prev!==current){
6681conv=converters[prev+" "+current]||converters["* "+current];
6682if(!conv){
6683for(conv2 in converters){
6684tmp=conv2.split(" ");
6685if(tmp[1]===current){
6686conv=converters[prev+" "+tmp[0]]||
6687converters["* "+tmp[0]];
6688if(conv){
6689if(conv===true){
6690conv=converters[conv2];
6691}else if(converters[conv2]!==true){
6692current=tmp[0];
6693dataTypes.unshift(tmp[1]);
6694}
6695break;
6696}
6697}
6698}
6699}
6700if(conv!==true){
6701if(conv&&s.throws){
6702response=conv(response);
6703}else{
6704try{
6705response=conv(response);
6706}catch(e){
6707return{
6708state:"parsererror",
6709error:conv?e:"No conversion from "+prev+" to "+current
6710};
6711}
6712}
6713}
6714}
6715}
6716}
6717return{state:"success",data:response};
6718}
6719jQuery.extend({
6720active:0,
6721lastModified:{},
6722etag:{},
6723ajaxSettings:{
6724url:location.href,
6725type:"GET",
6726isLocal:rlocalProtocol.test(location.protocol),
6727global:true,
6728processData:true,
6729async:true,
6730contentType:"application/x-www-form-urlencoded; charset=UTF-8",
6731accepts:{
6732"*":allTypes,
6733text:"text/plain",
6734html:"text/html",
6735xml:"application/xml, text/xml",
6736json:"application/json, text/javascript"
6737},
6738contents:{
6739xml:/\bxml\b/,
6740html:/\bhtml/,
6741json:/\bjson\b/
6742},
6743responseFields:{
6744xml:"responseXML",
6745text:"responseText",
6746json:"responseJSON"
6747},
6748converters:{
6749"* text":String,
6750"text html":true,
6751"text json":JSON.parse,
6752"text xml":jQuery.parseXML
6753},
6754flatOptions:{
6755url:true,
6756context:true
6757}
6758},
6759ajaxSetup:function(target,settings){
6760return settings?
6761ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):
6762ajaxExtend(jQuery.ajaxSettings,target);
6763},
6764ajaxPrefilter:addToPrefiltersOrTransports(prefilters),
6765ajaxTransport:addToPrefiltersOrTransports(transports),
6766ajax:function(url,options){
6767if(typeof url==="object"){
6768options=url;
6769url=undefined;
6770}
6771options=options||{};
6772var transport,
6773cacheURL,
6774responseHeadersString,
6775responseHeaders,
6776timeoutTimer,
6777urlAnchor,
6778completed,
6779fireGlobals,
6780i,
6781uncached,
6782s=jQuery.ajaxSetup({},options),
6783callbackContext=s.context||s,
6784globalEventContext=s.context&&
6785(callbackContext.nodeType||callbackContext.jquery)?
6786jQuery(callbackContext):
6787jQuery.event,
6788deferred=jQuery.Deferred(),
6789completeDeferred=jQuery.Callbacks("once memory"),
6790statusCode=s.statusCode||{},
6791requestHeaders={},
6792requestHeadersNames={},
6793strAbort="canceled",
6794jqXHR={
6795readyState:0,
6796getResponseHeader:function(key){
6797var match;
6798if(completed){
6799if(!responseHeaders){
6800responseHeaders={};
6801while((match=rheaders.exec(responseHeadersString))){
6802responseHeaders[match[1].toLowerCase()+" "]=
6803(responseHeaders[match[1].toLowerCase()+" "]||[])
6804.concat(match[2]);
6805}
6806}
6807match=responseHeaders[key.toLowerCase()+" "];
6808}
6809return match==null?null:match.join(", ");
6810},
6811getAllResponseHeaders:function(){
6812return completed?responseHeadersString:null;
6813},
6814setRequestHeader:function(name,value){
6815if(completed==null){
6816name=requestHeadersNames[name.toLowerCase()]=
6817requestHeadersNames[name.toLowerCase()]||name;
6818requestHeaders[name]=value;
6819}
6820return this;
6821},
6822overrideMimeType:function(type){
6823if(completed==null){
6824s.mimeType=type;
6825}
6826return this;
6827},
6828statusCode:function(map){
6829var code;
6830if(map){
6831if(completed){
6832jqXHR.always(map[jqXHR.status]);
6833}else{
6834for(code in map){
6835statusCode[code]=[statusCode[code],map[code]];
6836}
6837}
6838}
6839return this;
6840},
6841abort:function(statusText){
6842var finalText=statusText||strAbort;
6843if(transport){
6844transport.abort(finalText);
6845}
6846done(0,finalText);
6847return this;
6848}
6849};
6850deferred.promise(jqXHR);
6851s.url=((url||s.url||location.href)+"")
6852.replace(rprotocol,location.protocol+"//");
6853s.type=options.method||options.type||s.method||s.type;
6854s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""];
6855if(s.crossDomain==null){
6856urlAnchor=document.createElement("a");
6857try{
6858urlAnchor.href=s.url;
6859urlAnchor.href=urlAnchor.href;
6860s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!==
6861urlAnchor.protocol+"//"+urlAnchor.host;
6862}catch(e){
6863s.crossDomain=true;
6864}
6865}
6866if(s.data&&s.processData&&typeof s.data!=="string"){
6867s.data=jQuery.param(s.data,s.traditional);
6868}
6869inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);
6870if(completed){
6871return jqXHR;
6872}
6873fireGlobals=jQuery.event&&s.global;
6874if(fireGlobals&&jQuery.active++===0){
6875jQuery.event.trigger("ajaxStart");
6876}
6877s.type=s.type.toUpperCase();
6878s.hasContent=!rnoContent.test(s.type);
6879cacheURL=s.url.replace(rhash,"");
6880if(!s.hasContent){
6881uncached=s.url.slice(cacheURL.length);
6882if(s.data&&(s.processData||typeof s.data==="string")){
6883cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data;
6884delete s.data;
6885}
6886if(s.cache===false){
6887cacheURL=cacheURL.replace(rantiCache,"$1");
6888uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce.guid++)+
6889uncached;
6890}
6891s.url=cacheURL+uncached;
6892}else if(s.data&&s.processData&&
6893(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){
6894s.data=s.data.replace(r20,"+");
6895}
6896if(s.ifModified){
6897if(jQuery.lastModified[cacheURL]){
6898jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]);
6899}
6900if(jQuery.etag[cacheURL]){
6901jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]);
6902}
6903}
6904if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){
6905jqXHR.setRequestHeader("Content-Type",s.contentType);
6906}
6907jqXHR.setRequestHeader(
6908"Accept",
6909s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?
6910s.accepts[s.dataTypes[0]]+
6911(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):
6912s.accepts["*"]
6913);
6914for(i in s.headers){
6915jqXHR.setRequestHeader(i,s.headers[i]);
6916}
6917if(s.beforeSend&&
6918(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){
6919return jqXHR.abort();
6920}
6921strAbort="abort";
6922completeDeferred.add(s.complete);
6923jqXHR.done(s.success);
6924jqXHR.fail(s.error);
6925transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);
6926if(!transport){
6927done(-1,"No Transport");
6928}else{
6929jqXHR.readyState=1;
6930if(fireGlobals){
6931globalEventContext.trigger("ajaxSend",[jqXHR,s]);
6932}
6933if(completed){
6934return jqXHR;
6935}
6936if(s.async&&s.timeout>0){
6937timeoutTimer=window.setTimeout(function(){
6938jqXHR.abort("timeout");
6939},s.timeout);
6940}
6941try{
6942completed=false;
6943transport.send(requestHeaders,done);
6944}catch(e){
6945if(completed){
6946throw e;
6947}
6948done(-1,e);
6949}
6950}
6951function done(status,nativeStatusText,responses,headers){
6952var isSuccess,success,error,response,modified,
6953statusText=nativeStatusText;
6954if(completed){
6955return;
6956}
6957completed=true;
6958if(timeoutTimer){
6959window.clearTimeout(timeoutTimer);
6960}
6961transport=undefined;
6962responseHeadersString=headers||"";
6963jqXHR.readyState=status>0?4:0;
6964isSuccess=status>=200&&status<300||status===304;
6965if(responses){
6966response=ajaxHandleResponses(s,jqXHR,responses);
6967}
6968if(!isSuccess&&
6969jQuery.inArray("script",s.dataTypes)>-1&&
6970jQuery.inArray("json",s.dataTypes)<0){
6971s.converters["text script"]=function(){};
6972}
6973response=ajaxConvert(s,response,jqXHR,isSuccess);
6974if(isSuccess){
6975if(s.ifModified){
6976modified=jqXHR.getResponseHeader("Last-Modified");
6977if(modified){
6978jQuery.lastModified[cacheURL]=modified;
6979}
6980modified=jqXHR.getResponseHeader("etag");
6981if(modified){
6982jQuery.etag[cacheURL]=modified;
6983}
6984}
6985if(status===204||s.type==="HEAD"){
6986statusText="nocontent";
6987}else if(status===304){
6988statusText="notmodified";
6989}else{
6990statusText=response.state;
6991success=response.data;
6992error=response.error;
6993isSuccess=!error;
6994}
6995}else{
6996error=statusText;
6997if(status||!statusText){
6998statusText="error";
6999if(status<0){
7000status=0;
7001}
7002}
7003}
7004jqXHR.status=status;
7005jqXHR.statusText=(nativeStatusText||statusText)+"";
7006if(isSuccess){
7007deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);
7008}else{
7009deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);
7010}
7011jqXHR.statusCode(statusCode);
7012statusCode=undefined;
7013if(fireGlobals){
7014globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",
7015[jqXHR,s,isSuccess?success:error]);
7016}
7017completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);
7018if(fireGlobals){
7019globalEventContext.trigger("ajaxComplete",[jqXHR,s]);
7020if(!(--jQuery.active)){
7021jQuery.event.trigger("ajaxStop");
7022}
7023}
7024}
7025return jqXHR;
7026},
7027getJSON:function(url,data,callback){
7028return jQuery.get(url,data,callback,"json");
7029},
7030getScript:function(url,callback){
7031return jQuery.get(url,undefined,callback,"script");
7032}
7033});
7034jQuery.each(["get","post"],function(_i,method){
7035jQuery[method]=function(url,data,callback,type){
7036if(isFunction(data)){
7037type=type||callback;
7038callback=data;
7039data=undefined;
7040}
7041return jQuery.ajax(jQuery.extend({
7042url:url,
7043type:method,
7044dataType:type,
7045data:data,
7046success:callback
7047},jQuery.isPlainObject(url)&&url));
7048};
7049});
7050jQuery.ajaxPrefilter(function(s){
7051var i;
7052for(i in s.headers){
7053if(i.toLowerCase()==="content-type"){
7054s.contentType=s.headers[i]||"";
7055}
7056}
7057});
7058jQuery._evalUrl=function(url,options,doc){
7059return jQuery.ajax({
7060url:url,
7061type:"GET",
7062dataType:"script",
7063cache:true,
7064async:false,
7065global:false,
7066converters:{
7067"text script":function(){}
7068},
7069dataFilter:function(response){
7070jQuery.globalEval(response,options,doc);
7071}
7072});
7073};
7074jQuery.fn.extend({
7075wrapAll:function(html){
7076var wrap;
7077if(this[0]){
7078if(isFunction(html)){
7079html=html.call(this[0]);
7080}
7081wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);
7082if(this[0].parentNode){
7083wrap.insertBefore(this[0]);
7084}
7085wrap.map(function(){
7086var elem=this;
7087while(elem.firstElementChild){
7088elem=elem.firstElementChild;
7089}
7090return elem;
7091}).append(this);
7092}
7093return this;
7094},
7095wrapInner:function(html){
7096if(isFunction(html)){
7097return this.each(function(i){
7098jQuery(this).wrapInner(html.call(this,i));
7099});
7100}
7101return this.each(function(){
7102var self=jQuery(this),
7103contents=self.contents();
7104if(contents.length){
7105contents.wrapAll(html);
7106}else{
7107self.append(html);
7108}
7109});
7110},
7111wrap:function(html){
7112var htmlIsFunction=isFunction(html);
7113return this.each(function(i){
7114jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html);
7115});
7116},
7117unwrap:function(selector){
7118this.parent(selector).not("body").each(function(){
7119jQuery(this).replaceWith(this.childNodes);
7120});
7121return this;
7122}
7123});
7124jQuery.expr.pseudos.hidden=function(elem){
7125return!jQuery.expr.pseudos.visible(elem);
7126};
7127jQuery.expr.pseudos.visible=function(elem){
7128return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);
7129};
7130jQuery.ajaxSettings.xhr=function(){
7131try{
7132return new window.XMLHttpRequest();
7133}catch(e){}
7134};
7135var xhrSuccessStatus={
71360:200,
71371223:204
7138},
7139xhrSupported=jQuery.ajaxSettings.xhr();
7140support.cors=!!xhrSupported&&("withCredentials"in xhrSupported);
7141support.ajax=xhrSupported=!!xhrSupported;
7142jQuery.ajaxTransport(function(options){
7143var callback,errorCallback;
7144if(support.cors||xhrSupported&&!options.crossDomain){
7145return{
7146send:function(headers,complete){
7147var i,
7148xhr=options.xhr();
7149xhr.open(
7150options.type,
7151options.url,
7152options.async,
7153options.username,
7154options.password
7155);
7156if(options.xhrFields){
7157for(i in options.xhrFields){
7158xhr[i]=options.xhrFields[i];
7159}
7160}
7161if(options.mimeType&&xhr.overrideMimeType){
7162xhr.overrideMimeType(options.mimeType);
7163}
7164if(!options.crossDomain&&!headers["X-Requested-With"]){
7165headers["X-Requested-With"]="XMLHttpRequest";
7166}
7167for(i in headers){
7168xhr.setRequestHeader(i,headers[i]);
7169}
7170callback=function(type){
7171return function(){
7172if(callback){
7173callback=errorCallback=xhr.onload=
7174xhr.onerror=xhr.onabort=xhr.ontimeout=
7175xhr.onreadystatechange=null;
7176if(type==="abort"){
7177xhr.abort();
7178}else if(type==="error"){
7179if(typeof xhr.status!=="number"){
7180complete(0,"error");
7181}else{
7182complete(
7183xhr.status,
7184xhr.statusText
7185);
7186}
7187}else{
7188complete(
7189xhrSuccessStatus[xhr.status]||xhr.status,
7190xhr.statusText,
7191(xhr.responseType||"text")!=="text"||
7192typeof xhr.responseText!=="string"?
7193{binary:xhr.response}:
7194{text:xhr.responseText},
7195xhr.getAllResponseHeaders()
7196);
7197}
7198}
7199};
7200};
7201xhr.onload=callback();
7202errorCallback=xhr.onerror=xhr.ontimeout=callback("error");
7203if(xhr.onabort!==undefined){
7204xhr.onabort=errorCallback;
7205}else{
7206xhr.onreadystatechange=function(){
7207if(xhr.readyState===4){
7208window.setTimeout(function(){
7209if(callback){
7210errorCallback();
7211}
7212});
7213}
7214};
7215}
7216callback=callback("abort");
7217try{
7218xhr.send(options.hasContent&&options.data||null);
7219}catch(e){
7220if(callback){
7221throw e;
7222}
7223}
7224},
7225abort:function(){
7226if(callback){
7227callback();
7228}
7229}
7230};
7231}
7232});
7233jQuery.ajaxPrefilter(function(s){
7234if(s.crossDomain){
7235s.contents.script=false;
7236}
7237});
7238jQuery.ajaxSetup({
7239accepts:{
7240script:"text/javascript, application/javascript, "+
7241"application/ecmascript, application/x-ecmascript"
7242},
7243contents:{
7244script:/\b(?:java|ecma)script\b/
7245},
7246converters:{
7247"text script":function(text){
7248jQuery.globalEval(text);
7249return text;
7250}
7251}
7252});
7253jQuery.ajaxPrefilter("script",function(s){
7254if(s.cache===undefined){
7255s.cache=false;
7256}
7257if(s.crossDomain){
7258s.type="GET";
7259}
7260});
7261jQuery.ajaxTransport("script",function(s){
7262if(s.crossDomain||s.scriptAttrs){
7263var script,callback;
7264return{
7265send:function(_,complete){
7266script=jQuery("<script>")
7267.attr(s.scriptAttrs||{})
7268.prop({charset:s.scriptCharset,src:s.url})
7269.on("load error",callback=function(evt){
7270script.remove();
7271callback=null;
7272if(evt){
7273complete(evt.type==="error"?404:200,evt.type);
7274}
7275});
7276document.head.appendChild(script[0]);
7277},
7278abort:function(){
7279if(callback){
7280callback();
7281}
7282}
7283};
7284}
7285});
7286var oldCallbacks=[],
7287rjsonp=/(=)\?(?=&|$)|\?\?/;
7288jQuery.ajaxSetup({
7289jsonp:"callback",
7290jsonpCallback:function(){
7291var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce.guid++));
7292this[callback]=true;
7293return callback;
7294}
7295});
7296jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){
7297var callbackName,overwritten,responseContainer,
7298jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?
7299"url":
7300typeof s.data==="string"&&
7301(s.contentType||"")
7302.indexOf("application/x-www-form-urlencoded")===0&&
7303rjsonp.test(s.data)&&"data"
7304);
7305if(jsonProp||s.dataTypes[0]==="jsonp"){
7306callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?
7307s.jsonpCallback():
7308s.jsonpCallback;
7309if(jsonProp){
7310s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);
7311}else if(s.jsonp!==false){
7312s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;
7313}
7314s.converters["script json"]=function(){
7315if(!responseContainer){
7316jQuery.error(callbackName+" was not called");
7317}
7318return responseContainer[0];
7319};
7320s.dataTypes[0]="json";
7321overwritten=window[callbackName];
7322window[callbackName]=function(){
7323responseContainer=arguments;
7324};
7325jqXHR.always(function(){
7326if(overwritten===undefined){
7327jQuery(window).removeProp(callbackName);
7328}else{
7329window[callbackName]=overwritten;
7330}
7331if(s[callbackName]){
7332s.jsonpCallback=originalSettings.jsonpCallback;
7333oldCallbacks.push(callbackName);
7334}
7335if(responseContainer&&isFunction(overwritten)){
7336overwritten(responseContainer[0]);
7337}
7338responseContainer=overwritten=undefined;
7339});
7340return"script";
7341}
7342});
7343support.createHTMLDocument=(function(){
7344var body=document.implementation.createHTMLDocument("").body;
7345body.innerHTML="<form></form><form></form>";
7346return body.childNodes.length===2;
7347})();
7348jQuery.parseHTML=function(data,context,keepScripts){
7349if(typeof data!=="string"){
7350return[];
7351}
7352if(typeof context==="boolean"){
7353keepScripts=context;
7354context=false;
7355}
7356var base,parsed,scripts;
7357if(!context){
7358if(support.createHTMLDocument){
7359context=document.implementation.createHTMLDocument("");
7360base=context.createElement("base");
7361base.href=document.location.href;
7362context.head.appendChild(base);
7363}else{
7364context=document;
7365}
7366}
7367parsed=rsingleTag.exec(data);
7368scripts=!keepScripts&&[];
7369if(parsed){
7370return[context.createElement(parsed[1])];
7371}
7372parsed=buildFragment([data],context,scripts);
7373if(scripts&&scripts.length){
7374jQuery(scripts).remove();
7375}
7376return jQuery.merge([],parsed.childNodes);
7377};
7378jQuery.fn.load=function(url,params,callback){
7379var selector,type,response,
7380self=this,
7381off=url.indexOf(" ");
7382if(off>-1){
7383selector=stripAndCollapse(url.slice(off));
7384url=url.slice(0,off);
7385}
7386if(isFunction(params)){
7387callback=params;
7388params=undefined;
7389}else if(params&&typeof params==="object"){
7390type="POST";
7391}
7392if(self.length>0){
7393jQuery.ajax({
7394url:url,
7395type:type||"GET",
7396dataType:"html",
7397data:params
7398}).done(function(responseText){
7399response=arguments;
7400self.html(selector?
7401jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):
7402responseText);
7403}).always(callback&&function(jqXHR,status){
7404self.each(function(){
7405callback.apply(this,response||[jqXHR.responseText,status,jqXHR]);
7406});
7407});
7408}
7409return this;
7410};
7411jQuery.expr.pseudos.animated=function(elem){
7412return jQuery.grep(jQuery.timers,function(fn){
7413return elem===fn.elem;
7414}).length;
7415};
7416jQuery.offset={
7417setOffset:function(elem,options,i){
7418var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,
7419position=jQuery.css(elem,"position"),
7420curElem=jQuery(elem),
7421props={};
7422if(position==="static"){
7423elem.style.position="relative";
7424}
7425curOffset=curElem.offset();
7426curCSSTop=jQuery.css(elem,"top");
7427curCSSLeft=jQuery.css(elem,"left");
7428calculatePosition=(position==="absolute"||position==="fixed")&&
7429(curCSSTop+curCSSLeft).indexOf("auto")>-1;
7430if(calculatePosition){
7431curPosition=curElem.position();
7432curTop=curPosition.top;
7433curLeft=curPosition.left;
7434}else{
7435curTop=parseFloat(curCSSTop)||0;
7436curLeft=parseFloat(curCSSLeft)||0;
7437}
7438if(isFunction(options)){
7439options=options.call(elem,i,jQuery.extend({},curOffset));
7440}
7441if(options.top!=null){
7442props.top=(options.top-curOffset.top)+curTop;
7443}
7444if(options.left!=null){
7445props.left=(options.left-curOffset.left)+curLeft;
7446}
7447if("using"in options){
7448options.using.call(elem,props);
7449}else{
7450curElem.css(props);
7451}
7452}
7453};
7454jQuery.fn.extend({
7455offset:function(options){
7456if(arguments.length){
7457return options===undefined?
7458this:
7459this.each(function(i){
7460jQuery.offset.setOffset(this,options,i);
7461});
7462}
7463var rect,win,
7464elem=this[0];
7465if(!elem){
7466return;
7467}
7468if(!elem.getClientRects().length){
7469return{top:0,left:0};
7470}
7471rect=elem.getBoundingClientRect();
7472win=elem.ownerDocument.defaultView;
7473return{
7474top:rect.top+win.pageYOffset,
7475left:rect.left+win.pageXOffset
7476};
7477},
7478position:function(){
7479if(!this[0]){
7480return;
7481}
7482var offsetParent,offset,doc,
7483elem=this[0],
7484parentOffset={top:0,left:0};
7485if(jQuery.css(elem,"position")==="fixed"){
7486offset=elem.getBoundingClientRect();
7487}else{
7488offset=this.offset();
7489doc=elem.ownerDocument;
7490offsetParent=elem.offsetParent||doc.documentElement;
7491while(offsetParent&&
7492(offsetParent===doc.body||offsetParent===doc.documentElement)&&
7493jQuery.css(offsetParent,"position")==="static"){
7494offsetParent=offsetParent.parentNode;
7495}
7496if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){
7497parentOffset=jQuery(offsetParent).offset();
7498parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true);
7499parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true);
7500}
7501}
7502return{
7503top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),
7504left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)
7505};
7506},
7507offsetParent:function(){
7508return this.map(function(){
7509var offsetParent=this.offsetParent;
7510while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){
7511offsetParent=offsetParent.offsetParent;
7512}
7513return offsetParent||documentElement;
7514});
7515}
7516});
7517jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){
7518var top="pageYOffset"===prop;
7519jQuery.fn[method]=function(val){
7520return access(this,function(elem,method,val){
7521var win;
7522if(isWindow(elem)){
7523win=elem;
7524}else if(elem.nodeType===9){
7525win=elem.defaultView;
7526}
7527if(val===undefined){
7528return win?win[prop]:elem[method];
7529}
7530if(win){
7531win.scrollTo(
7532!top?val:win.pageXOffset,
7533top?val:win.pageYOffset
7534);
7535}else{
7536elem[method]=val;
7537}
7538},method,val,arguments.length);
7539};
7540});
7541jQuery.each(["top","left"],function(_i,prop){
7542jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,
7543function(elem,computed){
7544if(computed){
7545computed=curCSS(elem,prop);
7546return rnumnonpx.test(computed)?
7547jQuery(elem).position()[prop]+"px":
7548computed;
7549}
7550}
7551);
7552});
7553jQuery.each({Height:"height",Width:"width"},function(name,type){
7554jQuery.each({
7555padding:"inner"+name,
7556content:type,
7557"":"outer"+name
7558},function(defaultExtra,funcName){
7559jQuery.fn[funcName]=function(margin,value){
7560var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),
7561extra=defaultExtra||(margin===true||value===true?"margin":"border");
7562return access(this,function(elem,type,value){
7563var doc;
7564if(isWindow(elem)){
7565return funcName.indexOf("outer")===0?
7566elem["inner"+name]:
7567elem.document.documentElement["client"+name];
7568}
7569if(elem.nodeType===9){
7570doc=elem.documentElement;
7571return Math.max(
7572elem.body["scroll"+name],doc["scroll"+name],
7573elem.body["offset"+name],doc["offset"+name],
7574doc["client"+name]
7575);
7576}
7577return value===undefined?
7578jQuery.css(elem,type,extra):
7579jQuery.style(elem,type,value,extra);
7580},type,chainable?margin:undefined,chainable);
7581};
7582});
7583});
7584jQuery.each([
7585"ajaxStart",
7586"ajaxStop",
7587"ajaxComplete",
7588"ajaxError",
7589"ajaxSuccess",
7590"ajaxSend"
7591],function(_i,type){
7592jQuery.fn[type]=function(fn){
7593return this.on(type,fn);
7594};
7595});
7596jQuery.fn.extend({
7597bind:function(types,data,fn){
7598return this.on(types,null,data,fn);
7599},
7600unbind:function(types,fn){
7601return this.off(types,null,fn);
7602},
7603delegate:function(selector,types,data,fn){
7604return this.on(types,selector,data,fn);
7605},
7606undelegate:function(selector,types,fn){
7607return arguments.length===1?
7608this.off(selector,"**"):
7609this.off(types,selector||"**",fn);
7610},
7611hover:function(fnOver,fnOut){
7612return this
7613.on("mouseenter",fnOver)
7614.on("mouseleave",fnOut||fnOver);
7615}
7616});
7617jQuery.each(
7618("blur focus focusin focusout resize scroll click dblclick "+
7619"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+
7620"change select submit keydown keypress keyup contextmenu").split(" "),
7621function(_i,name){
7622jQuery.fn[name]=function(data,fn){
7623return arguments.length>0?
7624this.on(name,null,data,fn):
7625this.trigger(name);
7626};
7627}
7628);
7629var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
7630jQuery.proxy=function(fn,context){
7631var tmp,args,proxy;
7632if(typeof context==="string"){
7633tmp=fn[context];
7634context=fn;
7635fn=tmp;
7636}
7637if(!isFunction(fn)){
7638return undefined;
7639}
7640args=slice.call(arguments,2);
7641proxy=function(){
7642return fn.apply(context||this,args.concat(slice.call(arguments)));
7643};
7644proxy.guid=fn.guid=fn.guid||jQuery.guid++;
7645return proxy;
7646};
7647jQuery.holdReady=function(hold){
7648if(hold){
7649jQuery.readyWait++;
7650}else{
7651jQuery.ready(true);
7652}
7653};
7654jQuery.isArray=Array.isArray;
7655jQuery.parseJSON=JSON.parse;
7656jQuery.nodeName=nodeName;
7657jQuery.isFunction=isFunction;
7658jQuery.isWindow=isWindow;
7659jQuery.camelCase=camelCase;
7660jQuery.type=toType;
7661jQuery.now=Date.now;
7662jQuery.isNumeric=function(obj){
7663var type=jQuery.type(obj);
7664return(type==="number"||type==="string")&&
7665!isNaN(obj-parseFloat(obj));
7666};
7667jQuery.trim=function(text){
7668return text==null?
7669"":
7670(text+"").replace(rtrim,"$1");
7671};
7672if(typeof define==="function"&&define.amd){
7673define("jquery",[],function(){
7674return jQuery;
7675});
7676}
7677var
7678_jQuery=window.jQuery,
7679_$=window.$;
7680jQuery.noConflict=function(deep){
7681if(window.$===jQuery){
7682window.$=_$;
7683}
7684if(deep&&window.jQuery===jQuery){
7685window.jQuery=_jQuery;
7686}
7687return jQuery;
7688};
7689if(typeof noGlobal==="undefined"){
7690window.jQuery=window.$=jQuery;
7691}
7692return jQuery;
7693});
7694(function($){
7695var log=console.warn||console.log;
7696var logError=console.error||log;
7697function deprecated(message,alternative){
7698return log("Deprecated call to "+message+". Use "+alternative);
7699}
7700$.fn.size=function(){
7701deprecated(".size()",".length");
7702return this.length;
7703};
7704$.fn.load=function(callback){
7705deprecated(".load(callback)",".on('load', callback)");
7706return this.on("load",callback);
7707};
7708$.fn.error=function(callback){
7709deprecated(".error(callback)",".on('error', callback)");
7710return this.on("error",callback);
7711};
7712$.fn.andSelf=function(){
7713deprecated(".andSelf()",".addBack");
7714return this.addBack();
7715};
7716var queue=[];
7717var pending=false;
7718var executeQueue=function(){
7719var oldQueue=queue;
7720queue=[];
7721pending=false;
7722var errors=[];
7723while(oldQueue.length){
7724try{
7725(oldQueue.shift())($);
7726}catch(e){
7727errors.push(e);
7728}
7729}
7730while(errors.length>1){
7731logError(errors.shift());
7732}
7733if(errors.length){
7734throw errors.shift();
7735}
7736};
7737$.fn.ready=function(handler){
7738queue.push(handler);
7739if(!pending){
7740pending=true;
7741if(document.readyState==="complete"||(document.readyState!=="loading"&&!document.documentElement.doScroll)){
7742setTimeout(executeQueue);
7743}else{
7744var eventListener=function(){
7745document.removeEventListener("DOMContentLoaded",eventListener);
7746window.removeEventListener("load",eventListener);
7747executeQueue();
7748};
7749document.addEventListener("DOMContentLoaded",eventListener);
7750window.addEventListener("load",eventListener);
7751}
7752}
7753};
7754}(jQuery));(function webpackUniversalModuleDefinition(root,factory){
7755if(typeof exports==='object'&&typeof module==='object')
7756module.exports=factory(require("jquery"));
7757else if(typeof define==='function'&&define.amd)
7758define(["jquery"],factory);
7759else if(typeof exports==='object')
7760exports["foundation.core"]=factory(require("jquery"));
7761else
7762root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.core"]=factory(root["jQuery"]);
7763})(window,function(__WEBPACK_EXTERNAL_MODULE_jquery__){
7764return(function(modules){
7765var installedModules={};
7766function __webpack_require__(moduleId){
7767if(installedModules[moduleId]){
7768return installedModules[moduleId].exports;
7769}
7770var module=installedModules[moduleId]={
7771i:moduleId,
7772l:false,
7773exports:{}
7774};
7775modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
7776module.l=true;
7777return module.exports;
7778}
7779__webpack_require__.m=modules;
7780__webpack_require__.c=installedModules;
7781__webpack_require__.d=function(exports,name,getter){
7782if(!__webpack_require__.o(exports,name)){
7783Object.defineProperty(exports,name,{enumerable:true,get:getter});
7784}
7785};
7786__webpack_require__.r=function(exports){
7787if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
7788Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
7789}
7790Object.defineProperty(exports,'__esModule',{value:true});
7791};
7792__webpack_require__.t=function(value,mode){
7793if(mode&1)value=__webpack_require__(value);
7794if(mode&8)return value;
vendor: 777 bytes, lines 7795-7813
7795if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
7796var ns=Object.create(null);
7797__webpack_require__.r(ns);
7798Object.defineProperty(ns,'default',{enumerable:true,value:value});
7799if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
7800return ns;
7801};
7802__webpack_require__.n=function(module){
7803var getter=module&&module.__esModule?
7804function getDefault(){return module['default'];}:
7805function getModuleExports(){return module;};
7806__webpack_require__.d(getter,'a',getter);
7807return getter;
7808};
7809__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
7810__webpack_require__.p="";
7811return __webpack_require__(__webpack_require__.s=0);
7812})
7813({
7814"./js/entries/plugins/foundation.core.js":
7815(function(module,__webpack_exports__,__webpack_require__){
7816"use strict";
7817__webpack_require__.r(__webpack_exports__);
7818var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
7819var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
7820var _foundation_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.js");
7821__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"];});
7822var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.core.plugin.js");
7823var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.core.utils.js");
7824__webpack_require__.d(__webpack_exports__,"Plugin",function(){return _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["Plugin"];});
7825__webpack_require__.d(__webpack_exports__,"rtl",function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["rtl"];});
7826__webpack_require__.d(__webpack_exports__,"GetYoDigits",function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"];});
7827__webpack_require__.d(__webpack_exports__,"RegExpEscape",function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["RegExpEscape"];});
7828__webpack_require__.d(__webpack_exports__,"transitionend",function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"];});
7829__webpack_require__.d(__webpack_exports__,"onLoad",function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["onLoad"];});
7830__webpack_require__.d(__webpack_exports__,"ignoreMousedisappear",function(){return _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["ignoreMousedisappear"];});
7831_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].addToJquery(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
7832_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].Plugin=_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["Plugin"];
7833_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].rtl=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["rtl"];
7834_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].GetYoDigits=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"];
7835_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].transitionend=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["transitionend"];
7836_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].RegExpEscape=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["RegExpEscape"];
7837_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"].onLoad=_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["onLoad"];
7838window.Foundation=_foundation_core__WEBPACK_IMPORTED_MODULE_1__["Foundation"];
7839}),
7840"./js/foundation.core.js":
7841(function(module,__webpack_exports__,__webpack_require__){
7842"use strict";
7843__webpack_require__.r(__webpack_exports__);
7844__webpack_require__.d(__webpack_exports__,"Foundation",function(){return Foundation;});
7845var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
7846var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
7847var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");
7848var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.mediaQuery.js");
7849function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
7850var FOUNDATION_VERSION='6.5.3';
7851var Foundation={
7852version:FOUNDATION_VERSION,
7853_plugins:{},
7854_uuids:[],
7855plugin:function plugin(_plugin,name){
7856var className=name||functionName(_plugin);
7857var attrName=hyphenate(className);
7858this._plugins[attrName]=this[className]=_plugin;
7859},
7860registerPlugin:function registerPlugin(plugin,name){
7861var pluginName=name?hyphenate(name):functionName(plugin.constructor).toLowerCase();
7862plugin.uuid=Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,pluginName);
7863if(!plugin.$element.attr("data-".concat(pluginName))){
7864plugin.$element.attr("data-".concat(pluginName),plugin.uuid);
7865}
7866if(!plugin.$element.data('zfPlugin')){
7867plugin.$element.data('zfPlugin',plugin);
7868}
7869plugin.$element.trigger("init.zf.".concat(pluginName));
7870this._uuids.push(plugin.uuid);
7871return;
7872},
7873unregisterPlugin:function unregisterPlugin(plugin){
7874var pluginName=hyphenate(functionName(plugin.$element.data('zfPlugin').constructor));
7875this._uuids.splice(this._uuids.indexOf(plugin.uuid),1);
7876plugin.$element.removeAttr("data-".concat(pluginName)).removeData('zfPlugin')
7877.trigger("destroyed.zf.".concat(pluginName));
7878for(var prop in plugin){
7879plugin[prop]=null;
7880}
7881return;
7882},
7883reInit:function reInit(plugins){
7884var isJQ=plugins instanceof jquery__WEBPACK_IMPORTED_MODULE_0___default.a;
7885try{
7886if(isJQ){
7887plugins.each(function(){
7888jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('zfPlugin')._init();
7889});
7890}else{
7891var type=_typeof(plugins),
7892_this=this,
7893fns={
7894'object':function object(plgs){
7895plgs.forEach(function(p){
7896p=hyphenate(p);
7897jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-'+p+']').foundation('_init');
7898});
7899},
7900'string':function string(){
7901plugins=hyphenate(plugins);
7902jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-'+plugins+']').foundation('_init');
7903},
7904'undefined':function undefined(){
7905this['object'](Object.keys(_this._plugins));
7906}
7907};
7908fns[type](plugins);
7909}
7910}catch(err){
7911console.error(err);
7912}finally{
7913return plugins;
7914}
7915},
7916reflow:function reflow(elem,plugins){
7917if(typeof plugins==='undefined'){
7918plugins=Object.keys(this._plugins);
7919}
7920else if(typeof plugins==='string'){
7921plugins=[plugins];
7922}
7923var _this=this;
7924jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(plugins,function(i,name){
7925var plugin=_this._plugins[name];
7926var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem).find('[data-'+name+']').addBack('[data-'+name+']');
7927$elem.each(function(){
7928var $el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
7929opts={};
7930if($el.data('zfPlugin')){
7931console.warn("Tried to initialize "+name+" on an element that already has a Foundation plugin.");
7932return;
7933}
7934if($el.attr('data-options')){
7935var thing=$el.attr('data-options').split(';').forEach(function(e,i){
7936var opt=e.split(':').map(function(el){
7937return el.trim();
7938});
7939if(opt[0])opts[opt[0]]=parseValue(opt[1]);
7940});
7941}
7942try{
7943$el.data('zfPlugin',new plugin(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),opts));
7944}catch(er){
7945console.error(er);
7946}finally{
7947return;
7948}
7949});
7950});
7951},
7952getFnName:functionName,
7953addToJquery:function addToJquery($){
7954var foundation=function foundation(method){
7955var type=_typeof(method),
7956$noJS=$('.no-js');
7957if($noJS.length){
7958$noJS.removeClass('no-js');
7959}
7960if(type==='undefined'){
7961_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"]._init();
7962Foundation.reflow(this);
7963}else if(type==='string'){
vendor: 2,976 bytes, lines 7964-8068
7964var args=Array.prototype.slice.call(arguments,1);
7965var plugClass=this.data('zfPlugin');
7966if(typeof plugClass!=='undefined'&&typeof plugClass[method]!=='undefined'){
7967if(this.length===1){
7968plugClass[method].apply(plugClass,args);
7969}else{
7970this.each(function(i,el){
7971plugClass[method].apply($(el).data('zfPlugin'),args);
7972});
7973}
7974}else{
7975throw new ReferenceError("We're sorry, '"+method+"' is not an available method for "+(plugClass?functionName(plugClass):'this element')+'.');
7976}
7977}else{
7978throw new TypeError("We're sorry, ".concat(type," is not a valid parameter. You must use a string representing the method you wish to invoke."));
7979}
7980return this;
7981};
7982$.fn.foundation=foundation;
7983return $;
7984}
7985};
7986Foundation.util={
7987throttle:function throttle(func,delay){
7988var timer=null;
7989return function(){
7990var context=this,
7991args=arguments;
7992if(timer===null){
7993timer=setTimeout(function(){
7994func.apply(context,args);
7995timer=null;
7996},delay);
7997}
7998};
7999}
8000};
8001window.Foundation=Foundation;
8002(function(){
8003if(!Date.now||!window.Date.now)window.Date.now=Date.now=function(){
8004return new Date().getTime();
8005};
8006var vendors=['webkit','moz'];
8007for(var i=0;i<vendors.length&&!window.requestAnimationFrame;++i){
8008var vp=vendors[i];
8009window.requestAnimationFrame=window[vp+'RequestAnimationFrame'];
8010window.cancelAnimationFrame=window[vp+'CancelAnimationFrame']||window[vp+'CancelRequestAnimationFrame'];
8011}
8012if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){
8013var lastTime=0;
8014window.requestAnimationFrame=function(callback){
8015var now=Date.now();
8016var nextTime=Math.max(lastTime+16,now);
8017return setTimeout(function(){
8018callback(lastTime=nextTime);
8019},nextTime-now);
8020};
8021window.cancelAnimationFrame=clearTimeout;
8022}
8023if(!window.performance||!window.performance.now){
8024window.performance={
8025start:Date.now(),
8026now:function now(){
8027return Date.now()-this.start;
8028}
8029};
8030}
8031})();
8032if(!Function.prototype.bind){
8033Function.prototype.bind=function(oThis){
8034if(typeof this!=='function'){
8035throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
8036}
8037var aArgs=Array.prototype.slice.call(arguments,1),
8038fToBind=this,
8039fNOP=function fNOP(){},
8040fBound=function fBound(){
8041return fToBind.apply(this instanceof fNOP?this:oThis,aArgs.concat(Array.prototype.slice.call(arguments)));
8042};
8043if(this.prototype){
8044fNOP.prototype=this.prototype;
8045}
8046fBound.prototype=new fNOP();
8047return fBound;
8048};
8049}
8050function functionName(fn){
8051if(typeof Function.prototype.name==='undefined'){
8052var funcNameRegex=/function\s([^(]{1,})\(/;
8053var results=funcNameRegex.exec(fn.toString());
8054return results&&results.length>1?results[1].trim():"";
8055}else if(typeof fn.prototype==='undefined'){
8056return fn.constructor.name;
8057}else{
8058return fn.prototype.constructor.name;
8059}
8060}
8061function parseValue(str){
8062if('true'===str)return true;else if('false'===str)return false;else if(!isNaN(str*1))return parseFloat(str);
8063return str;
8064}
8065function hyphenate(str){
8066return str.replace(/([a-z])([A-Z])/g,'$1-$2').toLowerCase();
8067}
8068}),
8069"./js/foundation.core.plugin.js":
8070(function(module,__webpack_exports__,__webpack_require__){
8071"use strict";
8072__webpack_require__.r(__webpack_exports__);
8073__webpack_require__.d(__webpack_exports__,"Plugin",function(){return Plugin;});
8074var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
8075var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
8076var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.core.utils.js");
8077function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
8078function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
8079function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
8080var Plugin=
8081function(){
8082function Plugin(element,options){
8083_classCallCheck(this,Plugin);
8084this._setup(element,options);
8085var pluginName=getPluginName(this);
8086this.uuid=Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,pluginName);
8087if(!this.$element.attr("data-".concat(pluginName))){
8088this.$element.attr("data-".concat(pluginName),this.uuid);
8089}
8090if(!this.$element.data('zfPlugin')){
8091this.$element.data('zfPlugin',this);
8092}
8093this.$element.trigger("init.zf.".concat(pluginName));
8094}
8095_createClass(Plugin,[{
8096key:"destroy",
8097value:function destroy(){
8098this._destroy();
8099var pluginName=getPluginName(this);
8100this.$element.removeAttr("data-".concat(pluginName)).removeData('zfPlugin')
8101.trigger("destroyed.zf.".concat(pluginName));
8102for(var prop in this){
8103this[prop]=null;
8104}
8105}
8106}]);
8107return Plugin;
8108}();
8109function hyphenate(str){
8110return str.replace(/([a-z])([A-Z])/g,'$1-$2').toLowerCase();
8111}
8112function getPluginName(obj){
8113if(typeof obj.constructor.name!=='undefined'){
8114return hyphenate(obj.constructor.name);
8115}else{
8116return hyphenate(obj.className);
8117}
8118}
8119}),
8120"./js/foundation.core.utils.js":
8121(function(module,__webpack_exports__,__webpack_require__){
8122"use strict";
8123__webpack_require__.r(__webpack_exports__);
8124__webpack_require__.d(__webpack_exports__,"rtl",function(){return rtl;});
8125__webpack_require__.d(__webpack_exports__,"GetYoDigits",function(){return GetYoDigits;});
8126__webpack_require__.d(__webpack_exports__,"RegExpEscape",function(){return RegExpEscape;});
8127__webpack_require__.d(__webpack_exports__,"transitionend",function(){return transitionend;});
8128__webpack_require__.d(__webpack_exports__,"onLoad",function(){return onLoad;});
8129__webpack_require__.d(__webpack_exports__,"ignoreMousedisappear",function(){return ignoreMousedisappear;});
8130var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
8131var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
8132function rtl(){
8133return jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').attr('dir')==='rtl';
8134}
8135function GetYoDigits(length,namespace){
8136length=length||6;
8137return Math.round(Math.pow(36,length+1)-Math.random()*Math.pow(36,length)).toString(36).slice(1)+(namespace?"-".concat(namespace):'');
8138}
8139function RegExpEscape(str){
8140return str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&');
8141}
8142function transitionend($elem){
8143var transitions={
8144'transition':'transitionend',
8145'WebkitTransition':'webkitTransitionEnd',
8146'MozTransition':'transitionend',
8147'OTransition':'otransitionend'
8148};
8149var elem=document.createElement('div'),
8150end;
8151for(var t in transitions){
8152if(typeof elem.style[t]!=='undefined'){
8153end=transitions[t];
8154}
8155}
8156if(end){
8157return end;
8158}else{
8159end=setTimeout(function(){
8160$elem.triggerHandler('transitionend',[$elem]);
8161},1);
8162return'transitionend';
8163}
8164}
8165function onLoad($elem,handler){
vendor: 1,418 bytes, lines 8166-8206
8166var didLoad=document.readyState==='complete';
8167var eventType=(didLoad?'_didLoad':'load')+'.zf.util.onLoad';
8168var cb=function cb(){
8169return $elem.triggerHandler(eventType);
8170};
8171if($elem){
8172if(handler)$elem.one(eventType,handler);
8173if(didLoad)setTimeout(cb);else jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).one('load',cb);
8174}
8175return eventType;
8176}
8177function ignoreMousedisappear(handler){
8178var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},
8179_ref$ignoreLeaveWindo=_ref.ignoreLeaveWindow,
8180ignoreLeaveWindow=_ref$ignoreLeaveWindo===void 0?false:_ref$ignoreLeaveWindo,
8181_ref$ignoreReappear=_ref.ignoreReappear,
8182ignoreReappear=_ref$ignoreReappear===void 0?false:_ref$ignoreReappear;
8183return function leaveEventHandler(eLeave){
8184for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){
8185rest[_key-1]=arguments[_key];
8186}
8187var callback=handler.bind.apply(handler,[this,eLeave].concat(rest));
8188if(eLeave.relatedTarget!==null){
8189return callback();
8190}
8191setTimeout(function leaveEventDebouncer(){
8192if(!ignoreLeaveWindow&&document.hasFocus&&!document.hasFocus()){
8193return callback();
8194}
8195if(!ignoreReappear){
8196jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).one('mouseenter',function reenterEventHandler(eReenter){
8197if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(eLeave.currentTarget).has(eReenter.target).length){
8198eLeave.relatedTarget=eReenter.target;
8199callback();
8200}
8201});
8202}
8203},0);
8204};
8205}
8206}),
8207"./js/foundation.util.mediaQuery.js":
8208(function(module,__webpack_exports__,__webpack_require__){
8209"use strict";
8210__webpack_require__.r(__webpack_exports__);
8211__webpack_require__.d(__webpack_exports__,"MediaQuery",function(){return MediaQuery;});
8212var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
8213var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
8214function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
8215var defaultQueries={
8216'default':'only screen',
8217landscape:'only screen and (orientation: landscape)',
8218portrait:'only screen and (orientation: portrait)',
8219retina:'only screen and (-webkit-min-device-pixel-ratio: 2),'+'only screen and (min--moz-device-pixel-ratio: 2),'+'only screen and (-o-min-device-pixel-ratio: 2/1),'+'only screen and (min-device-pixel-ratio: 2),'+'only screen and (min-resolution: 192dpi),'+'only screen and (min-resolution: 2dppx)'
8220};
8221window.matchMedia||(window.matchMedia=function(){
8222"use strict";
8223var styleMedia=window.styleMedia||window.media;
8224if(!styleMedia){
8225var style=document.createElement('style'),
8226script=document.getElementsByTagName('script')[0],
8227info=null;
8228style.type='text/css';
8229style.id='matchmediajs-test';
8230if(!script){
8231document.head.appendChild(style);
8232}else{
8233script.parentNode.insertBefore(style,script);
8234}
8235info='getComputedStyle'in window&&window.getComputedStyle(style,null)||style.currentStyle;
8236styleMedia={
8237matchMedium:function matchMedium(media){
8238var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';
8239if(style.styleSheet){
8240style.styleSheet.cssText=text;
8241}else{
8242style.textContent=text;
8243}
8244return info.width==='1px';
8245}
8246};
8247}
8248return function(media){
8249return{
8250matches:styleMedia.matchMedium(media||'all'),
8251media:media||'all'
8252};
8253};
8254}());
8255var MediaQuery={
8256queries:[],
8257current:'',
8258_init:function _init(){
8259var self=this;
8260var $meta=jquery__WEBPACK_IMPORTED_MODULE_0___default()('meta.foundation-mq');
8261if(!$meta.length){
8262jquery__WEBPACK_IMPORTED_MODULE_0___default()('<meta class="foundation-mq">').appendTo(document.head);
8263}
8264var extractedStyles=jquery__WEBPACK_IMPORTED_MODULE_0___default()('.foundation-mq').css('font-family');
8265var namedQueries;
8266namedQueries=parseStyleToObject(extractedStyles);
8267for(var key in namedQueries){
8268if(namedQueries.hasOwnProperty(key)){
8269self.queries.push({
8270name:key,
8271value:"only screen and (min-width: ".concat(namedQueries[key],")")
8272});
8273}
8274}
8275this.current=this._getCurrentSize();
8276this._watcher();
8277},
8278atLeast:function atLeast(size){
8279var query=this.get(size);
8280if(query){
8281return window.matchMedia(query).matches;
8282}
8283return false;
8284},
8285is:function is(size){
8286size=size.trim().split(' ');
8287if(size.length>1&&size[1]==='only'){
8288if(size[0]===this._getCurrentSize())return true;
8289}else{
8290return this.atLeast(size[0]);
8291}
8292return false;
8293},
8294get:function get(size){
8295for(var i in this.queries){
8296if(this.queries.hasOwnProperty(i)){
8297var query=this.queries[i];
8298if(size===query.name)return query.value;
8299}
8300}
8301return null;
8302},
8303_getCurrentSize:function _getCurrentSize(){
8304var matched;
8305for(var i=0;i<this.queries.length;i++){
8306var query=this.queries[i];
8307if(window.matchMedia(query.value).matches){
8308matched=query;
8309}
8310}
8311if(_typeof(matched)==='object'){
8312return matched.name;
8313}else{
8314return matched;
8315}
8316},
8317_watcher:function _watcher(){
8318var _this=this;
8319jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('resize.zf.mediaquery').on('resize.zf.mediaquery',function(){
8320var newSize=_this._getCurrentSize(),
8321currentSize=_this.current;
8322if(newSize!==currentSize){
8323_this.current=newSize;
8324jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).trigger('changed.zf.mediaquery',[newSize,currentSize]);
8325}
8326});
8327}
8328};
8329function parseStyleToObject(str){
8330var styleObject={};
8331if(typeof str!=='string'){
8332return styleObject;
8333}
8334str=str.trim().slice(1,-1);
8335if(!str){
8336return styleObject;
8337}
8338styleObject=str.split('&').reduce(function(ret,param){
8339var parts=param.replace(/\+/g,' ').split('=');
8340var key=parts[0];
8341var val=parts[1];
8342key=decodeURIComponent(key);
8343val=typeof val==='undefined'?null:decodeURIComponent(val);
8344if(!ret.hasOwnProperty(key)){
8345ret[key]=val;
8346}else if(Array.isArray(ret[key])){
8347ret[key].push(val);
8348}else{
8349ret[key]=[ret[key],val];
8350}
8351return ret;
8352},{});
8353return styleObject;
8354}
8355}),
83560:
8357(function(module,exports,__webpack_require__){
8358module.exports=__webpack_require__("./js/entries/plugins/foundation.core.js");
8359}),
8360"jquery":
8361(function(module,exports){
8362module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
8363})
8364});
8365});
8366(function webpackUniversalModuleDefinition(root,factory){
8367if(typeof exports==='object'&&typeof module==='object')
8368module.exports=factory(require("./foundation.core"),require("jquery"));
8369else if(typeof define==='function'&&define.amd)
8370define(["./foundation.core","jquery"],factory);
8371else if(typeof exports==='object')
8372exports["foundation.util.keyboard"]=factory(require("./foundation.core"),require("jquery"));
8373else
8374root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["jQuery"]);
8375})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE_jquery__){
8376return(function(modules){
8377var installedModules={};
8378function __webpack_require__(moduleId){
8379if(installedModules[moduleId]){
8380return installedModules[moduleId].exports;
8381}
8382var module=installedModules[moduleId]={
8383i:moduleId,
8384l:false,
8385exports:{}
8386};
8387modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
8388module.l=true;
8389return module.exports;
8390}
8391__webpack_require__.m=modules;
8392__webpack_require__.c=installedModules;
8393__webpack_require__.d=function(exports,name,getter){
8394if(!__webpack_require__.o(exports,name)){
8395Object.defineProperty(exports,name,{enumerable:true,get:getter});
8396}
8397};
8398__webpack_require__.r=function(exports){
8399if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
8400Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
8401}
8402Object.defineProperty(exports,'__esModule',{value:true});
8403};
8404__webpack_require__.t=function(value,mode){
8405if(mode&1)value=__webpack_require__(value);
8406if(mode&8)return value;
vendor: 891 bytes, lines 8407-8429
8407if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
8408var ns=Object.create(null);
8409__webpack_require__.r(ns);
8410Object.defineProperty(ns,'default',{enumerable:true,value:value});
8411if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
8412return ns;
8413};
8414__webpack_require__.n=function(module){
8415var getter=module&&module.__esModule?
8416function getDefault(){return module['default'];}:
8417function getModuleExports(){return module;};
8418__webpack_require__.d(getter,'a',getter);
8419return getter;
8420};
8421__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
8422__webpack_require__.p="";
8423return __webpack_require__(__webpack_require__.s=23);
8424})
8425({
8426"./foundation.core":
8427(function(module,exports){
8428module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
8429}),
8430"./js/entries/plugins/foundation.util.keyboard.js":
8431(function(module,__webpack_exports__,__webpack_require__){
8432"use strict";
8433__webpack_require__.r(__webpack_exports__);
8434var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
8435var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
8436__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
8437var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.keyboard.js");
8438__webpack_require__.d(__webpack_exports__,"Keyboard",function(){return _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"];});
8439_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].Keyboard=_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_1__["Keyboard"];
8440}),
8441"./js/foundation.util.keyboard.js":
8442(function(module,__webpack_exports__,__webpack_require__){
8443"use strict";
8444__webpack_require__.r(__webpack_exports__);
8445__webpack_require__.d(__webpack_exports__,"Keyboard",function(){return Keyboard;});
8446var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
8447var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
8448var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
8449var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
8450var keyCodes={
84519:'TAB',
845213:'ENTER',
845327:'ESCAPE',
845432:'SPACE',
845535:'END',
845636:'HOME',
845737:'ARROW_LEFT',
845838:'ARROW_UP',
845939:'ARROW_RIGHT',
846040:'ARROW_DOWN'
8461};
8462var commands={};
8463function findFocusable($element){
8464if(!$element){
8465return false;
8466}
8467return $element.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]').filter(function(){
8468if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is(':visible')||jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('tabindex')<0){
8469return false;
8470}
8471return true;
8472});
8473}
8474function parseKey(event){
8475var key=keyCodes[event.which||event.keyCode]||String.fromCharCode(event.which).toUpperCase();
8476key=key.replace(/\W+/,'');
8477if(event.shiftKey)key="SHIFT_".concat(key);
8478if(event.ctrlKey)key="CTRL_".concat(key);
8479if(event.altKey)key="ALT_".concat(key);
8480key=key.replace(/_$/,'');
8481return key;
8482}
8483var Keyboard={
8484keys:getKeyCodes(keyCodes),
8485parseKey:parseKey,
8486handleKey:function handleKey(event,component,functions){
8487var commandList=commands[component],
8488keyCode=this.parseKey(event),
8489cmds,
8490command,
8491fn;
8492if(!commandList)return console.warn('Component not defined!');
8493if(typeof commandList.ltr==='undefined'){
8494cmds=commandList;
8495}else{
8496if(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["rtl"])())cmds=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},commandList.ltr,commandList.rtl);else cmds=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},commandList.rtl,commandList.ltr);
8497}
8498command=cmds[keyCode];
8499fn=functions[command];
8500if(fn&&typeof fn==='function'){
8501var returnValue=fn.apply();
8502if(functions.handled||typeof functions.handled==='function'){
8503functions.handled(returnValue);
8504}
8505}else{
8506if(functions.unhandled||typeof functions.unhandled==='function'){
8507functions.unhandled();
8508}
8509}
8510},
8511findFocusable:findFocusable,
8512register:function register(componentName,cmds){
8513commands[componentName]=cmds;
8514},
8515trapFocus:function trapFocus($element){
8516var $focusable=findFocusable($element),
8517$firstFocusable=$focusable.eq(0),
8518$lastFocusable=$focusable.eq(-1);
8519$element.on('keydown.zf.trapfocus',function(event){
8520if(event.target===$lastFocusable[0]&&parseKey(event)==='TAB'){
8521event.preventDefault();
8522$firstFocusable.focus();
8523}else if(event.target===$firstFocusable[0]&&parseKey(event)==='SHIFT_TAB'){
8524event.preventDefault();
8525$lastFocusable.focus();
8526}
8527});
8528},
8529releaseFocus:function releaseFocus($element){
8530$element.off('keydown.zf.trapfocus');
8531}
8532};
8533function getKeyCodes(kcs){
8534var k={};
8535for(var kc in kcs){
8536k[kcs[kc]]=kcs[kc];
8537}
8538return k;
8539}
8540}),
854123:
8542(function(module,exports,__webpack_require__){
8543module.exports=__webpack_require__("./js/entries/plugins/foundation.util.keyboard.js");
8544}),
8545"jquery":
8546(function(module,exports){
8547module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
8548})
8549});
8550});
8551(function webpackUniversalModuleDefinition(root,factory){
8552if(typeof exports==='object'&&typeof module==='object')
8553module.exports=factory(require("./foundation.core"));
8554else if(typeof define==='function'&&define.amd)
8555define(["./foundation.core"],factory);
8556else if(typeof exports==='object')
8557exports["foundation.util.box"]=factory(require("./foundation.core"));
8558else
8559root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.util.box"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"]);
8560})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__){
8561return(function(modules){
8562var installedModules={};
8563function __webpack_require__(moduleId){
8564if(installedModules[moduleId]){
8565return installedModules[moduleId].exports;
8566}
8567var module=installedModules[moduleId]={
8568i:moduleId,
8569l:false,
8570exports:{}
8571};
8572modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
8573module.l=true;
8574return module.exports;
8575}
8576__webpack_require__.m=modules;
8577__webpack_require__.c=installedModules;
8578__webpack_require__.d=function(exports,name,getter){
8579if(!__webpack_require__.o(exports,name)){
8580Object.defineProperty(exports,name,{enumerable:true,get:getter});
8581}
8582};
8583__webpack_require__.r=function(exports){
8584if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
8585Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
8586}
8587Object.defineProperty(exports,'__esModule',{value:true});
8588};
8589__webpack_require__.t=function(value,mode){
8590if(mode&1)value=__webpack_require__(value);
8591if(mode&8)return value;
vendor: 891 bytes, lines 8592-8614
8592if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
8593var ns=Object.create(null);
8594__webpack_require__.r(ns);
8595Object.defineProperty(ns,'default',{enumerable:true,value:value});
8596if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
8597return ns;
8598};
8599__webpack_require__.n=function(module){
8600var getter=module&&module.__esModule?
8601function getDefault(){return module['default'];}:
8602function getModuleExports(){return module;};
8603__webpack_require__.d(getter,'a',getter);
8604return getter;
8605};
8606__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
8607__webpack_require__.p="";
8608return __webpack_require__(__webpack_require__.s=21);
8609})
8610({
8611"./foundation.core":
8612(function(module,exports){
8613module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
8614}),
8615"./js/entries/plugins/foundation.util.box.js":
8616(function(module,__webpack_exports__,__webpack_require__){
8617"use strict";
8618__webpack_require__.r(__webpack_exports__);
8619var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
8620var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
8621__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
8622var _foundation_util_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.box.js");
8623__webpack_require__.d(__webpack_exports__,"Box",function(){return _foundation_util_box__WEBPACK_IMPORTED_MODULE_1__["Box"];});
8624_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].Box=_foundation_util_box__WEBPACK_IMPORTED_MODULE_1__["Box"];
8625}),
vendor: 2,693 bytes, lines 8626-8711
8626"./js/foundation.util.box.js":
8627(function(module,__webpack_exports__,__webpack_require__){
8628"use strict";
8629__webpack_require__.r(__webpack_exports__);
8630__webpack_require__.d(__webpack_exports__,"Box",function(){return Box;});
8631var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
8632var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__);
8633var Box={
8634ImNotTouchingYou:ImNotTouchingYou,
8635OverlapArea:OverlapArea,
8636GetDimensions:GetDimensions,
8637GetOffsets:GetOffsets,
8638GetExplicitOffsets:GetExplicitOffsets
8639};
8640function ImNotTouchingYou(element,parent,lrOnly,tbOnly,ignoreBottom){
8641return OverlapArea(element,parent,lrOnly,tbOnly,ignoreBottom)===0;
8642}
8643;
8644function OverlapArea(element,parent,lrOnly,tbOnly,ignoreBottom){
8645var eleDims=GetDimensions(element),
8646topOver,
8647bottomOver,
8648leftOver,
8649rightOver;
8650if(parent){
8651var parDims=GetDimensions(parent);
8652bottomOver=parDims.height+parDims.offset.top-(eleDims.offset.top+eleDims.height);
8653topOver=eleDims.offset.top-parDims.offset.top;
8654leftOver=eleDims.offset.left-parDims.offset.left;
8655rightOver=parDims.width+parDims.offset.left-(eleDims.offset.left+eleDims.width);
8656}else{
8657bottomOver=eleDims.windowDims.height+eleDims.windowDims.offset.top-(eleDims.offset.top+eleDims.height);
8658topOver=eleDims.offset.top-eleDims.windowDims.offset.top;
8659leftOver=eleDims.offset.left-eleDims.windowDims.offset.left;
8660rightOver=eleDims.windowDims.width-(eleDims.offset.left+eleDims.width);
8661}
8662bottomOver=ignoreBottom?0:Math.min(bottomOver,0);
8663topOver=Math.min(topOver,0);
8664leftOver=Math.min(leftOver,0);
8665rightOver=Math.min(rightOver,0);
8666if(lrOnly){
8667return leftOver+rightOver;
8668}
8669if(tbOnly){
8670return topOver+bottomOver;
8671}
8672return Math.sqrt(topOver*topOver+bottomOver*bottomOver+leftOver*leftOver+rightOver*rightOver);
8673}
8674function GetDimensions(elem){
8675elem=elem.length?elem[0]:elem;
8676if(elem===window||elem===document){
8677throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");
8678}
8679var rect=elem.getBoundingClientRect(),
8680parRect=elem.parentNode.getBoundingClientRect(),
8681winRect=document.body.getBoundingClientRect(),
8682winY=window.pageYOffset,
8683winX=window.pageXOffset;
8684return{
8685width:rect.width,
8686height:rect.height,
8687offset:{
8688top:rect.top+winY,
8689left:rect.left+winX
8690},
8691parentDims:{
8692width:parRect.width,
8693height:parRect.height,
8694offset:{
8695top:parRect.top+winY,
8696left:parRect.left+winX
8697}
8698},
8699windowDims:{
8700width:winRect.width,
8701height:winRect.height,
8702offset:{
8703top:winY,
8704left:winX
8705}
8706}
8707};
8708}
8709function GetOffsets(element,anchor,position,vOffset,hOffset,isOverflow){
8710console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5");
8711switch(position){
8712case'top':
8713return Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__["rtl"])()?GetExplicitOffsets(element,anchor,'top','left',vOffset,hOffset,isOverflow):GetExplicitOffsets(element,anchor,'top','right',vOffset,hOffset,isOverflow);
8714case'bottom':
8715return Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__["rtl"])()?GetExplicitOffsets(element,anchor,'bottom','left',vOffset,hOffset,isOverflow):GetExplicitOffsets(element,anchor,'bottom','right',vOffset,hOffset,isOverflow);
8716case'center top':
8717return GetExplicitOffsets(element,anchor,'top','center',vOffset,hOffset,isOverflow);
8718case'center bottom':
8719return GetExplicitOffsets(element,anchor,'bottom','center',vOffset,hOffset,isOverflow);
8720case'center left':
8721return GetExplicitOffsets(element,anchor,'left','center',vOffset,hOffset,isOverflow);
8722case'center right':
8723return GetExplicitOffsets(element,anchor,'right','center',vOffset,hOffset,isOverflow);
8724case'left bottom':
8725return GetExplicitOffsets(element,anchor,'bottom','left',vOffset,hOffset,isOverflow);
8726case'right bottom':
8727return GetExplicitOffsets(element,anchor,'bottom','right',vOffset,hOffset,isOverflow);
8728case'center':
8729return{
8730left:$eleDims.windowDims.offset.left+$eleDims.windowDims.width/2-$eleDims.width/2+hOffset,
8731top:$eleDims.windowDims.offset.top+$eleDims.windowDims.height/2-($eleDims.height/2+vOffset)
8732};
8733case'reveal':
8734return{
8735left:($eleDims.windowDims.width-$eleDims.width)/2+hOffset,
8736top:$eleDims.windowDims.offset.top+vOffset
8737};
8738case'reveal full':
8739return{
8740left:$eleDims.windowDims.offset.left,
8741top:$eleDims.windowDims.offset.top
8742};
8743break;
8744default:
8745return{
8746left:Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_0__["rtl"])()?$anchorDims.offset.left-$eleDims.width+$anchorDims.width-hOffset:$anchorDims.offset.left+hOffset,
8747top:$anchorDims.offset.top+$anchorDims.height+vOffset
8748};
8749}
8750}
8751function GetExplicitOffsets(element,anchor,position,alignment,vOffset,hOffset,isOverflow){
8752var $eleDims=GetDimensions(element),
8753$anchorDims=anchor?GetDimensions(anchor):null;
8754var topVal,leftVal;
8755switch(position){
8756case'top':
8757topVal=$anchorDims.offset.top-($eleDims.height+vOffset);
8758break;
8759case'bottom':
8760topVal=$anchorDims.offset.top+$anchorDims.height+vOffset;
8761break;
8762case'left':
8763leftVal=$anchorDims.offset.left-($eleDims.width+hOffset);
8764break;
8765case'right':
8766leftVal=$anchorDims.offset.left+$anchorDims.width+hOffset;
8767break;
8768}
8769switch(position){
8770case'top':
8771case'bottom':
8772switch(alignment){
8773case'left':
8774leftVal=$anchorDims.offset.left+hOffset;
8775break;
8776case'right':
8777leftVal=$anchorDims.offset.left-$eleDims.width+$anchorDims.width-hOffset;
8778break;
8779case'center':
8780leftVal=isOverflow?hOffset:$anchorDims.offset.left+$anchorDims.width/2-$eleDims.width/2+hOffset;
8781break;
8782}
8783break;
8784case'right':
8785case'left':
8786switch(alignment){
8787case'bottom':
8788topVal=$anchorDims.offset.top-vOffset+$anchorDims.height-$eleDims.height;
8789break;
8790case'top':
8791topVal=$anchorDims.offset.top+vOffset;
8792break;
8793case'center':
8794topVal=$anchorDims.offset.top+vOffset+$anchorDims.height/2-$eleDims.height/2;
8795break;
8796}
8797break;
8798}
8799return{
8800top:topVal,
8801left:leftVal
8802};
8803}
8804}),
880521:
8806(function(module,exports,__webpack_require__){
8807module.exports=__webpack_require__("./js/entries/plugins/foundation.util.box.js");
8808})
8809});
8810});
8811(function webpackUniversalModuleDefinition(root,factory){
8812if(typeof exports==='object'&&typeof module==='object')
8813module.exports=factory(require("./foundation.core"),require("./foundation.util.motion"),require("jquery"));
8814else if(typeof define==='function'&&define.amd)
8815define(["./foundation.core","./foundation.util.motion","jquery"],factory);
8816else if(typeof exports==='object')
8817exports["foundation.util.triggers"]=factory(require("./foundation.core"),require("./foundation.util.motion"),require("jquery"));
8818else
8819root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.util.triggers"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"],root["jQuery"]);
8820})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__,__WEBPACK_EXTERNAL_MODULE_jquery__){
8821return(function(modules){
8822var installedModules={};
8823function __webpack_require__(moduleId){
8824if(installedModules[moduleId]){
8825return installedModules[moduleId].exports;
8826}
8827var module=installedModules[moduleId]={
8828i:moduleId,
8829l:false,
8830exports:{}
8831};
8832modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
8833module.l=true;
8834return module.exports;
8835}
8836__webpack_require__.m=modules;
8837__webpack_require__.c=installedModules;
8838__webpack_require__.d=function(exports,name,getter){
8839if(!__webpack_require__.o(exports,name)){
8840Object.defineProperty(exports,name,{enumerable:true,get:getter});
8841}
8842};
8843__webpack_require__.r=function(exports){
8844if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
8845Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
8846}
8847Object.defineProperty(exports,'__esModule',{value:true});
8848};
8849__webpack_require__.t=function(value,mode){
8850if(mode&1)value=__webpack_require__(value);
8851if(mode&8)return value;
8852if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
8853var ns=Object.create(null);
8854__webpack_require__.r(ns);
8855Object.defineProperty(ns,'default',{enumerable:true,value:value});
8856if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
8857return ns;
8858};
8859__webpack_require__.n=function(module){
8860var getter=module&&module.__esModule?
8861function getDefault(){return module['default'];}:
8862function getModuleExports(){return module;};
8863__webpack_require__.d(getter,'a',getter);
8864return getter;
8865};
8866__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
8867__webpack_require__.p="";
8868return __webpack_require__(__webpack_require__.s=29);
8869})
8870({
8871"./foundation.core":
8872(function(module,exports){
8873module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
8874}),
8875"./foundation.util.motion":
8876(function(module,exports){
8877module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
8878}),
8879"./js/entries/plugins/foundation.util.triggers.js":
8880(function(module,__webpack_exports__,__webpack_require__){
8881"use strict";
8882__webpack_require__.r(__webpack_exports__);
8883var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
8884var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
8885__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
8886var jquery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("jquery");
8887var jquery__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__);
8888var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./js/foundation.util.triggers.js");
8889__webpack_require__.d(__webpack_exports__,"Triggers",function(){return _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_2__["Triggers"];});
8890_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_2__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_1___default.a,_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]);
8891}),
vendor: 8,276 bytes, lines 8892-9087
8892"./js/foundation.util.triggers.js":
8893(function(module,__webpack_exports__,__webpack_require__){
8894"use strict";
8895__webpack_require__.r(__webpack_exports__);
8896__webpack_require__.d(__webpack_exports__,"Triggers",function(){return Triggers;});
8897var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
8898var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
8899var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
8900var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
8901var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.motion");
8902var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
8903function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
8904var MutationObserver=function(){
8905var prefixes=['WebKit','Moz','O','Ms',''];
8906for(var i=0;i<prefixes.length;i++){
8907if("".concat(prefixes[i],"MutationObserver")in window){
8908return window["".concat(prefixes[i],"MutationObserver")];
8909}
8910}
8911return false;
8912}();
8913var triggers=function triggers(el,type){
8914el.data(type).split(' ').forEach(function(id){
8915jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type==='close'?'trigger':'triggerHandler']("".concat(type,".zf.trigger"),[el]);
8916});
8917};
8918var Triggers={
8919Listeners:{
8920Basic:{},
8921Global:{}
8922},
8923Initializers:{}
8924};
8925Triggers.Listeners.Basic={
8926openListener:function openListener(){
8927triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'open');
8928},
8929closeListener:function closeListener(){
8930var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
8931if(id){
8932triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'close');
8933}else{
8934jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
8935}
8936},
8937toggleListener:function toggleListener(){
8938var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
8939if(id){
8940triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'toggle');
8941}else{
8942jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
8943}
8944},
8945closeableListener:function closeableListener(e){
8946e.stopPropagation();
8947var animation=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
8948if(animation!==''){
8949_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),animation,function(){
8950jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
8951});
8952}else{
8953jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
8954}
8955},
8956toggleFocusListener:function toggleFocusListener(){
8957var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
8958jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger',[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
8959}
8960};
8961Triggers.Initializers.addOpenListener=function($elem){
8962$elem.off('click.zf.trigger',Triggers.Listeners.Basic.openListener);
8963$elem.on('click.zf.trigger','[data-open]',Triggers.Listeners.Basic.openListener);
8964};
8965Triggers.Initializers.addCloseListener=function($elem){
8966$elem.off('click.zf.trigger',Triggers.Listeners.Basic.closeListener);
8967$elem.on('click.zf.trigger','[data-close]',Triggers.Listeners.Basic.closeListener);
8968};
8969Triggers.Initializers.addToggleListener=function($elem){
8970$elem.off('click.zf.trigger',Triggers.Listeners.Basic.toggleListener);
8971$elem.on('click.zf.trigger','[data-toggle]',Triggers.Listeners.Basic.toggleListener);
8972};
8973Triggers.Initializers.addCloseableListener=function($elem){
8974$elem.off('close.zf.trigger',Triggers.Listeners.Basic.closeableListener);
8975$elem.on('close.zf.trigger','[data-closeable], [data-closable]',Triggers.Listeners.Basic.closeableListener);
8976};
8977Triggers.Initializers.addToggleFocusListener=function($elem){
8978$elem.off('focus.zf.trigger blur.zf.trigger',Triggers.Listeners.Basic.toggleFocusListener);
8979$elem.on('focus.zf.trigger blur.zf.trigger','[data-toggle-focus]',Triggers.Listeners.Basic.toggleFocusListener);
8980};
8981Triggers.Listeners.Global={
8982resizeListener:function resizeListener($nodes){
8983if(!MutationObserver){
8984$nodes.each(function(){
8985jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
8986});
8987}
8988$nodes.attr('data-events',"resize");
8989},
8990scrollListener:function scrollListener($nodes){
8991if(!MutationObserver){
8992$nodes.each(function(){
8993jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
8994});
8995}
8996$nodes.attr('data-events',"scroll");
8997},
8998closeMeListener:function closeMeListener(e,pluginId){
8999var plugin=e.namespace.split('.')[0];
9000var plugins=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin,"]")).not("[data-yeti-box=\"".concat(pluginId,"\"]"));
9001plugins.each(function(){
9002var _this=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
9003_this.triggerHandler('close.zf.trigger',[_this]);
9004});
9005}
9006};
9007Triggers.Initializers.addClosemeListener=function(pluginName){
9008var yetiBoxes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
9009plugNames=['dropdown','tooltip','reveal'];
9010if(pluginName){
9011if(typeof pluginName==='string'){
9012plugNames.push(pluginName);
9013}else if(_typeof(pluginName)==='object'&&typeof pluginName[0]==='string'){
9014plugNames=plugNames.concat(pluginName);
9015}else{
9016console.error('Plugin names must be strings');
9017}
9018}
9019if(yetiBoxes.length){
9020var listeners=plugNames.map(function(name){
9021return"closeme.zf.".concat(name);
9022}).join(' ');
9023jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners,Triggers.Listeners.Global.closeMeListener);
9024}
9025};
9026function debounceGlobalListener(debounce,trigger,listener){
9027var timer,
9028args=Array.prototype.slice.call(arguments,3);
9029jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger,function(e){
9030if(timer){
9031clearTimeout(timer);
9032}
9033timer=setTimeout(function(){
9034listener.apply(null,args);
9035},debounce||10);
9036});
9037}
9038Triggers.Initializers.addResizeListener=function(debounce){
9039var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
9040if($nodes.length){
9041debounceGlobalListener(debounce,'resize.zf.trigger',Triggers.Listeners.Global.resizeListener,$nodes);
9042}
9043};
9044Triggers.Initializers.addScrollListener=function(debounce){
9045var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
9046if($nodes.length){
9047debounceGlobalListener(debounce,'scroll.zf.trigger',Triggers.Listeners.Global.scrollListener,$nodes);
9048}
9049};
9050Triggers.Initializers.addMutationEventsListener=function($elem){
9051if(!MutationObserver){
9052return false;
9053}
9054var $nodes=$elem.find('[data-resize], [data-scroll], [data-mutate]');
9055var listeningElementsMutation=function listeningElementsMutation(mutationRecordsList){
9056var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
9057switch(mutationRecordsList[0].type){
9058case"attributes":
9059if($target.attr("data-events")==="scroll"&&mutationRecordsList[0].attributeName==="data-events"){
9060$target.triggerHandler('scrollme.zf.trigger',[$target,window.pageYOffset]);
9061}
9062if($target.attr("data-events")==="resize"&&mutationRecordsList[0].attributeName==="data-events"){
9063$target.triggerHandler('resizeme.zf.trigger',[$target]);
9064}
9065if(mutationRecordsList[0].attributeName==="style"){
9066$target.closest("[data-mutate]").attr("data-events","mutate");
9067$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
9068}
9069break;
9070case"childList":
9071$target.closest("[data-mutate]").attr("data-events","mutate");
9072$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
9073break;
9074default:
9075return false;
9076}
9077};
9078if($nodes.length){
9079for(var i=0;i<=$nodes.length-1;i++){
9080var elementObserver=new MutationObserver(listeningElementsMutation);
9081elementObserver.observe($nodes[i],{
9082attributes:true,
9083childList:true,
9084characterData:false,
9085subtree:true,
9086attributeFilter:["data-events","style"]
9087}
9087);
9088}
9089}
9090};
9091Triggers.Initializers.addSimpleListeners=function(){
9092var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
9093Triggers.Initializers.addOpenListener($document);
9094Triggers.Initializers.addCloseListener($document);
9095Triggers.Initializers.addToggleListener($document);
9096Triggers.Initializers.addCloseableListener($document);
9097Triggers.Initializers.addToggleFocusListener($document);
9098};
9099Triggers.Initializers.addGlobalListeners=function(){
9100var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
9101Triggers.Initializers.addMutationEventsListener($document);
9102Triggers.Initializers.addResizeListener();
9103Triggers.Initializers.addScrollListener();
9104Triggers.Initializers.addClosemeListener();
9105};
9106Triggers.init=function($,Foundation){
9107Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window),function(){
9108if($.triggersInitialized!==true){
9109Triggers.Initializers.addSimpleListeners();
9110Triggers.Initializers.addGlobalListeners();
9111$.triggersInitialized=true;
9112}
9113});
9114if(Foundation){
9115Foundation.Triggers=Triggers;
9116Foundation.IHearYou=Triggers.Initializers.addGlobalListeners;
9117}
9118};
9119}),
912029:
9121(function(module,exports,__webpack_require__){
9122module.exports=__webpack_require__("./js/entries/plugins/foundation.util.triggers.js");
9123}),
9124"jquery":
9125(function(module,exports){
9126module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
9127})
9128});
9129});
9130(function webpackUniversalModuleDefinition(root,factory){
9131if(typeof exports==='object'&&typeof module==='object')
9132module.exports=factory(require("./foundation.core"),require("jquery"));
9133else if(typeof define==='function'&&define.amd)
9134define(["./foundation.core","jquery"],factory);
9135else if(typeof exports==='object')
9136exports["foundation.util.mediaQuery"]=factory(require("./foundation.core"),require("jquery"));
9137else
9138root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["jQuery"]);
9139})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE_jquery__){
9140return(function(modules){
9141var installedModules={};
9142function __webpack_require__(moduleId){
9143if(installedModules[moduleId]){
9144return installedModules[moduleId].exports;
9145}
9146var module=installedModules[moduleId]={
9147i:moduleId,
9148l:false,
9149exports:{}
9150};
9151modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
9152module.l=true;
9153return module.exports;
9154}
9155__webpack_require__.m=modules;
9156__webpack_require__.c=installedModules;
9157__webpack_require__.d=function(exports,name,getter){
9158if(!__webpack_require__.o(exports,name)){
9159Object.defineProperty(exports,name,{enumerable:true,get:getter});
9160}
9161};
9162__webpack_require__.r=function(exports){
9163if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
9164Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
9165}
9166Object.defineProperty(exports,'__esModule',{value:true});
9167};
9168__webpack_require__.t=function(value,mode){
9169if(mode&1)value=__webpack_require__(value);
9170if(mode&8)return value;
9171if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
9172var ns=Object.create(null);
9173__webpack_require__.r(ns);
9174Object.defineProperty(ns,'default',{enumerable:true,value:value});
9175if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
9176return ns;
9177};
9178__webpack_require__.n=function(module){
9179var getter=module&&module.__esModule?
9180function getDefault(){return module['default'];}:
9181function getModuleExports(){return module;};
9182__webpack_require__.d(getter,'a',getter);
9183return getter;
9184};
9185__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
9186__webpack_require__.p="";
9187return __webpack_require__(__webpack_require__.s=24);
9188})
9189({
9190"./foundation.core":
9191(function(module,exports){
9192module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
9193}),
9194"./js/entries/plugins/foundation.util.mediaQuery.js":
9195(function(module,__webpack_exports__,__webpack_require__){
9196"use strict";
9197__webpack_require__.r(__webpack_exports__);
9198var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
9199var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
9200__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
9201var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.mediaQuery.js");
9202__webpack_require__.d(__webpack_exports__,"MediaQuery",function(){return _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"];});
9203_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].MediaQuery=_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"];
9204_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].MediaQuery._init();
9205}),
9206"./js/foundation.util.mediaQuery.js":
9207(function(module,__webpack_exports__,__webpack_require__){
9208"use strict";
9209__webpack_require__.r(__webpack_exports__);
9210__webpack_require__.d(__webpack_exports__,"MediaQuery",function(){return MediaQuery;});
9211var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
9212var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
9213function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
9214var defaultQueries={
9215'default':'only screen',
9216landscape:'only screen and (orientation: landscape)',
9217portrait:'only screen and (orientation: portrait)',
9218retina:'only screen and (-webkit-min-device-pixel-ratio: 2),'+'only screen and (min--moz-device-pixel-ratio: 2),'+'only screen and (-o-min-device-pixel-ratio: 2/1),'+'only screen and (min-device-pixel-ratio: 2),'+'only screen and (min-resolution: 192dpi),'+'only screen and (min-resolution: 2dppx)'
9219};
9220window.matchMedia||(window.matchMedia=function(){
9221"use strict";
9222var styleMedia=window.styleMedia||window.media;
9223if(!styleMedia){
9224var style=document.createElement('style'),
9225script=document.getElementsByTagName('script')[0],
9226info=null;
9227style.type='text/css';
9228style.id='matchmediajs-test';
9229if(!script){
9230document.head.appendChild(style);
9231}else{
9232script.parentNode.insertBefore(style,script);
9233}
9234info='getComputedStyle'in window&&window.getComputedStyle(style,null)||style.currentStyle;
9235styleMedia={
9236matchMedium:function matchMedium(media){
9237var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';
9238if(style.styleSheet){
9239style.styleSheet.cssText=text;
9240}else{
9241style.textContent=text;
9242}
9243return info.width==='1px';
9244}
9245};
9246}
9247return function(media){
9248return{
9249matches:styleMedia.matchMedium(media||'all'),
9250media:media||'all'
9251};
9252};
9253}());
9254var MediaQuery={
9255queries:[],
9256current:'',
9257_init:function _init(){
9258var self=this;
9259var $meta=jquery__WEBPACK_IMPORTED_MODULE_0___default()('meta.foundation-mq');
9260if(!$meta.length){
9261jquery__WEBPACK_IMPORTED_MODULE_0___default()('<meta class="foundation-mq">').appendTo(document.head);
9262}
9263var extractedStyles=jquery__WEBPACK_IMPORTED_MODULE_0___default()('.foundation-mq').css('font-family');
9264var namedQueries;
9265namedQueries=parseStyleToObject(extractedStyles);
9266for(var key in namedQueries){
9267if(namedQueries.hasOwnProperty(key)){
9268self.queries.push({
9269name:key,
9270value:"only screen and (min-width: ".concat(namedQueries[key],")")
9271});
9272}
9273}
9274this.current=this._getCurrentSize();
9275this._watcher();
9276},
9277atLeast:function atLeast(size){
9278var query=this.get(size);
9279if(query){
9280return window.matchMedia(query).matches;
9281}
9282return false;
9283},
9284is:function is(size){
9285size=size.trim().split(' ');
9286if(size.length>1&&size[1]==='only'){
9287if(size[0]===this._getCurrentSize())return true;
9288}else{
9289return this.atLeast(size[0]);
9290}
9291return false;
9292},
9293get:function get(size){
9294for(var i in this.queries){
9295if(this.queries.hasOwnProperty(i)){
9296var query=this.queries[i];
9297if(size===query.name)return query.value;
9298}
9299}
9300return null;
9301},
9302_getCurrentSize:function _getCurrentSize(){
9303var matched;
9304for(var i=0;i<this.queries.length;i++){
9305var query=this.queries[i];
9306if(window.matchMedia(query.value).matches){
9307matched=query;
9308}
9309}
9310if(_typeof(matched)==='object'){
9311return matched.name;
9312}else{
9313return matched;
9314}
9315},
9316_watcher:function _watcher(){
9317var _this=this;
9318jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('resize.zf.mediaquery').on('resize.zf.mediaquery',function(){
9319var newSize=_this._getCurrentSize(),
9320currentSize=_this.current;
9321if(newSize!==currentSize){
9322_this.current=newSize;
9323jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).trigger('changed.zf.mediaquery',[newSize,currentSize]);
9324}
9325});
9326}
9327};
9328function parseStyleToObject(str){
9329var styleObject={};
9330if(typeof str!=='string'){
9331return styleObject;
9332}
9333str=str.trim().slice(1,-1);
9334if(!str){
9335return styleObject;
9336}
9337styleObject=str.split('&').reduce(function(ret,param){
9338var parts=param.replace(/\+/g,' ').split('=');
9339var key=parts[0];
9340var val=parts[1];
9341key=decodeURIComponent(key);
9342val=typeof val==='undefined'?null:decodeURIComponent(val);
9343if(!ret.hasOwnProperty(key)){
9344ret[key]=val;
9345}else if(Array.isArray(ret[key])){
9346ret[key].push(val);
9347}else{
9348ret[key]=[ret[key],val];
9349}
9350return ret;
9351},{});
9352return styleObject;
9353}
9354}),
935524:
9356(function(module,exports,__webpack_require__){
9357module.exports=__webpack_require__("./js/entries/plugins/foundation.util.mediaQuery.js");
9358}),
9359"jquery":
9360(function(module,exports){
9361module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
9362})
9363});
9364});
9365(function webpackUniversalModuleDefinition(root,factory){
9366if(typeof exports==='object'&&typeof module==='object')
9367module.exports=factory(require("./foundation.core"),require("jquery"));
9368else if(typeof define==='function'&&define.amd)
9369define(["./foundation.core","jquery"],factory);
9370else if(typeof exports==='object')
9371exports["foundation.util.imageLoader"]=factory(require("./foundation.core"),require("jquery"));
9372else
9373root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.util.imageLoader"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["jQuery"]);
9374})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE_jquery__){
9375return(function(modules){
9376var installedModules={};
9377function __webpack_require__(moduleId){
9378if(installedModules[moduleId]){
9379return installedModules[moduleId].exports;
9380}
9381var module=installedModules[moduleId]={
9382i:moduleId,
9383l:false,
9384exports:{}
9385};
9386modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
9387module.l=true;
9388return module.exports;
9389}
9390__webpack_require__.m=modules;
9391__webpack_require__.c=installedModules;
9392__webpack_require__.d=function(exports,name,getter){
9393if(!__webpack_require__.o(exports,name)){
9394Object.defineProperty(exports,name,{enumerable:true,get:getter});
9395}
9396};
9397__webpack_require__.r=function(exports){
9398if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
9399Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
9400}
9401Object.defineProperty(exports,'__esModule',{value:true});
9402};
9403__webpack_require__.t=function(value,mode){
9404if(mode&1)value=__webpack_require__(value);
9405if(mode&8)return value;
vendor: 891 bytes, lines 9406-9428
9406if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
9407var ns=Object.create(null);
9408__webpack_require__.r(ns);
9409Object.defineProperty(ns,'default',{enumerable:true,value:value});
9410if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
9411return ns;
9412};
9413__webpack_require__.n=function(module){
9414var getter=module&&module.__esModule?
9415function getDefault(){return module['default'];}:
9416function getModuleExports(){return module;};
9417__webpack_require__.d(getter,'a',getter);
9418return getter;
9419};
9420__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
9421__webpack_require__.p="";
9422return __webpack_require__(__webpack_require__.s=22);
9423})
9424({
9425"./foundation.core":
9426(function(module,exports){
9427module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
9428}),
9429"./js/entries/plugins/foundation.util.imageLoader.js":
9430(function(module,__webpack_exports__,__webpack_require__){
9431"use strict";
9432__webpack_require__.r(__webpack_exports__);
9433var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
9434var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
9435__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
9436var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.imageLoader.js");
9437__webpack_require__.d(__webpack_exports__,"onImagesLoaded",function(){return _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_1__["onImagesLoaded"];});
9438_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].onImagesLoaded=_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_1__["onImagesLoaded"];
9439}),
9440"./js/foundation.util.imageLoader.js":
9441(function(module,__webpack_exports__,__webpack_require__){
9442"use strict";
9443__webpack_require__.r(__webpack_exports__);
9444__webpack_require__.d(__webpack_exports__,"onImagesLoaded",function(){return onImagesLoaded;});
9445var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
9446var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
9447function onImagesLoaded(images,callback){
9448var self=this,
9449unloaded=images.length;
9450if(unloaded===0){
9451callback();
9452}
9453images.each(function(){
9454if(this.complete&&typeof this.naturalWidth!=='undefined'){
9455singleImageLoaded();
9456}else{
9457var image=new Image();
9458var events="load.zf.images error.zf.images";
9459jquery__WEBPACK_IMPORTED_MODULE_0___default()(image).one(events,function me(event){
9460jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).off(events,me);
9461singleImageLoaded();
9462});
9463image.src=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('src');
9464}
9465});
9466function singleImageLoaded(){
9467unloaded--;
9468if(unloaded===0){
9469callback();
9470}
9471}
9472}
9473}),
947422:
9475(function(module,exports,__webpack_require__){
9476module.exports=__webpack_require__("./js/entries/plugins/foundation.util.imageLoader.js");
9477}),
9478"jquery":
9479(function(module,exports){
9480module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
9481})
9482});
9483});
9484(function webpackUniversalModuleDefinition(root,factory){
9485if(typeof exports==='object'&&typeof module==='object')
9486module.exports=factory(require("./foundation.core"),require("jquery"));
9487else if(typeof define==='function'&&define.amd)
9488define(["./foundation.core","jquery"],factory);
9489else if(typeof exports==='object')
9490exports["foundation.util.motion"]=factory(require("./foundation.core"),require("jquery"));
9491else
9492root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["jQuery"]);
9493})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE_jquery__){
9494return(function(modules){
9495var installedModules={};
9496function __webpack_require__(moduleId){
9497if(installedModules[moduleId]){
9498return installedModules[moduleId].exports;
9499}
9500var module=installedModules[moduleId]={
9501i:moduleId,
9502l:false,
9503exports:{}
9504};
9505modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
9506module.l=true;
9507return module.exports;
9508}
9509__webpack_require__.m=modules;
9510__webpack_require__.c=installedModules;
9511__webpack_require__.d=function(exports,name,getter){
9512if(!__webpack_require__.o(exports,name)){
9513Object.defineProperty(exports,name,{enumerable:true,get:getter});
9514}
9515};
9516__webpack_require__.r=function(exports){
9517if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
9518Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
9519}
9520Object.defineProperty(exports,'__esModule',{value:true});
9521};
9522__webpack_require__.t=function(value,mode){
9523if(mode&1)value=__webpack_require__(value);
9524if(mode&8)return value;
9525if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
9526var ns=Object.create(null);
9527__webpack_require__.r(ns);
9528Object.defineProperty(ns,'default',{enumerable:true,value:value});
9529if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
9530return ns;
9531};
9532__webpack_require__.n=function(module){
9533var getter=module&&module.__esModule?
9534function getDefault(){return module['default'];}:
9535function getModuleExports(){return module;};
9536__webpack_require__.d(getter,'a',getter);
9537return getter;
9538};
9539__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
9540__webpack_require__.p="";
9541return __webpack_require__(__webpack_require__.s=25);
9542})
9543({
9544"./foundation.core":
9545(function(module,exports){
9546module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
9547}),
9548"./js/entries/plugins/foundation.util.motion.js":
9549(function(module,__webpack_exports__,__webpack_require__){
9550"use strict";
9551__webpack_require__.r(__webpack_exports__);
9552var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
9553var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
9554__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
9555var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.util.motion.js");
9556__webpack_require__.d(__webpack_exports__,"Motion",function(){return _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Motion"];});
9557__webpack_require__.d(__webpack_exports__,"Move",function(){return _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Move"];});
9558_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].Motion=_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Motion"];
9559_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].Move=_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Move"];
9560}),
9561"./js/foundation.util.motion.js":
9562(function(module,__webpack_exports__,__webpack_require__){
9563"use strict";
9564__webpack_require__.r(__webpack_exports__);
9565__webpack_require__.d(__webpack_exports__,"Move",function(){return Move;});
9566__webpack_require__.d(__webpack_exports__,"Motion",function(){return Motion;});
9567var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
9568var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
9569var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
9570var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
9571var initClasses=['mui-enter','mui-leave'];
9572var activeClasses=['mui-enter-active','mui-leave-active'];
9573var Motion={
9574animateIn:function animateIn(element,animation,cb){
9575animate(true,element,animation,cb);
9576},
9577animateOut:function animateOut(element,animation,cb){
9578animate(false,element,animation,cb);
9579}
9580};
9581function Move(duration,elem,fn){
9582var anim,
9583prog,
9584start=null;
9585if(duration===0){
9586fn.apply(elem);
9587elem.trigger('finished.zf.animate',[elem]).triggerHandler('finished.zf.animate',[elem]);
9588return;
9589}
9590function move(ts){
9591if(!start)start=ts;
9592prog=ts-start;
9593fn.apply(elem);
9594if(prog<duration){
9595anim=window.requestAnimationFrame(move,elem);
9596}else{
9597window.cancelAnimationFrame(anim);
9598elem.trigger('finished.zf.animate',[elem]).triggerHandler('finished.zf.animate',[elem]);
9599}
9600}
9601anim=window.requestAnimationFrame(move);
9602}
9603function animate(isIn,element,animation,cb){
9604element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(element).eq(0);
9605if(!element.length)return;
9606var initClass=isIn?initClasses[0]:initClasses[1];
9607var activeClass=isIn?activeClasses[0]:activeClasses[1];
9608reset();
9609element.addClass(animation).css('transition','none');
9610requestAnimationFrame(function(){
9611element.addClass(initClass);
9612if(isIn)element.show();
9613});
9614requestAnimationFrame(function(){
9615element[0].offsetWidth;
9616element.css('transition','').addClass(activeClass);
9617});
9618element.one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["transitionend"])(element),finish);
9619function finish(){
9620if(!isIn)element.hide();
9621reset();
9622if(cb)cb.apply(element);
9623}
9624function reset(){
9625element[0].style.transitionDuration=0;
9626element.removeClass("".concat(initClass," ").concat(activeClass," ").concat(animation));
9627}
9628}
9629}),
963025:
9631(function(module,exports,__webpack_require__){
9632module.exports=__webpack_require__("./js/entries/plugins/foundation.util.motion.js");
9633}),
9634"jquery":
9635(function(module,exports){
9636module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
9637})
9638});
9639});
9640(function webpackUniversalModuleDefinition(root,factory){
9641if(typeof exports==='object'&&typeof module==='object')
9642module.exports=factory(require("./foundation.core"),require("./foundation.util.keyboard"),require("jquery"));
9643else if(typeof define==='function'&&define.amd)
9644define(["./foundation.core","./foundation.util.keyboard","jquery"],factory);
9645else if(typeof exports==='object')
9646exports["foundation.accordion"]=factory(require("./foundation.core"),require("./foundation.util.keyboard"),require("jquery"));
9647else
9648root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.accordion"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"],root["jQuery"]);
9649})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__,__WEBPACK_EXTERNAL_MODULE_jquery__){
9650return(function(modules){
9651var installedModules={};
9652function __webpack_require__(moduleId){
9653if(installedModules[moduleId]){
9654return installedModules[moduleId].exports;
9655}
9656var module=installedModules[moduleId]={
9657i:moduleId,
9658l:false,
9659exports:{}
9660};
9661modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
9662module.l=true;
9663return module.exports;
9664}
9665__webpack_require__.m=modules;
9666__webpack_require__.c=installedModules;
9667__webpack_require__.d=function(exports,name,getter){
9668if(!__webpack_require__.o(exports,name)){
9669Object.defineProperty(exports,name,{enumerable:true,get:getter});
9670}
9671};
9672__webpack_require__.r=function(exports){
9673if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
9674Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
9675}
9676Object.defineProperty(exports,'__esModule',{value:true});
9677};
9678__webpack_require__.t=function(value,mode){
9679if(mode&1)value=__webpack_require__(value);
9680if(mode&8)return value;
vendor: 1,021 bytes, lines 9681-9707
9681if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
9682var ns=Object.create(null);
9683__webpack_require__.r(ns);
9684Object.defineProperty(ns,'default',{enumerable:true,value:value});
9685if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
9686return ns;
9687};
9688__webpack_require__.n=function(module){
9689var getter=module&&module.__esModule?
9690function getDefault(){return module['default'];}:
9691function getModuleExports(){return module;};
9692__webpack_require__.d(getter,'a',getter);
9693return getter;
9694};
9695__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
9696__webpack_require__.p="";
9697return __webpack_require__(__webpack_require__.s=1);
9698})
9699({
9700"./foundation.core":
9701(function(module,exports){
9702module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
9703}),
9704"./foundation.util.keyboard":
9705(function(module,exports){
9706module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
9707}),
9708"./js/entries/plugins/foundation.accordion.js":
9709(function(module,__webpack_exports__,__webpack_require__){
9710"use strict";
9711__webpack_require__.r(__webpack_exports__);
9712var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
9713var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
9714__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
9715var _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.accordion.js");
9716__webpack_require__.d(__webpack_exports__,"Accordion",function(){return _foundation_accordion__WEBPACK_IMPORTED_MODULE_1__["Accordion"];});
9717_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_accordion__WEBPACK_IMPORTED_MODULE_1__["Accordion"],'Accordion');
9718}),
9719"./js/foundation.accordion.js":
9720(function(module,__webpack_exports__,__webpack_require__){
9721"use strict";
9722__webpack_require__.r(__webpack_exports__);
9723__webpack_require__.d(__webpack_exports__,"Accordion",function(){return Accordion;});
9724var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
9725var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
9726var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
9727var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
9728var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.keyboard");
9729var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
9730function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
9731function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
9732function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
9733function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
9734function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
9735function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
9736function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
9737function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
9738function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
9739var Accordion=
9740function(_Plugin){
9741_inherits(Accordion,_Plugin);
9742function Accordion(){
9743_classCallCheck(this,Accordion);
9744return _possibleConstructorReturn(this,_getPrototypeOf(Accordion).apply(this,arguments));
9745}
9746_createClass(Accordion,[{
9747key:"_setup",
9748value:function _setup(element,options){
9749this.$element=element;
9750this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Accordion.defaults,this.$element.data(),options);
9751this.className='Accordion';
9752this._init();
9753_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('Accordion',{
9754'ENTER':'toggle',
9755'SPACE':'toggle',
9756'ARROW_DOWN':'next',
9757'ARROW_UP':'previous'
9758});
9759}
9760},{
9761key:"_init",
9762value:function _init(){
9763var _this2=this;
9764this._isInitializing=true;
9765this.$element.attr('role','tablist');
9766this.$tabs=this.$element.children('[data-accordion-item]');
9767this.$tabs.each(function(idx,el){
9768var $el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(el),
9769$content=$el.children('[data-tab-content]'),
9770id=$content[0].id||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,'accordion'),
9771linkId=el.id?"".concat(el.id,"-label"):"".concat(id,"-label");
9772$el.find('a:first').attr({
9773'aria-controls':id,
9774'role':'tab',
9775'id':linkId,
9776'aria-expanded':false,
9777'aria-selected':false
9778});
9779$content.attr({
9780'role':'tabpanel',
9781'aria-labelledby':linkId,
9782'aria-hidden':true,
9783'id':id
9784});
9785});
9786var $initActive=this.$element.find('.is-active').children('[data-tab-content]');
9787if($initActive.length){
9788this._initialAnchor=$initActive.prev('a').attr('href');
9789this._openSingleTab($initActive);
9790}
9791this._checkDeepLink=function(){
9792var anchor=window.location.hash;
9793if(!anchor.length){
9794if(_this2._isInitializing)return;
9795if(_this2._initialAnchor)anchor=_this2._initialAnchor;
9796}
9797var $anchor=anchor&&jquery__WEBPACK_IMPORTED_MODULE_0___default()(anchor);
9798var $link=anchor&&_this2.$element.find("[href$=\"".concat(anchor,"\"]"));
9799var isOwnAnchor=!!($anchor.length&&$link.length);
9800if($anchor&&$link&&$link.length){
9801if(!$link.parent('[data-accordion-item]').hasClass('is-active')){
9802_this2._openSingleTab($anchor);
9803}
9804;
9805}
9806else{
9807_this2._closeAllTabs();
9808}
9809if(isOwnAnchor){
9810if(_this2.options.deepLinkSmudge){
9811Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){
9812var offset=_this2.$element.offset();
9813jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
9814scrollTop:offset.top
9815},_this2.options.deepLinkSmudgeDelay);
9816});
9817}
9818_this2.$element.trigger('deeplink.zf.accordion',[$link,$anchor]);
9819}
9820};
9821if(this.options.deepLink){
9822this._checkDeepLink();
9823}
9824this._events();
9825this._isInitializing=false;
9826}
9827},{
9828key:"_events",
9829value:function _events(){
9830var _this=this;
9831this.$tabs.each(function(){
9832var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
9833var $tabContent=$elem.children('[data-tab-content]');
9834if($tabContent.length){
9835$elem.children('a').off('click.zf.accordion keydown.zf.accordion').on('click.zf.accordion',function(e){
9836e.preventDefault();
9837_this.toggle($tabContent);
9838}).on('keydown.zf.accordion',function(e){
9839_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].handleKey(e,'Accordion',{
9840toggle:function toggle(){
9841_this.toggle($tabContent);
9842},
9843next:function next(){
9844var $a=$elem.next().find('a').focus();
9845if(!_this.options.multiExpand){
9846$a.trigger('click.zf.accordion');
9847}
9848},
9849previous:function previous(){
9850var $a=$elem.prev().find('a').focus();
9851if(!_this.options.multiExpand){
9852$a.trigger('click.zf.accordion');
9853}
9854},
9855handled:function handled(){
9856e.preventDefault();
9857e.stopPropagation();
9858}
9859});
9860});
9861}
9862});
9863if(this.options.deepLink){
9864jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange',this._checkDeepLink);
9865}
9866}
9867},{
9868key:"toggle",
9869value:function toggle($target){
9870if($target.closest('[data-accordion]').is('[disabled]')){
9871console.info('Cannot toggle an accordion that is disabled.');
9872return;
9873}
9874if($target.parent().hasClass('is-active')){
9875this.up($target);
9876}else{
9877this.down($target);
9878}
9879if(this.options.deepLink){
9880var anchor=$target.prev('a').attr('href');
9881if(this.options.updateHistory){
9882history.pushState({},'',anchor);
9883}else{
9884history.replaceState({},'',anchor);
9885}
9886}
9887}
9888},{
9889key:"down",
9890value:function down($target){
9891if($target.closest('[data-accordion]').is('[disabled]')){
9892console.info('Cannot call down on an accordion that is disabled.');
9893return;
9894}
9895if(this.options.multiExpand)this._openTab($target);else this._openSingleTab($target);
9896}
9897},{
9898key:"up",
9899value:function up($target){
9900if(this.$element.is('[disabled]')){
9901console.info('Cannot call up on an accordion that is disabled.');
9902return;
9903}
9904var $targetItem=$target.parent();
9905if(!$targetItem.hasClass('is-active'))return;
9906var $othersItems=$targetItem.siblings();
9907if(!this.options.allowAllClosed&&!$othersItems.hasClass('is-active'))return;
9908this._closeTab($target);
9909}
9910},{
9911key:"_openSingleTab",
9912value:function _openSingleTab($target){
9913var $activeContents=this.$element.children('.is-active').children('[data-tab-content]');
9914if($activeContents.length){
9915this._closeTab($activeContents.not($target));
9916}
9917this._openTab($target);
9918}
9919},{
9920key:"_openTab",
9921value:function _openTab($target){
9922var _this3=this;
9923var $targetItem=$target.parent();
9924var targetContentId=$target.attr('aria-labelledby');
9925$target.attr('aria-hidden',false);
9926$targetItem.addClass('is-active');
9927jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
9928'aria-expanded':true,
9929'aria-selected':true
9930});
9931$target.slideDown(this.options.slideSpeed,function(){
9932_this3.$element.trigger('down.zf.accordion',[$target]);
9933});
9934}
9935},{
9936key:"_closeTab",
9937value:function _closeTab($target){
9938var _this4=this;
9939var $targetItem=$target.parent();
9940var targetContentId=$target.attr('aria-labelledby');
9941$target.attr('aria-hidden',true);
9942$targetItem.removeClass('is-active');
9943jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(targetContentId)).attr({
9944'aria-expanded':false,
9945'aria-selected':false
9946});
9947$target.slideUp(this.options.slideSpeed,function(){
9948_this4.$element.trigger('up.zf.accordion',[$target]);
9949});
9950}
9951},{
9952key:"_closeAllTabs",
9953value:function _closeAllTabs(){
9954var $activeTabs=this.$element.children('.is-active').children('[data-tab-content]');
9955if($activeTabs.length){
9956this._closeTab($activeTabs);
9957}
9958}
9959},{
9960key:"_destroy",
9961value:function _destroy(){
9962this.$element.find('[data-tab-content]').stop(true).slideUp(0).css('display','');
9963this.$element.find('a').off('.zf.accordion');
9964if(this.options.deepLink){
9965jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange',this._checkDeepLink);
9966}
9967}
9968}]);
9969return Accordion;
9970}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
9971Accordion.defaults={
9972slideSpeed:250,
9973multiExpand:false,
9974allowAllClosed:false,
9975deepLink:false,
9976deepLinkSmudge:false,
9977deepLinkSmudgeDelay:300,
9978updateHistory:false
9979};
9980}),
99811:
9982(function(module,exports,__webpack_require__){
9983module.exports=__webpack_require__("./js/entries/plugins/foundation.accordion.js");
9984}),
9985"jquery":
9986(function(module,exports){
9987module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
9988})
9989});
9990});
9991(function webpackUniversalModuleDefinition(root,factory){
9992if(typeof exports==='object'&&typeof module==='object')
9993module.exports=factory(require("./foundation.core"),require("./foundation.util.imageLoader"),require("./foundation.util.mediaQuery"),require("jquery"));
9994else if(typeof define==='function'&&define.amd)
9995define(["./foundation.core","./foundation.util.imageLoader","./foundation.util.mediaQuery","jquery"],factory);
9996else if(typeof exports==='object')
9997exports["foundation.equalizer"]=factory(require("./foundation.core"),require("./foundation.util.imageLoader"),require("./foundation.util.mediaQuery"),require("jquery"));
9998else
9999root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.equalizer"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.imageLoader"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"],root["jQuery"]);
10000})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__,__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__,__WEBPACK_EXTERNAL_MODULE_jquery__){
10001return(function(modules){
10002var installedModules={};
10003function __webpack_require__(moduleId){
10004if(installedModules[moduleId]){
10005return installedModules[moduleId].exports;
10006}
10007var module=installedModules[moduleId]={
10008i:moduleId,
10009l:false,
10010exports:{}
10011};
10012modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
10013module.l=true;
10014return module.exports;
10015}
10016__webpack_require__.m=modules;
10017__webpack_require__.c=installedModules;
10018__webpack_require__.d=function(exports,name,getter){
10019if(!__webpack_require__.o(exports,name)){
10020Object.defineProperty(exports,name,{enumerable:true,get:getter});
10021}
10022};
10023__webpack_require__.r=function(exports){
10024if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
10025Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
10026}
10027Object.defineProperty(exports,'__esModule',{value:true});
10028};
10029__webpack_require__.t=function(value,mode){
10030if(mode&1)value=__webpack_require__(value);
10031if(mode&8)return value;
vendor: 1,162 bytes, lines 10032-10062
10032if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
10033var ns=Object.create(null);
10034__webpack_require__.r(ns);
10035Object.defineProperty(ns,'default',{enumerable:true,value:value});
10036if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
10037return ns;
10038};
10039__webpack_require__.n=function(module){
10040var getter=module&&module.__esModule?
10041function getDefault(){return module['default'];}:
10042function getModuleExports(){return module;};
10043__webpack_require__.d(getter,'a',getter);
10044return getter;
10045};
10046__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
10047__webpack_require__.p="";
10048return __webpack_require__(__webpack_require__.s=6);
10049})
10050({
10051"./foundation.core":
10052(function(module,exports){
10053module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
10054}),
10055"./foundation.util.imageLoader":
10056(function(module,exports){
10057module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__;
10058}),
10059"./foundation.util.mediaQuery":
10060(function(module,exports){
10061module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
10062}),
10063"./js/entries/plugins/foundation.equalizer.js":
10064(function(module,__webpack_exports__,__webpack_require__){
10065"use strict";
10066__webpack_require__.r(__webpack_exports__);
10067var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
10068var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
10069__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
10070var _foundation_equalizer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.equalizer.js");
10071__webpack_require__.d(__webpack_exports__,"Equalizer",function(){return _foundation_equalizer__WEBPACK_IMPORTED_MODULE_1__["Equalizer"];});
10072_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_equalizer__WEBPACK_IMPORTED_MODULE_1__["Equalizer"],'Equalizer');
10073}),
10074"./js/foundation.equalizer.js":
10075(function(module,__webpack_exports__,__webpack_require__){
10076"use strict";
10077__webpack_require__.r(__webpack_exports__);
10078__webpack_require__.d(__webpack_exports__,"Equalizer",function(){return Equalizer;});
10079var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
10080var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
10081var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.util.mediaQuery");
10082var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__);
10083var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.imageLoader");
10084var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_2__);
10085var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./foundation.core");
10086var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__);
10087function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
10088function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
10089function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
10090function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
10091function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
10092function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
10093function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
10094function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
10095function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
10096var Equalizer=
10097function(_Plugin){
10098_inherits(Equalizer,_Plugin);
10099function Equalizer(){
10100_classCallCheck(this,Equalizer);
10101return _possibleConstructorReturn(this,_getPrototypeOf(Equalizer).apply(this,arguments));
10102}
10103_createClass(Equalizer,[{
10104key:"_setup",
10105value:function _setup(element,options){
10106this.$element=element;
10107this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Equalizer.defaults,this.$element.data(),options);
10108this.className='Equalizer';
10109this._init();
10110}
10111},{
10112key:"_init",
10113value:function _init(){
10114var eqId=this.$element.attr('data-equalizer')||'';
10115var $watched=this.$element.find("[data-equalizer-watch=\"".concat(eqId,"\"]"));
10116_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"]._init();
10117this.$watched=$watched.length?$watched:this.$element.find('[data-equalizer-watch]');
10118this.$element.attr('data-resize',eqId||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"])(6,'eq'));
10119this.$element.attr('data-mutate',eqId||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["GetYoDigits"])(6,'eq'));
10120this.hasNested=this.$element.find('[data-equalizer]').length>0;
10121this.isNested=this.$element.parentsUntil(document.body,'[data-equalizer]').length>0;
10122this.isOn=false;
10123this._bindHandler={
10124onResizeMeBound:this._onResizeMe.bind(this),
10125onPostEqualizedBound:this._onPostEqualized.bind(this)
10126};
10127var imgs=this.$element.find('img');
10128var tooSmall;
10129if(this.options.equalizeOn){
10130tooSmall=this._checkMQ();
10131jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',this._checkMQ.bind(this));
10132}else{
10133this._events();
10134}
10135if(typeof tooSmall!=='undefined'&&tooSmall===false||typeof tooSmall==='undefined'){
10136if(imgs.length){
10137Object(_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_2__["onImagesLoaded"])(imgs,this._reflow.bind(this));
10138}else{
10139this._reflow();
10140}
10141}
10142}
10143},{
10144key:"_pauseEvents",
10145value:function _pauseEvents(){
10146this.isOn=false;
10147this.$element.off({
vendor: 6,305 bytes, lines 10148-10354
10148'.zf.equalizer':this._bindHandler.onPostEqualizedBound,
10149'resizeme.zf.trigger':this._bindHandler.onResizeMeBound,
10150'mutateme.zf.trigger':this._bindHandler.onResizeMeBound
10151});
10152}
10153},{
10154key:"_onResizeMe",
10155value:function _onResizeMe(e){
10156this._reflow();
10157}
10158},{
10159key:"_onPostEqualized",
10160value:function _onPostEqualized(e){
10161if(e.target!==this.$element[0]){
10162this._reflow();
10163}
10164}
10165},{
10166key:"_events",
10167value:function _events(){
10168var _this=this;
10169this._pauseEvents();
10170if(this.hasNested){
10171this.$element.on('postequalized.zf.equalizer',this._bindHandler.onPostEqualizedBound);
10172}else{
10173this.$element.on('resizeme.zf.trigger',this._bindHandler.onResizeMeBound);
10174this.$element.on('mutateme.zf.trigger',this._bindHandler.onResizeMeBound);
10175}
10176this.isOn=true;
10177}
10178},{
10179key:"_checkMQ",
10180value:function _checkMQ(){
10181var tooSmall=!_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_1__["MediaQuery"].is(this.options.equalizeOn);
10182if(tooSmall){
10183if(this.isOn){
10184this._pauseEvents();
10185this.$watched.css('height','auto');
10186}
10187}else{
10188if(!this.isOn){
10189this._events();
10190}
10191}
10192return tooSmall;
10193}
10194},{
10195key:"_killswitch",
10196value:function _killswitch(){
10197return;
10198}
10199},{
10200key:"_reflow",
10201value:function _reflow(){
10202if(!this.options.equalizeOnStack){
10203if(this._isStacked()){
10204this.$watched.css('height','auto');
10205return false;
10206}
10207}
10208if(this.options.equalizeByRow){
10209this.getHeightsByRow(this.applyHeightByRow.bind(this));
10210}else{
10211this.getHeights(this.applyHeight.bind(this));
10212}
10213}
10214},{
10215key:"_isStacked",
10216value:function _isStacked(){
10217if(!this.$watched[0]||!this.$watched[1]){
10218return true;
10219}
10220return this.$watched[0].getBoundingClientRect().top!==this.$watched[1].getBoundingClientRect().top;
10221}
10222},{
10223key:"getHeights",
10224value:function getHeights(cb){
10225var heights=[];
10226for(var i=0,len=this.$watched.length;i<len;i++){
10227this.$watched[i].style.height='auto';
10228heights.push(this.$watched[i].offsetHeight);
10229}
10230cb(heights);
10231}
10232},{
10233key:"getHeightsByRow",
10234value:function getHeightsByRow(cb){
10235var lastElTopOffset=this.$watched.length?this.$watched.first().offset().top:0,
10236groups=[],
10237group=0;
10238groups[group]=[];
10239for(var i=0,len=this.$watched.length;i<len;i++){
10240this.$watched[i].style.height='auto';
10241var elOffsetTop=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$watched[i]).offset().top;
10242if(elOffsetTop!=lastElTopOffset){
10243group++;
10244groups[group]=[];
10245lastElTopOffset=elOffsetTop;
10246}
10247groups[group].push([this.$watched[i],this.$watched[i].offsetHeight]);
10248}
10249for(var j=0,ln=groups.length;j<ln;j++){
10250var heights=jquery__WEBPACK_IMPORTED_MODULE_0___default()(groups[j]).map(function(){
10251return this[1];
10252}).get();
10253var max=Math.max.apply(null,heights);
10254groups[j].push(max);
10255}
10256cb(groups);
10257}
10258},{
10259key:"applyHeight",
10260value:function applyHeight(heights){
10261var max=Math.max.apply(null,heights);
10262this.$element.trigger('preequalized.zf.equalizer');
10263this.$watched.css('height',max);
10264this.$element.trigger('postequalized.zf.equalizer');
10265}
10266},{
10267key:"applyHeightByRow",
10268value:function applyHeightByRow(groups){
10269this.$element.trigger('preequalized.zf.equalizer');
10270for(var i=0,len=groups.length;i<len;i++){
10271var groupsILength=groups[i].length,
10272max=groups[i][groupsILength-1];
10273if(groupsILength<=2){
10274jquery__WEBPACK_IMPORTED_MODULE_0___default()(groups[i][0][0]).css({
10275'height':'auto'
10276});
10277continue;
10278}
10279this.$element.trigger('preequalizedrow.zf.equalizer');
10280for(var j=0,lenJ=groupsILength-1;j<lenJ;j++){
10281jquery__WEBPACK_IMPORTED_MODULE_0___default()(groups[i][j][0]).css({
10282'height':max
10283});
10284}
10285this.$element.trigger('postequalizedrow.zf.equalizer');
10286}
10287this.$element.trigger('postequalized.zf.equalizer');
10288}
10289},{
10290key:"_destroy",
10291value:function _destroy(){
10292this._pauseEvents();
10293this.$watched.css('height','auto');
10294}
10295}]);
10296return Equalizer;
10297}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_3__["Plugin"]);
10298Equalizer.defaults={
10299equalizeOnStack:false,
10300equalizeByRow:false,
10301equalizeOn:''
10302};
10303}),
103046:
10305(function(module,exports,__webpack_require__){
10306module.exports=__webpack_require__("./js/entries/plugins/foundation.equalizer.js");
10307}),
10308"jquery":
10309(function(module,exports){
10310module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
10311})
10312});
10313});
10314(function webpackUniversalModuleDefinition(root,factory){
10315if(typeof exports==='object'&&typeof module==='object')
10316module.exports=factory(require("./foundation.core"),require("./foundation.util.keyboard"),require("./foundation.util.mediaQuery"),require("./foundation.util.motion"),require("jquery"));
10317else if(typeof define==='function'&&define.amd)
10318define(["./foundation.core","./foundation.util.keyboard","./foundation.util.mediaQuery","./foundation.util.motion","jquery"],factory);
10319else if(typeof exports==='object')
10320exports["foundation.offcanvas"]=factory(require("./foundation.core"),require("./foundation.util.keyboard"),require("./foundation.util.mediaQuery"),require("./foundation.util.motion"),require("jquery"));
10321else
10322root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.offcanvas"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"],root["jQuery"]);
10323})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__,__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__,__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__,__WEBPACK_EXTERNAL_MODULE_jquery__){
10324return(function(modules){
10325var installedModules={};
10326function __webpack_require__(moduleId){
10327if(installedModules[moduleId]){
10328return installedModules[moduleId].exports;
10329}
10330var module=installedModules[moduleId]={
10331i:moduleId,
10332l:false,
10333exports:{}
10334};
10335modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
10336module.l=true;
10337return module.exports;
10338}
10339__webpack_require__.m=modules;
10340__webpack_require__.c=installedModules;
10341__webpack_require__.d=function(exports,name,getter){
10342if(!__webpack_require__.o(exports,name)){
10343Object.defineProperty(exports,name,{enumerable:true,get:getter});
10344}
10345};
10346__webpack_require__.r=function(exports){
10347if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
10348Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
10349}
10350Object.defineProperty(exports,'__esModule',{value:true});
10351};
10352__webpack_require__.t=function(value,mode){
10353if(mode&1)value=__webpack_require__(value);
10354if(mode&8)return value;
vendor: 1,283 bytes, lines 10355-10389
10355if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
10356var ns=Object.create(null);
10357__webpack_require__.r(ns);
10358Object.defineProperty(ns,'default',{enumerable:true,value:value});
10359if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
10360return ns;
10361};
10362__webpack_require__.n=function(module){
10363var getter=module&&module.__esModule?
10364function getDefault(){return module['default'];}:
10365function getModuleExports(){return module;};
10366__webpack_require__.d(getter,'a',getter);
10367return getter;
10368};
10369__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
10370__webpack_require__.p="";
10371return __webpack_require__(__webpack_require__.s=9);
10372})
10373({
10374"./foundation.core":
10375(function(module,exports){
10376module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
10377}),
10378"./foundation.util.keyboard":
10379(function(module,exports){
10380module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
10381}),
10382"./foundation.util.mediaQuery":
10383(function(module,exports){
10384module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
10385}),
10386"./foundation.util.motion":
10387(function(module,exports){
10388module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
10389}),
10390"./js/entries/plugins/foundation.offcanvas.js":
10391(function(module,__webpack_exports__,__webpack_require__){
10392"use strict";
10393__webpack_require__.r(__webpack_exports__);
10394var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
10395var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
10396__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
10397var _foundation_offcanvas__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.offcanvas.js");
10398__webpack_require__.d(__webpack_exports__,"OffCanvas",function(){return _foundation_offcanvas__WEBPACK_IMPORTED_MODULE_1__["OffCanvas"];});
10399_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_offcanvas__WEBPACK_IMPORTED_MODULE_1__["OffCanvas"],'OffCanvas');
10400}),
10401"./js/foundation.offcanvas.js":
10402(function(module,__webpack_exports__,__webpack_require__){
10403"use strict";
10404__webpack_require__.r(__webpack_exports__);
10405__webpack_require__.d(__webpack_exports__,"OffCanvas",function(){return OffCanvas;});
10406var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
10407var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
10408var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
10409var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
10410var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.keyboard");
10411var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
10412var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./foundation.util.mediaQuery");
10413var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__);
10414var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.util.triggers.js");
10415function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
10416function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
10417function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
10418function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
10419function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
10420function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
10421function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
10422function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
10423function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
10424var OffCanvas=
10425function(_Plugin){
10426_inherits(OffCanvas,_Plugin);
10427function OffCanvas(){
10428_classCallCheck(this,OffCanvas);
10429return _possibleConstructorReturn(this,_getPrototypeOf(OffCanvas).apply(this,arguments));
10430}
10431_createClass(OffCanvas,[{
10432key:"_setup",
10433value:function _setup(element,options){
10434var _this2=this;
10435this.className='OffCanvas';
10436this.$element=element;
10437this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},OffCanvas.defaults,this.$element.data(),options);
10438this.contentClasses={
10439base:[],
10440reveal:[]
10441};
10442this.$lastTrigger=jquery__WEBPACK_IMPORTED_MODULE_0___default()();
10443this.$triggers=jquery__WEBPACK_IMPORTED_MODULE_0___default()();
10444this.position='left';
10445this.$content=jquery__WEBPACK_IMPORTED_MODULE_0___default()();
10446this.nested=!!this.options.nested;
10447jquery__WEBPACK_IMPORTED_MODULE_0___default()(['push','overlap']).each(function(index,val){
10448_this2.contentClasses.base.push('has-transition-'+val);
10449});
10450jquery__WEBPACK_IMPORTED_MODULE_0___default()(['left','right','top','bottom']).each(function(index,val){
10451_this2.contentClasses.base.push('has-position-'+val);
10452_this2.contentClasses.reveal.push('has-reveal-'+val);
10453});
10454_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_4__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
10455_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"]._init();
10456this._init();
10457this._events();
10458_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('OffCanvas',{
10459'ESCAPE':'close'
10460});
10461}
10462},{
10463key:"_init",
10464value:function _init(){
10465var id=this.$element.attr('id');
10466this.$element.attr('aria-hidden','true');
10467if(this.options.contentId){
10468this.$content=jquery__WEBPACK_IMPORTED_MODULE_0___default()('#'+this.options.contentId);
10469}else if(this.$element.siblings('[data-off-canvas-content]').length){
10470this.$content=this.$element.siblings('[data-off-canvas-content]').first();
10471}else{
10472this.$content=this.$element.closest('[data-off-canvas-content]').first();
10473}
10474if(!this.options.contentId){
10475this.nested=this.$element.siblings('[data-off-canvas-content]').length===0;
10476}else if(this.options.contentId&&this.options.nested===null){
10477console.warn('Remember to use the nested option if using the content ID option!');
10478}
10479if(this.nested===true){
10480this.options.transition='overlap';
10481this.$element.removeClass('is-transition-push');
10482}
10483this.$element.addClass("is-transition-".concat(this.options.transition," is-closed"));
10484this.$triggers=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).find('[data-open="'+id+'"], [data-close="'+id+'"], [data-toggle="'+id+'"]').attr('aria-expanded','false').attr('aria-controls',id);
10485this.position=this.$element.is('.position-left, .position-top, .position-right, .position-bottom')?this.$element.attr('class').match(/position\-(left|top|right|bottom)/)[1]:this.position;
10486if(this.options.contentOverlay===true){
10487var overlay=document.createElement('div');
10488var overlayPosition=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$element).css("position")==='fixed'?'is-overlay-fixed':'is-overlay-absolute';
10489overlay.setAttribute('class','js-off-canvas-overlay '+overlayPosition);
10490this.$overlay=jquery__WEBPACK_IMPORTED_MODULE_0___default()(overlay);
10491if(overlayPosition==='is-overlay-fixed'){
10492jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.$overlay).insertAfter(this.$element);
10493}else{
10494this.$content.append(this.$overlay);
10495}
10496}
10497var revealOnRegExp=new RegExp(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["RegExpEscape"])(this.options.revealClass)+'([^\\s]+)','g');
10498var revealOnClass=revealOnRegExp.exec(this.$element[0].className);
10499if(revealOnClass){
10500this.options.isRevealed=true;
10501this.options.revealOn=this.options.revealOn||revealOnClass[1];
10502}
10503if(this.options.isRevealed===true&&this.options.revealOn){
10504this.$element.first().addClass("".concat(this.options.revealClass).concat(this.options.revealOn));
10505this._setMQChecker();
10506}
10507if(this.options.transitionTime){
10508this.$element.css('transition-duration',this.options.transitionTime);
10509}
10510this._removeContentClasses();
10511}
10512},{
10513key:"_events",
10514value:function _events(){
10515this.$element.off('.zf.trigger .zf.offcanvas').on({
10516'open.zf.trigger':this.open.bind(this),
10517'close.zf.trigger':this.close.bind(this),
10518'toggle.zf.trigger':this.toggle.bind(this),
10519'keydown.zf.offcanvas':this._handleKeyboard.bind(this)
10520});
10521if(this.options.closeOnClick===true){
10522var $target=this.options.contentOverlay?this.$overlay:this.$content;
10523$target.on({
10524'click.zf.offcanvas':this.close.bind(this)
10525});
10526}
10527}
10528},{
10529key:"_setMQChecker",
10530value:function _setMQChecker(){
10531var _this=this;
10532this.onLoadListener=Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){
10533if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"].atLeast(_this.options.revealOn)){
10534_this.reveal(true);
10535}
10536});
10537jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',function(){
10538if(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_3__["MediaQuery"].atLeast(_this.options.revealOn)){
10539_this.reveal(true);
10540}else{
10541_this.reveal(false);
10542}
10543});
10544}
10545},{
10546key:"_removeContentClasses",
10547value:function _removeContentClasses(hasReveal){
10548if(typeof hasReveal!=='boolean'){
10549this.$content.removeClass(this.contentClasses.base.join(' '));
10550}else if(hasReveal===false){
10551this.$content.removeClass("has-reveal-".concat(this.position));
10552}
10553}
10554},{
10555key:"_addContentClasses",
10556value:function _addContentClasses(hasReveal){
10557this._removeContentClasses(hasReveal);
10558if(typeof hasReveal!=='boolean'){
10559this.$content.addClass("has-transition-".concat(this.options.transition," has-position-").concat(this.position));
10560}else if(hasReveal===true){
10561this.$content.addClass("has-reveal-".concat(this.position));
10562}
10563}
10564},{
10565key:"reveal",
10566value:function reveal(isRevealed){
10567if(isRevealed){
10568this.close();
10569this.isRevealed=true;
10570this.$element.attr('aria-hidden','false');
10571this.$element.off('open.zf.trigger toggle.zf.trigger');
10572this.$element.removeClass('is-closed');
10573}else{
10574this.isRevealed=false;
10575this.$element.attr('aria-hidden','true');
10576this.$element.off('open.zf.trigger toggle.zf.trigger').on({
10577'open.zf.trigger':this.open.bind(this),
10578'toggle.zf.trigger':this.toggle.bind(this)
10579});
10580this.$element.addClass('is-closed');
10581}
10582this._addContentClasses(isRevealed);
10583}
10584},{
10585key:"_stopScrolling",
10586value:function _stopScrolling(event){
10587return false;
10588}
10589},{
10590key:"_recordScrollable",
10591value:function _recordScrollable(event){
10592var elem=this;
10593if(elem.scrollHeight!==elem.clientHeight){
10594if(elem.scrollTop===0){
10595elem.scrollTop=1;
10596}
10597if(elem.scrollTop===elem.scrollHeight-elem.clientHeight){
10598elem.scrollTop=elem.scrollHeight-elem.clientHeight-1;
10599}
10600}
10601elem.allowUp=elem.scrollTop>0;
10602elem.allowDown=elem.scrollTop<elem.scrollHeight-elem.clientHeight;
10603elem.lastY=event.originalEvent.pageY;
10604}
10605},{
10606key:"_stopScrollPropagation",
10607value:function _stopScrollPropagation(event){
10608var elem=this;
10609var up=event.pageY<elem.lastY;
10610var down=!up;
10611elem.lastY=event.pageY;
10612if(up&&elem.allowUp||down&&elem.allowDown){
10613event.stopPropagation();
10614}else{
10615event.preventDefault();
10616}
10617}
10618},{
10619key:"open",
10620value:function open(event,trigger){
10621if(this.$element.hasClass('is-open')||this.isRevealed){
10622return;
10623}
10624var _this=this;
10625if(trigger){
10626this.$lastTrigger=trigger;
10627}
10628if(this.options.forceTo==='top'){
10629window.scrollTo(0,0);
10630}else if(this.options.forceTo==='bottom'){
10631window.scrollTo(0,document.body.scrollHeight);
10632}
10633if(this.options.transitionTime&&this.options.transition!=='overlap'){
10634this.$element.siblings('[data-off-canvas-content]').css('transition-duration',this.options.transitionTime);
10635}else{
10636this.$element.siblings('[data-off-canvas-content]').css('transition-duration','');
10637}
10638this.$element.addClass('is-open').removeClass('is-closed');
10639this.$triggers.attr('aria-expanded','true');
10640this.$element.attr('aria-hidden','false');
10641this.$content.addClass('is-open-'+this.position);
10642if(this.options.contentScroll===false){
10643jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').addClass('is-off-canvas-open').on('touchmove',this._stopScrolling);
10644this.$element.on('touchstart',this._recordScrollable);
10645this.$element.on('touchmove',this._stopScrollPropagation);
10646}
10647if(this.options.contentOverlay===true){
10648this.$overlay.addClass('is-visible');
10649}
10650if(this.options.closeOnClick===true&&this.options.contentOverlay===true){
10651this.$overlay.addClass('is-closable');
10652}
10653if(this.options.autoFocus===true){
10654this.$element.one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["transitionend"])(this.$element),function(){
10655if(!_this.$element.hasClass('is-open')){
10656return;
10657}
10658var canvasFocus=_this.$element.find('[data-autofocus]');
10659if(canvasFocus.length){
10660canvasFocus.eq(0).focus();
10661}else{
10662_this.$element.find('a, button').eq(0).focus();
10663}
10664});
10665}
10666if(this.options.trapFocus===true){
10667this.$content.attr('tabindex','-1');
10668_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].trapFocus(this.$element);
10669}
10670this._addContentClasses();
10671this.$element.trigger('opened.zf.offcanvas');
10672}
10673},{
10674key:"close",
10675value:function close(cb){
10676if(!this.$element.hasClass('is-open')||this.isRevealed){
10677return;
10678}
10679var _this=this;
10680this.$element.removeClass('is-open');
10681this.$element.attr('aria-hidden','true')
10682.trigger('closed.zf.offcanvas');
10683this.$content.removeClass('is-open-left is-open-top is-open-right is-open-bottom');
10684if(this.options.contentScroll===false){
10685jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').removeClass('is-off-canvas-open').off('touchmove',this._stopScrolling);
10686this.$element.off('touchstart',this._recordScrollable);
10687this.$element.off('touchmove',this._stopScrollPropagation);
10688}
10689if(this.options.contentOverlay===true){
10690this.$overlay.removeClass('is-visible');
10691}
10692if(this.options.closeOnClick===true&&this.options.contentOverlay===true){
10693this.$overlay.removeClass('is-closable');
10694}
10695this.$triggers.attr('aria-expanded','false');
10696if(this.options.trapFocus===true){
10697this.$content.removeAttr('tabindex');
10698_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].releaseFocus(this.$element);
10699}
10700this.$element.one(Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["transitionend"])(this.$element),function(e){
10701_this.$element.addClass('is-closed');
10702_this._removeContentClasses();
10703});
10704}
10705},{
10706key:"toggle",
10707value:function toggle(event,trigger){
10708if(this.$element.hasClass('is-open')){
10709this.close(event,trigger);
10710}else{
10711this.open(event,trigger);
10712}
10713}
10714},{
10715key:"_handleKeyboard",
10716value:function _handleKeyboard(e){
10717var _this3=this;
10718_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].handleKey(e,'OffCanvas',{
10719close:function close(){
10720_this3.close();
10721_this3.$lastTrigger.focus();
10722return true;
10723},
10724handled:function handled(){
10725e.stopPropagation();
10726e.preventDefault();
10727}
10728});
10729}
10730},{
10731key:"_destroy",
10732value:function _destroy(){
10733this.close();
10734this.$element.off('.zf.trigger .zf.offcanvas');
10735this.$overlay.off('.zf.offcanvas');
10736if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
10737}
10738}]);
10739return OffCanvas;
10740}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
10741OffCanvas.defaults={
10742closeOnClick:true,
10743contentOverlay:true,
10744contentId:null,
10745nested:null,
10746contentScroll:true,
10747transitionTime:null,
10748transition:'push',
10749forceTo:null,
10750isRevealed:false,
10751revealOn:null,
10752autoFocus:true,
10753revealClass:'reveal-for-',
10754trapFocus:false
10755};
10756}),
vendor: 8,276 bytes, lines 10757-10952
10757"./js/foundation.util.triggers.js":
10758(function(module,__webpack_exports__,__webpack_require__){
10759"use strict";
10760__webpack_require__.r(__webpack_exports__);
10761__webpack_require__.d(__webpack_exports__,"Triggers",function(){return Triggers;});
10762var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
10763var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
10764var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
10765var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
10766var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.motion");
10767var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
10768function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
10769var MutationObserver=function(){
10770var prefixes=['WebKit','Moz','O','Ms',''];
10771for(var i=0;i<prefixes.length;i++){
10772if("".concat(prefixes[i],"MutationObserver")in window){
10773return window["".concat(prefixes[i],"MutationObserver")];
10774}
10775}
10776return false;
10777}();
10778var triggers=function triggers(el,type){
10779el.data(type).split(' ').forEach(function(id){
10780jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type==='close'?'trigger':'triggerHandler']("".concat(type,".zf.trigger"),[el]);
10781});
10782};
10783var Triggers={
10784Listeners:{
10785Basic:{},
10786Global:{}
10787},
10788Initializers:{}
10789};
10790Triggers.Listeners.Basic={
10791openListener:function openListener(){
10792triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'open');
10793},
10794closeListener:function closeListener(){
10795var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
10796if(id){
10797triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'close');
10798}else{
10799jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
10800}
10801},
10802toggleListener:function toggleListener(){
10803var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
10804if(id){
10805triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'toggle');
10806}else{
10807jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
10808}
10809},
10810closeableListener:function closeableListener(e){
10811e.stopPropagation();
10812var animation=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
10813if(animation!==''){
10814_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),animation,function(){
10815jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
10816});
10817}else{
10818jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
10819}
10820},
10821toggleFocusListener:function toggleFocusListener(){
10822var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
10823jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger',[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
10824}
10825};
10826Triggers.Initializers.addOpenListener=function($elem){
10827$elem.off('click.zf.trigger',Triggers.Listeners.Basic.openListener);
10828$elem.on('click.zf.trigger','[data-open]',Triggers.Listeners.Basic.openListener);
10829};
10830Triggers.Initializers.addCloseListener=function($elem){
10831$elem.off('click.zf.trigger',Triggers.Listeners.Basic.closeListener);
10832$elem.on('click.zf.trigger','[data-close]',Triggers.Listeners.Basic.closeListener);
10833};
10834Triggers.Initializers.addToggleListener=function($elem){
10835$elem.off('click.zf.trigger',Triggers.Listeners.Basic.toggleListener);
10836$elem.on('click.zf.trigger','[data-toggle]',Triggers.Listeners.Basic.toggleListener);
10837};
10838Triggers.Initializers.addCloseableListener=function($elem){
10839$elem.off('close.zf.trigger',Triggers.Listeners.Basic.closeableListener);
10840$elem.on('close.zf.trigger','[data-closeable], [data-closable]',Triggers.Listeners.Basic.closeableListener);
10841};
10842Triggers.Initializers.addToggleFocusListener=function($elem){
10843$elem.off('focus.zf.trigger blur.zf.trigger',Triggers.Listeners.Basic.toggleFocusListener);
10844$elem.on('focus.zf.trigger blur.zf.trigger','[data-toggle-focus]',Triggers.Listeners.Basic.toggleFocusListener);
10845};
10846Triggers.Listeners.Global={
10847resizeListener:function resizeListener($nodes){
10848if(!MutationObserver){
10849$nodes.each(function(){
10850jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
10851});
10852}
10853$nodes.attr('data-events',"resize");
10854},
10855scrollListener:function scrollListener($nodes){
10856if(!MutationObserver){
10857$nodes.each(function(){
10858jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
10859});
10860}
10861$nodes.attr('data-events',"scroll");
10862},
10863closeMeListener:function closeMeListener(e,pluginId){
10864var plugin=e.namespace.split('.')[0];
10865var plugins=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin,"]")).not("[data-yeti-box=\"".concat(pluginId,"\"]"));
10866plugins.each(function(){
10867var _this=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
10868_this.triggerHandler('close.zf.trigger',[_this]);
10869});
10870}
10871};
10872Triggers.Initializers.addClosemeListener=function(pluginName){
10873var yetiBoxes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
10874plugNames=['dropdown','tooltip','reveal'];
10875if(pluginName){
10876if(typeof pluginName==='string'){
10877plugNames.push(pluginName);
10878}else if(_typeof(pluginName)==='object'&&typeof pluginName[0]==='string'){
10879plugNames=plugNames.concat(pluginName);
10880}else{
10881console.error('Plugin names must be strings');
10882}
10883}
10884if(yetiBoxes.length){
10885var listeners=plugNames.map(function(name){
10886return"closeme.zf.".concat(name);
10887}).join(' ');
10888jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners,Triggers.Listeners.Global.closeMeListener);
10889}
10890};
10891function debounceGlobalListener(debounce,trigger,listener){
10892var timer,
10893args=Array.prototype.slice.call(arguments,3);
10894jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger,function(e){
10895if(timer){
10896clearTimeout(timer);
10897}
10898timer=setTimeout(function(){
10899listener.apply(null,args);
10900},debounce||10);
10901});
10902}
10903Triggers.Initializers.addResizeListener=function(debounce){
10904var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
10905if($nodes.length){
10906debounceGlobalListener(debounce,'resize.zf.trigger',Triggers.Listeners.Global.resizeListener,$nodes);
10907}
10908};
10909Triggers.Initializers.addScrollListener=function(debounce){
10910var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
10911if($nodes.length){
10912debounceGlobalListener(debounce,'scroll.zf.trigger',Triggers.Listeners.Global.scrollListener,$nodes);
10913}
10914};
10915Triggers.Initializers.addMutationEventsListener=function($elem){
10916if(!MutationObserver){
10917return false;
10918}
10919var $nodes=$elem.find('[data-resize], [data-scroll], [data-mutate]');
10920var listeningElementsMutation=function listeningElementsMutation(mutationRecordsList){
10921var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
10922switch(mutationRecordsList[0].type){
10923case"attributes":
10924if($target.attr("data-events")==="scroll"&&mutationRecordsList[0].attributeName==="data-events"){
10925$target.triggerHandler('scrollme.zf.trigger',[$target,window.pageYOffset]);
10926}
10927if($target.attr("data-events")==="resize"&&mutationRecordsList[0].attributeName==="data-events"){
10928$target.triggerHandler('resizeme.zf.trigger',[$target]);
10929}
10930if(mutationRecordsList[0].attributeName==="style"){
10931$target.closest("[data-mutate]").attr("data-events","mutate");
10932$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
10933}
10934break;
10935case"childList":
10936$target.closest("[data-mutate]").attr("data-events","mutate");
10937$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
10938break;
10939default:
10940return false;
10941}
10942};
10943if($nodes.length){
10944for(var i=0;i<=$nodes.length-1;i++){
10945var elementObserver=new MutationObserver(listeningElementsMutation);
10946elementObserver.observe($nodes[i],{
10947attributes:true,
10948childList:true,
10949characterData:false,
10950subtree:true,
10951attributeFilter:["data-events","style"]
10952}
10952);
10953}
10954}
10955};
10956Triggers.Initializers.addSimpleListeners=function(){
10957var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
10958Triggers.Initializers.addOpenListener($document);
10959Triggers.Initializers.addCloseListener($document);
10960Triggers.Initializers.addToggleListener($document);
10961Triggers.Initializers.addCloseableListener($document);
10962Triggers.Initializers.addToggleFocusListener($document);
10963};
10964Triggers.Initializers.addGlobalListeners=function(){
10965var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
10966Triggers.Initializers.addMutationEventsListener($document);
10967Triggers.Initializers.addResizeListener();
10968Triggers.Initializers.addScrollListener();
10969Triggers.Initializers.addClosemeListener();
10970};
10971Triggers.init=function($,Foundation){
10972Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window),function(){
10973if($.triggersInitialized!==true){
10974Triggers.Initializers.addSimpleListeners();
10975Triggers.Initializers.addGlobalListeners();
10976$.triggersInitialized=true;
10977}
10978});
10979if(Foundation){
10980Foundation.Triggers=Triggers;
10981Foundation.IHearYou=Triggers.Initializers.addGlobalListeners;
10982}
10983};
10984}),
109859:
10986(function(module,exports,__webpack_require__){
10987module.exports=__webpack_require__("./js/entries/plugins/foundation.offcanvas.js");
10988}),
10989"jquery":
10990(function(module,exports){
10991module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
10992})
10993});
10994});
10995(function webpackUniversalModuleDefinition(root,factory){
10996if(typeof exports==='object'&&typeof module==='object')
10997module.exports=factory(require("./foundation.core"),require("./foundation.util.mediaQuery"),require("./foundation.util.motion"),require("jquery"));
10998else if(typeof define==='function'&&define.amd)
10999define(["./foundation.core","./foundation.util.mediaQuery","./foundation.util.motion","jquery"],factory);
11000else if(typeof exports==='object')
11001exports["foundation.sticky"]=factory(require("./foundation.core"),require("./foundation.util.mediaQuery"),require("./foundation.util.motion"),require("jquery"));
11002else
11003root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.sticky"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"],root["jQuery"]);
11004})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__,__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__,__WEBPACK_EXTERNAL_MODULE_jquery__){
11005return(function(modules){
11006var installedModules={};
11007function __webpack_require__(moduleId){
11008if(installedModules[moduleId]){
11009return installedModules[moduleId].exports;
11010}
11011var module=installedModules[moduleId]={
11012i:moduleId,
11013l:false,
11014exports:{}
11015};
11016modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
11017module.l=true;
11018return module.exports;
11019}
11020__webpack_require__.m=modules;
11021__webpack_require__.c=installedModules;
11022__webpack_require__.d=function(exports,name,getter){
11023if(!__webpack_require__.o(exports,name)){
11024Object.defineProperty(exports,name,{enumerable:true,get:getter});
11025}
11026};
11027__webpack_require__.r=function(exports){
11028if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
11029Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
11030}
11031Object.defineProperty(exports,'__esModule',{value:true});
11032};
11033__webpack_require__.t=function(value,mode){
11034if(mode&1)value=__webpack_require__(value);
11035if(mode&8)return value;
11036if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
11037var ns=Object.create(null);
11038__webpack_require__.r(ns);
11039Object.defineProperty(ns,'default',{enumerable:true,value:value});
11040if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
11041return ns;
11042};
11043__webpack_require__.n=function(module){
11044var getter=module&&module.__esModule?
11045function getDefault(){return module['default'];}:
11046function getModuleExports(){return module;};
11047__webpack_require__.d(getter,'a',getter);
11048return getter;
11049};
11050__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
11051__webpack_require__.p="";
11052return __webpack_require__(__webpack_require__.s=17);
11053})
11054({
11055"./foundation.core":
11056(function(module,exports){
11057module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
11058}),
11059"./foundation.util.mediaQuery":
11060(function(module,exports){
11061module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
11062}),
11063"./foundation.util.motion":
11064(function(module,exports){
11065module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
11066}),
11067"./js/entries/plugins/foundation.sticky.js":
11068(function(module,__webpack_exports__,__webpack_require__){
11069"use strict";
11070__webpack_require__.r(__webpack_exports__);
11071var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
11072var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
11073__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
11074var _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.sticky.js");
11075__webpack_require__.d(__webpack_exports__,"Sticky",function(){return _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__["Sticky"];});
11076_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_sticky__WEBPACK_IMPORTED_MODULE_1__["Sticky"],'Sticky');
11077}),
11078"./js/foundation.sticky.js":
11079(function(module,__webpack_exports__,__webpack_require__){
11080"use strict";
11081__webpack_require__.r(__webpack_exports__);
11082__webpack_require__.d(__webpack_exports__,"Sticky",function(){return Sticky;});
11083var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
11084var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
11085var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
11086var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
11087var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.mediaQuery");
11088var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__);
11089var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.triggers.js");
11090function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
11091function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
11092function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
11093function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
11094function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
11095function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
11096function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
11097function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
11098function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
11099var Sticky=
11100function(_Plugin){
11101_inherits(Sticky,_Plugin);
11102function Sticky(){
11103_classCallCheck(this,Sticky);
11104return _possibleConstructorReturn(this,_getPrototypeOf(Sticky).apply(this,arguments));
11105}
11106_createClass(Sticky,[{
11107key:"_setup",
11108value:function _setup(element,options){
11109this.$element=element;
11110this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Sticky.defaults,this.$element.data(),options);
11111this.className='Sticky';
11112_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
11113this._init();
11114}
11115},{
11116key:"_init",
11117value:function _init(){
11118_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"]._init();
11119var $parent=this.$element.parent('[data-sticky-container]'),
11120id=this.$element[0].id||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,'sticky'),
11121_this=this;
11122if($parent.length){
11123this.$container=$parent;
11124}else{
11125this.wasWrapped=true;
11126this.$element.wrap(this.options.container);
11127this.$container=this.$element.parent();
11128}
11129this.$container.addClass(this.options.containerClass);
11130this.$element.addClass(this.options.stickyClass).attr({
11131'data-resize':id,
11132'data-mutate':id
11133});
11134if(this.options.anchor!==''){
11135jquery__WEBPACK_IMPORTED_MODULE_0___default()('#'+_this.options.anchor).attr({
11136'data-mutate':id
11137});
11138}
11139this.scrollCount=this.options.checkEvery;
11140this.isStuck=false;
11141this.onLoadListener=Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){
11142_this.containerHeight=_this.$element.css("display")=="none"?0:_this.$element[0].getBoundingClientRect().height;
11143_this.$container.css('height',_this.containerHeight);
11144_this.elemHeight=_this.containerHeight;
11145if(_this.options.anchor!==''){
11146_this.$anchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()('#'+_this.options.anchor);
11147}else{
11148_this._parsePoints();
11149}
11150_this._setSizes(function(){
11151var scroll=window.pageYOffset;
11152_this._calc(false,scroll);
11153if(!_this.isStuck){
11154_this._removeSticky(scroll>=_this.topPoint?false:true);
11155}
11156}
vendor: 14,994 bytes, lines 11156-11621
11156);
11157_this._events(id.split('-').reverse().join('-'));
11158});
11159}
11160},{
11161key:"_parsePoints",
11162value:function _parsePoints(){
11163var top=this.options.topAnchor==""?1:this.options.topAnchor,
11164btm=this.options.btmAnchor==""?document.documentElement.scrollHeight:this.options.btmAnchor,
11165pts=[top,btm],
11166breaks={};
11167for(var i=0,len=pts.length;i<len&&pts[i];i++){
11168var pt;
11169if(typeof pts[i]==='number'){
11170pt=pts[i];
11171}else{
11172var place=pts[i].split(':'),
11173anchor=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(place[0]));
11174pt=anchor.offset().top;
11175if(place[1]&&place[1].toLowerCase()==='bottom'){
11176pt+=anchor[0].getBoundingClientRect().height;
11177}
11178}
11179breaks[i]=pt;
11180}
11181this.points=breaks;
11182return;
11183}
11184},{
11185key:"_events",
11186value:function _events(id){
11187var _this=this,
11188scrollListener=this.scrollListener="scroll.zf.".concat(id);
11189if(this.isOn){
11190return;
11191}
11192if(this.canStick){
11193this.isOn=true;
11194jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener).on(scrollListener,function(e){
11195if(_this.scrollCount===0){
11196_this.scrollCount=_this.options.checkEvery;
11197_this._setSizes(function(){
11198_this._calc(false,window.pageYOffset);
11199});
11200}else{
11201_this.scrollCount--;
11202_this._calc(false,window.pageYOffset);
11203}
11204});
11205}
11206this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger',function(e,el){
11207_this._eventsHandler(id);
11208});
11209this.$element.on('mutateme.zf.trigger',function(e,el){
11210_this._eventsHandler(id);
11211});
11212if(this.$anchor){
11213this.$anchor.on('mutateme.zf.trigger',function(e,el){
11214_this._eventsHandler(id);
11215});
11216}
11217}
11218},{
11219key:"_eventsHandler",
11220value:function _eventsHandler(id){
11221var _this=this,
11222scrollListener=this.scrollListener="scroll.zf.".concat(id);
11223_this._setSizes(function(){
11224_this._calc(false);
11225if(_this.canStick){
11226if(!_this.isOn){
11227_this._events(id);
11228}
11229}else if(_this.isOn){
11230_this._pauseListeners(scrollListener);
11231}
11232});
11233}
11234},{
11235key:"_pauseListeners",
11236value:function _pauseListeners(scrollListener){
11237this.isOn=false;
11238jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener);
11239this.$element.trigger('pause.zf.sticky');
11240}
11241},{
11242key:"_calc",
11243value:function _calc(checkSizes,scroll){
11244if(checkSizes){
11245this._setSizes();
11246}
11247if(!this.canStick){
11248if(this.isStuck){
11249this._removeSticky(true);
11250}
11251return false;
11252}
11253if(!scroll){
11254scroll=window.pageYOffset;
11255}
11256if(scroll>=this.topPoint){
11257if(scroll<=this.bottomPoint){
11258if(!this.isStuck){
11259this._setSticky();
11260}
11261}else{
11262if(this.isStuck){
11263this._removeSticky(false);
11264}
11265}
11266}else{
11267if(this.isStuck){
11268this._removeSticky(true);
11269}
11270}
11271}
11272},{
11273key:"_setSticky",
11274value:function _setSticky(){
11275var _this=this,
11276stickTo=this.options.stickTo,
11277mrgn=stickTo==='top'?'marginTop':'marginBottom',
11278notStuckTo=stickTo==='top'?'bottom':'top',
11279css={};
11280css[mrgn]="".concat(this.options[mrgn],"em");
11281css[stickTo]=0;
11282css[notStuckTo]='auto';
11283this.isStuck=true;
11284this.$element.removeClass("is-anchored is-at-".concat(notStuckTo)).addClass("is-stuck is-at-".concat(stickTo)).css(css)
11285.trigger("sticky.zf.stuckto:".concat(stickTo));
11286this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){
11287_this._setSizes();
11288});
11289}
11290},{
11291key:"_removeSticky",
11292value:function _removeSticky(isTop){
11293var stickTo=this.options.stickTo,
11294stickToTop=stickTo==='top',
11295css={},
11296anchorPt=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight,
11297mrgn=stickToTop?'marginTop':'marginBottom',
11298notStuckTo=stickToTop?'bottom':'top',
11299topOrBottom=isTop?'top':'bottom';
11300css[mrgn]=0;
11301css['bottom']='auto';
11302if(isTop){
11303css['top']=0;
11304}else{
11305css['top']=anchorPt;
11306}
11307this.isStuck=false;
11308this.$element.removeClass("is-stuck is-at-".concat(stickTo)).addClass("is-anchored is-at-".concat(topOrBottom)).css(css)
11309.trigger("sticky.zf.unstuckfrom:".concat(topOrBottom));
11310}
11311},{
11312key:"_setSizes",
11313value:function _setSizes(cb){
11314this.canStick=_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"].is(this.options.stickyOn);
11315if(!this.canStick){
11316if(cb&&typeof cb==='function'){
11317cb();
11318}
11319}
11320var _this=this,
11321newElemWidth=this.$container[0].getBoundingClientRect().width,
11322comp=window.getComputedStyle(this.$container[0]),
11323pdngl=parseInt(comp['padding-left'],10),
11324pdngr=parseInt(comp['padding-right'],10);
11325if(this.$anchor&&this.$anchor.length){
11326this.anchorHeight=this.$anchor[0].getBoundingClientRect().height;
11327}else{
11328this._parsePoints();
11329}
11330this.$element.css({
11331'max-width':"".concat(newElemWidth-pdngl-pdngr,"px")
11332});
11333var newContainerHeight=this.$element[0].getBoundingClientRect().height||this.containerHeight;
11334if(this.$element.css("display")=="none"){
11335newContainerHeight=0;
11336}
11337this.containerHeight=newContainerHeight;
11338this.$container.css({
11339height:newContainerHeight
11340});
11341this.elemHeight=newContainerHeight;
11342if(!this.isStuck){
11343if(this.$element.hasClass('is-at-bottom')){
11344var anchorPt=(this.points?this.points[1]-this.$container.offset().top:this.anchorHeight)-this.elemHeight;
11345this.$element.css('top',anchorPt);
11346}
11347}
11348this._setBreakPoints(newContainerHeight,function(){
11349if(cb&&typeof cb==='function'){
11350cb();
11351}
11352});
11353}
11354},{
11355key:"_setBreakPoints",
11356value:function _setBreakPoints(elemHeight,cb){
11357if(!this.canStick){
11358if(cb&&typeof cb==='function'){
11359cb();
11360}else{
11361return false;
11362}
11363}
11364var mTop=emCalc(this.options.marginTop),
11365mBtm=emCalc(this.options.marginBottom),
11366topPoint=this.points?this.points[0]:this.$anchor.offset().top,
11367bottomPoint=this.points?this.points[1]:topPoint+this.anchorHeight,
11368winHeight=window.innerHeight;
11369if(this.options.stickTo==='top'){
11370topPoint-=mTop;
11371bottomPoint-=elemHeight+mTop;
11372}else if(this.options.stickTo==='bottom'){
11373topPoint-=winHeight-(elemHeight+mBtm);
11374bottomPoint-=winHeight-mBtm;
11375}else{
11376}
11377this.topPoint=topPoint;
11378this.bottomPoint=bottomPoint;
11379if(cb&&typeof cb==='function'){
11380cb();
11381}
11382}
11383},{
11384key:"_destroy",
11385value:function _destroy(){
11386this._removeSticky(true);
11387this.$element.removeClass("".concat(this.options.stickyClass," is-anchored is-at-top")).css({
11388height:'',
11389top:'',
11390bottom:'',
11391'max-width':''
11392}).off('resizeme.zf.trigger').off('mutateme.zf.trigger');
11393if(this.$anchor&&this.$anchor.length){
11394this.$anchor.off('change.zf.sticky');
11395}
11396if(this.scrollListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.scrollListener);
11397if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
11398if(this.wasWrapped){
11399this.$element.unwrap();
11400}else{
11401this.$container.removeClass(this.options.containerClass).css({
11402height:''
11403});
11404}
11405}
11406}]);
11407return Sticky;
11408}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
11409Sticky.defaults={
11410container:'<div data-sticky-container></div>',
11411stickTo:'top',
11412anchor:'',
11413topAnchor:'',
11414btmAnchor:'',
11415marginTop:1,
11416marginBottom:1,
11417stickyOn:'medium',
11418stickyClass:'sticky',
11419containerClass:'sticky-container',
11420checkEvery:-1
11421};
11422function emCalc(em){
11423return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*em;
11424}
11425}),
11426"./js/foundation.util.triggers.js":
11427(function(module,__webpack_exports__,__webpack_require__){
11428"use strict";
11429__webpack_require__.r(__webpack_exports__);
11430__webpack_require__.d(__webpack_exports__,"Triggers",function(){return Triggers;});
11431var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
11432var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
11433var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
11434var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
11435var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.motion");
11436var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
11437function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
11438var MutationObserver=function(){
11439var prefixes=['WebKit','Moz','O','Ms',''];
11440for(var i=0;i<prefixes.length;i++){
11441if("".concat(prefixes[i],"MutationObserver")in window){
11442return window["".concat(prefixes[i],"MutationObserver")];
11443}
11444}
11445return false;
11446}();
11447var triggers=function triggers(el,type){
11448el.data(type).split(' ').forEach(function(id){
11449jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type==='close'?'trigger':'triggerHandler']("".concat(type,".zf.trigger"),[el]);
11450});
11451};
11452var Triggers={
11453Listeners:{
11454Basic:{},
11455Global:{}
11456},
11457Initializers:{}
11458};
11459Triggers.Listeners.Basic={
11460openListener:function openListener(){
11461triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'open');
11462},
11463closeListener:function closeListener(){
11464var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
11465if(id){
11466triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'close');
11467}else{
11468jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
11469}
11470},
11471toggleListener:function toggleListener(){
11472var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
11473if(id){
11474triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'toggle');
11475}else{
11476jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
11477}
11478},
11479closeableListener:function closeableListener(e){
11480e.stopPropagation();
11481var animation=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
11482if(animation!==''){
11483_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),animation,function(){
11484jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
11485});
11486}else{
11487jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
11488}
11489},
11490toggleFocusListener:function toggleFocusListener(){
11491var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
11492jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger',[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
11493}
11494};
11495Triggers.Initializers.addOpenListener=function($elem){
11496$elem.off('click.zf.trigger',Triggers.Listeners.Basic.openListener);
11497$elem.on('click.zf.trigger','[data-open]',Triggers.Listeners.Basic.openListener);
11498};
11499Triggers.Initializers.addCloseListener=function($elem){
11500$elem.off('click.zf.trigger',Triggers.Listeners.Basic.closeListener);
11501$elem.on('click.zf.trigger','[data-close]',Triggers.Listeners.Basic.closeListener);
11502};
11503Triggers.Initializers.addToggleListener=function($elem){
11504$elem.off('click.zf.trigger',Triggers.Listeners.Basic.toggleListener);
11505$elem.on('click.zf.trigger','[data-toggle]',Triggers.Listeners.Basic.toggleListener);
11506};
11507Triggers.Initializers.addCloseableListener=function($elem){
11508$elem.off('close.zf.trigger',Triggers.Listeners.Basic.closeableListener);
11509$elem.on('close.zf.trigger','[data-closeable], [data-closable]',Triggers.Listeners.Basic.closeableListener);
11510};
11511Triggers.Initializers.addToggleFocusListener=function($elem){
11512$elem.off('focus.zf.trigger blur.zf.trigger',Triggers.Listeners.Basic.toggleFocusListener);
11513$elem.on('focus.zf.trigger blur.zf.trigger','[data-toggle-focus]',Triggers.Listeners.Basic.toggleFocusListener);
11514};
11515Triggers.Listeners.Global={
11516resizeListener:function resizeListener($nodes){
11517if(!MutationObserver){
11518$nodes.each(function(){
11519jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
11520});
11521}
11522$nodes.attr('data-events',"resize");
11523},
11524scrollListener:function scrollListener($nodes){
11525if(!MutationObserver){
11526$nodes.each(function(){
11527jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
11528});
11529}
11530$nodes.attr('data-events',"scroll");
11531},
11532closeMeListener:function closeMeListener(e,pluginId){
11533var plugin=e.namespace.split('.')[0];
11534var plugins=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin,"]")).not("[data-yeti-box=\"".concat(pluginId,"\"]"));
11535plugins.each(function(){
11536var _this=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
11537_this.triggerHandler('close.zf.trigger',[_this]);
11538});
11539}
11540};
11541Triggers.Initializers.addClosemeListener=function(pluginName){
11542var yetiBoxes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
11543plugNames=['dropdown','tooltip','reveal'];
11544if(pluginName){
11545if(typeof pluginName==='string'){
11546plugNames.push(pluginName);
11547}else if(_typeof(pluginName)==='object'&&typeof pluginName[0]==='string'){
11548plugNames=plugNames.concat(pluginName);
11549}else{
11550console.error('Plugin names must be strings');
11551}
11552}
11553if(yetiBoxes.length){
11554var listeners=plugNames.map(function(name){
11555return"closeme.zf.".concat(name);
11556}).join(' ');
11557jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners,Triggers.Listeners.Global.closeMeListener);
11558}
11559};
11560function debounceGlobalListener(debounce,trigger,listener){
11561var timer,
11562args=Array.prototype.slice.call(arguments,3);
11563jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger,function(e){
11564if(timer){
11565clearTimeout(timer);
11566}
11567timer=setTimeout(function(){
11568listener.apply(null,args);
11569},debounce||10);
11570});
11571}
11572Triggers.Initializers.addResizeListener=function(debounce){
11573var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
11574if($nodes.length){
11575debounceGlobalListener(debounce,'resize.zf.trigger',Triggers.Listeners.Global.resizeListener,$nodes);
11576}
11577};
11578Triggers.Initializers.addScrollListener=function(debounce){
11579var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
11580if($nodes.length){
11581debounceGlobalListener(debounce,'scroll.zf.trigger',Triggers.Listeners.Global.scrollListener,$nodes);
11582}
11583};
11584Triggers.Initializers.addMutationEventsListener=function($elem){
11585if(!MutationObserver){
11586return false;
11587}
11588var $nodes=$elem.find('[data-resize], [data-scroll], [data-mutate]');
11589var listeningElementsMutation=function listeningElementsMutation(mutationRecordsList){
11590var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
11591switch(mutationRecordsList[0].type){
11592case"attributes":
11593if($target.attr("data-events")==="scroll"&&mutationRecordsList[0].attributeName==="data-events"){
11594$target.triggerHandler('scrollme.zf.trigger',[$target,window.pageYOffset]);
11595}
11596if($target.attr("data-events")==="resize"&&mutationRecordsList[0].attributeName==="data-events"){
11597$target.triggerHandler('resizeme.zf.trigger',[$target]);
11598}
11599if(mutationRecordsList[0].attributeName==="style"){
11600$target.closest("[data-mutate]").attr("data-events","mutate");
11601$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
11602}
11603break;
11604case"childList":
11605$target.closest("[data-mutate]").attr("data-events","mutate");
11606$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
11607break;
11608default:
11609return false;
11610}
11611};
11612if($nodes.length){
11613for(var i=0;i<=$nodes.length-1;i++){
11614var elementObserver=new MutationObserver(listeningElementsMutation);
11615elementObserver.observe($nodes[i],{
11616attributes:true,
11617childList:true,
11618characterData:false,
11619subtree:true,
11620attributeFilter:["data-events","style"]
11621}
11621);
11622}
11623}
11624};
11625Triggers.Initializers.addSimpleListeners=function(){
11626var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
11627Triggers.Initializers.addOpenListener($document);
11628Triggers.Initializers.addCloseListener($document);
11629Triggers.Initializers.addToggleListener($document);
11630Triggers.Initializers.addCloseableListener($document);
11631Triggers.Initializers.addToggleFocusListener($document);
11632};
11633Triggers.Initializers.addGlobalListeners=function(){
11634var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
11635Triggers.Initializers.addMutationEventsListener($document);
11636Triggers.Initializers.addResizeListener();
11637Triggers.Initializers.addScrollListener();
11638Triggers.Initializers.addClosemeListener();
11639};
11640Triggers.init=function($,Foundation){
11641Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window),function(){
11642if($.triggersInitialized!==true){
11643Triggers.Initializers.addSimpleListeners();
11644Triggers.Initializers.addGlobalListeners();
11645$.triggersInitialized=true;
11646}
11647});
11648if(Foundation){
11649Foundation.Triggers=Triggers;
11650Foundation.IHearYou=Triggers.Initializers.addGlobalListeners;
11651}
11652};
11653}),
1165417:
11655(function(module,exports,__webpack_require__){
11656module.exports=__webpack_require__("./js/entries/plugins/foundation.sticky.js");
11657}),
11658"jquery":
11659(function(module,exports){
11660module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
11661})
11662});
11663});
11664(function webpackUniversalModuleDefinition(root,factory){
11665if(typeof exports==='object'&&typeof module==='object')
11666module.exports=factory(require("./foundation.core"),require("./foundation.util.imageLoader"),require("./foundation.util.keyboard"),require("jquery"));
11667else if(typeof define==='function'&&define.amd)
11668define(["./foundation.core","./foundation.util.imageLoader","./foundation.util.keyboard","jquery"],factory);
11669else if(typeof exports==='object')
11670exports["foundation.tabs"]=factory(require("./foundation.core"),require("./foundation.util.imageLoader"),require("./foundation.util.keyboard"),require("jquery"));
11671else
11672root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.tabs"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.imageLoader"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.keyboard"],root["jQuery"]);
11673})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__,__WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__,__WEBPACK_EXTERNAL_MODULE_jquery__){
11674return(function(modules){
11675var installedModules={};
11676function __webpack_require__(moduleId){
11677if(installedModules[moduleId]){
11678return installedModules[moduleId].exports;
11679}
11680var module=installedModules[moduleId]={
11681i:moduleId,
11682l:false,
11683exports:{}
11684};
11685modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
11686module.l=true;
11687return module.exports;
11688}
11689__webpack_require__.m=modules;
11690__webpack_require__.c=installedModules;
11691__webpack_require__.d=function(exports,name,getter){
11692if(!__webpack_require__.o(exports,name)){
11693Object.defineProperty(exports,name,{enumerable:true,get:getter});
11694}
11695};
11696__webpack_require__.r=function(exports){
11697if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
11698Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
11699}
11700Object.defineProperty(exports,'__esModule',{value:true});
11701};
11702__webpack_require__.t=function(value,mode){
11703if(mode&1)value=__webpack_require__(value);
11704if(mode&8)return value;
11705if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
11706var ns=Object.create(null);
11707__webpack_require__.r(ns);
11708Object.defineProperty(ns,'default',{enumerable:true,value:value});
11709if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
11710return ns;
11711};
11712__webpack_require__.n=function(module){
11713var getter=module&&module.__esModule?
11714function getDefault(){return module['default'];}:
11715function getModuleExports(){return module;};
11716__webpack_require__.d(getter,'a',getter);
11717return getter;
11718};
11719__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
11720__webpack_require__.p="";
11721return __webpack_require__(__webpack_require__.s=18);
11722})
11723({
11724"./foundation.core":
11725(function(module,exports){
11726module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
11727}),
11728"./foundation.util.imageLoader":
11729(function(module,exports){
11730module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_imageLoader__;
11731}),
11732"./foundation.util.keyboard":
11733(function(module,exports){
11734module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_keyboard__;
11735}),
11736"./js/entries/plugins/foundation.tabs.js":
11737(function(module,__webpack_exports__,__webpack_require__){
11738"use strict";
11739__webpack_require__.r(__webpack_exports__);
11740var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
11741var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
11742__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
11743var _foundation_tabs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.tabs.js");
11744__webpack_require__.d(__webpack_exports__,"Tabs",function(){return _foundation_tabs__WEBPACK_IMPORTED_MODULE_1__["Tabs"];});
11745_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_tabs__WEBPACK_IMPORTED_MODULE_1__["Tabs"],'Tabs');
11746}),
11747"./js/foundation.tabs.js":
11748(function(module,__webpack_exports__,__webpack_require__){
11749"use strict";
11750__webpack_require__.r(__webpack_exports__);
11751__webpack_require__.d(__webpack_exports__,"Tabs",function(){return Tabs;});
11752var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
11753var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
11754var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
11755var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
11756var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.keyboard");
11757var _foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__);
11758var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./foundation.util.imageLoader");
11759var _foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__);
11760function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
11761function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
11762function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
11763function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
11764function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
11765function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
11766function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
11767function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
11768function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
11769var Tabs=
11770function(_Plugin){
11771_inherits(Tabs,_Plugin);
11772function Tabs(){
11773_classCallCheck(this,Tabs);
11774return _possibleConstructorReturn(this,_getPrototypeOf(Tabs).apply(this,arguments));
11775}
11776_createClass(Tabs,[{
11777key:"_setup",
11778value:function _setup(element,options){
11779this.$element=element;
11780this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Tabs.defaults,this.$element.data(),options);
11781this.className='Tabs';
11782this._init();
11783_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].register('Tabs',{
11784'ENTER':'open',
11785'SPACE':'open',
11786'ARROW_RIGHT':'next',
11787'ARROW_UP':'previous',
11788'ARROW_DOWN':'next',
11789'ARROW_LEFT':'previous'
11790});
11791}
11792},{
11793key:"_init",
11794value:function _init(){
11795var _this2=this;
11796var _this=this;
11797this._isInitializing=true;
11798this.$element.attr({
11799'role':'tablist'
11800});
11801this.$tabTitles=this.$element.find(".".concat(this.options.linkClass));
11802this.$tabContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-tabs-content=\"".concat(this.$element[0].id,"\"]"));
11803this.$tabTitles.each(function(){
11804var $elem=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
11805$link=$elem.find('a'),
11806isActive=$elem.hasClass("".concat(_this.options.linkActiveClass)),
11807hash=$link.attr('data-tabs-target')||$link[0].hash.slice(1),
11808linkId=$link[0].id?$link[0].id:"".concat(hash,"-label"),
11809$tabContent=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(hash));
11810$elem.attr({
11811'role':'presentation'
11812});
11813$link.attr({
11814'role':'tab',
11815'aria-controls':hash,
11816'aria-selected':isActive,
11817'id':linkId,
11818'tabindex':isActive?'0':'-1'
11819});
11820$tabContent.attr({
11821'role':'tabpanel',
11822'aria-labelledby':linkId
11823});
11824if(isActive){
11825_this._initialAnchor="#".concat(hash);
11826}
11827if(!isActive){
11828$tabContent.attr('aria-hidden','true');
11829}
11830if(isActive&&_this.options.autoFocus){
11831_this.onLoadListener=Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){
11832jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
11833scrollTop:$elem.offset().top
11834},_this.options.deepLinkSmudgeDelay,function(){
11835$link.focus();
11836});
11837});
11838}
11839});
11840if(this.options.matchHeight){
11841var $images=this.$tabContent.find('img');
11842if($images.length){
11843Object(_foundation_util_imageLoader__WEBPACK_IMPORTED_MODULE_3__["onImagesLoaded"])($images,this._setHeight.bind(this));
11844}else{
11845this._setHeight();
11846}
11847}
11848this._checkDeepLink=function(){
11849var anchor=window.location.hash;
11850if(!anchor.length){
11851if(_this2._isInitializing)return;
11852if(_this2._initialAnchor)anchor=_this2._initialAnchor;
11853}
11854var $anchor=anchor&&jquery__WEBPACK_IMPORTED_MODULE_0___default()(anchor);
11855var $link=anchor&&_this2.$element.find('[href$="'+anchor+'"]');
11856var isOwnAnchor=!!($anchor.length&&$link.length);
11857if($anchor&&$anchor.length&&$link&&$link.length){
11858_this2.selectTab($anchor,true);
11859}
11860else{
11861_this2._collapse();
11862}
11863if(isOwnAnchor){
11864if(_this2.options.deepLinkSmudge){
11865var offset=_this2.$element.offset();
11866jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').animate({
11867scrollTop:offset.top
11868},_this2.options.deepLinkSmudgeDelay);
11869}
11870_this2.$element.trigger('deeplink.zf.tabs',[$link,$anchor]);
11871}
11872};
11873if(this.options.deepLink){
11874this._checkDeepLink();
11875}
11876this._events();
11877this._isInitializing=false;
11878}
11879},{
11880key:"_events",
11881value:function _events(){
11882this._addKeyHandler();
11883this._addClickHandler();
11884this._setHeightMqHandler=null;
11885if(this.options.matchHeight){
11886this._setHeightMqHandler=this._setHeight.bind(this);
11887jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('changed.zf.mediaquery',this._setHeightMqHandler);
11888}
11889if(this.options.deepLink){
11890jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange',this._checkDeepLink);
11891}
11892}
11893},{
vendor: 4,918 bytes, lines 11894-12061
11894key:"_addClickHandler",
11895value:function _addClickHandler(){
11896var _this=this;
11897this.$element.off('click.zf.tabs').on('click.zf.tabs',".".concat(this.options.linkClass),function(e){
11898e.preventDefault();
11899e.stopPropagation();
11900_this._handleTabChange(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
11901});
11902}
11903},{
11904key:"_addKeyHandler",
11905value:function _addKeyHandler(){
11906var _this=this;
11907this.$tabTitles.off('keydown.zf.tabs').on('keydown.zf.tabs',function(e){
11908if(e.which===9)return;
11909var $element=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
11910$elements=$element.parent('ul').children('li'),
11911$prevElement,
11912$nextElement;
11913$elements.each(function(i){
11914if(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).is($element)){
11915if(_this.options.wrapOnKeys){
11916$prevElement=i===0?$elements.last():$elements.eq(i-1);
11917$nextElement=i===$elements.length-1?$elements.first():$elements.eq(i+1);
11918}else{
11919$prevElement=$elements.eq(Math.max(0,i-1));
11920$nextElement=$elements.eq(Math.min(i+1,$elements.length-1));
11921}
11922return;
11923}
11924});
11925_foundation_util_keyboard__WEBPACK_IMPORTED_MODULE_2__["Keyboard"].handleKey(e,'Tabs',{
11926open:function open(){
11927$element.find('[role="tab"]').focus();
11928_this._handleTabChange($element);
11929},
11930previous:function previous(){
11931$prevElement.find('[role="tab"]').focus();
11932_this._handleTabChange($prevElement);
11933},
11934next:function next(){
11935$nextElement.find('[role="tab"]').focus();
11936_this._handleTabChange($nextElement);
11937},
11938handled:function handled(){
11939e.stopPropagation();
11940e.preventDefault();
11941}
11942});
11943});
11944}
11945},{
11946key:"_handleTabChange",
11947value:function _handleTabChange($target,historyHandled){
11948if($target.hasClass("".concat(this.options.linkActiveClass))){
11949if(this.options.activeCollapse){
11950this._collapse();
11951}
11952return;
11953}
11954var $oldTab=this.$element.find(".".concat(this.options.linkClass,".").concat(this.options.linkActiveClass)),
11955$tabLink=$target.find('[role="tab"]'),
11956target=$tabLink.attr('data-tabs-target'),
11957anchor=target&&target.length?"#".concat(target):$tabLink[0].hash,
11958$targetContent=this.$tabContent.find(anchor);
11959this._collapseTab($oldTab);
11960this._openTab($target);
11961if(this.options.deepLink&&!historyHandled){
11962if(this.options.updateHistory){
11963history.pushState({},'',anchor);
11964}else{
11965history.replaceState({},'',anchor);
11966}
11967}
11968this.$element.trigger('change.zf.tabs',[$target,$targetContent]);
11969$targetContent.find("[data-mutate]").trigger("mutateme.zf.trigger");
11970}
11971},{
11972key:"_openTab",
11973value:function _openTab($target){
11974var $tabLink=$target.find('[role="tab"]'),
11975hash=$tabLink.attr('data-tabs-target')||$tabLink[0].hash.slice(1),
11976$targetContent=this.$tabContent.find("#".concat(hash));
11977$target.addClass("".concat(this.options.linkActiveClass));
11978$tabLink.attr({
11979'aria-selected':'true',
11980'tabindex':'0'
11981});
11982$targetContent.addClass("".concat(this.options.panelActiveClass)).removeAttr('aria-hidden');
11983}
11984},{
11985key:"_collapseTab",
11986value:function _collapseTab($target){
11987var $target_anchor=$target.removeClass("".concat(this.options.linkActiveClass)).find('[role="tab"]').attr({
11988'aria-selected':'false',
11989'tabindex':-1
11990});
11991jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat($target_anchor.attr('aria-controls'))).removeClass("".concat(this.options.panelActiveClass)).attr({
11992'aria-hidden':'true'
11993});
11994}
11995},{
11996key:"_collapse",
11997value:function _collapse(){
11998var $activeTab=this.$element.find(".".concat(this.options.linkClass,".").concat(this.options.linkActiveClass));
11999if($activeTab.length){
12000this._collapseTab($activeTab);
12001this.$element.trigger('collapse.zf.tabs',[$activeTab]);
12002}
12003}
12004},{
12005key:"selectTab",
12006value:function selectTab(elem,historyHandled){
12007var idStr;
12008if(_typeof(elem)==='object'){
12009idStr=elem[0].id;
12010}else{
12011idStr=elem;
12012}
12013if(idStr.indexOf('#')<0){
12014idStr="#".concat(idStr);
12015}
12016var $target=this.$tabTitles.has("[href$=\"".concat(idStr,"\"]"));
12017this._handleTabChange($target,historyHandled);
12018}
12019},{
12020key:"_setHeight",
12021value:function _setHeight(){
12022var max=0,
12023_this=this;
12024this.$tabContent.find(".".concat(this.options.panelClass)).css('height','').each(function(){
12025var panel=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
12026isActive=panel.hasClass("".concat(_this.options.panelActiveClass));
12027if(!isActive){
12028panel.css({
12029'visibility':'hidden',
12030'display':'block'
12031});
12032}
12033var temp=this.getBoundingClientRect().height;
12034if(!isActive){
12035panel.css({
12036'visibility':'',
12037'display':''
12038});
12039}
12040max=temp>max?temp:max;
12041}).css('height',"".concat(max,"px"));
12042}
12043},{
12044key:"_destroy",
12045value:function _destroy(){
12046this.$element.find(".".concat(this.options.linkClass)).off('.zf.tabs').hide().end().find(".".concat(this.options.panelClass)).hide();
12047if(this.options.matchHeight){
12048if(this._setHeightMqHandler!=null){
12049jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('changed.zf.mediaquery',this._setHeightMqHandler);
12050}
12051}
12052if(this.options.deepLink){
12053jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange',this._checkDeepLink);
12054}
12055if(this.onLoadListener){
12056jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
12057}
12058}
12059}]);
12060return Tabs;
12061}
12061(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
12062Tabs.defaults={
12063deepLink:false,
12064deepLinkSmudge:false,
12065deepLinkSmudgeDelay:300,
12066updateHistory:false,
12067autoFocus:false,
12068wrapOnKeys:true,
12069matchHeight:false,
12070activeCollapse:false,
12071linkClass:'tabs-title',
12072linkActiveClass:'is-active',
12073panelClass:'tabs-panel',
12074panelActiveClass:'is-active'
12075};
12076}),
1207718:
12078(function(module,exports,__webpack_require__){
12079module.exports=__webpack_require__("./js/entries/plugins/foundation.tabs.js");
12080}),
12081"jquery":
12082(function(module,exports){
12083module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
12084})
12085});
12086});
12087(function webpackUniversalModuleDefinition(root,factory){
12088if(typeof exports==='object'&&typeof module==='object')
12089module.exports=factory(require("./foundation.core"),require("./foundation.util.box"),require("./foundation.util.mediaQuery"),require("./foundation.util.motion"),require("jquery"));
12090else if(typeof define==='function'&&define.amd)
12091define(["./foundation.core","./foundation.util.box","./foundation.util.mediaQuery","./foundation.util.motion","jquery"],factory);
12092else if(typeof exports==='object')
12093exports["foundation.tooltip"]=factory(require("./foundation.core"),require("./foundation.util.box"),require("./foundation.util.mediaQuery"),require("./foundation.util.motion"),require("jquery"));
12094else
12095root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.tooltip"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.box"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"],root["jQuery"]);
12096})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_box__,__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__,__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__,__WEBPACK_EXTERNAL_MODULE_jquery__){
12097return(function(modules){
12098var installedModules={};
12099function __webpack_require__(moduleId){
12100if(installedModules[moduleId]){
12101return installedModules[moduleId].exports;
12102}
12103var module=installedModules[moduleId]={
12104i:moduleId,
12105l:false,
12106exports:{}
12107};
12108modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
12109module.l=true;
12110return module.exports;
12111}
12112__webpack_require__.m=modules;
12113__webpack_require__.c=installedModules;
12114__webpack_require__.d=function(exports,name,getter){
12115if(!__webpack_require__.o(exports,name)){
12116Object.defineProperty(exports,name,{enumerable:true,get:getter});
12117}
12118};
12119__webpack_require__.r=function(exports){
12120if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
12121Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
12122}
12123Object.defineProperty(exports,'__esModule',{value:true});
12124};
12125__webpack_require__.t=function(value,mode){
12126if(mode&1)value=__webpack_require__(value);
12127if(mode&8)return value;
12128if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
12129var ns=Object.create(null);
12130__webpack_require__.r(ns);
12131Object.defineProperty(ns,'default',{enumerable:true,value:value});
12132if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
12133return ns;
12134};
12135__webpack_require__.n=function(module){
12136var getter=module&&module.__esModule?
12137function getDefault(){return module['default'];}:
12138function getModuleExports(){return module;};
12139__webpack_require__.d(getter,'a',getter);
12140return getter;
12141};
12142__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
12143__webpack_require__.p="";
12144return __webpack_require__(__webpack_require__.s=20);
12145})
12146({
12147"./foundation.core":
12148(function(module,exports){
12149module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
12150}),
12151"./foundation.util.box":
12152(function(module,exports){
12153module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_box__;
12154}),
12155"./foundation.util.mediaQuery":
12156(function(module,exports){
12157module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
12158}),
12159"./foundation.util.motion":
12160(function(module,exports){
12161module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
12162}),
12163"./js/entries/plugins/foundation.tooltip.js":
12164(function(module,__webpack_exports__,__webpack_require__){
12165"use strict";
12166__webpack_require__.r(__webpack_exports__);
12167var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
12168var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
12169__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
12170var _foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.tooltip.js");
12171__webpack_require__.d(__webpack_exports__,"Tooltip",function(){return _foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__["Tooltip"];});
12172_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_tooltip__WEBPACK_IMPORTED_MODULE_1__["Tooltip"],'Tooltip');
12173}),
12174"./js/foundation.positionable.js":
12175(function(module,__webpack_exports__,__webpack_require__){
12176"use strict";
12177__webpack_require__.r(__webpack_exports__);
12178__webpack_require__.d(__webpack_exports__,"Positionable",function(){return Positionable;});
12179var _foundation_util_box__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.util.box");
12180var _foundation_util_box__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__);
12181var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
12182var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
12183function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
12184function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
12185function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
12186function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
12187function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
12188function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
12189function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
12190function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
12191function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
12192var POSITIONS=['left','right','top','bottom'];
12193var VERTICAL_ALIGNMENTS=['top','bottom','center'];
12194var HORIZONTAL_ALIGNMENTS=['left','right','center'];
12195var ALIGNMENTS={
12196'left':VERTICAL_ALIGNMENTS,
12197'right':VERTICAL_ALIGNMENTS,
12198'top':HORIZONTAL_ALIGNMENTS,
12199'bottom':HORIZONTAL_ALIGNMENTS
12200};
12201function nextItem(item,array){
12202var currentIdx=array.indexOf(item);
12203if(currentIdx===array.length-1){
12204return array[0];
12205}else{
12206return array[currentIdx+1];
12207}
12208}
12209var Positionable=
12210function(_Plugin){
12211_inherits(Positionable,_Plugin);
12212function Positionable(){
12213_classCallCheck(this,Positionable);
12214return _possibleConstructorReturn(this,_getPrototypeOf(Positionable).apply(this,arguments));
12215}
12216_createClass(Positionable,[{
12217key:"_init",
12218value:function _init(){
12219this.triedPositions={};
12220this.position=this.options.position==='auto'?this._getDefaultPosition():this.options.position;
12221this.alignment=this.options.alignment==='auto'?this._getDefaultAlignment():this.options.alignment;
12222this.originalPosition=this.position;
12223this.originalAlignment=this.alignment;
12224}
12225},{
12226key:"_getDefaultPosition",
12227value:function _getDefaultPosition(){
12228return'bottom';
12229}
12230},{
12231key:"_getDefaultAlignment",
12232value:function _getDefaultAlignment(){
12233switch(this.position){
12234case'bottom':
12235case'top':
12236return Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["rtl"])()?'right':'left';
12237case'left':
12238case'right':
12239return'bottom';
12240}
12241}
12242},{
12243key:"_reposition",
12244value:function _reposition(){
12245if(this._alignmentsExhausted(this.position)){
12246this.position=nextItem(this.position,POSITIONS);
12247this.alignment=ALIGNMENTS[this.position][0];
12248}else{
12249this._realign();
12250}
12251}
12252},{
12253key:"_realign",
12254value:function _realign(){
12255this._addTriedPosition(this.position,this.alignment);
12256this.alignment=nextItem(this.alignment,ALIGNMENTS[this.position]);
12257}
12258},{
12259key:"_addTriedPosition",
12260value:function _addTriedPosition(position,alignment){
12261this.triedPositions[position]=this.triedPositions[position]||[];
12262this.triedPositions[position].push(alignment);
12263}
12264},{
12265key:"_positionsExhausted",
12266value:function _positionsExhausted(){
12267var isExhausted=true;
12268for(var i=0;i<POSITIONS.length;i++){
12269isExhausted=isExhausted&&this._alignmentsExhausted(POSITIONS[i]);
12270}
12271return isExhausted;
12272}
12273},{
12274key:"_alignmentsExhausted",
12275value:function _alignmentsExhausted(position){
12276return this.triedPositions[position]&&this.triedPositions[position].length==ALIGNMENTS[position].length;
12277}
12278},{
12279key:"_getVOffset",
12280value:function _getVOffset(){
12281return this.options.vOffset;
12282}
12283},{
12284key:"_getHOffset",
12285value:function _getHOffset(){
12286return this.options.hOffset;
12287}
12288},{
12289key:"_setPosition",
12290value:function _setPosition($anchor,$element,$parent){
12291if($anchor.attr('aria-expanded')==='false'){
12292return false;
12293}
12294var $eleDims=_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].GetDimensions($element),
12295$anchorDims=_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].GetDimensions($anchor);
12296if(!this.options.allowOverlap){
12297this.position=this.originalPosition;
12298this.alignment=this.originalAlignment;
12299}
12300$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].GetExplicitOffsets($element,$anchor,this.position,this.alignment,this._getVOffset(),this._getHOffset()));
12301if(!this.options.allowOverlap){
12302var overlaps={};
12303var minOverlap=100000000;
12304var minCoordinates={
12305position:this.position,
12306alignment:this.alignment
12307};
12308while(!this._positionsExhausted()){
12309var overlap=_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].OverlapArea($element,$parent,false,false,this.options.allowBottomOverlap);
12310if(overlap===0){
12311return;
12312}
12313if(overlap<minOverlap){
12314minOverlap=overlap;
12315minCoordinates={
12316position:this.position,
12317alignment:this.alignment
12318};
12319}
12320this._reposition();
12321$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].GetExplicitOffsets($element,$anchor,this.position,this.alignment,this._getVOffset(),this._getHOffset()));
12322}
12323this.position=minCoordinates.position;
12324this.alignment=minCoordinates.alignment;
12325$element.offset(_foundation_util_box__WEBPACK_IMPORTED_MODULE_0__["Box"].GetExplicitOffsets($element,$anchor,this.position,this.alignment,this._getVOffset(),this._getHOffset()));
12326}
12327}
12328}]);
12329return Positionable;
12330}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
12331Positionable.defaults={
12332position:'auto',
12333alignment:'auto',
12334allowOverlap:false,
12335allowBottomOverlap:true,
12336vOffset:0,
12337hOffset:0
12338};
12339}),
12340"./js/foundation.tooltip.js":
12341(function(module,__webpack_exports__,__webpack_require__){
12342"use strict";
12343__webpack_require__.r(__webpack_exports__);
12344__webpack_require__.d(__webpack_exports__,"Tooltip",function(){return Tooltip;});
12345var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
12346var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
12347var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
12348var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
12349var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.mediaQuery");
12350var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__);
12351var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.triggers.js");
12352var _foundation_positionable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./js/foundation.positionable.js");
12353function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
12354function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
12355function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
12356function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
12357function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
12358function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
12359function _get(target,property,receiver){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get;}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(receiver);}return desc.value;};}return _get(target,property,receiver||target);}
12360function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}
12361function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
12362function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
12363function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
12364var Tooltip=
12365function(_Positionable){
12366_inherits(Tooltip,_Positionable);
12367function Tooltip(){
12368_classCallCheck(this,Tooltip);
12369return _possibleConstructorReturn(this,_getPrototypeOf(Tooltip).apply(this,arguments));
12370}
12371_createClass(Tooltip,[{
12372key:"_setup",
12373value:function _setup(element,options){
12374this.$element=element;
12375this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Tooltip.defaults,this.$element.data(),options);
12376this.className='Tooltip';
12377this.isActive=false;
12378this.isClick=false;
12379_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
12380this._init();
12381}
12382},{
12383key:"_init",
12384value:function _init(){
12385_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"]._init();
12386var elemId=this.$element.attr('aria-describedby')||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,'tooltip');
12387this.options.tipText=this.options.tipText||this.$element.attr('title');
12388this.template=this.options.template?jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.options.template):this._buildTemplate(elemId);
12389if(this.options.allowHtml){
12390this.template.appendTo(document.body).html(this.options.tipText).hide();
12391}else{
12392this.template.appendTo(document.body).text(this.options.tipText).hide();
12393}
12394this.$element.attr({
12395'title':'',
12396'aria-describedby':elemId,
12397'data-yeti-box':elemId,
12398'data-toggle':elemId,
12399'data-resize':elemId
12400}).addClass(this.options.triggerClass);
12401_get(_getPrototypeOf(Tooltip.prototype),"_init",this).call(this);
12402this._events();
12403}
12404},{
12405key:"_getDefaultPosition",
12406value:function _getDefaultPosition(){
12407var position=this.$element[0].className.match(/\b(top|left|right|bottom)\b/g);
12408return position?position[0]:'top';
12409}
12410},{
12411key:"_getDefaultAlignment",
12412value:function _getDefaultAlignment(){
12413return'center';
12414}
12415},{
12416key:"_getHOffset",
12417value:function _getHOffset(){
12418if(this.position==='left'||this.position==='right'){
12419return this.options.hOffset+this.options.tooltipWidth;
12420}else{
12421return this.options.hOffset;
12422}
12423}
12424},{
12425key:"_getVOffset",
12426value:function _getVOffset(){
12427if(this.position==='top'||this.position==='bottom'){
12428return this.options.vOffset+this.options.tooltipHeight;
12429}else{
12430return this.options.vOffset;
12431}
12432}
12433},{
12434key:"_buildTemplate",
12435value:function _buildTemplate(id){
12436var templateClasses="".concat(this.options.tooltipClass," ").concat(this.options.templateClasses).trim();
12437var $template=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div></div>').addClass(templateClasses).attr({
12438'role':'tooltip',
12439'aria-hidden':true,
12440'data-is-active':false,
12441'data-is-focus':false,
12442'id':id
12443});
12444return $template;
12445}
12446},{
12447key:"_setPosition",
12448value:function _setPosition(){
12449_get(_getPrototypeOf(Tooltip.prototype),"_setPosition",this).call(this,this.$element,this.template);
12450}
12451},{
12452key:"show",
12453value:function show(){
12454if(this.options.showOn!=='all'&&!_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"].is(this.options.showOn)){
12455return false;
12456}
12457var _this=this;
12458this.template.css('visibility','hidden').show();
12459this._setPosition();
12460this.template.removeClass('top bottom left right').addClass(this.position);
12461this.template.removeClass('align-top align-bottom align-left align-right align-center').addClass('align-'+this.alignment);
12462this.$element.trigger('closeme.zf.tooltip',this.template.attr('id'));
12463this.template.attr({
12464'data-is-active':true,
12465'aria-hidden':false
12466});
12467_this.isActive=true;
12468this.template.stop().hide().css('visibility','').fadeIn(this.options.fadeInDuration,function(){
12469});
12470this.$element.trigger('show.zf.tooltip');
12471}
12472},{
12473key:"hide",
12474value:function hide(){
12475var _this=this;
12476this.template.stop().attr({
12477'aria-hidden':true,
12478'data-is-active':false
12479}).fadeOut(this.options.fadeOutDuration,function(){
12480_this.isActive=false;
12481_this.isClick=false;
12482});
12483this.$element.trigger('hide.zf.tooltip');
12484}
12485},{
12486key:"_events",
12487value:function _events(){
12488var _this=this;
12489var $template=this.template;
12490var isFocus=false;
12491if(!this.options.disableHover){
12492this.$element.on('mouseenter.zf.tooltip',function(e){
12493if(!_this.isActive){
12494_this.timeout=setTimeout(function(){
12495_this.show();
12496},_this.options.hoverDelay);
12497}
12498}).on('mouseleave.zf.tooltip',Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["ignoreMousedisappear"])(function(e){
12499clearTimeout(_this.timeout);
12500if(!isFocus||_this.isClick&&!_this.options.clickOpen){
12501_this.hide();
12502}
12503}));
12504}
12505if(this.options.clickOpen){
12506this.$element.on('mousedown.zf.tooltip',function(e){
12507e.stopImmediatePropagation();
12508if(_this.isClick){
12509}else{
12510_this.isClick=true;
12511if((_this.options.disableHover||!_this.$element.attr('tabindex'))&&!_this.isActive){
12512_this.show();
12513}
12514}
12515});
12516}else{
12517this.$element.on('mousedown.zf.tooltip',function(e){
12518e.stopImmediatePropagation();
12519_this.isClick=true;
12520});
12521}
12522if(!this.options.disableForTouch){
12523this.$element.on('tap.zf.tooltip touchend.zf.tooltip',function(e){
12524_this.isActive?_this.hide():_this.show();
12525});
12526}
12527this.$element.on({
12528'close.zf.trigger':this.hide.bind(this)
12529});
12530this.$element.on('focus.zf.tooltip',function(e){
12531isFocus=true;
12532if(_this.isClick){
12533if(!_this.options.clickOpen){
12534isFocus=false;
12535}
12536return false;
12537}else{
12538_this.show();
12539}
12540}).on('focusout.zf.tooltip',function(e){
12541isFocus=false;
12542_this.isClick=false;
12543_this.hide();
12544}).on('resizeme.zf.trigger',function(){
12545if(_this.isActive){
12546_this._setPosition();
12547}
12548});
12549}
12550},{
12551key:"toggle",
12552value:function toggle(){
12553if(this.isActive){
12554this.hide();
12555}else{
12556this.show();
12557}
12558}
12559},{
12560key:"_destroy",
12561value:function _destroy(){
12562this.$element.attr('title',this.template.text()).off('.zf.trigger .zf.tooltip').removeClass(this.options.triggerClass).removeClass('top right left bottom').removeAttr('aria-describedby data-disable-hover data-resize data-toggle data-tooltip data-yeti-box');
12563this.template.remove();
12564}
12565}]);
12566return Tooltip;
12567}(_foundation_positionable__WEBPACK_IMPORTED_MODULE_4__["Positionable"]);
12568Tooltip.defaults={
12569disableForTouch:false,
12570hoverDelay:200,
12571fadeInDuration:150,
12572fadeOutDuration:150,
12573disableHover:false,
12574templateClasses:'',
12575tooltipClass:'tooltip',
12576triggerClass:'has-tip',
12577showOn:'small',
12578template:'',
12579tipText:'',
12580touchCloseText:'Tap to close.',
12581clickOpen:true,
12582position:'auto',
12583alignment:'auto',
12584allowOverlap:false,
12585allowBottomOverlap:false,
12586vOffset:0,
12587hOffset:0,
12588tooltipHeight:14,
12589tooltipWidth:12,
12590allowHtml:false
12591};
12592}),
vendor: 8,276 bytes, lines 12593-12788
12593"./js/foundation.util.triggers.js":
12594(function(module,__webpack_exports__,__webpack_require__){
12595"use strict";
12596__webpack_require__.r(__webpack_exports__);
12597__webpack_require__.d(__webpack_exports__,"Triggers",function(){return Triggers;});
12598var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
12599var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
12600var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
12601var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
12602var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.motion");
12603var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
12604function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
12605var MutationObserver=function(){
12606var prefixes=['WebKit','Moz','O','Ms',''];
12607for(var i=0;i<prefixes.length;i++){
12608if("".concat(prefixes[i],"MutationObserver")in window){
12609return window["".concat(prefixes[i],"MutationObserver")];
12610}
12611}
12612return false;
12613}();
12614var triggers=function triggers(el,type){
12615el.data(type).split(' ').forEach(function(id){
12616jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type==='close'?'trigger':'triggerHandler']("".concat(type,".zf.trigger"),[el]);
12617});
12618};
12619var Triggers={
12620Listeners:{
12621Basic:{},
12622Global:{}
12623},
12624Initializers:{}
12625};
12626Triggers.Listeners.Basic={
12627openListener:function openListener(){
12628triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'open');
12629},
12630closeListener:function closeListener(){
12631var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
12632if(id){
12633triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'close');
12634}else{
12635jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
12636}
12637},
12638toggleListener:function toggleListener(){
12639var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
12640if(id){
12641triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'toggle');
12642}else{
12643jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
12644}
12645},
12646closeableListener:function closeableListener(e){
12647e.stopPropagation();
12648var animation=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
12649if(animation!==''){
12650_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),animation,function(){
12651jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
12652});
12653}else{
12654jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
12655}
12656},
12657toggleFocusListener:function toggleFocusListener(){
12658var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
12659jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger',[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
12660}
12661};
12662Triggers.Initializers.addOpenListener=function($elem){
12663$elem.off('click.zf.trigger',Triggers.Listeners.Basic.openListener);
12664$elem.on('click.zf.trigger','[data-open]',Triggers.Listeners.Basic.openListener);
12665};
12666Triggers.Initializers.addCloseListener=function($elem){
12667$elem.off('click.zf.trigger',Triggers.Listeners.Basic.closeListener);
12668$elem.on('click.zf.trigger','[data-close]',Triggers.Listeners.Basic.closeListener);
12669};
12670Triggers.Initializers.addToggleListener=function($elem){
12671$elem.off('click.zf.trigger',Triggers.Listeners.Basic.toggleListener);
12672$elem.on('click.zf.trigger','[data-toggle]',Triggers.Listeners.Basic.toggleListener);
12673};
12674Triggers.Initializers.addCloseableListener=function($elem){
12675$elem.off('close.zf.trigger',Triggers.Listeners.Basic.closeableListener);
12676$elem.on('close.zf.trigger','[data-closeable], [data-closable]',Triggers.Listeners.Basic.closeableListener);
12677};
12678Triggers.Initializers.addToggleFocusListener=function($elem){
12679$elem.off('focus.zf.trigger blur.zf.trigger',Triggers.Listeners.Basic.toggleFocusListener);
12680$elem.on('focus.zf.trigger blur.zf.trigger','[data-toggle-focus]',Triggers.Listeners.Basic.toggleFocusListener);
12681};
12682Triggers.Listeners.Global={
12683resizeListener:function resizeListener($nodes){
12684if(!MutationObserver){
12685$nodes.each(function(){
12686jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
12687});
12688}
12689$nodes.attr('data-events',"resize");
12690},
12691scrollListener:function scrollListener($nodes){
12692if(!MutationObserver){
12693$nodes.each(function(){
12694jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
12695});
12696}
12697$nodes.attr('data-events',"scroll");
12698},
12699closeMeListener:function closeMeListener(e,pluginId){
12700var plugin=e.namespace.split('.')[0];
12701var plugins=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin,"]")).not("[data-yeti-box=\"".concat(pluginId,"\"]"));
12702plugins.each(function(){
12703var _this=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
12704_this.triggerHandler('close.zf.trigger',[_this]);
12705});
12706}
12707};
12708Triggers.Initializers.addClosemeListener=function(pluginName){
12709var yetiBoxes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
12710plugNames=['dropdown','tooltip','reveal'];
12711if(pluginName){
12712if(typeof pluginName==='string'){
12713plugNames.push(pluginName);
12714}else if(_typeof(pluginName)==='object'&&typeof pluginName[0]==='string'){
12715plugNames=plugNames.concat(pluginName);
12716}else{
12717console.error('Plugin names must be strings');
12718}
12719}
12720if(yetiBoxes.length){
12721var listeners=plugNames.map(function(name){
12722return"closeme.zf.".concat(name);
12723}).join(' ');
12724jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners,Triggers.Listeners.Global.closeMeListener);
12725}
12726};
12727function debounceGlobalListener(debounce,trigger,listener){
12728var timer,
12729args=Array.prototype.slice.call(arguments,3);
12730jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger,function(e){
12731if(timer){
12732clearTimeout(timer);
12733}
12734timer=setTimeout(function(){
12735listener.apply(null,args);
12736},debounce||10);
12737});
12738}
12739Triggers.Initializers.addResizeListener=function(debounce){
12740var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
12741if($nodes.length){
12742debounceGlobalListener(debounce,'resize.zf.trigger',Triggers.Listeners.Global.resizeListener,$nodes);
12743}
12744};
12745Triggers.Initializers.addScrollListener=function(debounce){
12746var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
12747if($nodes.length){
12748debounceGlobalListener(debounce,'scroll.zf.trigger',Triggers.Listeners.Global.scrollListener,$nodes);
12749}
12750};
12751Triggers.Initializers.addMutationEventsListener=function($elem){
12752if(!MutationObserver){
12753return false;
12754}
12755var $nodes=$elem.find('[data-resize], [data-scroll], [data-mutate]');
12756var listeningElementsMutation=function listeningElementsMutation(mutationRecordsList){
12757var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
12758switch(mutationRecordsList[0].type){
12759case"attributes":
12760if($target.attr("data-events")==="scroll"&&mutationRecordsList[0].attributeName==="data-events"){
12761$target.triggerHandler('scrollme.zf.trigger',[$target,window.pageYOffset]);
12762}
12763if($target.attr("data-events")==="resize"&&mutationRecordsList[0].attributeName==="data-events"){
12764$target.triggerHandler('resizeme.zf.trigger',[$target]);
12765}
12766if(mutationRecordsList[0].attributeName==="style"){
12767$target.closest("[data-mutate]").attr("data-events","mutate");
12768$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
12769}
12770break;
12771case"childList":
12772$target.closest("[data-mutate]").attr("data-events","mutate");
12773$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
12774break;
12775default:
12776return false;
12777}
12778};
12779if($nodes.length){
12780for(var i=0;i<=$nodes.length-1;i++){
12781var elementObserver=new MutationObserver(listeningElementsMutation);
12782elementObserver.observe($nodes[i],{
12783attributes:true,
12784childList:true,
12785characterData:false,
12786subtree:true,
12787attributeFilter:["data-events","style"]
12788}
12788);
12789}
12790}
12791};
12792Triggers.Initializers.addSimpleListeners=function(){
12793var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
12794Triggers.Initializers.addOpenListener($document);
12795Triggers.Initializers.addCloseListener($document);
12796Triggers.Initializers.addToggleListener($document);
12797Triggers.Initializers.addCloseableListener($document);
12798Triggers.Initializers.addToggleFocusListener($document);
12799};
12800Triggers.Initializers.addGlobalListeners=function(){
12801var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
12802Triggers.Initializers.addMutationEventsListener($document);
12803Triggers.Initializers.addResizeListener();
12804Triggers.Initializers.addScrollListener();
12805Triggers.Initializers.addClosemeListener();
12806};
12807Triggers.init=function($,Foundation){
12808Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window),function(){
12809if($.triggersInitialized!==true){
12810Triggers.Initializers.addSimpleListeners();
12811Triggers.Initializers.addGlobalListeners();
12812$.triggersInitialized=true;
12813}
12814});
12815if(Foundation){
12816Foundation.Triggers=Triggers;
12817Foundation.IHearYou=Triggers.Initializers.addGlobalListeners;
12818}
12819};
12820}),
1282120:
12822(function(module,exports,__webpack_require__){
12823module.exports=__webpack_require__("./js/entries/plugins/foundation.tooltip.js");
12824}),
12825"jquery":
12826(function(module,exports){
12827module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
12828})
12829});
12830});
12831(function webpackUniversalModuleDefinition(root,factory){
12832if(typeof exports==='object'&&typeof module==='object')
12833module.exports=factory(require("./foundation.core"),require("./foundation.util.motion"),require("jquery"));
12834else if(typeof define==='function'&&define.amd)
12835define(["./foundation.core","./foundation.util.motion","jquery"],factory);
12836else if(typeof exports==='object')
12837exports["foundation.toggler"]=factory(require("./foundation.core"),require("./foundation.util.motion"),require("jquery"));
12838else
12839root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.toggler"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"],root["jQuery"]);
12840})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__,__WEBPACK_EXTERNAL_MODULE_jquery__){
12841return(function(modules){
12842var installedModules={};
12843function __webpack_require__(moduleId){
12844if(installedModules[moduleId]){
12845return installedModules[moduleId].exports;
12846}
12847var module=installedModules[moduleId]={
12848i:moduleId,
12849l:false,
12850exports:{}
12851};
12852modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
12853module.l=true;
12854return module.exports;
12855}
12856__webpack_require__.m=modules;
12857__webpack_require__.c=installedModules;
12858__webpack_require__.d=function(exports,name,getter){
12859if(!__webpack_require__.o(exports,name)){
12860Object.defineProperty(exports,name,{enumerable:true,get:getter});
12861}
12862};
12863__webpack_require__.r=function(exports){
12864if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
12865Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
12866}
12867Object.defineProperty(exports,'__esModule',{value:true});
12868};
12869__webpack_require__.t=function(value,mode){
12870if(mode&1)value=__webpack_require__(value);
12871if(mode&8)return value;
12872if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
12873var ns=Object.create(null);
12874__webpack_require__.r(ns);
12875Object.defineProperty(ns,'default',{enumerable:true,value:value});
12876if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
12877return ns;
12878};
12879__webpack_require__.n=function(module){
12880var getter=module&&module.__esModule?
12881function getDefault(){return module['default'];}:
12882function getModuleExports(){return module;};
12883__webpack_require__.d(getter,'a',getter);
12884return getter;
12885};
12886__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
12887__webpack_require__.p="";
12888return __webpack_require__(__webpack_require__.s=19);
12889})
12890({
12891"./foundation.core":
12892(function(module,exports){
12893module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
12894}),
12895"./foundation.util.motion":
12896(function(module,exports){
12897module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
12898}),
12899"./js/entries/plugins/foundation.toggler.js":
12900(function(module,__webpack_exports__,__webpack_require__){
12901"use strict";
12902__webpack_require__.r(__webpack_exports__);
12903var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
12904var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
12905__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
12906var _foundation_toggler__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.toggler.js");
12907__webpack_require__.d(__webpack_exports__,"Toggler",function(){return _foundation_toggler__WEBPACK_IMPORTED_MODULE_1__["Toggler"];});
12908_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_toggler__WEBPACK_IMPORTED_MODULE_1__["Toggler"],'Toggler');
12909}),
12910"./js/foundation.toggler.js":
12911(function(module,__webpack_exports__,__webpack_require__){
12912"use strict";
12913__webpack_require__.r(__webpack_exports__);
12914__webpack_require__.d(__webpack_exports__,"Toggler",function(){return Toggler;});
12915var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
12916var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
12917var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.util.motion");
12918var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__);
12919var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.core");
12920var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__);
12921var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./js/foundation.util.triggers.js");
12922function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
12923function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
12924function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
12925function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
12926function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
12927function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
12928function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
12929function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
12930function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
12931var Toggler=
12932function(_Plugin){
12933_inherits(Toggler,_Plugin);
12934function Toggler(){
12935_classCallCheck(this,Toggler);
12936return _possibleConstructorReturn(this,_getPrototypeOf(Toggler).apply(this,arguments));
12937}
12938_createClass(Toggler,[{
12939key:"_setup",
12940value:function _setup(element,options){
12941this.$element=element;
12942this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Toggler.defaults,element.data(),options);
12943this.className='';
12944this.className='Toggler';
12945_foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
12946this._init();
12947this._events();
12948}
12949},{
12950key:"_init",
12951value:function _init(){
12952var input;
12953if(this.options.animate){
12954input=this.options.animate.split(' ');
12955this.animationIn=input[0];
12956this.animationOut=input[1]||null;
12957}
12958else{
12959input=this.$element.data('toggler');
12960this.className=input[0]==='.'?input.slice(1):input;
12961}
12962var id=this.$element[0].id,
12963$triggers=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open~=\"".concat(id,"\"], [data-close~=\"").concat(id,"\"], [data-toggle~=\"").concat(id,"\"]"));
12964$triggers.attr('aria-expanded',!this.$element.is(':hidden'));
12965$triggers.each(function(index,trigger){
12966var $trigger=jquery__WEBPACK_IMPORTED_MODULE_0___default()(trigger);
12967var controls=$trigger.attr('aria-controls')||'';
12968var containsId=new RegExp("\\b".concat(Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["RegExpEscape"])(id),"\\b")).test(control
12968s);
12969if(!containsId)$trigger.attr('aria-controls',controls?"".concat(controls," ").concat(id):id);
12970});
12971}
12972},{
12973key:"_events",
12974value:function _events(){
12975this.$element.off('toggle.zf.trigger').on('toggle.zf.trigger',this.toggle.bind(this));
12976}
12977},{
12978key:"toggle",
12979value:function toggle(){
12980this[this.options.animate?'_toggleAnimate':'_toggleClass']();
12981}
12982},{
12983key:"_toggleClass",
12984value:function _toggleClass(){
12985this.$element.toggleClass(this.className);
12986var isOn=this.$element.hasClass(this.className);
12987if(isOn){
12988this.$element.trigger('on.zf.toggler');
12989}else{
12990this.$element.trigger('off.zf.toggler');
12991}
12992this._updateARIA(isOn);
12993this.$element.find('[data-mutate]').trigger('mutateme.zf.trigger');
12994}
12995},{
12996key:"_toggleAnimate",
12997value:function _toggleAnimate(){
12998var _this=this;
12999if(this.$element.is(':hidden')){
13000_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Motion"].animateIn(this.$element,this.animationIn,function(){
13001_this._updateARIA(true);
13002this.trigger('on.zf.toggler');
13003this.find('[data-mutate]').trigger('mutateme.zf.trigger');
13004});
13005}else{
13006_foundation_util_motion__WEBPACK_IMPORTED_MODULE_1__["Motion"].animateOut(this.$element,this.animationOut,function(){
13007_this._updateARIA(false);
13008this.trigger('off.zf.toggler');
13009this.find('[data-mutate]').trigger('mutateme.zf.trigger');
13010});
13011}
13012}
13013},{
13014key:"_updateARIA",
13015value:function _updateARIA(isOn){
13016var id=this.$element[0].id;
13017jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-open=\"".concat(id,"\"], [data-close=\"").concat(id,"\"], [data-toggle=\"").concat(id,"\"]")).attr({
13018'aria-expanded':isOn?true:false
13019});
13020}
13021},{
13022key:"_destroy",
13023value:function _destroy(){
13024this.$element.off('.zf.toggler');
13025}
13026}]);
13027return Toggler;
13028}(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_2__["Plugin"]);
13029Toggler.defaults={
13030animate:false
13031};
13032}),
vendor: 8,276 bytes, lines 13033-13228
13033"./js/foundation.util.triggers.js":
13034(function(module,__webpack_exports__,__webpack_require__){
13035"use strict";
13036__webpack_require__.r(__webpack_exports__);
13037__webpack_require__.d(__webpack_exports__,"Triggers",function(){return Triggers;});
13038var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
13039var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
13040var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
13041var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
13042var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.util.motion");
13043var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
13044function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
13045var MutationObserver=function(){
13046var prefixes=['WebKit','Moz','O','Ms',''];
13047for(var i=0;i<prefixes.length;i++){
13048if("".concat(prefixes[i],"MutationObserver")in window){
13049return window["".concat(prefixes[i],"MutationObserver")];
13050}
13051}
13052return false;
13053}();
13054var triggers=function triggers(el,type){
13055el.data(type).split(' ').forEach(function(id){
13056jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type==='close'?'trigger':'triggerHandler']("".concat(type,".zf.trigger"),[el]);
13057});
13058};
13059var Triggers={
13060Listeners:{
13061Basic:{},
13062Global:{}
13063},
13064Initializers:{}
13065};
13066Triggers.Listeners.Basic={
13067openListener:function openListener(){
13068triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'open');
13069},
13070closeListener:function closeListener(){
13071var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
13072if(id){
13073triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'close');
13074}else{
13075jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
13076}
13077},
13078toggleListener:function toggleListener(){
13079var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
13080if(id){
13081triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),'toggle');
13082}else{
13083jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
13084}
13085},
13086closeableListener:function closeableListener(e){
13087e.stopPropagation();
13088var animation=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable');
13089if(animation!==''){
13090_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),animation,function(){
13091jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
13092});
13093}else{
13094jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
13095}
13096},
13097toggleFocusListener:function toggleFocusListener(){
13098var id=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
13099jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger',[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
13100}
13101};
13102Triggers.Initializers.addOpenListener=function($elem){
13103$elem.off('click.zf.trigger',Triggers.Listeners.Basic.openListener);
13104$elem.on('click.zf.trigger','[data-open]',Triggers.Listeners.Basic.openListener);
13105};
13106Triggers.Initializers.addCloseListener=function($elem){
13107$elem.off('click.zf.trigger',Triggers.Listeners.Basic.closeListener);
13108$elem.on('click.zf.trigger','[data-close]',Triggers.Listeners.Basic.closeListener);
13109};
13110Triggers.Initializers.addToggleListener=function($elem){
13111$elem.off('click.zf.trigger',Triggers.Listeners.Basic.toggleListener);
13112$elem.on('click.zf.trigger','[data-toggle]',Triggers.Listeners.Basic.toggleListener);
13113};
13114Triggers.Initializers.addCloseableListener=function($elem){
13115$elem.off('close.zf.trigger',Triggers.Listeners.Basic.closeableListener);
13116$elem.on('close.zf.trigger','[data-closeable], [data-closable]',Triggers.Listeners.Basic.closeableListener);
13117};
13118Triggers.Initializers.addToggleFocusListener=function($elem){
13119$elem.off('focus.zf.trigger blur.zf.trigger',Triggers.Listeners.Basic.toggleFocusListener);
13120$elem.on('focus.zf.trigger blur.zf.trigger','[data-toggle-focus]',Triggers.Listeners.Basic.toggleFocusListener);
13121};
13122Triggers.Listeners.Global={
13123resizeListener:function resizeListener($nodes){
13124if(!MutationObserver){
13125$nodes.each(function(){
13126jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
13127});
13128}
13129$nodes.attr('data-events',"resize");
13130},
13131scrollListener:function scrollListener($nodes){
13132if(!MutationObserver){
13133$nodes.each(function(){
13134jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
13135});
13136}
13137$nodes.attr('data-events',"scroll");
13138},
13139closeMeListener:function closeMeListener(e,pluginId){
13140var plugin=e.namespace.split('.')[0];
13141var plugins=jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin,"]")).not("[data-yeti-box=\"".concat(pluginId,"\"]"));
13142plugins.each(function(){
13143var _this=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
13144_this.triggerHandler('close.zf.trigger',[_this]);
13145});
13146}
13147};
13148Triggers.Initializers.addClosemeListener=function(pluginName){
13149var yetiBoxes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
13150plugNames=['dropdown','tooltip','reveal'];
13151if(pluginName){
13152if(typeof pluginName==='string'){
13153plugNames.push(pluginName);
13154}else if(_typeof(pluginName)==='object'&&typeof pluginName[0]==='string'){
13155plugNames=plugNames.concat(pluginName);
13156}else{
13157console.error('Plugin names must be strings');
13158}
13159}
13160if(yetiBoxes.length){
13161var listeners=plugNames.map(function(name){
13162return"closeme.zf.".concat(name);
13163}).join(' ');
13164jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners,Triggers.Listeners.Global.closeMeListener);
13165}
13166};
13167function debounceGlobalListener(debounce,trigger,listener){
13168var timer,
13169args=Array.prototype.slice.call(arguments,3);
13170jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger,function(e){
13171if(timer){
13172clearTimeout(timer);
13173}
13174timer=setTimeout(function(){
13175listener.apply(null,args);
13176},debounce||10);
13177});
13178}
13179Triggers.Initializers.addResizeListener=function(debounce){
13180var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
13181if($nodes.length){
13182debounceGlobalListener(debounce,'resize.zf.trigger',Triggers.Listeners.Global.resizeListener,$nodes);
13183}
13184};
13185Triggers.Initializers.addScrollListener=function(debounce){
13186var $nodes=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
13187if($nodes.length){
13188debounceGlobalListener(debounce,'scroll.zf.trigger',Triggers.Listeners.Global.scrollListener,$nodes);
13189}
13190};
13191Triggers.Initializers.addMutationEventsListener=function($elem){
13192if(!MutationObserver){
13193return false;
13194}
13195var $nodes=$elem.find('[data-resize], [data-scroll], [data-mutate]');
13196var listeningElementsMutation=function listeningElementsMutation(mutationRecordsList){
13197var $target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target);
13198switch(mutationRecordsList[0].type){
13199case"attributes":
13200if($target.attr("data-events")==="scroll"&&mutationRecordsList[0].attributeName==="data-events"){
13201$target.triggerHandler('scrollme.zf.trigger',[$target,window.pageYOffset]);
13202}
13203if($target.attr("data-events")==="resize"&&mutationRecordsList[0].attributeName==="data-events"){
13204$target.triggerHandler('resizeme.zf.trigger',[$target]);
13205}
13206if(mutationRecordsList[0].attributeName==="style"){
13207$target.closest("[data-mutate]").attr("data-events","mutate");
13208$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
13209}
13210break;
13211case"childList":
13212$target.closest("[data-mutate]").attr("data-events","mutate");
13213$target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger',[$target.closest("[data-mutate]")]);
13214break;
13215default:
13216return false;
13217}
13218};
13219if($nodes.length){
13220for(var i=0;i<=$nodes.length-1;i++){
13221var elementObserver=new MutationObserver(listeningElementsMutation);
13222elementObserver.observe($nodes[i],{
13223attributes:true,
13224childList:true,
13225characterData:false,
13226subtree:true,
13227attributeFilter:["data-events","style"]
13228}
13228);
13229}
13230}
13231};
13232Triggers.Initializers.addSimpleListeners=function(){
13233var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
13234Triggers.Initializers.addOpenListener($document);
13235Triggers.Initializers.addCloseListener($document);
13236Triggers.Initializers.addToggleListener($document);
13237Triggers.Initializers.addCloseableListener($document);
13238Triggers.Initializers.addToggleFocusListener($document);
13239};
13240Triggers.Initializers.addGlobalListeners=function(){
13241var $document=jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
13242Triggers.Initializers.addMutationEventsListener($document);
13243Triggers.Initializers.addResizeListener();
13244Triggers.Initializers.addScrollListener();
13245Triggers.Initializers.addClosemeListener();
13246};
13247Triggers.init=function($,Foundation){
13248Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window),function(){
13249if($.triggersInitialized!==true){
13250Triggers.Initializers.addSimpleListeners();
13251Triggers.Initializers.addGlobalListeners();
13252$.triggersInitialized=true;
13253}
13254});
13255if(Foundation){
13256Foundation.Triggers=Triggers;
13257Foundation.IHearYou=Triggers.Initializers.addGlobalListeners;
13258}
13259};
13260}),
1326119:
13262(function(module,exports,__webpack_require__){
13263module.exports=__webpack_require__("./js/entries/plugins/foundation.toggler.js");
13264}),
13265"jquery":
13266(function(module,exports){
13267module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
13268})
13269});
13270});
13271(function webpackUniversalModuleDefinition(root,factory){
13272if(typeof exports==='object'&&typeof module==='object')
13273module.exports=factory(require("./foundation.core"),require("jquery"));
13274else if(typeof define==='function'&&define.amd)
13275define(["./foundation.core","jquery"],factory);
13276else if(typeof exports==='object')
13277exports["foundation.smoothScroll"]=factory(require("./foundation.core"),require("jquery"));
13278else
13279root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.smoothScroll"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["jQuery"]);
13280})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE_jquery__){
13281return(function(modules){
13282var installedModules={};
13283function __webpack_require__(moduleId){
13284if(installedModules[moduleId]){
13285return installedModules[moduleId].exports;
13286}
13287var module=installedModules[moduleId]={
13288i:moduleId,
13289l:false,
13290exports:{}
13291};
13292modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
13293module.l=true;
13294return module.exports;
13295}
13296__webpack_require__.m=modules;
13297__webpack_require__.c=installedModules;
13298__webpack_require__.d=function(exports,name,getter){
13299if(!__webpack_require__.o(exports,name)){
13300Object.defineProperty(exports,name,{enumerable:true,get:getter});
13301}
13302};
13303__webpack_require__.r=function(exports){
13304if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
13305Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
13306}
13307Object.defineProperty(exports,'__esModule',{value:true});
13308};
13309__webpack_require__.t=function(value,mode){
13310if(mode&1)value=__webpack_require__(value);
13311if(mode&8)return value;
13312if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
13313var ns=Object.create(null);
13314__webpack_require__.r(ns);
13315Object.defineProperty(ns,'default',{enumerable:true,value:value});
13316if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
13317return ns;
13318};
13319__webpack_require__.n=function(module){
13320var getter=module&&module.__esModule?
13321function getDefault(){return module['default'];}:
13322function getModuleExports(){return module;};
13323__webpack_require__.d(getter,'a',getter);
13324return getter;
13325};
13326__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
13327__webpack_require__.p="";
13328return __webpack_require__(__webpack_require__.s=16);
13329})
13330({
13331"./foundation.core":
13332(function(module,exports){
13333module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
13334}),
13335"./js/entries/plugins/foundation.smoothScroll.js":
13336(function(module,__webpack_exports__,__webpack_require__){
13337"use strict";
13338__webpack_require__.r(__webpack_exports__);
13339var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
13340var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
13341__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
13342var _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.smoothScroll.js");
13343__webpack_require__.d(__webpack_exports__,"SmoothScroll",function(){return _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_1__["SmoothScroll"];});
13344_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_1__["SmoothScroll"],'SmoothScroll');
13345}),
13346"./js/foundation.smoothScroll.js":
13347(function(module,__webpack_exports__,__webpack_require__){
13348"use strict";
13349__webpack_require__.r(__webpack_exports__);
13350__webpack_require__.d(__webpack_exports__,"SmoothScroll",function(){return SmoothScroll;});
13351var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
13352var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
13353var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
13354var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
13355function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
13356function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
13357function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
13358function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
13359function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
13360function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
13361function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
13362function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
13363function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
13364var SmoothScroll=
13365function(_Plugin){
13366_inherits(SmoothScroll,_Plugin);
13367function SmoothScroll(){
13368_classCallCheck(this,SmoothScroll);
13369return _possibleConstructorReturn(this,_getPrototypeOf(SmoothScroll).apply(this,arguments));
13370}
13371_createClass(SmoothScroll,[{
13372key:"_setup",
13373value:function _setup(element,options){
13374this.$element=element;
13375this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},SmoothScroll.defaults,this.$element.data(),options);
13376this.className='SmoothScroll';
13377this._init();
13378}
13379},{
13380key:"_init",
13381value:function _init(){
13382var id=this.$element[0].id||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,'smooth-scroll');
13383this.$element.attr({
13384id:id
13385});
13386this._events();
13387}
13388},{
13389key:"_events",
13390value:function _events(){
13391this._linkClickListener=this._handleLinkClick.bind(this);
13392this.$element.on('click.zf.smoothScroll',this._linkClickListener);
13393this.$element.on('click.zf.smoothScroll','a[href^="#"]',this._linkClickListener);
13394}
13395},{
13396key:"_handleLinkClick",
13397value:function _handleLinkClick(e){
13398var _this=this;
13399if(!jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.currentTarget).is('a[href^="#"]'))return;
13400var arrival=e.currentTarget.getAttribute('href');
13401this._inTransition=true;
13402SmoothScroll.scrollToLoc(arrival,this.options,function(){
13403_this._inTransition=false;
13404});
13405e.preventDefault();
13406}
13407},{
13408key:"_destroy",
13409value:function _destroy(){
13410this.$element.off('click.zf.smoothScroll',this._linkClickListener);
13411this.$element.off('click.zf.smoothScroll','a[href^="#"]',this._linkClickListener);
13412}
13413}],[{
13414key:"scrollToLoc",
13415value:function scrollToLoc(loc){
13416var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:SmoothScroll.defaults;
13417var callback=arguments.length>2?arguments[2]:undefined;
13418var $loc=jquery__WEBPACK_IMPORTED_MODULE_0___default()(loc);
13419if(!$loc.length)return false;
13420var scrollPos=Math.round($loc.offset().top-options.threshold/2-options.offset);
13421jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body').stop(true).animate({
13422scrollTop:scrollPos
13423},options.animationDuration,options.animationEasing,function(){
13424if(typeof callback==='function'){
13425callback();
13426}
13427});
13428}
13429}]);
13430return SmoothScroll;
13431}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
13432SmoothScroll.defaults={
13433animationDuration:500,
13434animationEasing:'linear',
13435threshold:50,
13436offset:0
13437};
13438}),
1343916:
13440(function(module,exports,__webpack_require__){
13441module.exports=__webpack_require__("./js/entries/plugins/foundation.smoothScroll.js");
13442}),
13443"jquery":
13444(function(module,exports){
13445module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
13446})
13447});
13448});
13449(function webpackUniversalModuleDefinition(root,factory){
13450if(typeof exports==='object'&&typeof module==='object')
13451module.exports=factory(require("./foundation.core"),require("./foundation.smoothScroll"),require("jquery"));
13452else if(typeof define==='function'&&define.amd)
13453define(["./foundation.core","./foundation.smoothScroll","jquery"],factory);
13454else if(typeof exports==='object')
13455exports["foundation.magellan"]=factory(require("./foundation.core"),require("./foundation.smoothScroll"),require("jquery"));
13456else
13457root["__FOUNDATION_EXTERNAL__"]=root["__FOUNDATION_EXTERNAL__"]||{},root["__FOUNDATION_EXTERNAL__"]["foundation.magellan"]=factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"],root["__FOUNDATION_EXTERNAL__"]["foundation.smoothScroll"],root["jQuery"]);
13458})(window,function(__WEBPACK_EXTERNAL_MODULE__foundation_core__,__WEBPACK_EXTERNAL_MODULE__foundation_smoothScroll__,__WEBPACK_EXTERNAL_MODULE_jquery__){
13459return(function(modules){
13460var installedModules={};
13461function __webpack_require__(moduleId){
13462if(installedModules[moduleId]){
13463return installedModules[moduleId].exports;
13464}
13465var module=installedModules[moduleId]={
13466i:moduleId,
13467l:false,
13468exports:{}
13469};
13470modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);
13471module.l=true;
13472return module.exports;
13473}
13474__webpack_require__.m=modules;
13475__webpack_require__.c=installedModules;
13476__webpack_require__.d=function(exports,name,getter){
13477if(!__webpack_require__.o(exports,name)){
13478Object.defineProperty(exports,name,{enumerable:true,get:getter});
13479}
13480};
13481__webpack_require__.r=function(exports){
13482if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
13483Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});
13484}
13485Object.defineProperty(exports,'__esModule',{value:true});
13486};
13487__webpack_require__.t=function(value,mode){
13488if(mode&1)value=__webpack_require__(value);
13489if(mode&8)return value;
13490if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;
13491var ns=Object.create(null);
13492__webpack_require__.r(ns);
13493Object.defineProperty(ns,'default',{enumerable:true,value:value});
13494if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key];}.bind(null,key));
13495return ns;
13496};
13497__webpack_require__.n=function(module){
13498var getter=module&&module.__esModule?
13499function getDefault(){return module['default'];}:
13500function getModuleExports(){return module;};
13501__webpack_require__.d(getter,'a',getter);
13502return getter;
13503};
13504__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};
13505__webpack_require__.p="";
13506return __webpack_require__(__webpack_require__.s=8);
13507})
13508({
13509"./foundation.core":
13510(function(module,exports){
13511module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_core__;
13512}),
13513"./foundation.smoothScroll":
13514(function(module,exports){
13515module.exports=__WEBPACK_EXTERNAL_MODULE__foundation_smoothScroll__;
13516}),
13517"./js/entries/plugins/foundation.magellan.js":
13518(function(module,__webpack_exports__,__webpack_require__){
13519"use strict";
13520__webpack_require__.r(__webpack_exports__);
13521var _foundation_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./foundation.core");
13522var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
13523__webpack_require__.d(__webpack_exports__,"Foundation",function(){return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"];});
13524var _foundation_magellan__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./js/foundation.magellan.js");
13525__webpack_require__.d(__webpack_exports__,"Magellan",function(){return _foundation_magellan__WEBPACK_IMPORTED_MODULE_1__["Magellan"];});
13526_foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_magellan__WEBPACK_IMPORTED_MODULE_1__["Magellan"],'Magellan');
13527}),
13528"./js/foundation.magellan.js":
13529(function(module,__webpack_exports__,__webpack_require__){
13530"use strict";
13531__webpack_require__.r(__webpack_exports__);
13532__webpack_require__.d(__webpack_exports__,"Magellan",function(){return Magellan;});
13533var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("jquery");
13534var jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
13535var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./foundation.core");
13536var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
13537var _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./foundation.smoothScroll");
13538var _foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_2__);
13539function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}
13540function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}
13541function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
13542function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
13543function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}
13544function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}
13545function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
13546function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
13547function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
13548var Magellan=
13549function(_Plugin){
13550_inherits(Magellan,_Plugin);
13551function Magellan(){
13552_classCallCheck(this,Magellan);
13553return _possibleConstructorReturn(this,_getPrototypeOf(Magellan).apply(this,arguments));
13554}
13555_createClass(Magellan,[{
13556key:"_setup",
13557value:function _setup(element,options){
13558this.$element=element;
13559this.options=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},Magellan.defaults,this.$element.data(),options);
13560this.className='Magellan';
13561this._init();
13562this.calcPoints();
13563}
13564},{
13565key:"_init",
13566value:function _init(){
13567var id=this.$element[0].id||Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6,'magellan');
13568var _this=this;
13569this.$targets=jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-magellan-target]');
13570this.$links=this.$element.find('a');
13571this.$element.attr({
13572'data-resize':id,
13573'data-scroll':id,
13574'id':id
13575});
13576this.$active=jquery__WEBPACK_IMPORTED_MODULE_0___default()();
13577this.scrollPos=parseInt(window.pageYOffset,10);
13578this._events();
13579}
13580},{
13581key:"calcPoints",
13582value:function calcPoints(){
13583var _this=this,
13584body=document.body,
13585html=document.documentElement;
13586this.points=[];
13587this.winHeight=Math.round(Math.max(window.innerHeight,html.clientHeight));
13588this.docHeight=Math.round(Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight));
13589this.$targets.each(function(){
13590var $tar=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),
13591pt=Math.round($tar.offset().top-_this.options.threshold);
13592$tar.targetPoint=pt;
13593_this.points.push(pt);
13594});
13595}
13596},{
13597key:"_events",
13598value:function _events(){
13599var _this=this,
13600$body=jquery__WEBPACK_IMPORTED_MODULE_0___default()('html, body'),
13601opts={
13602duration:_this.options.animationDuration,
13603easing:_this.options.animationEasing
13604};
13605jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).one('load',function(){
13606if(_this.options.deepLinking){
13607if(location.hash){
13608_this.scrollToLoc(location.hash);
13609}
13610}
13611_this.calcPoints();
13612_this._updateActive();
13613});
13614_this.onLoadListener=Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),function(){
13615_this.$element.on({
13616'resizeme.zf.trigger':_this.reflow.bind(_this),
13617'scrollme.zf.trigger':_this._updateActive.bind(_this)
13618}).on('click.zf.magellan','a[href^="#"]',function(e){
13619e.preventDefault();
13620var arrival=this.getAttribute('href');
13621_this.scrollToLoc(arrival);
13622});
13623});
13624this._deepLinkScroll=function(e){
13625if(_this.options.deepLinking){
13626_this.scrollToLoc(window.location.hash);
13627}
13628};
13629jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('hashchange',this._deepLinkScroll);
13630}
13631},{
13632key:"scrollToLoc",
13633value:function scrollToLoc(loc){
13634this._inTransition=true;
13635var _this=this;
13636var options={
13637animationEasing:this.options.animationEasing,
13638animationDuration:this.options.animationDuration,
13639threshold:this.options.threshold,
13640offset:this.options.offset
13641};
13642_foundation_smoothScroll__WEBPACK_IMPORTED_MODULE_2__["SmoothScroll"].scrollToLoc(loc,options,function(){
13643_this._inTransition=false;
13644});
13645}
13646},{
13647key:"reflow",
13648value:function reflow(){
13649this.calcPoints();
13650this._updateActive();
13651}
13652},{
13653key:"_updateActive",
13654value:function _updateActive()
13655{
13656var _this2=this;
13657if(this._inTransition)return;
13658var newScrollPos=parseInt(window.pageYOffset,10);
13659var isScrollingUp=this.scrollPos>newScrollPos;
13660this.scrollPos=newScrollPos;
13661var activeIdx;
13662if(newScrollPos<this.points[0]){}
13663else if(newScrollPos+this.winHeight===this.docHeight){
13664activeIdx=this.points.length-1;
13665}
13666else{
13667var visibleLinks=this.points.filter(function(p,i){
13668return p-_this2.options.offset-(isScrollingUp?_this2.options.threshold:0)<=newScrollPos;
13669});
13670activeIdx=visibleLinks.length?visibleLinks.length-1:0;
13671}
13672var $oldActive=this.$active;
13673var activeHash='';
13674if(typeof activeIdx!=='undefined'){
13675this.$active=this.$links.filter('[href="#'+this.$targets.eq(activeIdx).data('magellan-target')+'"]');
13676if(this.$active.length)activeHash=this.$active[0].getAttribute('href');
13677}else{
13678this.$active=jquery__WEBPACK_IMPORTED_MODULE_0___default()();
13679}
13680var isNewActive=!(!this.$active.length&&!$oldActive.length)&&!this.$active.is($oldActive);
13681var isNewHash=activeHash!==window.location.hash;
13682if(isNewActive){
13683$oldActive.removeClass(this.options.activeClass);
13684this.$active.addClass(this.options.activeClass);
13685}
13686if(this.options.deepLinking&&isNewHash){
13687if(window.history.pushState){
13688var url=activeHash?activeHash:window.location.pathname+window.location.search;
13689window.history.pushState(null,null,url);
13690}else{
13691window.location.hash=activeHash;
13692}
13693}
13694if(isNewActive){
13695this.$element.trigger('update.zf.magellan',[this.$active]);
13696}
13697}
13698},{
13699key:"_destroy",
13700value:function _destroy(){
13701this.$element.off('.zf.trigger .zf.magellan').find(".".concat(this.options.activeClass)).removeClass(this.options.activeClass);
13702if(this.options.deepLinking){
13703var hash=this.$active[0].getAttribute('href');
13704window.location.hash.replace(hash,'');
13705}
13706jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off('hashchange',this._deepLinkScroll);
13707if(this.onLoadListener)jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
13708}
13709}]);
13710return Magellan;
13711}(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
13712Magellan.defaults={
13713animationDuration:500,
13714animationEasing:'linear',
13715threshold:50,
13716activeClass:'is-active',
13717deepLinking:false,
13718offset:0
13719};
13720})
13720,
137218:
13722(function(module,exports,__webpack_require__){
13723module.exports=__webpack_require__("./js/entries/plugins/foundation.magellan.js");
13724}),
13725"jquery":
13726(function(module,exports){
13727module.exports=__WEBPACK_EXTERNAL_MODULE_jquery__;
13728})
13729});
13730});
13731jQuery(function($){
13732$(document).foundation();
13733$(document).on('contentChanged',function(event){
13734$(event.target).foundation();
13735});
13736$('[data-accordion]').on('down.zf.accordion',function(event,element){
13737window.dispatchEvent(new Event('resize'));
13738});
13739let foundationPluginDataAttributeSelectors=[];
13740if(Foundation._plugins!==undefined){
13741Object.keys(Foundation._plugins).forEach(pluginName=>{
13742foundationPluginDataAttributeSelectors.push("[data-"+pluginName+"]");
13743});
13744}
13745var mutationObserver=new MutationObserver(function(mutations){
13746mutations.forEach(function(mutation){
13747for(let i=0;i<mutation.addedNodes.length;i++){
13748let addedNode=mutation.addedNodes[i];
13749if(typeof addedNode.querySelector==='function'){
13750foundationPluginDataAttributeSelectors.forEach(selector=>{
13751if(addedNode.matches(selector)){
13752$(addedNode).foundation();
13753}
13754addedNode.querySelectorAll(selector).forEach(descendant=>{
13755$(descendant).foundation();
13756});
13757});
13758if(foundationPluginDataAttributeSelectors.length===0){
13759$(addedNode).foundation();
13760}
13761}
13762}
13763});
13764});
13765var mutationObserverOptions={attributes:false,childList:true,characterData:false,subtree:true};
13766mutationObserver.observe(document.body,mutationObserverOptions);
13767});$(function(){
13768var allSidenavItems=$('.side-navigation__item');
13769allSidenavItems.each(function(index,element){
13770var $el=$(element);
13771var $elClasses=$el.attr("class");
13772var $elList=$el.find("> .side-navigation");
13773if($elList.length!==0){
13774var $link=$el.find("> .side-navigation__link");
13775var $linkClasses=$link.attr("class");
13776var $linkText=$link.text();
13777var $duplicateLinkLi=$('<li></li>');
13778var $duplicateLinkA=$('<a></a>').text($linkText);
13779var relevantAttrs=["href","target","rel","title"];
13780for(var i=0;i<relevantAttrs.length;i++){
13781$duplicateLinkA.attr(relevantAttrs[i],$link.attr(relevantAttrs[i]));
13782}
13783$duplicateLinkLi.attr("class",$elClasses).addClass("sidenav-duplicate-link-li");
13784$duplicateLinkA
13785.attr("class",$linkClasses)
13786.removeClass("accordion-title")
13787.removeClass("side-navigation__link-is-trail")
13788.addClass("sidenav-duplicate-link");
13789$duplicateLinkLi.append($duplicateLinkA);
13790$elList.prepend($duplicateLinkLi);
13791}
13792});
13793});
13794!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Vue=e()}(this,(function(){"use strict";var t=Object.freeze({}),e=Array.isArray;function n(t){return null==t}function r(t){return null!=t}function o(t){return!0===t}function i(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function a(t){return"function"==typeof t}function s(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function l(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return r(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var h=v("slot,component",!0),m=v("key,ref,slot,slot-scope,is");function g(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var y=Object.prototype.hasOwnProperty;function _(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var $=/-(\w)/g,w=b((function(t){return t.replace($,(function(t,e){return e?e.toUpperCase():""}))})),x=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,k=b((function(t){return t.replace(C,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function O(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function T(t,e){for(var n in e)t[n]=e[n];return t}function A(t){for(var e={},n=0;n<t.length;n++)t[n]&&T(e,t[n]);return e}function j(t,e,n){}var E=function(t,e,n){return!1},N=function(t){return t};function P(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var o=Array.isArray(t),i=Array.isArray(e);if(o&&i)return t.length===e.length&&t.every((function(t,n){return P(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(o||i)return!1;var a=Object.keys(t),c=Object.keys(e);return a.length===c.length&&a.every((function(n){return P(t[n],e[n])}))}catch(t){return!1}}function D(t,e){for(var n=0;n<t.length;n++)if(P(t[n],e))return n;return-1}function M(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function I(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var L="data-server-rendered",R=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","
13794serverPrefetch","renderTracked","renderTriggered"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:E,isReservedAttr:E,isUnknownElement:E,getTagNamespace:j,parsePlatformTagName:N,mustUseProp:E,async:!0,_lifecycleHooks:F},B=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function z(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^".concat(B.source,".$_\\d]"));var K="__proto__"in{},J="undefined"!=typeof window,q=J&&window.navigator.userAgent.toLowerCase(),W=q&&/msie|trident/.test(q),Z=q&&q.indexOf("msie 9.0")>0,G=q&&q.indexOf("edge/")>0;q&&q.indexOf("android");var X=q&&/iphone|ipad|ipod|ios/.test(q);q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q);var Y,Q=q&&q.match(/firefox\/(\d+)/),tt={}.watch,et=!1;if(J)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===Y&&(Y=!J&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),Y},ot=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);at="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=null;function ut(t){void 0===t&&(t=null),t||ct&&ct._scope.off(),ct=t,t&&t._scope.on()}var lt=function(){function t(t,e,n,r,o,i,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),ft=function(t){void 0===t&&(t="");var e=new lt;return e.text=t,e.isComment=!0,e};function dt(t){return new lt(void 0,void 0,void 0,String(t))}function pt(t){var e=new lt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var vt=0,ht=[],mt=function(){function t(){this._pending=!1,this.id=vt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,ht.push(this))}
vendor: 10,837 bytes, line 13794
13794,t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){for(var e=this.subs.filter((function(t){return t})),n=0,r=e.length;n<r;n++){e[n].update()}},t}();mt.target=null;var gt=[];function yt(t){gt.push(t),mt.target=t}function _t(){gt.pop(),mt.target=gt[gt.length-1]}var bt=Array.prototype,$t=Object.create(bt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=bt[t];z($t,t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o,i=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&a.observeArray(o),a.dep.notify(),i}))}));var wt=Object.getOwnPropertyNames($t),xt={},Ct=!0;function kt(t){Ct=t}var St={notify:j,depend:j,addSub:j,removeSub:j},Ot=function(){function t(t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),this.value=t,this.shallow=n,this.mock=r,this.dep=r?St:new mt,this.vmCount=0,z(t,"__ob__",this),e(t)){if(!r)if(K)t.__proto__=$t;else for(var o=0,i=wt.length;o<i;o++){z(t,s=wt[o],$t[s])}n||this.observeArray(t)}else{var a=Object.keys(t);for(o=0;o<a.length;o++){var s;At(t,s=a[o],xt,void 0,n,r)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Tt(t[e],!1,this.mock)},t}();function Tt(t,n,r){return t&&_(t,"__ob__")&&t.__ob__ instanceof Ot?t.__ob__:!Ct||!r&&rt()||!e(t)&&!u(t)||!Object.isExtensible(t)||t.__v_skip||Ft(t)||t instanceof lt?void 0:new Ot(t,n,r)}function At(t,n,r,o,i,a){var s=new mt,c=Object.getOwnPropertyDescriptor(t,n);if(!c||!1!==c.configurable){var u=c&&c.get,l=c&&c.set;u&&!l||r!==xt&&2!==arguments.length||(r=t[n]);var f=!i&&Tt(r,!1,a);return Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var n=u?u.call(t):r;return mt.target&&(s.depend(),f&&(f.dep.depend(),e(n)&&Nt(n))),Ft(n)&&!i?n.value:n},set:function(e){var n=u?u.call(t):r;if(I(n,e)){if(l)l.call(t,e);else{if(u)return;if(!i&&Ft(n)&&!Ft(e))return void(n.value=e);r=e}f=!i&&Tt(e,!1,a),s.notify()}}}),s}}function jt(t,n,r){if(!Lt(t)){var o=t.__ob__;return e(t)&&l(n)?(t.length=Math.max(t.length,n),t.splice(n,1,r),o&&!o.shallow&&o.mock&&Tt(r,!1,!0),r):n in t&&!(n in Object.prototype)?(t[n]=r,r):t._isVue||o&&o.vmCount?r:o?(At(o.value,n,r,void 0,o.shallow,o.mock),o.dep.notify(),r):(t[n]=r,r)}}function Et(t,n){if(e(t)&&l(n))t.splice(n,1);else{var r=t.__ob__;t._isVue||r&&r.vmCount||Lt(t)||_(t,n)&&(delete t[n],r&&r.dep.notify())}}function Nt(t){for(var n=void 0,r=0,o=t.length;r<o;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),e(n)&&Nt(n)}function Pt(t){return Dt(t,!0),z(t,"__v_isShallow",!0),t}function Dt(t,e){Lt(t)||Tt(t,e,rt())}function Mt(t){return Lt(t)?Mt(t.__v_raw):!(!t||!t.__ob__)}function It(t){return!(!t||!t.__v_isShallow)}function Lt(t){return!(!t||!t.__v_isReadonly)}var Rt="__v_isRef";function Ft(t){return!(!t||!0!==t.__v_isRef)}function Ht(t,e){if(Ft(t))return t;var n={};return z(n,Rt,!0),z(n,"__v_isShallow",e),z(n,"dep",At(n,"value",t,null,e,rt())),n}function Bt(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Ft(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];Ft(r)&&!Ft(t)?r.value=t:e[n]=t}})}function Ut(t,e,n){var r=t[e];if(Ft(r))return r;var o={get value(){var r=t[e];return void 0===r?n:r},set value(n){t[e]=n}};return z(o,Rt,!0),o}function zt(t){return Vt(t,!1)}function Vt(t,e){if(!u(t))return t;if(Lt(t))return t;var n=e?"__v_rawToShallowReadonly":"__v_rawToReadonly",r=t[n];if(r)return r;var o=Object.create(Object.getPrototypeOf(t));z(t,n,o),z(o,"__v_isReadonly",!0),z(o,"__v_raw",t),Ft(t)&&z(o,Rt,!0),(e||It(t))&&z(o,"__v_isShallow",!0);for(var i=Object.keys(t),a=0;a<i.length;a++)Kt(o,t,i[a],e);return o}function Kt(t,e,n,r){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];return r||!u(t)?t:zt(t)},set:function(){}})}var Jt=b((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function qt(t,n){function r(){var t=r.fns;if(!e(t))return dn(t,null,arguments,n,"v-on handler");for(var o=t.slice(),i=0;i<o.length;i++)dn(o[i],null,arguments,n,"v-on handler")}return r.fns=t,r}function Wt(t,e,r,i,a,s){var c,u,l,f;for(c in t)u=t[c],l=e[c],f=Jt(c),n(u)||(n(l)?(n(u.fns)&&(u=t[c]=qt(u,s)),o(f.once)&&(u=t[c]=a(f.name,u,f.capture)),r(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,t[c]=l));for(c in e)n(t[c])&&i((f=Jt(c)).name,e[c],f.capture)}function Zt(t,e,i){var a;t instanceof lt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function c(){i.apply(this,arguments),g(a.fns,c)}n(s)?a=qt([c]):r(s.fns)&&o(s.merged)?(a=s).fns.push(c):a=qt([s,c]),a.merged=!0,t[e]=a}function Gt(t,e,n,o,i){if(r(e)){if(_(e,n))return t[n]=e[n],i||delete e[n],!0;if(_(e,o))return t[n]=e[o],i||delete e[o],!0}return!1}function Xt(t){return i(t)?[dt(t)]:e(t)?Qt(t):void 0}function Yt(t){return r(t)&&r(t.text)&&!1===t.isComment}function Qt(t,a){var s,c,u,l,f=[];for(s=0;s<t.length;s++)n(c=t[s])||"boolean"==typeof c||(l=f[u=f.length-1],e(c)?c.length>0&&(Yt((c=Qt(c,"".concat(a||"","_").concat(s)))[0])&&Yt(l)&&(f[u]=dt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):i(c)?Yt(l)?f[u]=dt(l.text+c):""!==c&&f.push(dt(c)):Yt(c)&&Yt(l)?f[u]=dt(l.text+c.text):(o(t._isVList)&&r(c.tag)&&n(c.key)&&r(a)&&(c.key="__vlist".concat(a,"_").concat(s,"__")),f.push(c)));return f}function te(t,n,c,u,l,f){return(e(c)||i(c))&&(l=u,u=c,c=void 0),o(f)&&(l=2),function(t,n,o,i,c){if(r(o)&&r(o.__ob__))return ft();r(o)&&r(o.is)&&(n=o.is);if(!n)return ft();e(i)&&a(i[0])&&((o=o||{}).scopedSlots={default:i[0]},i.length=0);2===c?i=Xt(i):1===c&&(i=function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return Array.prototype.concat.apply([],t);return t}(i));var u,l;if("string"==typeof n){var f=void 0;l=t.$vnode&&t.$vnode.ns||H.getTagNamespace(n),u=H.isReservedTag(n)?new lt(H.parsePlatformTagName(n),o,i,void 0,void 0,t):o&&o.pre||!r(f=yr(t.$options,"components",n))?new lt(n,o,i,void 0,void 0,t):cr(f,o,t,i,n)}else u=cr(n,o,t,i);return e(u)?u:r(u)?(r(l)&&ee(u,l),r(o)&&function(t){s(t.style)&&Bn(t.style);s(t.class)&&Bn(t.class)}(o),u):ft()}(t,n,c,u,l)}function ee(t,e,i){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,i=!0),r(t.children))for(var a=0,s=t.children.length;a<s;a++){var c=t.children[a];r(c.tag)&&(n(c.ns)||o(i)&&"svg"!==c.tag)&&ee(c,e,i)}}function ne(t,n){var o,i,a,c,u=null;if(e(t)||"string"==typeof t)for(u=new Array(t.length),o=0,i=t.length;o<i;o++)u[o]=n(t[o],o);else if("number"==typeof t)for(u=new Array(t),o=0;o<t;o++)u[o]=n(o+1,o);else if(s(t))if(st&&t[Symbol.iterator]){u=[];for(var l=t[Symbol.iterator](),f=l.next();!f.done;)u.push(n(f.value,u.length)),f=l.next()}else for(a=Object.keys(t),u=new Array(a.length),o=0,i=a.length;o<i;o++)c=a[o],u[o]=n(t[c],c,o);return r(u)||(u=[]),u._isVList=!0,u}function re(t,e,n,r){var o,i=this.$scopedSlots[t];i?(n=n||{},r&&(n=T(T({},r),n)),o=i(n)||(a(e)?e():e)):o=this.$slots[t]||(a(e)?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},o):o}function oe(t){return yr(this.$options,"filters",t)||N}function ie(t,n){return e(t)?-1===t.indexOf(n):t!==n}function ae(t,e,n,r,o){var i=H.keyCodes[e]||n;return o&&r&&!H.keyCodes[e]?ie(o,r):i?ie(i,t):r?k(r)!==e:void 0===t}function se(t,n,r,o,i){if(r)if(s(r)){e(r)&&(r=A(r));var a=void 0,c=function(e){if("class"===e||"style"===e||m(e))a=t;else{var s=t.attrs&&t.attrs.type;a=o||H.mustUseProp(n,s,e)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=w(e),u=k(e);c in a||u in a||(a[e]=r[e],i&&((t.on||(t.on={}))["update:".concat(e)]=function(t){r[e]=t}))};for(var u in r)c(u)}else;return t}function ce(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||le(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r}function ue(t,e,n){return le(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function le(t,n,r){if(e(t))for(var o=0;o<t.length;o++)t[o]&&"string"!=typeof t[o]&&fe(t[o],"".concat(n,"_").concat(o),r);else fe(t,n,r)}function fe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function de(t,e){if(e)if(u(e)){var n=t.on=t.on?T({},t.on):{};for(var r in e){var o=n[r],i=e[r];n[r]=o?[].concat(o,i):i}}else;return t}function pe(t,n,r,o){n=n||{$stable:!r};for(var i=0;i<t.length;i++){var a=t[i];e(a)?pe(a,n,r):a&&(a.proxy&&(a.fn.proxy=!0),n[a.key]=a.fn)}return o&&(n.$key=o),n}function ve(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function he(t,e){return"string"==typeof t?e+t:t}function me(t){t._o=ue,t._n=p,t._s=d,t._l=ne,t._t=re,t._q=P,t._i=D,t._m=ce,t._f=oe,t._k=ae,t._b=se,t._v=dt,t._e=ft,t._u=pe,t._g=de,t._d=ve,t._p=he}function ge(t,e){if(!t||!t.length)return{};for(var n={},r=0,o=t.length;r<o;r++){var i=t[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==e&&i.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(i);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}for(var u in n)n[u].every(ye)&&delete n[u];return n}function ye(t){return t.isComment&&!t.asyncFactory||" "===t.text}function _e(t){return t.isComment&&t.asyncFactory}function be(e,n,r,o){var i,a=Object.keys(r).length>0,s=n?!!n.$stable:!a,c=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&o&&o!==t&&c===o.$key&&!a&&!o.$hasNormal)return o;for(var u in i={},n)n[u]&&"$"!==u[0]&&(i[u]=$e(e,r,u,n[u]))}else i={};for(var l in r)l in i||(i[l]=we(r,l));return n&&Object.isExtensible(n)&&(n._normalized=i),z(i,"$stable",s),z(i,"$key",c),z(i,"$hasNormal",a),i}function $e(t,n,r,o){var i=function(){var n=ct;ut(t);var r=arguments.length?o.apply(null,arguments):o({}),i=(r=r&&"object"==typeof r&&!e(r)?[r]:Xt(r))&&r[0];return ut(n),r&&(!i||1===r.length&&i.isComment&&!_e(i))?void 0:r};return o.proxy&&Object.defineProperty(n,r,{get:i,enumerable:!0,configurable:!0}),i}function we(t,e){return function(){return t[e]}}function xe(e){return{get attrs(){if(!e._attrsProxy){var n=e._attrsProxy={};z(n,"_v_attr_proxy",!0),Ce(n,e.$attrs,t,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||Ce(e._listenersProxy={},e.$listeners,t,e,"$listeners");return e._listenersProxy},get slots(){return function(t){t._slotsProxy||Se(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(e)},emit:S(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Bt(e,t,n)}))}}}function Ce(t,e,n,r,o){var i=!1;for(var a in e)a in t?e[a]!==n[a]&&(i=!0):(i=!0,ke(t,a,r,o));for(var a in t)a in e||(i=!0,delete t[a]);return i}function ke(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function Se(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function Oe(){var t=ct;return t._setupContext||(t._setupContext=xe(t))}var Te,Ae=null;
vendor: 1,538 bytes, line 13794
13794function je(t,e){return(t.__esModule||st&&"Module"===t[Symbol.toStringTag])&&(t=t.default),s(t)?e.extend(t):t}function Ee(t){if(e(t))for(var n=0;n<t.length;n++){var o=t[n];if(r(o)&&(r(o.componentOptions)||_e(o)))return o}}function Ne(t,e){Te.$on(t,e)}function Pe(t,e){Te.$off(t,e)}function De(t,e){var n=Te;return function r(){var o=e.apply(null,arguments);null!==o&&n.$off(t,r)}}function Me(t,e,n){Te=t,Wt(e,n||{},Ne,Pe,De,t),Te=void 0}var Ie=null;function Le(t){var e=Ie;return Ie=t,function(){Ie=e}}function Re(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Fe(t,e){if(e){if(t._directInactive=!1,Re(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Fe(t.$children[n]);Be(t,"activated")}}function He(t,e){if(!(e&&(t._directInactive=!0,Re(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)He(t.$children[n]);Be(t,"deactivated")}}function Be(t,e,n,r){void 0===r&&(r=!0),yt();var o=ct;r&&ut(t);var i=t.$options[e],a="".concat(e," hook");if(i)for(var s=0,c=i.length;s<c;s++)dn(i[s],t,n||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&ut(o),_t()}var Ue=[],ze=[],Ve={},Ke=!1,Je=!1,qe=0;var We=0,Ze=Date.now;if(J&&!W){var Ge=window.performance;Ge&&"function"==typeof Ge.now&&Ze()>document.createEvent("Event").timeStamp&&(Ze=function(){return Ge.now()})}var Xe=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Ye(){var t,e;for(We=Ze(),Je=!0,Ue.sort(Xe),qe=0;qe<Ue.length;
vendor: 9,293 bytes, line 13794
13794qe++)(t=Ue[qe]).before&&t.before(),e=t.id,Ve[e]=null,t.run();var n=ze.slice(),r=Ue.slice();qe=Ue.length=ze.length=0,Ve={},Ke=Je=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Fe(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Be(r,"updated")}}(r),function(){for(var t=0;t<ht.length;t++){var e=ht[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}ht.length=0}(),ot&&H.devtools&&ot.emit("flush")}function Qe(t){var e=t.id;if(null==Ve[e]&&(t!==mt.target||!t.noRecurse)){if(Ve[e]=!0,Je){for(var n=Ue.length-1;n>qe&&Ue[n].id>t.id;)n--;Ue.splice(n+1,0,t)}else Ue.push(t);Ke||(Ke=!0,Cn(Ye))}}var tn="watcher",en="".concat(tn," callback"),nn="".concat(tn," getter"),rn="".concat(tn," cleanup");function on(t,e){return cn(t,null,{flush:"post"})}var an,sn={};function cn(n,r,o){var i=void 0===o?t:o,s=i.immediate,c=i.deep,u=i.flush,l=void 0===u?"pre":u;i.onTrack,i.onTrigger;var f,d,p=ct,v=function(t,e,n){return void 0===n&&(n=null),dn(t,null,n,p,e)},h=!1,m=!1;if(Ft(n)?(f=function(){return n.value},h=It(n)):Mt(n)?(f=function(){return n.__ob__.dep.depend(),n},c=!0):e(n)?(m=!0,h=n.some((function(t){return Mt(t)||It(t)})),f=function(){return n.map((function(t){return Ft(t)?t.value:Mt(t)?Bn(t):a(t)?v(t,nn):void 0}))}):f=a(n)?r?function(){return v(n,nn)}:function(){if(!p||!p._isDestroyed)return d&&d(),v(n,tn,[y])}:j,r&&c){var g=f;f=function(){return Bn(g())}}var y=function(t){d=_.onStop=function(){v(t,rn)}};if(rt())return y=j,r?s&&v(r,en,[f(),m?[]:void 0,y]):f(),j;var _=new Vn(ct,f,j,{lazy:!0});_.noRecurse=!r;var b=m?[]:sn;return _.run=function(){if(_.active)if(r){var t=_.get();(c||h||(m?t.some((function(t,e){return I(t,b[e])})):I(t,b)))&&(d&&d(),v(r,en,[t,b===sn?void 0:b,y]),b=t)}else _.get()},"sync"===l?_.update=_.run:"post"===l?(_.post=!0,_.update=function(){return Qe(_)}):_.update=function(){if(p&&p===ct&&!p._isMounted){var t=p._preWatchers||(p._preWatchers=[]);t.indexOf(_)<0&&t.push(_)}else Qe(_)},r?s?_.run():b=_.get():"post"===l&&p?p.$once("hook:mounted",(function(){return _.get()})):_.get(),function(){_.teardown()}}var un=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=an,!t&&an&&(this.index=(an.scopes||(an.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=an;try{return an=this,t()}finally{an=e}}},t.prototype.on=function(){an=this},t.prototype.off=function(){an=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();function ln(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function fn(t,e,n){yt();try{if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,t,e,n))return}catch(t){pn(t,r,"errorCaptured hook")}}pn(t,e,n)}finally{_t()}}function dn(t,e,n,r,o){var i;try{(i=n?t.apply(e,n):t.call(e))&&!i._isVue&&f(i)&&!i._handled&&(i.catch((function(t){return fn(t,r,o+" (Promise/async)")})),i._handled=!0)}catch(t){fn(t,r,o)}return i}function pn(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(e){e!==t&&vn(e)}vn(t)}function vn(t,e,n){if(!J||"undefined"==typeof console)throw t;console.error(t)}var hn,mn=!1,gn=[],yn=!1;function _n(){yn=!1;var t=gn.slice(0);gn.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&it(Promise)){var bn=Promise.resolve();hn=function(){bn.then(_n),X&&setTimeout(j)},mn=!0}else if(W||"undefined"==typeof MutationObserver||!it(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())hn="undefined"!=typeof setImmediate&&it(setImmediate)?function(){setImmediate(_n)}:function(){setTimeout(_n,0)};else{var $n=1,wn=new MutationObserver(_n),xn=document.createTextNode(String($n));wn.observe(xn,{characterData:!0}),hn=function(){$n=($n+1)%2,xn.data=String($n)},mn=!0}function Cn(t,e){var n;if(gn.push((function(){if(t)try{t.call(e)}catch(t){fn(t,e,"nextTick")}else n&&n(e)})),yn||(yn=!0,hn()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function kn(t){return function(e,n){if(void 0===n&&(n=ct),n)return function(t,e,n){var r=t.$options;r[e]=vr(r[e],n)}(n,t,e)}}var Sn=kn("beforeMount"),On=kn("mounted"),Tn=kn("beforeUpdate"),An=kn("updated"),jn=kn("beforeDestroy"),En=kn("destroyed"),Nn=kn("activated"),Pn=kn("deactivated"),Dn=kn("serverPrefetch"),Mn=kn("renderTracked"),In=kn("renderTriggered"),Ln=kn("errorCaptured");var Rn="2.7.14";var Fn=Object.freeze({__proto__:null,version:Rn,defineComponent:function(t){return t},ref:function(t){return Ht(t,!1)},shallowRef:function(t){return Ht(t,!0)},isRef:Ft,toRef:Ut,toRefs:function(t){var n=e(t)?new Array(t.length):{};for(var r in t)n[r]=Ut(t,r);return n},unref:function(t){return Ft(t)?t.value:t},proxyRefs:function(t){if(Mt(t))return t;for(var e={},n=Object.keys(t),r=0;r<n.length;r++)Bt(e,t,n[r]);return e},customRef:function(t){var e=new mt,n=t((function(){e.depend()}),(function(){e.notify()})),r=n.get,o=n.set,i={get value(){return r()},set value(t){o(t)}};return z(i,Rt,!0),i},triggerRef:function(t){t.dep&&t.dep.notify()},reactive:function(t){return Dt(t,!1),t},isReactive:Mt,isReadonly:Lt,isShallow:It,isProxy:function(t){return Mt(t)||Lt(t)},shallowReactive:Pt,markRaw:function(t){return Object.isExtensible(t)&&z(t,"__v_skip",!0),t},toRaw:function t(e){var n=e&&e.__v_raw;return n?t(n):e},readonly:zt,shallowReadonly:function(t){return Vt(t,!0)},computed:function(t,e){var n,r,o=a(t);o?(n=t,r=j):(n=t.get,r=t.set);var i=rt()?null:new Vn(ct,n,j,{lazy:!0}),s={effect:i,get value(){return i?(i.dirty&&i.evaluate(),mt.target&&i.depend(),i.value):n()},set value(t){r(t)}};return z(s,Rt,!0),z(s,"__v_isReadonly",o),s},watch:function(t,e,n){return cn(t,e,n)},watchEffect:function(t,e){return cn(t,null,e)},watchPostEffect:on,watchSyncEffect:function(t,e){return cn(t,null,{flush:"sync"})},EffectScope:un,effectScope:function(t){return new un(t)},onScopeDispose:function(t){an&&an.cleanups.push(t)},getCurrentScope:function(){return an},provide:function(t,e){ct&&(ln(ct)[t]=e)},inject:function(t,e,n){void 0===n&&(n=!1);var r=ct;if(r){var o=r.$parent&&r.$parent._provided;if(o&&t in o)return o[t];if(arguments.length>1)return n&&a(e)?e.call(r):e}},h:function(t,e,n){return te(ct,t,e,n,2,!0)},getCurrentInstance:function(){return ct&&{proxy:ct}},useSlots:function(){return Oe().slots},useAttrs:function(){return Oe().attrs},useListeners:function(){return Oe().listeners},mergeDefaults:function(t,n){var r=e(t)?t.reduce((function(t,e){return t[e]={},t}),{}):t;for(var o in n){var i=r[o];i?e(i)||a(i)?r[o]={type:i,default:n[o]}:i.default=n[o]:null===i&&(r[o]={default:n[o]})}return r},nextTick:Cn,set:jt,del:Et,useCssModule:function(e){return t},useCssVars:function(t){if(J){var e=ct;e&&on((function(){var n=e.$el,r=t(e,e._setupProxy);if(n&&1===n.nodeType){var o=n.style;for(var i in r)o.setProperty("--".concat(i),r[i])}}))}},defineAsyncComponent:function(t){a(t)&&(t={loader:t});var e=t.loader,n=t.loadingComponent,r=t.errorComponent,o=t.delay,i=void 0===o?200:o,s=t.timeout;t.suspensible;var c=t.onError,u=null,l=0,f=function(){var t;return u||(t=u=e().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise((function(e,n){c(t,(function(){return e((l++,u=null,f()))}),(function(){return n(t)}),l+1)}));throw t})).then((function(e){return t!==u&&u?u:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e)})))};return function(){return{component:f(),delay:i,timeout:s,error:r,loading:n}}},onBeforeMount:Sn,onMounted:On,onBeforeUpdate:Tn,onUpdated:An,onBeforeUnmount:jn,onUnmounted:En,onActivated:Nn,onDeactivated:Pn,onServerPrefetch:Dn,onRenderTracked:Mn,onRenderTriggered:In,onErrorCaptured:function(t,e){void 0===e&&(e=ct),Ln(t,e)}}),Hn=new at;function Bn(t){return Un(t,Hn),Hn.clear(),t}function Un(t,n){var r,o,i=e(t);if(!(!i&&!s(t)||t.__v_skip||Object.isFrozen(t)||t instanceof lt)){if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(i)for(r=t.length;r--;)Un(t[r],n);else if(Ft(t))Un(t.value,n);else for(r=(o=Object.keys(t)).length;r--;)Un(t[o[r]],n)}}var zn=0,Vn=function(){function t(t,e,n,r,o){!function(t,e){void 0===e&&(e=an),e&&e.active&&e.effects.push(t)}(this,an&&!an._vm?an:t?t._scope:void 0),(this.vm=t)&&o&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++zn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new at,this.newDepIds=new at,this.expression="",a(e)?this.getter=e:(this.getter=function(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;
vendor: 1,057 bytes, line 13794
13794yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;fn(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&Bn(t),_t(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qe(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');dn(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1}
vendor: 15,275 bytes, line 13794
13794,t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&g(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}(),Kn={enumerable:!0,configurable:!0,get:j,set:j};function Jn(t,e,n){Kn.get=function(){return this[e][n]},Kn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Kn)}function qn(t){var n=t.$options;if(n.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=Pt({}),o=t.$options._propKeys=[];t.$parent&&kt(!1);var i=function(i){o.push(i);var a=_r(i,e,n,t);At(r,i,a),i in t||Jn(t,"_props",i)};for(var a in e)i(a);kt(!0)}(t,n.props),function(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=xe(t);ut(t),yt();var o=dn(n,null,[t._props||Pt({}),r],t,"setup");if(_t(),ut(),a(o))e.render=o;else if(s(o))if(t._setupState=o,o.__sfc){var i=t._setupProxy={};for(var c in o)"__sfc"!==c&&Bt(i,o,c)}else for(var c in o)U(c)||Bt(t,o,c)}}(t),n.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?j:S(e[n],t)}(t,n.methods),n.data)!function(t){var e=t.$options.data;u(e=t._data=a(e)?function(t,e){yt();try{return t.call(e,e)}catch(t){return fn(t,e,"data()"),{}}finally{_t()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props;t.$options.methods;var o=n.length;for(;o--;){var i=n[o];r&&_(r,i)||U(i)||Jn(t,"_data",i)}var s=Tt(e);s&&s.vmCount++}(t);else{var r=Tt(t._data={});r&&r.vmCount++}n.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var o in e){var i=e[o],s=a(i)?i:i.get;r||(n[o]=new Vn(t,s||j,j,Wn)),o in t||Zn(t,o,i)}}(t,n.computed),n.watch&&n.watch!==tt&&function(t,n){for(var r in n){var o=n[r];if(e(o))for(var i=0;i<o.length;i++)Yn(t,r,o[i]);else Yn(t,r,o)}}(t,n.watch)}var Wn={lazy:!0};function Zn(t,e,n){var r=!rt();a(n)?(Kn.get=r?Gn(e):Xn(n),Kn.set=j):(Kn.get=n.get?r&&!1!==n.cache?Gn(e):Xn(n.get):j,Kn.set=n.set||j),Object.defineProperty(t,e,Kn)}function Gn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function Xn(t){return function(){return t.call(this,this)}}function Yn(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function Qn(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var s=t[i].from;if(s in e._provided)n[i]=e._provided[s];else if("default"in t[i]){var c=t[i].default;n[i]=a(c)?c.call(e):c}}}return n}}var tr=0;function er(t){var e=t.options;if(t.super){var n=er(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&T(t.extendOptions,r),(e=t.options=gr(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function nr(n,r,i,a,s){var c,u=this,l=s.options;_(a,"_uid")?(c=Object.create(a))._original=a:(c=a,a=a._original);var f=o(l._compiled),d=!f;this.data=n,this.props=r,this.children=i,this.parent=a,this.listeners=n.on||t,this.injections=Qn(l.inject,a),this.slots=function(){return u.$slots||be(a,n.scopedSlots,u.$slots=ge(i,a)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return be(a,n.scopedSlots,this.slots())}}),f&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=be(a,n.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,n,r,o){var i=te(c,t,n,r,o,d);return i&&!e(i)&&(i.fnScopeId=l._scopeId,i.fnContext=a),i}:this._c=function(t,e,n,r){return te(c,t,e,n,r,d)}}function rr(t,e,n,r,o){var i=pt(t);return i.fnContext=n,i.fnOptions=r,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function or(t,e){for(var n in e)t[w(n)]=e[n]}function ir(t){return t.name||t.__name||t._componentTag}me(nr.prototype);var ar={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;ar.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},o=t.data.inlineTemplate;r(o)&&(n.render=o.render,n.staticRenderFns=o.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Ie)).$mount(e?t.elm:void 0,e)}},prepatch:function(e,n){var r=n.componentOptions;!function(e,n,r,o,i){var a=o.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==t&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),u=!!(i||e.$options._renderChildren||c),l=e.$vnode;e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i;var f=o.data.attrs||t;e._attrsProxy&&Ce(e._attrsProxy,f,l.data&&l.data.attrs||t,e,"$attrs")&&(u=!0),e.$attrs=f,r=r||t;var d=e.$options._parentListeners;if(e._listenersProxy&&Ce(e._listenersProxy,r,d||t,e,"$listeners"),e.$listeners=e.$options._parentListeners=r,Me(e,r,d),n&&e.$options.props){kt(!1);for(var p=e._props,v=e.$options._propKeys||[],h=0;h<v.length;h++){var m=v[h],g=e.$options.props;p[m]=_r(m,g,n,e)}kt(!0),e.$options.propsData=n}u&&(e.$slots=ge(i,o.context),e.$forceUpdate())}(n.componentInstance=e.componentInstance,r.propsData,r.listeners,n,r.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,Be(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,ze.push(e)):Fe(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?He(e,!0):e.$destroy())}},sr=Object.keys(ar);function cr(i,a,c,u,l){if(!n(i)){var d=c.$options._base;if(s(i)&&(i=d.extend(i)),"function"==typeof i){var p;if(n(i.cid)&&(i=function(t,e){if(o(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;var i=Ae;if(i&&r(t.owners)&&-1===t.owners.indexOf(i)&&t.owners.push(i),o(t.loading)&&r(t.loadingComp))return t.loadingComp;if(i&&!r(t.owners)){var a=t.owners=[i],c=!0,u=null,l=null;i.$on("hook:destroyed",(function(){return g(a,i)}));var d=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},p=M((function(n){t.resolved=je(n,e),c?a.length=0:d(!0)})),v=M((function(e){r(t.errorComp)&&(t.error=!0,d(!0))})),h=t(p,v);return s(h)&&(f(h)?n(t.resolved)&&h.then(p,v):f(h.component)&&(h.component.then(p,v),r(h.error)&&(t.errorComp=je(h.error,e)),r(h.loading)&&(t.loadingComp=je(h.loading,e),0===h.delay?t.loading=!0:u=setTimeout((function(){u=null,n(t.resolved)&&n(t.error)&&(t.loading=!0,d(!1))}),h.delay||200)),r(h.timeout)&&(l=setTimeout((function(){l=null,n(t.resolved)&&v(null)}),h.timeout)))),c=!1,t.loading?t.loadingComp:t.resolved}}(p=i,d),void 0===i))return function(t,e,n,r,o){var i=ft();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}(p,a,c,u,l);a=a||{},er(i),r(a.model)&&function(t,n){var o=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(n.attrs||(n.attrs={}))[o]=n.model.value;var a=n.on||(n.on={}),s=a[i],c=n.model.callback;r(s)?(e(s)?-1===s.indexOf(c):s!==c)&&(a[i]=[c].concat(s)):a[i]=c}(i.options,a);var v=function(t,e,o){var i=e.options.props;if(!n(i)){var a={},s=t.attrs,c=t.props;if(r(s)||r(c))for(var u in i){var l=k(u);Gt(a,c,u,l,!0)||Gt(a,s,u,l,!1)}return a}}(a,i);if(o(i.options.functional))return function(n,o,i,a,s){var c=n.options,u={},l=c.props;if(r(l))for(var f in l)u[f]=_r(f,l,o||t);else r(i.attrs)&&or(u,i.attrs),r(i.props)&&or(u,i.props);var d=new nr(i,u,s,a,n),p=c.render.call(null,d._c,d);if(p instanceof lt)return rr(p,i,d.parent,c);if(e(p)){for(var v=Xt(p)||[],h=new Array(v.length),m=0;m<v.length;m++)h[m]=rr(v[m],i,d.parent,c);return h}}(i,v,a,c,u);var h=a.on;if(a.on=a.nativeOn,o(i.options.abstract)){var m=a.slot;a={},m&&(a.slot=m)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<sr.length;n++){var r=sr[n],o=e[r],i=ar[r];o===i||o&&o._merged||(e[r]=o?ur(i,o):i)}}(a);var y=ir(i.options)||l;return new lt("vue-component-".concat(i.cid).concat(y?"-".concat(y):""),a,void 0,void 0,void 0,c,{Ctor:i,propsData:v,listeners:h,tag:l,children:u},p)}}}function ur(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var lr=j,fr=H.optionMergeStrategies;function dr(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var r,o,i,a=st?Reflect.ownKeys(e):Object.keys(e),s=0;s<a.length;s++)"__ob__"!==(r=a[s])&&(o=t[r],i=e[r],n&&_(t,r)?o!==i&&u(o)&&u(i)&&dr(o,i):jt(t,r,i));return t}function pr(t,e,n){return n?function(){var r=a(e)?e.call(n,n):e,o=a(t)?t.call(n,n):t;return r?dr(r,o):o}:e?t?function(){return dr(a(e)?e.call(this,this):e,a(t)?t.call(this,this):t)}:e:t}function vr(t,n){var r=n?t?t.concat(n):e(n)?n:[n]:t;return r?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(r):r}function hr(t,e,n,r){var o=Object.create(t||null);return e?T(o,e):o}fr.data=function(t,e,n){return n?pr(t,e,n):e&&"function"!=typeof e?t:pr(t,e)},F.forEach((function(t){fr[t]=vr})),R.forEach((function(t){fr[t+"s"]=hr})),fr.watch=function(t,n,r,o){if(t===tt&&(t=void 0),n===tt&&(n=void 0),!n)return Object.create(t||null);if(!t)return n;var i={};for(var a in T(i,t),n){var s=i[a],c=n[a];s&&!e(s)&&(s=[s]),i[a]=s?s.concat(c):e(c)?c:[c]}return i},fr.props=fr.methods=fr.inject=fr.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return T(o,t),e&&T(o,e),o},fr.provide=function(t,e){return t?function(){var n=Object.create(null);return dr(n,a(t)?t.call(this):t),e&&dr(n,a(e)?e.call(this):e,!1),n}:e};var mr=function(t,e){return void 0===e?t:e};function gr(t,n,r){if(a(n)&&(n=n.options),function(t,n){var r=t.props;if(r){var o,i,a={};if(e(r))for(o=r.length;o--;)"string"==typeof(i=r[o])&&(a[w(i)]={type:null});else if(u(r))for(var s in r)i=r[s],a[w(s)]=u(i)?i:{type:i};t.props=a}}(n),function(t,n){var r=t.inject;if(r){var o=t.inject={};if(e(r))for(var i=0;i<r.length;i++)o[r[i]]={from:r[i]};else if(u(r))for(var a in r){var s=r[a];o[a]=u(s)?T({from:a},s):{from:s}}}}(n),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];a(r)&&(e[n]={bind:r,update:r})}}(n),!n._base&&(n.extends&&(t=gr(t,n.extends,r)),n.mixins))for(var o=0,i=n.mixins.length;o<i;o++)t=gr(t,n.mixins[o],r);var s,c={};for(s in t)l(s);for(s in n)_(t,s)||l(s);function l(e){var o=fr[e]||mr;c[e]=o(t[e],n[e],r,e)}return c}function yr(t,e,n,r){if("string"==typeof n){var o=t[e];if(_(o,n))return o[n];var i=w(n);if(_(o,i))return o[i];var a=x(i);return _(o,a)?o[a]:o[n]||o[i]||o[a]}}function _r(t,e,n,r){var o=e[t],i=!_(n,t),s=n[t],c=xr(Boolean,o.type);if(c>-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===k(t)){var u=xr(String,o.type);(u<0||c<u)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(!_(e,"default"))return;var r=e.default;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return a(r)&&"Function"!==$r(e.type)?r.call(t):r}(r,o,t);var l=Ct;kt(!0),Tt(s),kt(l)}return s}var br=/^\s*function (\w+)/;function $r(t){var e=t&&t.toString().match(br);return e?e[1]:""}function wr(t,e){return $r(t)===$r(e)}function xr(t,n){if(!e(n))return wr(n,t)?0:-1;for(var r=0,o=n.length;r<o;r++)if(wr(n[r],t))return r;return-1}function Cr(t){this._init(t)}function kr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=ir(t)||ir(n.options),a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=gr(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)Jn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)Zn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(t){a[t]=n[t]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),o[r]=a,a}}function Sr(t){return t&&(ir(t.Ctor.options)||t.tag)}function Or(t,n){return e(t)?t.indexOf(n)>-1:"string"==typeof t?t.split(",").indexOf(n)>-1:(r=t,"[object RegExp]"===c.call(r)&&t.test(n));var r}function Tr(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!e(s)&&Ar(n,i,r,o)}}}function Ar(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(e){e.prototype._init=function(e){var n=this;n._uid=tr++,n._isVue=!0,n.__v_skip=!0,n._scope=new un(!0),n._scope._vm=!0,e&&e._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(n,e):n.$options=gr(er(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Me(t,e)}(n),function(e){e._vnode=null,e._staticTrees=null;var n=e.$options,r=e.$vnode=n._parentVnode,o=r&&r.context;e.$slots=ge(n._renderChildren,o),e.$scopedSlots=r?be(e.$parent,r.data.scopedSlots,e.$slots):t,e._c=function(t,n,r,o){return te(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return te(e,t,n,r,o,!0)};var i=r&&r.data;At(e,"$attrs",i&&i.attrs||t,null,!0),At(e,"$listeners",n._parentListeners||t,null,!0)}(n),Be(n,"beforeCreate",void 0,!1),function(t){var e=Qn(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(n){At(t,n,e[n])})),kt(!0))}(n),qn(n),function(t){var e=t.$options.provide;if(e){var n=a(e)?e.call(t):e;if(!s(n))return;for(var r=ln(t),o=st?Reflect.ownKeys(n):Object.keys(n),i=0;i<o.length;i++){var c=o[i];Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(n,c))}}}(n),Be(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(Cr),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=jt,t.prototype.$delete=Et,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return Yn(r,t,e,n);(n=n||{}).user=!0;var o=new Vn(r,t,e,n);if(n.immediate){var i='callback for immediate watcher "'.concat(o.expression,'"');yt(),dn(e,r,[o.value],r,i),_t()}return function(){o.teardown()}}}(Cr),function(t){var n=/^hook:/;t.prototype.$on=function(t,r){var o=this;if(e(t))for(var i=0,a=t.length;i<a;i++)o.$on(t[i],r);else(o._events[t]||(o._events[t]=[])).push(r),n.test(t)&&(o._hasHookEvent=!0);return o},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,n){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(e(t)){for(var o=0,i=t.length;o<i;o++)r.$off(t[o],n);return r}var a,s=r._events[t];if(!s)return r;if(!n)return r._events[t]=null,r;for(var c=s.length;c--;)if((a=s[c])===n||a.fn===n){s.splice(c,1);break}return r},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;
vendor: 18,309 bytes, line 13794
13794for(var r=O(arguments,1),o='event handler for "'.concat(t,'"'),i=0,a=n.length;i<a;i++)dn(n[i],e,r,e,o)}return e}}(Cr),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,o=n._vnode,i=Le(n);n._vnode=t,n.$el=o?n.__patch__(o,t):n.__patch__(n.$el,t,e,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var a=n;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Be(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||g(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Be(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Cr),function(t){me(t.prototype),t.prototype.$nextTick=function(t){return Cn(t,this)},t.prototype._render=function(){var t,n=this,r=n.$options,o=r.render,i=r._parentVnode;i&&n._isMounted&&(n.$scopedSlots=be(n.$parent,i.data.scopedSlots,n.$slots,n.$scopedSlots),n._slotsProxy&&Se(n._slotsProxy,n.$scopedSlots)),n.$vnode=i;try{ut(n),Ae=n,t=o.call(n._renderProxy,n.$createElement)}catch(e){fn(e,n,"render"),t=n._vnode}finally{Ae=null,ut()}return e(t)&&1===t.length&&(t=t[0]),t instanceof lt||(t=ft()),t.parent=i,t}}(Cr);var jr=[String,RegExp,Array],Er={name:"keep-alive",abstract:!0,props:{include:jr,exclude:jr,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,o=t.keyToCache;if(r){var i=r.tag,a=r.componentInstance,s=r.componentOptions;e[o]={name:Sr(s),tag:i,componentInstance:a},n.push(o),this.max&&n.length>parseInt(this.max)&&Ar(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ar(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Tr(t,(function(t){return Or(e,t)}))})),this.$watch("exclude",(function(e){Tr(t,(function(t){return!Or(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ee(t),n=e&&e.componentOptions;if(n){var r=Sr(n),o=this.include,i=this.exclude;if(o&&(!r||!Or(o,r))||i&&r&&Or(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},Nr={KeepAlive:Er};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:lr,extend:T,mergeOptions:gr,defineReactive:At},t.set=jt,t.delete=Et,t.nextTick=Cn,t.observable=function(t){return Tt(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Nr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),a(t.install)?t.install.apply(t,n):a(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=gr(this.options,t),this}}(t),kr(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&a(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:rt}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:nr}),Cr.version=Rn;var Pr=v("style,class"),Dr=v("input,textarea,option,select,progress"),Mr=function(t,e,n){return"value"===n&&Dr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ir=v("contenteditable,draggable,spellcheck"),Lr=v("events,caret,typing,plaintext-only"),Rr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Fr="http://www.w3.org/1999/xlink",Hr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Br=function(t){return Hr(t)?t.slice(6,t.length):""},Ur=function(t){return null==t||!1===t};function zr(t){for(var e=t.data,n=t,o=t;r(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=Vr(o.data,e));for(;r(n=n.parent);)n&&n.data&&(e=Vr(e,n.data));return function(t,e){if(r(t)||r(e))return Kr(t,Jr(e));return""}(e.staticClass,e.class)}function Vr(t,e){return{staticClass:Kr(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Kr(t,e){return t?e?t+" "+e:t:e||""}function Jr(t){return Array.isArray(t)?function(t){for(var e,n="",o=0,i=t.length;o<i;o++)r(e=Jr(t[o]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):s(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var qr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Wr=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Zr=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Gr=function(t){return Wr(t)||Zr(t)};function Xr(t){return Zr(t)?"svg":"math"===t?"math":void 0}var Yr=Object.create(null);var Qr=v("text,number,password,search,email,tel,url");function to(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var eo=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(qr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),no={create:function(t,e){ro(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ro(t,!0),ro(e))},destroy:function(t){ro(t,!0)}};function ro(t,n){var o=t.data.ref;if(r(o)){var i=t.context,s=t.componentInstance||t.elm,c=n?null:s,u=n?void 0:s;if(a(o))dn(o,i,[c],i,"template ref function");else{var l=t.data.refInFor,f="string"==typeof o||"number"==typeof o,d=Ft(o),p=i.$refs;if(f||d)if(l){var v=f?p[o]:o.value;n?e(v)&&g(v,s):e(v)?v.includes(s)||v.push(s):f?(p[o]=[s],oo(i,o,p[o])):o.value=[s]}else if(f){if(n&&p[o]!==s)return;p[o]=u,oo(i,o,c)}else if(d){if(n&&o.value!==s)return;o.value=c}}}}function oo(t,e,n){var r=t._setupState;r&&_(r,e)&&(Ft(r[e])?r[e].value=n:r[e]=n)}var io=new lt("",{},[]),ao=["create","activate","update","remove","destroy"];function so(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,o=r(n=t.data)&&r(n=n.attrs)&&n.type,i=r(n=e.data)&&r(n=n.attrs)&&n.type;return o===i||Qr(o)&&Qr(i)}(t,e)||o(t.isAsyncPlaceholder)&&n(e.asyncFactory.error))}function co(t,e,n){var o,i,a={};for(o=e;o<=n;++o)r(i=t[o].key)&&(a[i]=o);return a}var uo={create:lo,update:lo,destroy:function(t){lo(t,io)}};function lo(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,o,i=t===io,a=e===io,s=po(t.data.directives,t.context),c=po(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,ho(o,"update",e,t),o.def&&o.def.componentUpdated&&l.push(o)):(ho(o,"bind",e,t),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n<u.length;n++)ho(u[n],"inserted",e,t)};i?Zt(e,"insert",f):f()}l.length&&Zt(e,"postpatch",(function(){for(var n=0;n<l.length;n++)ho(l[n],"componentUpdated",e,t)}));if(!i)for(n in s)c[n]||ho(s[n],"unbind",t,t,a)}(t,e)}var fo=Object.create(null);function po(t,e){var n,r,o=Object.create(null);if(!t)return o;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=fo),o[vo(r)]=r,e._setupState&&e._setupState.__sfc){var i=r.def||yr(e,"_setupState","v-"+r.name);r.def="function"==typeof i?{bind:i,update:i}:i}r.def=r.def||yr(e.$options,"directives",r.name)}return o}function vo(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function ho(t,e,n,r,o){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,r,o)}catch(r){fn(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var mo=[no,uo];function go(t,e){var i=e.componentOptions;if(!(r(i)&&!1===i.Ctor.options.inheritAttrs||n(t.data.attrs)&&n(e.data.attrs))){var a,s,c=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(a in(r(l.__ob__)||o(l._v_attr_proxy))&&(l=e.data.attrs=T({},l)),l)s=l[a],u[a]!==s&&yo(c,a,s,e.data.pre);for(a in(W||G)&&l.value!==u.value&&yo(c,"value",l.value),u)n(l[a])&&(Hr(a)?c.removeAttributeNS(Fr,Br(a)):Ir(a)||c.removeAttribute(a))}}function yo(t,e,n,r){r||t.tagName.indexOf("-")>-1?_o(t,e,n):Rr(e)?Ur(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ir(e)?t.setAttribute(e,function(t,e){return Ur(e)||"false"===e?"false":"contenteditable"===t&&Lr(e)?e:"true"}(e,n)):Hr(e)?Ur(n)?t.removeAttributeNS(Fr,Br(e)):t.setAttributeNS(Fr,e,n):_o(t,e,n)}function _o(t,e,n){if(Ur(n))t.removeAttribute(e);else{if(W&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var bo={create:go,update:go};function $o(t,e){var o=e.elm,i=e.data,a=t.data;if(!(n(i.staticClass)&&n(i.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=zr(e),c=o._transitionClasses;r(c)&&(s=Kr(s,Jr(c))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}var wo,xo,Co,ko,So,Oo,To={create:$o,update:$o},Ao=/[\w).+\-_$\]]/;function jo(t){var e,n,r,o,i,a=!1,s=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(c)96===e&&92!==n&&(c=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||l||f||d){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===e){for(var v=r-1,h=void 0;v>=0&&" "===(h=t.charAt(v));v--);h&&Ao.test(h)||(u=!0)}}else void 0===o?(p=r+1,o=t.slice(0,r).trim()):m();function m(){(i||(i=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===o?o=t.slice(0,r).trim():0!==p&&m(),i)for(r=0;r<i.length;r++)o=Eo(o,i[r]);return o}function Eo(t,e){var n=e.indexOf("(");if(n<0)return'_f("'.concat(e,'")(').concat(t,")");var r=e.slice(0,n),o=e.slice(n+1);return'_f("'.concat(r,'")(').concat(t).concat(")"!==o?","+o:o)}function No(t,e){console.error("[Vue compiler]: ".concat(t))}function Po(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function Do(t,e,n,r,o){(t.props||(t.props=[])).push(zo({name:e,value:n,dynamic:o},r)),t.plain=!1}function Mo(t,e,n,r,o){(o?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(zo({name:e,value:n,dynamic:o},r)),t.plain=!1}function Io(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(zo({name:e,value:n},r))}function Lo(t,e,n,r,o,i,a,s){(t.directives||(t.directives=[])).push(zo({name:e,rawName:n,value:r,arg:o,isDynamicArg:i,modifiers:a},s)),t.plain=!1}function Ro(t,e,n){return n?"_p(".concat(e,',"').concat(t,'")'):t+e}function Fo(e,n,r,o,i,a,s,c){var u;(o=o||t).right?c?n="(".concat(n,")==='click'?'contextmenu':(").concat(n,")"):"click"===n&&(n="contextmenu",delete o.right):o.middle&&(c?n="(".concat(n,")==='click'?'mouseup':(").concat(n,")"):"click"===n&&(n="mouseup")),o.capture&&(delete o.capture,n=Ro("!",n,c)),o.once&&(delete o.once,n=Ro("~",n,c)),o.passive&&(delete o.passive,n=Ro("&",n,c)),o.native?(delete o.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var l=zo({value:r.trim(),dynamic:c},s);o!==t&&(l.modifiers=o);var f=u[n];Array.isArray(f)?i?f.unshift(l):f.push(l):u[n]=f?i?[l,f]:[f,l]:l,e.plain=!1}function Ho(t,e,n){var r=Bo(t,":"+e)||Bo(t,"v-bind:"+e);if(null!=r)return jo(r);if(!1!==n){var o=Bo(t,e);if(null!=o)return JSON.stringify(o)}}function Bo(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var o=t.attrsList,i=0,a=o.length;i<a;i++)if(o[i].name===e){o.splice(i,1);break}return n&&delete t.attrsMap[e],r}function Uo(t,e){for(var n=t.attrsList,r=0,o=n.length;r<o;r++){var i=n[r];if(e.test(i.name))return n.splice(r,1),i}}function zo(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Vo(t,e,n){var r=n||{},o=r.number,i="$$v",a=i;r.trim&&(a="(typeof ".concat(i," === 'string'")+"? ".concat(i,".trim()")+": ".concat(i,")")),o&&(a="_n(".concat(a,")"));var s=Ko(e,a);t.model={value:"(".concat(e,")"),expression:JSON.stringify(e),callback:"function (".concat(i,") {").concat(s,"}")}}function Ko(t,e){var n=function(t){if(t=t.trim(),wo=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<wo-1)return(ko=t.lastIndexOf("."))>-1?{exp:t.slice(0,ko),key:'"'+t.slice(ko+1)+'"'}:{exp:t,key:null};xo=t,ko=So=Oo=0;for(;!qo();)Wo(Co=Jo())?Go(Co):91===Co&&Zo(Co);return{exp:t.slice(0,So),key:t.slice(So+1,Oo)}}(t);return null===n.key?"".concat(t,"=").concat(e):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(e,")")}function Jo(){return xo.charCodeAt(++ko)}function qo(){return ko>=wo}function Wo(t){return 34===t||39===t}function Zo(t){var e=1;for(So=ko;!qo();)if(Wo(t=Jo()))Go(t);else if(91===t&&e++,93===t&&e--,0===e){Oo=ko;break}}function Go(t){for(var e=t;!qo()&&(t=Jo())!==e;);}var Xo,Yo="__r";function Qo(t,e,n){var r=Xo;return function o(){var i=e.apply(null,arguments);null!==i&&ni(t,o,n,r)}}var ti=mn&&!(Q&&Number(Q[1])<=53);function ei(t,e,n,r){if(ti){var o=We,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}Xo.addEventListener(t,e,et?{capture:n,passive:r}:n)}function ni(t,e,n,r){(r||Xo).removeEventListener(t,e._wrapper||e,n)}function ri(t,e){if(!n(t.data.on)||!n(e.data.on)){var o=e.data.on||{},i=t.data.on||{};Xo=e.elm||t.elm,function(t){if(r(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}r(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(o),Wt(o,i,ei,ni,Qo,e.context),Xo=void 0}}var oi,ii={create:ri,update:ri,destroy:function(t){return ri(t,io)}};function ai(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var i,a,s=e.elm,c=t.data.domProps||{},u=e.data.domProps||{};for(i in(r(u.__ob__)||o(u._v_attr_proxy))&&(u=e.data.domProps=T({},u)),c)i in u||(s[i]="");for(i in u){if(a=u[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),a===c[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=a;var l=n(a)?"":String(a);si(s,l)&&(s.value=l)}else if("innerHTML"===i&&Zr(s.tagName)&&n(s.innerHTML)){(oi=oi||document.createElement("div")).innerHTML="<svg>".concat(a,"</svg>");for(var f=oi.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;f.firstChild;)s.appendChild(f.firstChild)}else if(a!==c[i])try{s[i]=a}catch(t){}}}}function si(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,o=t._vModifiers;if(r(o)){if(o.number)return p(n)!==p(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ci={create:ai,update:ai},ui=b((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function li(t){var e=fi(t.style);return t.staticStyle?T(t.staticStyle,e):e}function fi(t){return Array.isArray(t)?A(t):"string"==typeof t?ui(t):t}var di,pi=/^--/,vi=/\s*!important$/,hi=function(t,e,n){if(pi.test(e))t.style.setProperty(e,n);else if(vi.test(n))t.style.setProperty(k(e),n.replace(vi,""),"important");else{var r=gi(e);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)t.style[r]=n[o];else t.style[r]=n}},mi=["Webkit","Moz","ms"],gi=b((function(t){if(di=di||document.createElement("div").style,"filter"!==(t=w(t))&&t in di)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<mi.length;n++){var r=mi[n]+e;if(r in di)return r}}));function yi(t,e){var o=e.data,i=t.data;if(!(n(o.staticStyle)&&n(o.style)&&n(i.staticStyle)&&n(i.style))){var a,s,c=e.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,d=fi(e.data.style)||{};e.data.normalizedStyle=r(d.__ob__)?T({},d):d;var p=function(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=li(o.data))&&T(r,n);(n=li(t.data))&&T(r,n);for(var i=t;i=i.parent;)i.data&&(n=li(i.data))&&T(r,n);return r}(e,!0);for(s in f)n(p[s])&&hi(c,s,"");for(s in p)(a=p[s])!==f[s]&&hi(c,s,null==a?"":a)}}var _i={create:yi,update:yi},bi=/\s+/;function $i(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>
vendor: 5,986 bytes, line 13794
13794-1?e.split(bi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function wi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function xi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,Ci(t.name||"v")),T(e,t),e}return"string"==typeof t?Ci(t):void 0}}var Ci=b((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),ki=J&&!Z,Si="transition",Oi="animation",Ti="transition",Ai="transitionend",ji="animation",Ei="animationend";ki&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ti="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ji="WebkitAnimation",Ei="webkitAnimationEnd"));var Ni=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Pi(t){Ni((function(){Ni(t)}))}function Di(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),$i(t,e))}function Mi(t,e){t._transitionClasses&&g(t._transitionClasses,e),wi(t,e)}function Ii(t,e,n){var r=Ri(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Si?Ai:Ei,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),i+1),t.addEventListener(s,l)}var Li=/\b(transform|all)(,|$)/;function Ri(t,e){var n,r=window.getComputedStyle(t),o=(r[Ti+"Delay"]||"").split(", "),i=(r[Ti+"Duration"]||"").split(", "),a=Fi(o,i),s=(r[ji+"Delay"]||"").split(", "),c=(r[ji+"Duration"]||"").split(", "),u=Fi(s,c),l=0,f=0;return e===Si?a>0&&(n=Si,l=a,f=i.length):e===Oi?u>0&&(n=Oi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Si:Oi:null)?n===Si?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Si&&Li.test(r[Ti+"Property"])}}function Fi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Hi(e)+Hi(t[n])})))}function Hi(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Bi(t,e){var o=t.elm;r(o._leaveCb)&&(o._leaveCb.cancelled=!0,o._leaveCb());var i=xi(t.data.transition);if(!n(i)&&!r(o._enterCb)&&1===o.nodeType){for(var c=i.css,u=i.type,l=i.enterClass,f=i.enterToClass,d=i.enterActiveClass,v=i.appearClass,h=i.appearToClass,m=i.appearActiveClass,g=i.beforeEnter,y=i.enter,_=i.afterEnter,b=i.enterCancelled,$=i.beforeAppear,w=i.appear,x=i.afterAppear,C=i.appearCancelled,k=i.duration,S=Ie,O=Ie.$vnode;O&&O.parent;)S=O.context,O=O.parent;var T=!S._isMounted||!t.isRootInsert;if(!T||w||""===w){var A=T&&v?v:l,j=T&&m?m:d,E=T&&h?h:f,N=T&&$||g,P=T&&a(w)?w:y,D=T&&x||_,I=T&&C||b,L=p(s(k)?k.enter:k),R=!1!==c&&!Z,F=Vi(P),H=o._enterCb=M((function(){R&&(Mi(o,E),Mi(o,j)),H.cancelled?(R&&Mi(o,A),I&&I(o)):D&&D(o),o._enterCb=null}));t.data.show||Zt(t,"insert",(function(){var e=o.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),P&&P(o,H)})),N&&N(o),R&&(Di(o,A),Di(o,j),Pi((function(){Mi(o,A),H.cancelled||(Di(o,E),F||(zi(L)?setTimeout(H,L):Ii(o,u,H)))}))),t.data.show&&(e&&e(),P&&P(o,H)),R||F||H()}}}function Ui(t,e){var o=t.elm;r(o._enterCb)&&(o._enterCb.cancelled=!0,o._enterCb());var i=xi(t.data.transition);if(n(i)||1!==o.nodeType)return e();if(!r(o._leaveCb)){var a=i.css,c=i.type,u=i.leaveClass,l=i.leaveToClass,f=i.leaveActiveClass,d=i.beforeLeave,v=i.leave,h=i.afterLeave,m=i.leaveCancelled,g=i.delayLeave,y=i.duration,_=!1!==a&&!Z,b=Vi(v),$=p(s(y)?y.leave:y),w=o._leaveCb=M((function(){o.parentNode&&o.parentNode._pending&&(o.parentNode._pending[t.key]=null),_&&(Mi(o,l),Mi(o,f)),w.cancelled?(_&&Mi(o,u),m&&m(o)):(e(),h&&h(o)),o._leaveCb=null}));g?g(x):x()}function x(){w.cancelled||(!t.data.show&&o.parentNode&&((o.parentNode._pending||(o.parentNode._pending={}))[t.key]=t),d&&d(o),_&&(Di(o,u),Di(o,f),Pi((function(){Mi(o,u),w.cancelled||(Di(o,l),b||(zi($)?setTimeout(w,$):Ii(o,c,w)))}))),v&&v(o,w),_||b||w())}}function zi(t){return"number"==typeof t&&!isNaN(t)}function Vi(t){if(n(t))return!1;var e=t.fns;return r(e)?Vi(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ki(t,e){!0!==e.data.show&&Bi(e)}var Ji=function(t){var a,s,c={},u=t.modules,l=t.nodeOps;for(a=0;a<ao.length;++a)for(c[ao[a]]=[],s=0;s<u.length;++s)r(u[s][ao[a]])&&c[ao[a]].push(u[s][ao[a]]);function f(t){var e=l.parentNode(t);r(e)&&l.removeChild(e,t)}function d(t,e,n,i,a,s,u){if(r(t.elm)&&r(s)&&(t=s[u]=pt(t)),t.isRootInsert=!a,!function(t,e,n,i){var a=t.data;if(r(a)){var s=r(t.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(t,!1),r(t.componentInstance))return p(t,e),h(n,t.elm,i),o(s)&&function(t,e,n,o){var i,a=t;for(;a.componentInstance;)if(r(i=(a=a.componentInstance._vnode).data)&&r(i=i.transition)){for(i=0;i<c.activate.length;++i)c.activate[i](io,a);e.push(a);break}h(n,t.elm,o)}(t,e,n,i),!0}}(t,e,n,i)){var f=t.data,d=t.children,v=t.tag;r(v)?(t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),_(t),m(t,d,e),r(f)&&y(t,e),h(n,t.elm,i)):o(t.isComment)?(t.elm=l.createComment(t.text),h(n,t.elm,i)):(t.elm=l.createTextNode(t.text),h(n,t.elm,i))}}function p(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(y(t,e),_(t)):(ro(t),e.push(t))}function h(t,e,n){r(t)&&(r(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function m(t,n,r){if(e(n))for(var o=0;o<n.length;++o)d(n[o],r,t.elm,null,!0,n,o);
vendor: 1,371 bytes, line 13794
13794else i(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return r(t.tag)}function y(t,e){for(var n=0;n<c.create.length;++n)c.create[n](io,t);r(a=t.data.hook)&&(r(a.create)&&a.create(io,t),r(a.insert)&&e.push(t))}function _(t){var e;if(r(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)r(e=n.context)&&r(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;r(e=Ie)&&e!==t.context&&e!==t.fnContext&&r(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function b(t,e,n,r,o,i){for(;r<=o;++r)d(n[r],i,t,e,!1,n,r)}function $(t){var e,n,o=t.data;if(r(o))for(r(e=o.hook)&&r(e=e.destroy)&&e(t),e=0;e<c.destroy.length;++e)c.destroy[e](t);if(r(e=t.children))for(n=0;n<t.children.length;++n)$(t.children[n])}function w(t,e,n){for(;e<=n;++e){var o=t[e];r(o)&&(r(o.tag)?(x(o),$(o)):f(o.elm))}}function x(t,e){if(r(e)||r(t.data)){var n,o=c.remove.length+1;for(r(e)?e.listeners+=o:e=function(t,e){function n(){0==--n.listeners&&f(t)}return n.listeners=e,n}(t.elm,o),r(n=t.componentInstance)&&r(n=n._vnode)&&r(n.data)&&x(n,e),n=0;n<c.remove.length;++n)c.remove[n](t,e);r(n=t.data.hook)&&r(n=n.remove)?n(t,e):e()}else f(t.elm)}function C(t,e,n,o){for(var i=n;i<o;i++){var a=e[i];if(r(a)&&so(t,a))return i}}function k(t,e,i,a,s,u){if(t!==e){r(e.elm)&&r(a)&&(e=a[s]=pt(e));var f=e.elm=t.elm;
vendor: 10,041 bytes, line 13794
13794if(o(t.isAsyncPlaceholder))r(e.asyncFactory.resolved)?T(t.elm,e,i):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var p,v=e.data;r(v)&&r(p=v.hook)&&r(p=p.prepatch)&&p(t,e);var h=t.children,m=e.children;if(r(v)&&g(e)){for(p=0;p<c.update.length;++p)c.update[p](t,e);r(p=v.hook)&&r(p=p.update)&&p(t,e)}n(e.text)?r(h)&&r(m)?h!==m&&function(t,e,o,i,a){for(var s,c,u,f=0,p=0,v=e.length-1,h=e[0],m=e[v],g=o.length-1,y=o[0],_=o[g],$=!a;f<=v&&p<=g;)n(h)?h=e[++f]:n(m)?m=e[--v]:so(h,y)?(k(h,y,i,o,p),h=e[++f],y=o[++p]):so(m,_)?(k(m,_,i,o,g),m=e[--v],_=o[--g]):so(h,_)?(k(h,_,i,o,g),$&&l.insertBefore(t,h.elm,l.nextSibling(m.elm)),h=e[++f],_=o[--g]):so(m,y)?(k(m,y,i,o,p),$&&l.insertBefore(t,m.elm,h.elm),m=e[--v],y=o[++p]):(n(s)&&(s=co(e,f,v)),n(c=r(y.key)?s[y.key]:C(y,e,f,v))?d(y,i,t,h.elm,!1,o,p):so(u=e[c],y)?(k(u,y,i,o,p),e[c]=void 0,$&&l.insertBefore(t,u.elm,h.elm)):d(y,i,t,h.elm,!1,o,p),y=o[++p]);f>v?b(t,n(o[g+1])?null:o[g+1].elm,o,p,g,i):p>g&&w(e,f,v)}(f,h,m,i,u):r(m)?(r(t.text)&&l.setTextContent(f,""),b(f,null,m,0,m.length-1,i)):r(h)?w(h,0,h.length-1):r(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),r(v)&&r(p=v.hook)&&r(p=p.postpatch)&&p(t,e)}}}function S(t,e,n){if(o(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var O=v("attrs,class,staticClass,staticStyle,key");function T(t,e,n,i){var a,s=e.tag,c=e.data,u=e.children;if(i=i||c&&c.pre,e.elm=t,o(e.isComment)&&r(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(a=c.hook)&&r(a=a.init)&&a(e,!0),r(a=e.componentInstance)))return p(e,n),!0;if(r(s)){if(r(u))if(t.hasChildNodes())if(r(a=c)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var l=!0,f=t.firstChild,d=0;d<u.length;d++){if(!f||!T(f,u[d],n,i)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else m(e,u,n);if(r(c)){var v=!1;for(var h in c)if(!O(h)){v=!0,y(e,n);break}!v&&c.class&&Bn(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,i,a){if(!n(e)){var s,u=!1,f=[];if(n(t))u=!0,d(e,f);else{var p=r(t.nodeType);if(!p&&so(t,e))k(t,e,f,null,null,a);else{if(p){if(1===t.nodeType&&t.hasAttribute(L)&&(t.removeAttribute(L),i=!0),o(i)&&T(t,e,f))return S(e,f,!0),t;s=t,t=new lt(l.tagName(s).toLowerCase(),{},[],void 0,s)}var v=t.elm,h=l.parentNode(v);if(d(e,f,v._leaveCb?null:h,l.nextSibling(v)),r(e.parent))for(var m=e.parent,y=g(e);m;){for(var _=0;_<c.destroy.length;++_)c.destroy[_](m);if(m.elm=e.elm,y){for(var b=0;b<c.create.length;++b)c.create[b](io,m);var x=m.data.hook.insert;if(x.merged)for(var C=1;C<x.fns.length;C++)x.fns[C]()}else ro(m);m=m.parent}r(h)?w([t],0,0):r(t.tag)&&$(t)}}return S(e,f,u),e.elm}r(t)&&$(t)}}({nodeOps:eo,modules:[bo,To,ii,ci,_i,J?{create:Ki,activate:Ki,remove:function(t,e){!0!==t.data.show?Ui(t,e):e()}}:{}].concat(mo)});Z&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ta(t,"input")}));var qi={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Zt(n,"postpatch",(function(){qi.componentUpdated(t,e,n)})):Wi(t,e,n.context),t._vOptions=[].map.call(t.options,Xi)):("textarea"===n.tag||Qr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Yi),t.addEventListener("compositionend",Qi),t.addEventListener("change",Qi),Z&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Wi(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,Xi);if(o.some((function(t,e){return!P(t,r[e])})))(t.multiple?e.value.some((function(t){return Gi(t,o)})):e.value!==e.oldValue&&Gi(e.value,o))&&ta(t,"change")}}};function Wi(t,e,n){Zi(t,e),(W||G)&&setTimeout((function(){Zi(t,e)}),0)}function Zi(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],o)i=D(r,Xi(a))>-1,a.selected!==i&&(a.selected=i);else if(P(Xi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function Gi(t,e){return e.every((function(e){return!P(e,t)}))}function Xi(t){return"_value"in t?t._value:t.value}function Yi(t){t.target.composing=!0}function Qi(t){t.target.composing&&(t.target.composing=!1,ta(t.target,"input"))}function ta(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ea(t){return!t.componentInstance||t.data&&t.data.transition?t:ea(t.componentInstance._vnode)}var na={bind:function(t,e,n){var r=e.value,o=(n=ea(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Bi(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=ea(n)).data&&n.data.transition?(n.data.show=!0,r?Bi(n,(function(){t.style.display=t.__vOriginalDisplay})):Ui(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},ra={model:qi,show:na},oa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ia(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ia(Ee(e.children)):t}function aa(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[w(r)]=o[r];return e}function sa(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ca=function(t){return t.tag||_e(t)},ua=function(t){return"show"===t.name},la={name:"transition",props:oa,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ca)).length){var r=this.mode,o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var a=ia(o);if(!a)return o;if(this._leaving)return sa(t,o);var s="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=aa(this),u=this._vnode,l=ia(u);if(a.data.directives&&a.data.directives.some(ua)&&(a.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(a,l)&&!_e(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,Zt(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),sa(t,o);if("in-out"===r){if(_e(a))return u;var d,p=function(){d()};Zt(c,"afterEnter",p),Zt(c,"enterCancelled",p),Zt(f,"delayLeave",(function(t){d=t}))}}return o}}},fa=T({tag:String,moveClass:String},oa);delete fa.mode;var da={props:fa,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Le(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=aa(this),s=0;s<o.length;s++){(l=o[s]).tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(i.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a)}if(r){var c=[],u=[];for(s=0;s<r.length;s++){var l;(l=r[s]).data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=t(e,null,c),this.removed=u}return t(e,null,i)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(pa),t.forEach(va),t.forEach(ha),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Di(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ai,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ai,t),n._moveCb=null,Mi(n,e))})}})))},methods:{hasMove:function(t,e){if(!ki)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){wi(n,t)})),$i(n,e),n.style.display="none",this.$el.appendChild(n);var r=Ri(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function pa(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function va(t){t.data.newPos=t.elm.getBoundingClientRect()}function ha(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}var ma={Transition:la,TransitionGroup:da};Cr.config.mustUseProp=Mr,Cr.config.isReservedTag=Gr,Cr.config.isReservedAttr=Pr,Cr.config.getTagNamespace=Xr,Cr.config.isUnknownElement=function(t){if(!J)return!0;if(Gr(t))return!1;if(t=t.toLowerCase(),null!=Yr[t])return Yr[t];var e=document.createElement(t);return t.indexOf("-")>-1?Yr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Yr[t]=/HTMLUnknownElement/.test(e.toString())},T(Cr.options.directives,ra),T(Cr.options.components,ma),Cr.prototype.__patch__=J?Ji:j,Cr.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=ft),Be(t,"beforeMount"),r=function(){t._update(t._render(),n)},new Vn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Be(t,"beforeUpdate")}},!0),n=!1;var o=t._preWatchers;if(o)for(var i=0;i<o.length;i++)o[i].run();return null==t.$vnode&&(t._isMounted=!0,Be(t,"mounted")),t}(this,t=t&&J?to(t):void 0,e)},J&&setTimeout((function(){H.devtools&&ot&&ot.emit("init",Cr)}),0);var ga=/\{\{((?:.|\r?\n)+?)\}\}/g,ya=/[-.*+?^${}()|[\]\/\\]/g,_a=b((function(t){var e=t[0].replace(ya,"\\$&"),n=t[1].replace(ya,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));var ba={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Bo(t,"class");
vendor: 27,975 bytes, lines 13794-13829
13794n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=Ho(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:".concat(t.staticClass,",")),t.classBinding&&(e+="class:".concat(t.classBinding,",")),e}};var $a,wa={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Bo(t,"style");n&&(t.staticStyle=JSON.stringify(ui(n)));var r=Ho(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:".concat(t.staticStyle,",")),t.styleBinding&&(e+="style:(".concat(t.styleBinding,"),")),e}},xa=function(t){return($a=$a||document.createElement("div")).innerHTML=t,$a.textContent},Ca=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ka=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Sa=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Oa=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ta=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Aa="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(B.source,"]*"),ja="((?:".concat(Aa,"\\:)?").concat(Aa,")"),Ea=new RegExp("^<".concat(ja)),Na=/^\s*(\/?)>/,Pa=new RegExp("^<\\/".concat(ja,"[^>]*>")),Da=/^<!DOCTYPE [^>]+>/i,Ma=/^<!\--/,Ia=/^<!\[/,La=v("script,style,textarea",!0),Ra={},Fa={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Ha=/&(?:lt|gt|quot|amp|#39);/g,Ba=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ua=v("pre,textarea",!0),za=function(t,e){return t&&Ua(t)&&"\n"===e[0]};function Va(t,e){var n=e?Ba:Ha;return t.replace(n,(function(t){return Fa[t]}))}function Ka(t,e){for(var n,r,o=[],i=e.expectHTML,a=e.isUnaryTag||E,s=e.canBeLeftOpenTag||E,c=0,u=function(){if(n=t,r&&La(r)){var u=0,d=r.toLowerCase(),p=Ra[d]||(Ra[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i"));w=t.replace(p,(function(t,n,r){return u=r.length,La(d)||"noscript"===d||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),za(d,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));c+=t.length-w.length,t=w,f(d,c-u,c)}else{var v=t.indexOf("<");if(0===v){if(Ma.test(t)){var h=t.indexOf("--\x3e");if(h>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,h),c,c+h+3),l(h+3),"continue"}if(Ia.test(t)){var m=t.indexOf("]>");if(m>=0)return l(m+2),"continue"}var g=t.match(Da);if(g)return l(g[0].length),"continue";var y=t.match(Pa);if(y){var _=c;return l(y[0].length),f(y[1],_,c),"continue"}var b=function(){var e=t.match(Ea);if(e){var n={tagName:e[1],attrs:[],start:c};l(e[0].length);for(var r=void 0,o=void 0;!(r=t.match(Na))&&(o=t.match(Ta)||t.match(Oa));)o.start=c,l(o[0].length),o.end=c,n.attrs.push(o);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=c,n}}();if(b)return function(t){var n=t.tagName,c=t.unarySlash;i&&("p"===r&&Sa(n)&&f(r),s(n)&&r===n&&f(n));for(var u=a(n)||!!c,l=t.attrs.length,d=new Array(l),p=0;p<l;p++){var v=t.attrs[p],h=v[3]||v[4]||v[5]||"",m="a"===n&&"href"===v[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;d[p]={name:v[1],value:Va(h,m)}}u||(o.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:t.start,end:t.end}),r=n);e.start&&e.start(n,d,u,t.start,t.end)}(b),za(b.tagName,t)&&l(1),"continue"}var $=void 0,w=void 0,x=void 0;if(v>=0){for(w=t.slice(v);!(Pa.test(w)||Ea.test(w)||Ma.test(w)||Ia.test(w)||(x=w.indexOf("<",1))<0);)v+=x,w=t.slice(v);$=t.substring(0,v)}v<0&&($=t),$&&l($.length),e.chars&&$&&e.chars($,c-$.length,c)}if(t===n)return e.chars&&e.chars(t),"break"};t;){if("break"===u())break}function l(e){c+=e,t=t.substring(e)}function f(t,n,i){var a,s;if(null==n&&(n=c),null==i&&(i=c),t)for(s=t.toLowerCase(),a=o.length-1;a>=0&&o[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=o.length-1;u>=a;u--)e.end&&e.end(o[u].tag,n,i);o.length=a,r=a&&o[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,i):"p"===s&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}f()}var Ja,qa,Wa,Za,Ga,Xa,Ya,Qa,ts=/^@|^v-on:/,es=/^v-|^@|^:|^#/,ns=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,rs=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,os=/^\(|\)$/g,is=/^\[.*\]$/,as=/:(.*)$/,ss=/^:|^\.|^v-bind:/,cs=/\.[^.\]]+(?=[^\]]*$)/g,us=/^v-slot(:|$)|^#/,ls=/[\r\n]/,fs=/[ \f\t\r\n]+/g,ds=b(xa),ps="_empty_";function vs(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:$s(e),rawAttrsMap:{},parent:n,children:[]}}function hs(t,e){Ja=e.warn||No,Xa=e.isPreTag||E,Ya=e.mustUseProp||E,Qa=e.getTagNamespace||E,e.isReservedTag,Wa=Po(e.modules,"transformNode"),Za=Po(e.modules,"preTransformNode"),Ga=Po(e.modules,"postTransformNode"),qa=e.delimiters;var n,r,o=[],i=!1!==e.preserveWhitespace,a=e.whitespace,s=!1,c=!1;function u(t){if(l(t),s||t.processed||(t=ms(t,e)),o.length||t===n||n.if&&(t.elseif||t.else)&&ys(n,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)a=t,u=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children),u&&u.if&&ys(u,{exp:a.elseif,block:a});else{if(t.slotScope){var i=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[i]=t}r.children.push(t),t.parent=r}var a,u;t.children=t.children.filter((function(t){return!t.slotScope})),l(t),t.pre&&(s=!1),Xa(t.tag)&&(c=!1);for(var f=0;f<Ga.length;f++)Ga[f](t,e)}function l(t){if(!c)for(var e=void 0;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return Ka(t,{warn:Ja,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,a,l,f){var d=r&&r.ns||Qa(t);W&&"svg"===d&&(i=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];ws.test(r.name)||(r.name=r.name.replace(xs,""),e.push(r))}return e}(i));var p,v=vs(t,i,r);d&&(v.ns=d),"style"!==(p=v).tag&&("script"!==p.tag||p.attrsMap.type&&"text/javascript"!==p.attrsMap.type)||rt()||(v.forbidden=!0);for(var h=0;h<Za.length;h++)v=Za[h](v,e)||v;s||(!function(t){null!=Bo(t,"v-pre")&&(t.pre=!0)}(v),v.pre&&(s=!0)),Xa(v.tag)&&(c=!0),s?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),o=0;o<n;o++)r[o]={name:e[o].name,value:JSON.stringify(e[o].value)},null!=e[o].start&&(r[o].start=e[o].start,r[o].end=e[o].end);else t.pre||(t.plain=!0)}(v):v.processed||(gs(v),function(t){var e=Bo(t,"v-if");if(e)t.if=e,ys(t,{exp:e,block:t});else{null!=Bo(t,"v-else")&&(t.else=!0);var n=Bo(t,"v-else-if");n&&(t.elseif=n)}}(v),function(t){null!=Bo(t,"v-once")&&(t.once=!0)}(v)),n||(n=v),a?u(v):(r=v,o.push(v))},end:function(t,e,n){var i=o[o.length-1];o.length-=1,r=o[o.length-1],u(i)},chars:function(t,e,n){if(r&&(!W||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var o,u=r.children;if(t=c||t.trim()?"script"===(o=r).tag||"style"===o.tag?t:ds(t):u.length?a?"condense"===a&&ls.test(t)?"":" ":i?" ":"":""){c||"condense"!==a||(t=t.replace(fs," "));var l=void 0,f=void 0;!s&&" "!==t&&(l=function(t,e){var n=e?_a(e):ga;if(n.test(t)){for(var r,o,i,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){(o=r.index)>c&&(s.push(i=t.slice(c,o)),a.push(JSON.stringify(i)));var u=jo(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=o+r[0].length}return c<t.length&&(s.push(i=t.slice(c)),a.push(JSON.stringify(i))),{expression:a.join("+"),tokens:s}}}(t,qa))?f={type:2,expression:l.expression,tokens:l.tokens,text:t}:" "===t&&u.length&&" "===u[u.length-1].text||(f={type:3,text:t}),f&&u.push(f)}}},comment:function(t,e,n){if(r){var o={type:3,text:t,isComment:!0};r.children.push(o)}}}),n}function ms(t,e){var n,r;(r=Ho(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Ho(t,"ref");e&&(t.ref=e,t.refInFor=function(t){var e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Bo(t,"scope"),t.slotScope=e||Bo(t,"slot-scope")):(e=Bo(t,"slot-scope"))&&(t.slotScope=e);var n=Ho(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Mo(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot")));if("template"===t.tag){if(a=Uo(t,us)){var r=_s(a),o=r.name,i=r.dynamic;t.slotTarget=o,t.slotTargetDynamic=i,t.slotScope=a.value||ps}}else{var a;if(a=Uo(t,us)){var s=t.scopedSlots||(t.scopedSlots={}),c=_s(a),u=c.name,l=(i=c.dynamic,s[u]=vs("template",[],t));l.slotTarget=u,l.slotTargetDynamic=i,l.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=l,!0})),l.slotScope=a.value||ps,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Ho(t,"name"))}(t),function(t){var e;(e=Ho(t,"is"))&&(t.component=e);null!=Bo(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o<Wa.length;o++)t=Wa[o](t,e)||t;return function(t){var e,n,r,o,i,a,s,c,u=t.attrsList;for(e=0,n=u.length;e<n;e++)if(r=o=u[e].name,i=u[e].value,es.test(r))if(t.hasBindings=!0,(a=bs(r.replace(es,"")))&&(r=r.replace(cs,"")),ss.test(r))r=r.replace(ss,""),i=jo(i),(c=is.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=w(r))&&(r="innerHTML"),a.camel&&!c&&(r=w(r)),a.sync&&(s=Ko(i,"$event"),c?Fo(t,'"update:"+('.concat(r,")"),s,null,!1,0,u[e],!0):(Fo(t,"update:".concat(w(r)),s,null,!1,0,u[e]),k(r)!==w(r)&&Fo(t,"update:".concat(k(r)),s,null,!1,0,u[e])))),a&&a.prop||!t.component&&Ya(t.tag,t.attrsMap.type,r)?Do(t,r,i,u[e],c):Mo(t,r,i,u[e],c);else if(ts.test(r))r=r.replace(ts,""),(c=is.test(r))&&(r=r.slice(1,-1)),Fo(t,r,i,a,!1,0,u[e],c);else{var l=(r=r.replace(es,"")).match(as),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),is.test(f)&&(f=f.slice(1,-1),c=!0)),Lo(t,r,o,i,f,c,a,u[e])}else Mo(t,r,JSON.stringify(i),u[e]),!t.component&&"muted"===r&&Ya(t.tag,t.attrsMap.type,r)&&Do(t,r,"true",u[e])}(t),t}function gs(t){var e;if(e=Bo(t,"v-for")){var n=function(t){var e=t.match(ns);if(!e)return;var n={};n.for=e[2].trim();var r=e[1].trim().replace(os,""),o=r.match(rs);o?(n.alias=r.replace(rs,"").trim(),n.iterator1=o[1].trim(),o[2]&&(n.iterator2=o[2].trim())):n.alias=r;return n}(e);n&&T(t,n)}}function ys(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function _s(t){var e=t.name.replace(us,"");return e||"#"!==t.name[0]&&(e="default"),is.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'.concat(e,'"'),dynamic:!1}}function bs(t){var e=t.match(cs);if(e){var n={};return e.forEach((function(t){n[t.slice(1)]=!0})),n}}function $s(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}var ws=/^xmlns:NS\d+/,xs=/^NS\d+:/;function Cs(t){return vs(t.tag,t.attrsList.slice(),t.parent)}var ks=[ba,wa,{preTransformNode:function(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=Ho(t,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var o=Bo(t,"v-if",!0),i=o?"&&(".concat(o,")"):"",a=null!=Bo(t,"v-else",!0),s=Bo(t,"v-else-if",!0),c=Cs(t);gs(c),Io(c,"type","checkbox"),ms(c,e),c.processed=!0,c.if="(".concat(r,")==='checkbox'")+i,ys(c,{exp:c.if,block:c});var u=Cs(t);Bo(u,"v-for",!0),Io(u,"type","radio"),ms(u,e),ys(c,{exp:"(".concat(r,")==='radio'")+i,block:u});var l=Cs(t);return Bo(l,"v-for",!0),Io(l,":type",r),ms(l,e),ys(c,{exp:o,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var Ss,Os,Ts={model:function(t,e,n){var r=e.value,o=e.modifiers,i=t.tag,a=t.attrsMap.type;if(t.component)return Vo(t,r,o),!1;if("select"===i)!function(t,e,n){var r=n&&n.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),i="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",a="var $$selectedVal = ".concat(o,";");a="".concat(a," ").concat(Ko(e,i)),Fo(t,"change",a,null,!0)}(t,r,o);else if("input"===i&&"checkbox"===a)!function(t,e,n){var r=n&&n.number,o=Ho(t,"value")||"null",i=Ho(t,"true-value")||"true",a=Ho(t,"false-value")||"false";Do(t,"checked","Array.isArray(".concat(e,")")+"?_i(".concat(e,",").concat(o,")>-1")+("true"===i?":(".concat(e,")"):":_q(".concat(e,",").concat(i,")"))),Fo(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(i,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+o+")":o,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Ko(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Ko(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Ko(e,"$$c"),"}"),null,!0)}(t,r,o);else if("input"===i&&"radio"===a)!function(t,e,n){var r=n&&n.number,o=Ho(t,"value")||"null";o=r?"_n(".concat(o,")"):o,Do(t,"checked","_q(".concat(e,",").concat(o,")")),Fo(t,"change",Ko(e,o),null,!0)}(t,r,o);else if("input"===i||"textarea"===i)!function(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Yo:"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n(".concat(l,")"));var f=Ko(e,l);c&&(f="if($event.target.composing)return;".concat(f));Do(t,"value","(".concat(e,")")),Fo(t,u,f,null,!0),(s||a)&&Fo(t,"blur","$forceUpdate()")}(t,r,o);else if(!H.isReservedTag(i))return Vo(t,r,o),!1;return!0},text:function(t,e){e.value&&Do(t,"textContent","_s(".concat(e.value,")"),e)},html:function(t,e){e.value&&Do(t,"innerHTML","_s(".concat(e.value,")"),e)}},As={expectHTML:!0,modules:ks,directives:Ts,isPreTag:function(t){return"pre"===t},isUnaryTag:Ca,mustUseProp:Mr,canBeLeftOpenTag:ka,isReservedTag:Gr,getTagNamespace:Xr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ks)},js=b((function(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function Es(t,e){t&&(Ss=js(e.staticKeys||""),Os=e.isReservedTag||E,Ns(t),Ps(t,!1))}function Ns(t){if(t.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||h(t.tag)||!Os(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Ss)))}(t),1===t.type){if(!Os(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var r=t.children[e];Ns(r),r.static||(t.static=!1)}if(t.ifConditions)for(e=1,n=t.ifConditions.length;e<n;e++){var o=t.ifConditions[e].block;Ns(o),o.static||(t.static=!1)}}}function Ps(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,r=t.children.length;n<r;n++)Ps(t.children[n],e||!!t.for);if(t.ifConditions)for(n=1,r=t.ifConditions.length;n<r;n++)Ps(t.ifConditions[n].block,e)}}var Ds=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ms=/\([^)]*?\);*$/,Is=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ls={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Rs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Fs=function(t){return"if(".concat(t,")return null;")},Hs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Fs("$event.target !== $event.currentTarget"),ctrl:Fs("!$event.ctrlKey"),shift:Fs("!$event.shiftKey"),alt:Fs("!$event.altKey"),meta:Fs("!$event.metaKey"),left:Fs("'button' in $event && $event.button !== 0"),middle:Fs("'button' in $event && $event.button !== 1"),right:Fs("'button' in $event && $event.button !== 2")};function Bs(t,e){var n=e?"nativeOn:":"on:",r="",o="";for(var i in t){var a=Us(t[i]);t[i]&&t[i].dynamic?o+="".concat(i,",").concat(a,","):r+='"'.concat(i,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),o?n+"_d(".concat(r,",[").concat(o.slice(0,-1),"])"):n+r}function Us(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map((function(t){return Us(t)})).join(","),"]");var e=Is.test(t.value),n=Ds.test(t.value),r=Is.test(t.value.replace(Ms,""));if(t.modifiers){var o="",i="",a=[],s=function(e){if(Hs[e])i+=Hs[e],Ls[e]&&a.push(e);else if("exact"===e){var n=t.modifiers;i+=Fs(["ctrl","shift","alt","meta"].filter((function(t){return!n[t]})).map((function(t){return"$event.".concat(t,"Key")})).join("||"))}else a.push(e)};for(var c in t.modifiers)s(c);a.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(zs).join("&&"),")return null;")}(a)),i&&(o+=i);var u=e?"return ".concat(t.value,".apply(null, arguments)"):n?"return (".concat(t.value,").apply(null, arguments)"):r?"return ".concat(t.value):t.value;return"function($event){".concat(o).concat(u,"}")}return e||n?t.value:"function($event){".concat(r?"return ".concat(t.value):t.value,"}")}function zs(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var n=Ls[t],r=Rs[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Vs={on:function(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}},bind:function(t,e){t.wrapData=function(n){return"_b(".concat(n,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}},cloak:j},Ks=function(t){this.options=t,this.warn=t.warn||No,this.transforms=Po(t.modules,"transformCode"),this.dataGenFns=Po(t.modules,"genData"),this.directives=T(T({},Vs),t.directives);var e=t.isReservedTag||E;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Js(t,e){var n=new Ks(e),r=t?"script"===t.tag?"null":qs(t,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function qs(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ws(t,e);if(t.once&&!t.onceProcessed)return Zs(t,e);if(t.for&&!t.forProcessed)return Ys(t,e);if(t.if&&!t.ifProcessed)return Gs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=nc(t,e),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=t.attrs||t.dynamicAttrs?ic((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:w(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];!i&&!a||r||(o+=",null");i&&(o+=",".concat(i));a&&(o+="".concat(i?"":",null",",").concat(a));return o+")"}(t,e);var n=void 0;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:nc(e,n,!0);return"_c(".concat(t,",").concat(Qs(e,n)).concat(r?",".concat(r):"",")")}(t.component,t,e);else{var r=void 0,o=e.maybeComponent(t);(!t.plain||t.pre&&o)&&(r=Qs(t,e));var i=void 0,a=e.options.bindings;o&&a&&!1!==a.__isScriptSetup&&(i=function(t,e){var n=w(e),r=x(n),o=function(o){return t[e]===o?e:t[n]===o?n:t[r]===o?r:void 0},i=o("setup-const")||o("setup-reactive-const");if(i)return i;var a=o("setup-let")||o("setup-ref")||o("setup-maybe-ref");if(a)return a}(a,t.tag)),i||(i="'".concat(t.tag,"'"));var s=t.inlineTemplate?null:nc(t,e,!0);n="_c(".concat(i).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var c=0;c<e.transforms.length;c++)n=e.transforms[c](t,n);return n}return nc(t,e)||"void 0"}function Ws(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return ".concat(qs(t,e),"}")),e.pre=n,"_m(".concat(e.staticRenderFns.length-1).concat(t.staticInFor?",true":"",")")}function Zs(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Gs(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(qs(t,e),",").concat(e.onceId++,",").concat(n,")"):qs(t,e)}return Ws(t,e)}function Gs(t,e,n,r){return t.ifProcessed=!0,Xs(t.ifConditions.slice(),e,n,r)}function Xs(t,e,n,r){if(!t.length)return r||"_e()";var o=t.shift();return o.exp?"(".concat(o.exp,")?").concat(i(o.block),":").concat(Xs(t,e,n,r)):"".concat(i(o.block));function i(t){return n?n(t,e):t.once?Zs(t,e):qs(t,e)}}function Ys(t,e,n,r){var o=t.for,i=t.alias,a=t.iterator1?",".concat(t.iterator1):"",s=t.iterator2?",".concat(t.iterator2):"";return t.forProcessed=!0,"".concat(r||"_l","((").concat(o,"),")+"function(".concat(i).concat(a).concat(s,"){")+"return ".concat((n||qs)(t,e))+"})"}function Qs(t,e){var n="{",r=function(t,e){var n=t.directives;if(!n)return;var r,o,i,a,s="directives:[",c=!1;for(r=0,o=n.length;r<o;r++){i=n[r],a=!0;var u=e.directives[i.name];u&&(a=!!u(t,i,e.warn)),a&&(c=!0,s+='{name:"'.concat(i.name,'",rawName:"').concat(i.rawName,'"').concat(i.value?",value:(".concat(i.value,"),expression:").concat(JSON.stringify(i.value)):"").concat(i.arg?",arg:".concat(i.isDynamicArg?i.arg:'"'.concat(i.arg,'"')):"").concat(i.modifiers?",modifiers:".concat(JSON.stringify(i.modifiers)):"","},"))}if(c)return s.slice(0,-1)+"]"}(t,e);r&&(n+=r+","),t.key&&(n+="key:".concat(t.key,",")),t.ref&&(n+="ref:".concat(t.ref,",")),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'.concat(t.tag,'",'));for(var o=0;o<e.dataGenFns.length;o++)n+=e.dataGenFns[o](t);if(t.attrs&&(n+="attrs:".concat(ic(t.attrs),",")),t.props&&(n+="domProps:".concat(ic(t.props),",")),t.events&&(n+="".concat(Bs(t.events,!1),",")),t.nativeEvents&&(n+="".concat(Bs(t.nativeEvents,!0),",")),t.slotTarget&&!t.slotScope&&(n+="slot:".concat(t.slotTarget,",")),t.scopedSlots&&(n+="".concat(function(t,e,n){var r=t.for||Object.keys(e).some((function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||tc(n)})),o=!!t.if;if(!r)for(var i=t.parent;i;){if(i.slotScope&&i.slotScope!==ps||i.for){r=!0;break}i.if&&(o=!0),i=i.parent}var a=Object.keys(e).map((function(t){return ec(e[t],n)})).join(",");return"scopedSlots:_u([".concat(a,"]").concat(r?",null,true":"").concat(!r&&o?",null,false,".concat(function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a)):"",")")}(t,t.scopedSlots,e),",")),t.model&&(n+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var i=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Js(n,e.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(t){return"function(){".concat(t,"}")})).join(","),"]}")}}(t,e);i&&(n+="".concat(i,","))}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b(".concat(n,',"').concat(t.tag,'",').concat(ic(t.dynamicAttrs),")")),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function tc(t){return 1===t.type&&("slot"===t.tag||t.children.some(tc))}function ec(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Gs(t,e,ec,"null");if(t.for&&!t.forProcessed)return Ys(t,e,ec);var r=t.slotScope===ps?"":String(t.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===t.tag?t.if&&n?"(".concat(t.if,")?").concat(nc(t,e)||"undefined",":undefined"):nc(t,e)||"undefined":qs(t,e),"}"),i=r?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function nc(t,e,n,r,o){var i=t.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return"".concat((r||qs)(a,e)).concat(s)}var c=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var o=t[r];if(1===o.type){if(rc(o)||o.ifConditions&&o.ifConditions.some((function(t){return rc(t.block)}))){n=2;break}(e(o)||o.ifConditions&&o.ifConditions.some((function(t){return e(t.block)})))&&(n=1)}}return n}(i,e.maybeComponent):0,u=o||oc;return"[".concat(i.map((function(t){return u(t,e)})).join(","),"]").concat(c?",".concat(c):"")}}function rc(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function oc(t,e){return 1===t.type?qs(t,e):3===t.type&&t.isComment?function(t){return"_e(".concat(JSON.stringify(t.text),")")}(t):function(t){return"_v(".concat(2===t.type?t.expression:ac(JSON.stringify(t.text)),")")}(t)}function ic(t){for(var e="",n="",r=0;r<t.length;r++){var o=t[r],i=ac(o.value);o.dynamic?n+="".concat(o.name,",").concat(i,","):e+='"'.concat(o.name,'":').concat(i,",")}return e="{".concat(e.slice(0,-1),"}"),n?"_d(".concat(e,",[").concat(n.slice(0,-1),"])"):e}function ac(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function sc(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),j}}function cc(t){var e=Object.create(null);return function(n,r,o){(r=T({},r)).warn,delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(e[i])return e[i];var a=t(n,r),s={},c=[];return s.render=sc(a.render,c),s.staticRenderFns=a.staticRenderFns.map((function(t){return sc(t,c)})),e[i]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var uc,lc,fc=(uc=function(t,e){var n=hs(t.trim(),e);!1!==e.optimize&&Es(n,e);var r=Js(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){function e(e,n){var r=Object.create(t),o=[],i=[];if(n)for(var a in n.modules&&(r.modules=(t.modules||[]).concat(n.modules)),n.directives&&(r.directives=T(Object.create(t.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(t,e,n){(n?i:o).push(t)};var s=uc(e.trim(),r);return s.errors=o,s.tips=i,s}return{compile:e,compileToFunctions:cc(e)}}),dc=fc(As).compileToFunctions;function pc(t){return(lc=lc||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',lc.innerHTML.indexOf("&#10;")>0}var vc=!!J&&pc(!1),hc=!!J&&pc(!0),mc=b((function(t){var e=to(t);return e&&e.innerHTML})),gc=Cr.prototype.$mount;return Cr.prototype.$mount=function(t,e){if((t=t&&to(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=mc(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var o=dc(r,{outputSourceRange:!1,shouldDecodeNewlines:vc,shouldDecodeNewlinesForHref:hc,delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return gc.call(this,t,e)},Cr.compile=dc,T(Cr,Fn),Cr.effect=function(t,e){var n=new Vn(ct,t,j,{sync:!0});e&&(n.update=function(){e((function(){return n.run()}))})},Cr}));
13795Vue.config.ignoredElements=[/i4-.*/,/duet-\w*/,/ionas-.+/];
13796(function(){
13797const globalEventBus=new Vue();
13798Object.defineProperties(Vue.prototype,{
13799$globalEventBus:{
13800get:function(){
13801return globalEventBus;
13802}
13803}
13804});
13805})();
13806(function(){
13807(function(){
13808(function(){
13809(function(){
13810(function(){
13811var componentFactories=[];
13812var observer=new MutationObserver(function(mutations){
13813mutations.forEach(function(mutation){
13814for(var i=0;i<mutation.addedNodes.length;i++){
13815var addedNode=mutation.addedNodes[i];
13816if(typeof addedNode.querySelector==='function'){
13817componentFactories.some(function(component){
13818var selector=component.selector;
13819var targetNode=null;
13820if(addedNode.matches(selector)){
13821targetNode=addedNode;
13822}else{
13823targetNode=addedNode.querySelector(selector);
13824}
13825if(targetNode&&!targetNode.__vue__){
13826component.factory(targetNode);
13827return true;
13828}
13829return false;
13830});
13831}
13832}
13833});
13834});
13835observer.observe(document.body,{
13836attributes:false,
13837childList:true,
13838characterData:false,
13839subtree:true
13840});
13841this.registerFactory=function(selector,factory){
13842componentFactories.push({selector:selector,factory:factory});
13843document.querySelectorAll(selector).forEach(factory);
13844};
13845this.registerComponent=function(elementName,components){
13846this.registerFactory(elementName,function(el){
13847new Vue({
13848el:el,
13849components:components
13850});
13851});
13852};
13853}).call(this.Vuejs||(this.Vuejs={}));
13854}).call(this.Framework||(this.Framework={}));
13855}).call(this.Common||(this.Common={}));
13856}).call(this.Common||(this.Common={}));
13857}).call(window.Pegasus||(window.Pegasus={}));var PrivacyGuard=(function(){'use strict';var q=Object.defineProperty;
13858var B=(r,e,t)=>e in r?q(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;
13859var k=(r,e,t)=>(B(r,typeof e!="symbol"?e+"":e,t),t);
13860var g=function(r,e){
13861return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){
13862t.__proto__=n;
13863}||function(t,n){
13864for(var i in n)
13865n.hasOwnProperty(i)&&(t[i]=n[i]);
13866},g(r,e);
13867};
13868function L(r,e){
13869g(r,e);
13870function t(){
13871this.constructor=r;
13872}
13873r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t());
13874}
13875function P(r){
13876return typeof r=="function";
13877}
13878var R=!1,l={
13879Promise:void 0,
13880set useDeprecatedSynchronousErrorHandling(r){
13881if(r){
13882var e=new Error();
13883""+e.stack;
13884}
13885R=r;
13886},
13887get useDeprecatedSynchronousErrorHandling(){
13888return R;
13889}
13890};
13891function p(r){
13892setTimeout(function(){
13893throw r;
13894},0);
13895}
13896var y={
13897closed:!0,
13898next:function(r){
13899},
13900error:function(r){
13901if(l.useDeprecatedSynchronousErrorHandling)
13902throw r;
13903p(r);
13904},
13905complete:function(){
13906}
13907},G=function(){
13908return Array.isArray||function(r){
13909return r&&typeof r.length=="number";
13910};
13911}();
13912function W(r){
13913return r!==null&&typeof r=="object";
13914}
13915var J=function(){
13916function r(e){
13917return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription:
13918`+e.map(function(t,n){
13919return n+1+") "+t.toString();
13920}).join(`
13921  `):"",this.name="UnsubscriptionError",this.errors=e,this;
13922}
13923return r.prototype=Object.create(Error.prototype),r;
13924}(),_=J,Y=function(){
13925function r(e){
13926this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e);
13927}
13928return r.prototype.unsubscribe=function(){
13929var e;
13930if(!this.closed){
13931var t=this,n=t._parentOrParents,i=t._ctorUnsubscribe,o=t._unsubscribe,s=t._subscriptions;
13932if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)
13933n.remove(this);
13934else if(n!==null)
13935for(var c=0;c<n.length;++c){
13936var a=n[c];
13937a.remove(this);
13938}
13939if(P(o)){
13940i&&(this._unsubscribe=void 0);
13941try{
13942o.call(this);
13943}catch(w){
13944e=w instanceof _?F(w.errors):[w];
13945}
13946}
13947if(G(s))
13948for(var c=-1,H=s.length;++c<H;){
13949var C=s[c];
13950if(W(C))
13951try{
13952C.unsubscribe();
13953}catch(E){
13954e=e||[],E instanceof _?e=e.concat(F(E.errors)):e.push(E);
13955}
13956}
13957if(e)
13958throw new _(e);
13959}
13960},r.prototype.add=function(e){
13961var t=e;
13962if(!e)
13963return r.EMPTY;
13964switch(typeof e){
13965case"function":
13966t=new r(e);
13967case"object":
13968if(t===this||t.closed||typeof t.unsubscribe!="function")
13969return t;
13970if(this.closed)
13971return t.unsubscribe(),t;
13972if(!(t instanceof r)){
13973var n=t;
13974t=new r(),t._subscriptions=[n];
13975}
13976break;
13977default:
13978throw new Error("unrecognized teardown "+e+" added to Subscription.");
13979}
13980var i=t._parentOrParents;
13981if(i===null)
13982t._parentOrParents=this;
13983else if(i instanceof r){
13984if(i===this)
13985return t;
13986t._parentOrParents=[i,this];
13987}else if(i.indexOf(this)===-1)
13988i.push(this);
13989else
13990return t;
13991var o=this._subscriptions;
13992return o===null?this._subscriptions=[t]:o.push(t),t;
13993},r.prototype.remove=function(e){
13994var t=this._subscriptions;
13995if(t){
13996var n=t.indexOf(e);
13997n!==-1&&t.splice(n,1);
13998}
13999},r.EMPTY=function(e){
14000return e.closed=!0,e;
14001}(new r()),r;
14002}();
14003function F(r){
14004return r.reduce(function(e,t){
14005return e.concat(t instanceof _?t.errors:t);
14006},[]);
14007}
14008var I=function(){
14009return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();
14010}(),d=function(r){
14011L(e,r);
14012function e(t,n,i){
14013var o=r.call(this)||this;
14014switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){
14015case 0:
14016o.destination=y;
14017break;
14018case 1:
14019if(!t){
14020o.destination=y;
14021break;
14022}
14023if(typeof t=="object"){
14024t instanceof e?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new D(o,t));
14025break;
14026}
14027default:
14028o.syncErrorThrowable=!0,o.destination=new D(o,t,n,i);
14029break;
14030}
14031return o;
14032}
14033return e.prototype[I]=function(){
14034return this;
14035},e.create=function(t,n,i){
14036var o=new e(t,n,i);
14037return o.syncErrorThrowable=!1,o;
14038},e.prototype.next=function(t){
14039this.isStopped||this._next(t);
14040},e.prototype.error=function(t){
14041this.isStopped||(this.isStopped=!0,this._error(t));
14042},e.prototype.complete=function(){
14043this.isStopped||(this.isStopped=!0,this._complete());
14044},e.prototype.unsubscribe=function(){
14045this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this));
14046},e.prototype._next=function(t){
14047this.destination.next(t);
14048},e.prototype._error=function(t){
14049this.destination.error(t),this.unsubscribe();
14050},e.prototype._complete=function(){
14051this.destination.complete(),this.unsubscribe();
14052},e.prototype._unsubscribeAndRecycle=function(){
14053var t=this._parentOrParents;
14054return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this;
14055},e;
14056}(Y),D=function(r){
14057L(e,r);
14058function e(t,n,i,o){
14059var s=r.call(this)||this;
14060s._parentSubscriber=t;
14061var c,a=s;
14062return P(n)?c=n:n&&(c=n.next,i=n.error,o=n.complete,n!==y&&(a=Object.create(n),P(a.unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=c,s._error=i,s._complete=o,s;
14063}
14064return e.prototype.next=function(t){
14065if(!this.isStopped&&this._next){
14066var n=this._parentSubscriber;
14067!l.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe();
14068}
14069},e.prototype.error=function(t){
14070if(!this.isStopped){
14071var n=this._parentSubscriber,i=l.useDeprecatedSynchronousErrorHandling;
14072if(this._error)
14073!i||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());
14074else if(n.syncErrorThrowable)
14075i?(n.syncErrorValue=t,n.syncErrorThrown=!0):p(t),this.unsubscribe();
14076else{
14077if(this.unsubscribe(),i)
14078throw t;
14079p(t);
14080}
14081}
14082},e.prototype.complete=function(){
14083var t=this;
14084if(!this.isStopped){
14085var n=this._parentSubscriber;
14086if(this._complete){
14087var i=function(){
14088return t._complete.call(t._context);
14089};
14090!l.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(n,i),this.unsubscribe());
14091}else
14092this.unsubscribe();
14093}
14094},e.prototype.__tryOrUnsub=function(t,n){
14095try{
14096t.call(this._context,n);
14097}catch(i){
14098if(this.unsubscribe(),l.useDeprecatedSynchronousErrorHandling)
14099throw i;
14100p(i);
14101}
14102},e.prototype.__tryOrSetError=function(t,n,i){
14103if(!l.useDeprecatedSynchronousErrorHandling)
14104throw new Error("bad call");
14105try{
14106n.call(this._context,i);
14107}catch(o){
14108return l.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=o,t.syncErrorThrown=!0,!0):(p(o),!0);
14109}
14110return!1;
14111},e.prototype._unsubscribe=function(){
14112var t=this._parentSubscriber;
14113this._context=null,this._parentSubscriber=null,t.unsubscribe();
14114},e;
14115}(d);
14116function z(r){
14117for(;r;){
14118var e=r,t=e.closed,n=e.destination,i=e.isStopped;
14119if(t||i)
14120return!1;
14121n&&n instanceof d?r=n:r=null;
14122}
14123return!0;
14124}
14125function X(r,e,t){
14126if(r){
14127if(r instanceof d)
14128return r;
14129if(r[I])
14130return r[I]();
14131}
14132return!r&&!e&&!t?new d(y):new d(r,e,t);
14133}
14134var Q=function(){
14135return typeof Symbol=="function"&&Symbol.observable||"@@observable";
14136}();
14137function Z(r){
14138return r;
14139}
14140function $(r){
14141return r.length===0?Z:r.length===1?r[0]:function(t){
14142return r.reduce(function(n,i){
14143return i(n);
14144},t);
14145};
14146}
14147var ee=function(){
14148function r(e){
14149this._isScalar=!1,e&&(this._subscribe=e);
14150}
14151return r.prototype.lift=function(e){
14152var t=new r();
14153return t.source=this,t.operator=e,t;
14154},r.prototype.subscribe=function(e,t,n){
14155var i=this.operator,o=X(e,t,n);
14156if(i?o.add(i.call(o,this.source)):o.add(this.source||l.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),l.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))
14157throw o.syncErrorValue;
14158return o;
14159},r.prototype._trySubscribe=function(e){
14160try{
14161return this._subscribe(e);
14162}catch(t){
14163l.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),z(e)?e.error(t):console.warn(t);
14164}
14165},r.prototype.forEach=function(e,t){
14166var n=this;
14167return t=x(t),new t(function(i,o){
14168var s;
14169s=n.subscribe(function(c){
14170try{
14171e(c);
14172}catch(a){
14173o(a),s&&s.unsubscribe();
14174}
14175},o,i);
14176});
14177},r.prototype._subscribe=function(e){
14178var t=this.source;
14179return t&&t.subscribe(e);
14180},r.prototype[Q]=function(){
14181return this;
14182},r.prototype.pipe=function(){
14183for(var e=[],t=0;t<arguments.length;t++)
14184e[t]=arguments[t];
14185return e.length===0?this:$(e)(this);
14186},r.prototype.toPromise=function(e){
14187var t=this;
14188return e=x(e),new e(function(n,i){
14189var o;
14190t.subscribe(function(s){
14191return o=s;
14192},function(s){
14193return i(s);
14194},function(){
14195return n(o);
14196});
14197});
14198},r.create=function(e){
14199return new r(e);
14200},r;
14201}();
14202function x(r){
14203if(r||(r=Promise),!r)
14204throw new Error("no Promise impl found");
14205return r;
14206}
14207const b="cookie-consent-policy-changed",te="Cookie consent information unavailable",re="cookies_consent_information_unavailable";
14208class ne extends Error{
14209constructor(t,n){
14210super(t);
14211k(this,"code");
14212this.code=n;
14213}
14214}
14215let N=document.getElementById("ionasInfo");
14216var f=N?JSON.parse(N.innerText):void 0;
14217function V(){
14218if(f!=null&&f.context)
14219return f.context;
14220const r=window.ionas4;
14221if(r!=null&&r.contextPath)
14222return r.contextPath;
14223if(document.head.dataset.contextPath!==void 0)
14224return document.head.dataset.contextPath;
14225const e=document.head.querySelector("link[rel='base']");
14226return e&&e.href?e.href:"";
14227}
14228let K=null;
14229async function ie(){
14230let r=await fetch(V()+"/:ionasinfo/coreCookieConsent",{headers:{Accept:"application/json"}});
14231if(r.ok)
14232return r.json();
14233throw new ne(te,re);
14234}
14235function oe(){
14236return K=K||ie();
14237}
14238window.addEventListener("cookie-consent-issued",()=>{
14239window.IONAS_CSRF_TOKEN=void 0,window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES=void 0;
14240});
14241async function M(r){
14242let e=new URL(V()+"/:ionasinfo/csrfToken",location.href);
14243if(r){
14244let n=await oe();
14245e.searchParams.append(n.cookieName,n.cookieValue);
14246}
14247let t=await fetch(e.href,{headers:{Accept:"application/json"}});
14248if(t.ok)
14249return t.json();
14250throw new Error("Cannot fetch CSRF token. "+t.statusText);
14251}
14252function se(r){
14253return r?(window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES??(window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES=M(r).finally(()=>{
14254window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES=void 0;
14255})),window.IONAS_CSRF_TOKEN_PERMITTED_COOKIES):(window.IONAS_CSRF_TOKEN??(window.IONAS_CSRF_TOKEN=M(r).finally(()=>{
14256window.IONAS_CSRF_TOKEN=void 0;
14257})),window.IONAS_CSRF_TOKEN);
14258}
14259const T=f.context,j=f.cookiePrivacy;
14260function h(r){
14261return"PrivacyPolicy["+T+"]["+r+"]";
14262}
14263const O=j.consentCookieName,u=j.coreCookieCategory,S=new RegExp("\\b"+O+"=("+u+"\\b)?"),A=function(){
14264const r=document.head.querySelector('meta[name="privacy-mode"]');
14265if(r){
14266const e=r.getAttribute("content");
14267if(e)
14268return e.split(",");
14269}
14270return["core-permitted","allow-permit-session","allow-permit-forever"];
14271}(),U=function(){
14272const r=document.head.querySelector('meta[name="invisible-tracking-opts"]');
14273if(r){
14274const e=r.getAttribute("content");
14275if(e)
14276return e.split(",");
14277}
14278return[];
14279}(),ce=function(){
14280const r=document.head.querySelector('meta[name="forced-tracking-opts"]');
14281if(r){
14282const e=r.getAttribute("content");
14283if(e)
14284return e.split(",");
14285}
14286return[];
14287}(),ue=function(){
14288const r=document.head.querySelector('meta[name="privacy-cookie-max-age"]'),e=r==null?void 0:r.getAttribute("content");
14289if(e){
14290const t=parseInt(e);
14291if(!isNaN(t))
14292return t;
14293}
14294return 30*24*60*60*1e3;
14295}(),m=A.includes("core-permitted"),ae=A.includes("allow-permit-session"),le=A.includes("allow-permit-forever");
14296class fe{
14297isAllowPermitSession(){
14298return ae;
14299}
14300isAllowPermitForever(){
14301return le;
14302}
14303isIdAllowPermitSession(e){
14304return this.isAllowPermitSession()&&!U.includes(e);
14305}
14306isIdAllowPermitForever(e){
14307return this.isAllowPermitForever()&&!U.includes(e);
14308}
14309isForced(e){
14310return ce.includes(e);
14311}
14312observe(e){
14313return new ee((t)=>{
14314const n=(i)=>{
14315(e===void 0||e===i.detail.id)&&t.next(i.detail);
14316};
14317if(e!==void 0){
14318const i=this.getPermittedPolicy(e);
14319i?t.next({
14320id:e,
14321permitted:!0,
14322policy:i
14323}):t.next({
14324id:e,
14325permitted:!1
14326});
14327}
14328return window.addEventListener(b,n),function(){
14329window.removeEventListener(b,n);
14330};
14331});
14332}
14333isDecided(e){
14334if(v.isForced(e)||u===e&&(m||document.cookie.match(S)!=null))
14335return!0;
14336if(this.isAllowPermitSession()||this.isAllowPermitForever()){
14337const t=h(e);
14338return u===e?sessionStorage.getItem(t)==="forbidden"||localStorage.getItem(t)==="forbidden":!!sessionStorage.getItem(t)||!!localStorage.getItem(t);
14339}else
14340return!0;
14341}
14342isPermitted(e){
14343if(v.isForced(e))
14344return!0;
14345if(u===e){
14346if(m)
14347return!0;
14348const t=document.cookie.match(S);
14349if(t!=null)
14350return!!t[1];
14351}
14352if(this.isAllowPermitSession()||this.isAllowPermitForever()){
14353const t=h(e);
14354return this.isPermittedInSession(t)||this.isPermitted0(e,t);
14355}else
14356return!1;
14357}
14358isPermittedInSession(e){
14359return sessionStorage.getItem(e)==="session";
14360}
14361isPermitted0(e,t){
14362const n=localStorage.getItem(t);
14363if(n==="forever")
14364return u!==e;
14365if(n!=null&&n.startsWith("ttl:")){
14366if(u===e)
14367return!1;
14368{
14369const i=new Date(),o=new Date();
14370return o.setTime(parseInt(n.substring(4))),i<o;
14371}
14372}
14373return!1;
14374}
14375getPermittedPolicy(e){
14376if(v.isForced(e)||u===e&&(m||document.cookie.match(S)!=null))
14377return"forever";
14378if(this.isAllowPermitSession()||this.isAllowPermitForever()){
14379const t=h(e);
14380return this.getPermittedPolicy0(e,t);
14381}else
14382return;
14383}
14384getPermittedPolicy0(e,t){
14385const n=localStorage.getItem(t);
14386if(n==="forever")
14387return u!==e?"forever":void 0;
14388if(n&&n.startsWith("ttl:")){
14389if(u===e)
14390return;
14391{
14392const i=new Date(),o=parseInt(n.substring(4))-i.getTime();
14393return o>0?o:void 0;
14394}
14395}
14396}
14397setPermitted(e,t){
14398const n=h(e);
14399t==="forever"?this.setPermittedForever(n):typeof t=="number"?this.setPermittedByNumberOfSeconds(n,t):this.setPermittedInSession(n),u===e&&this.setPermittedCoreCookie(t),se().then(()=>{
14400window.dispatchEvent(new CustomEvent(b,{
14401detail:{
14402id:e,
14403permitted:!0,
14404policy:t
14405}
14406}));
14407});
14408}
14409setPermittedForever(e){
14410if(!this.isAllowPermitForever())
14411throw new Error("Permit forever is prohibited");
14412localStorage.setItem(e,"forever"),sessionStorage.removeItem(e);
14413}
14414setPermittedByNumberOfSeconds(e,t){
14415if(!this.isAllowPermitForever())
14416throw new Error("Permit forever is prohibited");
14417const n=(new Date()).getTime()+t;
14418localStorage.setItem(e,"ttl:"+n),sessionStorage.removeItem(e);
14419}
14420setPermittedInSession(e){
14421if(!this.isAllowPermitSession())
14422throw new Error("Permit per session is prohibited");
14423localStorage.removeItem(e),sessionStorage.setItem(e,"session");
14424}
14425setPermittedCoreCookie(e){
14426if(!m){
14427let t=O+"="+u+"; path="+T+"/";
14428if(e==="forever"&&this.isAllowPermitForever()){
14429const n=new Date();
14430n.setTime(n.getTime()+ue),t+="; expires="+n.toUTCString();
14431}else if(typeof e=="number"&&this.isAllowPermitForever()){
14432const n=new Date();
14433n.setTime(n.getTime()+e),t+="; expires="+n.toUTCString();
14434}
14435document.cookie=t;
14436}
14437}
14438setForbidden(e,t=!1){
14439const n=this.isPermitted(e),i=h(e);
14440localStorage.setItem(i,"forbidden"),sessionStorage.removeItem(i),u===e&&(document.cookie=O+"=; path="+T+"/; expires=Thu, 01 Jan 1970 00:00:00 GMT"),window.dispatchEvent(new CustomEvent(b,{
14441detail:{
14442id:e,
14443permitted:!1
14444}
14445})),n&&t&&window.location.reload();
14446}
14447}
14448const v=new fe();return v;})();
14449this.Pegasus=this.Pegasus||{},this.Pegasus.Common=this.Pegasus.Common||{},this.Pegasus.Common.Common=this.Pegasus.Common.Common||{},this.Pegasus.Common.Common.Lib=this.Pegasus.Common.Common.Lib||{};this.Pegasus.Common.Common.Lib.PrivacyGuard=(function(exports,H,Jt,E,nt){'use strict';
14450var W=function(n,e){
14451return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){
14452t.__proto__=r;
14453}||function(t,r){
14454for(var i in r)
14455r.hasOwnProperty(i)&&(t[i]=r[i]);
14456},W(n,e);
14457};
14458function v(n,e){
14459W(n,e);
14460function t(){
14461this.constructor=n;
14462}
14463n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t());
14464}
14465function D(n){
14466return typeof n=="function";
14467}
14468var it=!1,m={
14469Promise:void 0,
14470set useDeprecatedSynchronousErrorHandling(n){
14471if(n){
14472var e=new Error();
14473""+e.stack;
14474}
14475it=n;
14476},
14477get useDeprecatedSynchronousErrorHandling(){
14478return it;
14479}
14480};
14481function P(n){
14482setTimeout(function(){
14483throw n;
14484},0);
14485}
14486var I={
14487closed:!0,
14488next:function(n){
14489},
14490error:function(n){
14491if(m.useDeprecatedSynchronousErrorHandling)
14492throw n;
14493P(n);
14494},
14495complete:function(){
14496}
14497},J=function(){
14498return Array.isArray||function(n){
14499return n&&typeof n.length=="number";
14500};
14501}();
14502function _t(n){
14503return n!==null&&typeof n=="object";
14504}
14505var Kt=function(){
14506function n(e){
14507return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription:
14508`+e.map(function(t,r){
14509return r+1+") "+t.toString();
14510}).join(`
14511  `):"",this.name="UnsubscriptionError",this.errors=e,this;
14512}
14513return n.prototype=Object.create(Error.prototype),n;
14514}(),U=Kt,x=function(){
14515function n(e){
14516this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e);
14517}
14518return n.prototype.unsubscribe=function(){
14519var e;
14520if(!this.closed){
14521var t=this,r=t._parentOrParents,i=t._ctorUnsubscribe,o=t._unsubscribe,s=t._subscriptions;
14522if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof n)
14523r.remove(this);
14524else if(r!==null)
14525for(var c=0;c<r.length;++c){
14526var u=r[c];
14527u.remove(this);
14528}
14529if(D(o)){
14530i&&(this._unsubscribe=void 0);
14531try{
14532o.call(this);
14533}catch(S){
14534e=S instanceof U?ot(S.errors):[S];
14535}
14536}
14537if(J(s))
14538for(var c=-1,a=s.length;++c<a;){
14539var b=s[c];
14540if(_t(b))
14541try{
14542b.unsubscribe();
14543}catch(h){
14544e=e||[],h instanceof U?e=e.concat(ot(h.errors)):e.push(h);
14545}
14546}
14547if(e)
14548throw new U(e);
14549}
14550},n.prototype.add=function(e){
14551var t=e;
14552if(!e)
14553return n.EMPTY;
14554switch(typeof e){
14555case"function":
14556t=new n(e);
14557case"object":
14558if(t===this||t.closed||typeof t.unsubscribe!="function")
14559return t;
14560if(this.closed)
14561return t.unsubscribe(),t;
14562if(!(t instanceof n)){
14563var r=t;
14564t=new n(),t._subscriptions=[r];
14565}
14566break;
14567default:
14568throw new Error("unrecognized teardown "+e+" added to Subscription.");
14569}
14570var i=t._parentOrParents;
14571if(i===null)
14572t._parentOrParents=this;
14573else if(i instanceof n){
14574if(i===this)
14575return t;
14576t._parentOrParents=[i,this];
14577}else if(i.indexOf(this)===-1)
14578i.push(this);
14579else
14580return t;
14581var o=this._subscriptions;
14582return o===null?this._subscriptions=[t]:o.push(t),t;
14583},n.prototype.remove=function(e){
14584var t=this._subscriptions;
14585if(t){
14586var r=t.indexOf(e);
14587r!==-1&&t.splice(r,1);
14588}
14589},n.EMPTY=function(e){
14590return e.closed=!0,e;
14591}(new n()),n;
14592}();
14593function ot(n){
14594return n.reduce(function(e,t){
14595return e.concat(t instanceof U?t.errors:t);
14596},[]);
14597}
14598var V=function(){
14599return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();
14600}(),_=function(n){
14601v(e,n);
14602function e(t,r,i){
14603var o=n.call(this)||this;
14604switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){
14605case 0:
14606o.destination=I;
14607break;
14608case 1:
14609if(!t){
14610o.destination=I;
14611break;
14612}
14613if(typeof t=="object"){
14614t instanceof e?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new st(o,t));
14615break;
14616}
14617default:
14618o.syncErrorThrowable=!0,o.destination=new st(o,t,r,i);
14619break;
14620}
14621return o;
14622}
14623return e.prototype[V]=function(){
14624return this;
14625},e.create=function(t,r,i){
14626var o=new e(t,r,i);
14627return o.syncErrorThrowable=!1,o;
14628},e.prototype.next=function(t){
14629this.isStopped||this._next(t);
14630},e.prototype.error=function(t){
14631this.isStopped||(this.isStopped=!0,this._error(t));
14632},e.prototype.complete=function(){
14633this.isStopped||(this.isStopped=!0,this._complete());
14634},e.prototype.unsubscribe=function(){
14635this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this));
14636},e.prototype._next=function(t){
14637this.destination.next(t);
14638},e.prototype._error=function(t){
14639this.destination.error(t),this.unsubscribe();
14640},e.prototype._complete=function(){
14641this.destination.complete(),this.unsubscribe();
14642},e.prototype._unsubscribeAndRecycle=function(){
14643var t=this._parentOrParents;
14644return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this;
14645},e;
14646}(x),st=function(n){
14647v(e,n);
14648function e(t,r,i,o){
14649var s=n.call(this)||this;
14650s._parentSubscriber=t;
14651var c,u=s;
14652return D(r)?c=r:r&&(c=r.next,i=r.error,o=r.complete,r!==I&&(u=Object.create(r),D(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=i,s._complete=o,s;
14653}
14654return e.prototype.next=function(t){
14655if(!this.isStopped&&this._next){
14656var r=this._parentSubscriber;
14657!m.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(r,this._next,t)&&this.unsubscribe();
14658}
14659},e.prototype.error=function(t){
14660if(!this.isStopped){
14661var r=this._parentSubscriber,i=m.useDeprecatedSynchronousErrorHandling;
14662if(this._error)
14663!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(r,this._error,t),this.unsubscribe());
14664else if(r.syncErrorThrowable)
14665i?(r.syncErrorValue=t,r.syncErrorThrown=!0):P(t),this.unsubscribe();
14666else{
14667if(this.unsubscribe(),i)
14668throw t;
14669P(t);
14670}
14671}
14672},e.prototype.complete=function(){
14673var t=this;
14674if(!this.isStopped){
14675var r=this._parentSubscriber;
14676if(this._complete){
14677var i=function(){
14678return t._complete.call(t._context);
14679};
14680!m.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe());
14681}else
14682this.unsubscribe();
14683}
14684},e.prototype.__tryOrUnsub=function(t,r){
14685try{
14686t.call(this._context,r);
14687}catch(i){
14688if(this.unsubscribe(),m.useDeprecatedSynchronousErrorHandling)
14689throw i;
14690P(i);
14691}
14692},e.prototype.__tryOrSetError=function(t,r,i){
14693if(!m.useDeprecatedSynchronousErrorHandling)
14694throw new Error("bad call");
14695try{
14696r.call(this._context,i);
14697}catch(o){
14698return m.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=o,t.syncErrorThrown=!0,!0):(P(o),!0);
14699}
14700return!1;
14701},e.prototype._unsubscribe=function(){
14702var t=this._parentSubscriber;
14703this._context=null,this._parentSubscriber=null,t.unsubscribe();
14704},e;
14705}(_);
14706function zt(n){
14707for(;n;){
14708var e=n,t=e.closed,r=e.destination,i=e.isStopped;
14709if(t||i)
14710return!1;
14711r&&r instanceof _?n=r:n=null;
14712}
14713return!0;
14714}
14715function Qt(n,e,t){
14716if(n){
14717if(n instanceof _)
14718return n;
14719if(n[V])
14720return n[V]();
14721}
14722return!n&&!e&&!t?new _(I):new _(n,e,t);
14723}
14724var K=function(){
14725return typeof Symbol=="function"&&Symbol.observable||"@@observable";
14726}();
14727function Gt(n){
14728return n;
14729}
14730function Zt(n){
14731return n.length===0?Gt:n.length===1?n[0]:function(t){
14732return n.reduce(function(r,i){
14733return i(r);
14734},t);
14735};
14736}
14737var A=function(){
14738function n(e){
14739this._isScalar=!1,e&&(this._subscribe=e);
14740}
14741return n.prototype.lift=function(e){
14742var t=new n();
14743return t.source=this,t.operator=e,t;
14744},n.prototype.subscribe=function(e,t,r){
14745var i=this.operator,o=Qt(e,t,r);
14746if(i?o.add(i.call(o,this.source)):o.add(this.source||m.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),m.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))
14747throw o.syncErrorValue;
14748return o;
14749},n.prototype._trySubscribe=function(e){
14750try{
14751return this._subscribe(e);
14752}catch(t){
14753m.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),zt(e)?e.error(t):console.warn(t);
14754}
14755},n.prototype.forEach=function(e,t){
14756var r=this;
14757return t=ut(t),new t(function(i,o){
14758var s;
14759s=r.subscribe(function(c){
14760try{
14761e(c);
14762}catch(u){
14763o(u),s&&s.unsubscribe();
14764}
14765},o,i);
14766});
14767},n.prototype._subscribe=function(e){
14768var t=this.source;
14769return t&&t.subscribe(e);
14770},n.prototype[K]=function(){
14771return this;
14772},n.prototype.pipe=function(){
14773for(var e=[],t=0;t<arguments.length;t++)
14774e[t]=arguments[t];
14775return e.length===0?this:Zt(e)(this);
14776},n.prototype.toPromise=function(e){
14777var t=this;
14778return e=ut(e),new e(function(r,i){
14779var o;
14780t.subscribe(function(s){
14781return o=s;
14782},function(s){
14783return i(s);
14784},function(){
14785return r(o);
14786});
14787});
14788},n.create=function(e){
14789return new n(e);
14790},n;
14791}();
14792function ut(n){
14793if(n||(n=Promise),!n)
14794throw new Error("no Promise impl found");
14795return n;
14796}
14797var te=function(){
14798function n(){
14799return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this;
14800}
14801return n.prototype=Object.create(Error.prototype),n;
14802}(),k=te,ee=function(n){
14803v(e,n);
14804function e(t,r){
14805var i=n.call(this)||this;
14806return i.subject=t,i.subscriber=r,i.closed=!1,i;
14807}
14808return e.prototype.unsubscribe=function(){
14809if(!this.closed){
14810this.closed=!0;
14811var t=this.subject,r=t.observers;
14812if(this.subject=null,!(!r||r.length===0||t.isStopped||t.closed)){
14813var i=r.indexOf(this.subscriber);
14814i!==-1&&r.splice(i,1);
14815}
14816}
14817},e;
14818}(x),re=function(n){
14819v(e,n);
14820function e(t){
14821var r=n.call(this,t)||this;
14822return r.destination=t,r;
14823}
14824return e;
14825}(_),Y=function(n){
14826v(e,n);
14827function e(){
14828var t=n.call(this)||this;
14829return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t;
14830}
14831return e.prototype[V]=function(){
14832return new re(this);
14833},e.prototype.lift=function(t){
14834var r=new ct(this,this);
14835return r.operator=t,r;
14836},e.prototype.next=function(t){
14837if(this.closed)
14838throw new k();
14839if(!this.isStopped)
14840for(var r=this.observers,i=r.length,o=r.slice(),s=0;s<i;s++)
14841o[s].next(t);
14842},e.prototype.error=function(t){
14843if(this.closed)
14844throw new k();
14845this.hasError=!0,this.thrownError=t,this.isStopped=!0;
14846for(var r=this.observers,i=r.length,o=r.slice(),s=0;s<i;s++)
14847o[s].error(t);
14848this.observers.length=0;
14849},e.prototype.complete=function(){
14850if(this.closed)
14851throw new k();
14852this.isStopped=!0;
14853for(var t=this.observers,r=t.length,i=t.slice(),o=0;o<r;o++)
14854i[o].complete();
14855this.observers.length=0;
14856},e.prototype.unsubscribe=function(){
14857this.isStopped=!0,this.closed=!0,this.observers=null;
14858},e.prototype._trySubscribe=function(t){
14859if(this.closed)
14860throw new k();
14861return n.prototype._trySubscribe.call(this,t);
14862},e.prototype._subscribe=function(t){
14863if(this.closed)
14864throw new k();
14865return this.hasError?(t.error(this.thrownError),x.EMPTY):this.isStopped?(t.complete(),x.EMPTY):(this.observers.push(t),new ee(this,t));
14866},e.prototype.asObservable=function(){
14867var t=new A();
14868return t.source=this,t;
14869},e.create=function(t,r){
14870return new ct(t,r);
14871},e;
14872}(A),ct=function(n){
14873v(e,n);
14874function e(t,r){
14875var i=n.call(this)||this;
14876return i.destination=t,i.source=r,i;
14877}
14878return e.prototype.next=function(t){
14879var r=this.destination;
14880r&&r.next&&r.next(t);
14881},e.prototype.error=function(t){
14882var r=this.destination;
14883r&&r.error&&this.destination.error(t);
14884},e.prototype.complete=function(){
14885var t=this.destination;
14886t&&t.complete&&this.destination.complete();
14887},e.prototype._subscribe=function(t){
14888var r=this.source;
14889return r?this.source.subscribe(t):x.EMPTY;
14890},e;
14891}(Y),ne=function(n){
14892v(e,n);
14893function e(t,r){
14894return n.call(this)||this;
14895}
14896return e.prototype.schedule=function(t,r){
14897return this;
14898},e;
14899}(x),ie=function(n){
14900v(e,n);
14901function e(t,r){
14902var i=n.call(this,t,r)||this;
14903return i.scheduler=t,i.work=r,i.pending=!1,i;
14904}
14905return e.prototype.schedule=function(t,r){
14906if(r===void 0&&(r=0),this.closed)
14907return this;
14908this.state=t;
14909var i=this.id,o=this.scheduler;
14910return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(o,this.id,r),this;
14911},e.prototype.requestAsyncId=function(t,r,i){
14912return i===void 0&&(i=0),setInterval(t.flush.bind(t,this),i);
14913},e.prototype.recycleAsyncId=function(t,r,i){
14914if(i===void 0&&(i=0),i!==null&&this.delay===i&&this.pending===!1)
14915return r;
14916clearInterval(r);
14917},e.prototype.execute=function(t,r){
14918if(this.closed)
14919return new Error("executing a cancelled action");
14920this.pending=!1;
14921var i=this._execute(t,r);
14922if(i)
14923return i;
14924this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));
14925},e.prototype._execute=function(t,r){
14926var i=!1,o=void 0;
14927try{
14928this.work(t);
14929}catch(s){
14930i=!0,o=!!s&&s||new Error(s);
14931}
14932if(i)
14933return this.unsubscribe(),o;
14934},e.prototype._unsubscribe=function(){
14935var t=this.id,r=this.scheduler,i=r.actions,o=i.indexOf(this);
14936this.work=null,this.state=null,this.pending=!1,this.scheduler=null,o!==-1&&i.splice(o,1),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null;
14937},e;
14938}(ne),at=function(){
14939function n(e,t){
14940t===void 0&&(t=n.now),this.SchedulerAction=e,this.now=t;
14941}
14942return n.prototype.schedule=function(e,t,r){
14943return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(r,t);
14944},n.now=function(){
14945return Date.now();
14946},n;
14947}(),oe=function(n){
14948v(e,n);
14949function e(t,r){
14950r===void 0&&(r=at.now);
14951var i=n.call(this,t,function(){
14952return e.delegate&&e.delegate!==i?e.delegate.now():r();
14953})||this;
14954return i.actions=[],i.active=!1,i.scheduled=void 0,i;
14955}
14956return e.prototype.schedule=function(t,r,i){
14957return r===void 0&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,r,i):n.prototype.schedule.call(this,t,r,i);
14958},e.prototype.flush=function(t){
14959var r=this.actions;
14960if(this.active){
14961r.push(t);
14962return;
14963}
14964var i;
14965this.active=!0;
14966do
14967if(i=t.execute(t.state,t.delay))
14968break;
14969while(t=r.shift());
14970if(this.active=!1,i){
14971for(;t=r.shift();)
14972t.unsubscribe();
14973throw i;
14974}
14975},e;
14976}(at);
14977function lt(n){
14978return n&&typeof n.schedule=="function";
14979}
14980var se=function(n){
14981return function(e){
14982for(var t=0,r=n.length;t<r&&!e.closed;t++)
14983e.next(n[t]);
14984e.complete();
14985};
14986},ue=new oe(ie),ce=ue;
14987function ae(n,e){
14988return function(r){
14989if(typeof n!="function")
14990throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
14991return r.lift(new le(n,e));
14992};
14993}
14994var le=function(){
14995function n(e,t){
14996this.project=e,this.thisArg=t;
14997}
14998return n.prototype.call=function(e,t){
14999return t.subscribe(new fe(e,this.project,this.thisArg));
15000},n;
15001}(),fe=function(n){
15002v(e,n);
15003function e(t,r,i){
15004var o=n.call(this,t)||this;
15005return o.project=r,o.count=0,o.thisArg=i||o,o;
15006}
15007return e.prototype._next=function(t){
15008var r;
15009try{
15010r=this.project.call(this.thisArg,t,this.count++);
15011}catch(i){
15012this.destination.error(i);
15013return;
15014}
15015this.destination.next(r);
15016},e;
15017}(_),pe=function(n){
15018return function(e){
15019return n.then(function(t){
15020e.closed||(e.next(t),e.complete());
15021},function(t){
15022return e.error(t);
15023}).then(null,P),e;
15024};
15025};
15026function he(){
15027return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator;
15028}
15029var St=he(),de=function(n){
15030return function(e){
15031var t=n[St]();
15032do{
15033var r=void 0;
15034try{
15035r=t.next();
15036}catch(i){
15037return e.error(i),e;
15038}
15039if(r.done){
15040e.complete();
15041break;
15042}
15043if(e.next(r.value),e.closed)
15044break;
15045}while(!0);
15046return typeof t.return=="function"&&e.add(function(){
15047t.return&&t.return();
15048}),e;
15049};
15050},be=function(n){
15051return function(e){
15052var t=n[K]();
15053if(typeof t.subscribe!="function")
15054throw new TypeError("Provided object does not correctly implement Symbol.observable");
15055return t.subscribe(e);
15056};
15057},ve=function(n){
15058return n&&typeof n.length=="number"&&typeof n!="function";
15059};
15060function ye(n){
15061return!!n&&typeof n.subscribe!="function"&&typeof n.then=="function";
15062}
15063var me=function(n){
15064if(n&&typeof n[K]=="function")
15065return be(n);
15066if(ve(n))
15067return se(n);
15068if(ye(n))
15069return pe(n);
15070if(n&&typeof n[St]=="function")
15071return de(n);
15072var e=_t(n)?"an invalid object":"'"+n+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";
15073throw new TypeError(t);
15074},_e=function(n){
15075v(e,n);
15076function e(t){
15077var r=n.call(this)||this;
15078return r.parent=t,r;
15079}
15080return e.prototype._next=function(t){
15081this.parent.notifyNext(t);
15082},e.prototype._error=function(t){
15083this.parent.notifyError(t),this.unsubscribe();
15084},e.prototype._complete=function(){
15085this.parent.notifyComplete(),this.unsubscribe();
15086},e;
15087}(_),Se=function(n){
15088v(e,n);
15089function e(){
15090return n!==null&&n.apply(this,arguments)||this;
15091}
15092return e.prototype.notifyNext=function(t){
15093this.destination.next(t);
15094},e.prototype.notifyError=function(t){
15095this.destination.error(t);
15096},e.prototype.notifyComplete=function(){
15097this.destination.complete();
15098},e;
15099}(_);
15100function we(n,e){
15101if(!e.closed){
15102if(n instanceof A)
15103return n.subscribe(e);
15104var t;
15105try{
15106t=me(n)(e);
15107}catch(r){
15108e.error(r);
15109}
15110return t;
15111}
15112}
15113function wt(n,e,t,r){
15114return D(t)&&(r=t,t=void 0),r?wt(n,e,t).pipe(ae(function(i){
15115return J(i)?r.apply(void 0,i):r(i);
15116})):new A(function(i){
15117function o(s){
15118arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(s);
15119}
15120Et(n,e,o,i,t);
15121});
15122}
15123function Et(n,e,t,r,i){
15124var o;
15125if(Pe(n)){
15126var s=n;
15127n.addEventListener(e,t,i),o=function(){
15128return s.removeEventListener(e,t,i);
15129};
15130}else if(ge(n)){
15131var c=n;
15132n.on(e,t),o=function(){
15133return c.off(e,t);
15134};
15135}else if(Ee(n)){
15136var u=n;
15137n.addListener(e,t),o=function(){
15138return u.removeListener(e,t);
15139};
15140}else if(n&&n.length)
15141for(var a=0,b=n.length;a<b;a++)
15142Et(n[a],e,t,r,i);
15143else
15144throw new TypeError("Invalid event target");
15145r.add(o);
15146}
15147function Ee(n){
15148return n&&typeof n.addListener=="function"&&typeof n.removeListener=="function";
15149}
15150function ge(n){
15151return n&&typeof n.on=="function"&&typeof n.off=="function";
15152}
15153function Pe(n){
15154return n&&typeof n.addEventListener=="function"&&typeof n.removeEventListener=="function";
15155}
15156function ft(n){
15157return!J(n)&&n-parseFloat(n)+1>=0;
15158}
15159function pt(n,e,t){
15160n===void 0&&(n=0);
15161var r=-1;
15162return ft(e)?r=Number(e)<1&&1||Number(e):lt(e)&&(t=e),lt(t)||(t=ce),new A(function(i){
15163var o=ft(n)?n:+n-t.now();
15164return t.schedule(xe,o,{
15165index:0,
15166period:r,
15167subscriber:i
15168});
15169});
15170}
15171function xe(n){
15172var e=n.index,t=n.period,r=n.subscriber;
15173if(r.next(e),!r.closed){
15174if(t===-1)
15175return r.complete();
15176n.index=e+1,this.schedule(n,t);
15177}
15178}
15179function ht(n){
15180return function(e){
15181return e.lift(new Te(n));
15182};
15183}
15184var Te=function(){
15185function n(e){
15186this.durationSelector=e;
15187}
15188return n.prototype.call=function(e,t){
15189return t.subscribe(new Ce(e,this.durationSelector));
15190},n;
15191}(),Ce=function(n){
15192v(e,n);
15193function e(t,r){
15194var i=n.call(this,t)||this;
15195return i.durationSelector=r,i.hasValue=!1,i;
15196}
15197return e.prototype._next=function(t){
15198try{
15199var r=this.durationSelector.call(this,t);
15200r&&this._tryNext(t,r);
15201}catch(i){
15202this.destination.error(i);
15203}
15204},e.prototype._complete=function(){
15205this.emitValue(),this.destination.complete();
15206},e.prototype._tryNext=function(t,r){
15207var i=this.durationSubscription;
15208this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),i=we(r,new _e(this)),i&&!i.closed&&this.add(this.durationSubscription=i);
15209},e.prototype.notifyNext=function(){
15210this.emitValue();
15211},e.prototype.notifyComplete=function(){
15212this.emitValue();
15213},e.prototype.emitValue=function(){
15214if(this.hasValue){
15215var t=this.value,r=this.durationSubscription;
15216r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,n.prototype._next.call(this,t);
15217}
15218},e;
15219}(Se);
15220function dt(n,e){
15221return function(t){
15222return t.lift(new ke(n,e));
15223};
15224}
15225var ke=function(){
15226function n(e,t){
15227this.compare=e,this.keySelector=t;
15228}
15229return n.prototype.call=function(e,t){
15230return t.subscribe(new Ae(e,this.compare,this.keySelector));
15231},n;
15232}(),Ae=function(n){
15233v(e,n);
15234function e(t,r,i){
15235var o=n.call(this,t)||this;
15236return o.keySelector=i,o.hasKey=!1,typeof r=="function"&&(o.compare=r),o;
15237}
15238return e.prototype.compare=function(t,r){
15239return t===r;
15240},e.prototype._next=function(t){
15241var r;
15242try{
15243var i=this.keySelector;
15244r=i?i(t):t;
15245}catch(c){
15246return this.destination.error(c);
15247}
15248var o=!1;
15249if(this.hasKey)
15250try{
15251var s=this.compare;
15252o=s(this.key,r);
15253}catch(c){
15254return this.destination.error(c);
15255}
15256else
15257this.hasKey=!0;
15258o||(this.key=r,this.destination.next(t));
15259},e;
15260}(_);
15261function Oe(n){
15262const e=new Uint8Array(n.length);
15263for(let i=0;i<e.length;i++)
15264e[i]=n.charCodeAt(i);
15265const t=new Uint16Array(e.buffer);
15266let r="";
15267for(const i of t)
15268r+=String.fromCharCode(i);
15269return r;
15270}
15271function Ne(n){
15272const e=atob(n);
15273return Oe(e);
15274}
15275function gt(n){
15276var r,i;
15277const e=n.children;
15278if(e&&e[0]){
15279let o=e[0].text||"";
15280if(((i=(r=n.data)==null?void 0:r.attrs)==null?void 0:i.encoded)!==void 0){
15281const s=document.createElement("textarea");
15282s.innerHTML=o,o=s.value;
15283}
15284return o;
15285}
15286}
15287function Pt(n){
15288const e=n.children;
15289if(e&&e[0]){
15290const r=e[0].text;
15291return r?Ne(r):"";
15292}
15293}
15294const Fe=H.defineComponent({
15295__name:"PrivacyShield",
15296props:{
15297id:null,
15298needsReloadOnRevoke:{type:Boolean,default:!1},
15299fallbackDescription:{default:"This item has been hidden for privacy."},
15300fallbackTextPermitOptions:{default:"Show options"},
15301fallbackTextPermitOneTime:{default:"Show once"},
15302fallbackTextPermitSession:{default:"Show for the duration of the visit"},
15303fallbackTextPermitForever:{default:"Permanent display (revocation possible at any time)"},
15304fallbackTextForbid:{default:"Revoke consent (hide item)"},
15305allowPermitOneTime:{type:Boolean,default:!0},
15306allowPermitSession:{type:Boolean,default:!0},
15307allowPermitForever:{type:Boolean,default:!0},
15308render:{default:"html"}
15309},
15310setup(n){
15311const e=n,{
15312id:t,
15313needsReloadOnRevoke:r,
15314fallbackDescription:i,
15315fallbackTextPermitOptions:o,
15316fallbackTextPermitOneTime:s,
15317fallbackTextPermitSession:c,
15318fallbackTextPermitForever:u,
15319fallbackTextForbid:a,
15320allowPermitOneTime:b,
15321allowPermitSession:S,
15322allowPermitForever:h,
15323render:L
15324}=H.toRefs(e),g=H.ref(!1),O=H.ref(!1),N=H.ref(!1),F=H.ref(!1),B=new Y();
15325B.pipe(ht((l)=>pt(l?0:800))).pipe(dt()).subscribe((l)=>{
15326N.value=l;
15327});
15328const $=new Y();
15329$.pipe(ht((l)=>pt(l?0:800))).pipe(dt()).subscribe((l)=>{
15330F.value=l;
15331});
15332const R=(l)=>{
15333l.code==="Escape"&&(N.value=!1,F.value=!1);
15334},p=H.computed(()=>{
15335try{
15336const l=document.head.querySelector('meta[name="privacy-shield-theme"]'),d=l&&l.getAttribute("content"),y=d&&JSON.parse(d);
15337return y&&typeof y=="object"?y:{};
15338}catch(l){
15339return console.warn("Failed to parse privacy-shield theme",l),{};
15340}
15341}),Tt=H.computed(()=>"privacy-shield "+(p.value.shieldClassName||"")),Ct=H.computed(()=>"privacy-shield-wrapper "+(p.value.wrapperClassName||"")+(N.value?" is-hovered":"")),kt=H.computed(()=>"privacy-shield-content "+(p.value.contentClassName||"")),At=H.computed(()=>"privacy-shield-description "+(p.value.descriptionClassName||"")),Ot=H.c
15341omputed(()=>"privacy-shield-buttons "+(p.value.buttonsContainerClassName||"")+(F.value?" is-hovered":"")),Nt=H.computed(()=>"privacy-shield-options "+(p.value.optionsClassName||"")),Ft=H.computed(()=>"privacy-shield-button privacy-shield-button-permit-options "+(p.value.buttonClassName||"")+" "+(p.value.permitOptionsButtonClassName||"")),Bt=H.computed(()=>"privacy-shield-button privacy-shield-button-permit-one-time "+(p.value.buttonClassName||"")+" "+(p.value.permitOneTimeButtonClassName||"")),$t=H.computed(()=>"privacy-shield-button privacy-shield-button-permit-session "+(p.value.buttonClassName||"")+" "+(p.value.permitSessionButtonClassName||"")),Ut=H.computed(()=>"privacy-shield-button privacy-shield-button-permit-forever "+(p.value.buttonClassName||"")+" "+(p.value.permitForeverButtonClassName||"")),Dt=H.computed(()=>"privacy-shield-button privacy-shield-button-forbid "+(p.value.buttonClassName||"")+" "+(p.value.forbidButtonClassName||"")),T=H.computed(()=>S.value&&E.isIdAllowPermitSession(t.value)),C=H.computed(()=>h.value&&E.isIdAllowPermitForever(t.value)),It=H.computed(()=>!E.isForced(t.value)),Vt=H.computed(()=>b.value||T.value||C.value),Ht=H.computed(()=>b.value&&!T.value&&!C.value||!b.value&&T.value&&!C.value||!b.value&&!T.value&&C.value),Q=H.useSlots(),Lt=H.computed(()=>{
15342const l=Q.content;
15343if(!l)
15344return"";
15345for(let d of l())
15346if(d.tag==="script"&&d.data&&d.data.attrs){
15347let y;
15348if(d.data.attrs.type==="application/x-template"?y=gt(d):d.data.attrs.type==="application/x-base64"&&(y=Pt(d)),y!==void 0)
15349return y;
15350}
15351return"";
15352});
15353function Rt(l){
15354l.stopPropagation(),O.value=!O.value;
15355}
15356function jt(){
15357g.value=!0;
15358}
15359function Mt(){
15360E.setPermitted(t.value,"session");
15361}
15362function Wt(){
15363E.setPermitted(t.value,"forever");
15364}
15365function Yt(){
15366E.setForbidden(t.value,r.value);
15367}
15368function G(){
15369B.next(!0);
15370}
15371function Z(){
15372B.next(!1);
15373}
15374function tt(){
15375$.next(!0);
15376}
15377function et(){
15378$.next(!1);
15379}
15380function qt(){
15381nt.ask()==="keyboard"&&(G(),tt());
15382}
15383function Xt(){
15384nt.ask()==="keyboard"&&(Z(),et());
15385}
15386const j=H.ref(),M=H.ref();
15387return H.onMounted(()=>{
15388document.body.addEventListener("keyup",R),j.value=E.observe(t.value).subscribe((l)=>{
15389var y,rt;
15390const d=l.permitted;
15391g.value!==d&&(g.value=d,(rt=(y=H.getCurrentInstance())==null?void 0:y.proxy)==null||rt.$forceUpdate());
15392}),M.value=wt(document.body,"click").subscribe(()=>{
15393O.value=!1;
15394});
15395}),H.onUnmounted(()=>{
15396var l,d;
15397document.body.removeEventListener("keyup",R),(l=j.value)==null||l.unsubscribe(),(d=M.value)==null||d.unsubscribe();
15398}),{__sfc:!0,props:e,id:t,needsReloadOnRevoke:r,fallbackDescription:i,fallbackTextPermitOptions:o,fallbackTextPermitOneTime:s,fallbackTextPermitSession:c,fallbackTextPermitForever:u,fallbackTextForbid:a,allowPermitOneTime:b,allowPermitSession:S,allowPermitForever:h,render:L,permitted:g,optionsVisible:O,wrapperHoverState:N,wrapperButtonsHoverState:F,wrapperHoverStateObservable:B,wrapperButtonsHoverStateObservable:$,keyupListener:R,theme:p,shieldClassName:Tt,wrapperClassName:Ct,contentClassName:kt,descriptionClassName:At,buttonsContainerClassName:Ot,optionsClassName:Nt,permitOptionsButtonClassName:Ft,permitOneTimeButtonClassName:Bt,permitSessionButtonClassName:$t,permitForeverButtonClassName:Ut,forbidButtonClassName:Dt,isAllowPermitSession:T,isAllowPermitForever:C,allowForbidding:It,hasOptions:Vt,onlyOneOption:Ht,$slots:Q,contentHtml:Lt,toggleOptionsVisible:Rt,permitOneTime:jt,permitSession:Mt,permitForever:Wt,forbid:Yt,enterWrapper:G,leaveWrapper:Z,enterWrapperButtons:tt,leaveWrapperButtons:et,a11yFocusIn:qt,a11yFocusOut:Xt,_permissionChangedSubscription:j,_keyListenerSubscription:M};
15399}
15400});
15401function z(n,e,t,r,i,o,s,c){
15402var u=typeof n=="function"?n.options:n;
15403e&&(u.render=e,u.staticRenderFns=t,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o);
15404var a;
15405if(s?(a=function(h){
15406h=h||
15407this.$vnode&&this.$vnode.ssrContext||
15408this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!h&&typeof __VUE_SSR_CONTEXT__<"u"&&(h=__VUE_SSR_CONTEXT__),i&&i.call(this,h),h&&h._registeredComponents&&h._registeredComponents.add(s);
15409},u._ssrRegister=a):i&&(a=c?function(){
15410i.call(
15411this,
15412(u.functional?this.parent:this).$root.$options.shadowRoot
15413);
15414}:i),a)
15415if(u.functional){
15416u._injectStyles=a;
15417var b=u.render;
15418u.render=function(L,g){
15419return a.call(g),b(L,g);
15420};
15421}else{
15422var S=u.beforeCreate;
15423u.beforeCreate=S?[].concat(S,a):[a];
15424}
15425return{
15426exports:n,
15427options:u
15428};
15429}
15430var Be=function(){
15431var e=this,t=e._self._c,r=e._self._setupProxy;
15432return t("div",[r.permitted?e._e():t("div",{class:r.shieldClassName},[t("span",{staticClass:"privacy-shield-icon sf sf-lock-2"}),t("div",{class:r.descriptionClassName},[e._t("description",function(){
15433return[e._v(" "+e._s(r.fallbackDescription)+" ")];
15434})],2),r.hasOptions&&!r.onlyOneOption?t("div",{class:r.buttonsContainerClassName},[t("button",{class:r.permitOptionsButtonClassName,attrs:{type:"button","aria-expanded":r.optionsVisible?"true":"false"},on:{click:r.toggleOptionsVisible}},[t("span",{staticClass:"icon sf sf-arrow-67"}),e._t("text-permit-options",function(){
15435return[e._v(" "+e._s(r.fallbackTextPermitOptions)+" ")];
15436})],2),r.optionsVisible?t("div",{class:r.optionsClassName},[r.isAllowPermitForever?t("button",{class:r.permitForeverButtonClassName,attrs:{type:"button"},on:{click:function(i){
15437return r.permitForever();
15438}}},[e._t("text-permit-forever",function(){
15439return[e._v(" "+e._s(r.fallbackTextPermitForever)+" ")];
15440})],2):e._e(),r.isAllowPermitSession?t("button",{class:r.permitSessionButtonClassName,attrs:{type:"button"},on:{click:function(i){
15441return r.permitSession();
15442}}},[e._t("text-permit-session",function(){
15443return[e._v(" "+e._s(r.fallbackTextPermitSession)+" ")];
15444})],2):e._e(),r.allowPermitOneTime?t("button",{class:r.permitOneTimeButtonClassName,attrs:{type:"button"},on:{click:function(i){
15445return r.permitOneTime();
15446}}},[e._t("text-permit-one-time",function(){
15447return[e._v(" "+e._s(r.fallbackTextPermitOneTime)+" ")];
15448}
15448)],2):e._e()]):e._e()]):e._e(),r.hasOptions&&r.onlyOneOption?t("div",{class:r.buttonsContainerClassName},[r.isAllowPermitForever?t("button",{class:r.permitForeverButtonClassName,attrs:{type:"button"},on:{click:function(i){
15449return r.permitForever();
15450}}},[e._t("text-permit-forever",function(){
15451return[e._v(" "+e._s(r.fallbackTextPermitForever)+" ")];
15452})],2):e._e(),r.isAllowPermitSession?t("button",{class:r.permitSessionButtonClassName,attrs:{type:"button"},on:{click:function(i){
15453return r.permitSession();
15454}}},[e._t("text-permit-session",function(){
15455return[e._v(" "+e._s(r.fallbackTextPermitSession)+" ")];
15456})],2):e._e(),r.allowPermitOneTime?t("button",{class:r.permitOneTimeButtonClassName,attrs:{type:"button"},on:{click:function(i){
15457return r.permitOneTime();
15458}}},[e._t("text-permit-one-time",function(){
15459return[e._v(" "+e._s(r.fallbackTextPermitOneTime)+" ")];
15460})],2):e._e()]):e._e()]),r.permitted?t("div",{class:r.wrapperClassName,on:{focusin:function(i){
15461return r.a11yFocusIn();
15462},focusout:function(i){
15463return r.a11yFocusOut();
15464},mouseenter:r.enterWrapper,mouseleave:r.leaveWrapper}},[r.allowForbidding?t("div",{class:r.buttonsContainerClassName,on:{mouseenter:r.enterWrapperButtons,mouseleave:r.leaveWrapperButtons}},[t("span",{staticClass:"privacy-shield-icon sf sf-lock-2"}),t("button",{class:r.forbidButtonClassName,attrs:{type:"button"},on:{click:function(i){
15465return r.forbid();
15466}}},[e._t("text-forbid",function(){
15467return[e._v(" "+e._s(r.fallbackTextForbid)+" ")];
15468})],2)]):e._e(),r.render!=="slot"?t("PrivacyShieldContent",{class:r.contentClassName,attrs:{html:r.contentHtml}}):e._e(),r.render==="slot"?e._t("content"):e._e()],2):e._e()]);
15469},$e=[],Ue=z(
15470Fe,
15471Be,
15472$e,
15473!1,
15474null,
15475null,
15476null,
15477null
15478);
15479const De=Ue.exports,Ie=H.defineComponent({
15480__name:"PrivacyShieldContent",
15481props:{
15482html:null
15483},
15484setup(n){
15485const e=H.ref();
15486return H.onMounted(()=>{
15487var r;
15488const t=((r=e.value)==null?void 0:r.querySelectorAll("script"))??[];
15489for(let i of t){
15490const o=document.createElement("script");
15491i.type&&(o.type=i.type),i.src&&(o.src=i.src),i.id&&(o.id=i.id);
15492const s=i.getAttribute("class");
15493s&&o.setAttribute("class",s),Object.keys(i.dataset).forEach((u)=>{
15494o.dataset[u]=i.dataset[u];
15495}),o.innerHTML=i.innerHTML;
15496let c=i.parentNode;
15497if(c){
15498let u=i.nextSibling;
15499c.removeChild(i),c.insertBefore(o,u);
15500}
15501}
15502}),{__sfc:!0,element:e};
15503}
15504});
15505var Ve=function(){
15506var e=this,t=e._self._c;
15507return e._self._setupProxy,t("div",{ref:"element",domProps:{innerHTML:e._s(e.html)}});
15508},He=[],Le=z(
15509Ie,
15510Ve,
15511He,
15512!1,
15513null,
15514null,
15515null,
15516null
15517);
15518const Re=Le.exports,je=H.defineComponent({
15519__name:"PrivacyShieldSilent",
15520props:{
15521id:null
15522},
15523setup(n){
15524const e=n,{id:t}=H.toRefs(e),r=H.ref(!1),i=H.useSlots(),o=H.computed(()=>{
15525const c=i.content;
15526if(!c)
15527return"";
15528for(let u of c())
15529if(u.tag==="script"&&u.data&&u.data.attrs){
15530let a;
15531if(u.data.attrs.type==="application/x-template"?a=gt(u):u.data.attrs.type==="application/x-base64"&&(a=Pt(u)),a!==void 0)
15532return a;
15533}
15534return"";
15535}),s=H.ref();
15536return H.onMounted(()=>{
15537s.value=E.observe(t.value).subscribe((c)=>{
15538var a,b;
15539const u=c.permitted;
15540r.value!==u&&(r.value=u,(b=(a=H.getCurrentInstance())==null?void 0:a.proxy)==null||b.$forceUpdate());
15541});
15542}),H.onUnmounted(()=>{
15543var c;
15544(c=s.value)==null||c.unsubscribe();
15545}),{__sfc:!0,props:e,id:t,permitted:r,$slots:i,contentHtml:o,_permissionChangedSubscription:s};
15546}
15547});
15548var Me=function(){
15549var e=this,t=e._self._c,r=e._self._setupProxy;
15550return t("div",[r.permitted?t("privacy-shield-content",{staticClass:"privacy-shield-content",attrs:{html:r.contentHtml}}):e._e()],1);
15551},We=[],Ye=z(
15552je,
15553Me,
15554We,
15555!1,
15556null,
15557null,
15558null,
15559null
15560);
15561const qe=Ye.exports;
15562H.component("PrivacyShield",De);
15563H.component("PrivacyShieldSilent",qe);
15564H.component("PrivacyShieldContent",Re);
15565function xt(n){
15566n.__vue__||new H().$mount(n);
15567}
15568function Xe(){
15569const n=document.querySelectorAll("privacy-shield, privacy-shield-silent, PrivacyShield, PrivacyShieldSilent");
15570for(const e of n)
15571xt(e);
15572}
15573Jt(function(){
15574new MutationObserver(function(e){
15575e.forEach(function(t){
15576for(const r of t.addedNodes)
15577Node.ELEMENT_NODE===r.nodeType&&r instanceof Element&&(r.localName==="privacy-shield"||r.localName==="privacy-shield-silent"||r.localName==="PrivacyShield"||r.localName==="PrivacyShieldSilent")&&xt(r);
15578});
15579}).observe(document.body,{subtree:!0,childList:!0}),Xe();
15580});
vendor: 5,221 bytes, lines 15580-15822
15580exports.PrivacyShield=De;exports.PrivacyShieldContent=Re;exports.PrivacyShieldSilent=qe;exports.enable=xt;exports.enableAll=Xe;return exports;})({},Vue,jQuery,PrivacyGuard,whatInput);
15581(function(window,document,$,undefined){
15582"use strict";
15583var H=$("html"),
15584W=$(window),
15585D=$(document),
15586F=$.fancybox=function(){
15587F.open.apply(this,arguments);
15588},
15589lastFocusedElement=null,
15590IE=navigator.userAgent.match(/msie/i),
15591didUpdate=null,
15592isTouch=document.createTouch!==undefined,
15593isQuery=function(obj){
15594return obj&&obj.hasOwnProperty&&obj instanceof $;
15595},
15596isString=function(str){
15597return str&&$.type(str)==="string";
15598},
15599isPercentage=function(str){
15600return isString(str)&&str.indexOf('%')>0;
15601},
15602isScrollable=function(el){
15603return(el&&!(el.style.overflow&&el.style.overflow==='hidden')&&((el.clientWidth&&el.scrollWidth>el.clientWidth)||(el.clientHeight&&el.scrollHeight>el.clientHeight)));
15604},
15605getScalar=function(orig,dim){
15606var value=parseInt(orig,10)||0;
15607if(dim&&isPercentage(orig)){
15608value=F.getViewport()[dim]/100*value;
15609}
15610return Math.ceil(value);
15611},
15612getValue=function(value,dim){
15613return getScalar(value,dim)+'px';
15614};
15615$("body").bind("focusin",function(){
15616if(!$.fancybox.isOpen){
15617lastFocusedElement=document.activeElement;
15618}
15619});
15620$.extend(F,{
15621version:'2.1.5',
15622defaults:{
15623padding:15,
15624margin:20,
15625width:800,
15626height:600,
15627minWidth:100,
15628minHeight:100,
15629maxWidth:9999,
15630maxHeight:9999,
15631pixelRatio:1,
15632autoSize:true,
15633autoHeight:false,
15634autoWidth:false,
15635autoResize:true,
15636autoCenter:!isTouch,
15637fitToView:true,
15638aspectRatio:false,
15639topRatio:0.5,
15640leftRatio:0.5,
15641scrolling:'auto',
15642wrapCSS:'',
15643arrows:true,
15644closeBtn:true,
15645closeClick:false,
15646nextClick:false,
15647mouseWheel:true,
15648autoPlay:false,
15649playSpeed:3000,
15650preload:3,
15651modal:false,
15652loop:true,
15653ajax:{
15654dataType:'html',
15655headers:{'X-fancyBox':true}
15656},
15657iframe:{
15658scrolling:'auto',
15659preload:true
15660},
15661swf:{
15662wmode:'transparent',
15663allowfullscreen:'true',
15664allowscriptaccess:'always'
15665},
15666keys:{
15667next:{
1566834:'up',
1566939:'left',
1567040:'up'
15671},
15672prev:{
1567333:'down',
1567437:'right',
1567538:'down'
15676},
15677close:[27],
15678play:[32],
15679},
15680direction:{
15681next:'left',
15682prev:'right'
15683},
15684scrollOutside:true,
15685index:0,
15686type:null,
15687href:null,
15688content:null,
15689title:null,
15690tpl:{
15691wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',
15692image:'<img class="fancybox-image" src="{href}" alt="" />',
15693iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(IE?' allowtransparency="true"':'')+'></iframe>',
15694error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
15695closeBtn:'<a title="Dialog schließen" role="button" aria-label="Dialog schließen" class="fancybox-item fancybox-close" href="javascript:;"></a>',
15696next:'<a title="Next" role="button" aria-label="Vor" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
15697prev:'<a title="Previous" role="button" aria-label="Zurück" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'
15698},
15699openEffect:'fade',
15700openSpeed:250,
15701openEasing:'swing',
15702openOpacity:true,
15703openMethod:'zoomIn',
15704closeEffect:'fade',
15705closeSpeed:250,
15706closeEasing:'swing',
15707closeOpacity:true,
15708closeMethod:'zoomOut',
15709nextEffect:'elastic',
15710nextSpeed:250,
15711nextEasing:'swing',
15712nextMethod:'changeIn',
15713prevEffect:'elastic',
15714prevSpeed:250,
15715prevEasing:'swing',
15716prevMethod:'changeOut',
15717helpers:{
15718overlay:true,
15719title:true
15720},
15721onCancel:$.noop,
15722beforeLoad:$.noop,
15723afterLoad:$.noop,
15724beforeShow:$.noop,
15725afterShow:$.noop,
15726beforeChange:$.noop,
15727beforeClose:$.noop,
15728afterClose:$.noop
15729},
15730group:{},
15731opts:{},
15732previous:null,
15733coming:null,
15734current:null,
15735isActive:false,
15736isOpen:false,
15737isOpened:false,
15738wrap:null,
15739skin:null,
15740outer:null,
15741inner:null,
15742player:{
15743timer:null,
15744isActive:false
15745},
15746ajaxLoad:null,
15747imgPreload:null,
15748transitions:{},
15749helpers:{},
15750open:function(group,opts){
15751if(!group){
15752return;
15753}
15754if(!$.isPlainObject(opts)){
15755opts={};
15756}
15757if(false===F.close(true)){
15758return;
15759}
15760if(!$.isArray(group)){
15761group=isQuery(group)?$(group).get():[group];
15762}
15763$.each(group,function(i,element){
15764var obj={},
15765href,
15766title,
15767content,
15768type,
15769rez,
15770hrefParts,
15771selector;
15772if($.type(element)==="object"){
15773if(element.nodeType){
15774element=$(element);
15775}
15776if(isQuery(element)){
15777obj={
15778href:element.data('fancybox-href')||element.attr('href'),
15779title:element.data('fancybox-title')||element.attr('title'),
15780isDom:true,
15781element:element
15782};
15783if($.metadata){
15784$.extend(true,obj,element.metadata());
15785}
15786}else{
15787obj=element;
15788}
15789}
15790href=opts.href||obj.href||(isString(element)?element:null);
15791title=opts.title!==undefined?opts.title:obj.title||'';
15792content=opts.content||obj.content;
15793type=content?'html':(opts.type||obj.type);
15794if(!type&&obj.isDom){
15795type=element.data('fancybox-type');
15796if(!type){
15797rez=element.prop('class').match(/fancybox\.(\w+)/);
15798type=rez?rez[1]:null;
15799}
15800}
15801if(isString(href)){
15802if(!type){
15803if(F.isImage(href)){
15804type='image';
15805}else if(F.isSWF(href)){
15806type='swf';
15807}else if(href.charAt(0)==='#'){
15808type='inline';
15809}else if(isString(element)){
15810type='html';
15811content=element;
15812}
15813}
15814if(type==='ajax'){
15815hrefParts=href.split(/\s+/,2);
15816href=hrefParts.shift();
15817selector=hrefParts.shift();
15818}
15819}
15820if(!content){
15821if(type==='inline'){
15822if(href){
vendor: 27,775 bytes, lines 15823-17039
15823content=$(isString(href)?href.replace(/.*(?=#[^\s]+$)/,''):href);
15824}else if(obj.isDom){
15825content=element;
15826}
15827}else if(type==='html'){
15828content=href;
15829}else if(!type&&!href&&obj.isDom){
15830type='inline';
15831content=element;
15832}
15833}
15834$.extend(obj,{
15835href:href,
15836type:type,
15837content:content,
15838title:title,
15839selector:selector
15840});
15841group[i]=obj;
15842});
15843F.opts=$.extend(true,{},F.defaults,opts);
15844if(opts.keys!==undefined){
15845F.opts.keys=opts.keys?$.extend({},F.defaults.keys,opts.keys):false;
15846}
15847F.group=group;
15848return F._start(F.opts.index);
15849},
15850cancel:function(){
15851var coming=F.coming;
15852if(!coming||false===F.trigger('onCancel')){
15853return;
15854}
15855F.hideLoading();
15856if(F.ajaxLoad){
15857F.ajaxLoad.abort();
15858}
15859F.ajaxLoad=null;
15860if(F.imgPreload){
15861F.imgPreload.onload=F.imgPreload.onerror=null;
15862}
15863if(coming.wrap){
15864coming.wrap.stop(true,true).trigger('onReset').remove();
15865}
15866F.coming=null;
15867if(!F.current){
15868F._afterZoomOut(coming);
15869}
15870},
15871close:function(event){
15872F.cancel();
15873if(false===F.trigger('beforeClose')){
15874return;
15875}
15876F.unbindEvents();
15877if(!F.isActive){
15878return;
15879}
15880if(!F.isOpen||event===true){
15881$('.fancybox-wrap').stop(true).trigger('onReset').remove();
15882F._afterZoomOut();
15883}else{
15884F.isOpen=F.isOpened=false;
15885F.isClosing=true;
15886$('.fancybox-item, .fancybox-nav').remove();
15887F.wrap.stop(true,true).removeClass('fancybox-opened');
15888F.transitions[F.current.closeMethod]();
15889}
15890},
15891play:function(action){
15892var clear=function(){
15893clearTimeout(F.player.timer);
15894},
15895set=function(){
15896clear();
15897if(F.current&&F.player.isActive){
15898F.player.timer=setTimeout(F.next,F.current.playSpeed);
15899}
15900},
15901stop=function(){
15902clear();
15903D.unbind('.player');
15904F.player.isActive=false;
15905F.trigger('onPlayEnd');
15906},
15907start=function(){
15908if(F.current&&(F.current.loop||F.current.index<F.group.length-1)){
15909F.player.isActive=true;
15910D.bind({
15911'onCancel.player beforeClose.player':stop,
15912'onUpdate.player':set,
15913'beforeLoad.player':clear
15914});
15915set();
15916F.trigger('onPlayStart');
15917}
15918};
15919if(action===true||(!F.player.isActive&&action!==false)){
15920start();
15921}else{
15922stop();
15923}
15924},
15925next:function(direction){
15926var current=F.current;
15927if(current){
15928if(!isString(direction)){
15929direction=current.direction.next;
15930}
15931F.jumpto(current.index+1,direction,'next');
15932}
15933},
15934prev:function(direction){
15935var current=F.current;
15936if(current){
15937if(!isString(direction)){
15938direction=current.direction.prev;
15939}
15940F.jumpto(current.index-1,direction,'prev');
15941}
15942},
15943jumpto:function(index,direction,router){
15944var current=F.current;
15945if(!current){
15946return;
15947}
15948index=getScalar(index);
15949F.direction=direction||current.direction[(index>=current.index?'next':'prev')];
15950F.router=router||'jumpto';
15951if(current.loop){
15952if(index<0){
15953index=current.group.length+(index%current.group.length);
15954}
15955index=index%current.group.length;
15956}
15957if(current.group[index]!==undefined){
15958F.cancel();
15959F._start(index);
15960}
15961},
15962reposition:function(e,onlyAbsolute){
15963var current=F.current,
15964wrap=current?current.wrap:null,
15965pos;
15966if(wrap){
15967pos=F._getPosition(onlyAbsolute);
15968if(e&&e.type==='scroll'){
15969delete pos.position;
15970wrap.stop(true,true).animate(pos,200);
15971}else{
15972wrap.css(pos);
15973current.pos=$.extend({},current.dim,pos);
15974}
15975}
15976},
15977update:function(e){
15978var type=(e&&e.type),
15979anyway=!type||type==='orientationchange';
15980if(anyway){
15981clearTimeout(didUpdate);
15982didUpdate=null;
15983}
15984if(!F.isOpen||didUpdate){
15985return;
15986}
15987didUpdate=setTimeout(function(){
15988var current=F.current;
15989if(!current||F.isClosing){
15990return;
15991}
15992F.wrap.removeClass('fancybox-tmp');
15993if(anyway||type==='load'||(type==='resize'&&current.autoResize)){
15994F._setDimension();
15995}
15996if(!(type==='scroll'&&current.canShrink)){
15997F.reposition(e);
15998}
15999F.trigger('onUpdate');
16000didUpdate=null;
16001},(anyway&&!isTouch?0:300));
16002},
16003toggle:function(action){
16004if(F.isOpen){
16005F.current.fitToView=$.type(action)==="boolean"?action:!F.current.fitToView;
16006if(isTouch){
16007F.wrap.removeAttr('style').addClass('fancybox-tmp');
16008F.trigger('onUpdate');
16009}
16010F.update();
16011}
16012},
16013hideLoading:function(){
16014D.unbind('.loading');
16015$('#fancybox-loading').remove();
16016},
16017showLoading:function(){
16018var el,viewport;
16019F.hideLoading();
16020el=$('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body');
16021D.bind('keydown.loading',function(e){
16022if((e.which||e.keyCode)===27){
16023e.preventDefault();
16024F.cancel();
16025}
16026});
16027if(!F.defaults.fixed){
16028viewport=F.getViewport();
16029el.css({
16030position:'absolute',
16031top:(viewport.h*0.5)+viewport.y,
16032left:(viewport.w*0.5)+viewport.x
16033});
16034}
16035},
16036getViewport:function(){
16037var locked=(F.current&&F.current.locked)||false,
16038rez={
16039x:W.scrollLeft(),
16040y:W.scrollTop()
16041};
16042if(locked){
16043rez.w=locked[0].clientWidth;
16044rez.h=locked[0].clientHeight;
16045}else{
16046rez.w=isTouch&&window.innerWidth?window.innerWidth:W.width();
16047rez.h=isTouch&&window.innerHeight?window.innerHeight:W.height();
16048}
16049return rez;
16050},
16051unbindEvents:function(){
16052if(F.wrap&&isQuery(F.wrap)){
16053F.wrap.unbind('.fb');
16054}
16055D.unbind('.fb');
16056W.unbind('.fb');
16057},
16058bindEvents:function(){
16059var current=F.current,
16060keys;
16061if(!current){
16062return;
16063}
16064W.bind('orientationchange.fb'+(isTouch?'':' resize.fb')+(current.autoCenter&&!current.locked?' scroll.fb':''),F.update);
16065keys=current.keys;
16066let keydownDoc=D;
16067if(current.content){
16068const iframe=$(current.content).filter(".fancybox-iframe");
16069if(iframe.length===1){
16070keydownDoc=$(iframe.get(0).contentDocument).add(D);
16071}
16072}
16073if(keys){
16074keydownDoc.bind('keydown.fb',function(e){
16075var code=e.which||e.keyCode,
16076target=e.target||e.srcElement;
16077if(code===27&&F.coming){
16078return false;
16079}
16080if(!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey&&!(target&&(target.type||$(target).is('[contenteditable]')))){
16081$.each(keys,function(i,val){
16082if(current.group.length>1&&val[code]!==undefined){
16083F[i](val[code]);
16084e.preventDefault();
16085return false;
16086}
16087if($.inArray(code,val)>-1){
16088F[i]();
16089e.preventDefault();
16090return false;
16091}
16092});
16093}
16094});
16095}
16096if($.fn.mousewheel&&current.mouseWheel){
16097F.wrap.bind('mousewheel.fb',function(e,delta,deltaX,deltaY){
16098var target=e.target||null,
16099parent=$(target),
16100canScroll=false;
16101while(parent.length){
16102if(canScroll||parent.is('.fancybox-skin')||parent.is('.fancybox-wrap')){
16103break;
16104}
16105canScroll=isScrollable(parent[0]);
16106parent=$(parent).parent();
16107}
16108if(delta!==0&&!canScroll){
16109if(F.group.length>1&&!current.canShrink){
16110if(deltaY>0||deltaX>0){
16111F.prev(deltaY>0?'down':'left');
16112}else if(deltaY<0||deltaX<0){
16113F.next(deltaY<0?'up':'right');
16114}
16115e.preventDefault();
16116}
16117}
16118});
16119}
16120},
16121trigger:function(event,o){
16122var ret,obj=o||F.coming||F.current;
16123if(!obj){
16124return;
16125}
16126if($.isFunction(obj[event])){
16127ret=obj[event].apply(obj,Array.prototype.slice.call(arguments,1));
16128}
16129if(ret===false){
16130return false;
16131}
16132if(obj.helpers){
16133$.each(obj.helpers,function(helper,opts){
16134if(opts&&F.helpers[helper]&&$.isFunction(F.helpers[helper][event])){
16135F.helpers[helper][event]($.extend(true,{},F.helpers[helper].defaults,opts),obj);
16136}
16137});
16138}
16139D.trigger(event);
16140},
16141isImage:function(str){
16142return isString(str)&&str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i);
16143},
16144isSWF:function(str){
16145return isString(str)&&str.match(/\.(swf)((\?|#).*)?$/i);
16146},
16147_start:function(index){
16148var coming={},
16149obj,
16150href,
16151type,
16152margin,
16153padding;
16154index=getScalar(index);
16155obj=F.group[index]||null;
16156if(!obj){
16157return false;
16158}
16159coming=$.extend(true,{},F.opts,obj);
16160margin=coming.margin;
16161padding=coming.padding;
16162if($.type(margin)==='number'){
16163coming.margin=[margin,margin,margin,margin];
16164}
16165if($.type(padding)==='number'){
16166coming.padding=[padding,padding,padding,padding];
16167}
16168if(coming.modal){
16169$.extend(true,coming,{
16170closeBtn:false,
16171closeClick:false,
16172nextClick:false,
16173arrows:false,
16174mouseWheel:false,
16175keys:null,
16176helpers:{
16177overlay:{
16178closeClick:false
16179}
16180}
16181});
16182}
16183if(coming.autoSize){
16184coming.autoWidth=coming.autoHeight=true;
16185}
16186if(coming.width==='auto'){
16187coming.autoWidth=true;
16188}
16189if(coming.height==='auto'){
16190coming.autoHeight=true;
16191}
16192coming.group=F.group;
16193coming.index=index;
16194F.coming=coming;
16195if(false===F.trigger('beforeLoad')){
16196F.coming=null;
16197return;
16198}
16199type=coming.type;
16200href=coming.href;
16201if(!type){
16202F.coming=null;
16203if(F.current&&F.router&&F.router!=='jumpto'){
16204F.current.index=index;
16205return F[F.router](F.direction);
16206}
16207return false;
16208}
16209F.isActive=true;
16210if(type==='image'||type==='swf'){
16211coming.autoHeight=coming.autoWidth=false;
16212coming.scrolling='visible';
16213}
16214if(type==='image'){
16215coming.aspectRatio=true;
16216}
16217if(type==='iframe'&&isTouch){
16218coming.scrolling='scroll';
16219}
16220coming.wrap=$(coming.tpl.wrap).addClass('fancybox-'+(isTouch?'mobile':'desktop')+' fancybox-type-'+type+' fancybox-tmp '+coming.wrapCSS).appendTo(coming.parent||'body');
16221$.extend(coming,{
16222skin:$('.fancybox-skin',coming.wrap),
16223outer:$('.fancybox-outer',coming.wrap),
16224inner:$('.fancybox-inner',coming.wrap)
16225});
16226$.each(["Top","Right","Bottom","Left"],function(i,v){
16227coming.skin.css('padding'+v,getValue(coming.padding[i]));
16228});
16229F.trigger('onReady');
16230if(type==='inline'||type==='html'){
16231if(!coming.content||!coming.content.length){
16232return F._error('content');
16233}
16234}else if(!href){
16235return F._error('href');
16236}
16237if(type==='image'){
16238F._loadImage();
16239}else if(type==='ajax'){
16240F._loadAjax();
16241}else if(type==='iframe'){
16242F._loadIframe();
16243}else{
16244F._afterLoad();
16245}
16246},
16247_error:function(type){
16248$.extend(F.coming,{
16249type:'html',
16250autoWidth:true,
16251autoHeight:true,
16252minWidth:0,
16253minHeight:0,
16254scrolling:'no',
16255hasError:type,
16256content:F.coming.tpl.error
16257});
16258F._afterLoad();
16259},
16260_loadImage:function(){
16261var img=F.imgPreload=new Image();
16262img.onload=function(){
16263this.onload=this.onerror=null;
16264F.coming.width=this.width/F.opts.pixelRatio;
16265F.coming.height=this.height/F.opts.pixelRatio;
16266F._afterLoad();
16267};
16268img.onerror=function(){
16269this.onload=this.onerror=null;
16270F._error('image');
16271};
16272img.src=F.coming.href;
16273if(img.complete!==true){
16274F.showLoading();
16275}
16276},
16277_loadAjax:function(){
16278var coming=F.coming;
16279F.showLoading();
16280F.ajaxLoad=$.ajax($.extend({},coming.ajax,{
16281url:coming.href,
16282error:function(jqXHR,textStatus){
16283if(F.coming&&textStatus!=='abort'){
16284F._error('ajax',jqXHR);
16285}else{
16286F.hideLoading();
16287}
16288},
16289success:function(data,textStatus){
16290if(textStatus==='success'){
16291coming.content=data;
16292F._afterLoad();
16293}
16294}
16295}));
16296},
16297_loadIframe:function(){
16298var coming=F.coming,
16299iframe=$(coming.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime()))
16300.attr('scrolling',isTouch?'auto':coming.iframe.scrolling)
16301.attr('src',coming.href);
16302$(coming.wrap).bind('onReset',function(){
16303try{
16304$(this).find('iframe').hide().attr('src','//about:blank').end().empty();
16305}catch(e){
16306}
16307});
16308if(coming.iframe.preload){
16309F.showLoading();
16310iframe.one('load',function(){
16311$(this).data('ready',1);
16312if(!isTouch){
16313$(this).bind('load.fb',F.update);
16314}
16315$(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show();
16316F._afterLoad();
16317});
16318}
16319coming.content=iframe.appendTo(coming.inner);
16320if(!coming.iframe.preload){
16321F._afterLoad();
16322}
16323},
16324_preloadImages:function(){
16325var group=F.group,
16326current=F.current,
16327len=group.length,
16328cnt=current.preload?Math.min(current.preload,len-1):0,
16329item,
16330i;
16331for(i=1;i<=cnt;i+=1){
16332item=group[(current.index+i)%len];
16333if(item.type==='image'&&item.href){
16334new Image().src=item.href;
16335}
16336}
16337},
16338_afterLoad:function(){
16339var coming=F.coming,
16340previous=F.current,
16341placeholder='fancybox-placeholder',
16342current,
16343content,
16344type,
16345scrolling,
16346href,
16347embed;
16348F.hideLoading();
16349if(!coming||F.isActive===false){
16350return;
16351}
16352if(false===F.trigger('afterLoad',coming,previous)){
16353coming.wrap.stop(true).trigger('onReset').remove();
16354F.coming=null;
16355return;
16356}
16357if(previous){
16358F.trigger('beforeChange',previous);
16359previous.wrap.stop(true).removeClass('fancybox-opened')
16360.find('.fancybox-item, .fancybox-nav')
16361.remove();
16362}
16363F.unbindEvents();
16364current=coming;
16365content=coming.content;
16366type=coming.type;
16367scrolling=coming.scrolling;
16368$.extend(F,{
16369wrap:current.wrap,
16370skin:current.skin,
16371outer:current.outer,
16372inner:current.inner,
16373current:current,
16374previous:previous
16375});
16376href=current.href;
16377switch(type){
16378case'inline':
16379case'ajax':
16380case'html':
16381if(current.selector){
16382content=$('<div>').html(content).find(current.selector);
16383}else if(isQuery(content)){
16384if(!content.data(placeholder)){
16385content.data(placeholder,$('<div class="'+placeholder+'"></div>').insertAfter(content).hide());
16386}
16387content=content.show().detach();
16388current.wrap.bind('onReset',function(){
16389if($(this).find(content).length){
16390content.hide().replaceAll(content.data(placeholder)).data(placeholder,false);
16391}
16392});
16393}
16394break;
16395case'image':
16396content=current.tpl.image.replace('{href}',href);
16397break;
16398case'swf':
16399content='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+href+'"></param>';
16400embed='';
16401$.each(current.swf,function(name,val){
16402content+='<param name="'+name+'" value="'+val+'"></param>';
16403embed+=' '+name+'="'+val+'"';
16404});
16405content+='<embed src="'+href+'" type="application/x-shockwave-flash" width="100%" height="100%"'+embed+'></embed></object>';
16406break;
16407}
16408if(!(isQuery(content)&&content.parent().is(current.inner))){
16409current.inner.append(content);
16410}
16411F.trigger('beforeShow');
16412current.inner.css('overflow',scrolling==='yes'?'scroll':(scrolling==='no'?'hidden':scrolling));
16413F._setDimension();
16414F.reposition();
16415F.isOpen=false;
16416F.coming=null;
16417F.bindEvents();
16418if(!F.isOpened){
16419$('.fancybox-wrap').not(current.wrap).stop(true).trigger('onReset').remove();
16420}else if(previous.prevMethod){
16421F.transitions[previous.prevMethod]();
16422}
16423F.transitions[F.isOpened?current.nextMethod:current.openMethod]();
16424F._preloadImages();
16425},
16426_setDimension:function(){
16427var viewport=F.getViewport(),
16428steps=0,
16429canShrink=false,
16430canExpand=false,
16431wrap=F.wrap,
16432skin=F.skin,
16433inner=F.inner,
16434current=F.current,
16435width=current.width,
16436height=current.height,
16437minWidth=current.minWidth,
16438minHeight=current.minHeight,
16439maxWidth=current.maxWidth,
16440maxHeight=current.maxHeight,
16441scrolling=current.scrolling,
16442scrollOut=current.scrollOutside?current.scrollbarWidth:0,
16443margin=current.margin,
16444wMargin=getScalar(margin[1]+margin[3]),
16445hMargin=getScalar(margin[0]+margin[2]),
16446wPadding,
16447hPadding,
16448wSpace,
16449hSpace,
16450origWidth,
16451origHeight,
16452origMaxWidth,
16453origMaxHeight,
16454ratio,
16455width_,
16456height_,
16457maxWidth_,
16458maxHeight_,
16459iframe,
16460body;
16461wrap.add(skin).add(inner).width('auto').height('auto').removeClass('fancybox-tmp');
16462wPadding=getScalar(skin.outerWidth(true)-skin.width());
16463hPadding=getScalar(skin.outerHeight(true)-skin.height());
16464wSpace=wMargin+wPadding;
16465hSpace=hMargin+hPadding;
16466origWidth=isPercentage(width)?(viewport.w-wSpace)*getScalar(width)/100:width;
16467origHeight=isPercentage(height)?(viewport.h-hSpace)*getScalar(height)/100:height;
16468if(current.type==='iframe'){
16469iframe=current.content;
16470if(current.autoHeight&&iframe.data('ready')===1){
16471try{
16472if(iframe[0].contentWindow.document.location){
16473inner.width(origWidth).height(9999);
16474body=iframe.contents().find('body');
16475if(scrollOut){
16476body.css('overflow-x','hidden');
16477}
16478origHeight=body.outerHeight(true);
16479}
16480}catch(e){
16481}
16482}
16483}else if(current.autoWidth||current.autoHeight){
16484inner.addClass('fancybox-tmp');
16485if(!current.autoWidth){
16486inner.width(origWidth);
16487}
16488if(!current.autoHeight){
16489inner.height(origHeight);
16490}
16491if(current.autoWidth){
16492origWidth=inner.width();
16493}
16494if(current.autoHeight){
16495origHeight=inner.height();
16496}
16497inner.removeClass('fancybox-tmp');
16498}
16499width=getScalar(origWidth);
16500height=getScalar(origHeight);
16501ratio=origWidth/origHeight;
16502minWidth=getScalar(isPercentage(minWidth)?getScalar(minWidth,'w')-wSpace:minWidth);
16503maxWidth=getScalar(isPercentage(maxWidth)?getScalar(maxWidth,'w')-wSpace:maxWidth);
16504minHeight=getScalar(isPercentage(minHeight)?getScalar(minHeight,'h')-hSpace:minHeight);
16505maxHeight=getScalar(isPercentage(maxHeight)?getScalar(maxHeight,'h')-hSpace:maxHeight);
16506origMaxWidth=maxWidth;
16507origMaxHeight=maxHeight;
16508if(current.fitToView){
16509maxWidth=Math.min(viewport.w-wSpace,maxWidth);
16510maxHeight=Math.min(viewport.h-hSpace,maxHeight);
16511}
16512maxWidth_=viewport.w-wMargin;
16513maxHeight_=viewport.h-hMargin;
16514if(current.aspectRatio){
16515if(width>maxWidth){
16516width=maxWidth;
16517height=getScalar(width/ratio);
16518}
16519if(height>maxHeight){
16520height=maxHeight;
16521width=getScalar(height*ratio);
16522}
16523if(width<minWidth){
16524width=minWidth;
16525height=getScalar(width/ratio);
16526}
16527if(height<minHeight){
16528height=minHeight;
16529width=getScalar(height*ratio);
16530}
16531}else{
16532width=Math.max(minWidth,Math.min(width,maxWidth));
16533if(current.autoHeight&&current.type!=='iframe'){
16534inner.width(width);
16535height=inner.height();
16536}
16537height=Math.max(minHeight,Math.min(height,maxHeight));
16538}
16539if(current.fitToView){
16540inner.width(width).height(height);
16541wrap.width(width+wPadding);
16542width_=wrap.width();
16543height_=wrap.height();
16544if(current.aspectRatio){
16545while((width_>maxWidth_||height_>maxHeight_)&&width>minWidth&&height>minHeight){
16546if(steps++>19){
16547break;
16548}
16549height=Math.max(minHeight,Math.min(maxHeight,height-10));
16550width=getScalar(height*ratio);
16551if(width<minWidth){
16552width=minWidth;
16553height=getScalar(width/ratio);
16554}
16555if(width>maxWidth){
16556width=maxWidth;
16557height=getScalar(width/ratio);
16558}
16559inner.width(width).height(height);
16560wrap.width(width+wPadding);
16561width_=wrap.width();
16562height_=wrap.height();
16563}
16564}else{
16565width=Math.max(minWidth,Math.min(width,width-(width_-maxWidth_)));
16566height=Math.max(minHeight,Math.min(height,height-(height_-maxHeight_)));
16567}
16568}
16569if(scrollOut&&scrolling==='auto'&&height<origHeight&&(width+wPadding+scrollOut)<maxWidth_){
16570width+=scrollOut;
16571}
16572inner.width(width).height(height);
16573wrap.width(width+wPadding);
16574width_=wrap.width();
16575height_=wrap.height();
16576canShrink=(width_>maxWidth_||height_>maxHeight_)&&width>minWidth&&height>minHeight;
16577canExpand=current.aspectRatio?(width<origMaxWidth&&height<origMaxHeight&&width<origWidth&&height<origHeight):((width<origMaxWidth||height<origMaxHeight)&&(width<origWidth||height<origHeight));
16578$.extend(current,{
16579dim:{
16580width:getValue(width_),
16581height:getValue(height_)
16582},
16583origWidth:origWidth,
16584origHeight:origHeight,
16585canShrink:canShrink,
16586canExpand:canExpand,
16587wPadding:wPadding,
16588hPadding:hPadding,
16589wrapSpace:height_-skin.outerHeight(true),
16590skinSpace:skin.height()-height
16591});
16592if(!iframe&&current.autoHeight&&height>minHeight&&height<maxHeight&&!canExpand){
16593inner.height('auto');
16594}
16595},
16596_getPosition:function(onlyAbsolute){
16597var current=F.current,
16598viewport=F.getViewport(),
16599margin=current.margin,
16600width=F.wrap.width()+margin[1]+margin[3],
16601height=F.wrap.height()+margin[0]+margin[2],
16602rez={
16603position:'absolute',
16604top:margin[0],
16605left:margin[3]
16606};
16607if(current.autoCenter&&current.fixed&&!onlyAbsolute&&height<=viewport.h&&width<=viewport.w){
16608rez.position='fixed';
16609}else if(!current.locked){
16610rez.top+=viewport.y;
16611rez.left+=viewport.x;
16612}
16613rez.top=getValue(Math.max(rez.top,rez.top+((viewport.h-height)*current.topRatio)));
16614rez.left=getValue(Math.max(rez.left,rez.left+((viewport.w-width)*current.leftRatio)));
16615return rez;
16616},
16617_afterZoomIn:function(){
16618var current=F.current;
16619if(!current){
16620return;
16621}
16622F.isOpen=F.isOpened=true;
16623F.wrap.css('overflow','visible').addClass('fancybox-opened');
16624F.update();
16625if(current.closeClick||(current.nextClick&&F.group.length>1)){
16626F.inner.css('cursor','pointer').bind('click.fb',function(e){
16627if(!$(e.target).is('a')&&!$(e.target).parent().is('a')){
16628e.preventDefault();
16629F[current.closeClick?'close':'next']();
16630}
16631});
16632}
16633if(current.closeBtn){
16634$(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb',function(e){
16635e.preventDefault();
16636F.close();
16637});
16638}
16639if(current.arrows&&F.group.length>1){
16640if(current.loop||current.index>0){
16641$(current.tpl.prev).appendTo(F.outer).bind('click.fb',F.prev);
16642}
16643if(current.loop||current.index<F.group.length-1){
16644$(current.tpl.next).appendTo(F.outer).bind('click.fb',F.next);
16645}
16646}
16647F.trigger('afterShow');
16648if(current.locked&&current.locked.parent("body")){
16649current.locked.siblings().not("[data-inert-ignore], i4-login").attr("inert","");
16650}
16651if(current.wrap.length===1){
16652current.wrap.attr({
16653role:"dialog",
16654"aria-modal":"true",
16655"aria-label":"seitenüberlagerndes Dialog-Fenster"
16656});
16657current.wrap.focus();
16658}
16659if(!current.loop&&current.index===current.group.length-1){
16660F.play(false);
16661}else if(F.opts.autoPlay&&!F.player.isActive){
16662F.opts.autoPlay=false;
16663F.play();
16664}
16665},
16666_afterZoomOut:function(obj){
16667obj=obj||F.current;
16668$('.fancybox-wrap').trigger('onReset').remove();
16669$.extend(F,{
16670group:{},
16671opts:{},
16672router:false,
16673current:null,
16674isActive:false,
16675isOpened:false,
16676isOpen:false,
16677isClosing:false,
16678wrap:null,
16679skin:null,
16680outer:null,
16681inner:null
16682});
16683F.trigger('afterClose',obj);
16684}
16685});
16686F.transitions={
16687getOrigPosition:function(){
16688var current=F.current,
16689element=current.element,
16690orig=current.orig,
16691pos={},
16692width=50,
16693height=50,
16694hPadding=current.hPadding,
16695wPadding=current.wPadding,
16696viewport=F.getViewport();
16697if(!orig&&current.isDom&&element.is(':visible')){
16698orig=element.find('img:first');
16699if(!orig.length){
16700orig=element;
16701}
16702}
16703if(isQuery(orig)){
16704pos=orig.offset();
16705if(orig.is('img')){
16706width=orig.outerWidth();
16707height=orig.outerHeight();
16708}
16709}else{
16710pos.top=viewport.y+(viewport.h-height)*current.topRatio;
16711pos.left=viewport.x+(viewport.w-width)*current.leftRatio;
16712}
16713if(F.wrap.css('position')==='fixed'||current.locked){
16714pos.top-=viewport.y;
16715pos.left-=viewport.x;
16716}
16717pos={
16718top:getValue(pos.top-hPadding*current.topRatio),
16719left:getValue(pos.left-wPadding*current.leftRatio),
16720width:getValue(width+wPadding),
16721height:getValue(height+hPadding)
16722};
16723return pos;
16724},
16725step:function(now,fx){
16726var ratio,
16727padding,
16728value,
16729prop=fx.prop,
16730current=F.current,
16731wrapSpace=current.wrapSpace,
16732skinSpace=current.skinSpace;
16733if(prop==='width'||prop==='height'){
16734ratio=fx.end===fx.start?1:(now-fx.start)/(fx.end-fx.start);
16735if(F.isClosing){
16736ratio=1-ratio;
16737}
16738padding=prop==='width'?current.wPadding:current.hPadding;
16739value=now-padding;
16740F.skin[prop](getScalar(prop==='width'?value:value-(wrapSpace*ratio)));
16741F.inner[prop](getScalar(prop==='width'?value:value-(wrapSpace*ratio)-(skinSpace*ratio)));
16742}
16743},
16744zoomIn:function(){
16745var current=F.current,
16746startPos=current.pos,
16747effect=current.openEffect,
16748elastic=effect==='elastic',
16749endPos=$.extend({opacity:1},startPos);
16750delete endPos.position;
16751if(elastic){
16752startPos=this.getOrigPosition();
16753if(current.openOpacity){
16754startPos.opacity=0.1;
16755}
16756}else if(effect==='fade'){
16757startPos.opacity=0.1;
16758}
16759F.wrap.css(startPos).animate(endPos,{
16760duration:effect==='none'?0:current.openSpeed,
16761easing:current.openEasing,
16762step:elastic?this.step:null,
16763complete:F._afterZoomIn
16764});
16765},
16766zoomOut:function(){
16767var current=F.current,
16768effect=current.closeEffect,
16769elastic=effect==='elastic',
16770endPos={opacity:0.1};
16771if(elastic){
16772endPos=this.getOrigPosition();
16773if(current.closeOpacity){
16774endPos.opacity=0.1;
16775}
16776}
16777F.wrap.animate(endPos,{
16778duration:effect==='none'?0:current.closeSpeed,
16779easing:current.closeEasing,
16780step:elastic?this.step:null,
16781complete:F._afterZoomOut
16782});
16783},
16784changeIn:function(){
16785var current=F.current,
16786effect=current.nextEffect,
16787startPos=current.pos,
16788endPos={opacity:1},
16789direction=F.direction,
16790distance=200,
16791field;
16792startPos.opacity=0.1;
16793if(effect==='elastic'){
16794field=direction==='down'||direction==='up'?'top':'left';
16795if(direction==='down'||direction==='right'){
16796startPos[field]=getValue(getScalar(startPos[field])-distance);
16797endPos[field]='+='+distance+'px';
16798}else{
16799startPos[field]=getValue(getScalar(startPos[field])+distance);
16800endPos[field]='-='+distance+'px';
16801}
16802}
16803if(effect==='none'){
16804F._afterZoomIn();
16805}else{
16806F.wrap.css(startPos).animate(endPos,{
16807duration:current.nextSpeed,
16808easing:current.nextEasing,
16809complete:F._afterZoomIn
16810});
16811}
16812},
16813changeOut:function(){
16814var previous=F.previous,
16815effect=previous.prevEffect,
16816endPos={opacity:0.1},
16817direction=F.direction,
16818distance=200;
16819if(effect==='elastic'){
16820endPos[direction==='down'||direction==='up'?'top':'left']=(direction==='up'||direction==='left'?'-':'+')+'='+distance+'px';
16821}
16822previous.wrap.animate(endPos,{
16823duration:effect==='none'?0:previous.prevSpeed,
16824easing:previous.prevEasing,
16825complete:function(){
16826$(this).trigger('onReset').remove();
16827}
16828});
16829}
16830};
16831F.helpers.overlay={
16832defaults:{
16833closeClick:true,
16834speedOut:200,
16835showEarly:true,
16836css:{},
16837locked:!isTouch,
16838fixed:true
16839},
16840overlay:null,
16841fixed:false,
16842el:$('html'),
16843create:function(opts){
16844opts=$.extend({},this.defaults,opts);
16845if(this.overlay){
16846this.close();
16847}
16848this.overlay=$('<div class="fancybox-overlay"></div>').appendTo(F.coming?F.coming.parent:opts.parent);
16849this.fixed=false;
16850if(opts.fixed&&F.defaults.fixed){
16851this.overlay.addClass('fancybox-overlay-fixed');
16852this.fixed=true;
16853}
16854},
16855open:function(opts){
16856var that=this;
16857opts=$.extend({},this.defaults,opts);
16858if(this.overlay){
16859this.overlay.unbind('.overlay').width('auto').height('auto');
16860}else{
16861this.create(opts);
16862}
16863if(!this.fixed){
16864W.bind('resize.overlay',$.proxy(this.update,this));
16865this.update();
16866}
16867if(opts.closeClick){
16868this.overlay.bind('click.overlay',function(e){
16869if($(e.target).hasClass('fancybox-overlay')){
16870if(F.isActive){
16871F.close();
16872}else{
16873that.close();
16874}
16875return false;
16876}
16877});
16878}
16879this.overlay.css(opts.css).show();
16880},
16881close:function(){
16882var scrollV,scrollH;
16883W.unbind('resize.overlay');
16884if(this.el.hasClass('fancybox-lock')){
16885$('.fancybox-margin').removeClass('fancybox-margin');
16886scrollV=W.scrollTop();
16887scrollH=W.scrollLeft();
16888this.el.removeClass('fancybox-lock');
16889W.scrollTop(scrollV).scrollLeft(scrollH);
16890}
16891$('.fancybox-overlay').remove().hide();
16892$.extend(this,{
16893overlay:null,
16894fixed:false
16895});
16896},
16897update:function(){
16898var width='100%',offsetWidth;
16899this.overlay.width(width).height('100%');
16900if(IE){
16901offsetWidth=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);
16902if(D.width()>offsetWidth){
16903width=D.width();
16904}
16905}else if(D.width()>W.width()){
16906width=D.width();
16907}
16908this.overlay.width(width).height(D.height());
16909},
16910onReady:function(opts,obj){
16911var overlay=this.overlay;
16912$('.fancybox-overlay').stop(true,true);
16913if(!overlay){
16914this.create(opts);
16915}
16916if(opts.locked&&this.fixed&&obj.fixed){
16917if(!overlay){
16918this.margin=D.height()>W.height()?$('html').css('margin-right').replace("px",""):false;
16919}
16920obj.locked=this.overlay.append(obj.wrap);
16921obj.fixed=false;
16922}
16923if(opts.showEarly===true){
16924this.beforeShow.apply(this,arguments);
16925}
16926},
16927beforeShow:function(opts,obj){
16928var scrollV,scrollH;
16929if(obj.locked){
16930scrollV=W.scrollTop();
16931scrollH=W.scrollLeft();
16932this.el.addClass('fancybox-lock');
16933W.scrollTop(scrollV).scrollLeft(scrollH);
16934}
16935this.open(opts);
16936},
16937onUpdate:function(){
16938if(!this.fixed){
16939this.update();
16940}
16941},
16942afterClose:function(opts){
16943if(this.overlay&&!F.coming){
16944$("body").children().removeAttr("inert");
16945this.overlay.fadeOut(opts.speedOut,$.proxy(this.close,this));
16946if(lastFocusedElement){
16947setTimeout(()=>{
16948lastFocusedElement.focus();
16949},0);
16950}
16951}
16952}
16953};
16954F.helpers.title={
16955defaults:{
16956type:'float',
16957position:'bottom'
16958},
16959beforeShow:function(opts){
16960var current=F.current,
16961text=current.title,
16962type=opts.type,
16963title,
16964target;
16965if($.isFunction(text)){
16966text=text.call(current.element,current);
16967}
16968if(!isString(text)||$.trim(text)===''){
16969return;
16970}
16971title=$('<div class="fancybox-title fancybox-title-'+type+'-wrap">'+text+'</div>');
16972switch(type){
16973case'inside':
16974target=F.skin;
16975break;
16976case'outside':
16977target=F.wrap;
16978break;
16979case'over':
16980target=F.inner;
16981break;
16982default:
16983target=F.skin;
16984title.appendTo('body');
16985if(IE){
16986title.width(title.width());
16987}
16988title.wrapInner('<span class="child"></span>');
16989F.current.margin[2]+=Math.abs(getScalar(title.css('margin-bottom')));
16990break;
16991}
16992title[(opts.position==='top'?'prependTo':'appendTo')](target);
16993}
16994};
16995$.fn.fancybox=function(options){
16996var index,
16997that=$(this),
16998selector=this.selector||'',
16999run=function(e){
17000var what=$(this).blur(),idx=index,relType,relVal;
17001if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&!what.is('.fancybox-wrap')){
17002relType=options.groupAttr||'data-fancybox-group';
17003relVal=what.attr(relType);
17004if(!relVal){
17005relType='rel';
17006relVal=what.get(0)[relType];
17007}
17008if(relVal&&relVal!==''&&relVal!=='nofollow'){
17009what=selector.length?$(selector):that;
17010what=what.filter('['+relType+'="'+relVal+'"]');
17011idx=what.index(this);
17012}
17013options.index=idx;
17014if(F.open(what,options)!==false){
17015e.preventDefault();
17016}
17017}
17018};
17019options=options||{};
17020index=options.index||0;
17021if(!selector||options.live===false){
17022that.unbind('click.fb-start').bind('click.fb-start',run);
17023}else{
17024D.undelegate(selector,'click.fb-start').delegate(selector+":not('.fancybox-item, .fancybox-nav')",'click.fb-start',run);
17025}
17026this.filter('[data-fancybox-start=1]').trigger('click');
17027return this;
17028};
17029D.ready(function(){
17030var w1,w2;
17031if($.scrollbarWidth===undefined){
17032$.scrollbarWidth=function(){
17033var parent=$('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),
17034child=parent.children(),
17035width=child.innerWidth()-child.height(99).innerWidth();
17036parent.remove();
17037return width;
17038};
17039}
17040if($.support.fixedPosition===undefined){
17041$.support.fixedPosition=(function(){
17042var elem=$('<div style="position:fixed;top:20px;"></div>').appendTo('body'),
17043fixed=(elem[0].offsetTop===20||elem[0].offsetTop===15);
17044elem.remove();
17045return fixed;
17046}());
17047}
17048$.extend(F.defaults,{
17049scrollbarWidth:$.scrollbarWidth(),
17050fixed:$.support.fixedPosition,
17051parent:$('body')
17052});
17053w1=$(window).width();
17054H.addClass('fancybox-lock-test');
17055w2=$(window).width();
17056H.removeClass('fancybox-lock-test');
17057const styleEl=new CSSStyleSheet();
17058styleEl.replaceSync(".fancybox-margin{margin-right:"+(w2-w1)+"px;}");
17059document.adoptedStyleSheets.push(styleEl);
17060});
17061}(window,document,jQuery));
17062(function($){
17063var F=$.fancybox;
17064F.helpers.buttons={
17065defaults:{
17066skipSingle:false,
17067position:'top',
17068tpl:'<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
17069},
17070list:null,
17071buttons:null,
17072beforeLoad:function(opts,obj){
17073if(opts.skipSingle&&obj.group.length<2){
17074obj.helpers.buttons=false;
17075obj.closeBtn=true;
17076return;
17077}
17078obj.margin[opts.position==='bottom'?2:0]+=30;
17079},
17080onPlayStart:function(){
17081if(this.buttons){
17082this.buttons.play.attr('title','Pause slideshow').addClass('btnPlayOn');
17083}
17084},
17085onPlayEnd:function(){
17086if(this.buttons){
17087this.buttons.play.attr('title','Start slideshow').removeClass('btnPlayOn');
17088}
17089},
17090afterShow:function(opts,obj){
17091var buttons=this.buttons;
17092if(!buttons){
17093this.list=$(opts.tpl).addClass(opts.position).appendTo('body');
17094buttons={
17095prev:this.list.find('.btnPrev').click(F.prev),
17096next:this.list.find('.btnNext').click(F.next),
17097play:this.list.find('.btnPlay').click(F.play),
17098toggle:this.list.find('.btnToggle').click(F.toggle),
17099close:this.list.find('.btnClose').click(F.close)
17100}
17101}
17102if(obj.index>0||obj.loop){
17103buttons.prev.removeClass('btnDisabled');
17104}else{
17105buttons.prev.addClass('btnDisabled');
17106}
17107if(obj.loop||obj.index<obj.group.length-1){
17108buttons.next.removeClass('btnDisabled');
17109buttons.play.removeClass('btnDisabled');
17110}else{
17111buttons.next.addClass('btnDisabled');
17112buttons.play.addClass('btnDisabled');
17113}
17114this.buttons=buttons;
17115this.onUpdate(opts,obj);
17116},
17117onUpdate:function(opts,obj){
17118var toggle;
17119if(!this.buttons){
17120return;
17121}
17122toggle=this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
17123if(obj.canShrink){
17124toggle.addClass('btnToggleOn');
17125}else if(!obj.canExpand){
17126toggle.addClass('btnDisabled');
17127}
17128},
17129beforeClose:function(){
17130if(this.list){
17131this.list.remove();
17132}
17133this.list=null;
17134this.buttons=null;
17135}
17136};
17137}(jQuery));
17138(function($){
17139"use strict";
17140var F=$.fancybox,
17141format=function(url,rez,params){
17142params=params||'';
17143if($.type(params)==="object"){
17144params=$.param(params,true);
17145}
17146$.each(rez,function(key,value){
17147url=url.replace('$'+key,value||'');
17148});
17149if(params.length){
17150url+=(url.indexOf('?')>0?'&':'?')+params;
17151}
17152return url;
17153};
17154F.helpers.media={
17155defaults:{
17156youtube:{
17157matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
17158params:{
17159autoplay:1,
17160autohide:1,
17161fs:1,
17162rel:0,
17163hd:1,
17164wmode:'opaque',
17165enablejsapi:1
17166},
17167type:'iframe',
17168url:'//www.youtube.com/embed/$3'
17169},
17170vimeo:{
17171matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
17172params:{
17173autoplay:1,
17174hd:1,
17175show_title:1,
17176show_byline:1,
17177show_portrait:0,
17178fullscreen:1
17179},
17180type:'iframe',
17181url:'//player.vimeo.com/video/$1'
17182},
17183metacafe:{
17184matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
17185params:{
17186autoPlay:'yes'
17187},
17188type:'swf',
17189url:function(rez,params,obj){
17190obj.swf.flashVars='playerVars='+$.param(params,true);
17191return'//www.metacafe.com/fplayer/'+rez[1]+'/.swf';
17192}
17193},
17194dailymotion:{
17195matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,
17196params:{
17197additionalInfos:0,
17198autoStart:1
17199},
17200type:'swf',
17201url:'//www.dailymotion.com/swf/video/$1'
17202},
17203twitvid:{
17204matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
17205params:{
17206autoplay:0
17207},
17208type:'iframe',
17209url:'//www.twitvid.com/embed.php?guid=$1'
17210},
17211twitpic:{
17212matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
17213type:'image',
17214url:'//twitpic.com/show/full/$1/'
17215},
17216instagram:{
17217matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
17218type:'image',
17219url:'//$1/p/$2/media/?size=l'
17220},
17221google_maps:{
17222matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
17223type:'iframe',
17224url:function(rez){
17225return'//maps.google.'+rez[1]+'/'+rez[3]+''+rez[4]+'&output='+(rez[4].indexOf('layer=c')>0?'svembed':'embed');
17226}
17227}
17228},
17229beforeLoad:function(opts,obj){
17230var url=obj.href||'',
17231type=false,
17232what,
17233item,
17234rez,
17235params;
17236for(what in opts){
17237if(opts.hasOwnProperty(what)){
17238item=opts[what];
17239rez=url.match(item.matcher);
17240if(rez){
17241type=item.type;
17242params=$.extend(true,{},item.params,obj[what]||($.isPlainObject(opts[what])?opts[what].params:null));
17243url=$.type(item.url)==="function"?item.url.call(this,rez,params,obj):format(item.url,rez,params);
17244break;
17245}
17246}
17247}
17248if(type){
17249obj.href=url;
17250obj.type=type;
17251obj.autoHeight=false;
17252}
17253}
17254};
17255}(jQuery));
17256(function($){
17257var F=$.fancybox;
17258F.helpers.thumbs={
17259defaults:{
17260width:50,
17261height:50,
17262position:'bottom',
17263source:function(item){
17264var href;
17265if(item.element){
17266href=$(item.element).find('img').attr('src');
17267}
17268if(!href&&item.type==='image'&&item.href){
17269href=item.href;
17270}
17271return href;
17272}
17273},
17274wrap:null,
17275list:null,
17276width:0,
17277init:function(opts,obj){
17278var that=this,
17279list,
17280thumbWidth=opts.width,
17281thumbHeight=opts.height,
17282thumbSource=opts.source;
17283list='';
17284for(var n=0;n<obj.group.length;n++){
17285list+='<li><a style="width:'+thumbWidth+'px;height:'+thumbHeight+'px;" href="javascript:jQuery.fancybox.jumpto('+n+');"></a></li>';
17286}
17287this.wrap=$('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
17288this.list=$('<ul>'+list+'</ul>').appendTo(this.wrap);
17289$.each(obj.group,function(i){
17290var href=thumbSource(obj.group[i]);
17291if(!href){
17292return;
17293}
17294$("<img />").load(function(){
17295var width=this.width,
17296height=this.height,
17297widthRatio,heightRatio,parent;
17298if(!that.list||!width||!height){
17299return;
17300}
17301widthRatio=width/thumbWidth;
17302heightRatio=height/thumbHeight;
17303parent=that.list.children().eq(i).find('a');
17304if(widthRatio>=1&&heightRatio>=1){
17305if(widthRatio>heightRatio){
17306width=Math.floor(width/heightRatio);
17307height=thumbHeight;
17308}else{
17309width=thumbWidth;
17310height=Math.floor(height/widthRatio);
17311}
17312}
17313$(this).css({
17314width:width,
17315height:height,
17316top:Math.floor(thumbHeight/2-height/2),
17317left:Math.floor(thumbWidth/2-width/2)
17318});
17319parent.width(thumbWidth).height(thumbHeight);
17320$(this).hide().appendTo(parent).fadeIn(300);
17321}).attr('src',href);
17322});
17323this.width=this.list.children().eq(0).outerWidth(true);
17324this.list.width(this.width*(obj.group.length+1)).css('left',Math.floor($(window).width()*0.5-(obj.index*this.width+this.width*0.5)));
17325},
17326beforeLoad:function(opts,obj){
17327if(obj.group.length<2){
17328obj.helpers.thumbs=false;
17329return;
17330}
17331obj.margin[opts.position==='top'?0:2]+=((opts.height)+15);
17332},
17333afterShow:function(opts,obj){
17334if(this.list){
17335this.onUpdate(opts,obj);
17336}else{
17337this.init(opts,obj);
17338}
17339this.list.children().removeClass('active').eq(obj.index).addClass('active');
17340},
17341onUpdate:function(opts,obj){
17342if(this.list){
17343this.list.stop(true).animate({
17344'left':Math.floor($(window).width()*0.5-(obj.index*this.width+this.width*0.5))
17345},150);
17346}
17347},
17348beforeClose:function(){
17349if(this.wrap){
17350this.wrap.remove();
17351}
17352this.wrap=null;
17353this.list=null;
17354this.width=0;
17355}
17356}
17357}(jQuery));
17358(function($){
17359var isDragging=false,
17360startX=0,
17361startY=0,
17362dragThreshold=10;
17363const fancyboxSelector=".i4-img-fancybox"
17364var originalOpen=$.fancybox.open;
17365$.fancybox.open=function(group,opts){
17366if(isDragging){
17367return false;
17368}
17369return originalOpen.apply(this,arguments);
17370};
17371$(document).on('mousedown touchstart',fancyboxSelector,function(e){
17372isDragging=false;
17373var point=e.type==='touchstart'?e.originalEvent.touches[0]:e;
17374startX=point.clientX;
17375startY=point.clientY;
17376});
17377$(document).on('mousemove touchmove',fancyboxSelector,function(e){
17378if(startX===0&&startY===0)return;
17379var point=e.type==='touchmove'?e.originalEvent.touches[0]:e;
17380var deltaX=Math.abs(point.clientX-startX);
17381var deltaY=Math.abs(point.clientY-startY);
17382if(deltaX>dragThreshold||deltaY>dragThreshold){
17383isDragging=true;
17384}
17385});
17386$(document).on('mouseup touchend',fancyboxSelector,function(e){
17387setTimeout(function(){
17388isDragging=false;
17389startX=0;
17390startY=0;
17391},50);
17392});
17393})(jQuery);
17394const common_common_lib_lightbox=(function($){
17395const _export={};
17396function getBestCaption($container,$img){
17397return $img.data("caption")||
17398$container.find(".i4-img-caption").text()||
17399$img.data("i4-img-caption")||
17400$img.attr("title");
17401}
17402_export.initLightbox=function(el){
17403let items;
17404if(!el){
17405items=$(".i4-img-lightbox");
17406}else{
17407items=$(el);
17408}
17409items.each(function(){
17410const $img=$(this);
17411if($img.parent().is(".i4-img-fancybox")){
17412return true;
17413}
17414let $container=$img.closest(".i4-img-container");
17415if($container.length===0){
17416$container=$img.parent();
17417}
17418const copyright=$container.find(".i4-img-copyright").text();
17419const src=($img.attr("data-src")||$img.attr("src")).replace(/resize=[^&]+&?/,"");
17420let alt=$img.attr("alt");
17421if(!alt){
17422alt="";
17423}
17424const caption=getBestCaption($container,$img);
17425const downloadButton=$img.data("downloadbutton");
17426const rel=$img.attr("data-rel")?$img.attr("data-rel"):"group";
17427const linkHint="Link öffnet seitenüberlagerndes Dialog-Fenster";
17428linkAlt=alt.trim().length===0?`${linkHint}`:`${alt} - ${linkHint}`;
17429$img.attr("alt",linkAlt);
17430const $link=$("<a/>")
17431.attr("href",src)
17432.attr("aria-haspopup","dialog")
17433.attr("rel",rel)
17434.attr("data-downloadbutton",downloadButton)
17435.attr("data-copyright",copyright)
17436.attr("data-caption",caption)
17437.attr("data-alt",alt)
17438.attr("class","i4-img-fancybox");
17439$img.wrap($link);
17440});
17441return items;
17442};
17443_export.initFancybox=function(el,showCaption){
17444let items;
17445if(!el){
17446items=$(".i4-img-fancybox");
17447}else{
17448items=$(el);
17449}
17450items.fancybox({
17451helpers:{
17452overlay:{
17453locked:true
17454},
17455title:{type:"over"}
17456},
17457afterLoad:function(object){
17458const content=this.element.data("fancybox-content");
17459if(content){
17460object.content=content;
17461}
17462},
17463beforeShow:function(){
17464const $link=this.element;
17465const $img=$link.find("img");
17466const title=$link.attr("title");
17467const alt=$link.attr("data-alt");
17468const src=$link.prop("href")||(""+$img.attr("src")).replace(/resize=.+(&)?/,"");
17469const fileName=src.split("/").slice(-1)[0].split("?")[0];
17470const downloadButton=$link.data("downloadbutton");
17471const copyright=$link.data("copyright");
17472const caption=$link.data("caption");
17473this.inner.find("img").attr("alt",alt);
17474const quotedCopyrightText=copyright?"("+copyright+")":undefined;
17475const downloadButtonHtml=downloadButton?"<a class=\"download\" href=\""+src+"\" download=\""+fileName+"\"  aria-label=\"Download "+fileName+"\"><i aria-hidden=\"true\" title=\""+"Download"+"\" class=\"sf sf-download-5\"></i></a>":undefined;
17476const titleParts=[
17477caption,
17478quotedCopyrightText,
17479downloadButtonHtml
17480];
17481this.title=(showCaption===false)?undefined:titleParts.filter(Boolean).join(" ");
17482},
17483afterShow:function(){
17484const fancyboxWrapper=$(".fancybox-wrap");
17485fancyboxWrapper.on("swipeleft",function(){
17486$.fancybox.next();
17487});
17488fancyboxWrapper.on("swiperight",function(){
17489$.fancybox.prev();
17490});
17491},
17492tpl:{
17493closeBtn:`<a title="${"Close"}" aria-label="${"Close"}" role="button" class="fancybox-item fancybox-close" href="javascript:;"></a>`,
17494next:`<a title="${"Next"}" aria-label="${"Next"}" role="button" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>`,
17495prev:`<a title="${"Previous"}" aria-label="${"Previous"}" role="button" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>`
17496},
17497});
17498items.addClass("i4-img-fancybox-initialized");
17499};
17500$(function(){
17501_export.initLightbox();
17502_export.initFancybox();
17503});
17504return _export;
17505}(jQuery));
17506(function(){
17507const observer=new MutationObserver(function(mutations){
17508mutations.forEach(function(mutation){
17509for(let i=0;i<mutation.addedNodes.length;i++){
17510const addedNode=mutation.addedNodes[i];
17511try{
17512if(
17513$(addedNode).find(".i4-img-fancybox").addBack(".i4-img-fancybox").length===0&&
17514$(addedNode).closest(".i4-img-fancybox").length===0
17515){
17516const lightBoxes=addedNode.querySelectorAll(".i4-img-lightbox");
17517const el=lightBoxes.length>0?lightBoxes:(addedNode.matches(".i4-img-lightbox")?addedNode:false);
17518if(el){
17519const lightBoxElements=common_common_lib_lightbox.initLightbox(el);
17520common_common_lib_lightbox.initFancybox(lightBoxElements.parent());
17521}
17522}
17523}catch(e){
17524}
17525}
17526});
17527});
17528observer.observe(document.querySelector("body"),{
17529attributes:false,
17530childList:true,
17531characterData:false,
17532subtree:true
17533});
17534})();
17535window.common_common_lib_lightbox=common_common_lib_lightbox;
17536(function(window){
17537var Pegasus=window.Pegasus=window.Pegasus||{};
17538Pegasus.defineNamespace=function(path){
17539var pathNames=path.split('.').filter(function(node){return!!node;});
17540var namespace=Pegasus;
17541while(pathNames.length>0){
17542var name=pathNames.shift();
17543namespace=namespace[name]=namespace[name]||{};
17544}
17545return namespace;
17546}
17547})(window);
17548(function(window){
17549var Default=Pegasus.defineNamespace('Common.Common.Default');
17550var loadingYoutubeIframeAPI;
17551Default.loadYoutubeIframeAPI=function(){
17552if(loadingYoutubeIframeAPI===undefined){
17553loadingYoutubeIframeAPI=new Promise(function(resolve){
17554var tag=document.createElement('script');
17555tag.src="https://www.youtube.com/iframe_api";
17556var firstScriptTag=document.getElementsByTagName('script')[0];
17557firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);
17558window.onYouTubeIframeAPIReady=function(){
17559resolve();
17560}
17561});
17562}
17563return loadingYoutubeIframeAPI;
17564};
17565var loadingVimeoAPI;
17566Default.loadVimeoAPI=function(){
17567if(loadingVimeoAPI===undefined){
17568loadingVimeoAPI=new Promise(function(resolve){
17569var tag=document.createElement('script');
17570var firstScriptTag=document.getElementsByTagName('script')[0];
17571firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);
17572tag.onload=function(){
17573resolve();
17574};
17575tag.src="https://player.vimeo.com/api/player.js";
17576});
17577}
17578return loadingVimeoAPI;
17579};
17580})(window);
17581(function(window){
17582var Default=Pegasus.defineNamespace('Common.Common.Default');
17583Default.video=async function(el,options){
17584var $target=el;
17585var $videoContainer=$target.find('[data-video-container]');
17586var $previewImage=$target.find(".video-preview-image");
17587var $fancyBoxContainer=$("[href='#"+$target.attr("id")+"']");
17588var $fancyboxLinkVideoContainer=$target.prev('a').find('.fancybox-link-video-container');
17589let $effectivePreviewImageContainer=$fancyBoxContainer.length?$fancyBoxContainer.find(".video-preview-image"):$previewImage;
17590var $video;
17591var offset=options.offset||0.5;
17592var videoInitialized=false;
17593var startAutomatically=$target.data('startautomatically');
17594var muteVideo=$target.data('mutevideo');
17595var videoControls={
17596isPlaying:false,
17597isPaused:true
17598};
17599var programPaused=false;
17600var programPlayed=false;
17601var userPaused=false;
17602var userPlayed=false;
17603function tryAutoPlay(){
17604if(options.openInFancybox||!startAutomatically||options.loadOnClick||$("body").is(".mode-editor")){
17605return;
17606}
17607if(userPaused||userPlayed){
17608return;
17609}
17610if(isVideoVisible()){
17611play();
17612}else{
17613pause();
17614}
17615}
17616function isVideoVisible(){
17617var rect=$target[0].getBoundingClientRect();
17618var iframeHeight=rect.bottom-rect.top;
17619return(
17620rect.top>=-(iframeHeight*offset)&&
17621rect.bottom<=(window.innerHeight+(iframeHeight*offset))
17622);
17623}
17624function onPlayerReady(e){
17625if(muteVideo&&startAutomatically)
17626videoControls.mute();
17627$(window).on('scroll',function(){
17628tryAutoPlay();
17629});
17630tryAutoPlay();
17631}
17632function onPause(){
17633videoControls.isPlaying=false;
17634videoControls.isPaused=true;
17635$target.removeClass("played");
17636$target.addClass("paused");
17637if(programPaused){
17638programPaused=false;
17639}else{
17640userPaused=true;
17641}
17642}
17643function onPlay(){
17644videoControls.isPlaying=true;
17645videoControls.isPaused=false;
17646$target.addClass("played");
17647$target.removeClass("paused");
17648if(programPlayed){
17649programPlayed=false;
17650}else{
17651userPlayed=true;
17652}
17653}
17654function play(){
17655if(videoControls.isPlaying)
17656return;
17657programPlayed=true;
17658videoControls.play();
17659}
17660function pause(){
17661if(videoControls.isPaused)
17662return;
17663programPaused=true;
17664videoControls.pause();
17665}
17666function initVideo(html){
17667if(videoInitialized){
17668return;
17669}
17670$fancyboxLinkVideoContainer.find(".video-preview-image").remove();
17671$previewImage.remove();
17672if(html){
17673$fancyboxLinkVideoContainer.find(".loading-text").remove();
17674$fancyboxLinkVideoContainer.append(html);
17675$videoContainer.find(".loading-text").remove();
17676$videoContainer.append(html);
17677}
17678$video=$videoContainer.children("video,iframe").first();
17679const width=$video.attr('width');
17680const height=$video.attr('height');
17681if(width&&height){
17682$video.css('aspect-ratio',width+" / "+height);
17683}
17684$fancyBoxContainer.fancybox({
17685beforeClose:function(){
17686videoControls.pause();
17687},
17688beforeShow:function(){
17689if($video.is("video")){
17690var $source=$video.children("source");
17691if($source.is("[data-src]")){
17692var $parent=$video.parent();
17693$source.attr("src",$source.attr("data-src"));
17694$source.removeAttr("data-src");
17695var videoHtml=$parent.html();
17696$video.remove();
17697$parent.html(videoHtml);
17698$video=$parent.children("video");
17699}
17700}
17701},
17702afterShow:function(){
17703play();
17704}
17705});
17706var providerName=$target.data('providername');
17707if(providerName==='YouTube'){
17708$video.attr("src",$video.attr("src")+"&enablejsapi=1");
17709$target.trigger("beforeYouTubeLoad.common.common.default:video",{
17710video:$video,
17711videoSrc:$video.attr("src")
17712});
17713Default.loadYoutubeIframeAPI().then(function(){
17714var player=new YT.Player($video.get(0),{
17715events:{
17716'onReady':function(event){
17717videoControls.play=function(){
17718player.playVideo();
17719};
17720videoControls.pause=function(){
17721player.pauseVideo();
17722};
17723videoControls.mute=function(){
17724player.mute();
17725};
17726onPlayerReady();
17727},
17728'onStateChange':function(event){
17729if(event.data==YT.PlayerState.PLAYING){
17730onPlay();
17731}
17732if(event.data==YT.PlayerState.PAUSED){
17733onPause();
17734}
17735}
17736}
17737});
17738});
17739}
17740if(providerName==='Vimeo'){
17741Default.loadVimeoAPI().then(function(){
17742var player=new Vimeo.Player($video.get(0));
17743videoControls.play=function(){
17744player.play();
17745};
17746videoControls.pause=function(){
17747player.pause();
17748};
17749videoControls.mute=function(){
17750player.setVolume(0);
17751};
17752player.on('play',function(){
17753onPlay();
17754});
17755player.on('pause',function(){
17756onPause();
17757});
17758onPlayerReady();
17759});
17760}
17761if(providerName==='localVideo'){
17762videoControls.play=function(){
17763$video.get(0).play();
17764};
17765videoControls.pause=function(){
17766$video.get(0).pause();
17767};
17768videoControls.mute=function(){
17769$video.get(0).muted=true;
17770};
17771$video.get(0).onpause=function(){
17772onPause();
17773};
17774$video.get(0).onplay=function(){
17775onPlay();
17776};
17777onPlayerReady();
17778}
17779videoInitialized=true;
17780}
17781function applyVideo(html){
17782$(window).off("scroll",initScrollControl);
17783$(window).off("scroll",requestLoadThumbnail);
17784if($("body").is(".mode-editor"))
17785return;
17786initVideo(html);
17787}
17788function initScrollControl(html){
17789if(isVideoVisible()){
17790if(options.loadOnClick&&startAutomatically){
17791applyVideo(html);
17792}
17793if(!options.loadOnClick){
17794$(window).off("scroll",initScrollControl);
17795initVideo(html);
17796}
17797}
17798}
17799function isValidYTThumbnail(src){
17800let valid=false;
17801$.ajax({
17802url:src,
17803type:'get',
17804async:false,
17805success:function(data){
17806valid=true;
17807},
17808error:function(){
17809valid=false;
17810}
17811});
17812return valid;
17813}
17814function requestLoadThumbnail(){
17815window.requestAnimationFrame(function(){
17816$(window).off("scroll",requestLoadThumbnail);
17817if(metadata){
17818if(metadata.thumbnail_url){
17819$effectivePreviewImageContainer.css("background-image","url('"+metadata.thumbnail_url+"')");
17820}
17821if(metadata.title){
17822$("<div class='video-title'></div>")
17823.text(metadata.title)
17824.appendTo($effectivePreviewImageContainer);
17825}
17826}
17827});
17828}
17829function getProvidername(src){
17830if(src!==undefined){
17831if(src.indexOf("youtube.com")>=0||src.indexOf("youtu.be")>=0){
17832return'YouTube';
17833}else if(src.indexOf("vimeo.com")>=0){
17834return'Vimeo';
17835}else{
17836return'localVideo';
17837}
17838}
17839}
17840function getOEmbedApiHref(src){
17841let providername=getProvidername(src);
17842if(providername==='Vimeo'){
17843const url=new URL("https://vimeo.com/api/oembed.json");
17844url.searchParams.append("url",src);
17845return url.href;
17846}else if(providername==='YouTube'){
17847const url=new URL("https://youtube.com/oembed");
17848url.searchParams.append("url",src);
17849url.searchParams.append("format","json");
17850return url.href;
17851}
17852return;
17853}
17854async function fetchOEmbed(src){
17855let oEmbedApiHref=getOEmbedApiHref(src);
17856if(oEmbedApiHref){
17857const response=await fetch(oEmbedApiHref,{
17858headers:{
17859'Accept':'application/json'
17860}
17861});
17862if(response.ok){
17863return response.json();
17864}else{
17865throw new Error(response.statusText);
17866}
17867}
17868}
17869function extractMetadataHtml(metadata,nocookie){
17870if(metadata){
17871if(nocookie){
17872return metadata.html.replace("www.youtube.com","www.youtube-nocookie.com");
17873}else{
17874return metadata.html;
17875}
17876}
17877}
17878function extractTemplateHtml(id){
17879let $scriptElements=$("."+id+"-template");
17880let html=$scriptElements.first().html();
17881$scriptElements.remove();
17882return html;
17883}
17884async function fetchMetadataAndHtml(src,nocookie){
17885try{
17886let metadata=await fetchOEmbed(src);
17887if(metadata){
17888if(metadata.error){
17889return{
17890metadata,
17891html:'<div class="callout warning">'+metadata.error+'</div>',
17892error_message:'<div class="callout warning">'+metadata.error+'</div>'
17893};
17894}else{
17895return{
17896metadata,
17897html:extractMetadataHtml(metadata,nocookie)
17898};
17899}
17900}else{
17901return{
17902html:extractTemplateHtml($target.attr("id"))
17903};
17904}
17905}catch(e){
17906return{
17907html:'<div class="callout warning">'+'Fehler beim Laden der Metadaten: '+e.message+'</div>',
17908error_message:'<div class="callout warning">'+'Fehler beim Laden der Metadaten: '+e.message+'</div>'
17909};
17910}
17911}
17912if(options.source.length===0)
17913return;
17914let{metadata,html,error_message}=await fetchMetadataAndHtml(options.source,options.nocookie);
17915if($('body').is('.mode-editor')){
17916if($target.is(".no-placeholder")){
17917$(window).on("scroll",requestLoadThumbnail);
17918requestLoadThumbnail();
17919}
17920if(error_message){
17921$(error_message).appendTo($effectivePreviewImageContainer);
17922}
17923}else if(options.lazyLoadVideos){
17924if(options.loadOnClick){
17925if(options.openInFancybox){
17926initVideo(html);
17927}else{
17928$(window).on("scroll",function(){initScrollControl(html);});
17929initScrollControl(html);
17930if($previewImage.length>0){
17931$previewImage.on("click",function(e){
17932applyVideo(html);
17933});
17934}else{
17935initVideo(html);
17936}
17937}
17938if($target.is(".no-placeholder")){
17939$(window).on("scroll",requestLoadThumbnail);
17940requestLoadThumbnail();
17941}
17942}else{
17943if(options.openInFancybox){
17944initVideo(html);
17945}else{
17946$(window).on("scroll",function(){initScrollControl(html);});
17947initScrollControl(html);
17948}
17949}
17950}else if($previewImage.length){
17951$effectivePreviewImageContainer.on("click",(e)=>{
17952initVideo(html);
17953});
17954}else{
17955initVideo(html);
17956}
17957};
17958}(window));
17959(function(factory){
17960if(typeof define==='function'&&define.amd){
17961define([],factory);
17962}else if(typeof exports==='object'){
17963module.exports=factory();
17964}else{
17965window.noUiSlider=factory();
17966}
17967}(function(){
17968'use strict';
17969function addNodeTo(target,className){
17970var div=document.createElement('div');
17971addClass(div,className);
17972target.appendChild(div);
17973return div;
17974}
17975function unique(array){
17976return array.filter(function(a){
17977return!this[a]?this[a]=true:false;
17978},{});
17979}
17980function closest(value,to){
17981return Math.round(value/to)*to;
17982}
17983function offset(elem,orientation){
17984var rect=elem.getBoundingClientRect(),
17985doc=elem.ownerDocument,
17986docElem=doc.documentElement,
17987pageOffset=getPageOffset();
17988if(/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)){
17989pageOffset.x=0;
17990}
17991return orientation?(rect.top+pageOffset.y-docElem.clientTop):(rect.left+pageOffset.x-docElem.clientLeft);
17992}
17993function isNumeric(a){
17994return typeof a==='number'&&!isNaN(a)&&isFinite(a);
17995}
17996function addClassFor(element,className,duration){
17997if(duration>0){
17998addClass(element,className);
17999setTimeout(function(){
18000removeClass(element,className);
18001},duration);
18002}
18003}
18004function limit(a){
18005return Math.max(Math.min(a,100),0);
18006}
18007function asArray(a){
18008return Array.isArray(a)?a:[a];
18009}
18010function countDecimals(numStr){
18011numStr=String(numStr);
18012var pieces=numStr.split(".");
18013return pieces.length>1?pieces[1].length:0;
18014}
18015function addClass(el,className){
18016if(el.classList){
18017el.classList.add(className);
18018}else{
18019el.className+=' '+className;
18020}
18021}
18022function removeClass(el,className){
18023if(el.classList){
18024el.classList.remove(className);
18025}else{
18026el.className=el.className.replace(new RegExp('(^|\\b)'+className.split(' ').join('|')+'(\\b|$)','gi'),' ');
18027}
18028}
18029function hasClass(el,className){
18030return el.classList?el.classList.contains(className):new RegExp('\\b'+className+'\\b').test(el.className);
18031}
18032function getPageOffset(){
18033var supportPageOffset=window.pageXOffset!==undefined,
18034isCSS1Compat=((document.compatMode||"")==="CSS1Compat"),
18035x=supportPageOffset?window.pageXOffset:isCSS1Compat?document.documentElement.scrollLeft:document.body.scrollLeft,
18036y=supportPageOffset?window.pageYOffset:isCSS1Compat?document.documentElement.scrollTop:document.body.scrollTop;
18037return{
18038x:x,
18039y:y
18040};
18041}
18042function getActions(){
18043return window.navigator.pointerEnabled?{
18044start:'pointerdown',
18045move:'pointermove',
18046end:'pointerup'
18047}:window.navigator.msPointerEnabled?{
18048start:'MSPointerDown',
18049move:'MSPointerMove',
18050end:'MSPointerUp'
18051}:{
18052start:'mousedown touchstart',
18053move:'mousemove touchmove',
18054end:'mouseup touchend'
18055};
18056}
18057function subRangeRatio(pa,pb){
18058return(100/(pb-pa));
18059}
18060function fromPercentage(range,value){
18061return(value*100)/(range[1]-range[0]);
18062}
18063function toPercentage(range,value){
18064return fromPercentage(range,range[0]<0?
18065value+Math.abs(range[0]):
18066value-range[0]);
18067}
18068function isPercentage(range,value){
18069return((value*(range[1]-range[0]))/100)+range[0];
18070}
18071function getJ(value,arr){
18072var j=1;
18073while(value>=arr[j]){
18074j+=1;
18075}
18076return j;
18077}
18078function toStepping(xVal,xPct,value){
18079if(value>=xVal.slice(-1)[0]){
18080return 100;
18081}
18082var j=getJ(value,xVal),va,vb,pa,pb;
18083va=xVal[j-1];
18084vb=xVal[j];
18085pa=xPct[j-1];
18086pb=xPct[j];
18087return pa+(toPercentage([va,vb],value)/subRangeRatio(pa,pb));
18088}
18089function fromStepping(xVal,xPct,value){
18090if(value>=100){
18091return xVal.slice(-1)[0];
18092}
18093var j=getJ(value,xPct),va,vb,pa,pb;
18094va=xVal[j-1];
18095vb=xVal[j];
18096pa=xPct[j-1];
18097pb=xPct[j];
18098return isPercentage([va,vb],(value-pa)*subRangeRatio(pa,pb));
18099}
18100function getStep(xPct,xSteps,snap,value){
18101if(value===100){
18102return value;
18103}
18104var j=getJ(value,xPct),a,b;
18105if(snap){
18106a=xPct[j-1];
18107b=xPct[j];
18108if((value-a)>((b-a)/2)){
18109return b;
18110}
18111return a;
18112}
18113if(!xSteps[j-1]){
18114return value;
18115}
18116return xPct[j-1]+closest(
18117value-xPct[j-1],
18118xSteps[j-1]
18119);
18120}
18121function handleEntryPoint(index,value,that){
18122var percentage;
18123if(typeof value==="number"){
18124value=[value];
18125}
18126if(Object.prototype.toString.call(value)!=='[object Array]'){
18127throw new Error("noUiSlider: 'range' contains invalid value.");
18128}
18129if(index==='min'){
18130percentage=0;
18131}else if(index==='max'){
18132percentage=100;
18133}else{
18134percentage=parseFloat(index);
18135}
18136if(!isNumeric(percentage)||!isNumeric(value[0])){
18137throw new Error("noUiSlider: 'range' value isn't numeric.");
18138}
18139that.xPct.push(percentage);
18140that.xVal.push(value[0]);
18141if(!percentage){
18142if(!isNaN(value[1])){
18143that.xSteps[0]=value[1];
18144}
18145}else{
18146that.xSteps.push(isNaN(value[1])?false:value[1]);
18147}
18148that.xHighestCompleteStep.push(0);
18149}
18150function handleStepPoint(i,n,that){
18151if(!n){
18152return true;
18153}
18154that.xSteps[i]=fromPercentage([
18155that.xVal[i]
18156,that.xVal[i+1]
18157],n)/subRangeRatio(
18158that.xPct[i],
18159that.xPct[i+1]);
18160var totalSteps=(that.xVal[i+1]-that.xVal[i])/that.xNumSteps[i];
18161var highestStep=Math.ceil(Number(totalSteps.toFixed(3))-1);
18162var step=that.xVal[i]+(that.xNumSteps[i]*highestStep);
18163that.xHighestCompleteStep[i]=step;
18164}
18165function Spectrum(entry,snap,direction,singleStep){
18166this.xPct=[];
18167this.xVal=[];
18168this.xSteps=[singleStep||false];
18169this.xNumSteps=[false];
18170this.xHighestCompleteStep=[];
18171this.snap=snap;
18172this.direction=direction;
18173var index,ordered=[];
18174for(index in entry){
18175if(entry.hasOwnProperty(index)){
18176ordered.push([entry[index],index]);
18177}
18178}
18179if(ordered.length&&typeof ordered[0][0]==="object"){
18180ordered.sort(function(a,b){return a[0][0]-b[0][0];});
18181}else{
18182ordered.sort(function(a,b){return a[0]-b[0];});
18183}
18184for(index=0;index<ordered.length;index++){
18185handleEntryPoint(ordered[index][1],ordered[index][0],this);
18186}
18187this.xNumSteps=this.xSteps.slice(0);
18188for(index=0;index<this.xNumSteps.length;index++){
18189handleStepPoint(index,this.xNumSteps[index],this);
18190}
18191}
18192Spectrum.prototype.getMargin=function(value){
18193var step=this.xNumSteps[0];
18194if(step&&(value%step)){
18195throw new Error("noUiSlider: 'limit' and 'margin' must be divisible by step.");
18196}
18197return this.xPct.length===2?fromPercentage(this.xVal,value):false;
18198};
18199Spectrum.prototype.toStepping=function(value){
18200value=toStepping(this.xVal,this.xPct,value);
18201return value;
18202};
18203Spectrum.prototype.fromStepping=function(value){
18204return fromStepping(this.xVal,this.xPct,value);
18205};
18206Spectrum.prototype.getStep=function(value){
18207value=getStep(this.xPct,this.xSteps,this.snap,value);
18208return value;
18209};
18210Spectrum.prototype.getNearbySteps=function(value){
18211var j=getJ(value,this.xPct);
18212return{
18213stepBefore:{startValue:this.xVal[j-2],step:this.xNumSteps[j-2],highestStep:this.xHighestCompleteStep[j-2]},
18214thisStep:{startValue:this.xVal[j-1],step:this.xNumSteps[j-1],highestStep:this.xHighestCompleteStep[j-1]},
18215stepAfter:{startValue:this.xVal[j-0],step:this.xNumSteps[j-0],highestStep:this.xHighestCompleteStep[j-0]}
18216};
18217};
18218Spectrum.prototype.countStepDecimals=function(){
18219var stepDecimals=this.xNumSteps.map(countDecimals);
18220return Math.max.apply(null,stepDecimals);
18221};
18222Spectrum.prototype.convert=function(value){
18223return this.getStep(this.toStepping(value));
18224};
18225var defaultFormatter={'to':function(value){
18226return value!==undefined&&value.toFixed(2);
18227},'from':Number};
18228function testStep(parsed,entry){
18229if(!isNumeric(entry)){
18230throw new Error("noUiSlider: 'step' is not numeric.");
18231}
18232parsed.singleStep=entry;
18233}
18234function testRange(parsed,entry){
18235if(typeof entry!=='object'||Array.isArray(entry)){
18236throw new Error("noUiSlider: 'range' is not an object.");
18237}
18238if(entry.min===undefined||entry.max===undefined){
18239throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
18240}
18241if(entry.min===entry.max){
18242throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.");
18243}
18244parsed.spectrum=new Spectrum(entry,parsed.snap,parsed.dir,parsed.singleStep);
18245}
18246function testStart(parsed,entry){
18247entry=asArray(entry);
18248if(!Array.isArray(entry)||!entry.length){
18249throw new Error("noUiSlider: 'start' option is incorrect.");
18250}
18251parsed.handles=entry.length;
18252parsed.start=entry;
18253}
18254function testSnap(parsed,entry){
18255parsed.snap=entry;
18256if(typeof entry!=='boolean'){
18257throw new Error("noUiSlider: 'snap' option must be a boolean.");
18258}
18259}
18260function testAnimate(parsed,entry){
18261parsed.animate=entry;
18262if(typeof entry!=='boolean'){
18263throw new Error("noUiSlider: 'animate' option must be a boolean.");
18264}
18265}
18266function testAnimationDuration(parsed,entry){
18267parsed.animationDuration=entry;
18268if(typeof entry!=='number'){
18269throw new Error("noUiSlider: 'animationDuration' option must be a number.");
18270}
18271}
18272function testConnect(parsed,entry){
18273var connect=[false];
18274var i;
18275if(entry===true||entry===false){
18276for(i=1;i<parsed.handles;i++){
18277connect.push(entry);
18278}
18279connect.push(false);
18280}
18281else if(!Array.isArray(entry)||!entry.length||entry.length!==parsed.handles+1){
18282throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
18283}
18284else{
18285connect=entry;
18286}
18287parsed.connect=connect;
18288}
18289function testOrientation(parsed,entry){
18290switch(entry){
18291case'horizontal':
18292parsed.ort=0;
18293break;
18294case'vertical':
18295parsed.ort=1;
18296break;
18297default:
18298throw new Error("noUiSlider: 'orientation' option is invalid.");
18299}
18300}
18301function testMargin(parsed,entry){
18302if(!isNumeric(entry)){
18303throw new Error("noUiSlider: 'margin' option must be numeric.");
18304}
18305if(entry===0){
18306return;
18307}
18308parsed.margin=parsed.spectrum.getMargin(entry);
18309if(!parsed.margin){
18310throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.");
18311}
18312}
18313function testLimit(parsed,entry){
18314if(!isNumeric(entry)){
18315throw new Error("noUiSlider: 'limit' option must be numeric.");
18316}
18317parsed.limit=parsed.spectrum.getMargin(entry);
18318if(!parsed.limit||parsed.handles<2){
18319throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
18320}
18321}
18322function testDirection(parsed,entry){
18323switch(entry){
18324case'ltr':
18325parsed.dir=0;
18326break;
18327case'rtl':
18328parsed.dir=1;
18329break;
18330default:
18331throw new Error("noUiSlider: 'direction' option was not recognized.");
18332}
18333}
18334function testBehaviour(parsed,entry){
18335if(typeof entry!=='string'){
18336throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
18337}
18338var tap=entry.indexOf('tap')>=0;
18339var drag=entry.indexOf('drag')>=0;
18340var fixed=entry.indexOf('fixed')>=0;
18341var snap=entry.indexOf('snap')>=0;
18342var hover=entry.indexOf('hover')>=0;
18343if(fixed){
18344if(parsed.handles!==2){
18345throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
18346}
18347testMargin(parsed,parsed.start[1]-parsed.start[0]);
18348}
18349parsed.events={
18350tap:tap||snap,
18351drag:drag,
18352fixed:fixed,
18353snap:snap,
18354hover:hover
18355};
18356}
18357function testTooltips(parsed,entry){
18358if(entry===false){
18359return;
18360}
18361else if(entry===true){
18362parsed.tooltips=[];
18363for(var i=0;i<parsed.handles;i++){
18364parsed.tooltips.push(true);
18365}
18366}
18367else{
18368parsed.tooltips=asArray(entry);
18369if(parsed.tooltips.length!==parsed.handles){
18370throw new Error("noUiSlider: must pass a formatter for all handles.");
18371}
18372parsed.tooltips.forEach(function(formatter){
18373if(typeof formatter!=='boolean'&&(typeof formatter!=='object'||typeof formatter.to!=='function')){
18374throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
18375}
18376});
18377}
18378}
18379function testFormat(parsed,entry){
18380parsed.format=entry;
18381if(typeof entry.to==='function'&&typeof entry.from==='function'){
18382return true;
18383}
18384throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
18385}
18386function testCssPrefix(parsed,entry){
18387if(entry!==undefined&&typeof entry!=='string'&&entry!==false){
18388throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
18389}
18390parsed.cssPrefix=entry;
18391}
18392function testCssClasses(parsed,entry){
18393if(entry!==undefined&&typeof entry!=='object'){
18394throw new Error("noUiSlider: 'cssClasses' must be an object.");
18395}
18396if(typeof parsed.cssPrefix==='string'){
18397parsed.cssClasses={};
18398for(var key in entry){
18399if(!entry.hasOwnProperty(key)){continue;}
18400parsed.cssClasses[key]=parsed.cssPrefix+entry[key];
18401}
18402}else{
18403parsed.cssClasses=entry;
18404}
18405}
18406function testUseRaf(parsed,entry){
18407if(entry===true||entry===false){
18408parsed.useRequestAnimationFrame=entry;
18409}else{
18410throw new Error("noUiSlider: 'useRequestAnimationFrame' option should be true (default) or false.");
18411}
18412}
18413function testOptions(options){
18414var parsed={
18415margin:0,
18416limit:0,
18417animate:true,
18418animationDuration:300,
18419format:defaultFormatter
18420},tests;
18421tests={
18422'step':{r:false,t:testStep},
18423'start':{r:true,t:testStart},
18424'connect':{r:true,t:testConnect},
18425'direction':{r:true,t:testDirection},
18426'snap':{r:false,t:testSnap},
18427'animate':{r:false,t:testAnimate},
18428'animationDuration':{r:false,t:testAnimationDuration},
18429'range':{r:true,t:testRange},
18430'orientation':{r:false,t:testOrientation},
18431'margin':{r:false,t:testMargin},
18432'limit':{r:false,t:testLimit},
18433'behaviour':{r:true,t:testBehaviour},
18434'format':{r:false,t:testFormat},
18435'tooltips':{r:false,t:testTooltips},
18436'cssPrefix':{r:false,t:testCssPrefix},
18437'cssClasses':{r:false,t:testCssClasses},
18438'useRequestAnimationFrame':{r:false,t:testUseRaf}
18439};
18440var defaults={
18441'connect':false,
18442'direction':'ltr',
18443'behaviour':'tap',
18444'orientation':'horizontal',
18445'cssPrefix':'noUi-',
18446'cssClasses':{
18447target:'target',
18448base:'base',
18449origin:'origin',
18450handle:'handle',
18451horizontal:'horizontal',
18452vertical:'vertical',
18453background:'background',
18454connect:'connect',
18455ltr:'ltr',
18456rtl:'rtl',
18457draggable:'draggable',
18458drag:'state-drag',
18459tap:'state-tap',
18460active:'active',
18461tooltip:'tooltip',
18462pips:'pips',
18463pipsHorizontal:'pips-horizontal',
18464pipsVertical:'pips-vertical',
18465marker:'marker',
18466markerHorizontal:'marker-horizontal',
18467markerVertical:'marker-vertical',
18468markerNormal:'marker-normal',
18469markerLarge:'marker-large',
18470markerSub:'marker-sub',
18471value:'value',
18472valueHorizontal:'value-horizontal',
18473valueVertical:'value-vertical',
18474valueNormal:'value-normal',
18475valueLarge:'value-large',
18476valueSub:'value-sub'
18477},
18478'useRequestAnimationFrame':true
18479};
18480Object.keys(tests).forEach(function(name){
18481if(options[name]===undefined&&defaults[name]===undefined){
18482if(tests[name].r){
18483throw new Error("noUiSlider: '"+name+"' is required.");
18484}
18485return true;
18486}
18487tests[name].t(parsed,options[name]===undefined?defaults[name]:options[name]);
18488});
18489parsed.pips=options.pips;
18490var styles=[['left','top'],['right','bottom']];
18491parsed.style=styles[parsed.dir][parsed.ort];
18492parsed.styleOposite=styles[parsed.dir?0:1][parsed.ort];
18493return parsed;
18494}
18495function closure(target,options,originalOptions){
18496var actions=getActions();
18497var scope_Target=target;
18498var scope_Locations=[];
18499var scope_Base;
18500var scope_Handles;
18501var scope_HandleNumbers=[];
18502var scope_Connects;
18503var scope_Spectrum=options.spectrum;
18504var scope_Values=[];
18505var scope_Events={};
18506var scope_Self;
18507function addOrigin(base,handleNumber){
18508var origin=addNodeTo(base,options.cssClasses.origin);
18509var handle=addNodeTo(origin,options.cssClasses.handle);
18510handle.setAttribute('data-handle',handleNumber);
18511return origin;
18512}
18513function addConnect(base,add){
18514if(!add){
18515return false;
18516}
18517return addNodeTo(base,options.cssClasses.connect);
18518}
18519function addElements(connectOptions,base){
18520scope_Handles=[];
18521scope_Connects=[];
18522scope_Connects.push(addConnect(base,connectOptions[0]));
18523for(var i=0;i<options.handles;i++){
18524scope_Handles.push(addOrigin(base,i));
18525scope_HandleNumbers[i]=i;
18526scope_Connects.push(addConnect(base,connectOptions[i+1]));
18527}
18528}
18529function addSlider(target){
18530addClass(target,options.cssClasses.target);
18531if(options.dir===0){
18532addClass(target,options.cssClasses.ltr);
18533}else{
18534addClass(target,options.cssClasses.rtl);
18535}
18536if(options.ort===0){
18537addClass(target,options.cssClasses.horizontal);
18538}else{
18539addClass(target,options.cssClasses.vertical);
18540}
18541scope_Base=addNodeTo(target,options.cssClasses.base);
18542}
18543function addTooltip(handle,handleNumber){
18544if(!options.tooltips[handleNumber]){
18545return false;
18546}
18547return addNodeTo(handle.firstChild,options.cssClasses.tooltip);
18548}
18549function tooltips(){
18550var tips=scope_Handles.map(addTooltip);
18551bindEvent('update',function(values,handleNumber,unencoded){
18552if(!tips[handleNumber]){
18553return;
18554}
18555var formattedValue=values[handleNumber];
18556if(options.tooltips[handleNumber]!==true){
18557formattedValue=options.tooltips[handleNumber].to(unencoded[handleNumber]);
18558}
18559tips[handleNumber].innerHTML=formattedValue;
18560});
18561}
18562function getGroup(mode,values,stepped){
18563if(mode==='range'||mode==='steps'){
18564return scope_Spectrum.xVal;
18565}
18566if(mode==='count'){
18567var spread=(100/(values-1)),v,i=0;
18568values=[];
18569while((v=i++*spread)<=100){
18570values.push(v);
18571}
18572mode='positions';
18573}
18574if(mode==='positions'){
18575return values.map(function(value){
18576return scope_Spectrum.fromStepping(stepped?scope_Spectrum.getStep(value):value);
18577});
18578}
18579if(mode==='values'){
18580if(stepped){
18581return values.map(function(value){
18582return scope_Spectrum.fromStepping(scope_Spectrum.getStep(scope_Spectrum.toStepping(value)));
18583});
18584}
18585return values;
18586}
18587}
18588function generateSpread(density,mode,group){
18589function safeIncrement(value,increment){
18590return(value+increment).toFixed(7)/1;
18591}
18592var indexes={},
18593firstInRange=scope_Spectrum.xVal[0],
18594lastInRange=scope_Spectrum.xVal[scope_Spectrum.xVal.length-1],
18595ignoreFirst=false,
18596ignoreLast=false,
18597prevPct=0;
18598group=unique(group.slice().sort(function(a,b){return a-b;}));
18599if(group[0]!==firstInRange){
18600group.unshift(firstInRange);
18601ignoreFirst=true;
18602}
18603if(group[group.length-1]!==lastInRange){
18604group.push(lastInRange);
18605ignoreLast=true;
18606}
18607group.forEach(function(current,index){
18608var step,i,q,
18609low=current,
18610high=group[index+1],
18611newPct,pctDifference,pctPos,type,
18612steps,realSteps,stepsize;
18613if(mode==='steps'){
18614step=scope_Spectrum.xNumSteps[index];
18615}
18616if(!step){
18617step=high-low;
18618}
18619if(low===false||high===undefined){
18620return;
18621}
18622step=Math.max(step,0.0000001);
18623for(i=low;i<=high;i=safeIncrement(i,step)){
18624newPct=scope_Spectrum.toStepping(i);
18625pctDifference=newPct-prevPct;
18626steps=pctDifference/density;
18627realSteps=Math.round(steps);
18628stepsize=pctDifference/realSteps;
18629for(q=1;q<=realSteps;q+=1){
18630pctPos=prevPct+(q*stepsize);
18631indexes[pctPos.toFixed(5)]=['x',0];
18632}
18633type=(group.indexOf(i)>-1)?1:(mode==='steps'?2:0);
18634if(!index&&ignoreFirst){
18635type=0;
18636}
18637if(!(i===high&&ignoreLast)){
18638indexes[newPct.toFixed(5)]=[i,type];
18639}
18640prevPct=newPct;
18641}
18642});
18643return indexes;
18644}
18645function addMarking(spread,filterFunc,formatter){
18646var element=document.createElement('div'),
18647out='',
18648valueSizeClasses=[
18649options.cssClasses.valueNormal,
18650options.cssClasses.valueLarge,
18651options.cssClasses.valueSub
18652],
18653markerSizeClasses=[
18654options.cssClasses.markerNormal,
18655options.cssClasses.markerLarge,
18656options.cssClasses.markerSub
18657],
18658valueOrientationClasses=[
18659options.cssClasses.valueHorizontal,
18660options.cssClasses.valueVertical
18661],
18662markerOrientationClasses=[
18663options.cssClasses.markerHorizontal,
18664options.cssClasses.markerVertical
18665];
18666addClass(element,options.cssClasses.pips);
18667addClass(element,options.ort===0?options.cssClasses.pipsHorizontal:options.cssClasses.pipsVertical);
18668function getClasses(type,source){
18669var a=source===options.cssClasses.value,
18670orientationClasses=a?valueOrientationClasses:markerOrientationClasses,
18671sizeClasses=a?valueSizeClasses:markerSizeClasses;
18672return source+' '+orientationClasses[options.ort]+' '+sizeClasses[type];
18673}
18674function getTags(offset,source,values){
18675return'class="'+getClasses(values[1],source)+'" style="'+options.style+': '+offset+'%"';
18676}
18677function addSpread(offset,values){
18678values[1]=(values[1]&&filterFunc)?filterFunc(values[0],values[1]):values[1];
18679out+='<div '+getTags(offset,options.cssClasses.marker,values)+'></div>';
18680if(values[1]){
18681out+='<div '+getTags(offset,options.cssClasses.value,values)+'>'+formatter.to(values[0])+'</div>';
18682}
18683}
18684Object.keys(spread).forEach(function(a){
18685addSpread(a,spread[a]);
18686});
18687element.innerHTML=out;
18688return element;
18689}
18690function pips(grid){
18691var mode=grid.mode,
18692density=grid.density||1,
18693filter=grid.filter||false,
18694values=grid.values||false,
18695stepped=grid.stepped||false,
18696group=getGroup(mode,values,stepped),
18697spread=generateSpread(density,mode,group),
18698format=grid.format||{
18699to:Math.round
18700};
18701return scope_Target.appendChild(addMarking(
18702spread,
18703filter,
18704format
18705));
18706}
18707function baseSize(){
18708var rect=scope_Base.getBoundingClientRect(),alt='offset'+['Width','Height'][options.ort];
18709return options.ort===0?(rect.width||scope_Base[alt]):(rect.height||scope_Base[alt]);
18710}
18711function attachEvent(events,element,callback,data){
18712var method=function(e){
18713if(scope_Target.hasAttribute('disabled')){
18714return false;
18715}
18716if(hasClass(scope_Target,options.cssClasses.tap)){
18717return false;
18718}
18719e=fixEvent(e,data.pageOffset);
18720if(events===actions.start&&e.buttons!==undefined&&e.buttons>1){
18721return false;
18722}
18723if(data.hover&&e.buttons){
18724return false;
18725}
18726e.calcPoint=e.points[options.ort];
18727callback(e,data);
18728};
18729var methods=[];
18730events.split(' ').forEach(function(eventName){
18731element.addEventListener(eventName,method,false);
18732methods.push([eventName,method]);
18733});
18734return methods;
18735}
18736function fixEvent(e,pageOffset){
18737e.preventDefault();
18738var touch=e.type.indexOf('touch')===0,
18739mouse=e.type.indexOf('mouse')===0,
18740pointer=e.type.indexOf('pointer')===0,
18741x,y,event=e;
18742if(e.type.indexOf('MSPointer')===0){
18743pointer=true;
18744}
18745if(touch){
18746if(event.touches.length>1){
18747return false;
18748}
18749x=e.changedTouches[0].pageX;
18750y=e.changedTouches[0].pageY;
18751}
18752pageOffset=pageOffset||getPageOffset();
18753if(mouse||pointer){
18754x=e.clientX+pageOffset.x;
18755y=e.clientY+pageOffset.y;
18756}
18757event.pageOffset=pageOffset;
18758event.points=[x,y];
18759event.cursor=mouse||pointer;
18760return event;
18761}
18762function calcPointToPercentage(calcPoint){
18763var location=calcPoint-offset(scope_Base,options.ort);
18764var proposal=(location*100)/baseSize();
18765return options.dir?100-proposal:proposal;
18766}
18767function getClosestHandle(proposal){
18768var closest=100;
18769var handleNumber=false;
18770scope_Handles.forEach(function(handle,index){
18771if(handle.hasAttribute('disabled')){
18772return;
18773}
18774var pos=Math.abs(scope_Locations[index]-proposal);
18775if(pos<closest){
18776handleNumber=index;
18777closest=pos;
18778}
18779});
18780return handleNumber;
18781}
18782function moveHandles(upward,proposal,locations,handleNumbers){
18783var proposals=locations.slice();
18784var b=[!upward,upward];
18785var f=[upward,!upward];
18786handleNumbers=handleNumbers.slice();
18787if(upward){
18788handleNumbers.reverse();
18789}
18790if(handleNumbers.length>1){
18791handleNumbers.forEach(function(handleNumber,o){
18792var to=checkHandlePosition(proposals,handleNumber,proposals[handleNumber]+proposal,b[o],f[o]);
18793if(to===false){
18794proposal=0;
18795}else{
18796proposal=to-proposals[handleNumber];
18797proposals[handleNumber]=to;
18798}
18799}
18799);
18800}
18801else{
18802b=f=[true];
18803}
18804var state=false;
18805handleNumbers.forEach(function(handleNumber,o){
18806state=setHandle(handleNumber,locations[handleNumber]+proposal,b[o],f[o])||state;
18807});
18808if(state){
18809handleNumbers.forEach(function(handleNumber){
18810fireEvent('update',handleNumber);
18811fireEvent('slide',handleNumber);
18812});
18813}
18814}
18815function fireEvent(eventName,handleNumber,tap){
18816Object.keys(scope_Events).forEach(function(targetEvent){
18817var eventType=targetEvent.split('.')[0];
18818if(eventName===eventType){
18819scope_Events[targetEvent].forEach(function(callback){
18820callback.call(
18821scope_Self,
18822scope_Values.map(options.format.to),
18823handleNumber,
18824scope_Values.slice(),
18825tap||false,
18826scope_Locations.slice()
18827);
18828});
18829}
18830});
18831}
18832function documentLeave(event,data){
18833if(event.type==="mouseout"&&event.target.nodeName==="HTML"&&event.relatedTarget===null){
18834eventEnd(event,data);
18835}
18836}
18837function eventMove(event,data){
18838if(navigator.appVersion.indexOf("MSIE 9")===-1&&event.buttons===0&&data.buttonsProperty!==0){
18839return eventEnd(event,data);
18840}
18841var movement=(options.dir?-1:1)*(event.calcPoint-data.startCalcPoint);
18842var proposal=(movement*100)/data.baseSize;
18843moveHandles(movement>0,proposal,data.locations,data.handleNumbers);
18844}
18845function eventEnd(event,data){
18846var active=scope_Base.querySelector('.'+options.cssClasses.active);
18847if(active!==null){
18848removeClass(active,options.cssClasses.active);
18849}
18850if(event.cursor){
18851document.body.style.cursor='';
18852document.body.removeEventListener('selectstart',document.body.noUiListener);
18853}
18854document.documentElement.noUiListeners.forEach(function(c){
18855document.documentElement.removeEventListener(c[0],c[1]);
18856});
18857removeClass(scope_Target,options.cssClasses.drag);
18858setZindex();
18859data.handleNumbers.forEach(function(handleNumber){
18860fireEvent('set',handleNumber);
18861fireEvent('change',handleNumber);
18862fireEvent('end',handleNumber);
18863});
18864}
18865function eventStart(event,data){
18866if(data.handleNumbers.length===1){
18867var handle=scope_Handles[data.handleNumbers[0]];
18868if(handle.hasAttribute('disabled')){
18869return false;
18870}
18871addClass(handle.children[0],options.cssClasses.active);
18872}
18873event.preventDefault();
18874event.stopPropagation();
18875var moveEvent=attachEvent(actions.move,document.documentElement,eventMove,{
18876startCalcPoint:event.calcPoint,
18877baseSize:baseSize(),
18878pageOffset:event.pageOffset,
18879handleNumbers:data.handleNumbers,
18880buttonsProperty:event.buttons,
18881locations:scope_Locations.slice()
18882});
18883var endEvent=attachEvent(actions.end,document.documentElement,eventEnd,{
18884handleNumbers:data.handleNumbers
18885});
18886var outEvent=attachEvent("mouseout",document.documentElement,documentLeave,{
18887handleNumbers:data.handleNumbers
18888});
18889document.documentElement.noUiListeners=moveEvent.concat(endEvent,outEvent);
18890if(event.cursor){
18891document.body.style.cursor=getComputedStyle(event.target).cursor;
18892if(scope_Handles.length>1){
18893addClass(scope_Target,options.cssClasses.drag);
18894}
18895var f=function(){
18896return false;
18897};
18898document.body.noUiListener=f;
18899document.body.addEventListener('selectstart',f,false);
18900}
18901data.handleNumbers.forEach(function(handleNumber){
18902fireEvent('start',handleNumber);
18903});
18904}
18905function eventTap(event){
18906event.stopPropagation();
18907var proposal=calcPointToPercentage(event.calcPoint);
18908var handleNumber=getClosestHandle(proposal);
18909if(handleNumber===false){
18910return false;
18911}
18912if(!options.events.snap){
18913addClassFor(scope_Target,options.cssClasses.tap,options.animationDuration);
18914}
18915setHandle(handleNumber,proposal,true,true);
18916setZindex();
18917fireEvent('slide',handleNumber,true);
18918fireEvent('set',handleNumber,true);
18919fireEvent('change',handleNumber,true);
18920fireEvent('update',handleNumber,true);
18921if(options.events.snap){
18922eventStart(event,{handleNumbers:[handleNumber]});
18923}
18924}
18925function eventHover(event){
18926var proposal=calcPointToPercentage(event.calcPoint);
18927var to=scope_Spectrum.getStep(proposal);
18928var value=scope_Spectrum.fromStepping(to);
18929Object.keys(scope_Events).forEach(function(targetEvent){
18930if('hover'===targetEvent.split('.')[0]){
18931scope_Events[targetEvent].forEach(function(callback){
18932callback.call(scope_Self,value);
18933});
18934}
18935});
18936}
18937function bindSliderEvents(behaviour){
18938if(!behaviour.fixed){
18939scope_Handles.forEach(function(handle,index){
18940attachEvent(actions.start,handle.children[0],eventStart,{
18941handleNumbers:[index]
18942});
18943});
18944}
18945if(behaviour.tap){
18946attachEvent(actions.start,scope_Base,eventTap,{});
18947}
18948if(behaviour.hover){
18949attachEvent(actions.move,scope_Base,eventHover,{hover:true});
18950}
18951if(behaviour.drag){
18952scope_Connects.forEach(function(connect,index){
18953if(connect===false||index===0||index===scope_Connects.length-1){
18954return;
18955}
18956var handleBefore=scope_Handles[index-1];
18957var handleAfter=scope_Handles[index];
18958var eventHolders=[connect];
18959addClass(connect,options.cssClasses.draggable);
18960if(behaviour.fixed){
18961eventHolders.push(handleBefore.children[0]);
18962eventHolders.push(handleAfter.children[0]);
18963}
18964eventHolders.forEach(function(eventHolder){
18965attachEvent(actions.start,eventHolder,eventStart,{
18966handles:[handleBefore,handleAfter],
18967handleNumbers:[index-1,index]
18968});
18969});
18970});
18971}
18972}
18973function checkHandlePosition(reference,handleNumber,to,lookBackward,lookForward){
18974if(scope_Handles.length>1){
18975if(lookBackward&&handleNumber>0){
18976to=Math.max(to,reference[handleNumber-1]+options.margin);
18977}
18978if(lookForward&&handleNumber<scope_Handles.length-1){
18979to=Math.min(to,reference[handleNumber+1]-options.margin);
18980}
18981}
18982if(scope_Handles.length>1&&options.limit){
18983if(lookBackward&&handleNumber>0){
18984to=Math.min(to,reference[handleNumber-1]+options.limit);
18985}
18986if(lookForward&&handleNumber<scope_Handles.length-1){
18987to=Math.max(to,reference[handleNumber+1]-options.limit);
18988}
18989}
18990to=scope_Spectrum.getStep(to);
18991to=limit(to);
18992if(to===reference[handleNumber]){
18993return false;
18994}
18995return to;
18996}
18997function toPct(pct){
18998return pct+'%';
18999}
19000function updateHandlePosition(handleNumber,to){
19001scope_Locations[handleNumber]=to;
19002scope_Values[handleNumber]=scope_Spectrum.fromStepping(to);
19003var stateUpdate=function(){
19004scope_Handles[handleNumber].style[options.style]=toPct(to);
19005updateConnect(handleNumber);
19006updateConnect(handleNumber+1);
19007};
19008if(window.requestAnimationFrame&&options.useRequestAnimationFrame){
19009window.requestAnimationFrame(stateUpdate);
19010}else{
19011stateUpdate();
19012}
19013}
19014function setZindex(){
19015scope_HandleNumbers.forEach(function(handleNumber){
19016var dir=(scope_Locations[handleNumber]>50?-1:1);
19017var zIndex=3+(scope_Handles.length+(dir*handleNumber));
19018scope_Handles[handleNumber].childNodes[0].style.zIndex=zIndex;
19019});
19020}
19021function setHandle(handleNumber,to,lookBackward,lookForward){
19022to=checkHandlePosition(scope_Locations,handleNumber,to,lookBackward,lookForward);
19023if(to===false){
19024return false;
19025}
19026updateHandlePosition(handleNumber,to);
19027return true;
19028}
19029function updateConnect(index){
19030if(!scope_Connects[index]){
19031return;
19032}
19033var l=0;
19034var h=100;
19035if(index!==0){
19036l=scope_Locations[index-1];
19037}
19038if(index!==scope_Connects.length-1){
19039h=scope_Locations[index];
19040}
19041scope_Connects[index].style[options.style]=toPct(l);
19042scope_Connects[index].style[options.styleOposite]=toPct(100-h);
19043}
19044function setValue(to,handleNumber){
19045if(to===null||to===false){
19046return;
19047}
19048if(typeof to==='number'){
19049to=String(to);
19050}
19051to=options.format.from(to);
19052if(to!==false&&!isNaN(to)){
19053setHandle(handleNumber,scope_Spectrum.toStepping(to),false,false);
19054}
19055}
19056function valueSet(input,fireSetEvent){
19057var values=asArray(input);
19058var isInit=scope_Locations[0]===undefined;
19059fireSetEvent=(fireSetEvent===undefined?true:!!fireSetEvent);
19060values.forEach(setValue);
19061if(options.animate&&!isInit){
19062addClassFor(scope_Target,options.cssClasses.tap,options.animationDuration);
19063}
19064scope_HandleNumbers.forEach(function(handleNumber){
19065setHandle(handleNumber,scope_Locations[handleNumber],true,false);
19066});
19067setZindex();
19068scope_HandleNumbers.forEach(function(handleNumber){
19069fireEvent('update',handleNumber);
19070if(values[handleNumber]!==null&&fireSetEvent){
19071fireEvent('set',handleNumber);
19072}
19073});
19074}
19075function valueReset(fireSetEvent){
19076valueSet(options.start,fireSetEvent);
19077}
19078function valueGet(){
19079var values=scope_Values.map(options.format.to);
19080if(values.length===1){
19081return values[0];
19082}
19083return values;
19084}
19085function destroy(){
19086for(var key in options.cssClasses){
19087if(!options.cssClasses.hasOwnProperty(key)){continue;}
19088removeClass(scope_Target,options.cssClasses[key]);
19089}
19090while(scope_Target.firstChild){
19091scope_Target.removeChild(scope_Target.firstChild);
19092}
19093delete scope_Target.noUiSlider;
19094}
19095function getCurrentStep(){
19096return scope_Locations.map(function(location,index){
19097var nearbySteps=scope_Spectrum.getNearbySteps(location);
19098var value=scope_Values[index];
19099var increment=nearbySteps.thisStep.step;
19100var decrement=null;
19101if(increment!==false){
19102if(value+increment>nearbySteps.stepAfter.startValue){
19103increment=nearbySteps.stepAfter.startValue-value;
19104}
19105}
19106if(value>nearbySteps.thisStep.startValue){
19107decrement=nearbySteps.thisStep.step;
19108}
19109else if(nearbySteps.stepBefore.step===false){
19110decrement=false;
19111}
19112else{
19113decrement=value-nearbySteps.stepBefore.highestStep;
19114}
19115if(location===100){
19116increment=null;
19117}
19118else if(location===0){
19119decrement=null;
19120}
19121var stepDecimals=scope_Spectrum.countStepDecimals();
19122if(increment!==null&&increment!==false){
19123increment=Number(increment.toFixed(stepDecimals));
19124}
19125if(decrement!==null&&decrement!==false){
19126decrement=Number(decrement.toFixed(stepDecimals));
19127}
19128return[decrement,increment];
19129});
19130}
19131function bindEvent(namespacedEvent,callback){
19132scope_Events[namespacedEvent]=scope_Events[namespacedEvent]||[];
19133scope_Events[namespacedEvent].push(callback);
19134if(namespacedEvent.split('.')[0]==='update'){
19135scope_Handles.forEach(function(a,index){
19136fireEvent('update',index);
19137});
19138}
19139}
19140function removeEvent(namespacedEvent){
19141var event=namespacedEvent&&namespacedEvent.split('.')[0],
19142namespace=event&&namespacedEvent.substring(event.length);
19143Object.keys(scope_Events).forEach(function(bind){
19144var tEvent=bind.split('.')[0],
19145tNamespace=bind.substring(tEvent.length);
19146if((!event||event===tEvent)&&(!namespace||namespace===tNamespace)){
19147delete scope_Events[bind];
19148}
19149});
19150}
19151function updateOptions(optionsToUpdate,fireSetEvent){
19152var v=valueGet();
19153var updateAble=['margin','limit','range','animate','snap','step','format'];
19154updateAble.forEach(function(name){
19155if(optionsToUpdate[name]!==undefined){
19156originalOptions[name]=optionsToUpdate[name];
19157}
19158});
19159var newOptions=testOptions(originalOptions);
19160updateAble.forEach(function(name){
19161if(optionsToUpdate[name]!==undefined){
19162options[name]=newOptions[name];
19163}
19164});
19165newOptions.spectrum.direction=scope_Spectrum.direction;
19166scope_Spectrum=newOptions.spectrum;
19167options.margin=newOptions.margin;
19168options.limit=newOptions.limit;
19169scope_Locations=[];
19170valueSet(optionsToUpdate.start||v,fireSetEvent);
19171}
19172if(scope_Target.noUiSlider){
19173throw new Error('Slider was already initialized.');
19174}
19175addSlider(scope_Target);
19176addElements(options.connect,scope_Base);
19177scope_Self={
19178destroy:destroy,
19179steps:getCurrentStep,
19180on:bindEvent,
19181off:removeEvent,
19182get:valueGet,
19183set:valueSet,
19184reset:valueReset,
19185__moveHandles:function(a,b,c){moveHandles(a,b,scope_Locations,c);},
19186options:originalOptions,
19187updateOptions:updateOptions,
19188target:scope_Target,
19189pips:pips
19190};
19191bindSliderEvents(options.events);
19192valueSet(options.start);
19193if(options.pips){
19194pips(options.pips);
19195}
19196if(options.tooltips){
19197tooltips();
19198}
19199return scope_Self;
19200}
19201function initialize(target,originalOptions){
19202if(!target.nodeName){
19203throw new Error('noUiSlider.create requires a single element.');
19204}
19205var options=testOptions(originalOptions,target);
19206var api=closure(target,options,originalOptions);
19207target.noUiSlider=api;
19208return api;
19209}
19210return{
19211create:initialize
19212};
19213}));
19214!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Vuex=e()}(this,function(){"use strict";var t=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function e(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var n=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},o={namespaced:{configurable:!0}};o.namespaced.get=function(){return!!this._rawModule.namespaced},n.prototype.addChild=function(t,e){this._children[t]=e},n.prototype.removeChild=function(t){delete this._children[t]},n.prototype.getChild=function(t){return this._children[t]},n.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},n.prototype.forEachChild=function(t){e(this._children,t)},n.prototype.forEachGetter=function(t){this._rawModule.getters&&e(this._rawModule.getters,t)},n.prototype.forEachAction=function(t){this._rawModule.actions&&e(this._rawModule.actions,t)},n.prototype.forEachMutation=function(t){this._rawModule.mutations&&e(this._rawModule.mutations,t)},Object.defineProperties(n.prototype,o);var i,r=function(t){this.register([],t,!1)};r.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},r.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},r.prototype.update=function(t){!function t(e,n,o){n.update(o);if(o.modules)for(var i in o.modules){if(!n.getChild(i))return;t(e.concat(i),n.getChild(i),o.modules[i])}}([],this.root,t)},r.prototype.register=function(t,o,i){var r=this;void 0===i&&(i=!0);var s=new n(o,i);0===t.length?this.root=s:this.get(t.slice(0,-1)).addChild(t[t.length-1],s);o.modules&&e(o.modules,function(e,n){r.register(t.concat(n),e,i)})},r.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var s=function(e){var n=this;void 0===e&&(e={}),!i&&"undefined"!=typeof window&&window.Vue&&d(window.Vue);var o=e.plugins;void 0===o&&(o=[]);var s=e.strict;void 0===s&&(s=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new r(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new i;var a=this,c=this.dispatch,u=this.commit;this.dispatch=function(t,e){return c.call(a,t,e)},this.commit=function(t,e,n){return u.call(a,t,e,n)},this.strict=s;var h=this._modules.root.state;p(this,h,[],this._modules.root),f(this,h),o.forEach(function(t){return t(n)}),(void 0!==e.devtools?e.devtools:i.config.devtools)&&function(e){t&&(e._devtoolHook=t,t.emit("vuex:init",e),t.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,n){t.emit("vuex:mutation",e,n)}
19214))}(this)},a={state:{configurable:!0}};function c(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function u(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;p(t,n,[],t._modules.root,!0),f(t,n,e)}function f(t,n,o){var r=t._vm;t.getters={};var s=t._wrappedGetters,a={};e(s,function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var c=i.config.silent;i.config.silent=!0,t._vm=new i({data:{$$state:n},computed:a}),i.config.silent=c,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(t),r&&(o&&t._withCommit(function(){r._data.$$state=null}),i.nextTick(function(){return r.$destroy()}))}function p(t,e,n,o,r){var s=!n.length,a=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[a]=o),!s&&!r){var c=h(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit(function(){i.set(c,u,o.state)})}var f=o.context=function(t,e,n){var o=""===e,i={dispatch:o?t.dispatch:function(n,o,i){var r=l(n,o,i),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:o?t.commit:function(n,o,i){var r=l(n,o,i),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:o?function(){return t.getters}:function(){return function(t,e){var n={},o=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,o)===e){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return t.getters[i]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return h(t.state,n)}}}),i}(t,a,n);o.forEachMutation(function(e,n){!function(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,o.state,e)})}(t,a+n,e,f)}),o.forEachAction(function(e,n){var o=e.root?n:a+n,i=e.handler||e;!function(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push(function(e,i){var r,s=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e,i);return(r=s)&&"function"==typeof r.then||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):s})}(t,o,i,f)}),o.forEachGetter(function(e,n){!function(t,e,n,o){if(t._wrappedGetters[e])return;t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)}}(t,a+n,e,f)}),o.forEachChild(function(o,i){p(t,e,n.concat(i),o,r)})}function h(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function l(t,e,n){var o;return null!==(o=t)&&"object"==typeof o&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function d(t){i&&t===i||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(i=t)}a.state.get=function(){return this._vm._data.$$state},a.state.set=function(t){},s.prototype.commit=function(t,e,n){var o=this,i=l(t,e,n),r=i.type,s=i.payload,a={type:r,payload:s},c=this._mutations[r];c&&(this._withCommit(function(){c.forEach(function(t){t(s)})}),this._subscribers.forEach(function(t){return t(a,o.state)}))},s.prototype.dispatch=function(t,e){var n=this,o=l(t,e),i=o.type,r=o.payload,s={type:i,payload:r},a=this._actions[i];if(a){try{this._actionSubscribers.filter(function(t){return t.before}).forEach(function(t){return t.before(s,n.state)})}catch(t){}return(a.length>1?Promise.all(a.map(function(t){return t(r)})):a[0](r)).then(function(t){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(s,n.state)})}catch(t){}return t})}},s.prototype.subscribe=function(t){return c(t,this._subscribers)},s.prototype.subscribeAction=function(t){return c("function"==typeof t?{before:t}:t,this._actionSubscribers)},s.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},s.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},s.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),n.preserveState),f(this,this.state)},s.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=h(e.state,t.slice(0,-1));i.delete(n,t[t.length-1])}),u(this)},s.prototype.hotUpdate=function(t){this._modules.update(t),u(this,!0)},s.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(s.prototype,a);var m=b(function(t,e){var n={};return g(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=w(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[o].vuex=!0}),n}),v=b(function(t,e){var n={};return g(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var r=w(this.$store,"mapMutations",t);if(!r)return;o=r.context.commit}return"function"==typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}}),n}),_=b(function(t,e){var n={};return g(e).forEach(function(e){var o=e.key,i=e.val;
19214i=t+i,n[o]=function(){if(!t||w(this.$store,"mapGetters",t))return this.$store.getters[i]},n[o].vuex=!0}),n}),y=b(function(t,e){var n={};return g(e).forEach(function(e){var o=e.key,i=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var r=w(this.$store,"mapActions",t);if(!r)return;o=r.context.dispatch}return"function"==typeof i?i.apply(this,[o].concat(e)):o.apply(this.$store,[i].concat(e))}}),n});function g(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function b(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function w(t,e,n){return t._modulesNamespaceMap[n]}return{Store:s,install:d,version:"3.1.1",mapState:m,mapMutations:v,mapGetters:_,mapActions:y,createNamespacedHelpers:function(t){return{mapState:m.bind(null,t),mapGetters:_.bind(null,t),mapMutations:v.bind(null,t),mapActions:y.bind(null,t)}}}});
19215Vue.use(Vuex);!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueMultiselect=e():t.VueMultiselect=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=89)}([function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(35),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},function(t,e,n){var r=n(59),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},function(t,e,n){var r=n(4),i=n(43).f,o=n(30),s=n(11),u=n(33),a=n(95),l=n(66);t.exports=function(t,e){var n,c,f,p,h,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||u(d,{}):(r[d]||{}).prototype)for(c in e){if(p=e[c],t.dontCallGetSet?(h=i(n,c),f=h&&h.value):f=n[c],!l(v?c:d+(g?".":"#")+c,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;a(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),s(n,c,p,t)}}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(e,n(139))},function(t,e,n){var r=n(0);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,n){var r=n(8),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},function(t,e,n){var r=n(1),i=n(14),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},function(t,e,n){var r=n(2),i=n(59),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}
vendor: 5,021 bytes, line 19215
19215},function(t,e,n){var r=n(4),i=n(47),o=n(7),s=n(75),u=n(72),a=n(76),l=i("wks"),c=r.Symbol,f=c&&c.for,p=a?c:c&&c.withoutSetter||s;t.exports=function(t){if(!o(l,t)||!u&&"string"!=typeof l[t]){var e="Symbol."+t;u&&o(c,t)?l[t]=c[t]:l[t]=a&&f?f(e):p(e)}return l[t]}},function(t,e,n){var r=n(123);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(2),i=n(13),o=n(104),s=n(33);t.exports=function(t,e,n,u){u||(u={});var a=u.enumerable,l=void 0!==u.name?u.name:e;if(r(n)&&o(n,l,u),u.global)a?t[e]=n:s(e,n);else{try{u.unsafe?t[e]&&(a=!0):delete t[e]}catch(t){}a?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},function(t,e,n){var r=n(35),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){var r=n(5),i=n(62),o=n(77),s=n(6),u=n(50),a=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;e.f=r?o?function(t,e,n){if(s(t),e=u(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=c(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=u(e),s(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(24),i=Object;t.exports=function(t){return i(r(t))}},function(t,e,n){var r=n(1),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,e,n){var r=n(0),i=n(9),o=n(23),s=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[],n=e.constructor={};return n[s]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,n){var r=n(4),i=n(2),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(39),i=n(24);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(29),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e,n){var r=n(100),i=n(1),o=n(39),s=n(14),u=n(10),a=n(28),l=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,f=6==t,p=7==t,h=5==t||f;return function(d,v,g,y){for(var b,m,x=s(d),_=o(x),O=r(v,g),w=u(_),S=0,E=y||a,L=e?E(d,w):n||p?E(d,0):void 0;w>S;S++)if((h||S in _)&&(b=_[S],m=O(b,S,x),t))if(e)L[S]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:l(L,b)}else switch(t){case 4:return!1;case 7:l(L,b)}return f?-1:i||c?c:L}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(t,e){var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},function(t,e,n){var r,i,o=n(4),s=n(97),u=o.process,a=o.Deno,l=u&&u.versions||a&&a.version,c=l&&l.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){var r=n(40),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},function(t,e,n){var r=n(2),i=n(74),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){return 1},1)})}},function(t,e,n){"use strict";var r=n(5),i=n(18),o=TypeError,s=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){var r=n(94);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(51),i=n(2),o=n(15),s=n(9),u=s("toStringTag"),a=Object,l="Arguments"==o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=a(t),u))?n:l?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(5),i=n(13),o=n(31);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(50),i=n(13),o=n(31);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){var r=n(4),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
19215ing","toString","valueOf"]},function(t,e,n){var r=n(0);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},function(t,e,n){var r=n(5),i=n(7),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,u=i(o,"name"),a=u&&"something"===function(){}.name,l=u&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:l}},function(t,e,n){var r=n(15),i=n(1);t.exports=function(t){if("Function"===r(t))return i(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(1),i=n(0),o=n(15),s=Object,u=r("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?u(t,""):s(t)}:s},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){var r=n(17),i=n(2),o=n(44),s=n(76),u=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,u(t))}},function(t,e,n){var r,i=n(6),o=n(107),s=n(34),u=n(38),a=n(101),l=n(60),c=n(70),f=c("IE_PROTO"),p=function(){},h=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=l("iframe");return e.style.display="none",a.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(h("document.F=Object")),t.close(),t.F},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}g="undefined"!=typeof document?document.domain&&r?d(r):v():d(r);for(var t=s.length;t--;)delete g.prototype[s[t]];return g()};u[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=i(t),n=new p,p.prototype=null,n[f]=t):n=g(),void 0===e?n:o.f(n,e)}},function(t,e,n){var r=n(5),i=n(12),o=n(110),s=n(31),u=n(19),a=n(50),l=n(7),c=n(62),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=a(e),c)try{return f(t,e)}catch(t){}if(l(t,e))return s(!i(o.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){"use strict";var r=n(12),i=n(1),o=n(20),s=n(69),u=n(117),a=n(47),l=n(42),c=n(64).get,f=n(118),p=n(119),h=a("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,g=i("".charAt),y=i("".indexOf),b=i("".replace),m=i("".slice),x=function(){var t=/a/,e=/b*/g;return r(d,t,"a"),r(d,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(x||O||_||f||p)&&(v=function(t){var e,n,i,u,a,f,p,w=this,S=c(w),E=o(t),L=S.raw;if(L)return L.lastIndex=w.lastIndex,e=r(v,L,E),w.lastIndex=L.lastIndex,e;var k=S.groups,P=_&&w.sticky,j=r(s,w),T=w.source,A=0,V=E;if(P&&(j=b(j,"y",""),-1===y(j,"g")&&(j+="g"),V=m(E,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==g(E,w.lastIndex-1))&&(T="(?: "+T+")",V=" "+V,A++),n=new RegExp("^(?:"+T+")",j)),O&&(n=new RegExp("^"+T+"$(?!\\s)",j)),x&&(i=w.lastIndex),u=r(d,P?n:w,V),P?u?(u.input=m(u.input,A),u[0]=m(u[0],A),u.index=w.lastIndex,w.lastIndex+=u[0].length):w.lastIndex=0:x&&u&&(w.lastIndex=w.global?u.index+u[0].length:i),O&&u&&u.length>1&&r(h,u[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(u[a]=void 0)}),u&&k)for(u.groups=f=l(null),a=0;a<k.length;a++)p=k[a],f[p[0]]=u[p[1]];return u}),t.exports=v},function(t,e,n){var r=n(4),i=n(33),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r=n(103),i=n(46);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){var r=n(49),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){var r=n(105);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},function(t,e,n){var r=n(73),i=n(41);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(9),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},function(t,e,n){"use strict";var r=n(5),i=n(4),o=n(1),s=n(66),u=n(11),a=n(7),l=n(102),c=n(44),f=n(41),p=n(73),h=n(0),d=n(67).f,v=n(43).f,g=n(13).f,y=n(122),b=n(71).trim,m=i.Number,x=m.prototype,_=i.TypeError,O=o("".slice),w=o("".charCodeAt),S=function(t){var e=p(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,r,i,o,s,u,a,l=p(t,"number");if(f(l))throw _("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=b(l),43===(e=w(l,0))||45===e){if(88===(n=w(l,2))||120===n)return NaN}else if(48===e){switch(w(l,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(o=O(l,2),s=o.length,u=0;u<s;u++)if((a=w(o,u))<48||a>i)return NaN;return parseInt(o,r)}return+l};if(s("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var L,k=function(t){var e=arguments.length<1?0:m(S(t)),n=this;return c(x,n)&&h(function(){y(n)})?l(Object(e),n,k):e},P=r?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j=0;P.length>j;j++)a(m,L=P[j])&&!a(k,L)&&g(k,L,v(m,L));k.prototype=x,x.constructor=k,u(i,"Number",k,{constructor:!0})}},function(t,e,n){"use strict";var r=n(3),i=n(45);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";function r(t){return 0!==t&&(!(!Array.isArray(t)||0!==t.length)||!t)}function i(t){return function(){return!t.apply(void 0,arguments)}}function o(t,e){return void 0===t&&(t="undefined"),null===t&&(t="null"),!1===t&&(t="false"),-1!==t.toString().toLowerCase().indexOf(e.trim())}function s(t,e,n,r){return t.filter(function(t){return o(r(t,n),e)})}function u(t){return t.filter(function(t){return!t.$isLabel})}function a(t,e){return function(n){return n.reduce(function(n,r){return r[t]&&r[t].length?(n.push({$groupLabel:r[e],$isLabel:!0}),n.concat(r[t])):n},[])}}function l(t,e,r,i,o){return function(u){return u.map(function(u){var a;if(!u[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];var l=s(u[r],t,e,o);return l.length?(a={},n.i(f.a)(a,i,u[i]),n.i(f.a)(a,r,l),a):[]})}}var c=n(88),f=n(87),p=n(129),h=(n.n(p),n(82)),d=(n.n(h),n(81)),v=(n.n(d),n(83)),g=(n.n(v),n(84)),y=(n.n(g),n(128)),b=(n.n(y),n(135)),m=(n.n(b),n(127)),x=(n.n(m),n(132)),_=(n.n(x),n(131)),O=(n.n(_),n(125)),w=(n.n(O),n(130)),S=(n.n(w),n(52)),E=(n.n(S),n(53)),L=(n.n(E),n(85)),k=(n.n(L),n(134)),P=(n.n(k),n(80)),j=(n.n(P),n(79)),T=(n.n(j),n(133)),A=(n.n(T),n(126)),V=(n.n(A),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce(function(t,e){return e(t)},t)}});e.a={data:function(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default:function(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default:function(t,e){return r(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:function(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted:function(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue:function(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions:function(){var t=this.search||"",e=t.toLowerCase().trim(),n=this.options.concat();return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,e,this.label):s(n,e,this.label,this.customLabel):this.groupValues?a(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(i(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys:function(){var t=this;return this.trackBy?this.internalValue.map(function(e){return e[t.trackBy]}):this.internalValue},optionKeys:function(){var t=this;return(this.groupValues?this.flatAndStrip(this.options):this.options).map(function(e){return t.customLabel(e,t.label).toString().toLowerCase()})},currentOptionLabel:function(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:function(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))}
19215,search:function(){this.$emit("search-change",this.search,this.id)}},methods:{getValue:function(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat:function(t,e,n){return V(l(e,n,this.groupValues,this.groupLabel,this.customLabel),a(this.groupValues,this.groupLabel))(t)},flatAndStrip:function(t){return V(a(this.groupValues,this.groupLabel),u)(t)},updateSearch:function(t){this.search=t},isExistingOption:function(t){return!!this.options&&this.optionKeys.indexOf(t)>-1},isSelected:function(t){var e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled:function(t){return!!t.$isDisabled},getOptionLabel:function(t){if(r(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;var e=this.customLabel(t,this.label);return r(e)?"":e},select:function(t,e){if(t.$isLabel&&this.groupSelect)return void this.selectGroup(t);if(!(-1!==this.blockKeys.indexOf(e)||this.disabled||t.$isDisabled||t.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==e||this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t))return void("Tab"!==e&&this.removeElement(t));this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup:function(t){var e=this,n=this.options.find(function(n){return n[e.groupLabel]===t.$groupLabel});if(n){if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);var r=this.internalValue.filter(function(t){return-1===n[e.groupValues].indexOf(t)});this.$emit("input",r,this.id)}else{var i=n[this.groupValues].filter(function(t){return!(e.isOptionDisabled(t)||e.isSelected(t))});this.max&&i.splice(this.max-this.internalValue.length),this.$emit("select",i,this.id),this.$emit("input",this.internalValue.concat(i),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected:function(t){var e=this;return t[this.groupValues].every(function(t){return e.isSelected(t)||e.isOptionDisabled(t)})},wholeGroupDisabled:function(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.disabled&&!t.$isDisabled){if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();var r="object"===n.i(c.a)(t)?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){var i=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("input",i,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()}},removeLastElement:function(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate:function(){var t=this;this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(function(){return t.$refs.search&&t.$refs.search.focus()})):this.preventAutofocus||void 0!==this.$el&&this.$el.focus(),this.$emit("open",this.id))},deactivate:function(){this.isOpen&&(this.isOpen=!1,this.searchable?void 0!==this.$refs.search&&this.$refs.search.blur():void 0!==this.$el&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle:function(){this.isOpen?this.deactivate():this.activate()},adjustPosition:function(){if("undefined"!=typeof window){var t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}}}},function(t,e,n){"use strict";var r=n(52),i=(n.n(r),n(53)),o=(n.n(i),n(85)),s=(n.n(o),n(82)),u=(n.n(s),n(81)),a=(n.n(u),n(83)),l=(n.n(a),n(84)),c=(n.n(l),n(79));n.n(c);e.a={data:function(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition:function(){return this.pointer*this.optionHeight},visibleElements:function(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions:function(){this.pointerAdjust()},isOpen:function(){this.pointerDirty=!1},pointer:function(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight:function(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight:function(t,e){var n=this;if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];var r=this.options.find(function(t){return t[n.groupLabel]===e.$groupLabel});return r&&!this.wholeGroupDisabled(r)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"multiselect__option--disabled"},addPointerElement:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Enter",e=t.key;this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerRe
19215set()},pointerForward:function(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward:function(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset:function(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust:function(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet:function(t){this.pointer=t,this.pointerDirty=!0}}}},function(t,e,n){"use strict";var r=n(52),i=(n.n(r),n(80)),o=(n.n(i),n(54)),s=n(55);e.a={name:"vue-multiselect",mixins:[o.a,s.a],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:function(t){return"and ".concat(t," more")}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup:function(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible:function(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible:function(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues:function(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue:function(){return this.internalValue[0]},deselectLabelText:function(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText:function(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText:function(){return this.showLabels?this.selectLabel:""},selectGroupLabelText:function(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText:function(){return this.showLabels?this.selectedLabel:""},inputStyle:function(){return this.searchable||this.multiple&&this.value&&this.value.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle:function(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput:function(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)}}}},function(t,e,n){var r=n(19),i=n(48),o=n(10),s=function(t){return function(e,n,s){var u,a=r(e),l=o(a),c=i(s,l);if(t&&n!=n){for(;l>c;)if((u=a[c++])!=u)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,n){"use strict";var r=n(74),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},function(t,e){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},function(t,e,n){var r=n(4),i=n(8),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){var r=n(25),i=n(40);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},function(t,e,n){var r=n(5),i=n(0),o=n(60);t.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),i=n(2),o=n(46),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},function(t,e,n){var r,i,o,s=n(124),u=n(4),a=n(8),l=n(30),c=n(7),f=n(46),p=n(70),h=n(38),d=u.TypeError,v=u.WeakMap,g=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!a(e)||(n=i(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}};if(s||f.state){var b=f.state||(f.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw d("Object already initialized");return e.facade=t,b.set(t,e),e},i=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var m=p("state");h[m]=!0,r=function(t,e){if(c(t,m))throw d("Object already initialized");return e.facade=t,l(t,m,e),e},i=function(t){return c(t,m)?t[m]:{}},o=function(t){return c(t,m)}}t.exports={set:r,get:i,has:o,enforce:g,getterFor:y}},function(t,e,n){var r=n(1),i=n(0),o=n(2),s=n(29),u=n(17),a=n(63),l=function(){},c=[],f=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=r(p.exec),d=!p.exec(l),v=function(t){if(!o(t))return!1;try{return f(l,c,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(p,a(t))}catch(t){return!0}};
19215g.sham=!0,t.exports=!f||i(function(){var t;return v(v.call)||!v(Object)||!v(function(){t=!0})||t})?g:v},function(t,e,n){var r=n(0),i=n(2),o=/#|\.prototype\./,s=function(t,e){var n=a[u(t)];return n==c||n!=l&&(i(e)?r(e):!!e)},u=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},function(t,e,n){var r=n(68),i=n(34),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(1),i=n(7),o=n(19),s=n(57).indexOf,u=n(38),a=r([].push);t.exports=function(t,e){var n,r=o(t),l=0,c=[];for(n in r)!i(u,n)&&i(r,n)&&a(c,n);for(;e.length>l;)i(r,n=e[l++])&&(~s(c,n)||a(c,n));return c}},function(t,e,n){"use strict";var r=n(6);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(47),i=n(75),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(1),i=n(24),o=n(20),s=n(78),u=r("".replace),a="["+s+"]",l=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),f=function(t){return function(e){var n=o(i(e));return 1&t&&(n=u(n,l,"")),2&t&&(n=u(n,c,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t,e,n){var r=n(23),i=n(0);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,e,n){var r=n(12),i=n(8),o=n(41),s=n(61),u=n(113),a=n(9),l=TypeError,c=a("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,a=s(t,c);if(a){if(void 0===e&&(e="default"),n=r(a,t,e),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(1),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},function(t,e,n){var r=n(72);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(5),i=n(0);t.exports=r&&i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){"use strict";var r=n(3),i=n(21).find,o=n(91),s=!0;"find"in[]&&Array(1).find(function(){s=!1}),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,n){"use strict";var r=n(3),i=n(18),o=n(65),s=n(8),u=n(48),a=n(10),l=n(19),c=n(32),f=n(9),p=n(16),h=n(93),d=p("slice"),v=f("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,r,f,p=l(this),d=a(p),b=u(t,d),m=u(void 0===e?d:e,d);if(i(p)&&(n=p.constructor,o(n)&&(n===g||i(n.prototype))?n=void 0:s(n)&&null===(n=n[v])&&(n=void 0),n===g||void 0===n))return h(p,b,m);for(r=new(void 0===n?g:n)(y(m-b,0)),f=0;b<m;b++,f++)b in p&&c(r,f,p[b]);return r.length=f,r}})},function(t,e,n){var r=n(1),i=n(11),o=Date.prototype,s=r(o.toString),u=r(o.getTime);"Invalid Date"!=String(new Date(NaN))&&i(o,"toString",function(){var t=u(this);return t===t?s(this):"Invalid Date"})},function(t,e,n){var r=n(11),i=n(98),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},function(t,e,n){var r=n(51),i=n(11),o=n(112);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var r=n(36).PROPER,i=n(11),o=n(6),s=n(20),u=n(0),a=n(116),l=RegExp.prototype,c=l.toString,f=u(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),p=r&&"toString"!=c.name;(f||p)&&i(RegExp.prototype,"toString",function(){var t=o(this);return"/"+s(t.source)+"/"+s(a(t))},{unsafe:!0})},function(t,e,n){"use strict";var r=n(12),i=n(99),o=n(6),s=n(40),u=n(24),a=n(120),l=n(20),c=n(61),f=n(115);i("search",function(t,e,n){return[function(e){var n=u(this),i=s(e)?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](l(n))},function(t){var r=o(this),i=l(t),s=n(e,r,i);if(s.done)return s.value;var u=r.lastIndex;
19215a(u,0)||(r.lastIndex=0);var c=f(r,i);return a(r.lastIndex,u)||(r.lastIndex=u),null===c?-1:c.index}]})},function(t,e,n){"use strict";function r(t){n(136)}var i=n(56),o=n(138),s=n(137),u=r,a=s(i.a,o.a,!1,u,null,null);e.a=a.exports},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.a=r},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(86),i=n(54),o=n(55);n.d(e,"Multiselect",function(){return r.a}),n.d(e,"multiselectMixin",function(){return i.a}),n.d(e,"pointerMixin",function(){return o.a}),e.default=r.a},function(t,e,n){var r=n(2),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},function(t,e,n){var r=n(9),i=n(42),o=n(13).f,s=r("unscopables"),u=Array.prototype;void 0==u[s]&&o(u,s,{configurable:!0,value:i(null)}),t.exports=function(t){u[s][t]=!0}},function(t,e,n){var r=n(25),i=n(14),o=n(39),s=n(10),u=TypeError,a=function(t){return function(e,n,a,l){r(n);var c=i(e),f=o(c),p=s(c),h=t?p-1:0,d=t?-1:1;if(a<2)for(;;){if(h in f){l=f[h],h+=d;break}if(h+=d,t?h<0:p<=h)throw u("Reduce of empty array with no initial value")}for(;t?h>=0:p>h;h+=d)h in f&&(l=n(l,f[h],h,c));return l}};t.exports={left:a(!1),right:a(!0)}},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(18),i=n(65),o=n(8),s=n(9),u=s("species"),a=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===a||r(e.prototype))?e=void 0:o(e)&&null===(e=e[u])&&(e=void 0)),void 0===e?a:e}},function(t,e,n){var r=n(7),i=n(114),o=n(43),s=n(13);t.exports=function(t,e,n){for(var u=i(e),a=s.f,l=o.f,c=0;c<u.length;c++){var f=u[c];r(t,f)||n&&r(n,f)||a(t,f,l(e,f))}}},function(t,e,n){var r=n(15),i=n(4);t.exports="process"==r(i.process)},function(t,e,n){var r=n(17);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(5),i=n(0),o=n(6),s=n(42),u=n(106),a=Error.prototype.toString,l=i(function(){if(r){var t=s(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==a.call(t))return!0}return"2: 1"!==a.call({message:1,name:2})||"Error"!==a.call({})});t.exports=l?function(){var t=o(this),e=u(t.name,"Error"),n=u(t.message);return e?n?e+": "+n:e:n}:a},function(t,e,n){"use strict";n(53);var r=n(37),i=n(11),o=n(45),s=n(0),u=n(9),a=n(30),l=u("species"),c=RegExp.prototype;t.exports=function(t,e,n,f){var p=u(t),h=!s(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),d=h&&!s(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e});if(!h||!d||n){var v=r(/./[p]),g=e(p,""[t],function(t,e,n,i,s){var u=r(t),a=e.exec;return a===o||a===c.exec?h&&!s?{done:!0,value:v(e,n,i)}:{done:!0,value:u(n,e,i)}:{done:!1}});i(String.prototype,t,g[0]),i(c,p,g[1])}f&&a(c[p],"sham",!0)}},function(t,e,n){var r=n(37),i=n(25),o=n(35),s=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(17);t.exports=r("document","documentElement")},function(t,e,n){var r=n(2),i=n(8),o=n(111);t.exports=function(t,e,n){var s,u;return o&&r(s=e.constructor)&&s!==n&&i(u=s.prototype)&&u!==n.prototype&&o(t,u),t}},function(t,e){t.exports=!1},function(t,e,n){var r=n(0),i=n(2),o=n(7),s=n(5),u=n(36).CONFIGURABLE,a=n(63),l=n(64),c=l.enforce,f=l.get,p=Object.defineProperty,h=s&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),d=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),h&&n&&o(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=c(t);return o(r,"source")||(r.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=v(function(){return i(this)&&f(this).source||a(this)},"toString")},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},function(t,e,n){var r=n(20);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(5),i=n(77),o=n(13),s=n(6),u=n(19),a=n(109);e.f=r&&!i?Object.defineProperties:function(t,e){s(t);for(var n,r=u(e),i=a(e),l=i.length,c=0;l>c;)o.f(t,n=i[c++],r[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(68),i=n(34);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(1),i=n(6),o=n(90);
19215t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){"use strict";var r=n(51),i=n(29);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(12),i=n(2),o=n(8),s=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&i(n=t.toString)&&!o(u=r(n,t)))return u;if(i(n=t.valueOf)&&!o(u=r(n,t)))return u;if("string"!==e&&i(n=t.toString)&&!o(u=r(n,t)))return u;throw s("Can't convert object to primitive value")}},function(t,e,n){var r=n(17),i=n(1),o=n(67),s=n(108),u=n(6),a=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=s.f;return n?a(e,n(t)):e}},function(t,e,n){var r=n(12),i=n(6),o=n(2),s=n(15),u=n(45),a=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var l=r(n,t,e);return null!==l&&i(l),l}if("RegExp"===s(t))return r(u,t,e);throw a("RegExp#exec called on incompatible receiver")}},function(t,e,n){var r=n(12),i=n(7),o=n(44),s=n(69),u=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in u||i(t,"flags")||!o(u,t)?e:r(s,t)}},function(t,e,n){var r=n(0),i=n(4),o=i.RegExp,s=r(function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),u=s||r(function(){return!o("a","y").sticky}),a=s||r(function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:u,UNSUPPORTED_Y:s}},function(t,e,n){var r=n(0),i=n(4),o=i.RegExp;t.exports=r(function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})},function(t,e,n){var r=n(0),i=n(4),o=i.RegExp;t.exports=r(function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(36).PROPER,i=n(0),o=n(78),s="​…᠎";t.exports=function(t){return i(function(){return!!o[t]()||s[t]()!==s||r&&o[t].name!==t})}},function(t,e,n){var r=n(1);t.exports=r(1..valueOf)},function(t,e,n){var r=n(49),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(4),i=n(2),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},function(t,e,n){"use strict";var r=n(3),i=n(0),o=n(18),s=n(8),u=n(14),a=n(10),l=n(22),c=n(32),f=n(28),p=n(16),h=n(9),d=n(23),v=h("isConcatSpreadable"),g=d>=51||!i(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),y=p("concat"),b=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!y},{concat:function(t){var e,n,r,i,o,s=u(this),p=f(s,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?s:arguments[e],b(o))for(i=a(o),l(h+i),n=0;n<i;n++,h++)n in o&&c(p,h,o[n]);else l(h+1),c(p,h++,o);return p.length=h,p}})},function(t,e,n){"use strict";var r=n(3),i=n(21).every;r({target:"Array",proto:!0,forced:!n(26)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(21).filter;r({target:"Array",proto:!0,forced:!n(16)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(37),o=n(57).indexOf,s=n(26),u=i([].indexOf),a=!!u&&1/u([1],1,-0)<0,l=s("indexOf");r({target:"Array",proto:!0,forced:a||!l},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?u(this,t,e)||0:o(this,t,e)}})},function(t,e,n){n(3)({target:"Array",stat:!0},{isArray:n(18)})},function(t,e,n){"use strict";var r=n(3),i=n(21).map;r({target:"Array",proto:!0,forced:!n(16)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),o=n(10),s=n(27),u=n(22),a=n(0),l=a(function(){return 4294967297!==[].push.call({length:4294967296},1)}),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l||c},{push:function(t){var e=i(this),n=o(e),r=arguments.length;u(n+r);for(var a=0;a<r;a++)e[n]=arguments[a],n++;return s(e,n),n}})},function(t,e,n){"use strict";var r=n(3),i=n(92).left,o=n(26),s=n(23),u=n(96),a=o("reduce"),l=!u&&s>79&&s<83;r({target:"Array",proto:!0,forced:!a||l},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),o=n(48),s=n(49),u=n(10),a=n(27),l=n(22),c=n(28),f=n(32),p=n(58),h=n(16),d=h("splice"),v=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,h,d,y,b,m=i(this),x=u(m),_=o(t,x),O=arguments.length;for(0===O?n=r=0:1===O?(n=0,r=x-_):(n=O-2,r=g(v(s(e),0),x-_)),l(x+n-r),h=c(m,r),d=0;d<r;d++)(y=_+d)in m&&f(h,d,m[y]);if(h.length=r,n<r){for(d=_;d<x-r;d++)y=d+r,b=d+n,y in m?m[b]=m[y]:p(m,b);for(d=x;d>x-r+n;d--)p(m,d-1)}else if(n>r)for(d=x-r;d>_;d--)y=d+r-1,b=d+n-1,y in m?m[b]=m[y]:p(m,b);for(d=0;d<n;d++)m[d+_]=arguments[d+2];return a(m,x-r+n),h}})},function(t,e,n){"use strict";var r=n(3),i=n(14),o=n(10),s=n(27),u=n(58),a=n(22),l=1!==[].unshift(0),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l||c},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){a(n+r);for(var l=n;l--;){var c=l+r;l in e?e[c]=e[l]:u(e,c)}for(var f=0;f<r;f++)e[f]=arguments[f]}return s(e,n+r)}})},function(t,e,n){"use strict";var r=n(3),i=n(71).trim;r({target:"String",proto:!0,forced:n(121)("trim")},{trim:function(){return i(this)}})},function(t,e){},function(t,e){t.exports=function(t,e,n,r,i,o){var s,u=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(s=t,u=t.default);var l="function"==typeof u?u.options:u;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var c;if(o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=r),c){var f=l.functional,p=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,c):[c]}return{esModule:s,exports:u,options:l}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"multiselect",class:{"multiselect--active":t.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":t.isAbove,"multiselect--has-options-group":t.hasOptionGroup},attrs:{tabindex:t.searchable?-1:t.tabindex,role:"combobox","aria-owns":"listbox-"+t.id},on:{focus:function(e){return t.activate()},blur:function(e){!t.searchable&&t.deactivate()},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:e.target!==e.currentTarget?null:(e.preventDefault(),t.pointerForward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:e.target!==e.currentTarget?null:(e.preventDefault(),t.pointerBackward())}],keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:(e.stopPropagation(),e.target!==e.currentTarget?null:t.addPointerElement(e))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deactivate()}}},[t._t("caret",function(){return[n("div",{staticClass:"multiselect__select",on:{mousedown:function(e){return e.preventDefault(),e.stopPropagation(),t.toggle(
19215)}}})]},{toggle:t.toggle}),t._v(" "),t._t("clear",null,{search:t.search}),t._v(" "),n("div",{ref:"tags",staticClass:"multiselect__tags"},[t._t("selection",function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"multiselect__tags-wrap"},[t._l(t.visibleValues,function(e,r){return[t._t("tag",function(){return[n("span",{key:r,staticClass:"multiselect__tag"},[n("span",{domProps:{textContent:t._s(t.getOptionLabel(e))}}),t._v(" "),n("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),t.removeElement(e))},mousedown:function(n){return n.preventDefault(),t.removeElement(e)}}})])]},{option:e,search:t.search,remove:t.removeElement})]})],2),t._v(" "),t.internalValue&&t.internalValue.length>t.limit?[t._t("limit",function(){return[n("strong",{staticClass:"multiselect__strong",domProps:{textContent:t._s(t.limitText(t.internalValue.length-t.limit))}})]})]:t._e()]},{search:t.search,remove:t.removeElement,values:t.visibleValues,isOpen:t.isOpen}),t._v(" "),n("transition",{attrs:{name:"multiselect__loading"}},[t._t("loading",function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"multiselect__spinner"})]})],2),t._v(" "),t.searchable?n("input",{ref:"search",staticClass:"multiselect__input",style:t.inputStyle,attrs:{name:t.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,disabled:t.disabled,tabindex:t.tabindex,"aria-controls":"listbox-"+t.id},domProps:{value:t.search},on:{input:function(e){return t.updateSearch(e.target.value)},focus:function(e){return e.preventDefault(),t.activate()},blur:function(e){return e.preventDefault(),t.deactivate()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deactivate()},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.pointerForward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.pointerBackward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.stopPropagation(),t.removeLastElement())}],keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),e.target!==e.currentTarget?null:t.addPointerElement(e))}}}):t._e(),t._v(" "),t.isSingleLabelVisible?n("span",{staticClass:"multiselect__single",on:{mousedown:function(e){return e.preventDefault(),t.toggle.apply(null,arguments)}}},[t._t("singleLabel",function(){return[[t._v(t._s(t.currentOptionLabel))]]},{option:t.singleValue})],2):t._e(),t._v(" "),t.isPlaceholderVisible?n("span",{staticClass:"multiselect__placeholder",on:{mousedown:function(e){return e.preventDefault(),t.toggle.apply(null,arguments)}}},[t._t("placeholder",function(){return[t._v("\n          "+t._s(t.placeholder)+"\n        ")]})],2):t._e()],2),t._v(" "),n("transition",{attrs:{name:"multiselect"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"list",staticClass:"multiselect__content-wrapper",style:{maxHeight:t.optimizedHeight+"px"},attrs:{tabindex:"-1"},on:{focus:t.activate,mousedown:function(t){t.preventDefault()}}},[n("ul",{staticClass:"multiselect__content",style:t.contentStyle,attrs:{role:"listbox",id:"listbox-"+t.id}},[t._t("beforeList"),t._v(" "),t.multiple&&t.max===t.internalValue.length?n("li",[n("span",{staticClass:"multiselect__option"},[t._t("maxElements",function(){return[t._v("Maximum of "+t._s(t.max)+" options selected. First remove a selected option to select another.")]})],2)]):t._e(),t._v(" "),!t.max||t.internalValue.length<t.max?t._l(t.filteredOptions,function(e,r){return n("li",{key:r,staticClass:"multiselect__element",attrs:{id:t.id+"-"+r,role:e&&(e.$isLabel||e.$isDisabled)?null:"option"}},[e&&(e.$isLabel||e.$isDisabled)?t._e():n("span",{staticClass:"multiselect__option",class:t.optionHighlight(r,e),attrs:{"data-select":e&&e.isTag?t.tagPlaceholder:t.selectLabelText,"data-selected":t.selectedLabelText,"data-deselect":t.de
19215selectLabelText},on:{click:function(n){return n.stopPropagation(),t.select(e)},mouseenter:function(e){return e.target!==e.currentTarget?null:t.pointerSet(r)}}},[t._t("option",function(){return[n("span",[t._v(t._s(t.getOptionLabel(e)))])]},{option:e,search:t.search,index:r})],2),t._v(" "),e&&(e.$isLabel||e.$isDisabled)?n("span",{staticClass:"multiselect__option",class:t.groupHighlight(r,e),attrs:{"data-select":t.groupSelect&&t.selectGroupLabelText,"data-deselect":t.groupSelect&&t.deselectGroupLabelText},on:{mouseenter:function(e){if(e.target!==e.currentTarget)return null;t.groupSelect&&t.pointerSet(r)},mousedown:function(n){return n.preventDefault(),t.selectGroup(e)}}},[t._t("option",function(){return[n("span",[t._v(t._s(t.getOptionLabel(e)))])]},{option:e,search:t.search,index:r})],2):t._e()])}):t._e(),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoResults&&0===t.filteredOptions.length&&t.search&&!t.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noResult",function(){return[t._v("No elements found. Consider changing the search query.")]},{search:t.search})],2)]),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoOptions&&(0===t.options.length||!0===t.hasOptionGroup&&0===t.filteredOptions.length)&&!t.search&&!t.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noOptions",function(){return[t._v("List is empty.")]})],2)]),t._v(" "),t._t("afterList")],2)])])],2)},i=[],o={render:r,staticRenderFns:i};e.a=o},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])});
19216Vue.component("v-multiselect",VueMultiselect.Multiselect);
19217(function(factory){
19218'use strict';
19219if(typeof define==='function'&&define.amd){
19220define(['jquery'],factory);
19221}else if(typeof exports!=='undefined'){
19222module.exports=factory(require('jquery'));
19223}else{
19224factory(jQuery);
19225}
19226}(function($){
19227'use strict';
19228jQuery.event.special.touchstart={
19229setup:function(_,ns,handle){
19230if(typeof this.addEventListener==="function"){
19231this.addEventListener('touchstart',handle,{passive:(ns.includes('noPreventDefault')?true:false)});
19232}
19233}
19234};
19235jQuery.event.special.touchmove={
19236setup:function(_,ns,handle){
19237if(typeof this.addEventListener==="function"){
19238this.addEventListener('touchmove',handle,{passive:(ns.includes('noPreventDefault')?true:false)});
19239}
19240}
19241};
19242var Slick=window.Slick||{};
19243Slick=(function(){
19244var instanceUid=0;
19245function Slick(element,settings){
19246var _=this,dataSettings;
19247_.defaults={
19248accessibility:true,
19249adaptiveHeight:false,
19250appendArrows:$(element),
19251appendDots:$(element),
19252arrows:true,
19253asNavFor:null,
19254prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',
19255nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',
19256autoplay:false,
19257autoplayButton:false,
19258autoplayButtonHtml:'<button data-pause-label="Automatisches wechseln der Slides stoppen" data-play-label="Slides automatisch wechseln" aria-label="Automatisches wechseln der Slides stoppen" class="autoplay-button"></button>',
19259autoplaySpeed:3000,
19260centerMode:false,
19261centerPadding:'50px',
19262cssEase:'ease',
19263customPaging:function(slider,i){
19264return'<button type="button">Slide '+(i+1)+'</button>';
19265},
19266dots:false,
19267dotsClass:'slick-dots',
19268draggable:true,
19269easing:'linear',
19270edgeFriction:0.35,
19271fade:false,
19272focusOnSelect:false,
19273infinite:true,
19274initialSlide:0,
19275lazyLoad:'ondemand',
19276mobileFirst:false,
19277pauseOnHover:true,
19278pauseOnDotsHover:false,
19279respondTo:'window',
19280responsive:null,
19281rows:1,
19282rtl:false,
19283slide:'',
19284slidesPerRow:1,
19285slidesToShow:1,
19286slidesToScroll:1,
19287speed:500,
19288swipe:true,
19289swipeToSlide:false,
19290touchMove:true,
19291touchThreshold:5,
19292useCSS:true,
19293useTransform:false,
19294variableWidth:false,
19295vertical:false,
19296verticalSwiping:false,
19297waitForAnimate:true,
19298zIndex:1000
19299};
19300_.initials={
19301animating:false,
19302dragging:false,
19303autoPlayTimer:null,
19304currentDirection:0,
19305currentLeft:null,
19306currentSlide:0,
19307direction:1,
19308$dots:null,
19309listWidth:null,
19310listHeight:null,
19311loadIndex:0,
19312$nextArrow:null,
19313$prevArrow:null,
19314$autoplayButton:null,
19315slideCount:null,
19316slideWidth:null,
19317$slideTrack:null,
19318$slides:null,
19319sliding:false,
19320slideOffset:0,
vendor: 4,301 bytes, lines 19321-19495
19321swipeLeft:null,
19322$list:null,
19323touchObject:{},
19324transformsEnabled:false,
19325unslicked:false
19326};
19327$.extend(_,_.initials);
19328_.activeBreakpoint=null;
19329_.animType=null;
19330_.animProp=null;
19331_.breakpoints=[];
19332_.breakpointSettings=[];
19333_.cssTransitions=false;
19334_.hidden='hidden';
19335_.paused=false;
19336_.userPaused=false;
19337_.positionProp=null;
19338_.respondTo=null;
19339_.rowCount=1;
19340_.shouldClick=true;
19341_.$slider=$(element);
19342_.$slidesCache=null;
19343_.transformType=null;
19344_.transitionType=null;
19345_.visibilityChange='visibilitychange';
19346_.windowWidth=0;
19347_.windowTimer=null;
19348_.intersectionObserver=null;
19349_.partiallyVisible=true;
19350dataSettings=$(element).data('slick')||{};
19351_.options=$.extend({},_.defaults,dataSettings,settings);
19352_.currentSlide=_.options.initialSlide;
19353_.originalSettings=_.options;
19354if(typeof document.mozHidden!=='undefined'){
19355_.hidden='mozHidden';
19356_.visibilityChange='mozvisibilitychange';
19357}else if(typeof document.webkitHidden!=='undefined'){
19358_.hidden='webkitHidden';
19359_.visibilityChange='webkitvisibilitychange';
19360}
19361_.autoPlay=$.proxy(_.autoPlay,_);
19362_.autoPlayClear=$.proxy(_.autoPlayClear,_);
19363_.changeSlide=$.proxy(_.changeSlide,_);
19364_.toggleAutoplayButton=$.proxy(_.toggleAutoplayButton,_);
19365_.clickHandler=$.proxy(_.clickHandler,_);
19366_.selectHandler=$.proxy(_.selectHandler,_);
19367_.setPosition=$.proxy(_.setPosition,_);
19368_.swipeHandler=$.proxy(_.swipeHandler,_);
19369_.dragHandler=$.proxy(_.dragHandler,_);
19370_.keyHandler=$.proxy(_.keyHandler,_);
19371_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);
19372_.instanceUid=instanceUid++;
19373_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;
19374_.registerBreakpoints();
19375_.init(true);
19376_.checkResponsive(true);
19377}
19378return Slick;
19379}());
19380Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){
19381var _=this;
19382if(typeof(index)==='boolean'){
19383addBefore=index;
19384index=null;
19385}else if(index<0||(index>=_.slideCount)){
19386return false;
19387}
19388_.unload();
19389if(typeof(index)==='number'){
19390if(index===0&&_.$slides.length===0){
19391$(markup).appendTo(_.$slideTrack);
19392}else if(addBefore){
19393$(markup).insertBefore(_.$slides.eq(index));
19394}else{
19395$(markup).insertAfter(_.$slides.eq(index));
19396}
19397}else{
19398if(addBefore===true){
19399$(markup).prependTo(_.$slideTrack);
19400}else{
19401$(markup).appendTo(_.$slideTrack);
19402}
19403}
19404_.$slides=_.$slideTrack.children(this.options.slide);
19405_.$slideTrack.children(this.options.slide).detach();
19406_.$slideTrack.append(_.$slides);
19407_.$slides.each(function(index,element){
19408$(element).attr('data-slick-index',index);
19409});
19410_.$slidesCache=_.$slides;
19411_.reinit();
19412};
19413Slick.prototype.animateHeight=function(){
19414var _=this;
19415if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){
19416var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);
19417_.$list.animate({
19418height:targetHeight
19419},_.options.speed);
19420}
19421};
19422Slick.prototype.animateSlide=function(targetLeft,callback){
19423var animProps={},
19424_=this;
19425_.animateHeight();
19426if(_.options.rtl===true&&_.options.vertical===false){
19427targetLeft=-targetLeft;
19428}
19429if(_.transformsEnabled===false){
19430if(_.options.vertical===false){
19431_.$slideTrack.animate({
19432left:targetLeft
19433},_.options.speed,_.options.easing,callback);
19434}else{
19435_.$slideTrack.animate({
19436top:targetLeft
19437},_.options.speed,_.options.easing,callback);
19438}
19439}else{
19440if(_.cssTransitions===false){
19441if(_.options.rtl===true){
19442_.currentLeft=-(_.currentLeft);
19443}
19444$({
19445animStart:_.currentLeft
19446}).animate({
19447animStart:targetLeft
19448},{
19449duration:_.options.speed,
19450easing:_.options.easing,
19451step:function(now){
19452now=Math.ceil(now);
19453if(_.options.vertical===false){
19454animProps[_.animType]='translate('+
19455now+'px, 0px)';
19456_.$slideTrack.css(animProps);
19457}else{
19458animProps[_.animType]='translate(0px,'+
19459now+'px)';
19460_.$slideTrack.css(animProps);
19461}
19462},
19463complete:function(){
19464if(callback){
19465callback.call();
19466}
19467}
19468});
19469}else{
19470_.applyTransition();
19471targetLeft=Math.ceil(targetLeft);
19472if(_.options.vertical===false){
19473animProps[_.animType]='translate3d('+targetLeft+'px, 0px, 0px)';
19474}else{
19475animProps[_.animType]='translate3d(0px,'+targetLeft+'px, 0px)';
19476}
19477_.$slideTrack.css(animProps);
19478if(callback){
19479setTimeout(function(){
19480_.disableTransition();
19481callback.call();
19482},_.options.speed);
19483}
19484}
19485}
19486};
19487Slick.prototype.asNavFor=function(index){
19488var _=this,
19489asNavFor=_.options.asNavFor;
19490if(asNavFor&&asNavFor!==null){
19491asNavFor=$(asNavFor).not(_.$slider);
19492}
19493if(asNavFor!==null&&typeof asNavFor==='object'){
19494asNavFor.each(function(){
19495var target=$(this).slick('getSlick');
19496if(!target.unslicked){
19497target.slideHandler(index,true);
19498}
19499});
19500}
19501};
19502Slick.prototype.applyTransition=function(slide){
19503var _=this,
19504transition={};
19505if(_.options.fade===false){
19506transition[_.transitionType]=_.transformType+' '+_.options.speed+'ms '+_.options.cssEase;
19507}else{
19508transition[_.transitionType]='opacity '+_.options.speed+'ms '+_.options.cssEase;
19509}
19510if(_.options.fade===false){
19511_.$slideTrack.css(transition);
19512}else{
19513_.$slides.eq(slide).css(transition);
19514}
19515};
19516Slick.prototype.autoPlay=function(){
19517var _=this;
19518if(!_.partiallyVisible)return;
19519if(_.autoPlayTimer){
19520clearInterval(_.autoPlayTimer);
19521}
19522if(_.slideCount>_.options.slidesToShow&&_.paused!==true){
19523_.autoPlayTimer=setInterval(_.autoPlayIterator,
19524_.options.autoplaySpeed);
19525}
19526if(_.$autoplayButton&&_.$autoplayButton.length){
19527_.updateAutoplayButton();
19528}
19529};
19530Slick.prototype.autoPlayClear=function(){
19531var _=this;
19532if(_.autoPlayTimer){
19533clearInterval(_.autoPlayTimer);
19534}
19535if(_.$autoplayButton&&_.$autoplayButton.length){
19536_.updateAutoplayButton();
19537}
19538};
19539Slick.prototype.autoPlayIterator=function(){
19540var _=this;
19541if(_.options.infinite===false){
19542if(_.direction===1){
19543if((_.currentSlide+1)===_.slideCount-
195441){
19545_.direction=0;
19546}
19547_.slideHandler(_.currentSlide+_.options.slidesToScroll);
19548}else{
19549if((_.currentSlide-1===0)){
19550_.direction=1;
19551}
19552_.slideHandler(_.currentSlide-_.options.slidesToScroll);
19553}
19554}else{
19555_.slideHandler(_.currentSlide+_.options.slidesToScroll);
19556}
19557};
19558Slick.prototype.buildAutoplayButton=function(){
19559var _=this;
19560if(_.options.autoplayButton===true){
19561_.$autoplayButton=$(_.options.autoplayButtonHtml).addClass('slick-autoplay-button');
19562_.$slider.attr("data-is-user-paused",_.userPaused);
19563if(_.$list&&_.$list.length){
19564_.$autoplayButton.prependTo(_.$list);
19565}
19566_.updateAutoplayButton();
19567}
19568}
19569Slick.prototype.buildArrows=function(){
19570var _=this;
19571if(_.options.arrows===true){
19572_.$prevArrow=$(_.options.prevArrow).addClass('slick-arrow');
19573_.$nextArrow=$(_.options.nextArrow).addClass('slick-arrow');
19574if(!_.$prevArrow.is('[aria-label]')&&!_.$nextArrow.is('[aria-label]')){
19575_.$prevArrow.attr("aria-label","Vorheriger Slide");
19576_.$nextArrow.attr("aria-label","Nächster Slide");
19577_.$prevArrow.attr("title","Vorheriger Slide");
19578_.$nextArrow.attr("title","Nächster Slide");
19579}else{
19580_.$prevArrow.attr("title",_.$prevArrow.attr("aria-label"));
19581_.$nextArrow.attr("title",_.$nextArrow.attr("aria-label"));
19582}
19583if(_.slideCount>_.options.slidesToShow){
19584_.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
19585_.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
19586if(_.htmlExpr.test(_.options.prevArrow)){
19587_.$prevArrow.prependTo(_.options.appendArrows);
19588}
19589if(_.htmlExpr.test(_.options.nextArrow)){
19590_.$nextArrow.appendTo(_.options.appendArrows);
19591}
19592if(_.options.infinite!==true){
19593_.$prevArrow
19594.addClass('slick-disabled')
19595.attr('aria-disabled','true');
19596}
19597}else{
19598_.$prevArrow.add(_.$nextArrow)
19599.addClass('slick-hidden')
19600.attr({
19601'aria-disabled':'true',
19602'tabindex':'-1'
19603});
19604}
19605}
19606};
19607Slick.prototype.buildDots=function(){
19608var _=this,
19609i,dotString;
19610if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){
19611dotString='<ul class="'+_.options.dotsClass+'">';
19612for(i=0;i<=_.getDotCount();i+=1){
19613dotString+='<li>'+_.options.customPaging.call(this,_,i)+'</li>';
19614}
19615dotString+='</ul>';
19616_.$dots=$(dotString).appendTo(
19617_.options.appendDots);
19618_.$dots.find('li').first().addClass('slick-active');
19619}
19620};
19621Slick.prototype.buildOut=function(){
19622var _=this;
19623_.$slides=
19624_.$slider
19625.children(_.options.slide+':not(.slick-cloned)')
19626.addClass('slick-slide');
19627_.slideCount=_.$slides.length;
19628_.$slides.each(function(index,element){
19629$(element)
19630.attr('data-slick-index',index)
19631.data('originalStyling',$(element).attr('style')||'');
19632});
19633_.$slider.addClass('slick-slider');
19634_.$slideTrack=(_.slideCount===0)?
19635$('<div class="slick-track"/>').appendTo(_.$slider):
19636_.$slides.wrapAll('<div class="slick-track"/>').parent();
19637_.$list=_.$slideTrack.wrap(
19638'<div class="slick-list"/>').parent();
19639_.$slideTrack.css('opacity',0);
19640if(_.options.centerMode===true||_.options.swipeToSlide===true){
19641_.options.slidesToScroll=1;
19642}
19643$('img[data-lazy]',_.$slider).not('[src]').addClass('slick-loading');
19644_.setupInfinite();
19645_.buildArrows();
19646_.buildAutoplayButton();
19647_.buildDots();
19648_.updateDots();
19649_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);
19650if(_.options.draggable===true){
19651_.$list.addClass('draggable');
19652}
19653};
19654Slick.prototype.buildRows=function(){
19655var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;
vendor: 13,449 bytes, lines 19656-20128
19656newSlides=document.createDocumentFragment();
19657originalSlides=_.$slider.children();
19658if(_.options.rows>1){
19659slidesPerSection=_.options.slidesPerRow*_.options.rows;
19660numOfSlides=Math.ceil(
19661originalSlides.length/slidesPerSection
19662);
19663for(a=0;a<numOfSlides;a++){
19664var slide=document.createElement('div');
19665for(b=0;b<_.options.rows;b++){
19666var row=document.createElement('div');
19667for(c=0;c<_.options.slidesPerRow;c++){
19668var target=(a*slidesPerSection+((b*_.options.slidesPerRow)+c));
19669if(originalSlides.get(target)){
19670row.appendChild(originalSlides.get(target));
19671}
19672}
19673slide.appendChild(row);
19674}
19675newSlides.appendChild(slide);
19676}
19677_.$slider.html(newSlides);
19678_.$slider.children().children().children()
19679.css({
19680'width':(100/_.options.slidesPerRow)+'%',
19681'display':'inline-block'
19682});
19683}
19684};
19685Slick.prototype.checkResponsive=function(initial,forceUpdate){
19686var _=this,
19687breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=false;
19688var sliderWidth=_.$slider.width();
19689var windowWidth=window.innerWidth||$(window).width();
19690if(_.respondTo==='window'){
19691respondToWidth=windowWidth;
19692}else if(_.respondTo==='slider'){
19693respondToWidth=sliderWidth;
19694}else if(_.respondTo==='min'){
19695respondToWidth=Math.min(windowWidth,sliderWidth);
19696}
19697if(_.options.responsive&&
19698_.options.responsive.length&&
19699_.options.responsive!==null){
19700targetBreakpoint=null;
19701for(breakpoint in _.breakpoints){
19702if(_.breakpoints.hasOwnProperty(breakpoint)){
19703if(_.originalSettings.mobileFirst===false){
19704if(respondToWidth<_.breakpoints[breakpoint]){
19705targetBreakpoint=_.breakpoints[breakpoint];
19706}
19707}else{
19708if(respondToWidth>_.breakpoints[breakpoint]){
19709targetBreakpoint=_.breakpoints[breakpoint];
19710}
19711}
19712}
19713}
19714if(targetBreakpoint!==null){
19715if(_.activeBreakpoint!==null){
19716if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){
19717_.activeBreakpoint=
19718targetBreakpoint;
19719if(_.breakpointSettings[targetBreakpoint]==='unslick'){
19720_.unslick(targetBreakpoint);
19721}else{
19722_.options=$.extend({},_.originalSettings,
19723_.breakpointSettings[
19724targetBreakpoint]);
19725if(initial===true){
19726_.currentSlide=_.options.initialSlide;
19727}
19728_.refresh(initial);
19729}
19730triggerBreakpoint=targetBreakpoint;
19731}
19732}else{
19733_.activeBreakpoint=targetBreakpoint;
19734if(_.breakpointSettings[targetBreakpoint]==='unslick'){
19735_.unslick(targetBreakpoint);
19736}else{
19737_.options=$.extend({},_.originalSettings,
19738_.breakpointSettings[
19739targetBreakpoint]);
19740if(initial===true){
19741_.currentSlide=_.options.initialSlide;
19742}
19743_.refresh(initial);
19744}
19745triggerBreakpoint=targetBreakpoint;
19746}
19747}else{
19748if(_.activeBreakpoint!==null){
19749_.activeBreakpoint=null;
19750_.options=_.originalSettings;
19751if(initial===true){
19752_.currentSlide=_.options.initialSlide;
19753}
19754_.refresh(initial);
19755triggerBreakpoint=targetBreakpoint;
19756}
19757}
19758if(!initial&&triggerBreakpoint!==false){
19759_.$slider.trigger('breakpoint',[_,triggerBreakpoint]);
19760}
19761}
19762};
19763Slick.prototype.changeSlide=function(event,dontAnimate){
19764var _=this,
19765$target=$(event.target),
19766indexOffset,slideOffset,unevenOffset;
19767if($target.is('a')){
19768event.preventDefault();
19769}
19770if(!$target.is('li')){
19771$target=$target.closest('li');
19772}
19773unevenOffset=(_.slideCount%_.options.slidesToScroll!==0);
19774indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;
19775switch(event.data.message){
19776case'previous':
19777slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;
19778if(_.slideCount>_.options.slidesToShow){
19779_.slideHandler(_.currentSlide-slideOffset,false,dontAnimate);
19780}
19781break;
19782case'next':
19783slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;
19784if(_.slideCount>_.options.slidesToShow){
19785_.slideHandler(_.currentSlide+slideOffset,false,dontAnimate);
19786}
19787break;
19788case'index':
19789var index=event.data.index===0?0:
19790event.data.index||$target.index()*_.options.slidesToScroll;
19791_.slideHandler(_.checkNavigable(index),false,dontAnimate);
19792$target.children().trigger('focus');
19793break;
19794default:
19795return;
19796}
19797};
19798Slick.prototype.checkNavigable=function(index){
19799var _=this,
19800navigables,prevNavigable;
19801navigables=_.getNavigableIndexes();
19802prevNavigable=0;
19803if(index>navigables[navigables.length-1]){
19804index=navigables[navigables.length-1];
19805}else{
19806for(var n in navigables){
19807if(index<navigables[n]){
19808index=prevNavigable;
19809break;
19810}
19811prevNavigable=navigables[n];
19812}
19813}
19814return index;
19815};
19816Slick.prototype.cleanUpEvents=function(){
19817var _=this;
19818if(_.options.dots&&_.$dots!==null){
19819$('li',_.$dots).off('click.slick',_.changeSlide);
19820if(_.options.pauseOnDotsHover===true&&_.options.autoplay===true&&!_.options.autoplayButton){
19821$('li',_.$dots)
19822.off('mouseenter.slick',$.proxy(_.setPaused,_,true))
19823.off('mouseleave.slick',$.proxy(_.setPaused,_,false));
19824}
19825}
19826if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){
19827_.$prevArrow&&_.$prevArrow.off('click.slick',_.changeSlide);
19828_.$nextArrow&&_.$nextArrow.off('click.slick',_.changeSlide);
19829}
19830if(_.$autoplayButton&&_.$autoplayButton.length){
19831_.$autoplayButton.off("click",_.toggleAutoplayButton);
19832}
19833_.$list.off('touchstart.slick mousedown.slick',_.swipeHandler);
19834_.$list.off('touchmove.slick mousemove.slick',_.swipeHandler);
19835_.$list.off('touchend.slick mouseup.slick',_.swipeHandler);
19836_.$list.off('touchcancel.slick mouseleave.slick',_.swipeHandler);
19837_.$list.off('click.slick',_.clickHandler);
19838$(document).off(_.visibilityChange,_.visibility);
19839_.$list.off('mouseenter.slick',$.proxy(_.setPaused,_,true));
19840_.$list.off('mouseleave.slick',$.proxy(_.setPaused,_,false));
19841if(_.options.accessibility===true){
19842_.$list.off('keydown.slick',_.keyHandler);
19843}
19844if(_.options.focusOnSelect===true){
19845$(_.$slideTrack).children().off('click.slick',_.selectHandler);
19846}
19847$(window).off('orientationchange.slick.slick-'+_.instanceUid,_.orientationChange);
19848$(window).off('resize.slick.slick-'+_.instanceUid,_.resize);
19849$('[draggable!=true]',_.$slideTrack).off('dragstart',_.preventDefault);
19850$(window).off('load.slick.slick-'+_.instanceUid,_.setPosition);
19851$(document).off('ready.slick.slick-'+_.instanceUid,_.setPosition);
19852};
19853Slick.prototype.cleanUpRows=function(){
19854var _=this,originalSlides;
19855if(_.options.rows>1){
19856originalSlides=_.$slides.children().children();
19857originalSlides.removeAttr('style');
19858_.$slider.html(originalSlides);
19859}
19860};
19861Slick.prototype.clickHandler=function(event){
19862var _=this;
19863if(_.shouldClick===false){
19864event.stopImmediatePropagation();
19865event.stopPropagation();
19866event.preventDefault();
19867}
19868};
19869Slick.prototype.destroy=function(refresh){
19870var _=this;
19871if(_.intersectionObserver){
19872_.intersectionObserver.disconnect()
19873_.partiallyVisible=false;
19874_.intersectionObserver=null;
19875}
19876_.autoPlayClear();
19877_.touchObject={};
19878_.cleanUpEvents();
19879$('.slick-cloned',_.$slider).detach();
19880if(_.$dots){
19881_.$dots.remove();
19882}
19883if(_.$prevArrow&&_.$prevArrow.length){
19884_.$prevArrow
19885.removeClass('slick-disabled slick-arrow slick-hidden')
19886.removeAttr('aria-hidden aria-disabled tabindex')
19887.css("display","");
19888if(_.htmlExpr.test(_.options.prevArrow)){
19889_.$prevArrow.remove();
19890}
19891}
19892if(_.$nextArrow&&_.$nextArrow.length){
19893_.$nextArrow
19894.removeClass('slick-disabled slick-arrow slick-hidden')
19895.removeAttr('aria-hidden aria-disabled tabindex')
19896.css("display","");
19897if(_.htmlExpr.test(_.options.nextArrow)){
19898_.$nextArrow.remove();
19899}
19900}
19901if(_.$autoplayButton&&_.$autoplayButton.length){
19902_.$autoplayButton
19903.removeClass('slick-autoplay-button play pause');
19904_.userPaused=false;
19905_.$slider.removeAttr("data-is-user-paused");
19906_.$autoplayButton.remove();
19907}
19908if(_.$slides){
19909_.$slides
19910.removeClass('slick-slide slick-active slick-center slick-visible slick-current')
19911.removeAttr('aria-hidden')
19912.removeAttr('data-slick-index')
19913.each(function(){
19914$(this).attr('style',$(this).data('originalStyling'));
19915});
19916_.$slideTrack.children(this.options.slide).detach();
19917_.$slideTrack.detach();
19918_.$list.detach();
19919_.$slider.append(_.$slides);
19920}
19921_.cleanUpRows();
19922_.$slider.removeClass('slick-slider');
19923_.$slider.removeClass('slick-initialized');
19924_.unslicked=true;
19925if(!refresh){
19926_.$slider.trigger('destroy',[_]);
19927}
19928};
19929Slick.prototype.disableTransition=function(slide){
19930var _=this,
19931transition={};
19932transition[_.transitionType]='';
19933if(_.options.fade===false){
19934_.$slideTrack.css(transition);
19935}else{
19936_.$slides.eq(slide).css(transition);
19937}
19938};
19939Slick.prototype.fadeSlide=function(slideIndex,callback){
19940var _=this;
19941if(_.cssTransitions===false){
19942_.$slides.eq(slideIndex).css({
19943zIndex:_.options.zIndex
19944});
19945_.$slides.eq(slideIndex).animate({
19946opacity:1
19947},_.options.speed,_.options.easing,callback);
19948}else{
19949_.applyTransition(slideIndex);
19950_.$slides.eq(slideIndex).css({
19951opacity:1,
19952zIndex:_.options.zIndex
19953});
19954if(callback){
19955setTimeout(function(){
19956_.disableTransition(slideIndex);
19957callback.call();
19958},_.options.speed);
19959}
19960}
19961};
19962Slick.prototype.fadeSlideOut=function(slideIndex){
19963var _=this;
19964if(_.cssTransitions===false){
19965_.$slides.eq(slideIndex).animate({
19966opacity:0,
19967zIndex:_.options.zIndex-2
19968},_.options.speed,_.options.easing);
19969}else{
19970_.applyTransition(slideIndex);
19971_.$slides.eq(slideIndex).css({
19972opacity:0,
19973zIndex:_.options.zIndex-2
19974});
19975}
19976};
19977Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){
19978var _=this;
19979if(filter!==null){
19980_.$slidesCache=_.$slides;
19981_.unload();
19982_.$slideTrack.children(this.options.slide).detach();
19983_.$slidesCache.filter(filter).appendTo(_.$slideTrack);
19984_.reinit();
19985}
19986};
19987Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){
19988var _=this;
19989return _.currentSlide;
19990};
19991Slick.prototype.getDotCount=function(){
19992var _=this;
19993var breakPoint=0;
19994var counter=0;
19995var pagerQty=0;
19996if(_.options.infinite===true){
19997while(breakPoint<_.slideCount){
19998++pagerQty;
19999breakPoint=counter+_.options.slidesToScroll;
20000counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;
20001}
20002}else if(_.options.centerMode===true){
20003pagerQty=_.slideCount;
20004}else{
20005while(breakPoint<_.slideCount){
20006++pagerQty;
20007breakPoint=counter+_.options.slidesToScroll;
20008counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;
20009}
20010}
20011return pagerQty-1;
20012};
20013Slick.prototype.getLeft=function(slideIndex){
20014var _=this,
20015targetLeft,
20016verticalHeight,
20017verticalOffset=0,
20018targetSlide;
20019_.slideOffset=0;
20020verticalHeight=_.$slides.first().outerHeight(true);
20021if(_.options.infinite===true){
20022if(_.slideCount>_.options.slidesToShow){
20023_.slideOffset=(_.slideWidth*_.options.slidesToShow)*-1;
20024verticalOffset=(verticalHeight*_.options.slidesToShow)*-1;
20025}
20026if(_.slideCount%_.options.slidesToScroll!==0){
20027if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){
20028if(slideIndex>_.slideCount){
20029_.slideOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth)*-1;
20030verticalOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight)*-1;
20031}else{
20032_.slideOffset=((_.slideCount%_.options.slidesToScroll)*_.slideWidth)*-1;
20033verticalOffset=((_.slideCount%_.options.slidesToScroll)*verticalHeight)*-1;
20034}
20035}
20036}
20037}else{
20038if(slideIndex+_.options.slidesToShow>_.slideCount){
20039_.slideOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*_.slideWidth;
20040verticalOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*verticalHeight;
20041}
20042}
20043if(_.slideCount<=_.options.slidesToShow){
20044_.slideOffset=0;
20045verticalOffset=0;
20046}
20047if(_.options.centerMode===true&&_.options.infinite===true){
20048_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth;
20049}else if(_.options.centerMode===true){
20050_.slideOffset=0;
20051_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2);
20052}
20053if(_.options.vertical===false){
20054targetLeft=((slideIndex*_.slideWidth)*-1)+_.slideOffset;
20055}else{
20056targetLeft=((slideIndex*verticalHeight)*-1)+verticalOffset;
20057}
20058if(_.options.variableWidth===true){
20059if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){
20060targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);
20061}else{
20062targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow);
20063}
20064if(_.options.rtl===true){
20065if(targetSlide[0]){
20066targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;
20067}else{
20068targetLeft=0;
20069}
20070}else{
20071targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;
20072}
20073if(_.options.centerMode===true){
20074if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){
20075targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);
20076}else{
20077targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow+1);
20078}
20079if(_.options.rtl===true){
20080if(targetSlide[0]){
20081targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;
20082}else{
20083targetLeft=0;
20084}
20085}else{
20086targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;
20087}
20088targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2;
20089}
20090}
20091return targetLeft;
20092};
20093Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){
20094var _=this;
20095return _.options[option];
20096};
20097Slick.prototype.getNavigableIndexes=function(){
20098var _=this,
20099breakPoint=0,
20100counter=0,
20101indexes=[],
20102max;
20103if(_.options.infinite===false){
20104max=_.slideCount;
20105}else{
20106breakPoint=_.options.slidesToScroll*-1;
20107counter=_.options.slidesToScroll*-1;
20108max=_.slideCount*2;
20109}
20110while(breakPoint<max){
20111indexes.push(breakPoint);
20112breakPoint=counter+_.options.slidesToScroll;
20113counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;
20114}
20115return indexes;
20116};
20117Slick.prototype.getSlick=function(){
20118return this;
20119};
20120Slick.prototype.getSlideCount=function(){
20121var _=this,
20122slidesTraversed,swipedSlide,centerOffset;
20123centerOffset=_.options.centerMode===true?_.slideWidth*Math.floor(_.options.slidesToShow/2):0;
20124if(_.options.swipeToSlide===true){
20125_.$slideTrack.find('.slick-slide').each(function(index,slide){
20126if(slide.offsetLeft-centerOffset+($(slide).outerWidth()/2)>(_.swipeLeft*-1)){
20127swipedSlide=slide;
20128return false;
20129}
20130});
20131slidesTraversed=Math.abs($(swipedSlide).attr('data-slick-index')-_.currentSlide)||1;
20132return slidesTraversed;
20133}else{
20134return _.options.slidesToScroll;
20135}
20136};
20137Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){
20138var _=this;
20139_.changeSlide({
20140data:{
20141message:'index',
20142index:parseInt(slide)
20143}
20144},dontAnimate);
20145};
20146Slick.prototype.init=function(creation){
20147var _=this;
20148if(!$(_.$slider).hasClass('slick-initialized')){
20149$(_.$slider).addClass('slick-initialized');
20150_.buildRows();
20151_.buildOut();
20152_.setProps();
20153_.startLoad();
20154_.loadSlider();
20155_.initializeEvents();
20156_.updateArrows();
20157_.updateDots();
20158}
20159if(creation){
20160_.$slider.trigger('init',[_]);
20161}
20162_.$slideTrack.find('.slick-cloned').attr({
20163'aria-hidden':'true',
20164'tabindex':'-1'
20165}).find('a, input, button, select, [role="link"], .slick-focusable').attr({
20166'tabindex':'-1'
20167});
20168if(_.options.accessibility===true){
20169_.initADA();
20170}
20171};
20172Slick.prototype.initAutoplayButtonEvents=function(){
20173var _=this;
20174if(_.$autoplayButton&&_.$autoplayButton.length){
20175_.$autoplayButton.on("click",_.toggleAutoplayButton);
20176}
20177}
20178Slick.prototype.initArrowEvents=function(){
20179var _=this;
20180if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){
20181_.$prevArrow.on('click.slick',{
20182message:'previous'
20183},_.changeSlide);
20184_.$nextArrow.on('click.slick',{
20185message:'next'
20186},_.changeSlide);
20187}
20188};
20189Slick.prototype.initDotEvents=function(){
20190var _=this;
20191if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){
20192$('li',_.$dots).on('click.slick',{
20193message:'index'
20194},_.changeSlide);
20195}
20196if(_.options.dots===true&&_.options.pauseOnDotsHover===true&&_.options.autoplay===true&&!_.options.autoplayButton){
20197$('li',_.$dots)
20198.on('mouseenter.slick',$.proxy(_.setPaused,_,true))
20199.on('mouseleave.slick',$.proxy(_.setPaused,_,false));
20200}
20201};
20202Slick.prototype.initializeEvents=function(){
20203var _=this;
20204_.initArrowEvents();
20205_.initAutoplayButtonEvents();
20206_.initDotEvents();
20207_.$list.on('touchstart.slick mousedown.slick',{
20208action:'start'
20209},_.swipeHandler);
20210_.$list.on('touchmove.slick mousemove.slick',{
20211action:'move'
20212},_.swipeHandler);
20213_.$list.on('touchend.slick mouseup.slick',{
20214action:'end'
20215},_.swipeHandler);
20216_.$list.on('touchcancel.slick mouseleave.slick',{
20217action:'end'
20218},_.swipeHandler);
20219_.$list.on('click.slick',_.clickHandler);
20220$(document).on(_.visibilityChange,$.proxy(_.visibility,_));
20221_.$list.on('mouseenter.slick',$.proxy(_.setPaused,_,true));
20222_.$list.on('mouseleave.slick',$.proxy(_.setPaused,_,false));
20223if(_.options.accessibility===true){
20224_.$list.on('keydown.slick',_.keyHandler);
20225}
20226if(_.options.focusOnSelect===true){
20227$(_.$slideTrack).children().on('click.slick',_.selectHandler);
20228}
20229$(window).on('orientationchange.slick.slick-'+_.instanceUid,$.proxy(_.orientationChange,_));
20230$(window).on('resize.slick.slick-'+_.instanceUid,$.proxy(_.resize,_));
20231$('[draggable!=true]',_.$slideTrack).on('dragstart',_.preventDefault);
20232$(window).on('load.slick.slick-'+_.instanceUid,_.setPosition);
20233$(document).on('ready.slick.slick-'+_.instanceUid,_.setPosition);
20234};
20235Slick.prototype.initUI=function(){
20236var _=this;
20237if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){
20238_.$prevArrow.show();
20239_.$nextArrow.show();
20240}
20241if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){
20242_.$dots.show();
20243}
20244if(_.options.autoplay===true){
20245_.intersectionObserver=new IntersectionObserver(function(entries){
20246_.partiallyVisible=entries[0].isIntersecting;
20247if(_.partiallyVisible){
20248if(!_.userPaused){
20249_.play();
20250}
20251}else{
20252_.pause();
20253}
20254},{
20255threshold:0.5
20256});
20257_.intersectionObserver.observe(_.$slider[0]);
20258_.autoPlay();
20259}
20260};
20261Slick.prototype.keyHandler=function(event){
20262var _=this;
20263if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')){
20264if(event.keyCode===37&&_.options.accessibility===true){
20265_.changeSlide({
20266data:{
20267message:'previous'
20268}
20269});
20270}else if(event.keyCode===39&&_.options.accessibility===true){
20271_.changeSlide({
20272data:{
20273message:'next'
20274}
20275});
20276}
20277}
20278};
20279Slick.prototype.lazyLoad=function(){
20280var _=this,
20281loadRange,cloneRange,rangeStart,rangeEnd;
20282function loadImages(imagesScope){
20283$('img[data-lazy]',imagesScope).each(function(){
20284var image=$(this),
20285imageSource=$(this).attr('data-lazy'),
20286imageToLoad=document.createElement('img');
20287imageToLoad.onload=function(){
20288image
20289.animate({opacity:0}
20289,100,function(){
20290image
20291.attr('src',imageSource)
20292.animate({opacity:1},200,function(){
20293image
20294.removeAttr('data-lazy')
20295.removeClass('slick-loading');
20296});
20297});
20298};
20299imageToLoad.src=imageSource;
20300});
20301}
20302if(_.options.centerMode===true){
20303if(_.options.infinite===true){
20304rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);
20305rangeEnd=rangeStart+_.options.slidesToShow+2;
20306}else{
20307rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));
20308rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide;
20309}
20310}else{
20311rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;
20312rangeEnd=rangeStart+_.options.slidesToShow;
20313if(_.options.fade===true){
20314if(rangeStart>0)rangeStart--;
20315if(rangeEnd<=_.slideCount)rangeEnd++;
20316}
20317}
20318loadRange=_.$slider.find('.slick-slide').slice(rangeStart,rangeEnd);
20319loadImages(loadRange);
20320if(_.slideCount<=_.options.slidesToShow){
20321cloneRange=_.$slider.find('.slick-slide');
20322loadImages(cloneRange);
20323}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){
20324cloneRange=_.$slider.find('.slick-cloned').slice(0,_.options.slidesToShow);
20325loadImages(cloneRange);
20326}else if(_.currentSlide===0){
20327cloneRange=_.$slider.find('.slick-cloned').slice(_.options.slidesToShow*-1);
20328loadImages(cloneRange);
20329}
20330};
20331Slick.prototype.loadSlider=function(){
20332var _=this;
20333_.setPosition();
20334_.$slideTrack.css({
20335opacity:1
20336});
20337_.$slider.removeClass('slick-loading');
20338_.initUI();
20339if(_.options.lazyLoad==='progressive'){
20340_.progressiveLazyLoad();
20341}
20342};
20343Slick.prototype.next=Slick.prototype.slickNext=function(){
20344var _=this;
20345_.changeSlide({
20346data:{
20347message:'next'
20348}
20349});
20350};
20351Slick.prototype.orientationChange=function(){
20352var _=this;
20353_.checkResponsive();
20354_.setPosition();
20355};
20356Slick.prototype.pause=Slick.prototype.slickPause=function(){
20357var _=this;
20358_.paused=true;
20359_.autoPlayClear();
20360};
20361Slick.prototype.play=Slick.prototype.slickPlay=function(){
20362var _=this;
20363_.paused=false;
20364if(_.options.autoplay===true){
20365_.autoPlay();
20366}
20367};
20368Slick.prototype.postSlide=function(index){
20369var _=this;
20370_.$slider.trigger('afterChange',[_,index]);
20371_.animating=false;
20372_.setPosition();
20373_.swipeLeft=null;
20374if(_.options.autoplay===true&&_.paused===false){
20375_.autoPlay();
20376}
20377_.$slideTrack.find('.slick-cloned').attr({
20378'aria-hidden':'true',
20379'tabindex':'-1'
20380}).find('a, input, button, select, [role="link"]').attr({
20381'tabindex':'-1'
20382});
20383if(_.options.accessibility===true){
20384_.initADA();
20385}
20386};
20387Slick.prototype.prev=Slick.prototype.slickPrev=function(){
20388var _=this;
20389_.changeSlide({
20390data:{
20391message:'previous'
20392}
20393});
20394};
20395Slick.prototype.preventDefault=function(event){
20396event.preventDefault();
20397};
20398Slick.prototype.progressiveLazyLoad=function(){
20399var _=this,
20400imgCount,targetImage;
20401imgCount=$('img[data-lazy]',_.$slider).length;
20402if(imgCount>0){
20403targetImage=$('img[data-lazy]',_.$slider).first();
20404targetImage.attr('src',null);
20405targetImage.attr('src',targetImage.attr('data-lazy')).removeClass('slick-loading').load(function(){
20406targetImage.removeAttr('data-lazy');
20407_.progressiveLazyLoad();
20408if(_.options.adaptiveHeight===true){
20409_.setPosition();
20410}
20411})
20412.error(function(){
20413targetImage.removeAttr('data-lazy');
20414_.progressiveLazyLoad();
20415});
20416}
20417};
20418Slick.prototype.refresh=function(initializing){
20419var _=this,currentSlide,firstVisible;
20420firstVisible=_.slideCount-_.options.slidesToShow;
20421if(!_.options.infinite){
20422if(_.slideCount<=_.options.slidesToShow){
20423_.currentSlide=0;
20424}else if(_.currentSlide>firstVisible){
20425_.currentSlide=firstVisible;
20426}
20427}
20428currentSlide=_.currentSlide;
20429_.destroy(true);
20430$.extend(_,_.initials,{currentSlide:currentSlide});
20431_.init();
20432if(!initializing){
20433_.changeSlide({
20434data:{
20435message:'index',
20436index:currentSlide
20437}
20438},false);
20439}
20440};
20441Slick.prototype.registerBreakpoints=function(){
20442var _=this,breakpoint,currentBreakpoint,l,
20443responsiveSettings=_.options.responsive||null;
20444if($.type(responsiveSettings)==="array"&&responsiveSettings.length){
20445_.respondTo=_.options.respondTo||'window';
20446for(breakpoint in responsiveSettings){
20447l=_.breakpoints.length-1;
20448currentBreakpoint=responsiveSettings[breakpoint].breakpoint;
20449if(responsiveSettings.hasOwnProperty(breakpoint)){
20450while(l>=0){
20451if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint){
20452_.breakpoints.splice(l,1);
20453}
20454l--;
20455}
20456_.breakpoints.push(currentBreakpoint);
20457_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings;
20458}
20459}
20460_.breakpoints.sort(function(a,b){
20461return(_.options.mobileFirst)?a-b:b-a;
20462});
20463}
20464};
20465Slick.prototype.reinit=function(){
20466var _=this;
20467_.$slides=
20468_.$slideTrack
20469.children(_.options.slide)
20470.addClass('slick-slide');
20471_.slideCount=_.$slides.length;
20472if(_.currentSlide>=_.slideCount&&_.currentSlide!==0){
20473_.currentSlide=_.currentSlide-_.options.slidesToScroll;
20474}
20475if(_.slideCount<=_.options.slidesToShow){
20476_.currentSlide=0;
20477}
20478_.registerBreakpoints();
20479_.setProps();
20480_.setupInfinite();
20481_.buildArrows();
20482_.buildAutoplayButton();
20483_.updateArrows();
20484_.initArrowEvents();
20485_.initAutoplayButtonEvents();
20486_.buildDots();
20487_.updateDots();
20488_.initDotEvents();
20489_.checkResponsive(false,true);
20490if(_.options.focusOnSelect===true){
20491$(_.$slideTrack).children().on('click.slick',_.selectHandler);
20492}
20493_.setSlideClasses(0);
20494_.setPosition();
20495_.$slider.trigger('reInit',[_]);
20496if(_.options.autoplay===true){
vendor: 8,987 bytes, lines 20497-20830
20497_.focusHandler();
20498}
20499if(_.options.accessibility===true){
20500_.initADA();
20501}
20502};
20503Slick.prototype.resize=function(){
20504var _=this;
20505if($(window).width()!==_.windowWidth){
20506clearTimeout(_.windowDelay);
20507_.windowDelay=window.setTimeout(function(){
20508_.windowWidth=$(window).width();
20509_.checkResponsive();
20510if(!_.unslicked){
20511_.setPosition();
20512}
20513},50);
20514}
20515};
20516Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){
20517var _=this;
20518if(typeof(index)==='boolean'){
20519removeBefore=index;
20520index=removeBefore===true?0:_.slideCount-1;
20521}else{
20522index=removeBefore===true?--index:index;
20523}
20524if(_.slideCount<1||index<0||index>_.slideCount-1){
20525return false;
20526}
20527_.unload();
20528if(removeAll===true){
20529_.$slideTrack.children().remove();
20530}else{
20531_.$slideTrack.children(this.options.slide).eq(index).remove();
20532}
20533_.$slides=_.$slideTrack.children(this.options.slide);
20534_.$slideTrack.children(this.options.slide).detach();
20535_.$slideTrack.append(_.$slides);
20536_.$slidesCache=_.$slides;
20537_.reinit();
20538};
20539Slick.prototype.setCSS=function(position){
20540var _=this,
20541positionProps={},
20542x,y;
20543if(_.options.rtl===true){
20544position=-position;
20545}
20546x=_.positionProp=='left'?Math.ceil(position)+'px':'0px';
20547y=_.positionProp=='top'?Math.ceil(position)+'px':'0px';
20548positionProps[_.positionProp]=position;
20549if(_.transformsEnabled===false){
20550_.$slideTrack.css(positionProps);
20551}else{
20552positionProps={};
20553if(_.cssTransitions===false){
20554positionProps[_.animType]='translate('+x+', '+y+')';
20555_.$slideTrack.css(positionProps);
20556}else{
20557positionProps[_.animType]='translate3d('+x+', '+y+', 0px)';
20558_.$slideTrack.css(positionProps);
20559}
20560}
20561};
20562Slick.prototype.setDimensions=function(){
20563var _=this;
20564if(_.options.vertical===false){
20565if(_.options.centerMode===true){
20566_.$list.css({
20567padding:('0px '+_.options.centerPadding)
20568});
20569}
20570}else{
20571_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);
20572if(_.options.centerMode===true){
20573_.$list.css({
20574padding:(_.options.centerPadding+' 0px')
20575});
20576}
20577}
20578_.listWidth=_.$list.width();
20579_.listHeight=_.$list.height();
20580if(_.options.vertical===false&&_.options.variableWidth===false){
20581_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);
20582_.$slideTrack.width(Math.ceil((_.slideWidth*_.$slideTrack.children('.slick-slide').length)));
20583}else if(_.options.variableWidth===true){
20584_.$slideTrack.width(5000*_.slideCount);
20585}else{
20586_.slideWidth=Math.ceil(_.listWidth);
20587_.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true)*_.$slideTrack.children('.slick-slide').length)));
20588}
20589var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();
20590if(_.options.variableWidth===false)_.$slideTrack.children('.slick-slide').width(_.slideWidth-offset);
20591};
20592Slick.prototype.setFade=function(){
20593var _=this,
20594targetLeft;
20595_.$slides.each(function(index,element){
20596targetLeft=(_.slideWidth*index)*-1;
20597if(_.options.rtl===true){
20598$(element).css({
20599position:'relative',
20600right:targetLeft,
20601top:0,
20602zIndex:_.options.zIndex-2,
20603opacity:0
20604});
20605}else{
20606$(element).css({
20607position:'relative',
20608left:targetLeft,
20609top:0,
20610zIndex:_.options.zIndex-2,
20611opacity:0
20612});
20613}
20614});
20615_.$slides.eq(_.currentSlide).css({
20616zIndex:_.options.zIndex-1,
20617opacity:1
20618});
20619};
20620Slick.prototype.setHeight=function(){
20621var _=this;
20622if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){
20623var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);
20624_.$list.css('height',targetHeight);
20625}
20626};
20627Slick.prototype.setOption=Slick.prototype.slickSetOption=function(option,value,refresh){
20628var _=this,l,item;
20629if(option==="responsive"&&$.type(value)==="array"){
20630for(item in value){
20631if($.type(_.options.responsive)!=="array"){
20632_.options.responsive=[value[item]];
20633}else{
20634l=_.options.responsive.length-1;
20635while(l>=0){
20636if(_.options.responsive[l].breakpoint===value[item].breakpoint){
20637_.options.responsive.splice(l,1);
20638}
20639l--;
20640}
20641_.options.responsive.push(value[item]);
20642}
20643}
20644}else{
20645_.options[option]=value;
20646}
20647if(refresh===true){
20648_.unload();
20649_.reinit();
20650}
20651};
20652Slick.prototype.setPosition=function(){
20653var _=this;
20654_.setDimensions();
20655_.setHeight();
20656if(_.options.fade===false){
20657_.setCSS(_.getLeft(_.currentSlide));
20658}else{
20659_.setFade();
20660}
20661_.$slider.trigger('setPosition',[_]);
20662};
20663Slick.prototype.setProps=function(){
20664var _=this,
20665bodyStyle=document.body.style;
20666_.positionProp=_.options.vertical===true?'top':'left';
20667if(_.positionProp==='top'){
20668_.$slider.addClass('slick-vertical');
20669}else{
20670_.$slider.removeClass('slick-vertical');
20671}
20672if(bodyStyle.WebkitTransition!==undefined||
20673bodyStyle.MozTransition!==undefined||
20674bodyStyle.msTransition!==undefined){
20675if(_.options.useCSS===true){
20676_.cssTransitions=true;
20677}
20678}
20679if(_.options.fade){
20680if(typeof _.options.zIndex==='number'){
20681if(_.options.zIndex<3){
20682_.options.zIndex=3;
20683}
20684}else{
20685_.options.zIndex=_.defaults.zIndex;
20686}
20687}
20688if(bodyStyle.OTransform!==undefined){
20689_.animType='OTransform';
20690_.transformType='-o-transform';
20691_.transitionType='OTransition';
20692if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;
20693}
20694if(bodyStyle.MozTransform!==undefined){
20695_.animType='MozTransform';
20696_.transformType='-moz-transform';
20697_.transitionType='MozTransition';
20698if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false;
20699}
20700if(bodyStyle.webkitTransform!==undefined){
20701_.animType='webkitTransform';
20702_.transformType='-webkit-transform';
20703_.transitionType='webkitTransition';
20704if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;
20705}
20706if(bodyStyle.msTransform!==undefined){
20707_.animType='msTransform';
20708_.transformType='-ms-transform';
20709_.transitionType='msTransition';
20710if(bodyStyle.msTransform===undefined)_.animType=false;
20711}
20712if(bodyStyle.transform!==undefined&&_.animType!==false){
20713_.animType='transform';
20714_.transformType='transform';
20715_.transitionType='transition';
20716}
20717_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==false);
20718};
20719Slick.prototype.setSlideClasses=function(index){
20720var _=this,
20721centerOffset,allSlides,indexOffset,remainder;
20722allSlides=_.$slider
20723.find('.slick-slide')
20724.removeClass('slick-active slick-center slick-current');
20725if(_.options.accessibility){
20726_.$slider.find('.slick-slide').attr('aria-hidden','true');
20727}
20728_.$slides
20729.eq(index)
20730.addClass('slick-current');
20731if(_.options.centerMode===true){
20732centerOffset=Math.floor(_.options.slidesToShow/2);
20733if(_.options.infinite===true){
20734if(index>=centerOffset&&index<=(_.slideCount-1)-centerOffset){
20735_.$slides
20736.slice(index-centerOffset,index+centerOffset+1)
20737.addClass('slick-active')
20738.attr('aria-hidden','false');
20739}else{
20740indexOffset=_.options.slidesToShow+index;
20741allSlides
20742.slice(indexOffset-centerOffset+1,indexOffset+centerOffset+2)
20743.addClass('slick-active')
20744.attr('aria-hidden','false');
20745}
20746if(index===0){
20747allSlides
20748.eq(allSlides.length-1-_.options.slidesToShow)
20749.addClass('slick-center');
20750}else if(index===_.slideCount-1){
20751allSlides
20752.eq(_.options.slidesToShow)
20753.addClass('slick-center');
20754}
20755}
20756_.$slides
20757.eq(index)
20758.addClass('slick-center');
20759}else{
20760if(index>=0&&index<=(_.slideCount-_.options.slidesToShow)){
20761_.$slides
20762.slice(index,index+_.options.slidesToShow)
20763.addClass('slick-active')
20764.attr('aria-hidden','false');
20765}else if(allSlides.length<=_.options.slidesToShow){
20766allSlides
20767.addClass('slick-active')
20768.attr('aria-hidden','false');
20769}else{
20770remainder=_.slideCount%_.options.slidesToShow;
20771indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;
20772if(_.options.slidesToShow==_.options.slidesToScroll&&(_.slideCount-index)<_.options.slidesToShow){
20773allSlides
20774.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder)
20775.addClass('slick-active')
20776.attr('aria-hidden','false');
20777}else{
20778allSlides
20779.slice(indexOffset,indexOffset+_.options.slidesToShow)
20780.addClass('slick-active')
20781.attr('aria-hidden','false');
20782}
20783}
20784}
20785if(_.options.lazyLoad==='ondemand'){
20786_.lazyLoad();
20787}
20788};
20789Slick.prototype.setupInfinite=function(){
20790var _=this,
20791i,slideIndex,infiniteCount;
20792if(_.options.fade===true){
20793_.options.centerMode=false;
20794}
20795if(_.options.infinite===true&&_.options.fade===false){
20796slideIndex=null;
20797if(_.slideCount>_.options.slidesToShow){
20798if(_.options.centerMode===true){
20799infiniteCount=_.options.slidesToShow+1;
20800}else{
20801infiniteCount=_.options.slidesToShow;
20802}
20803for(i=_.slideCount;i>(_.slideCount-infiniteCount);i-=1){
20804slideIndex=i-1;
20805let $clone=$(_.$slides[slideIndex]).clone(true).removeAttr('id');
20806$clone.find('.i4-img-fancybox').removeClass('i4-img-fancybox');
20807$clone.attr('data-slick-index',slideIndex-_.slideCount)
20808.attr("tabindex","-1")
20809.attr("aria-hidden","true")
20810.prependTo(_.$slideTrack)
20811.addClass('slick-cloned');
20812}
20813for(i=0;i<infiniteCount;i+=1){
20814slideIndex=i;
20815let $clone=$(_.$slides[slideIndex]).clone(true).removeAttr('id');
20816$clone.find('.i4-img-fancybox').removeClass('i4-img-fancybox');
20817$clone.attr('data-slick-index',slideIndex+_.slideCount)
20818.attr("tabindex","-1")
20819.attr("aria-hidden","true")
20820.appendTo(_.$slideTrack)
20821.addClass('slick-cloned');
20822}
20823_.$slideTrack.find('.slick-cloned').find('[id]').each(function(){
20824$(this).removeAttr('id');
20825});
20826}
20827}
20828};
20829Slick.prototype.updateAutoplayButton=function(){
20830var _=this;
20831_.$autoplayButton.removeClass("play pause");
20832_.$slider.removeClass("slick-play slick-pause");
20833if(!_.paused){
20834_.$autoplayButton.addClass("pause");
20835_.$autoplayButton.attr("aria-label",_.$autoplayButton.attr("data-pause-label"));
20836_.$slider.addClass("slick-play");
20837}else{
20838_.$autoplayButton.addClass("play");
20839_.$autoplayButton.attr("aria-label",_.$autoplayButton.attr("data-play-label"));
20840_.$slider.addClass("slick-pause");
20841}
20842}
20843Slick.prototype.toggleAutoplayButton=function(){
20844var _=this;
20845_.paused=!_.paused;
20846if(!_.paused){
20847_.$slider.attr("data-is-user-paused","false");
20848if(_.options.autoplay===true){
20849_.autoPlay();
20850}
20851_.userPaused=false;
20852}else{
20853_.$slider.attr("data-is-user-paused","true");
20854_.userPaused=true;
20855_.autoPlayClear();
20856}
20857_.updateAutoplayButton();
20858}
20859Slick.prototype.setPaused=function(paused){
20860var _=this;
20861if(_.userPaused)return;
20862if(_.options.autoplay===true&&(_.options.pauseOnHover===true&&!_.options.autoplayButton===true)){
20863_.paused=paused;
20864if(!paused){
20865_.autoPlay();
20866}else{
20867_.autoPlayClear();
20868}
20869}
20870};
20871Slick.prototype.selectHandler=function(event){
20872var _=this;
20873var targetElement=
20874$(event.target).is('.slick-slide')?
20875$(event.target):
20876$(event.target).parents('.slick-slide');
20877var index=parseInt(targetElement.attr('data-slick-index'));
20878if(!index)index=0;
20879if(_.slideCount<=_.options.slidesToShow){
20880_.setSlideClasses(index);
20881_.asNavFor(index);
20882return;
20883}
20884_.slideHandler(index);
20885};
20886Slick.prototype.slideHandler=function(index,sync,dontAnimate){
20887var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,
20888_=this;
20889sync=sync||false;
20890if(_.animating===true&&_.options.waitForAnimate===true){
20891return;
20892}
20893if(_.options.fade===true&&_.currentSlide===index){
20894return;
20895}
20896if(_.slideCount<=_.options.slidesToShow){
20897return;
20898}
20899if(sync===false){
20900_.asNavFor(index);
20901}
20902targetSlide=index;
20903targetLeft=_.getLeft(targetSlide);
20904slideLeft=_.getLeft(_.currentSlide);
20905_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;
20906if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){
20907if(_.options.fade===false){
20908targetSlide=_.currentSlide;
20909if(dontAnimate!==true){
20910_.animateSlide(slideLeft,function(){
20911_.postSlide(targetSlide);
20912});
20913}else{
20914_.postSlide(targetSlide);
20915}
20916}
20917return;
20918}else if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>(_.slideCount-_.options.slidesToScroll))){
20919if(_.options.fade===false){
20920targetSlide=_.currentSlide;
20921if(dontAnimate!==true){
20922_.animateSlide(slideLeft,function(){
20923_.postSlide(targetSlide);
20924});
20925}else{
20926_.postSlide(targetSlide);
20927}
20928}
20929return;
20930}
20931if(_.options.autoplay===true){
20932clearInterval(_.autoPlayTimer);
20933}
20934if(targetSlide<0){
20935if(_.slideCount%_.options.slidesToScroll!==0){
20936animSlide=_.slideCount-(_.slideCount%_.options.slidesToScroll);
20937}else{
20938animSlide=_.slideCount+targetSlide;
20939}
20940}else if(targetSlide>=_.slideCount){
20941if(_.slideCount%_.options.slidesToScroll!==0){
20942animSlide=0;
20943}else{
20944animSlide=targetSlide-_.slideCount;
20945}
20946}else{
20947animSlide=targetSlide;
20948}
20949_.animating=true;
20950_.$slider.trigger('beforeChange',[_,_.currentSlide,animSlide]);
20951oldSlide=_.currentSlide;
20952_.currentSlide=animSlide;
20953_.setSlideClasses(_.currentSlide);
20954_.updateDots();
20955_.updateArrows();
20956if(_.options.fade===true){
20957if(dontAnimate!==true){
20958_.fadeSlideOut(oldSlide);
20959_.fadeSlide(animSlide,function(){
20960_.postSlide(animSlide);
20961});
20962}else{
20963_.postSlide(animSlide);
20964}
20965_.animateHeight();
20966return;
20967}
20968if(dontAnimate!==true){
20969_.animateSlide(targetLeft,function(){
20970_.postSlide(animSlide);
20971});
20972}else{
20973_.postSlide(animSlide);
20974}
20975};
20976Slick.prototype.startLoad=function(){
20977var _=this;
20978if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){
20979_.$prevArrow.hide();
20980_.$nextArrow.hide();
20981}
20982if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){
20983_.$dots.hide();
20984}
20985_.$slider.addClass('slick-loading');
20986};
20987Slick.prototype.swipeDirection=function(){
20988var xDist,yDist,r,swipeAngle,_=this;
20989xDist=_.touchObject.startX-_.touchObject.curX;
20990yDist=_.touchObject.startY-_.touchObject.curY;
20991r=Math.atan2(yDist,xDist);
20992swipeAngle=Math.round(r*180/Math.PI);
20993if(swipeAngle<0){
20994swipeAngle=360-Math.abs(swipeAngle);
20995}
20996if((swipeAngle<=45)&&(swipeAngle>=0)){
20997return(_.options.rtl===false?'left':'right');
20998}
20999if((swipeAngle<=360)&&(swipeAngle>=315)){
21000return(_.options.rtl===false?'left':'right');
21001}
21002if((swipeAngle>=135)&&(swipeAngle<=225)){
21003return(_.options.rtl===false?'right':'left');
21004}
21005if(_.options.verticalSwiping===true){
21006if((swipeAngle>=35)&&(swipeAngle<=135)){
21007return'left';
21008}else{
21009return'right';
vendor: 4,443 bytes, lines 21010-21163
21010}
21011}
21012return'vertical';
21013};
21014Slick.prototype.swipeEnd=function(event){
21015var _=this,
21016slideCount;
21017_.dragging=false;
21018_.shouldClick=(_.touchObject.swipeLength>10)?false:true;
21019if(_.touchObject.curX===undefined){
21020return false;
21021}
21022if(_.touchObject.edgeHit===true){
21023_.$slider.trigger('edge',[_,_.swipeDirection()]);
21024}
21025if(_.touchObject.swipeLength>=_.touchObject.minSwipe){
21026switch(_.swipeDirection()){
21027case'left':
21028slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();
21029_.slideHandler(slideCount);
21030_.currentDirection=0;
21031_.touchObject={};
21032_.$slider.trigger('swipe',[_,'left']);
21033break;
21034case'right':
21035slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();
21036_.slideHandler(slideCount);
21037_.currentDirection=1;
21038_.touchObject={};
21039_.$slider.trigger('swipe',[_,'right']);
21040break;
21041}
21042}else{
21043if(_.touchObject.startX!==_.touchObject.curX){
21044_.slideHandler(_.currentSlide);
21045_.touchObject={};
21046}
21047}
21048};
21049Slick.prototype.swipeHandler=function(event){
21050var _=this;
21051if((_.options.swipe===false)||('ontouchend'in document&&_.options.swipe===false)){
21052return;
21053}else if(_.options.draggable===false&&event.type.indexOf('mouse')!==-1){
21054return;
21055}
21056_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?
21057event.originalEvent.touches.length:1;
21058_.touchObject.minSwipe=_.listWidth/_.options
21059.touchThreshold;
21060if(_.options.verticalSwiping===true){
21061_.touchObject.minSwipe=_.listHeight/_.options
21062.touchThreshold;
21063}
21064switch(event.data.action){
21065case'start':
21066_.swipeStart(event);
21067break;
21068case'move':
21069_.swipeMove(event);
21070break;
21071case'end':
21072_.swipeEnd(event);
21073break;
21074}
21075};
21076Slick.prototype.swipeMove=function(event){
21077var _=this,
21078edgeWasHit=false,
21079curLeft,swipeDirection,swipeLength,positionOffset,touches;
21080touches=event.originalEvent!==undefined?event.originalEvent.touches:null;
21081if(!_.dragging||touches&&touches.length!==1){
21082return false;
21083}
21084curLeft=_.getLeft(_.currentSlide);
21085_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;
21086_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;
21087_.touchObject.swipeLength=Math.round(Math.sqrt(
21088Math.pow(_.touchObject.curX-_.touchObject.startX,2)));
21089if(_.options.verticalSwiping===true){
21090_.touchObject.swipeLength=Math.round(Math.sqrt(
21091Math.pow(_.touchObject.curY-_.touchObject.startY,2)));
21092}
21093swipeDirection=_.swipeDirection();
21094if(swipeDirection==='vertical'){
21095return;
21096}
21097if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){
21098event.preventDefault();
21099}
21100positionOffset=(_.options.rtl===false?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);
21101if(_.options.verticalSwiping===true){
21102positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1;
21103}
21104swipeLength=_.touchObject.swipeLength;
21105_.touchObject.edgeHit=false;
21106if(_.options.infinite===false){
21107if((_.currentSlide===0&&swipeDirection==='right')||(_.currentSlide>=_.getDotCount()&&swipeDirection==='left')){
21108swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;
21109_.touchObject.edgeHit=true;
21110}
21111}
21112if(_.options.vertical===false){
21113_.swipeLeft=curLeft+swipeLength*positionOffset;
21114}else{
21115_.swipeLeft=curLeft+(swipeLength*(_.$list.height()/_.listWidth))*positionOffset;
21116}
21117if(_.options.verticalSwiping===true){
21118_.swipeLeft=curLeft+swipeLength*positionOffset;
21119}
21120if(_.options.fade===true||_.options.touchMove===false){
21121return false;
21122}
21123if(_.animating===true){
21124_.swipeLeft=null;
21125return false;
21126}
21127_.setCSS(_.swipeLeft);
21128};
21129Slick.prototype.swipeStart=function(event){
21130var _=this,
21131touches;
21132if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){
21133_.touchObject={};
21134return false;
21135}
21136if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined){
21137touches=event.originalEvent.touches[0];
21138}
21139_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;
21140_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;
21141_.dragging=true;
21142};
21143Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){
21144var _=this;
21145if(_.$slidesCache!==null){
21146_.unload();
21147_.$slideTrack.children(this.options.slide).detach();
21148_.$slidesCache.appendTo(_.$slideTrack);
21149_.reinit();
21150}
21151};
21152Slick.prototype.unload=function(){
21153var _=this;
21154$('.slick-cloned',_.$slider).remove();
21155if(_.$dots){
21156_.$dots.remove();
21157}
21158if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)){
21159_.$prevArrow.remove();
21160}
21161if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)){
21162_.$nextArrow.remove();
21163}
21164if(_.$autoplayButton&&_.$autoplayButton.length){
21165_.$autoplayButton.remove();
21166}
21167_.$slides
21168.removeClass('slick-slide slick-active slick-visible slick-current')
21169.attr('aria-hidden','true')
21170.css('width','');
21171};
21172Slick.prototype.unslick=function(fromBreakpoint){
21173var _=this;
21174_.$slider.trigger('unslick',[_,fromBreakpoint]);
21175_.destroy();
21176};
21177Slick.prototype.updateArrows=function(){
21178var _=this,
21179centerOffset;
21180centerOffset=Math.floor(_.options.slidesToShow/2);
21181if(_.options.arrows===true&&
21182_.slideCount>_.options.slidesToShow&&
21183!_.options.infinite){
21184_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');
21185_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');
21186if(_.currentSlide===0){
21187_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');
21188_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');
21189}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===false){
21190_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');
21191_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');
21192}else if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===true){
21193_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');
21194_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');
21195}
21196}
21197};
21198Slick.prototype.updateDots=function(){
21199var _=this;
21200if(_.$dots!==null){
21201_.$dots
21202.find('li')
21203.removeClass('slick-active')
21204_.$dots
21205.find('li')
21206.eq(Math.floor(_.currentSlide/_.options.slidesToScroll))
21207.addClass('slick-active')
21208}
21209};
21210Slick.prototype.visibility=function(){
21211var _=this;
21212if(document[_.hidden]){
21213_.paused=true;
21214_.autoPlayClear();
21215}else{
21216if(_.options.autoplay===true){
21217_.paused=false;
21218_.autoPlay();
21219}
21220}
21221};
21222Slick.prototype.initADA=function(){
21223var _=this;
21224_.$slides.attr({
21225'aria-hidden':'true',
21226'tabindex':'-1'
21227}).find('a, input, button, select, [role="link"], .slick-focusable').attr({
21228'tabindex':'-1'
21229});
21230var helpMessage=$("body").find(".slick-help-message");
21231var helpMessageId=0;
21232if(helpMessage.length===0){
21233}else{
21234helpMessageId=helpMessage.attr("id");
21235}
21236_.$slideTrack.attr('role','list');
21237_.$slideTrack.attr('aria-describedby',helpMessageId);
21238_.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i){
21239$(this).attr({
21240'aria-roledescription':'Slide',
21241'role':'listitem'
21242});
21243if(_.$dots!==null){
21244$(this).attr({
21245'aria-labelledby':'slick-slide'+_.instanceUid+i+''
21246});
21247}
21248});
21249if(_.$dots!==null){
21250_.$dots.find('li').each(function(i){
21251$(this).attr({
21252'id':'slick-slide'+_.instanceUid+i+''
21253});
21254})
21255.find('button').end()
21256}
21257_.activateADA();
21258};
21259Slick.prototype.activateADA=function(){
21260var _=this;
21261_.$slideTrack.find('.slick-active').attr({
21262'aria-hidden':'false'
21263}).find('a, input, button, select, [role="link"], .slick-focusable').not("[aria-hidden='true']").not("[role='presentation']").attr({
21264'tabindex':'0'
21265});
21266};
21267Slick.prototype.focusHandler=function(){
21268var _=this;
21269_.$slider.on('focus.slick blur.slick','*',function(event){
21270event.stopImmediatePropagation();
21271var sf=$(this);
21272setTimeout(function(){
21273if(_.isPlay){
21274if(sf.is(':focus')){
21275_.autoPlayClear();
21276_.paused=true;
21277}else{
21278_.paused=false;
21279_.autoPlay();
21280}
21281}
21282},0);
21283});
21284};
21285$.fn.slick=function(){
21286var _=this,
21287opt=arguments[0],
21288args=Array.prototype.slice.call(arguments,1),
21289l=_.length,
21290i,
21291ret;
21292for(i=0;i<l;i++){
21293if(typeof opt=='object'||typeof opt=='undefined')
21294_[i].slick=new Slick(_[i],opt);
21295else
21296ret=_[i].slick[opt].apply(_[i].slick,args);
21297if(typeof ret!='undefined')return ret;
21298}
21299return _;
21300};
21301}));(function(){
21302(function(){
21303(function(){
21304(function(){
21305(function(){
21306this.isIos=function(){
21307var userAgent=window.navigator.userAgent.toLowerCase();
21308return/iphone|ipad|ipod/.test(userAgent);
21309}
21310this.getLocalStorageValue=function(){
21311return window.localStorage.getItem('ios-banner-clicked');
21312}
21313this.iOSLocalStorageIsSet=function(){
21314var clickedValue=this.getLocalStorageValue()
21315if(clickedValue){
21316var expiryDate=new Date(Date.parse(clickedValue));
21317expiryDate.setTime(expiryDate.getTime()+(30*24*60*60*1000))
21318if(expiryDate.getTime()<=new Date().getTime()){
21319window.localStorage.removeItem("ios-banner-clicked");
21320}
21321}
21322return this.getLocalStorageValue()!==null;
21323}
21324this.createIosAddToHomeBanner=function(){
21325if(this.isIos()&&!this.iOSLocalStorageIsSet()){
21326var iosAddToHomeBanner=document.createElement('div');
21327iosAddToHomeBanner.className='ios-add-to-home-banner__container';
21328iosAddToHomeBanner.id='ios-add-to-home-banner';
21329iosAddToHomeBanner.onclick=this.removeIosAddToHomeBanner;
21330var spanTextA=document.createElement('span');
21331spanTextA.innerHTML='Legen Sie ein Link zu dieser Website auf Ihrem iPhone ab: Tippen Sie';
21332var spanTextB=document.createElement('span');
21333spanTextB.innerHTML='und wählen Sie "Zum Home-Bildschirm hinzufügen".';
21334var imgIcon=document.createElement('img');
21335var contextPath=window.ionasInfo.context;
21336imgIcon.src=contextPath+"/:res/modules/common/common/social/addToHome/img/ios-share-icon.png";
21337iosAddToHomeBanner.appendChild(spanTextA);
21338iosAddToHomeBanner.appendChild(imgIcon);
21339iosAddToHomeBanner.appendChild(spanTextB);
21340var body=document.body;
21341body.appendChild(iosAddToHomeBanner);
21342body.style.position="relative";
21343}
21344}
21345this.removeIosAddToHomeBanner=function(){
21346var banner=document.getElementById('ios-add-to-home-banner');
21347banner.parentNode.removeChild(banner);
21348window.localStorage.setItem('ios-banner-clicked',new Date().toUTCString());
21349}
21350}).call(this.AddToHome||(this.AddToHome={}));
21351}).call(this.Social||(this.Social={}));
21352}).call(this.Common||(this.Common={}));
21353}).call(this.Common||(this.Common={}));
21354}).call(window.Pegasus||(window.Pegasus={}));jQuery(function($){
21355var numberOfPaginatorsInMainContent=0;
21356$('[data-paged-block-id]').each(function(){
21357var $turboPaginatable=$(this);
21358var pagedBlockID=$turboPaginatable.data('paged-block-id');
21359var isFirstMainContentPagination=false;
21360var $aside=$turboPaginatable.closest('aside');
21361if($aside.length===0){
21362isFirstMainContentPagination=numberOfPaginatorsInMainContent===0;
21363numberOfPaginatorsInMainContent++;
21364}
21365$turboPaginatable.on('click','.pagination a',function(event){
21366var $link=$(this);
21367var href=$link.prop('href');
21368var hash=$link.prop('hash');
21369$.get(href,function(data){
21370if(isFirstMainContentPagination&&window.history){
21371window.history.pushState(null,'',href);
21372}
21373var $newData=$(data).find('[data-paged-block-id="'+pagedBlockID+'"]');
21374$turboPaginatable.empty().append($newData.contents());
21375$turboPaginatable.trigger('contentChanged');
21376if(hash){
21377var $scroll=$('a[name="'+hash.substring(1)+']"');
21378if($scroll.length>0){
21379$('body').scrollTop($scroll.offset().top);
21380}
21381}
21382if(typeof initLightboxes!=="undefined"){
21383initLightboxes();
21384}
21385$turboPaginatable.trigger("newItems.common.common.lib.pagination",{target:$turboPaginatable});
21386setTimeout(()=>{
21387const linkElement=$turboPaginatable.get(0).querySelector("[data-bitv-preferred-focus]")||
21388$turboPaginatable.get(0).querySelector("a");
21389linkElement?.focus({preventScroll:!!hash});
21390},100)
21391});
21392event.preventDefault();
21393});
21394});
21395});
21396(function(undefined){if(!("ResizeObserver"in this
21397)){!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ResizeObserver=e()}(this,function(){"use strict";function t(t,e){function n(){o&&(o=!1,t()),s&&i()}function r(){p(n)}function i(){var t=Date.now();if(o){if(t-c<l)return;s=!0}else o=!0,s=!1,setTimeout(r,e);c=t}var o=!1,s=!1,c=0;return i}function e(t){return parseFloat(t)||0}function n(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.reduce(function(n,r){return n+e(t["border-"+r+"-width"])},0)}function r(t){for(var n=["top","right","bottom","left"],r={},i=0,o=n;i<o.length;i++){var s=o[i],c=t["padding-"+s];r[s]=e(c)}return r}function i(t){var e=t.getBBox();return u(0,0,e.width,e.height)}function o(t){var i=t.clientWidth,o=t.clientHeight;if(!i&&!o)return w;var c=g(t).getComputedStyle(t),a=r(c),h=a.left+a.right,f=a.top+a.bottom,d=e(c.width),p=e(c.height);if("border-box"===c.boxSizing&&(Math.round(d+h)!==i&&(d-=n(c,"left","right")+h),Math.round(p+f)!==o&&(p-=n(c,"top","bottom")+f)),!s(t)){var l=Math.round(d+h)-i,v=Math.round(p+f)-o;1!==Math.abs(l)&&(d-=l),1!==Math.abs(v)&&(p-=v)}return u(a.left,a.top,d,p)}function s(t){return t===g(t).document.documentElement}function c(t){return f?O(t)?i(t):o(t):w}function a(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(o.prototype);
vendor: 6,148 bytes, line 21397
21397return y(s,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),s}function u(t,e,n,r){return{x:t,y:e,width:n,height:r}}var h=function(){function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype["delete"]=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),f="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,d=function(){return"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")()}(),p=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame.bind(d):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),l=2,v=20,_=["top","right","bottom","left","width","height","size","weight"],b="undefined"!=typeof MutationObserver,m=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=t(this.refresh.bind(this),v)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},e.prototype.connect_=function(){f&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),b?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){f&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;_.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),y=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},g=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||d},w=u(0,0,0,0),O=function(){return"undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof g(t).SVGGraphicsElement}:function(t){return t instanceof g(t).SVGElement&&"function"==typeof t.getBBox}}(),E=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=u(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=c(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),M=function(){function t(t,e){var n=a(e);y(this,{target:t,contentRect:n})}return t}(),A=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new h,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof g(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new E(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof g(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e["delete"](t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new M(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),T="undefined"!=typeof WeakMap?new WeakMap:new h,x=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");
21397if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=m.getInstance(),r=new A(e,n,this);T.set(this,r)}return t}();return["observe","unobserve","disconnect"].forEach(function(t){x.prototype[t]=function(){var e;return(e=T.get(this))[t].apply(e,arguments)}}),function(){return"undefined"!=typeof d.ResizeObserver?d.ResizeObserver:x}()});}}).call('object'===typeof window&&window||'object'===typeof self&&self||'object'===typeof global&&global||{});
21398(function(){
21399(function(){
21400(function(){
21401(function(){
21402(function(){
21403let sortedEntries=(obj)=>{
21404return Object.entries(obj).sort((a,b)=>a[1]-b[1]);
21405};
21406this.observe=(element)=>{
21407this.resizeObserver.observe(element);
21408}
21409this.resizeObserver=new ResizeObserver(entries=>{
21410entries.forEach((entry)=>{
21411let breakpoints=entry.target.dataset.breakpoints?JSON.parse(entry.target.dataset.breakpoints):{};
21412if(entry.width===0){
21413entry.target.dataset.observing=false;
21414}else{
21415entry.target.dataset.observing=true;
21416}
21417let breakpointEntries=sortedEntries(breakpoints).reverse();
21418let breakpointsToRemove=breakpointEntries.map((value)=>value[0]);
21419for(let i=0;i<breakpointEntries.length;i++){
21420let breakpointEntry=breakpointEntries[i];
21421let breakpointName=breakpointEntry[0];
21422let breakpointSize=breakpointEntry[1];
21423if(entry.contentRect.width>=breakpointSize){
21424if(entry.target.classList.contains(breakpointName)){
21425break;
21426}
21427breakpointsToRemove.splice(i,1);
21428entry.target.classList.add(breakpointName);
21429entry.target.classList.remove(...breakpointsToRemove);
21430let event=new CustomEvent("onElementResizeBreakpointChange",{detail:{entry:entry,breakpointName:breakpointName,breakpointSize:breakpointSize}});
21431document.body.dispatchEvent(event);
21432if(entry.target.onElementResizeBreakpointChange)
21433entry.target.onElementResizeBreakpointChange({entry:entry,breakpointName:breakpointName,breakpointSize:breakpointSize});
21434break;
21435}
21436}
21437let event=new CustomEvent("onElementResize",{detail:{entry:entry}});
21438document.body.dispatchEvent(event);
21439if(entry.target.onElementResize)
21440entry.target.onElementResize(entry);
21441});
21442});
21443let mo=new MutationObserver((entries)=>{
21444entries.forEach((entry)=>{
21445entry.addedNodes.forEach((addedNode)=>{
21446if(addedNode.nodeType===1){
21447if(addedNode.matches("[data-observe-resizing]")){
21448this.resizeObserver.observe(addedNode);
21449}else{
21450addedNode.querySelectorAll('[data-observe-resizing]').forEach((element)=>{
21451this.resizeObserver.observe(element);
21452});
21453}
21454}
21455})
21456});
21457});
21458mo.observe(document.body,{
21459childList:true,
21460subtree:true
21461});
21462document.addEventListener("DOMContentLoaded",()=>{
21463document.querySelectorAll('[data-observe-resizing]').forEach((element)=>{
21464this.resizeObserver.observe(element);
21465});
21466});
21467}).call(this.ResponsiveComponents||(this.ResponsiveComponents={}));
21468}).call(this.Framework||(this.Framework={}));
21469}).call(this.Common||(this.Common={}));
21470}).call(this.Common||(this.Common={}));
21471}).call(window.Pegasus||(window.Pegasus={}));const c_c_accessibility_navigationAnchors=(function(){
21472let _exports={};
21473let navigationAnchors;
21474_exports.addAnchor=function(element,customLabel){
21475if(!element)return;
21476const id=element.getAttribute("id");
21477if(!id)return;
21478const label=customLabel||element.getAttribute("aria-label");
21479if(!label)return;
21480const wrapper=document.createElement('div');
21481wrapper.innerHTML=
21482`<li>
21483                <a
21484                    href="#${id}"
21485                    class="navigation-anchor"
21486                >
21487                    Springe zu: "${label}"
21488                </a>
21489            </li>`;
21490navigationAnchors.querySelector("ul").appendChild(wrapper.firstChild);
21491}
21492function init(){
21493const navWrapper=document.querySelector(".nav-wrapper");
21494const mainArea=document.querySelector("main[role='main']")||document.querySelector("#main-outer > main");
21495const footer=document.querySelector("footer.footer");
21496if(mainArea&&!mainArea.matches("[data-navigation-anchor]")){
21497mainArea.setAttribute("aria-label","Haupt Inhaltsbereich");
21498if(!mainArea.matches("[id]")){
21499mainArea.setAttribute("id","main-content");
21500}
21501mainArea.setAttribute("data-navigation-anchor","");
21502}
21503if(navWrapper&&!navWrapper.matches("[data-navigation-anchor]")){
21504navWrapper.setAttribute("aria-label","Haupt Navigation");
21505if(!navWrapper.matches("[id]")){
21506navWrapper.setAttribute("id","main-navigation");
21507}
21508navWrapper.setAttribute("data-navigation-anchor","");
21509}
21510if(footer&&!footer.matches("[data-navigation-anchor]")){
21511footer.setAttribute("aria-label","Seitenfuß");
21512if(!footer.matches("[id]")){
21513footer.setAttribute("id","page-footer");
21514}
21515footer.setAttribute("data-navigation-anchor","");
21516footer.setAttribute("role","contentinfo");
21517}
21518const anchors=document.querySelectorAll("[data-navigation-anchor]");
21519if(anchors.length===0)return;
21520const wrapper=document.createElement('div');
21521wrapper.innerHTML=
21522`<nav
21523                class="navigation-anchors"
21524                aria-label="Sprunglinks"
21525            >
21526                <ul></ul>
21527            </nav>`;
21528navigationAnchors=wrapper.firstChild;
21529document.body.prepend(navigationAnchors);
21530anchors.forEach(function(element,index){
21531_exports.addAnchor(element);
21532});
21533}
21534init();
21535return _exports;
21536})();jQuery(function($){
21537let visibilityObserver=new IntersectionObserver(function(entries,observer){
21538entries.forEach(function(entry){
21539if(entry.isIntersecting){
21540$(entry.target).trigger('becameVisible');
21541observer.unobserve(entry.target);
21542}
21543});
21544},{
21545threshold:0
21546});
21547$("[data-integration-result-page]").each(function(){
21548var $element=$(this);
21549var integrationResultPage=$element.attr("data-integration-result-page");
21550var id=$element.attr("id");
21551var disableOnloadTrigger='true'===$element.attr("data-disable-onload-trigger");
21552var $infoContainer=$element.find(".integration-result-info-container");
21553var $infoContainerInitText=$infoContainer.text();
21554var $resultElement=$element.find(".integration-result");
21555var $filterInputElements=$element.find("input, textarea, select");
21556var $queryElement=$filterInputElements.filter('input[name=query]');
21557var $moreResultsIndicator=$element.children('.more-results');
21558var $noResultsIndicator=$element.children('.no-results');
21559var $noResultsCustomOutput=$element.children('.no-results-customOutput');
21560$noResultsIndicator.attr("aria-live","polite");
21561var disableMoreResults=JSON.parse($element.attr('data-disable-moreresults'));
21562var limit=Number($element.attr('data-limit'));
21563var $filterInputElementsLoadingIndicator=$filterInputElements.siblings('.loading');
21564var $queryElementLoadingIndicator=$queryElement.siblings('.loading');
21565var $loadingIndicator=$element.find('.loading');
21566var $elementLoadingIndicator=$loadingIndicator.not($filterInputElementsLoadingIndicator).not($queryElementLoadingIndicator);
21567$elementLoadingIndicator.attr("aria-live","assertive");
21568$elementLoadingIndicator.css("font-size",0);
21569$elementLoadingIndicator.text("Ergebnisse werden geladen");
21570var $bodyElement=$(document.body);
21571var nextPageIndex=0;
21572var jqxhr;
21573var sumElements=0;
21574function doLoad(pageIndex){
21575$loadingIndicator.hide();
21576if(disableOnloadTrigger){
21577return;
21578}
21579if(pageIndex===0){
21580if(jqxhr){
21581jqxhr.abort();
21582}
21583$resultElement.empty();
21584}
21585let elementLoadingIndicatorTimeout=setTimeout(function showElementLoadingIndicator(){
21586$elementLoadingIndicator.show();
21587},300);
21588$moreResultsIndicator.hide();
21589$noResultsIndicator.hide();
21590$noResultsCustomOutput.hide();
21591var data={
21592offset:pageIndex*limit,
21593limit:limit
21594};
21595$filterInputElements
21596.each(function(){
21597var name=$(this).prop("name");
21598var value=$(this).val();
21599if(name&&value){
21600data[name]=value;
21601}
21602});
21603jqxhr=$.ajax({
21604traditional:true,
21605url:integrationResultPage,
21606data:data
21607});
21608jqxhr.done(function(data){
21609var newElements=$($.parseHTML(data)||[]).filter(function(){
21610return 1===this.nodeType;
21611});
21612var newElementsLength=newElements.length;
21613sumElements+=newElementsLength;
21614$infoContainer.text($infoContainerInitText.replace("%count%",sumElements));
21615if(newElementsLength>0){
21616nextPageIndex=pageIndex+1;
21617$resultElement.append(newElements);
21618if(newElementsLength>=limit){
21619$moreResultsIndicator.css('display','block');
21620}
21621$bodyElement.trigger("integrationResultPage.load");
21622if(!disableMoreResults){
21623let $lastResultElement=$resultElement.children().last();
21624$lastResultElement.on('becameVisible',function(event){
21625doLoad(nextPageIndex);
21626event.stopPropagation();
21627});
21628visibilityObserver.observe($lastResultElement.get(0));
21629}
21630}else if(pageIndex===0){
21631$noResultsCustomOutput.show();
21632$noResultsIndicator.show();
21633}
21634})
21635.fail(function(jqXHR,textStatus){
21636console.log(jqXHR.status+' '+textStatus);
21637if(jqXHR.status>=400){
21638if(pageIndex===0){
21639$noResultsIndicator.show();
21640}
21641}
21642})
21643.always(function(){
21644jqxhr=undefined;
21645clearTimeout(elementLoadingIndicatorTimeout);
21646$loadingIndicator.hide();
21647});
21648}
21649var timeout=null;
21650$queryElement.on('keyup',function(event){
21651var keyCode=event.which||event.keyCode;
21652if(keyCode!==13)return;
21653doLoad(0);
21654});
21655$queryElement.on('input',function(event){
21656if(timeout){
21657clearTimeout(timeout);
21658}
21659timeout=setTimeout(function(){
21660doLoad(0);
21661sumElements=0;
21662},500);
21663});
21664$filterInputElements.not($queryElement).on('change',function(){
21665sumElements=0;
21666doLoad(0);
21667});
21668$element.on('becameVisible',function(event){
21669doLoad(0);
21670event.stopPropagation();
21671});
21672$bodyElement.on('Component-'+id+'.reload',function(){
21673visibilityObserver.observe($element.get(0));
21674});
21675$moreResultsIndicator.on('click',function(){
21676$(this).hide();
21677doLoad(nextPageIndex);
21678});
21679});
21680});
21681if(!window.IntegrationLists)window.IntegrationLists=function(options){
21682const defaultOptions={
21683longListClassSelector:'',
21684longListVisibleItems:5
21685};
21686var options=$.extend({},defaultOptions,options);
21687function longListHandler(){
21688$(options.longListClassSelector).each(function(i,longList){
21689let $longList=$(longList);
21690let $children=$longList.children();
21691if($children.hasClass('results-toggle')){
21692return;
21693}
21694if($children.length>options.longListVisibleItems){
21695const tagName=$children[0].tagName;
21696$children.filter(':nth-child(n+'+(options.longListVisibleItems)+')').addClass("hide");
21697const newLength=$children.length-options.longListVisibleItems+1;
21698$longList.append("<"+tagName+" class='results-toggle show-more-results unordered-list-item list-item' data-items='"+newLength+"'><a aria-expanded='false' class='integration--link' href='#' role='button' aria-label='"+newLength+" weitere Elemente aufklappen'>"+newLength+" weitere </a></"+tagName+">");
21699}
21700}
vendor: 6,587 bytes, lines 21700-21746
21700);
21701}
21702var init=function(){
21703$('body').off("click",".results-toggle");
21704$('body').on("click",".results-toggle",function(e){
21705e.preventDefault();
21706if($(this).hasClass('show-more-results')){
21707var itemToFocus=$(this).closest("ul").children("li.hide").first().find("a");
21708$(this).siblings().removeClass("hide");
21709$(this).removeClass("show-more-results").addClass("show-less-results");
21710$(this).children('a').text("Weniger anzeigen");
21711$(this).children('a').removeAttr("aria-label");
21712$(this).children('a').attr("aria-expanded","true");
21713console.log("itemToFocus",itemToFocus.text());
21714if(itemToFocus.length===1){
21715setTimeout(function(){
21716itemToFocus.focus();
21717},1);
21718}
21719return;
21720}
21721if($(this).hasClass('show-less-results')){
21722$(this).removeClass("show-less-results").addClass("show-more-results");
21723$(this).siblings(':nth-child(n+'+(options.longListVisibleItems)+')').addClass("hide");
21724$(this).children('a').text($(this).data("items")+" weitere");
21725$(this).children('a').attr("aria-label",$(this).data("items")+" weitere Elemente aufklappen");
21726$(this).children('a').attr("aria-expanded","false");
21727}
21728});
21729longListHandler();
21730};
21731return{
21732init:init
21733};
21734};
21735$('body').on('baseDetails.load',function(){
21736$('a.integration-details--photo').each(function(){
21737$(this).css('cursor','zoom-in');
21738}).fancybox({type:'image',title:''});
21739$('a.integration-details--qrcode, a.integration-card--qrcode').each(function(){
21740$(this).css('cursor','zoom-in');
21741}).fancybox({type:'image',padding:30,title:''});
21742});
21743$(function(){
21744$('body').trigger('baseDetails.load');
21745});
21746var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;a<arguments.length;a+=1){const i=a<0||arguments.length<=a?void 0:arguments[a];if(null!=i&&(s=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,a=s.length;t<a;t+=1){const a=s[t],r=Object.getOwnPropertyDescriptor(i,a);void 0!==r&&r.enumerable&&(c(e[a])&&c(i[a])?i[a].__swiper__?e[a]=i[a]:p(e[a],i[a]):!c(e[a])&&c(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:p(e[a],i[a])):e[a]=i[a])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){void 0===t&&(t="");const s=[...e.children];return e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter((e=>e.matches(t))):s}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r();
vendor: 4,120 bytes, line 21746
21746return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function T(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function M(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let C,P,L;function I(){return C||(C=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),C}function z(e){return void 0===e&&(e={}),P||(P=function(e){let{userAgent:t}=void 0===e?{}:e;const s=I(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!h&&(l.os="android",l.android=!0),(p||m||u)&&(l.os="ios",l.ios=!0),l}(e)),P}function A(){return L||(L=function(){const e=r(),t=z();let s=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,a]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));s=e<16||16===e&&a<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=a();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||i&&t.ios,isWebView:i}}()),L}var $={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};const k=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const O=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const D=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);
vendor: 3,160 bytes, line 21746
21746if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},G=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},H=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map(((e,t)=>s+a+t))),void e.slides.forEach(((t,s)=>{r.includes(t.column)&&G(e,s)}))}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(t<i||t>r)&&G(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a<i)&&G(e,a)};var B={updateSize:function(){const e=this;let t,s;const a=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a.clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a.clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(b(a,"padding-left")||0,10)-parseInt(b(a,"padding-right")||0,10),s=s-parseInt(b(a,"padding-top")||0,10)-parseInt(b(a,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t,s){return parseFloat(t.getPropertyValue(e.getDirectionLabel(s))||0)}const s=e.params,{wrapperEl:a,slidesEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&s.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=f(i,`.${e.params.slideClass}, swiper-slide`),p=o?e.virtual.slides.length:c.length;let m=[];const h=[],g=[];let v=s.slidesOffsetBefore;"function"==typeof v&&(v=s.slidesOffsetBefore.call(e));let w=s.slidesOffsetAfter;"function"==typeof w&&(w=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length,E=e.slidesGrid.length;let x=s.spaceBetween,T=-v,M=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*r:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,c.forEach((e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(u(a,"--swiper-centered-offset-before",""),u(a,"--swiper-centered-offset-after",""));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let a=0;a<p;a+=1){let i;if(L=0,c[a]&&(i=c[a]),P&&e.grid.updateSlide(a,i,c),!c[a]||"none"!==b(i,"display")){if("auto"===s.slidesPerView){I&&(c[a].style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),n=i.style.transform,l=i.style.webkitTransform;if(n&&(i.style.transform="none"),l&&(i.style.webkitTransform="none"),s.roun
vendor: 19,400 bytes, line 21746
21746dLengths)L=e.isHorizontal()?S(i,"width",!0):S(i,"height",!0);else{const e=t(r,"width"),s=t(r,"padding-left"),a=t(r,"padding-right"),n=t(r,"margin-left"),l=t(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)L=e+n+l;else{const{clientWidth:t,offsetWidth:r}=i;L=e+s+a+n+l+(r-t)}}n&&(i.style.transform=n),l&&(i.style.webkitTransform=l),s.roundLengths&&(L=Math.floor(L))}else L=(r-(s.slidesPerView-1)*x)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),c[a]&&(c[a].style[e.getDirectionLabel("width")]=`${L}px`);c[a]&&(c[a].swiperSlideSize=L),g.push(L),s.centeredSlides?(T=T+L/2+M/2+x,0===M&&0!==a&&(T=T-r/2-x),0===a&&(T=T-r/2-x),Math.abs(T)<.001&&(T=0),s.roundLengths&&(T=Math.floor(T)),C%s.slidesPerGroup==0&&m.push(T),h.push(T)):(s.roundLengths&&(T=Math.floor(T)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&m.push(T),h.push(T),T=T+L+x),e.virtualSize+=L+x,M=L,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+w,n&&l&&("slide"===s.effect||"coverflow"===s.effect)&&(a.style.width=`${e.virtualSize+x}px`),s.setWrapperSize&&(a.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),P&&e.grid.updateWrapperSize(L,m),!s.centeredSlides){const t=[];for(let a=0;a<m.length;a+=1){let i=m[a];s.roundLengths&&(i=Math.floor(i)),m[a]<=e.virtualSize-r&&t.push(i)}m=t,Math.floor(e.virtualSize-r)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-r)}if(o&&s.loop){const t=g[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e<a;e+=1)m.push(m[m.length-1]+i)}for(let a=0;a<e.virtual.slidesBefore+e.virtual.slidesAfter;a+=1)1===s.slidesPerGroup&&m.push(m[m.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===m.length&&(m=[0]),0!==x){const t=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${x}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=e-r;m=m.map((e=>e<=0?-v:e>t?t+w:e))}if(s.centerInsufficientSlides){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(e+t<r){const s=(r-e-t)/2;m.forEach(((e,t)=>{m[t]=e-s})),h.forEach(((e,t)=>{h[t]=e+s}))}}if(Object.assign(e,{slides:c,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){u(a,"--swiper-centered-offset-before",-m[0]+"px"),u(a,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),m.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==E&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a<t.length;a+=1)t[a].swiperSlideOffset=(e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop)-s-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<a.length;e+=1){const o=a[e];let d=o.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=a[0].swiperSlideOffset);const c=(n+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),p=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),u=-(n-d),m=u+t.slidesSizesGrid[e],h=u>=0&&u<=t.size-t.slidesSizesGrid[e],f=u>=0&&u<t.size-1||m>1&&m<=t.size||u<=0&&m>=t.size;f&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),k(o,f,s.slideVisibleClass),k(o,h,s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>f(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.filter((e=>e.column===i))[0],c=t.filter((e=>e.column===i+1))[0],d=t.filter((e=>e.column===i-1))[0]):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach((e=>{O(e,e===o,s.slideActiveClass),O(e,e===c,s.slideNextClass),O(e,e===d,s.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?a>=t[e]&&a<t[e+1]-(t[e+1]-t[e])/2?i=e:a>=t[e]&&a<t[e+1]&&(i=e+1):a>=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.filter((e=>e.column===d))[0];let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&H(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)}));let r,n=!1;if(i)for(let e=0;e<s.slides.length;e+=1)if(s.slides[e]===i){n=!0,r=e;break}if(!i||!n)return s.clickedSlide=void 0,void(s.clickedIndex=void 0);s.clickedSlide=i,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=r,a.slideToClickedSlide&&void 0!==s.clickedIndex&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}};var N={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=d(i,e);return r+=this.cssOverflowAdjustment(),s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,wrapperEl:r,progress:n}=s;let l,o=0,d=0;s.isHorizontal()?o=a?-e:e:d=e,i.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d,i.cssMode?r[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-d:i.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();l=0===c?0:(e-s.minTranslate())/c,l!==n&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,s&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function X(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var Y={slideTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:f}=r;if(!f&&!a&&!i||r.destroyed||r.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,n);let v=g+Math.floor((n-g)/r.params.slidesPerGroup);v>=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate()))return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n<p?"prev":"reset",u&&-w===r.translate||!u&&w===r.translate)return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?w:-w;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),t&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=s}))):h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}))}else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s}=i.params;let l=i.params.slidesPerView;"auto"===l?l=i.slidesPerViewDynamic():(l=Math.ceil(parseFloat(i.params.slidesPerView,10)),s&&l%2==0&&(l+=1));let o=t-e<l;if(s&&(o=o||e<Math.ceil(l/2)),a&&s&&"auto"!==i.params.slidesPerView&&!r&&(o=!1),o){const a=s?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:a,slideTo:!0,activeSlideIndex:"next"===a?e+1:e-t+1,slideRealIndex:"next"===a?i.realIndex:void 0})}if(r){const e=n*i.params.grid.rows;n=i.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame((()=>{i.slideTo(n,t,s,a)})),i},slideNext:function(e,t,s){void 0===t&&(t=!0);const a=this,{enabled:i,params:r,animating:n}=a;if(!i||a.destroyed)return a;void 0===e&&(e=a.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<r.slidesPerGroupSkip?1:l,d=a.virtual&&r.virtual.enabled;if(r.loop){if(n&&!d&&r.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{a.slideTo(a.activeIndex+o,e,t,s)})),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===t&&(t=!0);const a=this,{params:i,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=a;if(!o||a.destroyed)return a;void 0===e&&(e=a.params.speed);const c=a.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?a.translate:-a.translate),m=r.map((e=>p(e)));let h=r[m.indexOf(u)-1];if(void 0===h&&i.cssMode){let e;r.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(h=r[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=n.indexOf(h),f<0&&(f=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(f=f-a.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return i.loop&&0===a.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{a.slideTo(f,e,t,s)})),!0):a.slideTo(f,e,t,s)},slideReset:function(e,t,s){void 0===t&&(t=!0);const a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;const n=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var R={loopCreate:function(e){const t=this,{params:s,slidesEl:a}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{f(a,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&s.grid&&s.grid.rows>1,n=s.slidesPerGroup*(r?s.grid.rows:1),l=t.slides.length%n!=0,o=r&&t.slides.length%s.grid.rows!=0,d=e=>{for(let a=0;a<e;a+=1){const e=t.isElement?v("swiper-slide",[s.slideBlankClass]):v("div",[s.slideClass,s.slideBlankClass]);t.slidesEl.append(e)}};if(l){if(s.loopAddBlankSlides){d(n-t.slides.length%n),t.recalcSlides(),t.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
21746not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(o){if(s.loopAddBlankSlides){d(s.grid.rows-t.slides.length%s.grid.rows),t.recalcSlides(),t.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();t.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:s=!0,direction:a,setTranslate:i,activeSlideIndex:r,byController:n,byMousewheel:l}=void 0===e?{}:e;const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:d,allowSlidePrev:c,allowSlideNext:p,slidesEl:u,params:m}=o,{centeredSlides:h}=m;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&m.virtual.enabled)return s&&(m.centeredSlides||0!==o.snapIndex?m.centeredSlides&&o.snapIndex<m.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=p,void o.emit("loopFix");let f=m.slidesPerView;"auto"===f?f=o.slidesPerViewDynamic():(f=Math.ceil(parseFloat(m.slidesPerView,10)),h&&f%2==0&&(f+=1));const v=m.slidesPerGroupAuto?f:m.slidesPerGroup;let w=v;w%v!=0&&(w+=v-w%v),w+=m.loopAdditionalSlides,o.loopedSlides=w;const b=o.grid&&m.grid&&m.grid.rows>1;d.length<f+w?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===m.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const y=[],E=[];let x=o.activeIndex;void 0===r?r=o.getSlideIndex(d.filter((e=>e.classList.contains(m.slideActiveClass)))[0]):x=r;const S="next"===a||!a,T="prev"===a||!a;let M=0,C=0;const P=b?Math.ceil(d.length/m.grid.rows):d.length,L=(b?d[r].column:r)+(h&&void 0===i?-f/2+.5:0);if(L<w){M=Math.max(w-L,v);for(let e=0;e<w-L;e+=1){const t=e-Math.floor(e/P)*P;if(b){const e=P-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&y.push(t)}else y.push(P-t-1)}}else if(L+f>P-w){C=Math.max(L-(P-2*w),v);for(let e=0;e<C;e+=1){const t=e-Math.floor(e/P)*P;b?d.forEach(((e,s)=>{e.column===t&&E.push(s)})):E.push(t)}}if(o.__preventObserver__=!0,requestAnimationFrame((()=>{o.__preventObserver__=!1})),T&&y.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),S&&E.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1})),o.recalcSlides(),"auto"===m.slidesPerView?o.updateSlides():b&&(y.length>0&&T||E.length>0&&S)&&o.slides.forEach(((e,t)=>{o.grid.updateSlide(t,e,o.slides)})),m.watchSlidesProgress&&o.updateSlidesOffset(),s)if(y.length>0&&T){if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x+M]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x+Math.ceil(M),0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else if(i){const e=b?y.length/m.grid.rows:y.length;o.slideTo(o.activeIndex+e,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(E.length>0&&S)if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x-C]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x-C,0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else{const e=b?E.length/m.grid.rows:E.length;o.slideTo(o.activeIndex-e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=p,o.controller&&o.controller.control&&!n){const e={slideRealIndex:t,direction:a,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&s})})):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...e,slideTo:o.controller.control.params.slidesPerView===m.slidesPerView&&s})}o.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];
vendor: 5,434 bytes, line 21746
21746e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),a.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function F(e,t,s){const a=r(),{params:i}=e,n=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return!n||!(s<=l||s>=a.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function V(e){const t=this,s=a();let i=e;i.originalEvent&&(i=i.originalEvent);const n=t.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void F(t,i,i.targetTouches[0].pageX);const{params:l,touches:d,enabled:c}=t;if(!c)return;if(!l.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=i.target;if("wrapper"===l.touchEventsTarget&&!function(e,t){const s=t.contains(e);if(!s&&t instanceof HTMLSlotElement)return[...t.assignedElements()].includes(e);return s}(p,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!l.noSwipingClass&&""!==l.noSwipingClass,m=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&m&&(p=m[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(h,p):p.closest(h)))return void(t.allowClick=!0);if(l.swipeHandler&&!p.closest(l.swipeHandler))return;d.currentX=i.pageX,d.currentY=i.pageY;const g=d.currentX,v=d.currentY;if(!F(t,i,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&s.activeElement.blur();const b=w&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!b||p.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function q(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==i.touchId)return;if(p.pointerId!==i.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].filter((e=>e.identifier===i.touchId))[0],!c||c.identifier!==i.touchId)return}else c=p;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),i.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate())return;if(t.activeElement&&p.target===t.activeElement&&p.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const h=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(h**2+f**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:h*h+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",p),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===p.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?h:f,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),n.diff=g,g*=r.touchRatio,l&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,139 bytes, line 21746
21746s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",p),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let E=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+g)**x))):g<0&&(b&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-g)**x))),E&&(p.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 4,883 bytes, line 21746
21746if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function _(e){const t=this,s=t.touchEventsData;let a,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(a=[...i.changedTouches].filter((e=>e.identifier===s.touchId))[0],!a||a.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(i.pointerId!==s.pointerId)return;a=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:n,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=o(),m=u-s.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=o(),l((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===n.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const f=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==c[e+t]?(f||h>=c[e]&&h<c[e+t])&&(g=e,v=c[e+t]-c[e]):(f||h>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let w=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const y=(h-c[g])/v,E=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?w:g+E):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+E):null!==b&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(g+E):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+E),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function W(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function j(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function U(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function K(e){const t=this;D(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 9,380 bytes, line 21746
21746)}function Z(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Q=(e,t)=>{const s=a(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",W,!0):e[c]("observerUpdate",W,!0),r[d]("load",e.onLoad,{capture:!0}))};const J=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ee={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function te(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in i?("object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),p(t,s)):p(t,s)):p(t,s)}}const se={eventsEmitter:$,update:B,translate:N,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),X({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),X({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:Y,loop:R,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=V.bind(e),e.onTouchMove=q.bind(e),e.onTouchEnd=_.bind(e),e.onDocumentTouchStart=Z.bind(e),t.cssMode&&(e.onScroll=U.bind(e)),e.onClick=j.bind(e),e.onLoad=K.bind(e),Q(e,"on")},detachEvents:function(){Q(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:a,el:i}=e,r=a.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const n=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;const l=(n in r?r[n]:void 0)||e.originalParams,o=J(e,a),d=J(e,l),c=e.params.grabCursor,u=l.grabCursor,m=a.enabled;o&&!d?(i.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&d&&(i.classList.add(`${a.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===a.grid.fill)&&i.classList.add(`${a.containerModifierClass}grid-column`),e.emitContainerClasses()),c&&!u?e.unsetGrabCursor():!c&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===l[t])return;const s=a[t]&&a[t].enabled,i=l[t]&&l[t].enabled;s&&!i&&e[t].disable(),!s&&i&&e[t].enable()}));const h=l.direction&&l.direction!==a.direction,f=a.loop&&(l.slidesPerView!==a.slidesPerView||h),g=a.loop;h&&s&&e.changeDirection(),p(e.params,l);const v=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!v?e.disable():!m&&v&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),s&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&w?(e.loopCreate(t),e.updateSlides()):g&&!w&&e.loopDestroy()),e.emit("breakpoint",l)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ae={};class ie{constructor(){let e,t;for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=p({},t),e&&!t.el&&(t.el=e);const n=a();if(t.el&&"string"==typeof t.el&&n.querySelectorAll(t.el).length>1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const a=p({},t,{el:s});e.push(new ie(a))})),e}const l=this;l.__swiper__=!0,l.support=I(),l.device=z({userAgent:t.userAgent}),l.browser=A(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:te(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const d=p({},ee,o);return l.params=p({},d,ae,t),l.originalParams=p({},l.params),l.passedParams=p({}
vendor: 4,604 bytes, line 21746
21746,t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=y(f(t,`.${s.slideClass}, swiper-slide`)[0]);return y(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=f(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?Math.ceil(a[l].swiperSlideSize):0;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=Math.ceil(a[s].swiperSlideSize),o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&D(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEac
vendor: 4,507 bytes, line 21746
21746h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(a())}return f(s,a())[0]})();return!i&&t.params.createElements&&(i=v("div",t.params.wrapperClass),s.append(i),f(s,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction")),wrongRTL:"-webkit-box"===b(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?D(t,e):e.addEventListener("load",(e=>{D(t,e.target)}))})),H(t),t.initialized=!0,H(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),r&&r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){p(ae,e)}static get extendedDefaults(){return ae}static get defaults(){return ee}static installModule(e){ie.prototype.__modules__||(ie.prototype.__modules__=[]);const t=ie.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ie.installModule(e))),ie):(ie.installModule(e),ie)}}function re(e,t,s,a){return e.params.createElements&&Object.keys(a).forEach((i=>{if(!s[i]&&!0===s.auto){let r=f(e.el,`.${a[i]}`)[0];r||(r=v("div",a[i]),r.className=a[i],e.el.append(r)),s[i]=r,t[i]=r}})),s}function ne(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function le(e){const t=this,{params:s,slidesEl:a}=t;s.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,a.append(t.children[0]),t.innerHTML=""}else a.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update()}function oe(e){const t=this,{params:s,activeIndex:a,slidesEl:i}=t;s.loop&&t.loopDestroy();let r=a+1;const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.prepend(t.children[0]),t.innerHTML=""}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);r=a+e.length}else n(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(
vendor: 7,233 bytes, line 21746
21746),t.slideTo(r,0,!1)}function de(e,t){const s=this,{params:a,activeIndex:i,slidesEl:r}=s;let n=i;a.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);o=n>e?n+t.length:n}else r.append(t);for(let e=0;e<d.length;e+=1)r.append(d[e]);s.recalcSlides(),a.loop&&s.loopCreate(),a.observer&&!s.isElement||s.update(),a.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function ce(e){const t=this,{params:s,activeIndex:a}=t;let i=a;s.loop&&(i-=t.loopedSlides,t.loopDestroy());let r,n=i;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1),n=Math.max(n,0);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(),s.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function pe(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function ue(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function me(e,t){const s=h(t);return s!==t&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function he(e){let{swiper:t,duration:s,transformElements:a,allSlides:i}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a:a.filter((e=>{const s=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.filter((t=>t.shadowRoot&&t.shadowRoot===e.parentNode))[0];return e.parentElement})(e):e;return t.getSlideIndex(s)===r})),e.forEach((e=>{x(e,(()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function fe(e,t,s){const a=`swiper-slide-shadow${s?`-${s}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=h(t);let r=i.querySelector(`.${a.split(" ").join(".")}`);return r||(r=v("div",a.split(" ")),i.append(r)),r}Object.keys(se).forEach((e=>{Object.keys(se[e]).forEach((t=>{ie.prototype[t]=se[e][t]}))})),ie.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,s){void 0===s&&(s={});const a=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const s=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));a.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:t.isElement||(void 0===s.childList||s).childList,characterData:void 0===s.characterData||s.characterData}),n.push(a)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=E(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const ge=[function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const l=a();s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=l.createElement("div");function d(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];let i;return a.renderSlide?(i=a.renderSlide.call(s,e,t),"string"==typeof i&&(o.innerHTML=i,i=o.children[0])):i=s.isElement?v("swiper-slide"):v("div",s.params.slideClass),i.setAttribute("data-swiper-slide-index",t),a.renderSlide||(i.innerHTML=e),a.cache&&(s.virtual.cache[t]=i),i}function c(e,t){const{slidesPerView:a,slidesPerGroup:i,centeredSlides:r,loop:l,initialSlide:o}=s.params;if(t&&!l&&o>0)return;const{addSlidesBefore:c,addSlidesAfter:p}=s.params.virtual,{from:u,to:m,slides:h,slidesGrid:g,offset:v}=s.virtual;s.params.cssMode||s.updateActiveIndex();const w=s.activeIndex||0;let b,y,E;b=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",r?(y=Math.floor(a/2)+i+p,E=Math.floor(a/2)+i+c):(y=a+(i-1)+p,E=(l?a:i)+c);let x=w-E,S=w+y;l||(x=Math.max(x,0),S=Math.min(S,h.length-1));let T=(s.slidesGrid[x]||0)-(s.slidesGrid[0]||0);function M(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),n("virtualUpdate")}if(l&&w>=E?(x-=E,r||(T+=s.slidesGrid[0])):l&&w<E&&(x=-E,r&&(T+=s.slidesGrid[0])),Object.assign(s.virtual,{from:x,to:S,offset:T,slidesGrid:s.slidesGrid,slidesBefore:E,slidesAfter:y}),u===x&&m===S&&!e)return s.slidesGrid!==g&&T!==v&&s.slides.forEach((e=>{e.style[b]=T-Math.abs(s.cssOverflowAdjustment())+"px"})),s.updateProgress(),void n("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:T,from:x,to:S,slides:function(){const e=[];for(let t=x;t<=S;t+=1)e.push(h[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?M():n("virtualUpdate"));const C=[],P=[],L=e=>{let t=e;return e<0?t=h.length+e:t>=h.length&&(t-=h.length),t};if(e)s.slides.filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=u;e<=m;e+=1)if(e<x||e>S){const t=L(e);s.slides.filter((e=>e.matches(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}
21746"]`))).forEach((e=>{e.remove()}))}const I=l?-h.length:0,z=l?2*h.length:h.length;for(let t=I;t<z;t+=1)if(t>=x&&t<=S){const s=L(t);void 0===m||e?P.push(s):(t>m&&P.push(s),t<u&&C.push(s))}if(P.forEach((e=>{s.slidesEl.append(d(h[e],e))})),l)for(let e=C.length-1;e>=0;e-=1){const t=C[e];s.slidesEl.prepend(d(h[t],t))}else C.sort(((e,t)=>t-e)),C.forEach((e=>{s.slidesEl.prepend(d(h[e],e))}));f(s.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[b]=T-Math.abs(s.cssOverflowAdjustment())+"px"})),M()}r("beforeInit",(()=>{if(!s.params.virtual.enabled)return;let e;if(void 0===s.passedParams.virtual.slides){const t=[...s.slidesEl.children].filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`)));t&&t.length&&(s.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),s.virtual.cache[t]=e,e.remove()})))}e||(s.virtual.slides=s.params.virtual.slides),s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,c(!1,!0)})),r("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),r("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&u(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}c(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.params.virtual.cache&&(delete s.virtual.cache[e[a]],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e[a],1),e[a]<t&&(t-=1),t=Math.max(t,0);else s.params.virtual.cache&&(delete s.virtual.cache[e],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),c(!0),s.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function d(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,m=38===i,h=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&m||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||m||h)){let e=!1;if(E(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===E(t.el,`.${t.params.slideActiveClass}`).length)return;const a=t.el,i=a.clientWidth,r=a.clientHeight,n=o.innerWidth,l=o.innerHeight,d=w(a);s&&(d.left-=a.scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||m||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&t.slideNext(),(d||m)&&t.slidePrev()),n("keyPress",i)}}function c(){t.keyboard.enabled||(l.addEventListener("keydown",d),t.keyboard.enabled=!0)}function p(){t.keyboard.enabled&&(l.removeEventListener("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&c()})),i("destroy",(()=>{t.keyboard.enabled&&p()})),Object.assign(t.keyboard,{enable:c,disable:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let d;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let c,p=o();const u=[];function m(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&o()-p<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&o()-p<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),p=(new n.Date).getTime(),!1)))}function g(e){let s=e,a=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget));const p=n&&n.contains(s.target);if(!t.mouseEntered&&!p&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let m=0;const h=t.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120
vendor: 4,766 bytes, line 21746
21746),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*h}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*h:-g.pixelY;if(0===m)return!0;r.invert&&(m=-m);let v=t.getTranslate()+m*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:o(),delta:Math.abs(m),direction:Math.sign(m)},a=c&&e.time<c.time+500&&e.delta<=c.delta&&e.direction===c.direction;if(!a){c=void 0;let n=t.getTranslate()+m*r.sensitivity;const o=t.isBeginning,p=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!o&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(d),d=void 0,u.length>=15&&u.shift();const s=u.length?u[u.length-1]:void 0,a=u[0];if(u.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))u.splice(0);else if(u.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=m>0?.8:.2;c=e,u.splice(0),d=l((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}d||(d=l((()=>{if(t.destroyed||!t.params)return;c=e,u.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(n===t.minTranslate()||n===t.maxTranslate()))return!0}}else{const s={time:o(),delta:Math.abs(m),direction:Math.sign(m),raw:e};u.length>=2&&u.shift();const a=u.length?u[u.length-1]:void 0;if(u.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function v(e){let s=t.el;"container"!==t.params.mousewheel.eventsTarget&&(s=document.querySelector(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",h),s[e]("wheel",g)}function w(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&w()})),a("destroy",(()=>{t.params.cssMode&&w(),t.mousewheel.enabled&&b()})),Object.assign(t.mousewheel,{enable:w,disable:b})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&"string"==typeof e&&t.isElement&&(s=t.el.querySelector(e),s)?s:(e&&("string"==typeof e&&(s=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&s&&s.length>1&&1===t.el.querySelectorAll(e).length?s=t.el.querySelector(e):s&&1===s.length&&(s=s[0])),e&&!s?e:s)}function n(e,s){const a=t.params.navigation;(e=T(e)).forEach((e=>{e&&(e.classList[s?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=s),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](a.lockClass))}))}function l(){const{nextEl:e,prevEl:s}=t.navigation;if(t.params.loop)return n(s,!1),void n(e,!1);n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=re(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=r(e.nextEl),a=r(e.prevEl);Object.assign(t.navigation,{nextEl:s,prevEl:a}),s=T(s),a=T(a);const i=(s,a)=>{s&&s.addEventListener("click","next"===a?d:o),!t.enabled&&s&&s.classList.add(...e.lockClass.split(" "))};
vendor: 4,213 bytes, line 21746
21746s.forEach((e=>i(e,"next"))),a.forEach((e=>i(e,"prev")))}function p(){let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s);const a=(e,s)=>{e.removeEventListener("click","next"===s?d:o),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>a(e,"next"))),s.forEach((e=>a(e,"prev")))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?u():(c(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{p()})),a("enable disable",(()=>{let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s),t.enabled?l():[...e,...s].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),a("click",((e,s)=>{let{nextEl:a,prevEl:r}=t.navigation;a=T(a),r=T(r);const n=s.target;let l=r.includes(n)||a.includes(n);if(t.isElement&&!l){const e=s.path||s.composedPath&&s.composedPath();e&&(l=e.find((e=>a.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!l){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a.length?e=a[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...a,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,s){const{bulletActiveClass:a}=t.params.pagination;e&&(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${a}-${s}`),(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&e.classList.add(`${a}-${s}-${s}`))}function c(e){const s=e.target.closest(ne(t.params.pagination.bulletClass));if(!s)return;e.preventDefault();const a=y(s)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===a)return;t.slideToLoop(a)}else t.slideTo(a)}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;let a,r,c=t.pagination.el;c=T(c);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,a=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(a=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,a=t.activeIndex||0),"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let o,p,u;if(s.dynamicBullets&&(n=S(i[0],t.isHorizontal()?"width":"height",!0),c.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=n*(s.dynamicMainBullets+4)+"px"})),s.dynamicMainBullets>1&&void 0!==r&&(l+=a-(r||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),o=Math.max(a-l,0),p=o+(Math.min(i.length,s.dynamicMainBullets)-1),u=(p+o)/2),i.forEac
vendor: 9,777 bytes, line 21746
21746h((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)i.forEach((e=>{const i=y(e);i===a?e.classList.add(...s.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),s.dynamicBullets&&(i>=o&&i<=p&&e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),i===o&&d(e,"prev"),i===p&&d(e,"next"))}));else{const e=i[a];if(e&&e.classList.add(...s.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")})),s.dynamicBullets){const e=i[o],t=i[p];for(let e=o;e<=p;e+=1)i[e]&&i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(s.dynamicBullets){const a=Math.min(i.length,s.dynamicMainBullets+4),r=(n*a-n)/2-u*n,l=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?l:"top"]=`${r}px`}))}}c.forEach(((e,r)=>{if("fraction"===s.type&&(e.querySelectorAll(ne(s.currentClass)).forEach((e=>{e.textContent=s.formatFractionCurrent(a+1)})),e.querySelectorAll(ne(s.totalClass)).forEach((e=>{e.textContent=s.formatFractionTotal(u)}))),"progressbar"===s.type){let i;i=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(a+1)/u;let n=1,l=1;"horizontal"===i?n=r:l=r,e.querySelectorAll(ne(s.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===s.type&&s.renderCustom?(e.innerHTML=s.renderCustom(t,a+1,u),0===r&&i("paginationRender",e)):(0===r&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass)}))}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let a=t.pagination.el;a=T(a);let r="";if("bullets"===e.type){let a=t.params.loop?Math.ceil(s/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&a>s&&(a=s);for(let s=0;s<a;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],a.forEach((s=>{"custom"!==e.type&&(s.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...s.querySelectorAll(ne(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",a[0])}function m(){t.params.pagination=re(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s;"string"==typeof e.el&&t.isElement&&(s=t.el.querySelector(e.el)),s||"string"!=typeof e.el||(s=[...document.querySelectorAll(e.el)]),s||(s=e.el),s&&0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(s)&&s.length>1&&(s=[...t.el.querySelectorAll(e.el)],s.length>1&&(s=s.filter((e=>E(e,".swiper")[0]===t.el))[0])),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(t.pagination,{el:s}),s=T(s),s.forEach((s=>{"bullets"===e.type&&e.clickable&&s.classList.add(...(e.clickableClass||"").split(" ")),s.classList.add(e.modifierClass+e.type),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.classList.add(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.classList.add(e.progressbarOppositeClass),e.clickable&&s.addEventListener("click",c),t.enabled||s.classList.add(e.lockClass)})))}function h(){const e=t.params.pagination;if(o())return;let s=t.pagination.el;s&&(s=T(s),s.forEach((s=>{s.classList.remove(e.hiddenClass),s.classList.remove(e.modifierClass+e.type),s.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(s.classList.remove(...(e.clickableClass||"").split(" ")),s.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}a("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:s}=t.pagination;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),a("init",(()=>{!1===t.params.pagination.enabled?f():(m(),u(),p())})),a("activeIndexChange",(()=>{void 0===t.snapIndex&&p()})),a("snapIndexChange",(()=>{p()})),a("snapGridLengthChange",(()=>{u(),p()})),a("destroy",(()=>{h()})),a("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,r=T(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!a.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),m(),u(),p()},disable:f,render:u,update:p,init:m,destroy:h})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const o=a();let d,c,p,u,m=!1,h=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s}=t,{dragEl:a,el:i}=e,r=t.params.scrollbar,n=t.params.loop?t.progressLoop:t.progress;let l=c,o=(p-c)*n;s?(o=-o,o>0?(l=c-o,o=0):-o+c>p&&(l=p+o)):o<0?(l=c+o,o=0):o+c>p&&(l=p-o),t.isHorizontal()?(a.style.transform=`translate3d(${o}px, 0, 0)`,a.style.width=`${l}px`):(a.style.transform=`translate3d(0px, ${o}px, 0)`,a.style.height=`${l}px`),r.hide&&(clearTimeout(h),i.style.opacity=1,h=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:s,el:a}=e;s.style.width="",s.style.height="",p=t.isHorizontal()?a.offsetWidth:a.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?p*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s.style.width=`${c}px`:s.style.height=`${c}px`,a.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function E(e){const{scrollbar:s,rtlTranslate:a}=t,{el:i}=s;let r;r=(y(e)-w(i)[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(p-c),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n,dragEl:l}=a;m=!0,d=e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.style.transitionDuration="100ms",l.style.transitionDuration="100ms",E(e),clearTimeout(f),n.style.transitionDuration="0ms",s.hide&&(n.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function S(e){const{scrollbar:s,wrapperEl:a}=t,{el:i,dragEl:n}=s;m&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,E(e),a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function M(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n}=a;m&&(m=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",i.style.transitionDuration=""),s.hide&&(clearTimeout(f),f=l((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,params:a}=t,i=s.el;if(!i)return;const r=i,n=!!a.passiveListeners&&{passive:!1,capture:!1},l=!!a.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const d="on"===e?"addEventListener":"removeEventListener";r[d]("pointerdown",x,n),o[d]("pointermove",S,n),o[d]("pointerup",M,l)}function P(){const{scrollbar:e,el:s}=t;t.params.scrollbar=re(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i,r;if("string"==typeof a.el&&t.isElement&&(i=t.el.querySelector(a.el)),i||"string"!=typeof a.el)i||(i=a.el);else if(i=o.querySelectorAll(a.el),!i.length)return;t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.querySelectorAll(a.el).length&&(i=s.querySelector(a.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?a.horizontalClass:a.verticalClass),i&&(r=i.querySelector(n
vendor: 3,921 bytes, line 21746
21746e(t.params.scrollbar.dragClass)),r||(r=v("div",t.params.scrollbar.dragClass),i.append(r))),Object.assign(e,{el:i,dragEl:r}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))}function L(){const e=t.params.scrollbar,s=t.scrollbar.el;s&&s.classList.remove(...n(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:s}=t.scrollbar;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.scrollbar.enabled?I():(P(),b(),g())})),i("update resize observerUpdate lock unlock changeDirection",(()=>{b()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(s)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))})),i("destroy",(()=>{L()}));const I=()=>{t.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),L()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),P(),b(),g()},disable:I,updateSize:b,setTranslate:g,init:P,destroy:L})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:a}=t,i=a?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}e.style.transform=p},n=()=>{const{el:e,slides:s,progress:a,snapGrid:n,isElement:l}=t,o=f(e,i);t.isElement&&o.push(...f(t.hostEl,i)),o.forEach((e=>{r(e,a)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-a*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&n()})),a("setTranslate",(()=>{t.params.parallax.enabled&&n()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:a}=t,r=[...s.querySelectorAll(i)];t.isElement&&r.push(...a.querySelectorAll(i)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,
vendor: 5,821 bytes, line 21746
21746limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,o,c=1,p=!1;const u=[],m={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},h={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,b=1;function y(){if(u.length<2)return 1;const e=u[0].pageX,t=u[0].pageY,s=u[1].pageX,a=u[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function x(){const e=t.params.zoom,s=m.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&m.imageEl&&m.imageEl.naturalWidth){const e=m.imageEl.naturalWidth/m.imageEl.offsetWidth;return Math.min(e,s)}return s}function S(e){const s=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(s)||t.slides.filter((t=>t.contains(e.target))).length>0}function T(e){if("mouse"===e.pointerType&&u.splice(0,u.length),!S(e))return;const s=t.params.zoom;if(l=!1,o=!1,u.push(e),!(u.length<2)){if(l=!0,m.scaleStart=y(),!m.slideEl){m.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),m.slideEl||(m.slideEl=t.slides[t.activeIndex]);let a=m.slideEl.querySelector(`.${s.containerClass}`);if(a&&(a=a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=a,m.imageWrapEl=a?E(m.imageEl,`.${s.containerClass}`)[0]:void 0,!m.imageWrapEl)return void(m.imageEl=void 0);m.maxRatio=x()}if(m.imageEl){const[e,t]=function(){if(u.length<2)return{x:null,y:null};const e=m.imageEl.getBoundingClientRect();return[(u[0].pageX+(u[1].pageX-u[0].pageX)/2-e.x-n.scrollX)/c,(u[0].pageY+(u[1].pageY-u[0].pageY)/2-e.y-n.scrollY)/c]}();m.originX=e,m.originY=t,m.imageEl.style.transitionDuration="0ms"}p=!0}}function M(e){if(!S(e))return;const s=t.params.zoom,a=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(u[i]=e),u.length<2||(o=!0,m.scaleMove=y(),m.imageEl&&(a.scale=m.scaleMove/m.scaleStart*c,a.scale>m.maxRatio&&(a.scale=m.maxRatio-1+(a.scale-m.maxRatio+1)**.5),a.scale<s.minRatio&&(a.scale=s.minRatio+1-(s.minRatio-a.scale+1)**.5),m.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`))}function C(e){if(!S(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const s=t.params.zoom,a=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&u.splice(i,1),l&&o&&(l=!1,o=!1,m.imageEl&&(a.scale=Math.max(Math.min(a.scale,m.maxRatio),s.minRatio),m.imageEl.style.transitionDuration=`${t.params.speed}ms`,m.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,c=a.scale,p=!1,a.scale>1&&m.slideEl?m.slideEl.classList.add(`${s.zoomedSlideClass}`):a.scale<=1&&m.slideEl&&m.slideEl.classList.remove(`${s.zoomedSlideClass}`),1===a.scale&&(m.originX=0,m.originY=0,m.slideEl=void 0)))}function P(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function L(e){if(!S(e)||!function(e){const s=`.${t.params.zoom.containerClass}`;return!!e.target.matches(s)||[...t.hostEl.querySelectorAll(s)].filter((t=>t.contains(e.target))).length>0}(e))return;const s=t.zoom;if(!m.imageEl)return;if(!h.isTouched||!m.slideEl)return;h.isMoved||(h.width=m.imageEl.offsetWidth||m.imageEl.clientWidth,h.height=m.imageEl.offsetHeight||m.imageEl.clientHeight,h.startX=d(m.imageWrapEl,"x")||0,h.startY=d(m.imageWrapEl,"y")||0,m.slideWidth=m.slideEl.offsetWidth,m.slideHeight=m.slideEl.offsetHeight,m.imageWrapEl.style.transitionDuration="0ms");const a=h.width*s.scale,i=h.height*s.scale;h.minX=Math.min(m.slideWidth/2-a/2,0),h.maxX=-h.minX,h.minY=Math.min(m.slideHeight/2-i/2,0),h.maxY=-h.minY,h.touchesCurrent.x=u.length>0?u[0].pageX:e.pageX,h.touchesCurrent.y=u.length>0?u[0].pageY:e.pageY;if(Math.max(Math.abs(h.touchesCurrent.x-h.touchesStart.x),Math.abs(h.touchesCurrent.y-h.touchesStart.y))>5&&(t.allowClick=!1),!h.isMoved&&!p){if(t.isHorizontal()&&(Math.floor(h.minX)===Math.floor(h.startX)&&h.touchesCurrent.x<h.touchesStart.x||Math.floor(h.maxX)===Math.floor(h.startX)&&h.touchesCurrent.x>h.touchesStart.x))return h.isTouched=!1,void P();if(!t.isHorizontal()&&(Math.floor(h.minY)===Math.floor(h.startY)&&h.touchesCurrent.y<h.touchesStart.y||Math.floor(h.maxY)===Math.floor(h.startY)&&h.touchesCurrent.y>h.touchesStart.y))return h.isTouched=!1,void P()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout((()=>{P()})),h.isMoved=!0;const r=(s.scale-c)/(m.maxRatio-t.params.zoom.minRatio),{originX:n,originY:l}=m;h.currentX=h.touchesCurrent.x-h.touchesStart.x+h.startX+r*(h.width-2*n),h.currentY=h.touchesCurrent.y-h.touchesStart.y+h.startY+r*(h.height-2*l),h.currentX<h.minX&&(h.currentX=h.minX+1-(h.minX-h.currentX+1)**.8),h.currentX>h.maxX&&(h.currentX=h.maxX-1+(h.currentX-h.maxX+1)**.8),h.currentY<h.minY&&(h.currentY=h.minY+1-(h.minY-h.currentY+1)**.8),h.currentY>h.maxY&&(h.currentY=h.maxY-1+(h.currentY-h.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=h.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=h.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(h.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(h.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(h.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(h.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=h.touchesCurrent.x,g.prevPositionY=h.touchesCurrent.y,g.prevTime=Date.now(),m.imageWrapEl.style.transform=`translate3d(${h.currentX}px, ${h.currentY}px,0)`}function I(){const e=t.zoom;m.slideEl&&t.activeIndex!==t.slides.indexOf(m.slideEl)&&(m.imageEl&&(m.imageEl.style.transform="translate3d(0,
217460,0) scale(1)"),m.imageWrapEl&&(m.imageWrapEl.style.transform="translate3d(0,0,0)"),m.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,c=1,m.slideEl=void 0,m.imageEl=void 0,m.imageWrapEl=void 0,m.originX=0,m.originY=0)}function z(e){const s=t.zoom,a=t.params.zoom;if(!m.slideEl){e&&e.target&&(m.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),m.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:m.slideEl=t.slides[t.activeIndex]);let s=m.slideEl.querySelector(`.${a.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=s,m.imageWrapEl=s?E(m.imageEl,`.${a.containerClass}`)[0]:void 0}if(!m.imageEl||!m.imageWrapEl)return;let i,r,l,o,d,p,u,g,v,b,y,S,T,M,C,P,L,I;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===h.touchesStart.x&&e?(i=e.pageX,r=e.pageY):(i=h.touchesStart.x,r=h.touchesStart.y);const z="number"==typeof e?e:null;1===c&&z&&(i=void 0,r=void 0);const A=x();s.scale=z||A,c=z||A,!e||1===c&&z?(u=0,g=0):(L=m.slideEl.offsetWidth,I=m.slideEl.offsetHeight,l=w(m.slideEl).left+n.scrollX,o=w(m.slideEl).top+n.scrollY,d=l+L/2-i,p=o+I/2-r,v=m.imageEl.offsetWidth||m.imageEl.clientWidth,b=m.imageEl.offsetHeight||m.imageEl.clientHeight,y=v*s.scale,S=b*s.scale,T=Math.min(L/2-y/2,0),M=Math.min(I/2-S/2,0),C=-T,P=-M,u=d*s.scale,g=p*s.scale,u<T&&(u=T),u>C&&(u=C),g<M&&(g=M),g>P&&(g=P)),z&&1===s.scale&&(m.originX=0,m.originY=0),m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform=`translate3d(${u}px, ${g}px,0)`,m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`}function A(){const e=t.zoom,s=t.params.zoom;if(!m.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:m.slideEl=t.slides[t.activeIndex];let e=m.slideEl.querySelector(`.${s.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=e,m.imageWrapEl=e?E(m.imageEl,`.${s.containerClass}`)[0]:void 0}m.imageEl&&m.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,c=1,m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform="translate3d(0,0,0)",m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform="translate3d(0,0,0) scale(1)",m.slideEl.classList.remove(`${s.zoomedSlideClass}`),m.slideEl=void 0,m.originX=0,m.originY=0)}function $(e){const s=t.zoom;s.scale&&1!==s.scale?A():z(e)}function k(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function O(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:s,activeListenerWithCapture:a}=k();t.wrapperEl.addEventListener("pointerdown",T,s),t.wrapperEl.addEventListener("pointermove",M,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,C,s)})),t.wrapperEl.addEventListener("pointermove",L,a)}function D(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:s,activeListenerWithCapture:a}=k();t.wrapperEl.removeEventListener("pointerdown",T,s),t.wrapperEl.removeEventListener("pointermove",M,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,C,s)})),t.wrapperEl.removeEventListener("pointermove",L,a)}Object.defineProperty(t.zoom,"scale",{get:()=>b,set(e){if(b!==e){const t=m.imageEl,s=m.slideEl;i("zoomChange",e,t,s)}b=e}}),a("init",(()=>{t.params.zoom.enabled&&O()})),a("destroy",(()=>{D()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;if(!m.imageEl)return;if(h.isTouched)return;s.android&&e.cancelable&&e.preventDefault(),h.isTouched=!0;const a=u.length>0?u[0]:e;h.touchesStart.x=a.pageX,h.touchesStart.y=a.pageY}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.imageEl)return;if(!h.isTouched||!h.isMoved)return h.isTouched=!1,void(h.isMoved=!1);h.isTouched=!1,h.isMoved=!1;let s=300,a=300;const i=g.x*s,r=h.currentX+i,n=g.y*a,l=h.currentY+n;0!==g.x&&(s=Math.abs((r-h.currentX)/g.x)),0!==g.y&&(a=Math.abs((l-h.currentY)/g.y
vendor: 4,109 bytes, line 21746
21746));const o=Math.max(s,a);h.currentX=r,h.currentY=l;const d=h.width*e.scale,c=h.height*e.scale;h.minX=Math.min(m.slideWidth/2-d/2,0),h.maxX=-h.minX,h.minY=Math.min(m.slideHeight/2-c/2,0),h.maxY=-h.minY,h.currentX=Math.max(Math.min(h.currentX,h.maxX),h.minX),h.currentY=Math.max(Math.min(h.currentY,h.maxY),h.minY),m.imageWrapEl.style.transitionDuration=`${o}ms`,m.imageWrapEl.style.transform=`translate3d(${h.currentX}px, ${h.currentY}px,0)`}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&$(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&I()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&I()})),Object.assign(t.zoom,{enable:O,disable:D,in:z,out:A,toggle:$})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const s=`${t.params.eventsPrefix}init`,a=i=>{t.controller.control.push(i.detail[0]),t.update(),e.removeEventListener(s,a)};e.addEventListener(s,a)}}))}else t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){if(e.destroyed)return;const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.destroyed||(s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&l((()=>{s.updateAutoHeight()})),x(s.wrapperEl,(()=>{i&&s.transitionEnd()}))))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,n,l=null,o=(new Date).getTime();function d(e){const t=l;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}
21746function c(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function p(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=T(e)).forEach((e=>{e.setAttribute("role",t)}))}function m(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function g(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function w(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=e.target;if(!t.pagination||!t.pagination.el||a!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(ne(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=T(t.navigation.prevEl);T(t.navigation.nextEl).includes(a)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(s.lastSlideMessage):d(s.nextSlideMessage)),e.includes(a)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(s.firstSlideMessage):d(s.prevSlideMessage))}t.pagination&&a.matches(ne(t.params.pagination.bulletClass))&&a.click()}}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function E(){return b()&&t.params.pagination.clickable}const x=(e,t,s)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",w)),h(e,s),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},S=e=>{n&&n!==e.target&&!n.contains(e.target)&&(r=!0),t.a11y.clicked=!0},M=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},C=e=>{o=(new Date).getTime()},P=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!s||!t.slides.includes(s))return;n=s;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{r||(t.params.loop?t.slideToLoop(parseInt(s.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(s),0),r=!1)})))},L=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&m(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const s=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((a,i)=>{const r=t.params.loop?parseInt(a.getAttribute("data-swiper-slide-index"),10):i;h(a,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))}))},I=()=>{const e=t.params.a11y;t.el.append(l);const s=t.el;e.containerRoleDescriptionMessage&&m(s,e.containerRoleDescriptionMessage),e.containerMessage&&h(s,e.containerMessage);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,T(i).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,o),L();let{nextEl:c,prevEl:p}=t.navigation?t.navigation:{};if(c=T(c),p=T(p),c&&c.forEach((t=>x(t,r,e.nextSlideMessage))),p&&p.forEach((t=>x(t,r,e.prevSlideMessage))),E()){T(t.pagination.el).forEach((e=>{e.addEventListener("keydown",w)}
vendor: 27,224 bytes, line 21746
21746))}a().addEventListener("visibilitychange",C),t.el.addEventListener("focus",P,!0),t.el.addEventListener("focus",P,!0),t.el.addEventListener("pointerdown",S,!0),t.el.addEventListener("pointerup",M,!0)};i("beforeInit",(()=>{l=v("span",t.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&I()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&L()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:s}=t.navigation;s&&(t.isBeginning?(f(s),p(s)):(g(s),c(s))),e&&(t.isEnd?(f(e),p(e)):(g(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;b()&&t.pagination.bullets.forEach((s=>{t.params.pagination.clickable&&(c(s),t.params.pagination.renderBullet||(u(s,"button"),h(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,y(s)+1)))),s.matches(ne(t.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){l&&l.remove();let{nextEl:e,prevEl:s}=t.navigation?t.navigation:{};e=T(e),s=T(s),e&&e.forEach((e=>e.removeEventListener("keydown",w))),s&&s.forEach((e=>e.removeEventListener("keydown",w))),E()&&T(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",w)}));a().removeEventListener("visibilitychange",C),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",P,!0),t.el.removeEventListener("pointerdown",S,!0),t.el.removeEventListener("pointerup",M,!0))}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):t.slides[s];let d=l(o.getAttribute("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e?`${e}/`:""}${d}`}else n.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides[i];if(l(r.getAttribute("data-history"))===s){const s=t.getSlideIndex(r);t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),n.key||n.value?(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p)):t.params.history.replaceState||e.addEventListener("popstate",p)}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),d=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,s){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter((e=>e.getAttribute("data-hash")===s))[0];if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(f(t.slidesEl,`.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const c=()=>{i("hashChange");const e=o.location.hash.replace("#",""),s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(s?s.getAttribute("data-hash"):"")){const s=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===s||Number.isNaN(s))return;t.slideTo(s)}},p=()=>{if(!l||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],s=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${s}`||""),i("hashSet")):(o.location.hash=s||"",i("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0,a=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(a||0,s,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&p()})),n("slideChange",(()=>{l&&t.params.cssMode&&p()}))},function(e){let t,s,{swiper:i,extendParams:r,on:n,emit:l,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,p,u,m,h,f,g,v=o&&o.autoplay?o.autoplay.delay:3e3,w=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),g||e.detail&&e.detail.bySwiperTouchMove||C())}const E=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(w=d,c=!1);const e=i.autoplay.paused?d:b+w-(new Date).getTime();i.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/v),s=requestAnimationFrame((()=>{E()}))},x=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(s),E();let a=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,w=i.params.autoplay.delay;const r=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(a=r,v=r,w=r),d=a;const n=i.params.speed,o=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,n,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,n,!0,!0),l("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return a>0?(clearTimeout(t),t=setTimeout((()=>{o()}),a)):requestAnimationFrame((()=>{o()})),a},S=()=>{b=(new Date).getTime(),i.autoplay.running=!0,x(),l("autoplayStart")},T=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(s),l("autoplayStop")},M=(e,s)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const a=()=>{l("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):C()};if(i.autoplay.paused=!0,s)return h&&(d=i.params.autoplay.delay),h=!1,void a();const r=d||i.params.autoplay.delay;d=r-((new Date).getTime()-b),i.isEnd&&d<0&&!i.params.loop||(d<0&&(d=0),a())},C=()=>{i.isEnd&&d<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(d)):x(),i.autoplay.paused=!1,l("autoplayResume"))},P=()=>{if(i.destroyed||!i.autoplay.running)return;const e=a();"hidden"===e.visibilityState&&(f=!0,M(!0)),"visible"===e.visibilityState&&C()},L=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,i.animating||i.autoplay.paused||M(!0))},I=e=>{"mouse"===e.pointerType&&(g=!1,i.autoplay.paused&&C())};n("init",(()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",L),i.el.addEventListener("pointerleave",I)),a().addEventListener("visibilitychange",P),S())})),n("destroy",(()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",L),i.el.removeEventListener("pointerleave",I)),a().removeEventListener("visibilitychange",P),i.autoplay.running&&T()})),n("_freeModeStaticRelease",(()=>{(u||f)&&C()})),n("_freeModeNoMomentumRelease",(()=>{i.params.autoplay.disableOnInteraction?T():M(!0,!0)})),n("beforeTransitionStart",((e,t,s)=>{!i.destroyed&&i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?M(!0,!0):T())})),n("sliderFirstMove",(()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?T():(p=!0,u=!1,f=!1,m=setTimeout((()=>{f=!0,u=!0,M(!0)}),200)))})),n("touchEnd",(()=>{if(!i.destroyed&&i.autoplay.running&&p){if(clearTimeout(m),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&i.params.cssMode&&C(),u=!1,p=!1}})),n("slideChange",(()=>{!i.destroyed&&i.autoplay.running&&(h=!0)})),Object.assign(i.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function l(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&a.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function o(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(c(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function d(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.forEach((e=>e.classList.remove(r))),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)f(s.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(r)}));else for(let e=0;e<i;e+=1)s.slides[t.realIndex+e]&&s.slides[t.realIndex+e].classList.add(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){const i=s.activeIndex;let r,o;if(s.params.loop){const e=s.slides.filter((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`))[0];r=s.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";l&&(r+="next"===o?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(r)<0&&(s.params.centeredSlides?r=r>i?r-Math.floor(a/2)+1:r+Math.floor(a/2)-1:r>i&&s.params.slidesPerGroup,s.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const s=a(),i=()=>{const a="string"==typeof e.swiper?s.querySelector(e.swiper):e.swiper;if(a&&a.swiper)e.swiper=a.swiper,o(),d(!0);else if(a){const s=`${t.params.eventsPrefix}init`,i=r=>{e.swiper=r.detail[0],a.removeEventListener(s,i),o(),d(!0),e.swiper.update(),t.update()};a.addEventListener(s,i)}return a},r=()=>{if(t.destroyed)return;i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),d(!0)})),i("slideChange update resize observerUpdate",(()=>{d()})),i("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:d})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:o()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:n,rtlTranslate:l,snapGrid:d,touchEventsData:c}=t,p=o()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||o()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;l&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(p<t.maxTranslate())r.freeMode.momentumBounce?(p+t.maxTranslate()<-h&&(p=t.maxTranslate()-h),u=t.maxTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(p>t.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<d.length;t+=1)if(d[t]>-p){e=t;break}p=Math.abs(d[e]-p)<Math.abs(d[e-1]-p)||"next"===t.swipeDirection?d[e]:d[e-1],p=-p}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&m?(t.updateProgress(u),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(n,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];i&&(a=Math.floor(a)),s[t]<r.virtualSize+s[0]&&e.push(a)}s.splice(0,s.length),s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:le.bind(t),prependSlide:oe.bind(t),addSlide:de.bind(t),removeSlide:ce.bind(t),removeAllSlides:pe.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1}}),ue({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s<e.length;s+=1){const e=t.slides[s];let a=-e.swiperSlideOffset;t.params.virtualTranslate||(a-=t.translate);let i=0;t.isHorizontal()||(i=a,a=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),n=me(0,e);n.style.opacity=r,n.style.transform=`translate3d(${a}px, ${i}px, 0px)`}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),he({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};ue({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=M(t),p=t.params.cubeEffect,u=t.isHorizontal(),m=t.virtual&&t.params.virtual.enabled;let h,f=0;p.shadow&&(u?(h=t.wrapperEl.querySelector(".swiper-cube-shadow"),h||(h=v("div","swiper-cube-shadow"),t.wrapperEl.append(h)),h.style.height=`${r}px`):(h=e.querySelector(".swiper-cube-shadow"),h||(h=v("div","swiper-cube-shadow"),e.append(h))));for(let e=0;e<a.length;e+=1){const t=a[e];let s=e;m&&(s=parseInt(t.getAttribute("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t.progress,1),-1);let h=0,g=0,v=0;s%4==0?(h=4*-n*o,v=0):(s-1)%4==0?(h=0,v=4*-n*o):(s-2)%4==0?(h=o+4*n*o,v=o):(s-3)%4==0&&(h=-o,v=3*o+4*o*n),l&&(h=-h),u||(g=h,h=0);const w=`rotateX(${c(u?0:-r)}deg) rotateY(${c(u?r:0)}deg) translate3d(${h}px, ${g}px, ${v}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.style.transform=w,p.slideShadows&&i(t,d,u)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,p.shadow)if(u)h.style.transform=`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;h.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${g}px) rotateX(${c(t.isHorizontal()?0:f)}deg) rotateY(${c(t.isHorizontal()?-f:0)}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=fe("flip",e,t.isHorizontal()?"left":"top")),i||(i=fe("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};ue({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect,r=M(t);for(let n=0;n<e.length;n+=1){const l=e[n];let o=l.progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(l.progress,1),-1));const d=l.swiperSlideOffset;let c=-180*o,p=0,u=t.params.cssMode?-d-t.translate:-d,m=0;t.isHorizontal()?s&&(c=-c):(m=u,u=0,p=-c,c=0),l.style.zIndex=-Math.abs(Math.round(o))+e.length,a.slideShadows&&i(l,o);const h=`translate3d(${u}px, ${m}px, 0px) rotateX(${r(p)}deg) rotateY(${r(c)}deg)`;me(0,l).style.transform=h}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),he({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ue({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth,p=M(t);for(let e=0,t=a.length;e<t;e+=1){const t=a[e],s=i[e],l=(o-t.swiperSlideOffset-s/2)/s,u="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let m=n?d*u:0,h=n?0:d*u,f=-c*Math.abs(u),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*s);let v=n?0:g*u,w=n?g*u:0,b=1-(1-r.scale)*Math.abs(u);Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(b)<.001&&(b=0);const y=`translate3d(${w}px,${v}px,${f}px)  rotateX(${p(h)}deg) rotateY(${p(m)}deg) scale(${b})`;if(me(0,t).style.transform=y,t.style.zIndex=1-Math.abs(Math.round(u)),r.slideShadows){let e=n?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),s=n?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=fe("coverflow",t,n?"left":"top")),s||(s=fe("coverflow",t,n?"right":"bottom")),e&&(e.style.opacity=u>0?u:0),s&&(s.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((e=>h(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;ue({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides,o=M(t);if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s<e.length;s+=1){const a=e[s],d=a.progress,c=Math.min(Math.max(a.progress,-r.limitProgress),r.limitProgress);let p=c;l||(p=Math.min(Math.max(a.originalProgress,-r.limitProgress),r.limitProgress));const u=a.swiperSlideOffset,m=[t.params.cssMode?-u-t.translate:-u,0,0],h=[0,0,0];let f=!1;t.isHorizontal()||(m[1]=m[0],m[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(g=r.next,f=!0):c>0&&(g=r.prev,f=!0),m.forEach(((e,t)=>{m[t]=`calc(${e}px + (${i(g.translate[t])} * ${Math.abs(c*n)}))`})),h.forEach(((e,t)=>{let s=g.rotate[t]*Math.abs(c*n);h[t]=s})),a.style.zIndex=-Math.abs(Math.round(d))+e.length;const v=m.join(", "),w=`rotateX(${o(h[0])}deg) rotateY(${o(h[1])}deg) rotateZ(${o(h[2])}deg)`,b=p<0?`scale(${1+(1-g.scale)*p*n})`:`scale(${1-(1-g.scale)*p*n}
21746)`,y=p<0?1+(1-g.opacity)*p*n:1-(1-g.opacity)*p*n,E=`translate3d(${v}) ${w} ${b}`;if(f&&g.shadow||!f){let e=a.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=fe("creative",a)),e){const t=r.shadowPerProgress?c*(1/r.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=me(0,a);x.style.transform=E,x.style.opacity=y,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),he({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ue({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o<e.length;o+=1){const d=e[o],c=d.progress,p=Math.min(Math.max(c,-4),4);let u=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(u-=e[0].swiperSlideOffset);let m=t.params.cssMode?-u-t.translate:-u,h=0;const f=-100*Math.abs(p);let g=1,v=-i.perSlideRotate*p,w=i.perSlideOffset-.75*Math.abs(p);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+o:o,y=(b===s||b===s-1)&&p>0&&p<1&&(n||t.params.cssMode)&&l<r,E=(b===s||b===s+1)&&p<0&&p>-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n        translate3d(${m}, ${h}, ${f}px)\n        rotateZ(${i.rotate?a?-v:v:0}deg)\n        scale(${x})\n      `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=fe("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length;me(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),he({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return ie.use(ge),ie}();
21747var t,e;t=this,e=function(){"use strict";var t=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher"];function e(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function n(t){return null!==t&&"object"==typeof t}var r=Object.prototype.toString,i="[object Object]";function a(t){return r.call(t)===i}function s(t){return null==t}function o(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=null,i=null;return 1===t.length?n(t[0])||Array.isArray(t[0])?i=t[0]:"string"==typeof t[0]&&(r=t[0]):2===t.length&&("string"==typeof t[0]&&(r=t[0]),(n(t[1])||Array.isArray(t[1]))&&(i=t[1])),{locale:r,params:i}}function l(t){return JSON.parse(JSON.stringify(t))}var c=Object.prototype.hasOwnProperty;function u(t,e){return c.call(t,e)}function f(t){for(var e=arguments,r=Object(t),i=1;i<arguments.length;i++){var a=e[i];if(null!=a){var s=void 0;for(s in a)u(a,s)&&(n(a[s])?r[s]=f(r[s],a[s]):r[s]=a[s])}}return r}function h(t,e){if(t===e)return!0;var r=n(t),i=n(e);if(!r||!i)return!r&&!i&&String(t)===String(e);try{var a=Array.isArray(t),s=Array.isArray(e);if(a&&s)return t.length===e.length&&t.every(function(t,n){return h(t,e[n])});if(a||s)return!1;var o=Object.keys(t),l=Object.keys(e);return o.length===l.length&&o.every(function(n){return h(t[n],e[n])})}catch(t){return!1}}var p={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n){if(t.i18n instanceof Q){if(t.__i18n)try{var e={};
21747t.__i18n.forEach(function(t){e=f(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(a(t.i18n)){if(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Q&&(t.i18n.root=this.$root,t.i18n.formatter=this.$root.$i18n.formatter,t.i18n.fallbackLocale=this.$root.$i18n.fallbackLocale,t.i18n.formatFallbackMessages=this.$root.$i18n.formatFallbackMessages,t.i18n.silentTranslationWarn=this.$root.$i18n.silentTranslationWarn,t.i18n.silentFallbackWarn=this.$root.$i18n.silentFallbackWarn,t.i18n.pluralizationRules=this.$root.$i18n.pluralizationRules,t.i18n.preserveDirectiveContent=this.$root.$i18n.preserveDirectiveContent),t.__i18n)try{var n={};t.__i18n.forEach(function(t){n=f(n,JSON.parse(t))}),t.i18n.messages=n}catch(t){}var r=t.i18n.sharedMessages;r&&a(r)&&(t.i18n.messages=f(t.i18n.messages,r)),this._i18n=new Q(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale())}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Q?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Q&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?t.i18n instanceof Q?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):a(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Q?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Q&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher),t._i18n=null})}}},m={name:"i18n",functional:!0,props:{tag:{type:String},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,r=e.parent,i=e.props,a=e.slots,s=r.$i18n;if(s){var o=i.path,l=i.locale,c=i.places,u=a(),f=s.i(o,l,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(u)||c?function(t,e){var n=e?function(t){return Array.isArray(t)?t.reduce(_,{}):Object.assign({},t)}(e):{};if(!t)return n;var r=t.every(v);return t.reduce(r?g:_,n)}(u.default,c):u),h=i.tag||"span";return h?t(h,n,f):f}}};function g(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function _(t,e,n){return t[n]=e,t}function v(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var y,b={name:"i18n-n",functional:!0,props:{tag:{type:String,default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,r){var i=r.props,a=r.parent,s=r.data,o=a.$i18n;if(!o)return null;var l=null,c=null;"string"==typeof i.format?l=i.format:n(i.format)&&(i.format.key&&(l=i.format.key),c=Object.keys(i.format).reduce(function(e,n){var r;return t.includes(n)?Object.assign({},e,((r={})[n]=i.format[n],r)):e},null));var u=i.locale||o.locale,f=o._ntp(i.value,u,l,c),h=f.map(function(t,e){var n,r=s.scopedSlots&&s.scopedSlots[t.type];return r?r(((n={})[t.type]=t.value,n.index=e,n.parts=f,n)):t.value});return e(i.tag,{attrs:s.attrs,class:s.class,staticClass:s.staticClass},h)}};function d(t,e,n){w(t,n)&&$(t,e,n)}function F(t,e,n,r){if(w(t,n)){var i=n.context.$i18n;(function(t,e){var n=e.context;return t._locale===n.$i18n.locale})(t,n)&&h(e.value,e.oldValue)&&h(t._localeMessage,i.getLocaleMessage(i.locale))||$(t,e,n)}}function k(t,n,r,i){if(r.context){var a=r.context.$i18n||{};n.modifiers.preserve||a.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}else e("Vue instance does not exists in VNode context")}function w(t,n){var r=n.context;return r?!!r.$i18n||(e("VueI18n instance does not exists in Vue instance"),!1):(e("Vue instance does not exists in VNode context"),!1)}function $(t,n,r){var i,s,o=function(t){var e,n,r,i;"string"==typeof t?e=t:a(t)&&(e=t.path,n=t.locale,r=t.args,i=t.choice);return{path:e,locale:n,args:r,choice:i}}(n.value),l=o.path,c=o.locale,u=o.args,f=o.choice;if(l||c||u)if(l){var h=r.context;t._vt=t.textContent=f?(i=h.$i18n).tc.apply(i,[l,f].concat(M(c,u))):(s=h.$i18n).t.apply(s,[l].concat(M(c,u))),t._locale=h.$i18n.locale,t._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}else e("`path` is required in v-t directive");else e("value type not supported")}function M(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||a(e))&&n.push(e),n}function D(t){D.installed=!0;(y=t).version&&Number(y.version.split(".")[0]);!function(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){for(var e=[],n=arguments.length-1;n-->0;)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var n=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){for(var e,n=[],r=arguments.length-1;r-->0;)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){for(var e,n=[],r=arguments.length-1;r-->0;)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}(y),y.mixin(p),y.directive("t",{bind:d,update:F,unbind:k}),y.component(m.name,m),y.component(b.name,b),y.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var T=function(){this._caches=Object.create(null)};T.prototype.interpolate=function(t,e){if(!e)return[t];var r=this._caches[t];return r||(r=function(t){var e=[],n=0,r="";for(;n<t.length;){var i=t[n++];if("{"===i){r&&e.push({type:"text",value:r}),r="";var a="";for(i=t[n++];void 0!==i&&"}"!==i;)a+=i,i=t[n++];var s="}"===i,o=L.test(a)?"list":s&&I.test(a)?"named":"unknown";e.push({value:a,type:o})}else"%"===i?"{"!==t[n]&&(r+=i):r+=i}return r&&e.push({type:"text",value:r}),e}(t),this._caches[t]=r),function(t,e){var r=[],i=0,a=Array.isArray(e)?"list":n(e)?"named":"unknown";if("unknown"===a)return r;for(;i<t.length;){var s=t[i];switch(s.type){case"text":r.push(s.value);break;case"list":r.push(e[parseInt(s.value,10)]);break;case"named":"named"===a&&r.push(e[s.value])}i++}return r}(r,e)};var L=/^(?:\d)+/,I=/^(?:\w)+/,x=0,W=1,O=2,C=3,j=0,N=4,S=5,A=6,H=7,R=8,V=[];V[j]={ws:[j],ident:[3,x],"[":[N],eof:[H]},V[1]={ws:[1],".":[2],"[":[N],eof:[H]},V[2]={ws:[2],ident:[3,x],0:[3,x],number:[3,x]},V[3]={ident:[3,x],0:[3,x],number:[3,x],ws:[1,W],".":[2,W],"[":[N,W],eof:[H,W]}
21747,V[N]={"'":[S,x],'"':[A,x],"[":[N,O],"]":[1,C],eof:R,else:[N,x]},V[S]={"'":[N,x],eof:R,else:[S,x]},V[A]={'"':[N,x],eof:R,else:[A,x]};var E=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function P(t){if(null==t)return"eof";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function z(t){var e,n,r,i=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(r=i,E.test(r)?(n=(e=i).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==n&&39!==n?e:e.slice(1,-1):"*"+i)}var J=function(){this._cache=Object.create(null)};J.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=function(t){var e,n,r,i,a,s,o,l=[],c=-1,u=j,f=0,h=[];function p(){var e=t[c+1];if(u===S&&"'"===e||u===A&&'"'===e)return c++,r="\\"+e,h[x](),!0}for(h[W]=function(){void 0!==n&&(l.push(n),n=void 0)},h[x]=function(){void 0===n?n=r:n+=r},h[O]=function(){h[x](),f++},h[C]=function(){if(f>0)f--,u=N,h[x]();else{if(f=0,!1===(n=z(n)))return!1;h[W]()}};null!==u;)if("\\"!==(e=t[++c])||!p()){if(i=P(e),(a=(o=V[u])[i]||o.else||R)===R)return;if(u=a[0],(s=h[a[1]])&&(r=void 0===(r=a[2])?e:r,!1===s()))return;if(u===H)return l}}(t))&&(this._cache[t]=e),e||[]},J.prototype.getPathValue=function(t,e){if(!n(t))return null;var r=this.parsePath(e);if(0===r.length)return null;for(var i=r.length,a=t,s=0;s<i;){var o=a[r[s]];if(void 0===o)return null;a=o,s++}return a};var U,q=/<\/?[\w\s="\/.':;#-\/]+>/,B=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,G=/^@(?:\.([a-z]+))?:/,X=/[()]/g,Z={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()}},K=new T,Q=function(t){var e=this;void 0===t&&(t={}),!y&&"undefined"!=typeof window&&window.Vue&&D(window.Vue);var n=t.locale||"en-US",r=t.fallbackLocale||"en-US",i=t.messages||{},a=t.dateTimeFormats||{},o=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||K,this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new J,this._dataListeners=[],this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._exist=function(t,n){return!(!t||!n)&&(!s(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEac
21747h(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])}),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:a,numberFormats:o})},Y={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0}};return Q.prototype._checkLocaleMessage=function(t,n,r){var i=function(t,n,r,s){if(a(r))Object.keys(r).forEach(function(e){var o=r[e];a(o)?(s.push(e),s.push("."),i(t,n,o,s),s.pop(),s.pop()):(s.push(e),i(t,n,o,s),s.pop())});else if(Array.isArray(r))r.forEach(function(e,r){a(e)?(s.push("["+r+"]"),s.push("."),i(t,n,e,s),s.pop(),s.pop()):(s.push("["+r+"]"),i(t,n,e,s),s.pop())});else if("string"==typeof r){if(q.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+s.join("")+"' at '"+n+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?e(o):"error"===t&&function(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}(o)}}};i(n,t,r,[])},Q.prototype._initVM=function(t){var e=y.config.silent;y.config.silent=!0,this._vm=new y({data:t}),y.config.silent=e},Q.prototype.destroyVM=function(){this._vm.$destroy()},Q.prototype.subscribeDataChanging=function(t){this._dataListeners.push(t)},Q.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)t.splice(n,1)}}(this._dataListeners,t)},Q.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e=t._dataListeners.length;e--;)y.nextTick(function(){t._dataListeners[e]&&t._dataListeners[e].$forceUpdate()})},{deep:!0})},Q.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(e){t.$set(t,"locale",e),t.$forceUpdate()},{immediate:!0})},Y.vm.get=function(){return this._vm},Y.messages.get=function(){return l(this._getMessages())},Y.dateTimeFormats.get=function(){return l(this._getDateTimeFormats())},Y.numberFormats.get=function(){return l(this._getNumberFormats())},Y.availableLocales.get=function(){return Object.keys(this.messages).sort()},Y.locale.get=function(){return this._vm.locale},Y.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},Y.fallbackLocale.get=function(){return this._vm.fallbackLocale},Y.fallbackLocale.set=function(t){this._vm.$set(this._vm,"fallbackLocale",t)},Y.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Y.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},Y.missing.get=function(){return this._missing},Y.missing.set=function(t){this._missing=t},Y.formatter.get=function(){return this._formatter},Y.formatter.set=function(t){this._formatter=t},Y.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Y.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},Y.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Y.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},Y.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Y.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},Y.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Y.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var r=this._getMessages();Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})}},Q.prototype._getMessages=function(){return this._vm.messages},Q.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Q.prototype._getNumberFormats=function(){return this._vm.numberFormats},Q.prototype._warnDefault=function(t,e,n,r,i){if(!s(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,r,i]);if("string"==typeof a)return a}if(this._formatFallbackMessages){var l=o.apply(void 0,i);return this._render(e,"string",l.params,e)}return e},Q.prototype._isFallbackRoot=function(t){return!t&&!s(this._root)&&this._fallbackRoot},Q.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},Q.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)}
21747,Q.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},Q.prototype._interpolate=function(t,e,n,r,i,o,l){if(!e)return null;var c,u=this._path.getPathValue(e,n);if(Array.isArray(u)||a(u))return u;if(s(u)){if(!a(e))return null;if("string"!=typeof(c=e[n]))return null}else{if("string"!=typeof u)return null;c=u}return(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,r,"raw",o,l)),this._render(c,i,o,n)},Q.prototype._link=function(t,e,n,r,i,a,s){var o=n,l=o.match(B);for(var c in l)if(l.hasOwnProperty(c)){var u=l[c],f=u.match(G),h=f[0],p=f[1],m=u.replace(h,"").replace(X,"");if(s.includes(m))return o;s.push(m);var g=this._interpolate(t,e,m,r,"raw"===i?"string":i,"raw"===i?void 0:a,s);if(this._isFallbackRoot(g)){if(!this._root)throw Error("unexpected error");var _=this._root.$i18n;g=_._translate(_._getMessages(),_.locale,_.fallbackLocale,m,r,i,a)}g=this._warnDefault(t,m,g,r,Array.isArray(a)?a:[a]),Z.hasOwnProperty(p)&&(g=Z[p](g)),s.pop(),o=g?o.replace(u,g):o}return o},Q.prototype._render=function(t,e,n,r){var i=this._formatter.interpolate(t,n,r);return i||(i=K.interpolate(t,n,r)),"string"===e?i.join(""):i},Q.prototype._translate=function(t,e,n,r,i,a,o){var l=this._interpolate(e,t[e],r,i,a,o,[r]);return s(l)&&s(l=this._interpolate(n,t[n],r,i,a,o,[r]))?null:l},Q.prototype._t=function(t,e,n,r){for(var i,a=[],s=arguments.length-4;s-->0;)a[s]=arguments[s+4];if(!t)return"";var l=o.apply(void 0,a),c=l.locale||e,u=this._translate(n,c,this.fallbackLocale,t,r,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(a))}return this._warnDefault(c,t,u,r,a)},Q.prototype.t=function(t){for(var e,n=[],r=arguments.length-1;r-->0;)n[r]=arguments[r+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},Q.prototype._i=function(t,e,n,r,i){var a=this._translate(n,e,this.fallbackLocale,t,r,"raw",i);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,a,r,[i])},Q.prototype.i=function(t,e,n){return t?("string"!=typeof e&&(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},Q.prototype._tc=function(t,e,n,r,i){for(var a,s=[],l=arguments.length-5;l-->0;)s[l]=arguments[l+5];if(!t)return"";void 0===i&&(i=1);var c={count:i,n:i},u=o.apply(void 0,s);return u.params=Object.assign(c,u.params),s=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((a=this)._t.apply(a,[t,e,n,r].concat(s)),i)},Q.prototype.fetchChoice=function(t,e){if(!t&&"string"!=typeof t)return null;var n=t.split("|");return n[e=this.getChoiceIndex(e,n.length)]?n[e].trim():t},Q.prototype.getChoiceIndex=function(t,e){var n,r;return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[t,e]):(n=t,r=e,n=Math.abs(n),2===r?n?n>1?1:0:1:n?Math.min(n,2):0)},Q.prototype.tc=function(t,e){for(var n,r=[],i=arguments.length-2;i-->0;)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(r))},Q.prototype._te=function(t,e,n){for(var r=[],i=arguments.length-3;i-->0;)r[i]=arguments[i+3];var a=o.apply(void 0,r).locale||e;return this._exist(n[a],t)},Q.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},Q.prototype.getLocaleMessage=function(t){return l(this._vm.messages[t]||{})},Q.prototype.setLocaleMessage=function(t,e){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(t,this._warnHtmlInMessage,e),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,t,e)},Q.prototype.mergeLocaleMessage=function(t,e){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(t,this._warnHtmlInMessage,e),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,t,f(this._vm.messages[t]||{},e))},Q.prototype.getDateTimeFormat=function(t){return l(this._vm.dateTimeFormats[t]||{})},Q.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e)},Q.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,f(this._vm.dateTimeFormats[t]||{},e))},Q.prototype._localizeDateTime=function(t,e,n,r,i){var a=e,o=r[a];if((s(o)||s(o[i]))&&(o=r[a=n]),s(o)||s(o[i]))return null;var l=o[i],c=a+"__"+i,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(a,l)),u.format(t)},Q.prototype._d=function(t,e,n){if(!n)return new Intl.DateTimeFormat(e).format(t);var r=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return r||""},Q.prototype.d=function(t){for(var e=[],r=arguments.length-1;r-->0;)e[r]=arguments[r+1];var i=this.locale,a=null;return 1===e.length?"string"==typeof e[0]?a=e[0]:n(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(a=e[0].key)):2===e.length&&("string"==typeof e[0]&&(a=e[0]),"string"==typeof e[1]&&(i=e[1])),this._d(t,i,a)},Q.prototype.getNumberFormat=function(t){return l(this._vm.numberFormats[t]||{})},Q.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e)},Q.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,f(this._vm.numberFormats[t]||{},e))},Q.prototype._getNumberFormatter=function(t,e,n,r,i,a){var o=e,l=r[o];if((s(l)||s(l[i]))&&(l=r[o=n]),s(l)||s(l[i]))return null;var c,u=l[i];if(a)c=new Intl.NumberFormat(o,Object.assign({},u,a));else{var f=o+"__"+i;(c=this._numberFormatters[f])||(c=this._numberFormatters[f]=new Intl.NumberFormat(o,u))}return c},Q.prototype._n=function(t,e,n,r){if(!Q.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).format(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},r))}return a||""},Q.prototype.n=function(e){for(var r=[],i=arguments.length-1;i-->0;)r[i]=arguments[i+1];var a=this.locale,s=null,o=null;return 1===r.length?"string"==typeof r[0]?s=r[0]:n(r[0])&&(r[0].locale&&(a=r[0].locale),r[0].key&&(s=r[0].key),o=Object.keys(r[0]).reduce(function(e,n){var i;return t.includes(n)?Object.assign({},e,((i={})[n]=r[0][n],i)):e},null)):2===r.length&&("string"==typeof r[0]&&(s=r[0]),"string"==typeof r[1]&&(a=r[1])),this._n(e,a,s,o)},Q.prototype._ntp=function(t,e,n,r){if(!Q.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).formatToParts(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,r)}return a||[]},Object.defineProperties(Q.prototype,Y),Object.defineProperty(Q,"availabilities",{get:function(){if(!U){var t="undefined"!=typeof Intl;U={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return U}}),Q.install=D,Q.version="8.14.0",Q},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueI18n=e();
21748Vue.use(VueI18n);
21749function loadVueDocumentTranslations(topic,fallbackLocale){
21750return loadVueTranslations(topic,document.documentElement.getAttribute("lang"),fallbackLocale);
21751}
21752function loadVueTranslations(topic,locale,fallbackLocale){
21753if(!locale){
21754locale='de';
21755}
21756if(!fallbackLocale){
21757fallbackLocale='de';
21758}
21759var i18n=new VueI18n({
21760locale:locale,
21761fallbackLocale:fallbackLocale,
21762messages:{},
21763});
21764fetch(ionasInfo.context+'/:vue-i18n/'+topic+'/'+locale+','+fallbackLocale,{
21765headers:{'Accept':'application/json'}
21766})
21767.then(function(response){
21768if(200===response.status){
21769return response.json();
21770}else if(204===response.status){
21771return{};
21772}else{
21773return Promise.reject(response.status+' '+response.statusText);
21774}
21775})
21776.then(function(messages){
21777Object.keys(messages).forEach(function(lang){
21778i18n.setLocaleMessage(lang,messages[lang]);
21779});
21780})
21781.catch(function(error){
21782console.warn('Failed to load "'+topic+'" translations: '+error);
21783});
21784return i18n;
21785}
21786const search2020invisibleElements=[
21787'.search-button',
21788'.search-input__container',
21789'.mixed-slider__search-inner-wrapper',
21790'.c-c-ui-search-button-wrapper'
21791]
21792window.addEventListener('DOMContentLoaded',(event)=>{
21793if(location.href.match(/\/:translation\//)){
21794search2020invisibleElements.forEach(elementSelector=>{
21795document.querySelectorAll(elementSelector).forEach(element=>{
21796element.style.visibility='hidden';
21797});
21798});
21799}
21800});(function(){
21801(function(){
21802(function(){
21803(function(){
21804(function(){
21805(function(){
21806var that=this;
21807const wordsPerMinute=200;
21808this.getReadingTime=function(text){
21809let textLength=text.split(" ").length;
21810return Math.ceil(textLength/wordsPerMinute);
21811}
21812$(function(){
21813var container=document.querySelector("[data-reading-time]");
21814if(!container)return;
21815var target=document.querySelector(container.getAttribute("data-reading-time"));
21816if(!target)return;
21817var text=$(target).text();
21818if(text.trim().length===0)return;
21819var readingTime=that.getReadingTime(text);
21820var attributeName=readingTime===1?"data-reading-time-singular-label":"data-reading-time-label";
21821if(container.hasAttribute(attributeName)){
21822var readingTimeLabel=container.getAttribute(attributeName).replace("%MINUTES%",readingTime);
21823$(container).text(readingTimeLabel);
21824}
21825}
vendor: 22,991 bytes, lines 21825-21832
21825);
21826}).call(this.ReadingTime||(this.ReadingTime={}));
21827}).call(this.Teasers||(this.Teasers={}));
21828}).call(this.content||(this.content={}));
21829}).call(this.Common||(this.Common={}));
21830}).call(this.Common||(this.Common={}));
21831}).call(window.Pegasus||(window.Pegasus={}));
21832!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Glide=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function s(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return s(this,n)}}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=u(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},c.apply(this,arguments)}var l={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function f(t){console.error("[Glide warn]: ".concat(t))}function d(t){return parseInt(t)}function h(t){return"string"==typeof t}function v(e){var n=t(e);return"function"===n||"object"===n&&!!e}function p(t){return"function"==typeof t}function m(t){return void 0===t}function g(t){return t.constructor===Array}function y(t,e,n){var i={};for(var r in e)p(e[r])?i[r]=e[r](t,i,n):f("Extension must be a function");for(var o in i)p(i[o].mount)&&i[o].mount();return i}function b(t,e,n){Object.defineProperty(t,e,n)}function w(t,e){var n=Object.assign({},t,e);return e.hasOwnProperty("classes")&&(n.classes=Object.assign({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=Object.assign({},t.classes.direction,e.classes.direction)),e.classes.hasOwnProperty("type")&&(n.classes.type=Object.assign({},t.classes.type,e.classes.type)),e.classes.hasOwnProperty("slide")&&(n.classes.slide=Object.assign({},t.classes.slide,e.classes.slide)),e.classes.hasOwnProperty("arrow")&&(n.classes.arrow=Object.assign({},t.classes.arrow,e.classes.arrow)),e.classes.hasOwnProperty("nav")&&(n.classes.nav=Object.assign({},t.classes.nav,e.classes.nav))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),n}var _=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.events=n,this.hop=n.hasOwnProperty}return i(t,[{key:"on",value:function(t,e){if(!g(t)){this.hop.call(this.events,t)||(this.events[t]=[]);var n=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][n]}}}for(var i=0;i<t.length;i++)this.on(t[i],e)}},{key:"emit",value:function(t,e){if(g(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);else this.hop.call(this.events,t)&&this.events[t].forEach((function(t){t(e||{})}))}}]),t}(),k=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,t),this._c={},this._t=[],this._e=new _,this.disabled=!1,this.selector=n,this.settings=w(l,i),this.index=this.settings.startAt}return i(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),v(t)?this._c=y(this,t,this._e):f("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return g(t)?this._t=t:f("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=w(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){v(t)?this._o=t:f("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=d(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}();function S(){return(new Date).getTime()}function H(t,e,n){var i,r,o,s,a=0;n||(n={});var u=function(){a=!1===n.leading?0:S(),i=null,s=t.apply(r,o),i||(r=o=null)},c=function(){var c=S();a||!1!==n.leading||(a=c);var l=e-(c-a);return r=this,o=arguments,l<=0||l>e?(i&&(clearTimeout(i),i=null),a=c,s=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(u,l)),s};return c.cancel=function(){clearTimeout(i),a=0,i=r=o=null},c}var O={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function T(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function x(t){return!!(t&&t instanceof window.HTMLElement)}function A(t){return Array.prototype.slice.call(t)}var j='[data-glide-el="track"]';var R=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.listeners=n}return i(t,[{key:"on",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];h(t)&&(t=[t]);for(var r=0;r<t.length;r++)this.listeners[t[r]]=n,e.addEventListener(t[r],this.listeners[t[r]],i)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.removeEventListener(t[i],this.listeners[t[i]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),t}();var P=["ltr","rtl"],C={">":"<","<":">","=":"="};function L(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function M(t,e){return{modify:function(t){var n=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*n}}}function z(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function E(t,e){return{modify:function(n){if(t.settings.focusAt>=0){var i=e.Peek.value;return v(i)?n-i.before:n-i}return n}}}function D(t,e){return{modify:function(n){var i=e.Gaps.value,r=e.Sizes.width,o=t.settings.focusAt,s=e.Sizes.slideWidth;return"center"===o?n-(r/2-s/2):n-s*o-i*o}}}var B=!1;try{var W=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("testPassive",null,W),window.removeEventListener("testPassive",null,W)}catch(t){}var q=B,I=["touchstart","mousedown"],V=["touchmove","mousemove"],G=["touchend","touchcancel","mouseup","mouseleave"],F=["mousedown","mousemove","mouseup","mouseleave"];var N='[data-glide-el^="controls"]',Y="".concat(N,' [data-glide-dir*="<"]'),X="".concat(N,' [data-glide-dir*=">"]');function K(t){return v(t)?(e=t,Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t[n],t}),{})):(f("Breakpoints option must be an object"),{});var e}var J={Html:function(t,e,n){var i={mount:function(){this.root=t.selector,this.track=this.root.querySelector(j),this.collectSlides()},collectSlides:function(){this.slides=A(this.wrapper.children).filter((function(e){return!e.classList.contains(t.settings.classes.slide.clone)}))}};return b(i,"root",{get:function(){return i._r},set:function(t){h(t)&&(t=document.querySelector(t)),x(t)?i._r=t:f("Root element must be a existing Html node")}}),b(i,"track",{get:function(){return i._t},set:function(t){x(t)?i._t=t:f("Could not find track element. Please use ".concat(j," attribute."))}}),b(i,"wrapper",{get:function(){return i.track.children[0]}}),n.on("update",(function(){i.collectSlides()})),i},Translate:function(t,e,n){var i={set:function(n){var i=function(t,e,n){var i=[M,z,E,D].concat(t._t,[L]);return{mutate:function(r){for(var o=0;o<i.length;o++){var s=i[o];p(s)&&p(s().modify)?r=s(t,e,n).modify(r):f("Transformer should be a function that returns an object with `modify()` method")}return r}}}(t,e).mutate(n),r="translate3d(".concat(-1*i,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=r,e.Html.wrapper.style.webkitTransform=r,e.Html.wrapper.style.transform=r},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var n=e.Sizes.length,i=t.index,r=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?n+(i-r):(i+r)%n},getTravelDistance:function(){var n=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*n:n}};return n.on("move",(function(r){if(!t.isType("carousel")||!e.Run.isOffset())return i.set(r.movement);e.Transition.after((function(){n.emit("translate.jump"),i.set(e.Sizes.slideWidth*t.index)}));var o=e.Sizes.slideWidth*e.Translate.getStartIndex();return i.set(o-e.Translate.getTravelDistance())})),n.on("destroy",(function(){i.remove()})),i},Transition:function(t,e,n){var i=!1,r={compose:function(e){var n=t.settings;return i?"".concat(e," 0ms ").concat(n.animationTimingFunc):"".concat(e," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout((function(){t()}),this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return b(r,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){r.set()})),n.on(["build.before","resize","translate.jump"],(function(){r.disable()})),n.on("run",(function(){r.enable()})),n.on("destroy",(function(){r.remove()})),r},Direction:function(t,e,n){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(C[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return b(i,"value",{get:function(){return i._v},set:function(t){P.indexOf(t)>-1?i._v=t:f("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],(function(){i.removeClass()})),n.on("update",(function(){i.mount()})),n.on(["build.before","update"],(function(){i.addClass()})),i},Peek:function(t,e,n){var i={mount:function(){this.value=t.settings.peek}};return b(i,"value",{get:function(){return i._v},set:function(t){v(t)?(t.before=d(t.before),t.after=d(t.after)):t=d(t),i._v=t}}),b(i,"reductor",{get:function(){var e=i.value,n=t.settings.perView;return v(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],(function(){i.mount()})),i},Sizes:function(t,e,n){var i={setupSlides:function(){for(var t="".concat(this.slideWidth,"px"),n=e.Html.slides,i=0;i<n.length;i++)n[i].style.width=t},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var t=e.Html.slides,n=0;n<t.length;n++)t[n].style.width="";e.Html.wrapper.style.width=""}};return b(i,"length",{get:function(){return e.Html.slides.length}}),b(i,"width",{get:function(){return e.Html.track.offsetWidth}}),b(i,"wrapperSize",{get:function(){return i.slideWidth*i.length+e.Gaps.grow+e.Clones.grow}}),b(i,"slideWidth",{get:function(){return i.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],(function(){i.setupSlides(),i.setupWrapper()})),n.on("destroy",(function(){i.remove()})),i},Gaps:function(t,e,n){var i={apply:function(t){for(var n=0,i=t.length;n<i;n++){var r=t[n].style,o=e.Direction.value;r[O[o][0]]=0!==n?"".concat(this.value/2,"px"):"",n!==t.length-1?r[O[o][1]]="".concat(this.value/2,"px"):r[O[o][1]]=""}},remove:function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].style;i.marginLeft="",i.marginRight=""}}};return b(i,"value",{get:function(){return d(t.settings.gap)}}),b(i,"grow",{get:function(){return i.value*e.Sizes.length}}),b(i,"reductor",{get:function(){var e=t.settings.perView;return i.value*(e-1)/e}}),n.on(["build.after","update"],H((function(){i.apply(e.Html.wrapper.children)}),30)),n.on("destroy",(function(){i.remove(e.Html.wrapper.children)})),i},Move:function(t,e,n){var i={mount:function(){this._o=0},make:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=i,n.emit("move",{movement:this.value}),e.Transition.after((function(){n.emit("move.after",{movement:t.value})}))}};return b(i,"offset",{get:function(){return i._o},set:function(t){i._o=m(t)?0:d(t)}}),b(i,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),b(i,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],(function(){i.make()})),i},Clones:function(t,e,n){var i={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=e.Html.slides,r=t.settings,o=r.perView,s=r.classes,a=r.cloningRatio;if(0!==i.length)for(var u=+!!t.settings.peek,c=o+u+Math.round(o/2),l=i.slice(0,c).reverse(),f=i.slice(-1*c),d=0;d<Math.max(a,Math.floor(o/i.length));d++){for(var h=0;h<l.length;h++){var v=l[h].cloneNode(!0);v.classList.add(s.slide.clone),n.push(v)}for(var p=0;p<f.length;p++){var m=f[p].cloneNode(!0);m.classList.add(s.slide.clone),n.unshift(m)}}return n},append:function(){for(var t=this.items,n=e.Html,i=n.wrapper,r=n.slides,o=Math.floor(t.length/2),s=t.slice(0,o).reverse(),a=t.slice(-1*o).reverse(),u="".concat(e.Sizes.slideWidth,"px"),c=0;c<a.length;c++)i.appendChild(a[c]);for(var l=0;l<s.length;l++)i.insertBefore(s[l],r[0]);for(var f=0;f<t.length;f++)t[f].style.width=u},remove:function(){for(var t=this.items,n=0;n<t.length;n++)e.Html.wrapper.removeChild(t[n])}};return b(i,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*i.items.length}}),n.on("update",(function(){i.remove(),i.mount(),i.append()})),n.on("build.before",(function(){t.isType("carousel")&&i.append()})),n.on("destroy",(function(){i.remove()})),i},Resize:function(t,e,n){var i=new R,r={mount:function(){this.bind()},bind:function(){i.on("resize",window,H((function(){n.emit("resize")}),t.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",(function(){r.unbind(),i.destroy()})),r},Build:function(t,e,n){var i={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var n=t.settings.classes,i=e.Html.slides[t.index];i&&(i.classList.add(n.slide.active),T(i).forEach((function(t){t.classList.remove(n.slide.active)})))},removeClasses:function(){var n=t.settings.classes,i=n.type,r=n.slide;e.Html.root.classList.remove(i[t.settings.type]),e.Html.slides.forEach((function(t){t.classList.remove(r.active)}))}};return n.on(["destroy","update"],(function(){i.removeClasses()})),n.on(["resize","update"],(function(){i.mount()})),n.on("move.after",(function(){i.activeClass()})),i},Run:function(t,e,n){var i={mount:function(){this._o=!1},make:function(i){var r=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=i,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after((function(){r.isStart()&&n.emit("run.start",r.move),r.isEnd()&&n.emit("run.end",r.move),r.isOffset()&&(r._o=!1,n.emit("run.offset",r.move)),n.emit("run.after",r.move),t.enable()})))},calculate:function(){var e=this.move,n=this.length,r=e.steps,o=e.direction,s=1;if("="===o)return t.settings.bound&&d(r)>n?void(t.index=n):void(t.index=r);if(">"!==o||">"!==r)if("<"!==o||"<"!==r){if("|"===o&&(s=t.settings.perView||1),">"===o||"|"===o&&">"===r){var a=function(e){var n=t.index;if(t.isType("carousel"))return n+e;return n+(e-n%e)}(s);return a>n&&(this._o=!0),void(t.index=function(e,n){var r=i.length;if(e<=r)return e;if(t.isType("carousel"))return e-(r+1);if(t.settings.rewind)return i.isBound()&&!i.isEnd()?r:0;if(i.isBound())return r;return Math.floor(r/n)*n}(a,s))}if("<"===o||"|"===o&&"<"===r){var u=function(e){var n=t.index;if(t.isType("carousel"))return n-e;return(Math.ceil(n/e)-1)*e}(s);return u<0&&(this._o=!0),void(t.index=function(e,n){var r=i.length;if(e>=0)return e;if(t.isType("carousel"))return e+(r+1);if(t.settings.rewind)return i.isBound()&&i.isStart()?r:Math.floor(r/n)*n;return 0}(u,s))}f("Invalid direction pattern [".concat(o).concat(r,"] has been used"))}else t.index=0;else t.index=n},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};return b(i,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?d(e)?d(e):e:0}}}),b(i,"length",{get:function(){var n=t.settings,i=e.Html.slides.length;return this.isBound()?i-1-(d(n.perView)-1)+d(n.focusAt):i-1}}),b(i,"offset",{get:function(){return this._o}}),i},Swipe:function(t,e,n){var i=new R,r=0,o=0,s=0,a=!1,u=!!q&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var i=this.touches(e);r=null,o=d(i.pageX),s=d(i.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(i){if(!t.disabled){var a=t.settings,u=a.touchAngle,c=a.touchRatio,l=a.classes,f=this.touches(i),h=d(f.pageX)-o,v=d(f.pageY)-s,p=Math.abs(h<<2),m=Math.abs(v<<2),g=Math.sqrt(p+m),y=Math.sqrt(m);if(!(180*(r=Math.asin(y/g))/Math.PI<u))return!1;i.stopPropagation(),e.Move.make(h*parseFloat(c)),e.Html.root.classList.add(l.dragging),n.emit("swipe.move")}},end:function(i){if(!t.disabled){var s=t.settings,a=s.perSwipe,u=s.touchAngle,c=s.classes,l=this.touches(i),f=this.threshold(i),d=l.pageX-o,h=180*r/Math.PI;this.enable(),d>f&&h<u?e.Run.make(e.Direction.resolve("".concat(a,"<"))):d<-f&&h<u?e.Run.make(e.Direction.resolve("".concat(a,">"))):e.Move.make(),e.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,r=t.settings,o=r.swipeThreshold,s=r.dragThreshold;o&&i.on(I[0],e.Html.wrapper,(function(t){n.start(t)}),u),s&&i.on(I[1],e.Html.wrapper,(function(t){n.start(t)}),u)},unbindSwipeStart:function(){i.off(I[0],e.Html.wrapper,u),i.off(I[1],e.Html.wrapper,u)},bindSwipeMove:function(){var n=this;i.on(V,e.Html.wrapper,H((function(t){n.move(t)}),t.settings.throttle),u)},unbindSwipeMove:function(){i.off(V,e.Html.wrapper,u)},bindSwipeEnd:function(){var t=this;i.on(G,e.Html.wrapper,(function(e){t.end(e)}))},unbindSwipeEnd:function(){i.off(G,e.Html.wrapper)},touches:function(t){return F.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return F.indexOf(e.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,e.Transition.enable(),this},disable:function(){return a=!0,e.Transition.disable(),this}};return n.on("build.after",(function(){e.Html.root.classList.add(t.settings.classes.swipeable)})),n.on("destroy",(function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),i.destroy()})),c},Images:function(t,e,n){var i=new R,r={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",(function(){r.unbind(),i.destroy()})),r},Anchors:function(t,e,n){var i=new R,r=!1,o=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){o&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(o=!0,!r){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1;r=!0}return this},attach:function(){if(o=!1,r){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0;r=!1}return this}};return b(s,"items",{get:function(){return s._a}}),n.on("swipe.move",(function(){s.detach()})),n.on("swipe.end",(function(){e.Transition.after((function(){s.attach()}))})),n.on("destroy",(function(){s.attach(),s.unbind(),i.destroy()})),s},Controls:function(t,e,n){var i=new R,r=!!q&&{passive:!0},o={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="
vendor: 34,746 bytes, lines 21832-21863
21832controls[nav]"]'),this._c=e.Html.root.querySelectorAll(N),this._arrowControls={previous:e.Html.root.querySelectorAll(Y),next:e.Html.root.querySelectorAll(X)},this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var n=t.settings,i=e[t.index];i&&i&&(i.classList.add(n.classes.nav.active),T(i).forEach((function(t){t.classList.remove(n.classes.nav.active)})))},removeClass:function(e){var n=e[t.index];n&&n.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var n=o._arrowControls.next,i=o._arrowControls.previous;this.resetArrowState(n,i),0===t.index&&this.disableArrow(i),t.index===e.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var e=t.settings,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];i.forEach((function(t){A(t).forEach((function(t){t.classList.remove(e.classes.arrow.disabled)}))}))},disableArrow:function(){for(var e=t.settings,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];i.forEach((function(t){A(t).forEach((function(t){t.classList.add(e.classes.arrow.disabled)}))}))},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)i.on("click",t[e],this.click),i.on("touchstart",t[e],this.click,r)},unbind:function(t){for(var e=0;e<t.length;e++)i.off(["click","touchstart"],t[e])},click:function(t){q||"touchstart"!==t.type||t.preventDefault();var n=t.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(n))}};return b(o,"items",{get:function(){return o._c}}),n.on(["mount.after","move.after"],(function(){o.setActive()})),n.on(["mount.after","run"],(function(){o.setArrowState()})),n.on("destroy",(function(){o.removeBindings(),o.removeActive(),i.destroy()})),o},Keyboard:function(t,e,n){var i=new R,r={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(n){var i=t.settings.perSwipe;"ArrowRight"===n.code&&e.Run.make(e.Direction.resolve("".concat(i,">"))),"ArrowLeft"===n.code&&e.Run.make(e.Direction.resolve("".concat(i,"<")))}};return n.on(["destroy","update"],(function(){r.unbind()})),n.on("update",(function(){r.mount()})),n.on("destroy",(function(){i.destroy()})),r},Autoplay:function(t,e,n){var i=new R,r={mount:function(){this.enable(),this.start(),t.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var i=this;this._e&&(this.enable(),t.settings.autoplay&&m(this._i)&&(this._i=setInterval((function(){i.stop(),e.Run.make(">"),i.start(),n.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",e.Html.root,(function(){t._e&&t.stop()})),i.on("mouseout",e.Html.root,(function(){t._e&&t.start()}))},unbind:function(){i.off(["mouseover","mouseout"],e.Html.root)}};return b(r,"time",{get:function(){var n=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return d(n||t.settings.autoplay)}}),n.on(["destroy","update"],(function(){r.unbind()})),n.on(["run.before","swipe.start","update"],(function(){r.stop()})),n.on(["pause","destroy"],(function(){r.disable(),r.stop()})),n.on(["run.after","swipe.end"],(function(){r.start()})),n.on(["play"],(function(){r.enable(),r.start()})),n.on("update",(function(){r.mount()})),n.on("destroy",(function(){i.destroy()})),r},Breakpoints:function(t,e,n){var i=new R,r=t.settings,o=K(r.breakpoints),s=Object.assign({},r),a={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: ".concat(e,"px)")).matches)return t[e];return s}};return Object.assign(r,a.match(o)),i.on("resize",window,H((function(){t.settings=w(r,a.match(o))}),t.settings.throttle)),n.on("update",(function(){o=K(o),s=Object.assign({},r)})),n.on("destroy",(function(){i.off("resize",window)})),a}},Q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var n=a(s);function s(){return e(this,s),n.apply(this,arguments)}return i(s,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(r(s.prototype),"mount",this).call(this,Object.assign({},J,t))}}]),s}(k);return Q}));
21833(function(){var t,e,s,i,n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t},o={}.hasOwnProperty;(i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,n,r,o;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:t.label,title:t.title?t.title:void 0,children:0,disabled:t.disabled,classes:t.className}),o=[],s=0,i=(r=t.childNodes).length;s<i;s++)n=r[s],o.push(this.add_option(n,e,t.disabled));return o},t.prototype.add_option=function(t,e,s){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:!0===s?s:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t}()).select_to_array=function(t){var e,s,n,r,o;for(r=new i,s=0,n=(o=t.childNodes).length;s<n;s++)e=o[s],r.add_node(e);return r.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},this.label_click_handler=n(this.label_click_handler,this),t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){return this.click_test_action=function(t){return function(e){return t.test_active_click(e)}}(this),this.activate_action=function(t){return function(e){return t.activate_field(e)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||Infinity,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+this.escape_html(t.group_label)+"</b>"+t.html:t.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(t){if(this.is_multiple){if(!this.active_field)return setTimeout(function(t){return function(){return t.container_mousedown()}}(this),50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(t){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(t){return function(){return t.blur_test()}}(this),100)},t.prototype.label_click_handler=function(t){return this.is_multiple?this.container_mousedown(t):this.activate_field()},t.prototype.results_option_build=function(t){var e,s,i,n,r,o,h;for(e="",h=0,n=0,r=(o=this.results_data).length;n<r&&(s=o[n],i="",""!==(i=s.group?this.result_add_group(s):this.result_add_option(s))&&(h++,e+=i),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(s))),!(h>=this.max_shown_results));n++);return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),t.style&&(s.style.cssText=t.style),s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.highlighted_html||t.html,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e,s;return(t.search_match||t.group_match)&&t.active_options>0?((e=[]).push("group-result"),t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.innerHTML=t.highlighted_html||this.escape_html(t.label),t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,s,i,n;for(n=[],t=0,e=(s=this.results_data).length;t<e;t++)(i=s[t]).selected?n.push(i.selected=!1):n.push(void 0);return n},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(t){var e,s,i,n,r,o,h,l,c,_,a,u,d,p,f;for(this.no_results_clear(),_=0,e=(h=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(e),i=0,n=(l=this.results_data).length;i<n;i++)(r=l[i]).search_match=!1,a=null,u=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(a=this.results_data[r.group_array_index]).active_options&&a.search_match&&(_+=1),a.active_options+=1),f=r.group?r.label:r.text,r.group&&!this.group_search||(u=this.search_string_match(f,c),r.search_match=null!=u,r.search_match&&!r.group&&(_+=1),r.search_match?(h.length&&(d=u.index,o=f.slice(0,d),s=f.slice(d,d+h.length),p=f.slice(d+h.length),r.highlighted_html=this.escape_html(o)+"<em>"+this.escape_html(s)+"</em>"+this.escape_html(p)),null!=a&&(a.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),_<1&&h.length?(this.update_results_content(""),this.no_results(h)):(this.update_results_content(this.results_option_build()),(null!=t?t.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e,s;return s=this.search_contains?t:"(^|\\s|\\b)"+t+"[^\\s]*",this.enable_split_word_search||this.search_contains||(s="^"+s),e=this.case_sensitive_search?"":"i",new RegExp(s,e)},t.prototype.search_string_match=function(t,e){var s;return s=e.exec(t),!this.search_contains&&(null!=s?s[1]:void 0)&&(s.index+=1),s},t.prototype.choices_count=function(){var t,e,s;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,t=0,e=(s=this.form_field.options).length;t<e;t++)s[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keydown_checker=function(t){var e,s;switch(s=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),8!==s&&this.pending_backstroke&&this.clear_backstroke(),s){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},t.prototype.keyup_checker=function(t){var e,s;switch(s=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),s){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:t.preventDefault(),this.results_showing&&this.result_select(t);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},t.prototype.clipboard_event_checker=function(t){if(!this.is_disabled)return setTimeout(function(t){return function(){return t.results_search()}}(this),50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:((e=document.createElement("div")).appendChild(t),e.innerHTML)},t.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n  <span>'+this.default_text+'</span>\n  <div><b></b></div>\n</a>\n<div class="chosen-drop">\n  <div class="chosen-search">\n    <input class="chosen-search-input" type="text" autocomplete="off" />\n  </div>\n  <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n  <li class="search-field">\n    <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n  </li>\n</ul>\n<div class="chosen-drop">\n  <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_no_results_html=function(t){return'<li class="no-results">\n  '+this.results_none_found+" <span>"+this.escape_html(t)+"</span>\n</li>"},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),(t=jQuery).fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(e){var n,r;r=(n=t(this)).data("chosen"),"destroy"!==i?r instanceof s||n.data("chosen",new s(this,i)):r instanceof s&&r.destroy()}):this}}),s=function(s){function n(){return n.__super__.constructor.apply(this,arguments)}return r(n,e),n.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var e,s;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){return this.container.on("touchstart.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.container.on("touchend.chosen",function(t){return function(e){t.container_mouseup(e)}}(this)),this.container.on("mousedown.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.container.on("mouseup.chosen",function(t){return function(e){t.container_mouseup(e)}}(this)),this.container.on("mouseenter.chosen",function(t){return function(e){t.mouse_enter(e)}}(this)),this.container.on("mouseleave.chosen",function(t){return function(e){t.mouse_leave(e)}}(this)),this.search_results.on("mouseup.chosen",function(t){return function(e){t.search_results_mouseup(e)}}(this)),this.search_results.on("mouseover.chosen",function(t){return function(e){t.search_results_mouseover(e)}}(this)),this.search_results.on("mouseout.chosen",function(t){return function(e){t.search_results_mouseout(e)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(t){return function(e){t.search_results_mousewheel(e)}}(this)),this.search_results.on("touchstart.chosen",function(t){return function(e){t.search_results_touchstart(e)}}(this)),this.search_results.on("touchmove.chosen",function(t){return function(e){t.search_results_touchmove(e)}}(this)),this.search_results.on("touchend.chosen",function(t){return function(e){t.search_results_touchend(e)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(t){return function(e){t.results_update_field(e)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(t){return function(e){t.activate_field(e)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(t){return function(e){t.close_field(e)}}(this)),this.search_field.on("blur.chosen",function(t){return function(e){t.input_blur(e)}}(this)),this.search_field.on("keyup.chosen",function(t){return function(e){t.keyup_checker(e)}}(this)),this.search_field.on("keydown.chosen",function(t){return function(e){t.keydown_checker(e)}}(this)),this.search_field.on("focus.chosen",function(t){return function(e){t.input_focus(e)}}(this)),this.search_field.on("cut.chosen",function(t){return function(e){t.clipboard_event_checker(e)}}(this)),this.search_field.on("paste.chosen",function(t){return function(e){t.clipboard_event_checker(e)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(t){return function(e){t.choices_click(e)}}(this)):this.container.on("click.chosen",function(t){t.preventDefault()})},n.prototype.destroy=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(e){var s;if(!this.is_disabled)return!e||"mousedown"!==(s=e.type)&&"touchstart"!==s||this.results_showing||e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},n.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())},n.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(e){var s;return(s=t(e.target).closest(".chosen-container")).length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(t){var e,s,i,n,r;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),r=this.search_results.scrollTop(),n=i+r,s=this.result_highlight.position().top+this.search_results.scrollTop(),(e=s+this.result_highlight.outerHeight())>=n)return this.search_results.scrollTop(e-i>0?e-i:0);if(s<r)return this.search_results.scrollTop(s)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(t){return this.search_results.html(t)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(e){var s;if((s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first()).length)return this.result_highlight=s,this.result_select(e),this.search_field.focus()},n.prototype.search_results_mouseover=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(s)},n.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result")||t(e.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(e){var s,i;return s=t("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?s.addClass("search-choice-disabled"):((i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index})).on("click.chosen",function(t){return function(e){return t.choice_destroy_link_click(e)}}(this)),s.append(i)),this.search_container.before(s)},n.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},n.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(t){var e,s;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),e.addClass("result-selected"),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(this.choice_label(s)),this.is_multiple&&(!this.hide_results_on_select||t.metaKey||t.ctrlKey)?t.metaKey||t.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(t)},n.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return t.trim(this.get_search_field_value())},n.prototype.escape_html=function(e){return t("<div/>").text(e).html()},n.prototype.winnow_results_set_highlight=function(){var t,e;if(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),null!=(t=e.length?e.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(t)},n.prototype.no_results=function(t){var e;return e=this.get_no_results_html(t),this.search_results.append(e),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var e,s,i,n,r,o,h;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},s=0,i=(o=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;s<i;s++)r[n=o[s]]=this.search_field.css(n);return(e=t("<div />").css(r)).text(this.get_search_field_value()),t("body").append(e),h=e.width()+25,e.remove(),this.container.is(":visible")&&(h=Math.min(this.container.outerWidth()-10,h)),this.search_field.width(h)}},n.prototype.trigger_form_field_change=function(t){return this.form_field_jq.trigger("input",t),this.form_field_jq.trigger("change",t)},n}()}).call(this);(function(){
21834var console=window.console||{
21835log:function(){
21836}
21837};
21838var ionas=(function(){
21839try{
21840return parent.ionas;
21841}catch(e){
21842return window.ionas||{};
21843}
21844}());
21845document.addEventListener("common.common.integration.maps:place-editor-map-rendered",(event)=>{
21846if(ionas.control){
21847var $mapDiv=$(event.detail[0]);
21848var $context=$mapDiv.closest('.placeEditor');
21849var countryControl=ionas.control($context.find('.country'));
21850var plzControl=ionas.control($context.find('.plz'));
21851var ortControl=ionas.control($context.find('.ort'));
21852var strasseHausnummerControl=ionas.control($context.find('.strassehausnummer'));
21853var latitudeControl=ionas.control($context.find('.latitude'));
21854var longitudeControl=ionas.control($context.find('.longitude'));
21855if(countryControl&&plzControl&&ortControl&&strasseHausnummerControl&&latitudeControl&&longitudeControl){
21856var updateGeoControls=function(lat,lng){
21857latitudeControl.setValue(lat);
21858longitudeControl.setValue(lng);
21859};
21860let map=event.detail[1];
21861map.setMarkerDragendCallback(function(lat,lon){
21862updateGeoControls(lat,lon);
21863});
21864addressChangedHandler=function(){
21865var plz=plzControl.getValue();
21866var ort=ortControl.getValue();
21867var strassehausnummer=strasseHausnummerControl.getValue();
21868var country=countryControl.getValue()||"Deutschland";
21869if(plz&&ort&&strassehausnummer){
21870if(map.markers.length==0){
21871map.addLocation({address:strassehausnummer+", "+plz+" "+ort+", "+country,draggable:true});
21872}else{
21873map.updateMarkerPosition(0,{address:strassehausnummer+", "+plz+" "+ort+", "+country});
21874}
21875}
21876};
21877var geoControlsChangedHandler=function(){
21878var latitude=parseFloat(latitudeControl.getValue());
21879var longitude=parseFloat(longitudeControl.getValue());
21880if(latitude&&longitude){
21881if(map.markers.length==0){
21882map.addMarker({lat:latitude,lng:longitude,draggable:true});
21883}else{
21884map.updateMarkerPosition(0,{lat:latitude,lng:longitude});
21885}
21886}
21887};
21888plzControl.on("change",addressChangedHandler);
21889ortControl.on("change",addressChangedHandler);
21890strasseHausnummerControl.on("change",addressChangedHandler);
21891latitudeControl.on("change",geoControlsChangedHandler);
21892longitudeControl.on("change",geoControlsChangedHandler);
21893}
21894}
21895});
21896}());
21897(function($){
21898'use strict';
21899var sprintf=function(str){
21900var args=arguments,
21901flag=true,
21902i=1;
21903str=str.replace(/%s/g,function(){
21904var arg=args[i++];
21905if(typeof arg==='undefined'){
21906flag=false;
21907return'';
21908}
21909return arg;
21910});
21911return flag?str:'';
21912};
21913var removeDiacritics=function(str){
21914var defaultDiacriticsRemovalMap=[
21915{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},
21916{'base':'AA','letters':/[\uA732]/g},
21917{'base':'AE','letters':/[\u00C6\u01FC\u01E2]/g},
21918{'base':'AO','letters':/[\uA734]/g},
21919{'base':'AU','letters':/[\uA736]/g},
21920{'base':'AV','letters':/[\uA738\uA73A]/g},
21921{'base':'AY','letters':/[\uA73C]/g},
21922{'base':'B','letters':/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},
21923{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},
21924{'base':'D','letters':/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},
21925{'base':'DZ','letters':/[\u01F1\u01C4]/g},
21926{'base':'Dz','letters':/[\u01F2\u01C5]/g},
21927{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},
21928{'base':'F','letters':/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},
21929{'base':'G','letters':/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},
21930{'base':'H','letters':/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},
21931{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},
21932{'base':'J','letters':/[\u004A\u24BF\uFF2A\u0134\u0248]/g},
21933{'base':'K','letters':/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},
21934{'base':'L','letters':/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},
21935{'base':'LJ','letters':/[\u01C7]/g},
21936{'base':'Lj','letters':/[\u01C8]/g},
21937{'base':'M','letters':/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},
21938{'base':'N','letters':/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},
21939{'base':'NJ','letters':/[\u01CA]/g},
21940{'base':'Nj','letters':/[\u01CB]/g},
21941{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},
21942{'base':'OI','letters':/[\u01A2]/g},
21943{'base':'OO','letters':/[\uA74E]/g},
21944{'base':'OU','letters':/[\u0222]/g},
21945{'base':'P','letters':/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},
21946{'base':'Q','letters':/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},
21947{'base':'R','letters':/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},
21948{'base':'S','letters':/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},
21949{'base':'T','letters':/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},
21950{'base':'TZ','letters':/[\uA728]/g},
21951{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},
21952{'base':'V','letters':/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},
21953{'base':'VY','letters':/[\uA760]/g},
21954{'base':'W','letters':/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},
21955{'base':'X','letters':/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},
21956{'base':'Y','letters':/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},
21957{'base':'Z','letters':/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},
21958{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},
21959{'base':'aa','letters':/[\uA733]/g},
21960{'base':'ae','letters':/[\u00E6\u01FD\u01E3]/g},
21961{'base':'ao','letters':/[\uA735]/g},
21962{'base':'au','letters':/[\uA737]/g},
21963{'base':'av','letters':/[\uA739\uA73B]/g},
21964{'base':'ay','letters':/[\uA73D]/g},
21965{'base':'b','letters':/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},
21966{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},
21967{'base':'d','letters':/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},
21968{'base':'dz','letters':/[\u01F3\u01C6]/g},
21969{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},
21970{'base':'f','letters':/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},
21971{'base':'g','letters':/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},
21972{'base':'h','letters':/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},
21973{'base':'hv','letters':/[\u0195]/g},
21974{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},
21975{'base':'j','letters':/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},
21976{'base':'k','letters':/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},
21977{'base':'l','letters':/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},
21978{'base':'lj','letters':/[\u01C9]/g},
21979{'base':'m','letters':/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},
21980{'base':'n','letters':/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},
21981{'base':'nj','letters':/[\u01CC]/g},
21982{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},
21983{'base':'oi','letters':/[\u01A3]/g},
21984{'base':'ou','letters':/[\u0223]/g},
21985{'base':'oo','letters':/[\uA74F]/g},
21986{'base':'p','letters':/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},
21987{'base':'q','letters':/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},
21988{'base':'r','letters':/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},
21989{'base':'s','letters':/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},
21990{'base':'t','letters':/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},
21991{'base':'tz','letters':/[\uA729]/g},
21992{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},
21993{'base':'v','letters':/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},
21994{'base':'vy','letters':/[\uA761]/g},
21995{'base':'w','letters':/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},
21996{'base':'x','letters':/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},
21997{'base':'y','letters':/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u
219971EF5\u01B4\u024F\u1EFF]/g},
21998{'base':'z','letters':/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}
21999];
22000for(var i=0;i<defaultDiacriticsRemovalMap.length;i++){
22001str=str.replace(defaultDiacriticsRemovalMap[i].letters,defaultDiacriticsRemovalMap[i].base);
22002}
22003return str;
22004};
22005function MultipleSelect($el,options){
22006var that=this,
22007name=$el.attr('name')||options.name||'';
22008this.options=options;
22009this.$el=$el.hide();
22010this.$label=this.$el.closest('label');
22011if(this.$label.length===0&&this.$el.attr('id')){
22012this.$label=$(sprintf('label[for="%s"]',this.$el.attr('id').replace(/:/g,'\\:')));
22013}
22014this.$parent=$(sprintf(
22015'<div class="ms-parent %s" %s/>',
22016$el.attr('class')||'',
22017sprintf('title="%s"',$el.attr('title'))));
22018this.$choice=$(sprintf([
22019'<button type="button" class="ms-choice">',
22020'<span class="placeholder">%s</span>',
22021'<div></div>',
22022'</button>'
22023].join(''),
22024this.options.placeholder));
22025this.$drop=$(sprintf('<div class="ms-drop %s"%s></div>',
22026this.options.position,
22027sprintf(' style="width: %s"',this.options.dropWidth)));
22028this.$el.after(this.$parent);
22029this.$parent.append(this.$choice);
22030this.$parent.append(this.$drop);
22031if(this.$el.prop('disabled')){
22032this.$choice.addClass('disabled');
22033}
22034this.$parent.css('width',
22035this.options.width||
22036this.$el.css('width')||
22037this.$el.outerWidth()+20);
22038this.selectAllName='data-name="selectAll'+name+'"';
22039this.selectGroupName='data-name="selectGroup'+name+'"';
22040this.selectItemName='data-name="selectItem'+name+'"';
22041if(!this.options.keepOpen){
22042$(document).click(function(e){
22043if($(e.target)[0]===that.$choice[0]||
22044$(e.target).parents('.ms-choice')[0]===that.$choice[0]){
22045return;
22046}
22047if(($(e.target)[0]===that.$drop[0]||
22048$(e.target).parents('.ms-drop')[0]!==that.$drop[0]&&e.target!==$el[0])&&
22049that.options.isOpen){
22050that.close();
22051}
22052});
22053}
22054}
22055MultipleSelect.prototype={
22056constructor:MultipleSelect,
22057init:function(){
22058var that=this,
22059$ul=$('<ul></ul>');
22060this.$drop.html('');
22061if(this.options.filter){
22062this.$drop.append([
22063'<div class="ms-search">',
22064'<input type="text" autocomplete="off" autocorrect="off" autocapitilize="off" spellcheck="false">',
22065'</div>'].join('')
22066);
22067}
22068if(this.options.selectAll&&!this.options.single){
22069$ul.append([
22070'<li class="ms-select-all">',
22071'<label>',
22072sprintf('<input type="checkbox" %s /> ',this.selectAllName),
22073this.options.selectAllDelimiter[0],
22074this.options.selectAllText,
22075this.options.selectAllDelimiter[1],
22076'</label>',
22077'</li>'
22078].join(''));
22079}
22080$.each(this.$el.children(),function(i,elm){
22081$ul.append(that.optionToHtml(i,elm));
22082});
22083$ul.append(sprintf('<li class="ms-no-results">%s</li>',this.options.noMatchesFound));
22084this.$drop.append($ul);
22085this.$drop.find('ul').css('max-height',this.options.maxHeight+'px');
22086this.$drop.find('.multiple').css('width',this.options.multipleWidth+'px');
22087this.$searchInput=this.$drop.find('.ms-search input');
22088this.$selectAll=this.$drop.find('input['+this.selectAllName+']');
22089this.$selectGroups=this.$drop.find('input['+this.selectGroupName+']');
22090this.$selectItems=this.$drop.find('input['+this.selectItemName+']:enabled');
22091this.$disableItems=this.$drop.find('input['+this.selectItemName+']:disabled');
22092this.$noResults=this.$drop.find('.ms-no-results');
22093this.events();
22094this.updateSelectAll(true);
22095this.update(true);
22096if(this.options.isOpen){
22097this.open();
22098}
22099},
22100optionToHtml:function(i,elm,group,groupDisabled){
22101var that=this,
22102$elm=$(elm),
22103classes=$elm.attr('class')||'',
22104title=sprintf('title="%s"',$elm.attr('title')),
22105multiple=this.options.multiple?'multiple':'',
22106disabled,
22107type=this.options.single?'radio':'checkbox';
22108if($elm.is('option')){
22109var value=$elm.val(),
22110text=that.options.textTemplate($elm),
22111selected=$elm.prop('selected'),
22112style=sprintf('style="%s"',this.options.styler(value)),
22113$el;
22114disabled=groupDisabled||$elm.prop('disabled');
22115$el=$([
22116sprintf('<li class="%s %s" %s %s>',multiple,classes,title,style),
22117sprintf('<label class="%s">',disabled?'disabled':''),
22118sprintf('<input type="%s" %s%s%s%s>',
22119type,this.selectItemName,
22120selected?' checked="checked"':'',
22121disabled?' disabled="disabled"':'',
22122sprintf(' data-group="%s"',group)),
22123text,
22124'</label>',
22125'</li>'
22126].join(''));
22127$el.find('input').val(value);
22128return $el;
22129}
22130if($elm.is('optgroup')){
22131var label=that.options.labelTemplate($elm),
22132$group=$('<div/>');
22133group='group_'+i;
22134disabled=$elm.prop('disabled');
22135$group.append([
22136'<li class="group">',
22137sprintf('<label class="optgroup %s" data-group="%s">',disabled?'disabled':'',group),
22138this.options.hideOptgroupCheckboxes||this.options.single?'':
22139sprintf('<input type="checkbox" %s %s>',
22140this.selectGroupName,disabled?'disabled="disabled"':''),
22141label,
22142'</label>',
22143'</li>'
22144].join(''));
22145$.each($elm.children(),function(i,elm){
22146$group.append(that.optionToHtml(i,elm,group,disabled));
22147});
22148return $group.html();
22149}
22150},
22151events:function(){
22152var that=this,
22153toggleOpen=function(e){
22154e.preventDefault();
22155that[that.options.isOpen?'close':'open']();
22156};
22157if(this.$label){
22158this.$label.off('click').on('click',function(e){
22159if(e.target.nodeName.toLowerCase()!=='label'||e.target!==this){
22160return;
22161}
22162toggleOpen(e);
22163if(!that.options.filter||!that.options.isOpen){
22164that.focus();
22165}
22166e.stopPropagation();
22167});
22168}
22169this.$choice.off('click').on('click',toggleOpen)
22170.off('focus').on('focus',this.options.onFocus)
22171.off('blur').on('blur',this.options.onBlur);
22172this.$parent.off('keydown').on('keydown',function(e){
22173switch(e.which){
22174case 27:
22175that.close();
22176that.$choice.focus();
22177break;
22178}
22179}
22179);
22180this.$searchInput.off('keydown').on('keydown',function(e){
22181if(e.keyCode===9&&e.shiftKey){
22182that.close();
22183}
22184}).off('keyup').on('keyup',function(e){
22185if(that.options.filterAcceptOnEnter&&(e.which===13||e.which==32)&&that.$searchInput.val()){
22186that.$selectAll.click();
22187that.close();
22188that.focus();
22189return;
22190}
22191that.filter();
22192});
22193this.$selectAll.off('click').on('click',function(){
22194var checked=$(this).prop('checked'),
22195$items=that.$selectItems.filter(':visible');
22196if($items.length===that.$selectItems.length){
22197that[checked?'checkAll':'uncheckAll']();
22198}else{
22199that.$selectGroups.prop('checked',checked);
22200$items.prop('checked',checked);
22201that.options[checked?'onCheckAll':'onUncheckAll']();
22202that.update();
22203}
22204});
22205this.$selectGroups.off('click').on('click',function(){
22206var group=$(this).parent().attr('data-group'),
22207$items=that.$selectItems.filter(':visible'),
22208$children=$items.filter(sprintf('[data-group="%s"]',group)),
22209checked=$children.length!==$children.filter(':checked').length;
22210$children.prop('checked',checked);
22211that.updateSelectAll();
22212that.update();
22213that.options.onOptgroupClick({
22214label:$(this).parent().text(),
22215checked:checked,
22216children:$children.get(),
22217instance:that
22218});
22219});
22220this.$selectItems.off('click').on('click',function(){
22221that.updateSelectAll();
22222that.update();
22223that.updateOptGroupSelect();
22224that.options.onClick({
22225label:$(this).parent().text(),
22226value:$(this).val(),
22227checked:$(this).prop('checked'),
22228instance:that
22229});
22230if(that.options.single&&that.options.isOpen&&!that.options.keepOpen){
22231that.close();
22232}
22233if(that.options.single){
22234var clickedVal=$(this).val();
22235that.$selectItems.filter(function(){
22236return $(this).val()!==clickedVal;
22237}).each(function(){
22238$(this).prop('checked',false);
22239});
22240that.update();
22241}
22242});
22243},
22244open:function(){
22245if(this.$choice.hasClass('disabled')){
22246return;
22247}
22248this.options.isOpen=true;
22249this.$choice.find('>div').addClass('open');
22250this.$drop[this.animateMethod('show')]();
22251this.$selectAll.parent().show();
22252this.$noResults.hide();
22253if(!this.$el.children().length){
22254this.$selectAll.parent().hide();
22255this.$noResults.show();
22256}
22257if(this.options.container){
22258var offset=this.$drop.offset();
22259this.$drop.appendTo($(this.options.container));
22260this.$drop.offset({
22261top:offset.top,
22262left:offset.left
22263});
22264}
22265if(this.options.filter){
22266this.$searchInput.val('');
22267this.$searchInput.focus();
22268this.filter();
22269}
22270this.options.onOpen();
22271},
22272close:function(){
22273this.options.isOpen=false;
22274this.$choice.find('>div').removeClass('open');
22275this.$drop[this.animateMethod('hide')]();
22276if(this.options.container){
22277this.$parent.append(this.$drop);
22278this.$drop.css({
22279'top':'auto',
22280'left':'auto'
22281});
22282}
22283this.options.onClose();
22284},
22285animateMethod:function(method){
22286var methods={
22287show:{
22288fade:'fadeIn',
22289slide:'slideDown'
22290},
22291hide:{
22292fade:'fadeOut',
22293slide:'slideUp'
22294}
22295};
22296return methods[method][this.options.animate]||method;
22297},
22298update:function(isInit){
22299var selects=this.options.displayValues?this.getSelects():this.getSelects('text'),
22300$span=this.$choice.find('>span'),
22301sl=selects.length;
22302if(sl===0){
22303$span.addClass('placeholder').html(this.options.placeholder);
22304}else if(this.options.allSelected&&sl===this.$selectItems.length+this.$disableItems.length){
22305$span.removeClass('placeholder').html(this.options.allSelected);
22306}else if(this.options.ellipsis&&sl>this.options.minimumCountSelected){
22307$span.removeClass('placeholder').text(selects.slice(0,this.options.minimumCountSelected)
22308.join(this.options.delimiter)+'...');
22309}else if(this.options.countSelected&&sl>this.options.minimumCountSelected){
22310$span.removeClass('placeholder').html(this.options.countSelected
22311.replace('#',selects.length)
22312.replace('%',this.$selectItems.length+this.$disableItems.length));
22313}else{
22314$span.removeClass('placeholder').text(selects.join(this.options.delimiter));
22315}
22316if(this.options.addTitle){
22317$span.prop('title',this.getSelects('text'));
22318}
22319this.$el.val(this.getSelects()).trigger('change');
22320this.$drop.find('li').removeClass('selected');
22321this.$drop.find('input:checked').each(function(){
22322$(this).parents('li').first().addClass('selected');
22323});
22324if(!isInit){
22325this.$el.trigger('change');
22326}
22327},
22328updateSelectAll:function(isInit){
22329var $items=this.$selectItems;
22330if(!isInit){
22331$items=$items.filter(':visible');
22332}
22333this.$selectAll.prop('checked',$items.length&&
22334$items.length===$items.filter(':checked').length);
22335if(!isInit&&this.$selectAll.prop('checked')){
22336this.options.onCheckAll();
22337}
22338},
22339updateOptGroupSelect:function(){
22340var $items=this.$selectItems.filter(':visible');
22341$.each(this.$selectGroups,function(i,val){
22342var group=$(val).parent().attr('data-group'),
22343$children=$items.filter(sprintf('[data-group="%s"]',group));
22344$(val).prop('checked',$children.length&&
22345$children.length===$children.filter(':checked').length);
22346});
22347},
22348getSelects:function(type){
22349var that=this,
22350texts=[],
22351values=[];
22352this.$drop.find(sprintf('input[%s]:checked',this.selectItemName)).each(function(){
22353texts.push($(this).parents('li').first().text());
22354values.push($(this).val());
22355});
22356if(type==='text'&&this.$selectGroups.length){
22357texts=[];
22358this.$selectGroups.each(function(){
22359var html=[],
22360text=$.trim($(this).parent().text()),
22361group=$(this).parent().data('group'),
22362$children=that.$drop.find(sprintf('[%s][data-group="%s"]',that.selectItemName,group)),
22363$selected=$children.filter(':checked');
22364if(!$selected.length){
22365return;
22366}
22367html.push('[');
22368html.push(text);
22369if($children.length>$selected.length){
22370var list=[];
22371$selected.each(function(){
22372list.push($(this).parent().text());
22373});
22374html.push(': '+list.join(', '));
22375}
22376html.push(']');
22377texts.push(html.join(''));
22378});
22379}
22380return type==='text'?texts:values;
22381},
22382setSelects:function(values){
22383var that=this;
22384this.$selectItems.prop('checked',false);
22385this.$disableItems.prop('checked',false);
22386$.each(values,function(i,value){
22387that.$selectItems.filter(sprintf('[value="%s"]',value)).prop('checked',true);
22388that.$disableItems.filter(sprintf('[value="%s"]',value)).prop('checked',true);
22389});
22390this.$selectAll.prop('checked',this.$selectItems.length===
22391this.$selectItems.filter(':checked').length+this.$disableItems.filter(':checked').length);
22392$.each(that.$selectGroups,function(i,val){
22393var group=$(val).parent().attr('data-group'),
22394$children=that.$selectItems.filter('[data-group="'+group+'"]');
22395$(val).prop('checked',$children.length&&
22396$children.length===$children.filter(':checked').length);
22397});
22398this.update();
22399},
22400enable:function(){
22401this.$choice.removeClass('disabled');
22402},
22403disable:function(){
22404this.$choice.addClass('disabled');
22405},
22406checkAll:function(){
22407this.$selectItems.prop('checked',true);
22408this.$selectGroups.prop('checked',true);
22409this.$selectAll.prop('checked',true);
22410this.update();
22411this.options.onCheckAll();
22412},
22413uncheckAll:function(){
22414this.$selectItems.prop('checked',false);
22415this.$selectGroups.prop('checked',false);
22416this.$selectAll.prop('checked',false);
22417this.update();
22418this.options.onUncheckAll();
22419},
22420focus:function(){
22421this.$choice.focus();
22422this.options.onFocus();
22423},
22424blur:function(){
22425this.$choice.blur();
22426this.options.onBlur();
22427},
22428refresh:function(){
22429this.init();
22430},
22431filter:function(){
22432var that=this,
22433text=$.trim(this.$searchInput.val()).toLowerCase();
22434if(text.length===0){
22435this.$selectAll.parent().show();
22436this.$selectItems.parent().show();
22437this.$disableItems.parent().show();
22438this.$selectGroups.parent().show();
22439this.$noResults.hide();
22440}else{
22441this.$selectItems.each(function(){
22442var $parent=$(this).parent();
22443$parent[removeDiacritics($parent.text().toLowerCase()).indexOf(removeDiacritics(text))<0?'hide':'show']();
22444});
22445this.$disableItems.parent().hide();
22446this.$selectGroups.each(function(){
22447var $parent=$(this).parent();
22448var group=$parent.attr('data-group'),
22449$items=that.$selectItems.filter(':visible');
22450$parent[$items.filter(sprintf('[data-group="%s"]',group)).length?'show':'hide']();
22451});
22452if(this.$selectItems.parent().filter(':visible').length){
22453this.$selectAll.parent().show();
22454this.$noResults.hide();
22455}else{
22456this.$selectAll.parent().hide();
22457this.$noResults.show();
22458}
22459}
22460this.updateOptGroupSelect();
22461this.updateSelectAll();
22462this.options.onFilter(text);
22463}
22464};
22465$.fn.multipleSelect=function(){
22466var option=arguments[0],
22467args=arguments,
22468value,
22469allowedMethods=[
22470'getSelects','setSelects',
22471'enable','disable',
22472'open','close',
22473'checkAll','uncheckAll',
22474'focus','blur',
22475'refresh','close'
22476];
22477this.each(function(){
22478var $this=$(this),
22479data=$this.data('multipleSelect'),
22480options=$.extend({},$.fn.multipleSelect.defaults,
22481$this.data(),typeof option==='object'&&option);
22482if(!data){
22483data=new MultipleSelect($this,options);
22484$this.data('multipleSelect',data);
22485}
22486if(typeof option==='string'){
22487if($.inArray(option,allowedMethods)<0){
22488throw'Unknown method: '+option;
22489}
22490value=data[option](args[1]);
22491}else{
22492data.init();
22493if(args[1]){
22494value=data[args[1]].apply(data,[].slice.call(args,2));
22495}
22496}
22497});
22498return typeof value!=='undefined'?value:this;
22499};
22500$.fn.multipleSelect.defaults={
22501name:'',
22502isOpen:false,
22503placeholder:'',
22504selectAll:true,
22505selectAllDelimiter:['[',']'],
22506minimumCountSelected:3,
22507ellipsis:false,
22508multiple:false,
22509multipleWidth:80,
22510single:false,
22511filter:false,
22512width:undefined,
22513dropWidth:undefined,
22514maxHeight:250,
22515container:null,
22516position:'bottom',
22517keepOpen:false,
22518animate:'none',
22519displayValues:false,
22520delimiter:', ',
22521addTitle:false,
22522filterAcceptOnEnter:false,
22523hideOptgroupCheckboxes:false,
22524selectAllText:'Select all',
22525allSelected:'All selected',
22526countSelected:'# of % selected',
22527noMatchesFound:'No matches found',
22528styler:function(){
22529return false;
22530},
22531textTemplate:function($elm){
22532return $elm.html();
22533},
22534labelTemplate:function($elm){
22535return $elm.attr('label');
22536},
22537onOpen:function(){
22538return false;
22539},
22540onClose:function(){
22541return false;
22542},
22543onCheckAll:function(){
22544return false;
22545},
22546onUncheckAll:function(){
22547return false;
22548},
22549onFocus:function(){
22550return false;
22551},
22552onBlur:function(){
22553return false;
22554},
22555onOptgroupClick:function(){
22556return false;
22557},
22558onClick:function(){
22559return false;
22560},
22561onFilter:function(){
22562return false;
22563}
22564};
22565})(jQuery);
22566window.structuredData=(function(structuredData){
22567var taxonomyPromises={};
22568async function getTaxonomy(url){
22569return taxonomyPromises[url]=taxonomyPromises[url]||new Promise(function(resolve,reject){
22570$.ajax(url)
22571.done(function(data){
22572resolve(data);
22573})
22574.fail(function(jqXHR,textStatus){
22575reject(new Error(jqXHR.status+' '+textStatus));
22576});
22577});
22578}
22579function addRecursiveOptions(tag,prefix,options){
22580options.push({
22581name:prefix+tag.name,
22582id:tag.slug
22583});
22584(tag.children||[]).forEach(function(tag){
22585addRecursiveOptions(tag,"-",options);
22586});
22587}
22588structuredData.filterOptions=async function(url,element,callback){
22589try{
22590let taxonomy=await getTaxonomy(url);
22591$(element).children("option[value!='']").remove();
22592var options=[];
22593var dataId=$(element).attr('data-id')||'';
22594if(dataId.match(/category/)){
22595taxonomy.categoryRoots.forEach(function(category){
22596addRecursiveOptions(category,"",options);
22597});
22598}
22599if(dataId.match(/tag/)){
22600taxonomy.tagRoots.forEach(function(tag){
22601addRecursiveOptions(tag,"",options);
22602});
22603}
22604$(options).each(function(i,option){
22605if(!option.id.match(/alle Kategorien wählen/)){
22606$(element).append(new Option(option.name,option.id,false,false));
22607}
22608});
22609}catch(e){
22610console.log(error);
22611}finally{
22612callback(element);
22613}
22614};
22615structuredData.queryTabContent=function(element){
22616var $element=$(element);
22617var $tabbar=$element.closest('.tabs');
22618var $component=$('#'+$tabbar.attr('data-id'));
22619var $targetId=$element.attr('href');
22620var $target=$($targetId);
22621var $loadingIndicator=$target.find('.loading');
22622if($loadingIndicator.length>0&&!$target.data('xhr')){
22623var tabListId=$tabbar.attr('id');
22624sessionStorage.setItem(tabListId,$targetId);
22625$loadingIndicator.show();
22626var categorySlugElement=$component.find('select[name=category]');
22627var categorySlugValue=categorySlugElement&&categorySlugElement.val()!==undefined?categorySlugElement.val():'';
22628var tagSlugElement=$component.find('select[name=tag]');
22629var tagSlugValue=tagSlugElement&&tagSlugElement.val()!==undefined?tagSlugElement.val():'';
22630var queryElement=$component.find('input[name=query]');
22631var query=queryElement&&queryElement.val()!==undefined?queryElement.val():'';
22632var jqxhr=$.ajax({
22633traditional:true,
22634url:$tabbar.attr('data-sd-url'),
22635data:{
22636tag:tagSlugValue,
22637category:categorySlugValue,
22638query:query,
22639index:$element.attr('data-sd-index')
22640}
22641})
22642.done(function(data,textStatus,jqXHR){
22643$target.empty().append($(data));
22644})
22645.fail(function(jqXHR,textStatus,errorThrown){
22646console.log(jqXHR.status+' '+textStatus);
22647})
22648.always(function(){
22649$loadingIndicator.remove();
22650});
22651$target.data('xhr',jqxhr);
22652}
22653};
22654structuredData.multipleSelectOptions={
22655allSelected:'Alle Schlagworte ausgewählt',
22656countSelected:'# von % Schlagworten ausgewählt',
22657filter:true,
22658minimumCountSelected:1,
22659noMatchesFound:'Keine Schlagworte gefunden',
22660placeholder:'Keine Schlagworte ausgewählt',
22661selectAll:false
22662};
22663return structuredData;
22664}(window.structuredData||{}));(function(){
22665(function(){
22666(function(){
22667(function(){
22668(function(){
22669const slice=Function.call.bind(Array.prototype.slice);
22670let patchFailed=false;
22671const isCssMediaRule=(cssRule)=>{
22672return cssRule.constructor.name==='CSSMediaRule';
22673}
22674const isCssSupportsRule=(cssRule)=>{
22675return cssRule.constructor.name==='CSSSupportsRule';
22676}
22677const isCssSupportsOrMediaRule=(cssRule)=>{
22678return isCssMediaRule(cssRule)||isCssSupportsRule(cssRule);
22679}
22680const isCssStyleRule=(cssRule)=>{
22681return cssRule.constructor.name==='CSSStyleRule'&&cssRule.selectorText;
22682}
22683const CSSStyleRulePseudoPreFilter=(result,cssRule)=>{
22684if(!cssRule.selectorText)return result;
22685let filteredSelectorText=cssRule.selectorText.split(",").filter(selectorText=>selectorText.match(/\S+(:)+after$/i)||selectorText.match(/\S+(:)+before$/i));
22686if(filteredSelectorText.length){
22687const selectorText=filteredSelectorText.join(",");
22688const cssText=cssRule.cssText.replace(cssRule.selectorText,selectorText);
22689result.push({selectorText,cssText,style:cssRule.style,styleMap:cssRule.styleMap});
22690}
22691return result;
22692};
22693const CSSStyleRulePseudoPostFilter=(containingSelector,pseudoElementTarget,iconSelector)=>{
22694const reducer=(result,cssRule)=>{
22695let filtered=cssRule.selectorText.split(",")
22696.filter(selectorText=>selectorText.match(new RegExp(`${containingSelector}(:.*)?::${pseudoElementTarget}`,"i")))
22697.map(selectorText=>selectorText.replace(`::${pseudoElementTarget}`,` ${iconSelector}::${pseudoElementTarget}`));
22698if(filtered.length){
22699const cssText=cssRule.cssText.replace(cssRule.selectorText,filtered.join(","));
22700result.push(cssText);
22701}
22702return result;
22703}
22704return reducer;
22705}
22706let allCssRules=slice(document.styleSheets).reduce(function(rules,styleSheet){
22707try{
22708return rules.concat(slice(styleSheet.cssRules));
22709}catch(e){
22710console.warn("Cannot process styleSheet",styleSheet);
22711return rules;
22712}
22713},[]);
22714let mediaRules=allCssRules.filter(isCssSupportsOrMediaRule).reduce((result,mediaRule)=>{
22715const cssRules=slice(mediaRule.cssRules).filter(isCssStyleRule);
22716if(cssRules.length){
22717result.push({cssRules,conditionText:mediaRule.conditionText,type:mediaRule.type});
22718}
22719return result;
22720},[]);
22721let cssStyleRules=allCssRules.filter(isCssStyleRule).filter(cssRule=>!cssRule.parentRule);
22722let pseudoElementRules=[];
22723let pseudoElementMediaRules=[];
22724try{
22725pseudoElementRules=cssStyleRules.reduce(CSSStyleRulePseudoPreFilter,[]);
22726pseudoElementMediaRules=mediaRules.reduce((result,mediaRule)=>{
22727const cssRules=mediaRule.cssRules.reduce(CSSStyleRulePseudoPreFilter,[]);
22728if(cssRules.length){
22729const resultObj={
22730conditionText:mediaRule.conditionText,
22731cssRules,
22732};
22733let mediaPrefix=null;
22734switch(mediaRule.type){
22735case CSSRule.MEDIA_RULE:
22736mediaPrefix="@media";
22737break;
22738case CSSRule.SUPPORTS_RULE:
22739mediaPrefix="@supports";
22740break;
22741}
22742if(!mediaPrefix){
22743throw new Error('Pseudo-Element Icon-Patch: mediaRule.constructor.name is not one of: CSSMediaRule, CSSSupportsRule');
22744}
22745resultObj.mediaPrefix=mediaPrefix;
22746result.push(resultObj);
22747}
22748return result;
22749},[]);
22750}catch(e){
22751patchFailed=true;
22752console.warn("Pseudo-Element Icon Patch failed in Pre-Filtering, reverting.",e)
22753}
22754let appliedElements=[];
22755const processElements=elements=>{
22756elements.forEach(el=>{
22757if(patchFailed){
22758el.remove();
22759return;
22760}
22761const pseudoElementTarget=el.getAttribute("data-a11y-pseudo-icon-patch-pseudo-target");
22762const containingSelector=el.getAttribute("data-a11y-pseudo-icon-patch-containing-selector");
22763const iconSelector=el.getAttribute("data-a11y-pseudo-icon-patch-icon-selector");
22764el.removeAttribute("data-a11y-pseudo-icon-patch");
22765el.removeAttribute("data-a11y-pseudo-icon-patch-pseudo-target");
22766el.removeAttribute("data-a11y-pseudo-icon-patch-containing-selector");
22767el.removeAttribute("data-a11y-pseudo-icon-patch-icon-selector");
22768const concatenatedPatchData=`${pseudoElementTarget}${containingSelector}${iconSelector}`;
22769if(appliedElements.indexOf(concatenatedPatchData)!==-1){
22770return;
22771}
22772appliedElements.push(concatenatedPatchData);
22773const finalCssRules=pseudoElementRules
22774.reduce(CSSStyleRulePseudoPostFilter(containingSelector,pseudoElementTarget,iconSelector),[])
22775.concat(pseudoElementMediaRules.reduce((result,mediaRule)=>{
22776const mediaText=`${mediaRule.mediaPrefix} ${mediaRule.conditionText} { %%REPLACER%% }`;
22777const cssRules=mediaRule.cssRules.reduce(CSSStyleRulePseudoPostFilter(containingSelector,pseudoElementTarget,iconSelector),[]);
22778if(cssRules.length){
22779result.push(mediaText.replace("%%REPLACER%%",cssRules.join("")));
22780}
22781return result;
22782},[]));
22783if(finalCssRules.length){
22784const styleEl=document.createElement("style");
22785finalCssRules.push(`${containingSelector}::${pseudoElementTarget} { display: none !important }`);
22786finalCssRules.push(`${containingSelector} ${iconSelector} { display: contents }`);
22787let styles=finalCssRules.join("");
22788document.head.appendChild(styleEl);
22789styleEl.appendChild(document.createTextNode(styles));
22790}
22791})
22792};
22793const observer=new MutationObserver(mutations=>{
22794mutations.forEach(mutation=>{
22795for(let i=0;i<mutation.addedNodes.length;i++){
22796let addedNode=(mutation.addedNodes[i]);
22797if(typeof addedNode.querySelector==='function'){
22798let elements=Array.from(addedNode.querySelectorAll("[data-a11y-pseudo-icon-patch]"));
22799if(addedNode.matches("[data-a11y-pseudo-icon-patch]"))
22800elements.push(addedNode);
22801processElements(elements);
22802}
22803}
22804});
22805});
22806let config={attributes:false,childList:true,characterData:false,subtree:true};
22807observer.observe(document.body,config);
22808processElements(document.querySelectorAll("[data-a11y-pseudo-icon-patch]"));
22809}).call(this.pseudoElementIconPatch||(this.pseudoElementIconPatch={}));
22810}).call(this.Accessibility||(this.Accessibility={}));
22811}).call(this.Common||(this.Common={}));
22812}).call(this.Common||(this.Common={}));
22813}).call(window.Pegasus||(window.Pegasus={}));
22814(function(factory){
22815"use strict";
22816if(typeof define==="function"&&define.amd){
22817define(["jquery"],factory);
22818}else{
22819factory(jQuery);
22820}
22821})(function($){
22822"use strict";
22823$.ui=$.ui||{};
22824var version=$.ui.version="1.13.2";
22825var widgetUuid=0;
22826var widgetHasOwnProperty=Array.prototype.hasOwnProperty;
22827var widgetSlice=Array.prototype.slice;
22828$.cleanData=(function(orig){
22829return function(elems){
22830var events,elem,i;
22831for(i=0;(elem=elems[i])!=null;i++){
22832events=$._data(elem,"events");
22833if(events&&events.remove){
22834$(elem).triggerHandler("remove");
22835}
22836}
22837orig(elems);
22838};
22839})($.cleanData);
22840$.widget=function(name,base,prototype){
22841var existingConstructor,constructor,basePrototype;
22842var proxiedPrototype={};
22843var namespace=name.split(".")[0];
22844name=name.split(".")[1];
22845var fullName=namespace+"-"+name;
22846if(!prototype){
22847prototype=base;
22848base=$.Widget;
22849}
22850if(Array.isArray(prototype)){
22851prototype=$.extend.apply(null,[{}].concat(prototype));
22852}
22853$.expr.pseudos[fullName.toLowerCase()]=function(elem){
22854return!!$.data(elem,fullName);
22855};
22856$[namespace]=$[namespace]||{};
22857existingConstructor=$[namespace][name];
22858constructor=$[namespace][name]=function(options,element){
22859if(!this||!this._createWidget){
22860return new constructor(options,element);
22861}
22862if(arguments.length){
22863this._createWidget(options,element);
22864}
22865};
22866$.extend(constructor,existingConstructor,{
22867version:prototype.version,
22868_proto:$.extend({},prototype),
22869_childConstructors:[]
22870});
22871basePrototype=new base();
22872basePrototype.options=$.widget.extend({},basePrototype.options);
22873$.each(prototype,function(prop,value){
22874if(typeof value!=="function"){
22875proxiedPrototype[prop]=value;
22876return;
22877}
22878proxiedPrototype[prop]=(function(){
22879function _super(){
22880return base.prototype[prop].apply(this,arguments);
22881}
22882function _superApply(args){
22883return base.prototype[prop].apply(this,args);
22884}
22885return function(){
22886var __super=this._super;
22887var __superApply=this._superApply;
22888var returnValue;
22889this._super=_super;
22890this._superApply=_superApply;
22891returnValue=value.apply(this,arguments);
22892this._super=__super;
22893this._superApply=__superApply;
22894return returnValue;
22895};
22896})();
22897});
22898constructor.prototype=$.widget.extend(basePrototype,{
22899widgetEventPrefix:existingConstructor?(basePrototype.widgetEventPrefix||name):name
22900},proxiedPrototype,{
22901constructor:constructor,
22902namespace:namespace,
22903widgetName:name,
22904widgetFullName:fullName
22905});
22906if(existingConstructor){
22907$.each(existingConstructor._childConstructors,function(i,child){
22908var childPrototype=child.prototype;
22909$.widget(childPrototype.namespace+"."+childPrototype.widgetName,constructor,
22910child._proto);
22911});
22912delete existingConstructor._childConstructors;
22913}else{
22914base._childConstructors.push(constructor);
22915}
22916$.widget.bridge(name,constructor);
22917return constructor;
22918};
22919$.widget.extend=function(target){
vendor: 19,244 bytes, lines 22920-23689
22920var input=widgetSlice.call(arguments,1);
22921var inputIndex=0;
22922var inputLength=input.length;
22923var key;
22924var value;
22925for(;inputIndex<inputLength;inputIndex++){
22926for(key in input[inputIndex]){
22927value=input[inputIndex][key];
22928if(widgetHasOwnProperty.call(input[inputIndex],key)&&value!==undefined){
22929if($.isPlainObject(value)){
22930target[key]=$.isPlainObject(target[key])?
22931$.widget.extend({},target[key],value):
22932$.widget.extend({},value);
22933}else{
22934target[key]=value;
22935}
22936}
22937}
22938}
22939return target;
22940};
22941$.widget.bridge=function(name,object){
22942var fullName=object.prototype.widgetFullName||name;
22943$.fn[name]=function(options){
22944var isMethodCall=typeof options==="string";
22945var args=widgetSlice.call(arguments,1);
22946var returnValue=this;
22947if(isMethodCall){
22948if(!this.length&&options==="instance"){
22949returnValue=undefined;
22950}else{
22951this.each(function(){
22952var methodValue;
22953var instance=$.data(this,fullName);
22954if(options==="instance"){
22955returnValue=instance;
22956return false;
22957}
22958if(!instance){
22959return $.error("cannot call methods on "+name+
22960" prior to initialization; "+
22961"attempted to call method '"+options+"'");
22962}
22963if(typeof instance[options]!=="function"||
22964options.charAt(0)==="_"){
22965return $.error("no such method '"+options+"' for "+name+
22966" widget instance");
22967}
22968methodValue=instance[options].apply(instance,args);
22969if(methodValue!==instance&&methodValue!==undefined){
22970returnValue=methodValue&&methodValue.jquery?
22971returnValue.pushStack(methodValue.get()):
22972methodValue;
22973return false;
22974}
22975});
22976}
22977}else{
22978if(args.length){
22979options=$.widget.extend.apply(null,[options].concat(args));
22980}
22981this.each(function(){
22982var instance=$.data(this,fullName);
22983if(instance){
22984instance.option(options||{});
22985if(instance._init){
22986instance._init();
22987}
22988}else{
22989$.data(this,fullName,new object(options,this));
22990}
22991});
22992}
22993return returnValue;
22994};
22995};
22996$.Widget=function(){};
22997$.Widget._childConstructors=[];
22998$.Widget.prototype={
22999widgetName:"widget",
23000widgetEventPrefix:"",
23001defaultElement:"<div>",
23002options:{
23003classes:{},
23004disabled:false,
23005create:null
23006},
23007_createWidget:function(options,element){
23008element=$(element||this.defaultElement||this)[0];
23009this.element=$(element);
23010this.uuid=widgetUuid++;
23011this.eventNamespace="."+this.widgetName+this.uuid;
23012this.bindings=$();
23013this.hoverable=$();
23014this.focusable=$();
23015this.classesElementLookup={};
23016if(element!==this){
23017$.data(element,this.widgetFullName,this);
23018this._on(true,this.element,{
23019remove:function(event){
23020if(event.target===element){
23021this.destroy();
23022}
23023}
23024});
23025this.document=$(element.style?
23026element.ownerDocument:
23027element.document||element);
23028this.window=$(this.document[0].defaultView||this.document[0].parentWindow);
23029}
23030this.options=$.widget.extend({},
23031this.options,
23032this._getCreateOptions(),
23033options);
23034this._create();
23035if(this.options.disabled){
23036this._setOptionDisabled(this.options.disabled);
23037}
23038this._trigger("create",null,this._getCreateEventData());
23039this._init();
23040},
23041_getCreateOptions:function(){
23042return{};
23043},
23044_getCreateEventData:$.noop,
23045_create:$.noop,
23046_init:$.noop,
23047destroy:function(){
23048var that=this;
23049this._destroy();
23050$.each(this.classesElementLookup,function(key,value){
23051that._removeClass(value,key);
23052});
23053this.element
23054.off(this.eventNamespace)
23055.removeData(this.widgetFullName);
23056this.widget()
23057.off(this.eventNamespace)
23058.removeAttr("aria-disabled");
23059this.bindings.off(this.eventNamespace);
23060},
23061_destroy:$.noop,
23062widget:function(){
23063return this.element;
23064},
23065option:function(key,value){
23066var options=key;
23067var parts;
23068var curOption;
23069var i;
23070if(arguments.length===0){
23071return $.widget.extend({},this.options);
23072}
23073if(typeof key==="string"){
23074options={};
23075parts=key.split(".");
23076key=parts.shift();
23077if(parts.length){
23078curOption=options[key]=$.widget.extend({},this.options[key]);
23079for(i=0;i<parts.length-1;i++){
23080curOption[parts[i]]=curOption[parts[i]]||{};
23081curOption=curOption[parts[i]];
23082}
23083key=parts.pop();
23084if(arguments.length===1){
23085return curOption[key]===undefined?null:curOption[key];
23086}
23087curOption[key]=value;
23088}else{
23089if(arguments.length===1){
23090return this.options[key]===undefined?null:this.options[key];
23091}
23092options[key]=value;
23093}
23094}
23095this._setOptions(options);
23096return this;
23097},
23098_setOptions:function(options){
23099var key;
23100for(key in options){
23101this._setOption(key,options[key]);
23102}
23103return this;
23104},
23105_setOption:function(key,value){
23106if(key==="classes"){
23107this._setOptionClasses(value);
23108}
23109this.options[key]=value;
23110if(key==="disabled"){
23111this._setOptionDisabled(value);
23112}
23113return this;
23114},
23115_setOptionClasses:function(value){
23116var classKey,elements,currentElements;
23117for(classKey in value){
23118currentElements=this.classesElementLookup[classKey];
23119if(value[classKey]===this.options.classes[classKey]||
23120!currentElements||
23121!currentElements.length){
23122continue;
23123}
23124elements=$(currentElements.get());
23125this._removeClass(currentElements,classKey);
23126elements.addClass(this._classes({
23127element:elements,
23128keys:classKey,
23129classes:value,
23130add:true
23131}));
23132}
23133},
23134_setOptionDisabled:function(value){
23135this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!value);
23136if(value){
23137this._removeClass(this.hoverable,null,"ui-state-hover");
23138this._removeClass(this.focusable,null,"ui-state-focus");
23139}
23140},
23141enable:function(){
23142return this._setOptions({disabled:false});
23143},
23144disable:function(){
23145return this._setOptions({disabled:true});
23146},
23147_classes:function(options){
23148var full=[];
23149var that=this;
23150options=$.extend({
23151element:this.element,
23152classes:this.options.classes||{}
23153},options);
23154function bindRemoveEvent(){
23155var nodesToBind=[];
23156options.element.each(function(_,element){
23157var isTracked=$.map(that.classesElementLookup,function(elements){
23158return elements;
23159})
23160.some(function(elements){
23161return elements.is(element);
23162});
23163if(!isTracked){
23164nodesToBind.push(element);
23165}
23166});
23167that._on($(nodesToBind),{
23168remove:"_untrackClassesElement"
23169});
23170}
23171function processClassString(classes,checkOption){
23172var current,i;
23173for(i=0;i<classes.length;i++){
23174current=that.classesElementLookup[classes[i]]||$();
23175if(options.add){
23176bindRemoveEvent();
23177current=$($.uniqueSort(current.get().concat(options.element.get())));
23178}else{
23179current=$(current.not(options.element).get());
23180}
23181that.classesElementLookup[classes[i]]=current;
23182full.push(classes[i]);
23183if(checkOption&&options.classes[classes[i]]){
23184full.push(options.classes[classes[i]]);
23185}
23186}
23187}
23188if(options.keys){
23189processClassString(options.keys.match(/\S+/g)||[],true);
23190}
23191if(options.extra){
23192processClassString(options.extra.match(/\S+/g)||[]);
23193}
23194return full.join(" ");
23195},
23196_untrackClassesElement:function(event){
23197var that=this;
23198$.each(that.classesElementLookup,function(key,value){
23199if($.inArray(event.target,value)!==-1){
23200that.classesElementLookup[key]=$(value.not(event.target).get());
23201}
23202});
23203this._off($(event.target));
23204},
23205_removeClass:function(element,keys,extra){
23206return this._toggleClass(element,keys,extra,false);
23207},
23208_addClass:function(element,keys,extra){
23209return this._toggleClass(element,keys,extra,true);
23210},
23211_toggleClass:function(element,keys,extra,add){
23212add=(typeof add==="boolean")?add:extra;
23213var shift=(typeof element==="string"||element===null),
23214options={
23215extra:shift?keys:extra,
23216keys:shift?element:keys,
23217element:shift?this.element:element,
23218add:add
23219};
23220options.element.toggleClass(this._classes(options),add);
23221return this;
23222},
23223_on:function(suppressDisabledCheck,element,handlers){
23224var delegateElement;
23225var instance=this;
23226if(typeof suppressDisabledCheck!=="boolean"){
23227handlers=element;
23228element=suppressDisabledCheck;
23229suppressDisabledCheck=false;
23230}
23231if(!handlers){
23232handlers=element;
23233element=this.element;
23234delegateElement=this.widget();
23235}else{
23236element=delegateElement=$(element);
23237this.bindings=this.bindings.add(element);
23238}
23239$.each(handlers,function(event,handler){
23240function handlerProxy(){
23241if(!suppressDisabledCheck&&
23242(instance.options.disabled===true||
23243$(this).hasClass("ui-state-disabled"))){
23244return;
23245}
23246return(typeof handler==="string"?instance[handler]:handler)
23247.apply(instance,arguments);
23248}
23249if(typeof handler!=="string"){
23250handlerProxy.guid=handler.guid=
23251handler.guid||handlerProxy.guid||$.guid++;
23252}
23253var match=event.match(/^([\w:-]*)\s*(.*)$/);
23254var eventName=match[1]+instance.eventNamespace;
23255var selector=match[2];
23256if(selector){
23257delegateElement.on(eventName,selector,handlerProxy);
23258}else{
23259element.on(eventName,handlerProxy);
23260}
23261});
23262},
23263_off:function(element,eventName){
23264eventName=(eventName||"").split(" ").join(this.eventNamespace+" ")+
23265this.eventNamespace;
23266element.off(eventName);
23267this.bindings=$(this.bindings.not(element).get());
23268this.focusable=$(this.focusable.not(element).get());
23269this.hoverable=$(this.hoverable.not(element).get());
23270},
23271_delay:function(handler,delay){
23272function handlerProxy(){
23273return(typeof handler==="string"?instance[handler]:handler)
23274.apply(instance,arguments);
23275}
23276var instance=this;
23277return setTimeout(handlerProxy,delay||0);
23278},
23279_hoverable:function(element){
23280this.hoverable=this.hoverable.add(element);
23281this._on(element,{
23282mouseenter:function(event){
23283this._addClass($(event.currentTarget),null,"ui-state-hover");
23284},
23285mouseleave:function(event){
23286this._removeClass($(event.currentTarget),null,"ui-state-hover");
23287}
23288});
23289},
23290_focusable:function(element){
23291this.focusable=this.focusable.add(element);
23292this._on(element,{
23293focusin:function(event){
23294this._addClass($(event.currentTarget),null,"ui-state-focus");
23295},
23296focusout:function(event){
23297this._removeClass($(event.currentTarget),null,"ui-state-focus");
23298}
23299});
23300},
23301_trigger:function(type,event,data){
23302var prop,orig;
23303var callback=this.options[type];
23304data=data||{};
23305event=$.Event(event);
23306event.type=(type===this.widgetEventPrefix?
23307type:
23308this.widgetEventPrefix+type).toLowerCase();
23309event.target=this.element[0];
23310orig=event.originalEvent;
23311if(orig){
23312for(prop in orig){
23313if(!(prop in event)){
23314event[prop]=orig[prop];
23315}
23316}
23317}
23318this.element.trigger(event,data);
23319return!(typeof callback==="function"&&
23320callback.apply(this.element[0],[event].concat(data))===false||
23321event.isDefaultPrevented());
23322}
23323};
23324$.each({show:"fadeIn",hide:"fadeOut"},function(method,defaultEffect){
23325$.Widget.prototype["_"+method]=function(element,options,callback){
23326if(typeof options==="string"){
23327options={effect:options};
23328}
23329var hasOptions;
23330var effectName=!options?
23331method:
23332options===true||typeof options==="number"?
23333defaultEffect:
23334options.effect||defaultEffect;
23335options=options||{};
23336if(typeof options==="number"){
23337options={duration:options};
23338}else if(options===true){
23339options={};
23340}
23341hasOptions=!$.isEmptyObject(options);
23342options.complete=callback;
23343if(options.delay){
23344element.delay(options.delay);
23345}
23346if(hasOptions&&$.effects&&$.effects.effect[effectName]){
23347element[method](options);
23348}else if(effectName!==method&&element[effectName]){
23349element[effectName](options.duration,options.easing,callback);
23350}else{
23351element.queue(function(next){
23352$(this)[method]();
23353if(callback){
23354callback.call(element[0]);
23355}
23356next();
23357});
23358}
23359};
23360});
23361var widget=$.widget;
23362(function(){
23363var cachedScrollbarWidth,
23364max=Math.max,
23365abs=Math.abs,
23366rhorizontal=/left|center|right/,
23367rvertical=/top|center|bottom/,
23368roffset=/[\+\-]\d+(\.[\d]+)?%?/,
23369rposition=/^\w+/,
23370rpercent=/%$/,
23371_position=$.fn.position;
23372function getOffsets(offsets,width,height){
23373return[
23374parseFloat(offsets[0])*(rpercent.test(offsets[0])?width/100:1),
23375parseFloat(offsets[1])*(rpercent.test(offsets[1])?height/100:1)
23376];
23377}
23378function parseCss(element,property){
23379return parseInt($.css(element,property),10)||0;
23380}
23381function isWindow(obj){
23382return obj!=null&&obj===obj.window;
23383}
23384function getDimensions(elem){
23385var raw=elem[0];
23386if(raw.nodeType===9){
23387return{
23388width:elem.width(),
23389height:elem.height(),
23390offset:{top:0,left:0}
23391};
23392}
23393if(isWindow(raw)){
23394return{
23395width:elem.width(),
23396height:elem.height(),
23397offset:{top:elem.scrollTop(),left:elem.scrollLeft()}
23398};
23399}
23400if(raw.preventDefault){
23401return{
23402width:0,
23403height:0,
23404offset:{top:raw.pageY,left:raw.pageX}
23405};
23406}
23407return{
23408width:elem.outerWidth(),
23409height:elem.outerHeight(),
23410offset:elem.offset()
23411};
23412}
23413$.position={
23414scrollbarWidth:function(){
23415if(cachedScrollbarWidth!==undefined){
23416return cachedScrollbarWidth;
23417}
23418var w1,w2,
23419div=$("<div style="+
23420"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>"+
23421"<div style='height:300px;width:auto;'></div></div>"),
23422innerDiv=div.children()[0];
23423$("body").append(div);
23424w1=innerDiv.offsetWidth;
23425div.css("overflow","scroll");
23426w2=innerDiv.offsetWidth;
23427if(w1===w2){
23428w2=div[0].clientWidth;
23429}
23430div.remove();
23431return(cachedScrollbarWidth=w1-w2);
23432},
23433getScrollInfo:function(within){
23434var overflowX=within.isWindow||within.isDocument?"":
23435within.element.css("overflow-x"),
23436overflowY=within.isWindow||within.isDocument?"":
23437within.element.css("overflow-y"),
23438hasOverflowX=overflowX==="scroll"||
23439(overflowX==="auto"&&within.width<within.element[0].scrollWidth),
23440hasOverflowY=overflowY==="scroll"||
23441(overflowY==="auto"&&within.height<within.element[0].scrollHeight);
23442return{
23443width:hasOverflowY?$.position.scrollbarWidth():0,
23444height:hasOverflowX?$.position.scrollbarWidth():0
23445};
23446},
23447getWithinInfo:function(element){
23448var withinElement=$(element||window),
23449isElemWindow=isWindow(withinElement[0]),
23450isDocument=!!withinElement[0]&&withinElement[0].nodeType===9,
23451hasOffset=!isElemWindow&&!isDocument;
23452return{
23453element:withinElement,
23454isWindow:isElemWindow,
23455isDocument:isDocument,
23456offset:hasOffset?$(element).offset():{left:0,top:0},
23457scrollLeft:withinElement.scrollLeft(),
23458scrollTop:withinElement.scrollTop(),
23459width:withinElement.outerWidth(),
23460height:withinElement.outerHeight()
23461};
23462}
23463};
23464$.fn.position=function(options){
23465if(!options||!options.of){
23466return _position.apply(this,arguments);
23467}
23468options=$.extend({},options);
23469var atOffset,targetWidth,targetHeight,targetOffset,basePosition,dimensions,
23470target=typeof options.of==="string"?
23471$(document).find(options.of):
23472$(options.of),
23473within=$.position.getWithinInfo(options.within),
23474scrollInfo=$.position.getScrollInfo(within),
23475collision=(options.collision||"flip").split(" "),
23476offsets={};
23477dimensions=getDimensions(target);
23478if(target[0].preventDefault){
23479options.at="left top";
23480}
23481targetWidth=dimensions.width;
23482targetHeight=dimensions.height;
23483targetOffset=dimensions.offset;
23484basePosition=$.extend({},targetOffset);
23485$.each(["my","at"],function(){
23486var pos=(options[this]||"").split(" "),
23487horizontalOffset,
23488verticalOffset;
23489if(pos.length===1){
23490pos=rhorizontal.test(pos[0])?
23491pos.concat(["center"]):
23492rvertical.test(pos[0])?
23493["center"].concat(pos):
23494["center","center"];
23495}
23496pos[0]=rhorizontal.test(pos[0])?pos[0]:"center";
23497pos[1]=rvertical.test(pos[1])?pos[1]:"center";
23498horizontalOffset=roffset.exec(pos[0]);
23499verticalOffset=roffset.exec(pos[1]);
23500offsets[this]=[
23501horizontalOffset?horizontalOffset[0]:0,
23502verticalOffset?verticalOffset[0]:0
23503];
23504options[this]=[
23505rposition.exec(pos[0])[0],
23506rposition.exec(pos[1])[0]
23507];
23508});
23509if(collision.length===1){
23510collision[1]=collision[0];
23511}
23512if(options.at[0]==="right"){
23513basePosition.left+=targetWidth;
23514}else if(options.at[0]==="center"){
23515basePosition.left+=targetWidth/2;
23516}
23517if(options.at[1]==="bottom"){
23518basePosition.top+=targetHeight;
23519}else if(options.at[1]==="center"){
23520basePosition.top+=targetHeight/2;
23521}
23522atOffset=getOffsets(offsets.at,targetWidth,targetHeight);
23523basePosition.left+=atOffset[0];
23524basePosition.top+=atOffset[1];
23525return this.each(function(){
23526var collisionPosition,using,
23527elem=$(this),
23528elemWidth=elem.outerWidth(),
23529elemHeight=elem.outerHeight(),
23530marginLeft=parseCss(this,"marginLeft"),
23531marginTop=parseCss(this,"marginTop"),
23532collisionWidth=elemWidth+marginLeft+parseCss(this,"marginRight")+
23533scrollInfo.width,
23534collisionHeight=elemHeight+marginTop+parseCss(this,"marginBottom")+
23535scrollInfo.height,
23536position=$.extend({},basePosition),
23537myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());
23538if(options.my[0]==="right"){
23539position.left-=elemWidth;
23540}else if(options.my[0]==="center"){
23541position.left-=elemWidth/2;
23542}
23543if(options.my[1]==="bottom"){
23544position.top-=elemHeight;
23545}else if(options.my[1]==="center"){
23546position.top-=elemHeight/2;
23547}
23548position.left+=myOffset[0];
23549position.top+=myOffset[1];
23550collisionPosition={
23551marginLeft:marginLeft,
23552marginTop:marginTop
23553};
23554$.each(["left","top"],function(i,dir){
23555if($.ui.position[collision[i]]){
23556$.ui.position[collision[i]][dir](position,{
23557targetWidth:targetWidth,
23558targetHeight:targetHeight,
23559elemWidth:elemWidth,
23560elemHeight:elemHeight,
23561collisionPosition:collisionPosition,
23562collisionWidth:collisionWidth,
23563collisionHeight:collisionHeight,
23564offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],
23565my:options.my,
23566at:options.at,
23567within:within,
23568elem:elem
23569});
23570}
23571});
23572if(options.using){
23573using=function(props){
23574var left=targetOffset.left-position.left,
23575right=left+targetWidth-elemWidth,
23576top=targetOffset.top-position.top,
23577bottom=top+targetHeight-elemHeight,
23578feedback={
23579target:{
23580element:target,
23581left:targetOffset.left,
23582top:targetOffset.top,
23583width:targetWidth,
23584height:targetHeight
23585},
23586element:{
23587element:elem,
23588left:position.left,
23589top:position.top,
23590width:elemWidth,
23591height:elemHeight
23592},
23593horizontal:right<0?"left":left>0?"right":"center",
23594vertical:bottom<0?"top":top>0?"bottom":"middle"
23595};
23596if(targetWidth<elemWidth&&abs(left+right)<targetWidth){
23597feedback.horizontal="center";
23598}
23599if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight){
23600feedback.vertical="middle";
23601}
23602if(max(abs(left),abs(right))>max(abs(top),abs(bottom))){
23603feedback.important="horizontal";
23604}else{
23605feedback.important="vertical";
23606}
23607options.using.call(this,props,feedback);
23608};
23609}
23610elem.offset($.extend(position,{using:using}));
23611});
23612};
23613$.ui.position={
23614fit:{
23615left:function(position,data){
23616var within=data.within,
23617withinOffset=within.isWindow?within.scrollLeft:within.offset.left,
23618outerWidth=within.width,
23619collisionPosLeft=position.left-data.collisionPosition.marginLeft,
23620overLeft=withinOffset-collisionPosLeft,
23621overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,
23622newOverRight;
23623if(data.collisionWidth>outerWidth){
23624if(overLeft>0&&overRight<=0){
23625newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-
23626withinOffset;
23627position.left+=overLeft-newOverRight;
23628}else if(overRight>0&&overLeft<=0){
23629position.left=withinOffset;
23630}else{
23631if(overLeft>overRight){
23632position.left=withinOffset+outerWidth-data.collisionWidth;
23633}else{
23634position.left=withinOffset;
23635}
23636}
23637}else if(overLeft>0){
23638position.left+=overLeft;
23639}else if(overRight>0){
23640position.left-=overRight;
23641}else{
23642position.left=max(position.left-collisionPosLeft,position.left);
23643}
23644},
23645top:function(position,data){
23646var within=data.within,
23647withinOffset=within.isWindow?within.scrollTop:within.offset.top,
23648outerHeight=data.within.height,
23649collisionPosTop=position.top-data.collisionPosition.marginTop,
23650overTop=withinOffset-collisionPosTop,
23651overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,
23652newOverBottom;
23653if(data.collisionHeight>outerHeight){
23654if(overTop>0&&overBottom<=0){
23655newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-
23656withinOffset;
23657position.top+=overTop-newOverBottom;
23658}else if(overBottom>0&&overTop<=0){
23659position.top=withinOffset;
23660}else{
23661if(overTop>overBottom){
23662position.top=withinOffset+outerHeight-data.collisionHeight;
23663}else{
23664position.top=withinOffset;
23665}
23666}
23667}else if(overTop>0){
23668position.top+=overTop;
23669}else if(overBottom>0){
23670position.top-=overBottom;
23671}else{
23672position.top=max(position.top-collisionPosTop,position.top);
23673}
23674}
23675},
23676flip:{
23677left:function(position,data){
23678var within=data.within,
23679withinOffset=within.offset.left+within.scrollLeft,
23680outerWidth=within.width,
23681offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,
23682collisionPosLeft=position.left-data.collisionPosition.marginLeft,
23683overLeft=collisionPosLeft-offsetLeft,
23684overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,
23685myOffset=data.my[0]==="left"?
23686-data.elemWidth:
23687data.my[0]==="right"?
23688data.elemWidth:
236890,
vendor: 30,340 bytes, lines 23690-25127
23690atOffset=data.at[0]==="left"?
23691data.targetWidth:
23692data.at[0]==="right"?
23693-data.targetWidth:
236940,
23695offset=-2*data.offset[0],
23696newOverRight,
23697newOverLeft;
23698if(overLeft<0){
23699newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-
23700outerWidth-withinOffset;
23701if(newOverRight<0||newOverRight<abs(overLeft)){
23702position.left+=myOffset+atOffset+offset;
23703}
23704}else if(overRight>0){
23705newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+
23706atOffset+offset-offsetLeft;
23707if(newOverLeft>0||abs(newOverLeft)<overRight){
23708position.left+=myOffset+atOffset+offset;
23709}
23710}
23711},
23712top:function(position,data){
23713var within=data.within,
23714withinOffset=within.offset.top+within.scrollTop,
23715outerHeight=within.height,
23716offsetTop=within.isWindow?within.scrollTop:within.offset.top,
23717collisionPosTop=position.top-data.collisionPosition.marginTop,
23718overTop=collisionPosTop-offsetTop,
23719overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop,
23720top=data.my[1]==="top",
23721myOffset=top?
23722-data.elemHeight:
23723data.my[1]==="bottom"?
23724data.elemHeight:
237250,
23726atOffset=data.at[1]==="top"?
23727data.targetHeight:
23728data.at[1]==="bottom"?
23729-data.targetHeight:
237300,
23731offset=-2*data.offset[1],
23732newOverTop,
23733newOverBottom;
23734if(overTop<0){
23735newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-
23736outerHeight-withinOffset;
23737if(newOverBottom<0||newOverBottom<abs(overTop)){
23738position.top+=myOffset+atOffset+offset;
23739}
23740}else if(overBottom>0){
23741newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+
23742offset-offsetTop;
23743if(newOverTop>0||abs(newOverTop)<overBottom){
23744position.top+=myOffset+atOffset+offset;
23745}
23746}
23747}
23748},
23749flipfit:{
23750left:function(){
23751$.ui.position.flip.left.apply(this,arguments);
23752$.ui.position.fit.left.apply(this,arguments);
23753},
23754top:function(){
23755$.ui.position.flip.top.apply(this,arguments);
23756$.ui.position.fit.top.apply(this,arguments);
23757}
23758}
23759};
23760})();
23761var position=$.ui.position;
23762var data=$.extend($.expr.pseudos,{
23763data:$.expr.createPseudo?
23764$.expr.createPseudo(function(dataName){
23765return function(elem){
23766return!!$.data(elem,dataName);
23767};
23768}):
23769function(elem,i,match){
23770return!!$.data(elem,match[3]);
23771}
23772});
23773var disableSelection=$.fn.extend({
23774disableSelection:(function(){
23775var eventType="onselectstart"in document.createElement("div")?
23776"selectstart":
23777"mousedown";
23778return function(){
23779return this.on(eventType+".ui-disableSelection",function(event){
23780event.preventDefault();
23781});
23782};
23783})(),
23784enableSelection:function(){
23785return this.off(".ui-disableSelection");
23786}
23787});
23788var jQuery=$;
23789var stepHooks="backgroundColor borderBottomColor borderLeftColor borderRightColor "+
23790"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
23791class2type={},
23792toString=class2type.toString,
23793rplusequals=/^([\-+])=\s*(\d+\.?\d*)/,
23794stringParsers=[{
23795re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
23796parse:function(execResult){
23797return[
23798execResult[1],
23799execResult[2],
23800execResult[3],
23801execResult[4]
23802];
23803}
23804},{
23805re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
23806parse:function(execResult){
23807return[
23808execResult[1]*2.55,
23809execResult[2]*2.55,
23810execResult[3]*2.55,
23811execResult[4]
23812];
23813}
23814},{
23815re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,
23816parse:function(execResult){
23817return[
23818parseInt(execResult[1],16),
23819parseInt(execResult[2],16),
23820parseInt(execResult[3],16),
23821execResult[4]?
23822(parseInt(execResult[4],16)/255).toFixed(2):
238231
23824];
23825}
23826},{
23827re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,
23828parse:function(execResult){
23829return[
23830parseInt(execResult[1]+execResult[1],16),
23831parseInt(execResult[2]+execResult[2],16),
23832parseInt(execResult[3]+execResult[3],16),
23833execResult[4]?
23834(parseInt(execResult[4]+execResult[4],16)/255)
23835.toFixed(2):
238361
23837];
23838}
23839},{
23840re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
23841space:"hsla",
23842parse:function(execResult){
23843return[
23844execResult[1],
23845execResult[2]/100,
23846execResult[3]/100,
23847execResult[4]
23848];
23849}
23850}],
23851color=jQuery.Color=function(color,green,blue,alpha){
23852return new jQuery.Color.fn.parse(color,green,blue,alpha);
23853},
23854spaces={
23855rgba:{
23856props:{
23857red:{
23858idx:0,
23859type:"byte"
23860},
23861green:{
23862idx:1,
23863type:"byte"
23864},
23865blue:{
23866idx:2,
23867type:"byte"
23868}
23869}
23870},
23871hsla:{
23872props:{
23873hue:{
23874idx:0,
23875type:"degrees"
23876},
23877saturation:{
23878idx:1,
23879type:"percent"
23880},
23881lightness:{
23882idx:2,
23883type:"percent"
23884}
23885}
23886}
23887},
23888propTypes={
23889"byte":{
23890floor:true,
23891max:255
23892},
23893"percent":{
23894max:1
23895},
23896"degrees":{
23897mod:360,
23898floor:true
23899}
23900},
23901support=color.support={},
23902supportElem=jQuery("<p>")[0],
23903colors,
23904each=jQuery.each;
23905supportElem.style.cssText="background-color:rgba(1,1,1,.5)";
23906support.rgba=supportElem.style.backgroundColor.indexOf("rgba")>-1;
23907each(spaces,function(spaceName,space){
23908space.cache="_"+spaceName;
23909space.props.alpha={
23910idx:3,
23911type:"percent",
23912def:1
23913};
23914});
23915jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
23916function(_i,name){
23917class2type["[object "+name+"]"]=name.toLowerCase();
23918});
23919function getType(obj){
23920if(obj==null){
23921return obj+"";
23922}
23923return typeof obj==="object"?
23924class2type[toString.call(obj)]||"object":
23925typeof obj;
23926}
23927function clamp(value,prop,allowEmpty){
23928var type=propTypes[prop.type]||{};
23929if(value==null){
23930return(allowEmpty||!prop.def)?null:prop.def;
23931}
23932value=type.floor?~~value:parseFloat(value);
23933if(isNaN(value)){
23934return prop.def;
23935}
23936if(type.mod){
23937return(value+type.mod)%type.mod;
23938}
23939return Math.min(type.max,Math.max(0,value));
23940}
23941function stringParse(string){
23942var inst=color(),
23943rgba=inst._rgba=[];
23944string=string.toLowerCase();
23945each(stringParsers,function(_i,parser){
23946var parsed,
23947match=parser.re.exec(string),
23948values=match&&parser.parse(match),
23949spaceName=parser.space||"rgba";
23950if(values){
23951parsed=inst[spaceName](values);
23952inst[spaces[spaceName].cache]=parsed[spaces[spaceName].cache];
23953rgba=inst._rgba=parsed._rgba;
23954return false;
23955}
23956});
23957if(rgba.length){
23958if(rgba.join()==="0,0,0,0"){
23959jQuery.extend(rgba,colors.transparent);
23960}
23961return inst;
23962}
23963return colors[string];
23964}
23965color.fn=jQuery.extend(color.prototype,{
23966parse:function(red,green,blue,alpha){
23967if(red===undefined){
23968this._rgba=[null,null,null,null];
23969return this;
23970}
23971if(red.jquery||red.nodeType){
23972red=jQuery(red).css(green);
23973green=undefined;
23974}
23975var inst=this,
23976type=getType(red),
23977rgba=this._rgba=[];
23978if(green!==undefined){
23979red=[red,green,blue,alpha];
23980type="array";
23981}
23982if(type==="string"){
23983return this.parse(stringParse(red)||colors._default);
23984}
23985if(type==="array"){
23986each(spaces.rgba.props,function(_key,prop){
23987rgba[prop.idx]=clamp(red[prop.idx],prop);
23988});
23989return this;
23990}
23991if(type==="object"){
23992if(red instanceof color){
23993each(spaces,function(_spaceName,space){
23994if(red[space.cache]){
23995inst[space.cache]=red[space.cache].slice();
23996}
23997});
23998}else{
23999each(spaces,function(_spaceName,space){
24000var cache=space.cache;
24001each(space.props,function(key,prop){
24002if(!inst[cache]&&space.to){
24003if(key==="alpha"||red[key]==null){
24004return;
24005}
24006inst[cache]=space.to(inst._rgba);
24007}
24008inst[cache][prop.idx]=clamp(red[key],prop,true);
24009});
24010if(inst[cache]&&jQuery.inArray(null,inst[cache].slice(0,3))<0){
24011if(inst[cache][3]==null){
24012inst[cache][3]=1;
24013}
24014if(space.from){
24015inst._rgba=space.from(inst[cache]);
24016}
24017}
24018});
24019}
24020return this;
24021}
24022},
24023is:function(compare){
24024var is=color(compare),
24025same=true,
24026inst=this;
24027each(spaces,function(_,space){
24028var localCache,
24029isCache=is[space.cache];
24030if(isCache){
24031localCache=inst[space.cache]||space.to&&space.to(inst._rgba)||[];
24032each(space.props,function(_,prop){
24033if(isCache[prop.idx]!=null){
24034same=(isCache[prop.idx]===localCache[prop.idx]);
24035return same;
24036}
24037});
24038}
24039return same;
24040});
24041return same;
24042},
24043_space:function(){
24044var used=[],
24045inst=this;
24046each(spaces,function(spaceName,space){
24047if(inst[space.cache]){
24048used.push(spaceName);
24049}
24050});
24051return used.pop();
24052},
24053transition:function(other,distance){
24054var end=color(other),
24055spaceName=end._space(),
24056space=spaces[spaceName],
24057startColor=this.alpha()===0?color("transparent"):this,
24058start=startColor[space.cache]||space.to(startColor._rgba),
24059result=start.slice();
24060end=end[space.cache];
24061each(space.props,function(_key,prop){
24062var index=prop.idx,
24063startValue=start[index],
24064endValue=end[index],
24065type=propTypes[prop.type]||{};
24066if(endValue===null){
24067return;
24068}
24069if(startValue===null){
24070result[index]=endValue;
24071}else{
24072if(type.mod){
24073if(endValue-startValue>type.mod/2){
24074startValue+=type.mod;
24075}else if(startValue-endValue>type.mod/2){
24076startValue-=type.mod;
24077}
24078}
24079result[index]=clamp((endValue-startValue)*distance+startValue,prop);
24080}
24081});
24082return this[spaceName](result);
24083},
24084blend:function(opaque){
24085if(this._rgba[3]===1){
24086return this;
24087}
24088var rgb=this._rgba.slice(),
24089a=rgb.pop(),
24090blend=color(opaque)._rgba;
24091return color(jQuery.map(rgb,function(v,i){
24092return(1-a)*blend[i]+a*v;
24093}));
24094},
24095toRgbaString:function(){
24096var prefix="rgba(",
24097rgba=jQuery.map(this._rgba,function(v,i){
24098if(v!=null){
24099return v;
24100}
24101return i>2?1:0;
24102});
24103if(rgba[3]===1){
24104rgba.pop();
24105prefix="rgb(";
24106}
24107return prefix+rgba.join()+")";
24108},
24109toHslaString:function(){
24110var prefix="hsla(",
24111hsla=jQuery.map(this.hsla(),function(v,i){
24112if(v==null){
24113v=i>2?1:0;
24114}
24115if(i&&i<3){
24116v=Math.round(v*100)+"%";
24117}
24118return v;
24119});
24120if(hsla[3]===1){
24121hsla.pop();
24122prefix="hsl(";
24123}
24124return prefix+hsla.join()+")";
24125},
24126toHexString:function(includeAlpha){
24127var rgba=this._rgba.slice(),
24128alpha=rgba.pop();
24129if(includeAlpha){
24130rgba.push(~~(alpha*255));
24131}
24132return"#"+jQuery.map(rgba,function(v){
24133v=(v||0).toString(16);
24134return v.length===1?"0"+v:v;
24135}).join("");
24136},
24137toString:function(){
24138return this._rgba[3]===0?"transparent":this.toRgbaString();
24139}
24140});
24141color.fn.parse.prototype=color.fn;
24142function hue2rgb(p,q,h){
24143h=(h+1)%1;
24144if(h*6<1){
24145return p+(q-p)*h*6;
24146}
24147if(h*2<1){
24148return q;
24149}
24150if(h*3<2){
24151return p+(q-p)*((2/3)-h)*6;
24152}
24153return p;
24154}
24155spaces.hsla.to=function(rgba){
24156if(rgba[0]==null||rgba[1]==null||rgba[2]==null){
24157return[null,null,null,rgba[3]];
24158}
24159var r=rgba[0]/255,
24160g=rgba[1]/255,
24161b=rgba[2]/255,
24162a=rgba[3],
24163max=Math.max(r,g,b),
24164min=Math.min(r,g,b),
24165diff=max-min,
24166add=max+min,
24167l=add*0.5,
24168h,s;
24169if(min===max){
24170h=0;
24171}else if(r===max){
24172h=(60*(g-b)/diff)+360;
24173}else if(g===max){
24174h=(60*(b-r)/diff)+120;
24175}else{
24176h=(60*(r-g)/diff)+240;
24177}
24178if(diff===0){
24179s=0;
24180}else if(l<=0.5){
24181s=diff/add;
24182}else{
24183s=diff/(2-add);
24184}
24185return[Math.round(h)%360,s,l,a==null?1:a];
24186};
24187spaces.hsla.from=function(hsla){
24188if(hsla[0]==null||hsla[1]==null||hsla[2]==null){
24189return[null,null,null,hsla[3]];
24190}
24191var h=hsla[0]/360,
24192s=hsla[1],
24193l=hsla[2],
24194a=hsla[3],
24195q=l<=0.5?l*(1+s):l+s-l*s,
24196p=2*l-q;
24197return[
24198Math.round(hue2rgb(p,q,h+(1/3))*255),
24199Math.round(hue2rgb(p,q,h)*255),
24200Math.round(hue2rgb(p,q,h-(1/3))*255),
24201a
24202];
24203};
24204each(spaces,function(spaceName,space){
24205var props=space.props,
24206cache=space.cache,
24207to=space.to,
24208from=space.from;
24209color.fn[spaceName]=function(value){
24210if(to&&!this[cache]){
24211this[cache]=to(this._rgba);
24212}
24213if(value===undefined){
24214return this[cache].slice();
24215}
24216var ret,
24217type=getType(value),
24218arr=(type==="array"||type==="object")?value:arguments,
24219local=this[cache].slice();
24220each(props,function(key,prop){
24221var val=arr[type==="object"?key:prop.idx];
24222if(val==null){
24223val=local[prop.idx];
24224}
24225local[prop.idx]=clamp(val,prop);
24226});
24227if(from){
24228ret=color(from(local));
24229ret[cache]=local;
24230return ret;
24231}else{
24232return color(local);
24233}
24234};
24235each(props,function(key,prop){
24236if(color.fn[key]){
24237return;
24238}
24239color.fn[key]=function(value){
24240var local,cur,match,fn,
24241vtype=getType(value);
24242if(key==="alpha"){
24243fn=this._hsla?"hsla":"rgba";
24244}else{
24245fn=spaceName;
24246}
24247local=this[fn]();
24248cur=local[prop.idx];
24249if(vtype==="undefined"){
24250return cur;
24251}
24252if(vtype==="function"){
24253value=value.call(this,cur);
24254vtype=getType(value);
24255}
24256if(value==null&&prop.empty){
24257return this;
24258}
24259if(vtype==="string"){
24260match=rplusequals.exec(value);
24261if(match){
24262value=cur+parseFloat(match[2])*(match[1]==="+"?1:-1);
24263}
24264}
24265local[prop.idx]=value;
24266return this[fn](local);
24267};
24268});
24269});
24270color.hook=function(hook){
24271var hooks=hook.split(" ");
24272each(hooks,function(_i,hook){
24273jQuery.cssHooks[hook]={
24274set:function(elem,value){
24275var parsed,curElem,
24276backgroundColor="";
24277if(value!=="transparent"&&(getType(value)!=="string"||(parsed=stringParse(value)))){
24278value=color(parsed||value);
24279if(!support.rgba&&value._rgba[3]!==1){
24280curElem=hook==="backgroundColor"?elem.parentNode:elem;
24281while(
24282(backgroundColor===""||backgroundColor==="transparent")&&
24283curElem&&curElem.style
24284){
24285try{
24286backgroundColor=jQuery.css(curElem,"backgroundColor");
24287curElem=curElem.parentNode;
24288}catch(e){
24289}
24290}
24291value=value.blend(backgroundColor&&backgroundColor!=="transparent"?
24292backgroundColor:
24293"_default");
24294}
24295value=value.toRgbaString();
24296}
24297try{
24298elem.style[hook]=value;
24299}catch(e){
24300}
24301}
24302};
24303jQuery.fx.step[hook]=function(fx){
24304if(!fx.colorInit){
24305fx.start=color(fx.elem,hook);
24306fx.end=color(fx.end);
24307fx.colorInit=true;
24308}
24309jQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos));
24310};
24311});
24312};
24313color.hook(stepHooks);
24314jQuery.cssHooks.borderColor={
24315expand:function(value){
24316var expanded={};
24317each(["Top","Right","Bottom","Left"],function(_i,part){
24318expanded["border"+part+"Color"]=value;
24319});
24320return expanded;
24321}
24322};
24323colors=jQuery.Color.names={
24324aqua:"#00ffff",
24325black:"#000000",
24326blue:"#0000ff",
24327fuchsia:"#ff00ff",
24328gray:"#808080",
24329green:"#008000",
24330lime:"#00ff00",
24331maroon:"#800000",
24332navy:"#000080",
24333olive:"#808000",
24334purple:"#800080",
24335red:"#ff0000",
24336silver:"#c0c0c0",
24337teal:"#008080",
24338white:"#ffffff",
24339yellow:"#ffff00",
24340transparent:[null,null,null,0],
24341_default:"#ffffff"
24342};
24343var dataSpace="ui-effects-",
24344dataSpaceStyle="ui-effects-style",
24345dataSpaceAnimated="ui-effects-animated";
24346$.effects={
24347effect:{}
24348};
24349(function(){
24350var classAnimationActions=["add","remove","toggle"],
24351shorthandStyles={
24352border:1,
24353borderBottom:1,
24354borderColor:1,
24355borderLeft:1,
24356borderRight:1,
24357borderTop:1,
24358borderWidth:1,
24359margin:1,
24360padding:1
24361};
24362$.each(
24363["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],
24364function(_,prop){
24365$.fx.step[prop]=function(fx){
24366if(fx.end!=="none"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){
24367jQuery.style(fx.elem,prop,fx.end);
24368fx.setAttr=true;
24369}
24370};
24371}
24372);
24373function camelCase(string){
24374return string.replace(/-([\da-z])/gi,function(all,letter){
24375return letter.toUpperCase();
24376});
24377}
24378function getElementStyles(elem){
24379var key,len,
24380style=elem.ownerDocument.defaultView?
24381elem.ownerDocument.defaultView.getComputedStyle(elem,null):
24382elem.currentStyle,
24383styles={};
24384if(style&&style.length&&style[0]&&style[style[0]]){
24385len=style.length;
24386while(len--){
24387key=style[len];
24388if(typeof style[key]==="string"){
24389styles[camelCase(key)]=style[key];
24390}
24391}
24392}else{
24393for(key in style){
24394if(typeof style[key]==="string"){
24395styles[key]=style[key];
24396}
24397}
24398}
24399return styles;
24400}
24401function styleDifference(oldStyle,newStyle){
24402var diff={},
24403name,value;
24404for(name in newStyle){
24405value=newStyle[name];
24406if(oldStyle[name]!==value){
24407if(!shorthandStyles[name]){
24408if($.fx.step[name]||!isNaN(parseFloat(value))){
24409diff[name]=value;
24410}
24411}
24412}
24413}
24414return diff;
24415}
24416if(!$.fn.addBack){
24417$.fn.addBack=function(selector){
24418return this.add(selector==null?
24419this.prevObject:this.prevObject.filter(selector)
24420);
24421};
24422}
24423$.effects.animateClass=function(value,duration,easing,callback){
24424var o=$.speed(duration,easing,callback);
24425return this.queue(function(){
24426var animated=$(this),
24427baseClass=animated.attr("class")||"",
24428applyClassChange,
24429allAnimations=o.children?animated.find("*").addBack():animated;
24430allAnimations=allAnimations.map(function(){
24431var el=$(this);
24432return{
24433el:el,
24434start:getElementStyles(this)
24435};
24436});
24437applyClassChange=function(){
24438$.each(classAnimationActions,function(i,action){
24439if(value[action]){
24440animated[action+"Class"](value[action]);
24441}
24442});
24443};
24444applyClassChange();
24445allAnimations=allAnimations.map(function(){
24446this.end=getElementStyles(this.el[0]);
24447this.diff=styleDifference(this.start,this.end);
24448return this;
24449});
24450animated.attr("class",baseClass);
24451allAnimations=allAnimations.map(function(){
24452var styleInfo=this,
24453dfd=$.Deferred(),
24454opts=$.extend({},o,{
24455queue:false,
24456complete:function(){
24457dfd.resolve(styleInfo);
24458}
24459});
24460this.el.animate(this.diff,opts);
24461return dfd.promise();
24462});
24463$.when.apply($,allAnimations.get()).done(function(){
24464applyClassChange();
24465$.each(arguments,function(){
24466var el=this.el;
24467$.each(this.diff,function(key){
24468el.css(key,"");
24469});
24470});
24471o.complete.call(animated[0]);
24472});
24473});
24474};
24475$.fn.extend({
24476addClass:(function(orig){
24477return function(classNames,speed,easing,callback){
24478return speed?
24479$.effects.animateClass.call(this,
24480{add:classNames},speed,easing,callback):
24481orig.apply(this,arguments);
24482};
24483})($.fn.addClass),
24484removeClass:(function(orig){
24485return function(classNames,speed,easing,callback){
24486return arguments.length>1?
24487$.effects.animateClass.call(this,
24488{remove:classNames},speed,easing,callback):
24489orig.apply(this,arguments);
24490};
24491})($.fn.removeClass),
24492toggleClass:(function(orig){
24493return function(classNames,force,speed,easing,callback){
24494if(typeof force==="boolean"||force===undefined){
24495if(!speed){
24496return orig.apply(this,arguments);
24497}else{
24498return $.effects.animateClass.call(this,
24499(force?{add:classNames}:{remove:classNames}),
24500speed,easing,callback);
24501}
24502}else{
24503return $.effects.animateClass.call(this,
24504{toggle:classNames},force,speed,easing);
24505}
24506};
24507})($.fn.toggleClass),
24508switchClass:function(remove,add,speed,easing,callback){
24509return $.effects.animateClass.call(this,{
24510add:add,
24511remove:remove
24512},speed,easing,callback);
24513}
24514});
24515})();
24516(function(){
24517if($.expr&&$.expr.pseudos&&$.expr.pseudos.animated){
24518$.expr.pseudos.animated=(function(orig){
24519return function(elem){
24520return!!$(elem).data(dataSpaceAnimated)||orig(elem);
24521};
24522})($.expr.pseudos.animated);
24523}
24524if($.uiBackCompat!==false){
24525$.extend($.effects,{
24526save:function(element,set){
24527var i=0,length=set.length;
24528for(;i<length;i++){
24529if(set[i]!==null){
24530element.data(dataSpace+set[i],element[0].style[set[i]]);
24531}
24532}
24533},
24534restore:function(element,set){
24535var val,i=0,length=set.length;
24536for(;i<length;i++){
24537if(set[i]!==null){
24538val=element.data(dataSpace+set[i]);
24539element.css(set[i],val);
24540}
24541}
24542},
24543setMode:function(el,mode){
24544if(mode==="toggle"){
24545mode=el.is(":hidden")?"show":"hide";
24546}
24547return mode;
24548},
24549createWrapper:function(element){
24550if(element.parent().is(".ui-effects-wrapper")){
24551return element.parent();
24552}
24553var props={
24554width:element.outerWidth(true),
24555height:element.outerHeight(true),
24556"float":element.css("float")
24557},
24558wrapper=$("<div></div>")
24559.addClass("ui-effects-wrapper")
24560.css({
24561fontSize:"100%",
24562background:"transparent",
24563border:"none",
24564margin:0,
24565padding:0
24566}),
24567size={
24568width:element.width(),
24569height:element.height()
24570},
24571active=document.activeElement;
24572try{
24573active.id;
24574}catch(e){
24575active=document.body;
24576}
24577element.wrap(wrapper);
24578if(element[0]===active||$.contains(element[0],active)){
24579$(active).trigger("focus");
24580}
24581wrapper=element.parent();
24582if(element.css("position")==="static"){
24583wrapper.css({position:"relative"});
24584element.css({position:"relative"});
24585}else{
24586$.extend(props,{
24587position:element.css("position"),
24588zIndex:element.css("z-index")
24589});
24590$.each(["top","left","bottom","right"],function(i,pos){
24591props[pos]=element.css(pos);
24592if(isNaN(parseInt(props[pos],10))){
24593props[pos]="auto";
24594}
24595});
24596element.css({
24597position:"relative",
24598top:0,
24599left:0,
24600right:"auto",
24601bottom:"auto"
24602});
24603}
24604element.css(size);
24605return wrapper.css(props).show();
24606},
24607removeWrapper:function(element){
24608var active=document.activeElement;
24609if(element.parent().is(".ui-effects-wrapper")){
24610element.parent().replaceWith(element);
24611if(element[0]===active||$.contains(element[0],active)){
24612$(active).trigger("focus");
24613}
24614}
24615return element;
24616}
24617});
24618}
24619$.extend($.effects,{
24620version:"1.13.2",
24621define:function(name,mode,effect){
24622if(!effect){
24623effect=mode;
24624mode="effect";
24625}
24626$.effects.effect[name]=effect;
24627$.effects.effect[name].mode=mode;
24628return effect;
24629},
24630scaledDimensions:function(element,percent,direction){
24631if(percent===0){
24632return{
24633height:0,
24634width:0,
24635outerHeight:0,
24636outerWidth:0
24637};
24638}
24639var x=direction!=="horizontal"?((percent||100)/100):1,
24640y=direction!=="vertical"?((percent||100)/100):1;
24641return{
24642height:element.height()*y,
24643width:element.width()*x,
24644outerHeight:element.outerHeight()*y,
24645outerWidth:element.outerWidth()*x
24646};
24647},
24648clipToBox:function(animation){
24649return{
24650width:animation.clip.right-animation.clip.left,
24651height:animation.clip.bottom-animation.clip.top,
24652left:animation.clip.left,
24653top:animation.clip.top
24654};
24655},
24656unshift:function(element,queueLength,count){
24657var queue=element.queue();
24658if(queueLength>1){
24659queue.splice.apply(queue,
24660[1,0].concat(queue.splice(queueLength,count)));
24661}
24662element.dequeue();
24663},
24664saveStyle:function(element){
24665element.data(dataSpaceStyle,element[0].style.cssText);
24666},
24667restoreStyle:function(element){
24668element[0].style.cssText=element.data(dataSpaceStyle)||"";
24669element.removeData(dataSpaceStyle);
24670},
24671mode:function(element,mode){
24672var hidden=element.is(":hidden");
24673if(mode==="toggle"){
24674mode=hidden?"show":"hide";
24675}
24676if(hidden?mode==="hide":mode==="show"){
24677mode="none";
24678}
24679return mode;
24680},
24681getBaseline:function(origin,original){
24682var y,x;
24683switch(origin[0]){
24684case"top":
24685y=0;
24686break;
24687case"middle":
24688y=0.5;
24689break;
24690case"bottom":
24691y=1;
24692break;
24693default:
24694y=origin[0]/original.height;
24695}
24696switch(origin[1]){
24697case"left":
24698x=0;
24699break;
24700case"center":
24701x=0.5;
24702break;
24703case"right":
24704x=1;
24705break;
24706default:
24707x=origin[1]/original.width;
24708}
24709return{
24710x:x,
24711y:y
24712};
24713},
24714createPlaceholder:function(element){
24715var placeholder,
24716cssPosition=element.css("position"),
24717position=element.position();
24718element.css({
24719marginTop:element.css("marginTop"),
24720marginBottom:element.css("marginBottom"),
24721marginLeft:element.css("marginLeft"),
24722marginRight:element.css("marginRight")
24723})
24724.outerWidth(element.outerWidth())
24725.outerHeight(element.outerHeight());
24726if(/^(static|relative)/.test(cssPosition)){
24727cssPosition="absolute";
24728placeholder=$("<"+element[0].nodeName+">").insertAfter(element).css({
24729display:/^(inline|ruby)/.test(element.css("display"))?
24730"inline-block":
24731"block",
24732visibility:"hidden",
24733marginTop:element.css("marginTop"),
24734marginBottom:element.css("marginBottom"),
24735marginLeft:element.css("marginLeft"),
24736marginRight:element.css("marginRight"),
24737"float":element.css("float")
24738})
24739.outerWidth(element.outerWidth())
24740.outerHeight(element.outerHeight())
24741.addClass("ui-effects-placeholder");
24742element.data(dataSpace+"placeholder",placeholder);
24743}
24744element.css({
24745position:cssPosition,
24746left:position.left,
24747top:position.top
24748});
24749return placeholder;
24750},
24751removePlaceholder:function(element){
24752var dataKey=dataSpace+"placeholder",
24753placeholder=element.data(dataKey);
24754if(placeholder){
24755placeholder.remove();
24756element.removeData(dataKey);
24757}
24758},
24759cleanUp:function(element){
24760$.effects.restoreStyle(element);
24761$.effects.removePlaceholder(element);
24762},
24763setTransition:function(element,list,factor,value){
24764value=value||{};
24765$.each(list,function(i,x){
24766var unit=element.cssUnit(x);
24767if(unit[0]>0){
24768value[x]=unit[0]*factor+unit[1];
24769}
24770});
24771return value;
24772}
24773});
24774function _normalizeArguments(effect,options,speed,callback){
24775if($.isPlainObject(effect)){
24776options=effect;
24777effect=effect.effect;
24778}
24779effect={effect:effect};
24780if(options==null){
24781options={};
24782}
24783if(typeof options==="function"){
24784callback=options;
24785speed=null;
24786options={};
24787}
24788if(typeof options==="number"||$.fx.speeds[options]){
24789callback=speed;
24790speed=options;
24791options={};
24792}
24793if(typeof speed==="function"){
24794callback=speed;
24795speed=null;
24796}
24797if(options){
24798$.extend(effect,options);
24799}
24800speed=speed||options.duration;
24801effect.duration=$.fx.off?0:
24802typeof speed==="number"?speed:
24803speed in $.fx.speeds?$.fx.speeds[speed]:
24804$.fx.speeds._default;
24805effect.complete=callback||options.complete;
24806return effect;
24807}
24808function standardAnimationOption(option){
24809if(!option||typeof option==="number"||$.fx.speeds[option]){
24810return true;
24811}
24812if(typeof option==="string"&&!$.effects.effect[option]){
24813return true;
24814}
24815if(typeof option==="function"){
24816return true;
24817}
24818if(typeof option==="object"&&!option.effect){
24819return true;
24820}
24821return false;
24822}
24823$.fn.extend({
24824effect:function(){
24825var args=_normalizeArguments.apply(this,arguments),
24826effectMethod=$.effects.effect[args.effect],
24827defaultMode=effectMethod.mode,
24828queue=args.queue,
24829queueName=queue||"fx",
24830complete=args.complete,
24831mode=args.mode,
24832modes=[],
24833prefilter=function(next){
24834var el=$(this),
24835normalizedMode=$.effects.mode(el,mode)||defaultMode;
24836el.data(dataSpaceAnimated,true);
24837modes.push(normalizedMode);
24838if(defaultMode&&(normalizedMode==="show"||
24839(normalizedMode===defaultMode&&normalizedMode==="hide"))){
24840el.show();
24841}
24842if(!defaultMode||normalizedMode!=="none"){
24843$.effects.saveStyle(el);
24844}
24845if(typeof next==="function"){
24846next();
24847}
24848};
24849if($.fx.off||!effectMethod){
24850if(mode){
24851return this[mode](args.duration,complete);
24852}else{
24853return this.each(function(){
24854if(complete){
24855complete.call(this);
24856}
24857});
24858}
24859}
24860function run(next){
24861var elem=$(this);
24862function cleanup(){
24863elem.removeData(dataSpaceAnimated);
24864$.effects.cleanUp(elem);
24865if(args.mode==="hide"){
24866elem.hide();
24867}
24868done();
24869}
24870function done(){
24871if(typeof complete==="function"){
24872complete.call(elem[0]);
24873}
24874if(typeof next==="function"){
24875next();
24876}
24877}
24878args.mode=modes.shift();
24879if($.uiBackCompat!==false&&!defaultMode){
24880if(elem.is(":hidden")?mode==="hide":mode==="show"){
24881elem[mode]();
24882done();
24883}else{
24884effectMethod.call(elem[0],args,done);
24885}
24886}else{
24887if(args.mode==="none"){
24888elem[mode]();
24889done();
24890}else{
24891effectMethod.call(elem[0],args,cleanup);
24892}
24893}
24894}
24895return queue===false?
24896this.each(prefilter).each(run):
24897this.queue(queueName,prefilter).queue(queueName,run);
24898},
24899show:(function(orig){
24900return function(option){
24901if(standardAnimationOption(option)){
24902return orig.apply(this,arguments);
24903}else{
24904var args=_normalizeArguments.apply(this,arguments);
24905args.mode="show";
24906return this.effect.call(this,args);
24907}
24908};
24909})($.fn.show),
24910hide:(function(orig){
24911return function(option){
24912if(standardAnimationOption(option)){
24913return orig.apply(this,arguments);
24914}else{
24915var args=_normalizeArguments.apply(this,arguments);
24916args.mode="hide";
24917return this.effect.call(this,args);
24918}
24919};
24920})($.fn.hide),
24921toggle:(function(orig){
24922return function(option){
24923if(standardAnimationOption(option)||typeof option==="boolean"){
24924return orig.apply(this,arguments);
24925}else{
24926var args=_normalizeArguments.apply(this,arguments);
24927args.mode="toggle";
24928return this.effect.call(this,args);
24929}
24930};
24931})($.fn.toggle),
24932cssUnit:function(key){
24933var style=this.css(key),
24934val=[];
24935$.each(["em","px","%","pt"],function(i,unit){
24936if(style.indexOf(unit)>0){
24937val=[parseFloat(style),unit];
24938}
24939});
24940return val;
24941},
24942cssClip:function(clipObj){
24943if(clipObj){
24944return this.css("clip","rect("+clipObj.top+"px "+clipObj.right+"px "+
24945clipObj.bottom+"px "+clipObj.left+"px)");
24946}
24947return parseClip(this.css("clip"),this);
24948},
24949transfer:function(options,done){
24950var element=$(this),
24951target=$(options.to),
24952targetFixed=target.css("position")==="fixed",
24953body=$("body"),
24954fixTop=targetFixed?body.scrollTop():0,
24955fixLeft=targetFixed?body.scrollLeft():0,
24956endPosition=target.offset(),
24957animation={
24958top:endPosition.top-fixTop,
24959left:endPosition.left-fixLeft,
24960height:target.innerHeight(),
24961width:target.innerWidth()
24962},
24963startPosition=element.offset(),
24964transfer=$("<div class='ui-effects-transfer'></div>");
24965transfer
24966.appendTo("body")
24967.addClass(options.className)
24968.css({
24969top:startPosition.top-fixTop,
24970left:startPosition.left-fixLeft,
24971height:element.innerHeight(),
24972width:element.innerWidth(),
24973position:targetFixed?"fixed":"absolute"
24974})
24975.animate(animation,options.duration,options.easing,function(){
24976transfer.remove();
24977if(typeof done==="function"){
24978done();
24979}
24980});
24981}
24982});
24983function parseClip(str,element){
24984var outerWidth=element.outerWidth(),
24985outerHeight=element.outerHeight(),
24986clipRegex=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,
24987values=clipRegex.exec(str)||["",0,outerWidth,outerHeight,0];
24988return{
24989top:parseFloat(values[1])||0,
24990right:values[2]==="auto"?outerWidth:parseFloat(values[2]),
24991bottom:values[3]==="auto"?outerHeight:parseFloat(values[3]),
24992left:parseFloat(values[4])||0
24993};
24994}
24995$.fx.step.clip=function(fx){
24996if(!fx.clipInit){
24997fx.start=$(fx.elem).cssClip();
24998if(typeof fx.end==="string"){
24999fx.end=parseClip(fx.end,fx.elem);
25000}
25001fx.clipInit=true;
25002}
25003$(fx.elem).cssClip({
25004top:fx.pos*(fx.end.top-fx.start.top)+fx.start.top,
25005right:fx.pos*(fx.end.right-fx.start.right)+fx.start.right,
25006bottom:fx.pos*(fx.end.bottom-fx.start.bottom)+fx.start.bottom,
25007left:fx.pos*(fx.end.left-fx.start.left)+fx.start.left
25008});
25009};
25010})();
25011(function(){
25012var baseEasings={};
25013$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,name){
25014baseEasings[name]=function(p){
25015return Math.pow(p,i+2);
25016};
25017});
25018$.extend(baseEasings,{
25019Sine:function(p){
25020return 1-Math.cos(p*Math.PI/2);
25021},
25022Circ:function(p){
25023return 1-Math.sqrt(1-p*p);
25024},
25025Elastic:function(p){
25026return p===0||p===1?p:
25027-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI/15);
25028},
25029Back:function(p){
25030return p*p*(3*p-2);
25031},
25032Bounce:function(p){
25033var pow2,
25034bounce=4;
25035while(p<((pow2=Math.pow(2,--bounce))-1)/11){}
25036return 1/Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/22-p,2);
25037}
25038});
25039$.each(baseEasings,function(name,easeIn){
25040$.easing["easeIn"+name]=easeIn;
25041$.easing["easeOut"+name]=function(p){
25042return 1-easeIn(1-p);
25043};
25044$.easing["easeInOut"+name]=function(p){
25045return p<0.5?
25046easeIn(p*2)/2:
250471-easeIn(p*-2+2)/2;
25048};
25049});
25050})();
25051var effect=$.effects;
25052var effectsEffectBlind=$.effects.define("blind","hide",function(options,done){
25053var map={
25054up:["bottom","top"],
25055vertical:["bottom","top"],
25056down:["top","bottom"],
25057left:["right","left"],
25058horizontal:["right","left"],
25059right:["left","right"]
25060},
25061element=$(this),
25062direction=options.direction||"up",
25063start=element.cssClip(),
25064animate={clip:$.extend({},start)},
25065placeholder=$.effects.createPlaceholder(element);
25066animate.clip[map[direction][0]]=animate.clip[map[direction][1]];
25067if(options.mode==="show"){
25068element.cssClip(animate.clip);
25069if(placeholder){
25070placeholder.css($.effects.clipToBox(animate));
25071}
25072animate.clip=start;
25073}
25074if(placeholder){
25075placeholder.animate($.effects.clipToBox(animate),options.duration,options.easing);
25076}
25077element.animate(animate,{
25078queue:false,
25079duration:options.duration,
25080easing:options.easing,
25081complete:done
25082});
25083});
25084var effectsEffectBounce=$.effects.define("bounce",function(options,done){
25085var upAnim,downAnim,refValue,
25086element=$(this),
25087mode=options.mode,
25088hide=mode==="hide",
25089show=mode==="show",
25090direction=options.direction||"up",
25091distance=options.distance,
25092times=options.times||5,
25093anims=times*2+(show||hide?1:0),
25094speed=options.duration/anims,
25095easing=options.easing,
25096ref=(direction==="up"||direction==="down")?"top":"left",
25097motion=(direction==="up"||direction==="left"),
25098i=0,
25099queuelen=element.queue().length;
25100$.effects.createPlaceholder(element);
25101refValue=element.css(ref);
25102if(!distance){
25103distance=element[ref==="top"?"outerHeight":"outerWidth"]()/3;
25104}
25105if(show){
25106downAnim={opacity:1};
25107downAnim[ref]=refValue;
25108element
25109.css("opacity",0)
25110.css(ref,motion?-distance*2:distance*2)
25111.animate(downAnim,speed,easing);
25112}
25113if(hide){
25114distance=distance/Math.pow(2,times-1);
25115}
25116downAnim={};
25117downAnim[ref]=refValue;
25118for(;i<times;i++){
25119upAnim={};
25120upAnim[ref]=(motion?"-=":"+=")+distance;
25121element
25122.animate(upAnim,speed,easing)
25123.animate(downAnim,speed,easing);
25124distance=hide?distance*2:distance/2;
25125}
25126if(hide){
25127upAnim={opacity:0}
vendor: 6,374 bytes, lines 25127-25376
25127;
25128upAnim[ref]=(motion?"-=":"+=")+distance;
25129element.animate(upAnim,speed,easing);
25130}
25131element.queue(done);
25132$.effects.unshift(element,queuelen,anims+1);
25133});
25134var effectsEffectClip=$.effects.define("clip","hide",function(options,done){
25135var start,
25136animate={},
25137element=$(this),
25138direction=options.direction||"vertical",
25139both=direction==="both",
25140horizontal=both||direction==="horizontal",
25141vertical=both||direction==="vertical";
25142start=element.cssClip();
25143animate.clip={
25144top:vertical?(start.bottom-start.top)/2:start.top,
25145right:horizontal?(start.right-start.left)/2:start.right,
25146bottom:vertical?(start.bottom-start.top)/2:start.bottom,
25147left:horizontal?(start.right-start.left)/2:start.left
25148};
25149$.effects.createPlaceholder(element);
25150if(options.mode==="show"){
25151element.cssClip(animate.clip);
25152animate.clip=start;
25153}
25154element.animate(animate,{
25155queue:false,
25156duration:options.duration,
25157easing:options.easing,
25158complete:done
25159});
25160});
25161var effectsEffectDrop=$.effects.define("drop","hide",function(options,done){
25162var distance,
25163element=$(this),
25164mode=options.mode,
25165show=mode==="show",
25166direction=options.direction||"left",
25167ref=(direction==="up"||direction==="down")?"top":"left",
25168motion=(direction==="up"||direction==="left")?"-=":"+=",
25169oppositeMotion=(motion==="+=")?"-=":"+=",
25170animation={
25171opacity:0
25172};
25173$.effects.createPlaceholder(element);
25174distance=options.distance||
25175element[ref==="top"?"outerHeight":"outerWidth"](true)/2;
25176animation[ref]=motion+distance;
25177if(show){
25178element.css(animation);
25179animation[ref]=oppositeMotion+distance;
25180animation.opacity=1;
25181}
25182element.animate(animation,{
25183queue:false,
25184duration:options.duration,
25185easing:options.easing,
25186complete:done
25187});
25188});
25189var effectsEffectExplode=$.effects.define("explode","hide",function(options,done){
25190var i,j,left,top,mx,my,
25191rows=options.pieces?Math.round(Math.sqrt(options.pieces)):3,
25192cells=rows,
25193element=$(this),
25194mode=options.mode,
25195show=mode==="show",
25196offset=element.show().css("visibility","hidden").offset(),
25197width=Math.ceil(element.outerWidth()/cells),
25198height=Math.ceil(element.outerHeight()/rows),
25199pieces=[];
25200function childComplete(){
25201pieces.push(this);
25202if(pieces.length===rows*cells){
25203animComplete();
25204}
25205}
25206for(i=0;i<rows;i++){
25207top=offset.top+i*height;
25208my=i-(rows-1)/2;
25209for(j=0;j<cells;j++){
25210left=offset.left+j*width;
25211mx=j-(cells-1)/2;
25212element
25213.clone()
25214.appendTo("body")
25215.wrap("<div></div>")
25216.css({
25217position:"absolute",
25218visibility:"visible",
25219left:-j*width,
25220top:-i*height
25221})
25222.parent()
25223.addClass("ui-effects-explode")
25224.css({
25225position:"absolute",
25226overflow:"hidden",
25227width:width,
25228height:height,
25229left:left+(show?mx*width:0),
25230top:top+(show?my*height:0),
25231opacity:show?0:1
25232})
25233.animate({
25234left:left+(show?0:mx*width),
25235top:top+(show?0:my*height),
25236opacity:show?1:0
25237},options.duration||500,options.easing,childComplete);
25238}
25239}
25240function animComplete(){
25241element.css({
25242visibility:"visible"
25243});
25244$(pieces).remove();
25245done();
25246}
25247});
25248var effectsEffectFade=$.effects.define("fade","toggle",function(options,done){
25249var show=options.mode==="show";
25250$(this)
25251.css("opacity",show?0:1)
25252.animate({
25253opacity:show?1:0
25254},{
25255queue:false,
25256duration:options.duration,
25257easing:options.easing,
25258complete:done
25259});
25260});
25261var effectsEffectFold=$.effects.define("fold","hide",function(options,done){
25262var element=$(this),
25263mode=options.mode,
25264show=mode==="show",
25265hide=mode==="hide",
25266size=options.size||15,
25267percent=/([0-9]+)%/.exec(size),
25268horizFirst=!!options.horizFirst,
25269ref=horizFirst?["right","bottom"]:["bottom","right"],
25270duration=options.duration/2,
25271placeholder=$.effects.createPlaceholder(element),
25272start=element.cssClip(),
25273animation1={clip:$.extend({},start)},
25274animation2={clip:$.extend({},start)},
25275distance=[start[ref[0]],start[ref[1]]],
25276queuelen=element.queue().length;
25277if(percent){
25278size=parseInt(percent[1],10)/100*distance[hide?0:1];
25279}
25280animation1.clip[ref[0]]=size;
25281animation2.clip[ref[0]]=size;
25282animation2.clip[ref[1]]=0;
25283if(show){
25284element.cssClip(animation2.clip);
25285if(placeholder){
25286placeholder.css($.effects.clipToBox(animation2));
25287}
25288animation2.clip=start;
25289}
25290element
25291.queue(function(next){
25292if(placeholder){
25293placeholder
25294.animate($.effects.clipToBox(animation1),duration,options.easing)
25295.animate($.effects.clipToBox(animation2),duration,options.easing);
25296}
25297next();
25298})
25299.animate(animation1,duration,options.easing)
25300.animate(animation2,duration,options.easing)
25301.queue(done);
25302$.effects.unshift(element,queuelen,4);
25303});
25304var effectsEffectHighlight=$.effects.define("highlight","show",function(options,done){
25305var element=$(this),
25306animation={
25307backgroundColor:element.css("backgroundColor")
25308};
25309if(options.mode==="hide"){
25310animation.opacity=0;
25311}
25312$.effects.saveStyle(element);
25313element
25314.css({
25315backgroundImage:"none",
25316backgroundColor:options.color||"#ffff99"
25317})
25318.animate(animation,{
25319queue:false,
25320duration:options.duration,
25321easing:options.easing,
25322complete:done
25323});
25324});
25325var effectsEffectSize=$.effects.define("size",function(options,done){
25326var baseline,factor,temp,
25327element=$(this),
25328cProps=["fontSize"],
25329vProps=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],
25330hProps=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
25331mode=options.mode,
25332restore=mode!=="effect",
25333scale=options.scale||"both",
25334origin=options.origin||["middle","center"],
25335position=element.css("position"),
25336pos=element.position(),
25337original=$.effects.scaledDimensions(element),
25338from=options.from||original,
25339to=options.to||$.effects.scaledDimensions(element,0);
25340$.effects.createPlaceholder(element);
25341if(mode==="show"){
25342temp=from;
25343from=to;
25344to=temp;
25345}
25346factor={
25347from:{
25348y:from.height/original.height,
25349x:from.width/original.width
25350},
25351to:{
25352y:to.height/original.height,
25353x:to.width/original.width
25354}
25355};
25356if(scale==="box"||scale==="both"){
25357if(factor.from.y!==factor.to.y){
25358from=$.effects.setTransition(element,vProps,factor.from.y,from);
25359to=$.effects.setTransition(element,vProps,factor.to.y,to);
25360}
25361if(factor.from.x!==factor.to.x){
25362from=$.effects.setTransition(element,hProps,factor.from.x,from);
25363to=$.effects.setTransition(element,hProps,factor.to.x,to);
25364}
25365}
25366if(scale==="content"||scale==="both"){
25367if(factor.from.y!==factor.to.y){
25368from=$.effects.setTransition(element,cProps,factor.from.y,from);
25369to=$.effects.setTransition(element,cProps,factor.to.y,to);
25370}
25371}
25372if(origin){
25373baseline=$.effects.getBaseline(origin,original);
25374from.top=(original.outerHeight-from.outerHeight)*baseline.y+pos.top;
25375from.left=(original.outerWidth-from.outerWidth)*baseline.x+pos.left;
25376to.top=(original.outerHeight-to.outerHeight)*baseline.y+pos.top;
vendor: 26,971 bytes, lines 25377-26476
25377to.left=(original.outerWidth-to.outerWidth)*baseline.x+pos.left;
25378}
25379delete from.outerHeight;
25380delete from.outerWidth;
25381element.css(from);
25382if(scale==="content"||scale==="both"){
25383vProps=vProps.concat(["marginTop","marginBottom"]).concat(cProps);
25384hProps=hProps.concat(["marginLeft","marginRight"]);
25385element.find("*[width]").each(function(){
25386var child=$(this),
25387childOriginal=$.effects.scaledDimensions(child),
25388childFrom={
25389height:childOriginal.height*factor.from.y,
25390width:childOriginal.width*factor.from.x,
25391outerHeight:childOriginal.outerHeight*factor.from.y,
25392outerWidth:childOriginal.outerWidth*factor.from.x
25393},
25394childTo={
25395height:childOriginal.height*factor.to.y,
25396width:childOriginal.width*factor.to.x,
25397outerHeight:childOriginal.height*factor.to.y,
25398outerWidth:childOriginal.width*factor.to.x
25399};
25400if(factor.from.y!==factor.to.y){
25401childFrom=$.effects.setTransition(child,vProps,factor.from.y,childFrom);
25402childTo=$.effects.setTransition(child,vProps,factor.to.y,childTo);
25403}
25404if(factor.from.x!==factor.to.x){
25405childFrom=$.effects.setTransition(child,hProps,factor.from.x,childFrom);
25406childTo=$.effects.setTransition(child,hProps,factor.to.x,childTo);
25407}
25408if(restore){
25409$.effects.saveStyle(child);
25410}
25411child.css(childFrom);
25412child.animate(childTo,options.duration,options.easing,function(){
25413if(restore){
25414$.effects.restoreStyle(child);
25415}
25416});
25417});
25418}
25419element.animate(to,{
25420queue:false,
25421duration:options.duration,
25422easing:options.easing,
25423complete:function(){
25424var offset=element.offset();
25425if(to.opacity===0){
25426element.css("opacity",from.opacity);
25427}
25428if(!restore){
25429element
25430.css("position",position==="static"?"relative":position)
25431.offset(offset);
25432$.effects.saveStyle(element);
25433}
25434done();
25435}
25436});
25437});
25438var effectsEffectScale=$.effects.define("scale",function(options,done){
25439var el=$(this),
25440mode=options.mode,
25441percent=parseInt(options.percent,10)||
25442(parseInt(options.percent,10)===0?0:(mode!=="effect"?0:100)),
25443newOptions=$.extend(true,{
25444from:$.effects.scaledDimensions(el),
25445to:$.effects.scaledDimensions(el,percent,options.direction||"both"),
25446origin:options.origin||["middle","center"]
25447},options);
25448if(options.fade){
25449newOptions.from.opacity=1;
25450newOptions.to.opacity=0;
25451}
25452$.effects.effect.size.call(this,newOptions,done);
25453});
25454var effectsEffectPuff=$.effects.define("puff","hide",function(options,done){
25455var newOptions=$.extend(true,{},options,{
25456fade:true,
25457percent:parseInt(options.percent,10)||150
25458});
25459$.effects.effect.scale.call(this,newOptions,done);
25460});
25461var effectsEffectPulsate=$.effects.define("pulsate","show",function(options,done){
25462var element=$(this),
25463mode=options.mode,
25464show=mode==="show",
25465hide=mode==="hide",
25466showhide=show||hide,
25467anims=((options.times||5)*2)+(showhide?1:0),
25468duration=options.duration/anims,
25469animateTo=0,
25470i=1,
25471queuelen=element.queue().length;
25472if(show||!element.is(":visible")){
25473element.css("opacity",0).show();
25474animateTo=1;
25475}
25476for(;i<anims;i++){
25477element.animate({opacity:animateTo},duration,options.easing);
25478animateTo=1-animateTo;
25479}
25480element.animate({opacity:animateTo},duration,options.easing);
25481element.queue(done);
25482$.effects.unshift(element,queuelen,anims+1);
25483});
25484var effectsEffectShake=$.effects.define("shake",function(options,done){
25485var i=1,
25486element=$(this),
25487direction=options.direction||"left",
25488distance=options.distance||20,
25489times=options.times||3,
25490anims=times*2+1,
25491speed=Math.round(options.duration/anims),
25492ref=(direction==="up"||direction==="down")?"top":"left",
25493positiveMotion=(direction==="up"||direction==="left"),
25494animation={},
25495animation1={},
25496animation2={},
25497queuelen=element.queue().length;
25498$.effects.createPlaceholder(element);
25499animation[ref]=(positiveMotion?"-=":"+=")+distance;
25500animation1[ref]=(positiveMotion?"+=":"-=")+distance*2;
25501animation2[ref]=(positiveMotion?"-=":"+=")+distance*2;
25502element.animate(animation,speed,options.easing);
25503for(;i<times;i++){
25504element
25505.animate(animation1,speed,options.easing)
25506.animate(animation2,speed,options.easing);
25507}
25508element
25509.animate(animation1,speed,options.easing)
25510.animate(animation,speed/2,options.easing)
25511.queue(done);
25512$.effects.unshift(element,queuelen,anims+1);
25513});
25514var effectsEffectSlide=$.effects.define("slide","show",function(options,done){
25515var startClip,startRef,
25516element=$(this),
25517map={
25518up:["bottom","top"],
25519down:["top","bottom"],
25520left:["right","left"],
25521right:["left","right"]
25522},
25523mode=options.mode,
25524direction=options.direction||"left",
25525ref=(direction==="up"||direction==="down")?"top":"left",
25526positiveMotion=(direction==="up"||direction==="left"),
25527distance=options.distance||
25528element[ref==="top"?"outerHeight":"outerWidth"](true),
25529animation={};
25530$.effects.createPlaceholder(element);
25531startClip=element.cssClip();
25532startRef=element.position()[ref];
25533animation[ref]=(positiveMotion?-1:1)*distance+startRef;
25534animation.clip=element.cssClip();
25535animation.clip[map[direction][1]]=animation.clip[map[direction][0]];
25536if(mode==="show"){
25537element.cssClip(animation.clip);
25538element.css(ref,animation[ref]);
25539animation.clip=startClip;
25540animation[ref]=startRef;
25541}
25542element.animate(animation,{
25543queue:false,
25544duration:options.duration,
25545easing:options.easing,
25546complete:done
25547});
25548});
25549var effect;
25550if($.uiBackCompat!==false){
25551effect=$.effects.define("transfer",function(options,done){
25552$(this).transfer(options,done);
25553});
25554}
25555var effectsEffectTransfer=effect;
25556$.ui.focusable=function(element,hasTabindex){
25557var map,mapName,img,focusableIfVisible,fieldset,
25558nodeName=element.nodeName.toLowerCase();
25559if("area"===nodeName){
25560map=element.parentNode;
25561mapName=map.name;
25562if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map"){
25563return false;
25564}
25565img=$("img[usemap='#"+mapName+"']");
25566return img.length>0&&img.is(":visible");
25567}
25568if(/^(input|select|textarea|button|object)$/.test(nodeName)){
25569focusableIfVisible=!element.disabled;
25570if(focusableIfVisible){
25571fieldset=$(element).closest("fieldset")[0];
25572if(fieldset){
25573focusableIfVisible=!fieldset.disabled;
25574}
25575}
25576}else if("a"===nodeName){
25577focusableIfVisible=element.href||hasTabindex;
25578}else{
25579focusableIfVisible=hasTabindex;
25580}
25581return focusableIfVisible&&$(element).is(":visible")&&visible($(element));
25582};
25583function visible(element){
25584var visibility=element.css("visibility");
25585while(visibility==="inherit"){
25586element=element.parent();
25587visibility=element.css("visibility");
25588}
25589return visibility==="visible";
25590}
25591$.extend($.expr.pseudos,{
25592focusable:function(element){
25593return $.ui.focusable(element,$.attr(element,"tabindex")!=null);
25594}
25595});
25596var focusable=$.ui.focusable;
25597var form=$.fn._form=function(){
25598return typeof this[0].form==="string"?this.closest("form"):$(this[0].form);
25599};
25600var formResetMixin=$.ui.formResetMixin={
25601_formResetHandler:function(){
25602var form=$(this);
25603setTimeout(function(){
25604var instances=form.data("ui-form-reset-instances");
25605$.each(instances,function(){
25606this.refresh();
25607});
25608});
25609},
25610_bindFormResetHandler:function(){
25611this.form=this.element._form();
25612if(!this.form.length){
25613return;
25614}
25615var instances=this.form.data("ui-form-reset-instances")||[];
25616if(!instances.length){
25617this.form.on("reset.ui-form-reset",this._formResetHandler);
25618}
25619instances.push(this);
25620this.form.data("ui-form-reset-instances",instances);
25621},
25622_unbindFormResetHandler:function(){
25623if(!this.form.length){
25624return;
25625}
25626var instances=this.form.data("ui-form-reset-instances");
25627instances.splice($.inArray(this,instances),1);
25628if(instances.length){
25629this.form.data("ui-form-reset-instances",instances);
25630}else{
25631this.form
25632.removeData("ui-form-reset-instances")
25633.off("reset.ui-form-reset");
25634}
25635}
25636};
25637if(!$.expr.pseudos){
25638$.expr.pseudos=$.expr[":"];
25639}
25640if(!$.uniqueSort){
25641$.uniqueSort=$.unique;
25642}
25643if(!$.escapeSelector){
25644var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
25645var fcssescape=function(ch,asCodePoint){
25646if(asCodePoint){
25647if(ch==="\0"){
25648return"\uFFFD";
25649}
25650return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";
25651}
25652return"\\"+ch;
25653};
25654$.escapeSelector=function(sel){
25655return(sel+"").replace(rcssescape,fcssescape);
25656};
25657}
25658if(!$.fn.even||!$.fn.odd){
25659$.fn.extend({
25660even:function(){
25661return this.filter(function(i){
25662return i%2===0;
25663});
25664},
25665odd:function(){
25666return this.filter(function(i){
25667return i%2===1;
25668});
25669}
25670});
25671}
25672;
25673var keycode=$.ui.keyCode={
25674BACKSPACE:8,
25675COMMA:188,
25676DELETE:46,
25677DOWN:40,
25678END:35,
25679ENTER:13,
25680ESCAPE:27,
25681HOME:36,
25682LEFT:37,
25683PAGE_DOWN:34,
25684PAGE_UP:33,
25685PERIOD:190,
25686RIGHT:39,
25687SPACE:32,
25688TAB:9,
25689UP:38
25690};
25691var labels=$.fn.labels=function(){
25692var ancestor,selector,id,labels,ancestors;
25693if(!this.length){
25694return this.pushStack([]);
25695}
25696if(this[0].labels&&this[0].labels.length){
25697return this.pushStack(this[0].labels);
25698}
25699labels=this.eq(0).parents("label");
25700id=this.attr("id");
25701if(id){
25702ancestor=this.eq(0).parents().last();
25703ancestors=ancestor.add(ancestor.length?ancestor.siblings():this.siblings());
25704selector="label[for='"+$.escapeSelector(id)+"']";
25705labels=labels.add(ancestors.find(selector).addBack(selector));
25706}
25707return this.pushStack(labels);
25708};
25709var scrollParent=$.fn.scrollParent=function(includeHidden){
25710var position=this.css("position"),
25711excludeStaticParent=position==="absolute",
25712overflowRegex=includeHidden?/(auto|scroll|hidden)/:/(auto|scroll)/,
25713scrollParent=this.parents().filter(function(){
25714var parent=$(this);
25715if(excludeStaticParent&&parent.css("position")==="static"){
25716return false;
25717}
25718return overflowRegex.test(parent.css("overflow")+parent.css("overflow-y")+
25719parent.css("overflow-x"));
25720}).eq(0);
25721return position==="fixed"||!scrollParent.length?
25722$(this[0].ownerDocument||document):
25723scrollParent;
25724};
25725var tabbable=$.extend($.expr.pseudos,{
25726tabbable:function(element){
25727var tabIndex=$.attr(element,"tabindex"),
25728hasTabindex=tabIndex!=null;
25729return(!hasTabindex||tabIndex>=0)&&$.ui.focusable(element,hasTabindex);
25730}
25731});
25732var uniqueId=$.fn.extend({
25733uniqueId:(function(){
25734var uuid=0;
25735return function(){
25736return this.each(function(){
25737if(!this.id){
25738this.id="ui-id-"+(++uuid);
25739}
25740});
25741};
25742})(),
25743removeUniqueId:function(){
25744return this.each(function(){
25745if(/^ui-id-\d+$/.test(this.id)){
25746$(this).removeAttr("id");
25747}
25748});
25749}
25750});
25751var widgetsAccordion=$.widget("ui.accordion",{
25752version:"1.13.2",
25753options:{
25754active:0,
25755animate:{},
25756classes:{
25757"ui-accordion-header":"ui-corner-top",
25758"ui-accordion-header-collapsed":"ui-corner-all",
25759"ui-accordion-content":"ui-corner-bottom"
25760},
25761collapsible:false,
25762event:"click",
25763header:function(elem){
25764return elem.find("> li > :first-child").add(elem.find("> :not(li)").even());
25765},
25766heightStyle:"auto",
25767icons:{
25768activeHeader:"ui-icon-triangle-1-s",
25769header:"ui-icon-triangle-1-e"
25770},
25771activate:null,
25772beforeActivate:null
25773},
25774hideProps:{
25775borderTopWidth:"hide",
25776borderBottomWidth:"hide",
25777paddingTop:"hide",
25778paddingBottom:"hide",
25779height:"hide"
25780},
25781showProps:{
25782borderTopWidth:"show",
25783borderBottomWidth:"show",
25784paddingTop:"show",
25785paddingBottom:"show",
25786height:"show"
25787},
25788_create:function(){
25789var options=this.options;
25790this.prevShow=this.prevHide=$();
25791this._addClass("ui-accordion","ui-widget ui-helper-reset");
25792this.element.attr("role","tablist");
25793if(!options.collapsible&&(options.active===false||options.active==null)){
25794options.active=0;
25795}
25796this._processPanels();
25797if(options.active<0){
25798options.active+=this.headers.length;
25799}
25800this._refresh();
25801},
25802_getCreateEventData:function(){
25803return{
25804header:this.active,
25805panel:!this.active.length?$():this.active.next()
25806};
25807},
25808_createIcons:function(){
25809var icon,children,
25810icons=this.options.icons;
25811if(icons){
25812icon=$("<span>");
25813this._addClass(icon,"ui-accordion-header-icon","ui-icon "+icons.header);
25814icon.prependTo(this.headers);
25815children=this.active.children(".ui-accordion-header-icon");
25816this._removeClass(children,icons.header)
25817._addClass(children,null,icons.activeHeader)
25818._addClass(this.headers,"ui-accordion-icons");
25819}
25820},
25821_destroyIcons:function(){
25822this._removeClass(this.headers,"ui-accordion-icons");
25823this.headers.children(".ui-accordion-header-icon").remove();
25824},
25825_destroy:function(){
25826var contents;
25827this.element.removeAttr("role");
25828this.headers
25829.removeAttr("role aria-expanded aria-selected aria-controls tabIndex")
25830.removeUniqueId();
25831this._destroyIcons();
25832contents=this.headers.next()
25833.css("display","")
25834.removeAttr("role aria-hidden aria-labelledby")
25835.removeUniqueId();
25836if(this.options.heightStyle!=="content"){
25837contents.css("height","");
25838}
25839},
25840_setOption:function(key,value){
25841if(key==="active"){
25842this._activate(value);
25843return;
25844}
25845if(key==="event"){
25846if(this.options.event){
25847this._off(this.headers,this.options.event);
25848}
25849this._setupEvents(value);
25850}
25851this._super(key,value);
25852if(key==="collapsible"&&!value&&this.options.active===false){
25853this._activate(0);
25854}
25855if(key==="icons"){
25856this._destroyIcons();
25857if(value){
25858this._createIcons();
25859}
25860}
25861},
25862_setOptionDisabled:function(value){
25863this._super(value);
25864this.element.attr("aria-disabled",value);
25865this._toggleClass(null,"ui-state-disabled",!!value);
25866this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",
25867!!value);
25868},
25869_keydown:function(event){
25870if(event.altKey||event.ctrlKey){
25871return;
25872}
25873var keyCode=$.ui.keyCode,
25874length=this.headers.length,
25875currentIndex=this.headers.index(event.target),
25876toFocus=false;
25877switch(event.keyCode){
25878case keyCode.RIGHT:
25879case keyCode.DOWN:
25880toFocus=this.headers[(currentIndex+1)%length];
25881break;
25882case keyCode.LEFT:
25883case keyCode.UP:
25884toFocus=this.headers[(currentIndex-1+length)%length];
25885break;
25886case keyCode.SPACE:
25887case keyCode.ENTER:
25888this._eventHandler(event);
25889break;
25890case keyCode.HOME:
25891toFocus=this.headers[0];
25892break;
25893case keyCode.END:
25894toFocus=this.headers[length-1];
25895break;
25896}
25897if(toFocus){
25898$(event.target).attr("tabIndex",-1);
25899$(toFocus).attr("tabIndex",0);
25900$(toFocus).trigger("focus");
25901event.preventDefault();
25902}
25903},
25904_panelKeyDown:function(event){
25905if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey){
25906$(event.currentTarget).prev().trigger("focus");
25907}
25908},
25909refresh:function(){
25910var options=this.options;
25911this._processPanels();
25912if((options.active===false&&options.collapsible===true)||
25913!this.headers.length){
25914options.active=false;
25915this.active=$();
25916}else if(options.active===false){
25917this._activate(0);
25918}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){
25919if(this.headers.length===this.headers.find(".ui-state-disabled").length){
25920options.active=false;
25921this.active=$();
25922}else{
25923this._activate(Math.max(0,options.active-1));
25924}
25925}else{
25926options.active=this.headers.index(this.active);
25927}
25928this._destroyIcons();
25929this._refresh();
25930},
25931_processPanels:function(){
25932var prevHeaders=this.headers,
25933prevPanels=this.panels;
25934if(typeof this.options.header==="function"){
25935this.headers=this.options.header(this.element);
25936}else{
25937this.headers=this.element.find(this.options.header);
25938}
25939this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed",
25940"ui-state-default");
25941this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();
25942this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");
25943if(prevPanels){
25944this._off(prevHeaders.not(this.headers));
25945this._off(prevPanels.not(this.panels));
25946}
25947},
25948_refresh:function(){
25949var maxHeight,
25950options=this.options,
25951heightStyle=options.heightStyle,
25952parent=this.element.parent();
25953this.active=this._findActive(options.active);
25954this._addClass(this.active,"ui-accordion-header-active","ui-state-active")
25955._removeClass(this.active,"ui-accordion-header-collapsed");
25956this._addClass(this.active.next(),"ui-accordion-content-active");
25957this.active.next().show();
25958this.headers
25959.attr("role","tab")
25960.each(function(){
25961var header=$(this),
25962headerId=header.uniqueId().attr("id"),
25963panel=header.next(),
25964panelId=panel.uniqueId().attr("id");
25965header.attr("aria-controls",panelId);
25966panel.attr("aria-labelledby",headerId);
25967})
25968.next()
25969.attr("role","tabpanel");
25970this.headers
25971.not(this.active)
25972.attr({
25973"aria-selected":"false",
25974"aria-expanded":"false",
25975tabIndex:-1
25976})
25977.next()
25978.attr({
25979"aria-hidden":"true"
25980})
25981.hide();
25982if(!this.active.length){
25983this.headers.eq(0).attr("tabIndex",0);
25984}else{
25985this.active.attr({
25986"aria-selected":"true",
25987"aria-expanded":"true",
25988tabIndex:0
25989})
25990.next()
25991.attr({
25992"aria-hidden":"false"
25993});
25994}
25995this._createIcons();
25996this._setupEvents(options.event);
25997if(heightStyle==="fill"){
25998maxHeight=parent.height();
25999this.element.siblings(":visible").each(function(){
26000var elem=$(this),
26001position=elem.css("position");
26002if(position==="absolute"||position==="fixed"){
26003return;
26004}
26005maxHeight-=elem.outerHeight(true);
26006});
26007this.headers.each(function(){
26008maxHeight-=$(this).outerHeight(true);
26009});
26010this.headers.next()
26011.each(function(){
26012$(this).height(Math.max(0,maxHeight-
26013$(this).innerHeight()+$(this).height()));
26014})
26015.css("overflow","auto");
26016}else if(heightStyle==="auto"){
26017maxHeight=0;
26018this.headers.next()
26019.each(function(){
26020var isVisible=$(this).is(":visible");
26021if(!isVisible){
26022$(this).show();
26023}
26024maxHeight=Math.max(maxHeight,$(this).css("height","").height());
26025if(!isVisible){
26026$(this).hide();
26027}
26028})
26029.height(maxHeight);
26030}
26031},
26032_activate:function(index){
26033var active=this._findActive(index)[0];
26034if(active===this.active[0]){
26035return;
26036}
26037active=active||this.active[0];
26038this._eventHandler({
26039target:active,
26040currentTarget:active,
26041preventDefault:$.noop
26042});
26043},
26044_findActive:function(selector){
26045return typeof selector==="number"?this.headers.eq(selector):$();
26046},
26047_setupEvents:function(event){
26048var events={
26049keydown:"_keydown"
26050};
26051if(event){
26052$.each(event.split(" "),function(index,eventName){
26053events[eventName]="_eventHandler";
26054});
26055}
26056this._off(this.headers.add(this.headers.next()));
26057this._on(this.headers,events);
26058this._on(this.headers.next(),{keydown:"_panelKeyDown"});
26059this._hoverable(this.headers);
26060this._focusable(this.headers);
26061},
26062_eventHandler:function(event){
26063var activeChildren,clickedChildren,
26064options=this.options,
26065active=this.active,
26066clicked=$(event.currentTarget),
26067clickedIsActive=clicked[0]===active[0],
26068collapsing=clickedIsActive&&options.collapsible,
26069toShow=collapsing?$():clicked.next(),
26070toHide=active.next(),
26071eventData={
26072oldHeader:active,
26073oldPanel:toHide,
26074newHeader:collapsing?$():clicked,
26075newPanel:toShow
26076};
26077event.preventDefault();
26078if(
26079(clickedIsActive&&!options.collapsible)||
26080(this._trigger("beforeActivate",event,eventData)===false)){
26081return;
26082}
26083options.active=collapsing?false:this.headers.index(clicked);
26084this.active=clickedIsActive?$():clicked;
26085this._toggle(eventData);
26086this._removeClass(active,"ui-accordion-header-active","ui-state-active");
26087if(options.icons){
26088activeChildren=active.children(".ui-accordion-header-icon");
26089this._removeClass(activeChildren,null,options.icons.activeHeader)
26090._addClass(activeChildren,null,options.icons.header);
26091}
26092if(!clickedIsActive){
26093this._removeClass(clicked,"ui-accordion-header-collapsed")
26094._addClass(clicked,"ui-accordion-header-active","ui-state-active");
26095if(options.icons){
26096clickedChildren=clicked.children(".ui-accordion-header-icon");
26097this._removeClass(clickedChildren,null,options.icons.header)
26098._addClass(clickedChildren,null,options.icons.activeHeader);
26099}
26100this._addClass(clicked.next(),"ui-accordion-content-active");
26101}
26102},
26103_toggle:function(data){
26104var toShow=data.newPanel,
26105toHide=this.prevShow.length?this.prevShow:data.oldPanel;
26106this.prevShow.add(this.prevHide).stop(true,true);
26107this.prevShow=toShow;
26108this.prevHide=toHide;
26109if(this.options.animate){
26110this._animate(toShow,toHide,data);
26111}else{
26112toHide.hide();
26113toShow.show();
26114this._toggleComplete(data);
26115}
26116toHide.attr({
26117"aria-hidden":"true"
26118});
26119toHide.prev().attr({
26120"aria-selected":"false",
26121"aria-expanded":"false"
26122});
26123if(toShow.length&&toHide.length){
26124toHide.prev().attr({
26125"tabIndex":-1,
26126"aria-expanded":"false"
26127});
26128}else if(toShow.length){
26129this.headers.filter(function(){
26130return parseInt($(this).attr("tabIndex"),10)===0;
26131})
26132.attr("tabIndex",-1);
26133}
26134toShow
26135.attr("aria-hidden","false")
26136.prev()
26137.attr({
26138"aria-selected":"true",
26139"aria-expanded":"true",
26140tabIndex:0
26141});
26142},
26143_animate:function(toShow,toHide,data){
26144var total,easing,duration,
26145that=this,
26146adjust=0,
26147boxSizing=toShow.css("box-sizing"),
26148down=toShow.length&&
26149(!toHide.length||(toShow.index()<toHide.index())),
26150animate=this.options.animate||{},
26151options=down&&animate.down||animate,
26152complete=function(){
26153that._toggleComplete(data);
26154};
26155if(typeof options==="number"){
26156duration=options;
26157}
26158if(typeof options==="string"){
26159easing=options;
26160}
26161easing=easing||options.easing||animate.easing;
26162duration=duration||options.duration||animate.duration;
26163if(!toHide.length){
26164return toShow.animate(this.showProps,duration,easing,complete);
26165}
26166if(!toShow.length){
26167return toHide.animate(this.hideProps,duration,easing,complete);
26168}
26169total=toShow.show().outerHeight();
26170toHide.animate(this.hideProps,{
26171duration:duration,
26172easing:easing,
26173step:function(now,fx){
26174fx.now=Math.round(now);
26175}
26176});
26177toShow
26178.hide()
26179.animate(this.showProps,{
26180duration:duration,
26181easing:easing,
26182complete:complete,
26183step:function(now,fx){
26184fx.now=Math.round(now);
26185if(fx.prop!=="height"){
26186if(boxSizing==="content-box"){
26187adjust+=fx.now;
26188}
26189}else if(that.options.heightStyle!=="content"){
26190fx.now=Math.round(total-toHide.outerHeight()-adjust);
26191adjust=0;
26192}
26193}
26194});
26195},
26196_toggleComplete:function(data){
26197var toHide=data.oldPanel,
26198prev=toHide.prev();
26199this._removeClass(toHide,"ui-accordion-content-active");
26200this._removeClass(prev,"ui-accordion-header-active")
26201._addClass(prev,"ui-accordion-header-collapsed");
26202if(toHide.length){
26203toHide.parent()[0].className=toHide.parent()[0].className;
26204}
26205this._trigger("activate",null,data);
26206}
26207});
26208var safeActiveElement=$.ui.safeActiveElement=function(document){
26209var activeElement;
26210try{
26211activeElement=document.activeElement;
26212}catch(error){
26213activeElement=document.body;
26214}
26215if(!activeElement){
26216activeElement=document.body;
26217}
26218if(!activeElement.nodeName){
26219activeElement=document.body;
26220}
26221return activeElement;
26222};
26223var widgetsMenu=$.widget("ui.menu",{
26224version:"1.13.2",
26225defaultElement:"<ul>",
26226delay:300,
26227options:{
26228icons:{
26229submenu:"ui-icon-caret-1-e"
26230},
26231items:"> *",
26232menus:"ul",
26233position:{
26234my:"left top",
26235at:"right top"
26236},
26237role:"menu",
26238blur:null,
26239focus:null,
26240select:null
26241},
26242_create:function(){
26243this.activeMenu=this.element;
26244this.mouseHandled=false;
26245this.lastMousePosition={x:null,y:null};
26246this.element
26247.uniqueId()
26248.attr({
26249role:this.options.role,
26250tabIndex:0
26251});
26252this._addClass("ui-menu","ui-widget ui-widget-content");
26253this._on({
26254"mousedown .ui-menu-item":function(event){
26255event.preventDefault();
26256this._activateItem(event);
26257},
26258"click .ui-menu-item":function(event){
26259var target=$(event.target);
26260var active=$($.ui.safeActiveElement(this.document[0]));
26261if(!this.mouseHandled&&target.not(".ui-state-disabled").length){
26262this.select(event);
26263if(!event.isPropagationStopped()){
26264this.mouseHandled=true;
26265}
26266if(target.has(".ui-menu").length){
26267this.expand(event);
26268}else if(!this.element.is(":focus")&&
26269active.closest(".ui-menu").length){
26270this.element.trigger("focus",[true]);
26271if(this.active&&this.active.parents(".ui-menu").length===1){
26272clearTimeout(this.timer);
26273}
26274}
26275}
26276},
26277"mouseenter .ui-menu-item":"_activateItem",
26278"mousemove .ui-menu-item":"_activateItem",
26279mouseleave:"collapseAll",
26280"mouseleave .ui-menu":"collapseAll",
26281focus:function(event,keepActiveItem){
26282var item=this.active||this._menuItems().first();
26283if(!keepActiveItem){
26284this.focus(event,item);
26285}
26286},
26287blur:function(event){
26288this._delay(function(){
26289var notContained=!$.contains(
26290this.element[0],
26291$.ui.safeActiveElement(this.document[0])
26292);
26293if(notContained){
26294this.collapseAll(event);
26295}
26296});
26297},
26298keydown:"_keydown"
26299});
26300this.refresh();
26301this._on(this.document,{
26302click:function(event){
26303if(this._closeOnDocumentClick(event)){
26304this.collapseAll(event,true);
26305}
26306this.mouseHandled=false;
26307}
26308});
26309},
26310_activateItem:function(event){
26311if(this.previousFilter){
26312return;
26313}
26314if(event.clientX===this.lastMousePosition.x&&
26315event.clientY===this.lastMousePosition.y){
26316return;
26317}
26318this.lastMousePosition={
26319x:event.clientX,
26320y:event.clientY
26321};
26322var actualTarget=$(event.target).closest(".ui-menu-item"),
26323target=$(event.currentTarget);
26324if(actualTarget[0]!==target[0]){
26325return;
26326}
26327if(target.is(".ui-state-active")){
26328return;
26329}
26330this._removeClass(target.siblings().children(".ui-state-active"),
26331null,"ui-state-active");
26332this.focus(event,target);
26333},
26334_destroy:function(){
26335var items=this.element.find(".ui-menu-item")
26336.removeAttr("role aria-disabled"),
26337submenus=items.children(".ui-menu-item-wrapper")
26338.removeUniqueId()
26339.removeAttr("tabIndex role aria-haspopup");
26340this.element
26341.removeAttr("aria-activedescendant")
26342.find(".ui-menu").addBack()
26343.removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled "+
26344"tabIndex")
26345.removeUniqueId()
26346.show();
26347submenus.children().each(function(){
26348var elem=$(this);
26349if(elem.data("ui-menu-submenu-caret")){
26350elem.remove();
26351}
26352});
26353},
26354_keydown:function(event){
26355var match,prev,character,skip,
26356preventDefault=true;
26357switch(event.keyCode){
26358case $.ui.keyCode.PAGE_UP:
26359this.previousPage(event);
26360break;
26361case $.ui.keyCode.PAGE_DOWN:
26362this.nextPage(event);
26363break;
26364case $.ui.keyCode.HOME:
26365this._move("first","first",event);
26366break;
26367case $.ui.keyCode.END:
26368this._move("last","last",event);
26369break;
26370case $.ui.keyCode.UP:
26371this.previous(event);
26372break;
26373case $.ui.keyCode.DOWN:
26374this.next(event);
26375break;
26376case $.ui.keyCode.LEFT:
26377this.collapse(event);
26378break;
26379case $.ui.keyCode.RIGHT:
26380if(this.active&&!this.active.is(".ui-state-disabled")){
26381this.expand(event);
26382}
26383break;
26384case $.ui.keyCode.ENTER:
26385case $.ui.keyCode.SPACE:
26386this._activate(event);
26387break;
26388case $.ui.keyCode.ESCAPE:
26389this.collapse(event);
26390break;
26391default:
26392preventDefault=false;
26393prev=this.previousFilter||"";
26394skip=false;
26395character=event.keyCode>=96&&event.keyCode<=105?
26396(event.keyCode-96).toString():String.fromCharCode(event.keyCode);
26397clearTimeout(this.filterTimer);
26398if(character===prev){
26399skip=true;
26400}else{
26401character=prev+character;
26402}
26403match=this._filterMenuItems(character);
26404match=skip&&match.index(this.active.next())!==-1?
26405this.active.nextAll(".ui-menu-item"):
26406match;
26407if(!match.length){
26408character=String.fromCharCode(event.keyCode);
26409match=this._filterMenuItems(character);
26410}
26411if(match.length){
26412this.focus(event,match);
26413this.previousFilter=character;
26414this.filterTimer=this._delay(function(){
26415delete this.previousFilter;
26416},1000);
26417}else{
26418delete this.previousFilter;
26419}
26420}
26421if(preventDefault){
26422event.preventDefault();
26423}
26424},
26425_activate:function(event){
26426if(this.active&&!this.active.is(".ui-state-disabled")){
26427if(this.active.children("[aria-haspopup='true']").length){
26428this.expand(event);
26429}else{
26430this.select(event);
26431}
26432}
26433},
26434refresh:function(){
26435var menus,items,newSubmenus,newItems,newWrappers,
26436that=this,
26437icon=this.options.icons.submenu,
26438submenus=this.element.find(this.options.menus);
26439this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length);
26440newSubmenus=submenus.filter(":not(.ui-menu)")
26441.hide()
26442.attr({
26443role:this.options.role,
26444"aria-hidden":"true",
26445"aria-expanded":"false"
26446})
26447.each(function(){
26448var menu=$(this),
26449item=menu.prev(),
26450submenuCaret=$("<span>").data("ui-menu-submenu-caret",true);
26451that._addClass(submenuCaret,"ui-menu-icon","ui-icon "+icon);
26452item
26453.attr("aria-haspopup","true")
26454.prepend(submenuCaret);
26455menu.attr("aria-labelledby",item.attr("id"));
26456});
26457this._addClass(newSubmenus,"ui-menu","ui-widget ui-widget-content ui-front");
26458menus=submenus.add(this.element);
26459items=menus.find(this.options.items);
26460items.not(".ui-menu-item").each(function(){
26461var item=$(this);
26462if(that._isDivider(item)){
26463that._addClass(item,"ui-menu-divider","ui-widget-content");
26464}
26465});
26466newItems=items.not(".ui-menu-item, .ui-menu-divider");
26467newWrappers=newItems.children()
26468.not(".ui-menu")
26469.uniqueId()
26470.attr({
26471tabIndex:-1,
26472role:this._itemRole()
26473});
26474this._addClass(newItems,"ui-menu-item")
26475._addClass(newWrappers,"ui-menu-item-wrapper");
26476items.filter(".ui-state-disabled").attr("aria-disabled","true");
vendor: 6,917 bytes, lines 26477-26760
26477if(this.active&&!$.contains(this.element[0],this.active[0])){
26478this.blur();
26479}
26480},
26481_itemRole:function(){
26482return{
26483menu:"menuitem",
26484listbox:"option"
26485}[this.options.role];
26486},
26487_setOption:function(key,value){
26488if(key==="icons"){
26489var icons=this.element.find(".ui-menu-icon");
26490this._removeClass(icons,null,this.options.icons.submenu)
26491._addClass(icons,null,value.submenu);
26492}
26493this._super(key,value);
26494},
26495_setOptionDisabled:function(value){
26496this._super(value);
26497this.element.attr("aria-disabled",String(value));
26498this._toggleClass(null,"ui-state-disabled",!!value);
26499},
26500focus:function(event,item){
26501var nested,focused,activeParent;
26502this.blur(event,event&&event.type==="focus");
26503this._scrollIntoView(item);
26504this.active=item.first();
26505focused=this.active.children(".ui-menu-item-wrapper");
26506this._addClass(focused,null,"ui-state-active");
26507if(this.options.role){
26508this.element.attr("aria-activedescendant",focused.attr("id"));
26509}
26510activeParent=this.active
26511.parent()
26512.closest(".ui-menu-item")
26513.children(".ui-menu-item-wrapper");
26514this._addClass(activeParent,null,"ui-state-active");
26515if(event&&event.type==="keydown"){
26516this._close();
26517}else{
26518this.timer=this._delay(function(){
26519this._close();
26520},this.delay);
26521}
26522nested=item.children(".ui-menu");
26523if(nested.length&&event&&(/^mouse/.test(event.type))){
26524this._startOpening(nested);
26525}
26526this.activeMenu=item.parent();
26527this._trigger("focus",event,{item:item});
26528},
26529_scrollIntoView:function(item){
26530var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;
26531if(this._hasScroll()){
26532borderTop=parseFloat($.css(this.activeMenu[0],"borderTopWidth"))||0;
26533paddingTop=parseFloat($.css(this.activeMenu[0],"paddingTop"))||0;
26534offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;
26535scroll=this.activeMenu.scrollTop();
26536elementHeight=this.activeMenu.height();
26537itemHeight=item.outerHeight();
26538if(offset<0){
26539this.activeMenu.scrollTop(scroll+offset);
26540}else if(offset+itemHeight>elementHeight){
26541this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight);
26542}
26543}
26544},
26545blur:function(event,fromFocus){
26546if(!fromFocus){
26547clearTimeout(this.timer);
26548}
26549if(!this.active){
26550return;
26551}
26552this._removeClass(this.active.children(".ui-menu-item-wrapper"),
26553null,"ui-state-active");
26554this._trigger("blur",event,{item:this.active});
26555this.active=null;
26556},
26557_startOpening:function(submenu){
26558clearTimeout(this.timer);
26559if(submenu.attr("aria-hidden")!=="true"){
26560return;
26561}
26562this.timer=this._delay(function(){
26563this._close();
26564this._open(submenu);
26565},this.delay);
26566},
26567_open:function(submenu){
26568var position=$.extend({
26569of:this.active
26570},this.options.position);
26571clearTimeout(this.timer);
26572this.element.find(".ui-menu").not(submenu.parents(".ui-menu"))
26573.hide()
26574.attr("aria-hidden","true");
26575submenu
26576.show()
26577.removeAttr("aria-hidden")
26578.attr("aria-expanded","true")
26579.position(position);
26580},
26581collapseAll:function(event,all){
26582clearTimeout(this.timer);
26583this.timer=this._delay(function(){
26584var currentMenu=all?this.element:
26585$(event&&event.target).closest(this.element.find(".ui-menu"));
26586if(!currentMenu.length){
26587currentMenu=this.element;
26588}
26589this._close(currentMenu);
26590this.blur(event);
26591this._removeClass(currentMenu.find(".ui-state-active"),null,"ui-state-active");
26592this.activeMenu=currentMenu;
26593},all?0:this.delay);
26594},
26595_close:function(startMenu){
26596if(!startMenu){
26597startMenu=this.active?this.active.parent():this.element;
26598}
26599startMenu.find(".ui-menu")
26600.hide()
26601.attr("aria-hidden","true")
26602.attr("aria-expanded","false");
26603},
26604_closeOnDocumentClick:function(event){
26605return!$(event.target).closest(".ui-menu").length;
26606},
26607_isDivider:function(item){
26608return!/[^\-\u2014\u2013\s]/.test(item.text());
26609},
26610collapse:function(event){
26611var newItem=this.active&&
26612this.active.parent().closest(".ui-menu-item",this.element);
26613if(newItem&&newItem.length){
26614this._close();
26615this.focus(event,newItem);
26616}
26617},
26618expand:function(event){
26619var newItem=this.active&&this._menuItems(this.active.children(".ui-menu")).first();
26620if(newItem&&newItem.length){
26621this._open(newItem.parent());
26622this._delay(function(){
26623this.focus(event,newItem);
26624});
26625}
26626},
26627next:function(event){
26628this._move("next","first",event);
26629},
26630previous:function(event){
26631this._move("prev","last",event);
26632},
26633isFirstItem:function(){
26634return this.active&&!this.active.prevAll(".ui-menu-item").length;
26635},
26636isLastItem:function(){
26637return this.active&&!this.active.nextAll(".ui-menu-item").length;
26638},
26639_menuItems:function(menu){
26640return(menu||this.element)
26641.find(this.options.items)
26642.filter(".ui-menu-item");
26643},
26644_move:function(direction,filter,event){
26645var next;
26646if(this.active){
26647if(direction==="first"||direction==="last"){
26648next=this.active
26649[direction==="first"?"prevAll":"nextAll"](".ui-menu-item")
26650.last();
26651}else{
26652next=this.active
26653[direction+"All"](".ui-menu-item")
26654.first();
26655}
26656}
26657if(!next||!next.length||!this.active){
26658next=this._menuItems(this.activeMenu)[filter]();
26659}
26660this.focus(event,next);
26661},
26662nextPage:function(event){
26663var item,base,height;
26664if(!this.active){
26665this.next(event);
26666return;
26667}
26668if(this.isLastItem()){
26669return;
26670}
26671if(this._hasScroll()){
26672base=this.active.offset().top;
26673height=this.element.innerHeight();
26674if($.fn.jquery.indexOf("3.2.")===0){
26675height+=this.element[0].offsetHeight-this.element.outerHeight();
26676}
26677this.active.nextAll(".ui-menu-item").each(function(){
26678item=$(this);
26679return item.offset().top-base-height<0;
26680});
26681this.focus(event,item);
26682}else{
26683this.focus(event,this._menuItems(this.activeMenu)
26684[!this.active?"first":"last"]());
26685}
26686},
26687previousPage:function(event){
26688var item,base,height;
26689if(!this.active){
26690this.next(event);
26691return;
26692}
26693if(this.isFirstItem()){
26694return;
26695}
26696if(this._hasScroll()){
26697base=this.active.offset().top;
26698height=this.element.innerHeight();
26699if($.fn.jquery.indexOf("3.2.")===0){
26700height+=this.element[0].offsetHeight-this.element.outerHeight();
26701}
26702this.active.prevAll(".ui-menu-item").each(function(){
26703item=$(this);
26704return item.offset().top-base+height>0;
26705});
26706this.focus(event,item);
26707}else{
26708this.focus(event,this._menuItems(this.activeMenu).first());
26709}
26710},
26711_hasScroll:function(){
26712return this.element.outerHeight()<this.element.prop("scrollHeight");
26713},
26714select:function(event){
26715this.active=this.active||$(event.target).closest(".ui-menu-item");
26716var ui={item:this.active};
26717if(!this.active.has(".ui-menu").length){
26718this.collapseAll(event,true);
26719}
26720this._trigger("select",event,ui);
26721},
26722_filterMenuItems:function(character){
26723var escapedCharacter=character.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),
26724regex=new RegExp("^"+escapedCharacter,"i");
26725return this.activeMenu
26726.find(this.options.items)
26727.filter(".ui-menu-item")
26728.filter(function(){
26729return regex.test(
26730String.prototype.trim.call(
26731$(this).children(".ui-menu-item-wrapper").text()));
26732});
26733}
26734});
26735$.widget("ui.autocomplete",{
26736version:"1.13.2",
26737defaultElement:"<input>",
26738options:{
26739appendTo:null,
26740autoFocus:false,
26741delay:300,
26742minLength:1,
26743position:{
26744my:"left top",
26745at:"left bottom",
26746collision:"none"
26747},
26748source:null,
26749change:null,
26750close:null,
26751focus:null,
26752open:null,
26753response:null,
26754search:null,
26755select:null
26756},
26757requestIndex:0,
26758pending:0,
26759liveRegionTimer:null,
26760_create:function(){
vendor: 18,508 bytes, lines 26761-27531
26761var suppressKeyPress,suppressKeyPressRepeat,suppressInput,
26762nodeName=this.element[0].nodeName.toLowerCase(),
26763isTextarea=nodeName==="textarea",
26764isInput=nodeName==="input";
26765this.isMultiLine=isTextarea||!isInput&&this._isContentEditable(this.element);
26766this.valueMethod=this.element[isTextarea||isInput?"val":"text"];
26767this.isNewMenu=true;
26768this._addClass("ui-autocomplete-input");
26769this.element.attr("autocomplete","off");
26770this._on(this.element,{
26771keydown:function(event){
26772if(this.element.prop("readOnly")){
26773suppressKeyPress=true;
26774suppressInput=true;
26775suppressKeyPressRepeat=true;
26776return;
26777}
26778suppressKeyPress=false;
26779suppressInput=false;
26780suppressKeyPressRepeat=false;
26781var keyCode=$.ui.keyCode;
26782switch(event.keyCode){
26783case keyCode.PAGE_UP:
26784suppressKeyPress=true;
26785this._move("previousPage",event);
26786break;
26787case keyCode.PAGE_DOWN:
26788suppressKeyPress=true;
26789this._move("nextPage",event);
26790break;
26791case keyCode.UP:
26792suppressKeyPress=true;
26793this._keyEvent("previous",event);
26794break;
26795case keyCode.DOWN:
26796suppressKeyPress=true;
26797this._keyEvent("next",event);
26798break;
26799case keyCode.ENTER:
26800if(this.menu.active){
26801suppressKeyPress=true;
26802event.preventDefault();
26803this.menu.select(event);
26804}
26805break;
26806case keyCode.TAB:
26807if(this.menu.active){
26808this.menu.select(event);
26809}
26810break;
26811case keyCode.ESCAPE:
26812if(this.menu.element.is(":visible")){
26813if(!this.isMultiLine){
26814this._value(this.term);
26815}
26816this.close(event);
26817event.preventDefault();
26818}
26819break;
26820default:
26821suppressKeyPressRepeat=true;
26822this._searchTimeout(event);
26823break;
26824}
26825},
26826keypress:function(event){
26827if(suppressKeyPress){
26828suppressKeyPress=false;
26829if(!this.isMultiLine||this.menu.element.is(":visible")){
26830event.preventDefault();
26831}
26832return;
26833}
26834if(suppressKeyPressRepeat){
26835return;
26836}
26837var keyCode=$.ui.keyCode;
26838switch(event.keyCode){
26839case keyCode.PAGE_UP:
26840this._move("previousPage",event);
26841break;
26842case keyCode.PAGE_DOWN:
26843this._move("nextPage",event);
26844break;
26845case keyCode.UP:
26846this._keyEvent("previous",event);
26847break;
26848case keyCode.DOWN:
26849this._keyEvent("next",event);
26850break;
26851}
26852},
26853input:function(event){
26854if(suppressInput){
26855suppressInput=false;
26856event.preventDefault();
26857return;
26858}
26859this._searchTimeout(event);
26860},
26861focus:function(){
26862this.selectedItem=null;
26863this.previous=this._value();
26864},
26865blur:function(event){
26866clearTimeout(this.searching);
26867this.close(event);
26868this._change(event);
26869}
26870});
26871this._initSource();
26872this.menu=$("<ul>")
26873.appendTo(this._appendTo())
26874.menu({
26875role:null
26876})
26877.hide()
26878.attr({
26879"unselectable":"on"
26880})
26881.menu("instance");
26882this._addClass(this.menu.element,"ui-autocomplete","ui-front");
26883this._on(this.menu.element,{
26884mousedown:function(event){
26885event.preventDefault();
26886},
26887menufocus:function(event,ui){
26888var label,item;
26889if(this.isNewMenu){
26890this.isNewMenu=false;
26891if(event.originalEvent&&/^mouse/.test(event.originalEvent.type)){
26892this.menu.blur();
26893this.document.one("mousemove",function(){
26894$(event.target).trigger(event.originalEvent);
26895});
26896return;
26897}
26898}
26899item=ui.item.data("ui-autocomplete-item");
26900if(false!==this._trigger("focus",event,{item:item})){
26901if(event.originalEvent&&/^key/.test(event.originalEvent.type)){
26902this._value(item.value);
26903}
26904}
26905label=ui.item.attr("aria-label")||item.value;
26906if(label&&String.prototype.trim.call(label).length){
26907clearTimeout(this.liveRegionTimer);
26908this.liveRegionTimer=this._delay(function(){
26909this.liveRegion.html($("<div>").text(label));
26910},100);
26911}
26912},
26913menuselect:function(event,ui){
26914var item=ui.item.data("ui-autocomplete-item"),
26915previous=this.previous;
26916if(this.element[0]!==$.ui.safeActiveElement(this.document[0])){
26917this.element.trigger("focus");
26918this.previous=previous;
26919this._delay(function(){
26920this.previous=previous;
26921this.selectedItem=item;
26922});
26923}
26924if(false!==this._trigger("select",event,{item:item})){
26925this._value(item.value);
26926}
26927this.term=this._value();
26928this.close(event);
26929this.selectedItem=item;
26930}
26931});
26932this.liveRegion=$("<div>",{
26933role:"status",
26934"aria-live":"assertive",
26935"aria-relevant":"additions"
26936})
26937.appendTo(this.document[0].body);
26938this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");
26939this._on(this.window,{
26940beforeunload:function(){
26941this.element.removeAttr("autocomplete");
26942}
26943});
26944},
26945_destroy:function(){
26946clearTimeout(this.searching);
26947this.element.removeAttr("autocomplete");
26948this.menu.element.remove();
26949this.liveRegion.remove();
26950},
26951_setOption:function(key,value){
26952this._super(key,value);
26953if(key==="source"){
26954this._initSource();
26955}
26956if(key==="appendTo"){
26957this.menu.element.appendTo(this._appendTo());
26958}
26959if(key==="disabled"&&value&&this.xhr){
26960this.xhr.abort();
26961}
26962},
26963_isEventTargetInWidget:function(event){
26964var menuElement=this.menu.element[0];
26965return event.target===this.element[0]||
26966event.target===menuElement||
26967$.contains(menuElement,event.target);
26968},
26969_closeOnClickOutside:function(event){
26970if(!this._isEventTargetInWidget(event)){
26971this.close();
26972}
26973},
26974_appendTo:function(){
26975var element=this.options.appendTo;
26976if(element){
26977element=element.jquery||element.nodeType?
26978$(element):
26979this.document.find(element).eq(0);
26980}
26981if(!element||!element[0]){
26982element=this.element.closest(".ui-front, dialog");
26983}
26984if(!element.length){
26985element=this.document[0].body;
26986}
26987return element;
26988},
26989_initSource:function(){
26990var array,url,
26991that=this;
26992if(Array.isArray(this.options.source)){
26993array=this.options.source;
26994this.source=function(request,response){
26995response($.ui.autocomplete.filter(array,request.term));
26996};
26997}else if(typeof this.options.source==="string"){
26998url=this.options.source;
26999this.source=function(request,response){
27000if(that.xhr){
27001that.xhr.abort();
27002}
27003that.xhr=$.ajax({
27004url:url,
27005data:request,
27006dataType:"json",
27007success:function(data){
27008response(data);
27009},
27010error:function(){
27011response([]);
27012}
27013});
27014};
27015}else{
27016this.source=this.options.source;
27017}
27018},
27019_searchTimeout:function(event){
27020clearTimeout(this.searching);
27021this.searching=this._delay(function(){
27022var equalValues=this.term===this._value(),
27023menuVisible=this.menu.element.is(":visible"),
27024modifierKey=event.altKey||event.ctrlKey||event.metaKey||event.shiftKey;
27025if(!equalValues||(equalValues&&!menuVisible&&!modifierKey)){
27026this.selectedItem=null;
27027this.search(null,event);
27028}
27029},this.options.delay);
27030},
27031search:function(value,event){
27032value=value!=null?value:this._value();
27033this.term=this._value();
27034if(value.length<this.options.minLength){
27035return this.close(event);
27036}
27037if(this._trigger("search",event)===false){
27038return;
27039}
27040return this._search(value);
27041},
27042_search:function(value){
27043this.pending++;
27044this._addClass("ui-autocomplete-loading");
27045this.cancelSearch=false;
27046this.source({term:value},this._response());
27047},
27048_response:function(){
27049var index=++this.requestIndex;
27050return function(content){
27051if(index===this.requestIndex){
27052this.__response(content);
27053}
27054this.pending--;
27055if(!this.pending){
27056this._removeClass("ui-autocomplete-loading");
27057}
27058}.bind(this);
27059},
27060__response:function(content){
27061if(content){
27062content=this._normalize(content);
27063}
27064this._trigger("response",null,{content:content});
27065if(!this.options.disabled&&content&&content.length&&!this.cancelSearch){
27066this._suggest(content);
27067this._trigger("open");
27068}else{
27069this._close();
27070}
27071},
27072close:function(event){
27073this.cancelSearch=true;
27074this._close(event);
27075},
27076_close:function(event){
27077this._off(this.document,"mousedown");
27078if(this.menu.element.is(":visible")){
27079this.menu.element.hide();
27080this.menu.blur();
27081this.isNewMenu=true;
27082this._trigger("close",event);
27083}
27084},
27085_change:function(event){
27086if(this.previous!==this._value()){
27087this._trigger("change",event,{item:this.selectedItem});
27088}
27089},
27090_normalize:function(items){
27091if(items.length&&items[0].label&&items[0].value){
27092return items;
27093}
27094return $.map(items,function(item){
27095if(typeof item==="string"){
27096return{
27097label:item,
27098value:item
27099};
27100}
27101return $.extend({},item,{
27102label:item.label||item.value,
27103value:item.value||item.label
27104});
27105});
27106},
27107_suggest:function(items){
27108var ul=this.menu.element.empty();
27109this._renderMenu(ul,items);
27110this.isNewMenu=true;
27111this.menu.refresh();
27112ul.show();
27113this._resizeMenu();
27114ul.position($.extend({
27115of:this.element
27116},this.options.position));
27117if(this.options.autoFocus){
27118this.menu.next();
27119}
27120this._on(this.document,{
27121mousedown:"_closeOnClickOutside"
27122});
27123},
27124_resizeMenu:function(){
27125var ul=this.menu.element;
27126ul.outerWidth(Math.max(
27127ul.width("").outerWidth()+1,
27128this.element.outerWidth()
27129));
27130},
27131_renderMenu:function(ul,items){
27132var that=this;
27133$.each(items,function(index,item){
27134that._renderItemData(ul,item);
27135});
27136},
27137_renderItemData:function(ul,item){
27138return this._renderItem(ul,item).data("ui-autocomplete-item",item);
27139},
27140_renderItem:function(ul,item){
27141return $("<li>")
27142.append($("<div>").text(item.label))
27143.appendTo(ul);
27144},
27145_move:function(direction,event){
27146if(!this.menu.element.is(":visible")){
27147this.search(null,event);
27148return;
27149}
27150if(this.menu.isFirstItem()&&/^previous/.test(direction)||
27151this.menu.isLastItem()&&/^next/.test(direction)){
27152if(!this.isMultiLine){
27153this._value(this.term);
27154}
27155this.menu.blur();
27156return;
27157}
27158this.menu[direction](event);
27159},
27160widget:function(){
27161return this.menu.element;
27162},
27163_value:function(){
27164return this.valueMethod.apply(this.element,arguments);
27165},
27166_keyEvent:function(keyEvent,event){
27167if(!this.isMultiLine||this.menu.element.is(":visible")){
27168this._move(keyEvent,event);
27169event.preventDefault();
27170}
27171},
27172_isContentEditable:function(element){
27173if(!element.length){
27174return false;
27175}
27176var editable=element.prop("contentEditable");
27177if(editable==="inherit"){
27178return this._isContentEditable(element.parent());
27179}
27180return editable==="true";
27181}
27182});
27183$.extend($.ui.autocomplete,{
27184escapeRegex:function(value){
27185return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");
27186},
27187filter:function(array,term){
27188var matcher=new RegExp($.ui.autocomplete.escapeRegex(term),"i");
27189return $.grep(array,function(value){
27190return matcher.test(value.label||value.value||value);
27191});
27192}
27193});
27194$.widget("ui.autocomplete",$.ui.autocomplete,{
27195options:{
27196messages:{
27197noResults:"No search results.",
27198results:function(amount){
27199return amount+(amount>1?" results are":" result is")+
27200" available, use up and down arrow keys to navigate.";
27201}
27202}
27203},
27204__response:function(content){
27205var message;
27206this._superApply(arguments);
27207if(this.options.disabled||this.cancelSearch){
27208return;
27209}
27210if(content&&content.length){
27211message=this.options.messages.results(content.length);
27212}else{
27213message=this.options.messages.noResults;
27214}
27215clearTimeout(this.liveRegionTimer);
27216this.liveRegionTimer=this._delay(function(){
27217this.liveRegion.html($("<div>").text(message));
27218},100);
27219}
27220});
27221var widgetsAutocomplete=$.ui.autocomplete;
27222var controlgroupCornerRegex=/ui-corner-([a-z]){2,6}/g;
27223var widgetsControlgroup=$.widget("ui.controlgroup",{
27224version:"1.13.2",
27225defaultElement:"<div>",
27226options:{
27227direction:"horizontal",
27228disabled:null,
27229onlyVisible:true,
27230items:{
27231"button":"input[type=button], input[type=submit], input[type=reset], button, a",
27232"controlgroupLabel":".ui-controlgroup-label",
27233"checkboxradio":"input[type='checkbox'], input[type='radio']",
27234"selectmenu":"select",
27235"spinner":".ui-spinner-input"
27236}
27237},
27238_create:function(){
27239this._enhance();
27240},
27241_enhance:function(){
27242this.element.attr("role","toolbar");
27243this.refresh();
27244},
27245_destroy:function(){
27246this._callChildMethod("destroy");
27247this.childWidgets.removeData("ui-controlgroup-data");
27248this.element.removeAttr("role");
27249if(this.options.items.controlgroupLabel){
27250this.element
27251.find(this.options.items.controlgroupLabel)
27252.find(".ui-controlgroup-label-contents")
27253.contents().unwrap();
27254}
27255},
27256_initWidgets:function(){
27257var that=this,
27258childWidgets=[];
27259$.each(this.options.items,function(widget,selector){
27260var labels;
27261var options={};
27262if(!selector){
27263return;
27264}
27265if(widget==="controlgroupLabel"){
27266labels=that.element.find(selector);
27267labels.each(function(){
27268var element=$(this);
27269if(element.children(".ui-controlgroup-label-contents").length){
27270return;
27271}
27272element.contents()
27273.wrapAll("<span class='ui-controlgroup-label-contents'></span>");
27274});
27275that._addClass(labels,null,"ui-widget ui-widget-content ui-state-default");
27276childWidgets=childWidgets.concat(labels.get());
27277return;
27278}
27279if(!$.fn[widget]){
27280return;
27281}
27282if(that["_"+widget+"Options"]){
27283options=that["_"+widget+"Options"]("middle");
27284}else{
27285options={classes:{}};
27286}
27287that.element
27288.find(selector)
27289.each(function(){
27290var element=$(this);
27291var instance=element[widget]("instance");
27292var instanceOptions=$.widget.extend({},options);
27293if(widget==="button"&&element.parent(".ui-spinner").length){
27294return;
27295}
27296if(!instance){
27297instance=element[widget]()[widget]("instance");
27298}
27299if(instance){
27300instanceOptions.classes=
27301that._resolveClassesValues(instanceOptions.classes,instance);
27302}
27303element[widget](instanceOptions);
27304var widgetElement=element[widget]("widget");
27305$.data(widgetElement[0],"ui-controlgroup-data",
27306instance?instance:element[widget]("instance"));
27307childWidgets.push(widgetElement[0]);
27308});
27309});
27310this.childWidgets=$($.uniqueSort(childWidgets));
27311this._addClass(this.childWidgets,"ui-controlgroup-item");
27312},
27313_callChildMethod:function(method){
27314this.childWidgets.each(function(){
27315var element=$(this),
27316data=element.data("ui-controlgroup-data");
27317if(data&&data[method]){
27318data[method]();
27319}
27320});
27321},
27322_updateCornerClass:function(element,position){
27323var remove="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all";
27324var add=this._buildSimpleOptions(position,"label").classes.label;
27325this._removeClass(element,null,remove);
27326this._addClass(element,null,add);
27327},
27328_buildSimpleOptions:function(position,key){
27329var direction=this.options.direction==="vertical";
27330var result={
27331classes:{}
27332};
27333result.classes[key]={
27334"middle":"",
27335"first":"ui-corner-"+(direction?"top":"left"),
27336"last":"ui-corner-"+(direction?"bottom":"right"),
27337"only":"ui-corner-all"
27338}[position];
27339return result;
27340},
27341_spinnerOptions:function(position){
27342var options=this._buildSimpleOptions(position,"ui-spinner");
27343options.classes["ui-spinner-up"]="";
27344options.classes["ui-spinner-down"]="";
27345return options;
27346},
27347_buttonOptions:function(position){
27348return this._buildSimpleOptions(position,"ui-button");
27349},
27350_checkboxradioOptions:function(position){
27351return this._buildSimpleOptions(position,"ui-checkboxradio-label");
27352},
27353_selectmenuOptions:function(position){
27354var direction=this.options.direction==="vertical";
27355return{
27356width:direction?"auto":false,
27357classes:{
27358middle:{
27359"ui-selectmenu-button-open":"",
27360"ui-selectmenu-button-closed":""
27361},
27362first:{
27363"ui-selectmenu-button-open":"ui-corner-"+(direction?"top":"tl"),
27364"ui-selectmenu-button-closed":"ui-corner-"+(direction?"top":"left")
27365},
27366last:{
27367"ui-selectmenu-button-open":direction?"":"ui-corner-tr",
27368"ui-selectmenu-button-closed":"ui-corner-"+(direction?"bottom":"right")
27369},
27370only:{
27371"ui-selectmenu-button-open":"ui-corner-top",
27372"ui-selectmenu-button-closed":"ui-corner-all"
27373}
27374}[position]
27375};
27376},
27377_resolveClassesValues:function(classes,instance){
27378var result={};
27379$.each(classes,function(key){
27380var current=instance.options.classes[key]||"";
27381current=String.prototype.trim.call(current.replace(controlgroupCornerRegex,""));
27382result[key]=(current+" "+classes[key]).replace(/\s+/g," ");
27383});
27384return result;
27385},
27386_setOption:function(key,value){
27387if(key==="direction"){
27388this._removeClass("ui-controlgroup-"+this.options.direction);
27389}
27390this._super(key,value);
27391if(key==="disabled"){
27392this._callChildMethod(value?"disable":"enable");
27393return;
27394}
27395this.refresh();
27396},
27397refresh:function(){
27398var children,
27399that=this;
27400this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);
27401if(this.options.direction==="horizontal"){
27402this._addClass(null,"ui-helper-clearfix");
27403}
27404this._initWidgets();
27405children=this.childWidgets;
27406if(this.options.onlyVisible){
27407children=children.filter(":visible");
27408}
27409if(children.length){
27410$.each(["first","last"],function(index,value){
27411var instance=children[value]().data("ui-controlgroup-data");
27412if(instance&&that["_"+instance.widgetName+"Options"]){
27413var options=that["_"+instance.widgetName+"Options"](
27414children.length===1?"only":value
27415);
27416options.classes=that._resolveClassesValues(options.classes,instance);
27417instance.element[instance.widgetName](options);
27418}else{
27419that._updateCornerClass(children[value](),value);
27420}
27421});
27422this._callChildMethod("refresh");
27423}
27424}
27425});
27426$.widget("ui.checkboxradio",[$.ui.formResetMixin,{
27427version:"1.13.2",
27428options:{
27429disabled:null,
27430label:null,
27431icon:true,
27432classes:{
27433"ui-checkboxradio-label":"ui-corner-all",
27434"ui-checkboxradio-icon":"ui-corner-all"
27435}
27436},
27437_getCreateOptions:function(){
27438var disabled,labels,labelContents;
27439var options=this._super()||{};
27440this._readType();
27441labels=this.element.labels();
27442this.label=$(labels[labels.length-1]);
27443if(!this.label.length){
27444$.error("No label found for checkboxradio widget");
27445}
27446this.originalLabel="";
27447labelContents=this.label.contents().not(this.element[0]);
27448if(labelContents.length){
27449this.originalLabel+=labelContents
27450.clone()
27451.wrapAll("<div></div>")
27452.parent()
27453.html();
27454}
27455if(this.originalLabel){
27456options.label=this.originalLabel;
27457}
27458disabled=this.element[0].disabled;
27459if(disabled!=null){
27460options.disabled=disabled;
27461}
27462return options;
27463},
27464_create:function(){
27465var checked=this.element[0].checked;
27466this._bindFormResetHandler();
27467if(this.options.disabled==null){
27468this.options.disabled=this.element[0].disabled;
27469}
27470this._setOption("disabled",this.options.disabled);
27471this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");
27472this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");
27473if(this.type==="radio"){
27474this._addClass(this.label,"ui-checkboxradio-radio-label");
27475}
27476if(this.options.label&&this.options.label!==this.originalLabel){
27477this._updateLabel();
27478}else if(this.originalLabel){
27479this.options.label=this.originalLabel;
27480}
27481this._enhance();
27482if(checked){
27483this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active");
27484}
27485this._on({
27486change:"_toggleClasses",
27487focus:function(){
27488this._addClass(this.label,null,"ui-state-focus ui-visual-focus");
27489},
27490blur:function(){
27491this._removeClass(this.label,null,"ui-state-focus ui-visual-focus");
27492}
27493});
27494},
27495_readType:function(){
27496var nodeName=this.element[0].nodeName.toLowerCase();
27497this.type=this.element[0].type;
27498if(nodeName!=="input"||!/radio|checkbox/.test(this.type)){
27499$.error("Can't create checkboxradio on element.nodeName="+nodeName+
27500" and element.type="+this.type);
27501}
27502},
27503_enhance:function(){
27504this._updateIcon(this.element[0].checked);
27505},
27506widget:function(){
27507return this.label;
27508},
27509_getRadioGroup:function(){
27510var group;
27511var name=this.element[0].name;
27512var nameSelector="input[name='"+$.escapeSelector(name)+"']";
27513if(!name){
27514return $([]);
27515}
27516if(this.form.length){
27517group=$(this.form[0].elements).filter(nameSelector);
27518}else{
27519group=$(nameSelector).filter(function(){
27520return $(this)._form().length===0;
27521});
27522}
27523return group.not(this.element);
27524},
27525_toggleClasses:function(){
27526var checked=this.element[0].checked;
27527this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",checked);
27528if(this.options.icon&&this.type==="checkbox"){
27529this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",checked)
27530._toggleClass(this.icon,null,"ui-icon-blank",!checked);
27531}
vendor: 4,157 bytes, lines 27532-27705
27532if(this.type==="radio"){
27533this._getRadioGroup()
27534.each(function(){
27535var instance=$(this).checkboxradio("instance");
27536if(instance){
27537instance._removeClass(instance.label,
27538"ui-checkboxradio-checked","ui-state-active");
27539}
27540});
27541}
27542},
27543_destroy:function(){
27544this._unbindFormResetHandler();
27545if(this.icon){
27546this.icon.remove();
27547this.iconSpace.remove();
27548}
27549},
27550_setOption:function(key,value){
27551if(key==="label"&&!value){
27552return;
27553}
27554this._super(key,value);
27555if(key==="disabled"){
27556this._toggleClass(this.label,null,"ui-state-disabled",value);
27557this.element[0].disabled=value;
27558return;
27559}
27560this.refresh();
27561},
27562_updateIcon:function(checked){
27563var toAdd="ui-icon ui-icon-background ";
27564if(this.options.icon){
27565if(!this.icon){
27566this.icon=$("<span>");
27567this.iconSpace=$("<span> </span>");
27568this._addClass(this.iconSpace,"ui-checkboxradio-icon-space");
27569}
27570if(this.type==="checkbox"){
27571toAdd+=checked?"ui-icon-check ui-state-checked":"ui-icon-blank";
27572this._removeClass(this.icon,null,checked?"ui-icon-blank":"ui-icon-check");
27573}else{
27574toAdd+="ui-icon-blank";
27575}
27576this._addClass(this.icon,"ui-checkboxradio-icon",toAdd);
27577if(!checked){
27578this._removeClass(this.icon,null,"ui-icon-check ui-state-checked");
27579}
27580this.icon.prependTo(this.label).after(this.iconSpace);
27581}else if(this.icon!==undefined){
27582this.icon.remove();
27583this.iconSpace.remove();
27584delete this.icon;
27585}
27586},
27587_updateLabel:function(){
27588var contents=this.label.contents().not(this.element[0]);
27589if(this.icon){
27590contents=contents.not(this.icon[0]);
27591}
27592if(this.iconSpace){
27593contents=contents.not(this.iconSpace[0]);
27594}
27595contents.remove();
27596this.label.append(this.options.label);
27597},
27598refresh:function(){
27599var checked=this.element[0].checked,
27600isDisabled=this.element[0].disabled;
27601this._updateIcon(checked);
27602this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",checked);
27603if(this.options.label!==null){
27604this._updateLabel();
27605}
27606if(isDisabled!==this.options.disabled){
27607this._setOptions({"disabled":isDisabled});
27608}
27609}
27610}]);
27611var widgetsCheckboxradio=$.ui.checkboxradio;
27612$.widget("ui.button",{
27613version:"1.13.2",
27614defaultElement:"<button>",
27615options:{
27616classes:{
27617"ui-button":"ui-corner-all"
27618},
27619disabled:null,
27620icon:null,
27621iconPosition:"beginning",
27622label:null,
27623showLabel:true
27624},
27625_getCreateOptions:function(){
27626var disabled,
27627options=this._super()||{};
27628this.isInput=this.element.is("input");
27629disabled=this.element[0].disabled;
27630if(disabled!=null){
27631options.disabled=disabled;
27632}
27633this.originalLabel=this.isInput?this.element.val():this.element.html();
27634if(this.originalLabel){
27635options.label=this.originalLabel;
27636}
27637return options;
27638},
27639_create:function(){
27640if(!this.option.showLabel&!this.options.icon){
27641this.options.showLabel=true;
27642}
27643if(this.options.disabled==null){
27644this.options.disabled=this.element[0].disabled||false;
27645}
27646this.hasTitle=!!this.element.attr("title");
27647if(this.options.label&&this.options.label!==this.originalLabel){
27648if(this.isInput){
27649this.element.val(this.options.label);
27650}else{
27651this.element.html(this.options.label);
27652}
27653}
27654this._addClass("ui-button","ui-widget");
27655this._setOption("disabled",this.options.disabled);
27656this._enhance();
27657if(this.element.is("a")){
27658this._on({
27659"keyup":function(event){
27660if(event.keyCode===$.ui.keyCode.SPACE){
27661event.preventDefault();
27662if(this.element[0].click){
27663this.element[0].click();
27664}else{
27665this.element.trigger("click");
27666}
27667}
27668}
27669});
27670}
27671},
27672_enhance:function(){
27673if(!this.element.is("button")){
27674this.element.attr("role","button");
27675}
27676if(this.options.icon){
27677this._updateIcon("icon",this.options.icon);
27678this._updateTooltip();
27679}
27680},
27681_updateTooltip:function(){
27682this.title=this.element.attr("title");
27683if(!this.options.showLabel&&!this.title){
27684this.element.attr("title",this.options.label);
27685}
27686},
27687_updateIcon:function(option,value){
27688var icon=option!=="iconPosition",
27689position=icon?this.options.iconPosition:value,
27690displayBlock=position==="top"||position==="bottom";
27691if(!this.icon){
27692this.icon=$("<span>");
27693this._addClass(this.icon,"ui-button-icon","ui-icon");
27694if(!this.options.showLabel){
27695this._addClass("ui-button-icon-only");
27696}
27697}else if(icon){
27698this._removeClass(this.icon,null,this.options.icon);
27699}
27700if(icon){
27701this._addClass(this.icon,null,value);
27702}
27703this._attachIcon(position);
27704if(displayBlock){
27705this._addClass(this.icon,null,"ui-widget-icon-block");
vendor: 6,490 bytes, lines 27706-27969
27706if(this.iconSpace){
27707this.iconSpace.remove();
27708}
27709}else{
27710if(!this.iconSpace){
27711this.iconSpace=$("<span> </span>");
27712this._addClass(this.iconSpace,"ui-button-icon-space");
27713}
27714this._removeClass(this.icon,null,"ui-wiget-icon-block");
27715this._attachIconSpace(position);
27716}
27717},
27718_destroy:function(){
27719this.element.removeAttr("role");
27720if(this.icon){
27721this.icon.remove();
27722}
27723if(this.iconSpace){
27724this.iconSpace.remove();
27725}
27726if(!this.hasTitle){
27727this.element.removeAttr("title");
27728}
27729},
27730_attachIconSpace:function(iconPosition){
27731this.icon[/^(?:end|bottom)/.test(iconPosition)?"before":"after"](this.iconSpace);
27732},
27733_attachIcon:function(iconPosition){
27734this.element[/^(?:end|bottom)/.test(iconPosition)?"append":"prepend"](this.icon);
27735},
27736_setOptions:function(options){
27737var newShowLabel=options.showLabel===undefined?
27738this.options.showLabel:
27739options.showLabel,
27740newIcon=options.icon===undefined?this.options.icon:options.icon;
27741if(!newShowLabel&&!newIcon){
27742options.showLabel=true;
27743}
27744this._super(options);
27745},
27746_setOption:function(key,value){
27747if(key==="icon"){
27748if(value){
27749this._updateIcon(key,value);
27750}else if(this.icon){
27751this.icon.remove();
27752if(this.iconSpace){
27753this.iconSpace.remove();
27754}
27755}
27756}
27757if(key==="iconPosition"){
27758this._updateIcon(key,value);
27759}
27760if(key==="showLabel"){
27761this._toggleClass("ui-button-icon-only",null,!value);
27762this._updateTooltip();
27763}
27764if(key==="label"){
27765if(this.isInput){
27766this.element.val(value);
27767}else{
27768this.element.html(value);
27769if(this.icon){
27770this._attachIcon(this.options.iconPosition);
27771this._attachIconSpace(this.options.iconPosition);
27772}
27773}
27774}
27775this._super(key,value);
27776if(key==="disabled"){
27777this._toggleClass(null,"ui-state-disabled",value);
27778this.element[0].disabled=value;
27779if(value){
27780this.element.trigger("blur");
27781}
27782}
27783},
27784refresh:function(){
27785var isDisabled=this.element.is("input, button")?
27786this.element[0].disabled:this.element.hasClass("ui-button-disabled");
27787if(isDisabled!==this.options.disabled){
27788this._setOptions({disabled:isDisabled});
27789}
27790this._updateTooltip();
27791}
27792});
27793if($.uiBackCompat!==false){
27794$.widget("ui.button",$.ui.button,{
27795options:{
27796text:true,
27797icons:{
27798primary:null,
27799secondary:null
27800}
27801},
27802_create:function(){
27803if(this.options.showLabel&&!this.options.text){
27804this.options.showLabel=this.options.text;
27805}
27806if(!this.options.showLabel&&this.options.text){
27807this.options.text=this.options.showLabel;
27808}
27809if(!this.options.icon&&(this.options.icons.primary||
27810this.options.icons.secondary)){
27811if(this.options.icons.primary){
27812this.options.icon=this.options.icons.primary;
27813}else{
27814this.options.icon=this.options.icons.secondary;
27815this.options.iconPosition="end";
27816}
27817}else if(this.options.icon){
27818this.options.icons.primary=this.options.icon;
27819}
27820this._super();
27821},
27822_setOption:function(key,value){
27823if(key==="text"){
27824this._super("showLabel",value);
27825return;
27826}
27827if(key==="showLabel"){
27828this.options.text=value;
27829}
27830if(key==="icon"){
27831this.options.icons.primary=value;
27832}
27833if(key==="icons"){
27834if(value.primary){
27835this._super("icon",value.primary);
27836this._super("iconPosition","beginning");
27837}else if(value.secondary){
27838this._super("icon",value.secondary);
27839this._super("iconPosition","end");
27840}
27841}
27842this._superApply(arguments);
27843}
27844});
27845$.fn.button=(function(orig){
27846return function(options){
27847var isMethodCall=typeof options==="string";
27848var args=Array.prototype.slice.call(arguments,1);
27849var returnValue=this;
27850if(isMethodCall){
27851if(!this.length&&options==="instance"){
27852returnValue=undefined;
27853}else{
27854this.each(function(){
27855var methodValue;
27856var type=$(this).attr("type");
27857var name=type!=="checkbox"&&type!=="radio"?
27858"button":
27859"checkboxradio";
27860var instance=$.data(this,"ui-"+name);
27861if(options==="instance"){
27862returnValue=instance;
27863return false;
27864}
27865if(!instance){
27866return $.error("cannot call methods on button"+
27867" prior to initialization; "+
27868"attempted to call method '"+options+"'");
27869}
27870if(typeof instance[options]!=="function"||
27871options.charAt(0)==="_"){
27872return $.error("no such method '"+options+"' for button"+
27873" widget instance");
27874}
27875methodValue=instance[options].apply(instance,args);
27876if(methodValue!==instance&&methodValue!==undefined){
27877returnValue=methodValue&&methodValue.jquery?
27878returnValue.pushStack(methodValue.get()):
27879methodValue;
27880return false;
27881}
27882});
27883}
27884}else{
27885if(args.length){
27886options=$.widget.extend.apply(null,[options].concat(args));
27887}
27888this.each(function(){
27889var type=$(this).attr("type");
27890var name=type!=="checkbox"&&type!=="radio"?"button":"checkboxradio";
27891var instance=$.data(this,"ui-"+name);
27892if(instance){
27893instance.option(options||{});
27894if(instance._init){
27895instance._init();
27896}
27897}else{
27898if(name==="button"){
27899orig.call($(this),options);
27900return;
27901}
27902$(this).checkboxradio($.extend({icon:false},options));
27903}
27904});
27905}
27906return returnValue;
27907};
27908})($.fn.button);
27909$.fn.buttonset=function(){
27910if(!$.ui.controlgroup){
27911$.error("Controlgroup widget missing");
27912}
27913if(arguments[0]==="option"&&arguments[1]==="items"&&arguments[2]){
27914return this.controlgroup.apply(this,
27915[arguments[0],"items.button",arguments[2]]);
27916}
27917if(arguments[0]==="option"&&arguments[1]==="items"){
27918return this.controlgroup.apply(this,[arguments[0],"items.button"]);
27919}
27920if(typeof arguments[0]==="object"&&arguments[0].items){
27921arguments[0].items={
27922button:arguments[0].items
27923};
27924}
27925return this.controlgroup.apply(this,arguments);
27926};
27927}
27928var widgetsButton=$.ui.button;
27929$.extend($.ui,{datepicker:{version:"1.13.2"}});
27930var datepicker_instActive;
27931function datepicker_getZindex(elem){
27932var position,value;
27933while(elem.length&&elem[0]!==document){
27934position=elem.css("position");
27935if(position==="absolute"||position==="relative"||position==="fixed"){
27936value=parseInt(elem.css("zIndex"),10);
27937if(!isNaN(value)&&value!==0){
27938return value;
27939}
27940}
27941elem=elem.parent();
27942}
27943return 0;
27944}
27945function Datepicker(){
27946this._curInst=null;
27947this._keyEvent=false;
27948this._disabledInputs=[];
27949this._datepickerShowing=false;
27950this._inDialog=false;
27951this._mainDivId="ui-datepicker-div";
27952this._inlineClass="ui-datepicker-inline";
27953this._appendClass="ui-datepicker-append";
27954this._triggerClass="ui-datepicker-trigger";
27955this._dialogClass="ui-datepicker-dialog";
27956this._disableClass="ui-datepicker-disabled";
27957this._unselectableClass="ui-datepicker-unselectable";
27958this._currentClass="ui-datepicker-current-day";
27959this._dayOverClass="ui-datepicker-days-cell-over";
27960this.regional=[];
27961this.regional[""]={
27962closeText:"Done",
27963prevText:"Prev",
27964nextText:"Next",
27965currentText:"Today",
27966monthNames:["January","February","March","April","May","June",
27967"July","August","September","October","November","December"],
27968monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
27969dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 4,354 bytes, lines 27969-28136
27969ay","Saturday"],
27970dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
27971dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],
27972weekHeader:"Wk",
27973dateFormat:"mm/dd/yy",
27974firstDay:0,
27975isRTL:false,
27976showMonthAfterYear:false,
27977yearSuffix:"",
27978selectMonthLabel:"Select month",
27979selectYearLabel:"Select year"
27980};
27981this._defaults={
27982showOn:"focus",
27983showAnim:"fadeIn",
27984showOptions:{},
27985defaultDate:null,
27986appendText:"",
27987buttonText:"...",
27988buttonImage:"",
27989buttonImageOnly:false,
27990hideIfNoPrevNext:false,
27991navigationAsDateFormat:false,
27992gotoCurrent:false,
27993changeMonth:false,
27994changeYear:false,
27995yearRange:"c-10:c+10",
27996showOtherMonths:false,
27997selectOtherMonths:false,
27998showWeek:false,
27999calculateWeek:this.iso8601Week,
28000shortYearCutoff:"+10",
28001minDate:null,
28002maxDate:null,
28003duration:"fast",
28004beforeShowDay:null,
28005beforeShow:null,
28006onSelect:null,
28007onChangeMonthYear:null,
28008onClose:null,
28009onUpdateDatepicker:null,
28010numberOfMonths:1,
28011showCurrentAtPos:0,
28012stepMonths:1,
28013stepBigMonths:12,
28014altField:"",
28015altFormat:"",
28016constrainInput:true,
28017showButtonPanel:false,
28018autoSize:false,
28019disabled:false
28020};
28021$.extend(this._defaults,this.regional[""]);
28022this.regional.en=$.extend(true,{},this.regional[""]);
28023this.regional["en-US"]=$.extend(true,{},this.regional.en);
28024this.dpDiv=datepicker_bindHover($("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
28025}
28026$.extend(Datepicker.prototype,{
28027markerClassName:"hasDatepicker",
28028maxRows:4,
28029_widgetDatepicker:function(){
28030return this.dpDiv;
28031},
28032setDefaults:function(settings){
28033datepicker_extendRemove(this._defaults,settings||{});
28034return this;
28035},
28036_attachDatepicker:function(target,settings){
28037var nodeName,inline,inst;
28038nodeName=target.nodeName.toLowerCase();
28039inline=(nodeName==="div"||nodeName==="span");
28040if(!target.id){
28041this.uuid+=1;
28042target.id="dp"+this.uuid;
28043}
28044inst=this._newInst($(target),inline);
28045inst.settings=$.extend({},settings||{});
28046if(nodeName==="input"){
28047this._connectDatepicker(target,inst);
28048}else if(inline){
28049this._inlineDatepicker(target,inst);
28050}
28051},
28052_newInst:function(target,inline){
28053var id=target[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");
28054return{id:id,input:target,
28055selectedDay:0,selectedMonth:0,selectedYear:0,
28056drawMonth:0,drawYear:0,
28057inline:inline,
28058dpDiv:(!inline?this.dpDiv:
28059datepicker_bindHover($("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))};
28060},
28061_connectDatepicker:function(target,inst){
28062var input=$(target);
28063inst.append=$([]);
28064inst.trigger=$([]);
28065if(input.hasClass(this.markerClassName)){
28066return;
28067}
28068this._attachments(input,inst);
28069input.addClass(this.markerClassName).on("keydown",this._doKeyDown).
28070on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);
28071this._autoSize(inst);
28072$.data(target,"datepicker",inst);
28073if(inst.settings.disabled){
28074this._disableDatepicker(target);
28075}
28076},
28077_attachments:function(input,inst){
28078var showOn,buttonText,buttonImage,
28079appendText=this._get(inst,"appendText"),
28080isRTL=this._get(inst,"isRTL");
28081if(inst.append){
28082inst.append.remove();
28083}
28084if(appendText){
28085inst.append=$("<span>")
28086.addClass(this._appendClass)
28087.text(appendText);
28088input[isRTL?"before":"after"](inst.append);
28089}
28090input.off("focus",this._showDatepicker);
28091if(inst.trigger){
28092inst.trigger.remove();
28093}
28094showOn=this._get(inst,"showOn");
28095if(showOn==="focus"||showOn==="both"){
28096input.on("focus",this._showDatepicker);
28097}
28098if(showOn==="button"||showOn==="both"){
28099buttonText=this._get(inst,"buttonText");
28100buttonImage=this._get(inst,"buttonImage");
28101const buttonPlainText=buttonImage?$('<div></div>').html(buttonText).textContent:'';
28102if(this._get(inst,"buttonImageOnly")){
28103inst.trigger=$("<img>")
28104.addClass(this._triggerClass)
28105.attr({
28106src:buttonImage,
28107alt:buttonPlainText,
28108title:buttonPlainText
28109});
28110}else{
28111inst.trigger=$("<button type='button'>")
28112.addClass(this._triggerClass);
28113if(buttonImage){
28114inst.trigger.html(
28115$("<img>")
28116.attr({
28117src:buttonImage,
28118alt:buttonPlainText,
28119title:buttonPlainText
28120})
28121);
28122}else{
28123inst.trigger.html(buttonText);
28124}
28125}
28126input[isRTL?"before":"after"](inst.trigger);
28127inst.trigger.on("click",function(){
28128if($.datepicker._datepickerShowing&&$.datepicker._lastInput===input[0]){
28129$.datepicker._hideDatepicker();
28130}else if($.datepicker._datepickerShowing&&$.datepicker._lastInput!==input[0]){
28131$.datepicker._hideDatepicker();
28132$.datepicker._showDatepicker(input[0]);
28133}else{
28134$.datepicker._showDatepicker(input[0]);
28135}
28136return false;
vendor: 4,202 bytes, lines 28137-28283
28137});
28138}
28139},
28140_autoSize:function(inst){
28141if(this._get(inst,"autoSize")&&!inst.inline){
28142var findMax,max,maxI,i,
28143date=new Date(2009,12-1,20),
28144dateFormat=this._get(inst,"dateFormat");
28145if(dateFormat.match(/[DM]/)){
28146findMax=function(names){
28147max=0;
28148maxI=0;
28149for(i=0;i<names.length;i++){
28150if(names[i].length>max){
28151max=names[i].length;
28152maxI=i;
28153}
28154}
28155return maxI;
28156};
28157date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?
28158"monthNames":"monthNamesShort"))));
28159date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?
28160"dayNames":"dayNamesShort")))+20-date.getDay());
28161}
28162inst.input.attr("size",this._formatDate(inst,date).length);
28163}
28164},
28165_inlineDatepicker:function(target,inst){
28166var divSpan=$(target);
28167if(divSpan.hasClass(this.markerClassName)){
28168return;
28169}
28170divSpan.addClass(this.markerClassName).append(inst.dpDiv);
28171$.data(target,"datepicker",inst);
28172this._setDate(inst,this._getDefaultDate(inst),true);
28173this._updateDatepicker(inst);
28174this._updateAlternate(inst);
28175if(inst.settings.disabled){
28176this._disableDatepicker(target);
28177}
28178inst.dpDiv.css("display","block");
28179},
28180_dialogDatepicker:function(input,date,onSelect,settings,pos){
28181var id,browserWidth,browserHeight,scrollX,scrollY,
28182inst=this._dialogInst;
28183if(!inst){
28184this.uuid+=1;
28185id="dp"+this.uuid;
28186this._dialogInput=$("<input type='text' id='"+id+
28187"' style='position: absolute; top: -100px; width: 0px;'/>");
28188this._dialogInput.on("keydown",this._doKeyDown);
28189$("body").append(this._dialogInput);
28190inst=this._dialogInst=this._newInst(this._dialogInput,false);
28191inst.settings={};
28192$.data(this._dialogInput[0],"datepicker",inst);
28193}
28194datepicker_extendRemove(inst.settings,settings||{});
28195date=(date&&date.constructor===Date?this._formatDate(inst,date):date);
28196this._dialogInput.val(date);
28197this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);
28198if(!this._pos){
28199browserWidth=document.documentElement.clientWidth;
28200browserHeight=document.documentElement.clientHeight;
28201scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;
28202scrollY=document.documentElement.scrollTop||document.body.scrollTop;
28203this._pos=
28204[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY];
28205}
28206this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");
28207inst.settings.onSelect=onSelect;
28208this._inDialog=true;
28209this.dpDiv.addClass(this._dialogClass);
28210this._showDatepicker(this._dialogInput[0]);
28211if($.blockUI){
28212$.blockUI(this.dpDiv);
28213}
28214$.data(this._dialogInput[0],"datepicker",inst);
28215return this;
28216},
28217_destroyDatepicker:function(target){
28218var nodeName,
28219$target=$(target),
28220inst=$.data(target,"datepicker");
28221if(!$target.hasClass(this.markerClassName)){
28222return;
28223}
28224nodeName=target.nodeName.toLowerCase();
28225$.removeData(target,"datepicker");
28226if(nodeName==="input"){
28227inst.append.remove();
28228inst.trigger.remove();
28229$target.removeClass(this.markerClassName).
28230off("focus",this._showDatepicker).
28231off("keydown",this._doKeyDown).
28232off("keypress",this._doKeyPress).
28233off("keyup",this._doKeyUp);
28234}else if(nodeName==="div"||nodeName==="span"){
28235$target.removeClass(this.markerClassName).empty();
28236}
28237if(datepicker_instActive===inst){
28238datepicker_instActive=null;
28239this._curInst=null;
28240}
28241},
28242_enableDatepicker:function(target){
28243var nodeName,inline,
28244$target=$(target),
28245inst=$.data(target,"datepicker");
28246if(!$target.hasClass(this.markerClassName)){
28247return;
28248}
28249nodeName=target.nodeName.toLowerCase();
28250if(nodeName==="input"){
28251target.disabled=false;
28252inst.trigger.filter("button").
28253each(function(){
28254this.disabled=false;
28255}).end().
28256filter("img").css({opacity:"1.0",cursor:""});
28257}else if(nodeName==="div"||nodeName==="span"){
28258inline=$target.children("."+this._inlineClass);
28259inline.children().removeClass("ui-state-disabled");
28260inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
28261prop("disabled",false);
28262}
28263this._disabledInputs=$.map(this._disabledInputs,
28264function(value){
28265return(value===target?null:value);
28266});
28267},
28268_disableDatepicker:function(target){
28269var nodeName,inline,
28270$target=$(target),
28271inst=$.data(target,"datepicker");
28272if(!$target.hasClass(this.markerClassName)){
28273return;
28274}
28275nodeName=target.nodeName.toLowerCase();
28276if(nodeName==="input"){
28277target.disabled=true;
28278inst.trigger.filter("button").
28279each(function(){
28280this.disabled=true;
28281}).end().
28282filter("img").css({opacity:"0.5",cursor:"default"});
28283}
vendor: 7,215 bytes, lines 28283-28536
28283else if(nodeName==="div"||nodeName==="span"){
28284inline=$target.children("."+this._inlineClass);
28285inline.children().addClass("ui-state-disabled");
28286inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
28287prop("disabled",true);
28288}
28289this._disabledInputs=$.map(this._disabledInputs,
28290function(value){
28291return(value===target?null:value);
28292});
28293this._disabledInputs[this._disabledInputs.length]=target;
28294},
28295_isDisabledDatepicker:function(target){
28296if(!target){
28297return false;
28298}
28299for(var i=0;i<this._disabledInputs.length;i++){
28300if(this._disabledInputs[i]===target){
28301return true;
28302}
28303}
28304return false;
28305},
28306_getInst:function(target){
28307try{
28308return $.data(target,"datepicker");
28309}catch(err){
28310throw"Missing instance data for this datepicker";
28311}
28312},
28313_optionDatepicker:function(target,name,value){
28314var settings,date,minDate,maxDate,
28315inst=this._getInst(target);
28316if(arguments.length===2&&typeof name==="string"){
28317return(name==="defaults"?$.extend({},$.datepicker._defaults):
28318(inst?(name==="all"?$.extend({},inst.settings):
28319this._get(inst,name)):null));
28320}
28321settings=name||{};
28322if(typeof name==="string"){
28323settings={};
28324settings[name]=value;
28325}
28326if(inst){
28327if(this._curInst===inst){
28328this._hideDatepicker();
28329}
28330date=this._getDateDatepicker(target,true);
28331minDate=this._getMinMaxDate(inst,"min");
28332maxDate=this._getMinMaxDate(inst,"max");
28333datepicker_extendRemove(inst.settings,settings);
28334if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){
28335inst.settings.minDate=this._formatDate(inst,minDate);
28336}
28337if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){
28338inst.settings.maxDate=this._formatDate(inst,maxDate);
28339}
28340if("disabled"in settings){
28341if(settings.disabled){
28342this._disableDatepicker(target);
28343}else{
28344this._enableDatepicker(target);
28345}
28346}
28347this._attachments($(target),inst);
28348this._autoSize(inst);
28349this._setDate(inst,date);
28350this._updateAlternate(inst);
28351this._updateDatepicker(inst);
28352}
28353},
28354_changeDatepicker:function(target,name,value){
28355this._optionDatepicker(target,name,value);
28356},
28357_refreshDatepicker:function(target){
28358var inst=this._getInst(target);
28359if(inst){
28360this._updateDatepicker(inst);
28361}
28362},
28363_setDateDatepicker:function(target,date){
28364var inst=this._getInst(target);
28365if(inst){
28366this._setDate(inst,date);
28367this._updateDatepicker(inst);
28368this._updateAlternate(inst);
28369}
28370},
28371_getDateDatepicker:function(target,noDefault){
28372var inst=this._getInst(target);
28373if(inst&&!inst.inline){
28374this._setDateFromField(inst,noDefault);
28375}
28376return(inst?this._getDate(inst):null);
28377},
28378_doKeyDown:function(event){
28379var onSelect,dateStr,sel,
28380inst=$.datepicker._getInst(event.target),
28381handled=true,
28382isRTL=inst.dpDiv.is(".ui-datepicker-rtl");
28383inst._keyEvent=true;
28384if($.datepicker._datepickerShowing){
28385switch(event.keyCode){
28386case 9:$.datepicker._hideDatepicker();
28387handled=false;
28388break;
28389case 13:sel=$("td."+$.datepicker._dayOverClass+":not(."+
28390$.datepicker._currentClass+")",inst.dpDiv);
28391if(sel[0]){
28392$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);
28393}
28394onSelect=$.datepicker._get(inst,"onSelect");
28395if(onSelect){
28396dateStr=$.datepicker._formatDate(inst);
28397onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);
28398}else{
28399$.datepicker._hideDatepicker();
28400}
28401return false;
28402case 27:$.datepicker._hideDatepicker();
28403break;
28404case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?
28405-$.datepicker._get(inst,"stepBigMonths"):
28406-$.datepicker._get(inst,"stepMonths")),"M");
28407break;
28408case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?
28409+$.datepicker._get(inst,"stepBigMonths"):
28410+$.datepicker._get(inst,"stepMonths")),"M");
28411break;
28412case 35:if(event.ctrlKey||event.metaKey){
28413$.datepicker._clearDate(event.target);
28414}
28415handled=event.ctrlKey||event.metaKey;
28416break;
28417case 36:if(event.ctrlKey||event.metaKey){
28418$.datepicker._gotoToday(event.target);
28419}
28420handled=event.ctrlKey||event.metaKey;
28421break;
28422case 37:if(event.ctrlKey||event.metaKey){
28423$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D");
28424}
28425handled=event.ctrlKey||event.metaKey;
28426if(event.originalEvent.altKey){
28427$.datepicker._adjustDate(event.target,(event.ctrlKey?
28428-$.datepicker._get(inst,"stepBigMonths"):
28429-$.datepicker._get(inst,"stepMonths")),"M");
28430}
28431break;
28432case 38:if(event.ctrlKey||event.metaKey){
28433$.datepicker._adjustDate(event.target,-7,"D");
28434}
28435handled=event.ctrlKey||event.metaKey;
28436break;
28437case 39:if(event.ctrlKey||event.metaKey){
28438$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D");
28439}
28440handled=event.ctrlKey||event.metaKey;
28441if(event.originalEvent.altKey){
28442$.datepicker._adjustDate(event.target,(event.ctrlKey?
28443+$.datepicker._get(inst,"stepBigMonths"):
28444+$.datepicker._get(inst,"stepMonths")),"M");
28445}
28446break;
28447case 40:if(event.ctrlKey||event.metaKey){
28448$.datepicker._adjustDate(event.target,+7,"D");
28449}
28450handled=event.ctrlKey||event.metaKey;
28451break;
28452default:handled=false;
28453}
28454}else if(event.keyCode===36&&event.ctrlKey){
28455$.datepicker._showDatepicker(this);
28456}else{
28457handled=false;
28458}
28459if(handled){
28460event.preventDefault();
28461event.stopPropagation();
28462}
28463},
28464_doKeyPress:function(event){
28465var chars,chr,
28466inst=$.datepicker._getInst(event.target);
28467if($.datepicker._get(inst,"constrainInput")){
28468chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));
28469chr=String.fromCharCode(event.charCode==null?event.keyCode:event.charCode);
28470return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1);
28471}
28472},
28473_doKeyUp:function(event){
28474var date,
28475inst=$.datepicker._getInst(event.target);
28476if(inst.input.val()!==inst.lastVal){
28477try{
28478date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),
28479(inst.input?inst.input.val():null),
28480$.datepicker._getFormatConfig(inst));
28481if(date){
28482$.datepicker._setDateFromField(inst);
28483$.datepicker._updateAlternate(inst);
28484$.datepicker._updateDatepicker(inst);
28485}
28486}catch(err){
28487}
28488}
28489return true;
28490},
28491_showDatepicker:function(input){
28492input=input.target||input;
28493if(input.nodeName.toLowerCase()!=="input"){
28494input=$("input",input.parentNode)[0];
28495}
28496if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput===input){
28497return;
28498}
28499var inst,beforeShow,beforeShowSettings,isFixed,
28500offset,showAnim,duration;
28501inst=$.datepicker._getInst(input);
28502if($.datepicker._curInst&&$.datepicker._curInst!==inst){
28503$.datepicker._curInst.dpDiv.stop(true,true);
28504if(inst&&$.datepicker._datepickerShowing){
28505$.datepicker._hideDatepicker($.datepicker._curInst.input[0]);
28506}
28507}
28508beforeShow=$.datepicker._get(inst,"beforeShow");
28509beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};
28510if(beforeShowSettings===false){
28511return;
28512}
28513datepicker_extendRemove(inst.settings,beforeShowSettings);
28514inst.lastVal=null;
28515$.datepicker._lastInput=input;
28516$.datepicker._setDateFromField(inst);
28517if($.datepicker._inDialog){
28518input.value="";
28519}
28520if(!$.datepicker._pos){
28521$.datepicker._pos=$.datepicker._findPos(input);
28522$.datepicker._pos[1]+=input.offsetHeight;
28523}
28524isFixed=false;
28525$(input).parents().each(function(){
28526isFixed|=$(this).css("position")==="fixed";
28527return!isFixed;
28528});
28529offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};
28530$.datepicker._pos=null;
28531inst.dpDiv.empty();
28532inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});
28533$.datepicker._updateDatepicker(inst);
28534offset=$.datepicker._checkOffset(inst,offset,isFixed);
28535inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?
28536"static":(isFixed?"fixed":"absolute")),display:"none",
vendor: 3,862 bytes, lines 28537-28642
28537left:offset.left+"px",top:offset.top+"px"});
28538if(!inst.inline){
28539showAnim=$.datepicker._get(inst,"showAnim");
28540duration=$.datepicker._get(inst,"duration");
28541inst.dpDiv.css("z-index",datepicker_getZindex($(input))+1);
28542$.datepicker._datepickerShowing=true;
28543if($.effects&&$.effects.effect[showAnim]){
28544inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration);
28545}else{
28546inst.dpDiv[showAnim||"show"](showAnim?duration:null);
28547}
28548if($.datepicker._shouldFocusInput(inst)){
28549inst.input.trigger("focus");
28550}
28551$.datepicker._curInst=inst;
28552}
28553},
28554_updateDatepicker:function(inst){
28555this.maxRows=4;
28556datepicker_instActive=inst;
28557inst.dpDiv.empty().append(this._generateHTML(inst));
28558this._attachHandlers(inst);
28559var origyearshtml,
28560numMonths=this._getNumberOfMonths(inst),
28561cols=numMonths[1],
28562width=17,
28563activeCell=inst.dpDiv.find("."+this._dayOverClass+" a"),
28564onUpdateDatepicker=$.datepicker._get(inst,"onUpdateDatepicker");
28565if(activeCell.length>0){
28566datepicker_handleMouseover.apply(activeCell.get(0));
28567}
28568inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
28569if(cols>1){
28570inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em");
28571}
28572inst.dpDiv[(numMonths[0]!==1||numMonths[1]!==1?"add":"remove")+
28573"Class"]("ui-datepicker-multi");
28574inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+
28575"Class"]("ui-datepicker-rtl");
28576if(inst===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(inst)){
28577inst.input.trigger("focus");
28578}
28579if(inst.yearshtml){
28580origyearshtml=inst.yearshtml;
28581setTimeout(function(){
28582if(origyearshtml===inst.yearshtml&&inst.yearshtml){
28583inst.dpDiv.find("select.ui-datepicker-year").first().replaceWith(inst.yearshtml);
28584}
28585origyearshtml=inst.yearshtml=null;
28586},0);
28587}
28588if(onUpdateDatepicker){
28589onUpdateDatepicker.apply((inst.input?inst.input[0]:null),[inst]);
28590}
28591},
28592_shouldFocusInput:function(inst){
28593return inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&!inst.input.is(":focus");
28594},
28595_checkOffset:function(inst,offset,isFixed){
28596var dpWidth=inst.dpDiv.outerWidth(),
28597dpHeight=inst.dpDiv.outerHeight(),
28598inputWidth=inst.input?inst.input.outerWidth():0,
28599inputHeight=inst.input?inst.input.outerHeight():0,
28600viewWidth=document.documentElement.clientWidth+(isFixed?0:$(document).scrollLeft()),
28601viewHeight=document.documentElement.clientHeight+(isFixed?0:$(document).scrollTop());
28602offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);
28603offset.left-=(isFixed&&offset.left===inst.input.offset().left)?$(document).scrollLeft():0;
28604offset.top-=(isFixed&&offset.top===(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;
28605offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?
28606Math.abs(offset.left+dpWidth-viewWidth):0);
28607offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?
28608Math.abs(dpHeight+inputHeight):0);
28609return offset;
28610},
28611_findPos:function(obj){
28612var position,
28613inst=this._getInst(obj),
28614isRTL=this._get(inst,"isRTL");
28615while(obj&&(obj.type==="hidden"||obj.nodeType!==1||$.expr.pseudos.hidden(obj))){
28616obj=obj[isRTL?"previousSibling":"nextSibling"];
28617}
28618position=$(obj).offset();
28619return[position.left,position.top];
28620},
28621_hideDatepicker:function(input){
28622var showAnim,duration,postProcess,onClose,
28623inst=this._curInst;
28624if(!inst||(input&&inst!==$.data(input,"datepicker"))){
28625return;
28626}
28627if(this._datepickerShowing){
28628showAnim=this._get(inst,"showAnim");
28629duration=this._get(inst,"duration");
28630postProcess=function(){
28631$.datepicker._tidyDialog(inst);
28632};
28633if($.effects&&($.effects.effect[showAnim]||$.effects[showAnim])){
28634inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess);
28635}else{
28636inst.dpDiv[(showAnim==="slideDown"?"slideUp":
28637(showAnim==="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess);
28638}
28639if(!showAnim){
28640postProcess();
28641}
28642this._datepickerShowing=false;
vendor: 30,065 bytes, lines 28643-29645
28643onClose=this._get(inst,"onClose");
28644if(onClose){
28645onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst]);
28646}
28647this._lastInput=null;
28648if(this._inDialog){
28649this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
28650if($.blockUI){
28651$.unblockUI();
28652$("body").append(this.dpDiv);
28653}
28654}
28655this._inDialog=false;
28656}
28657},
28658_tidyDialog:function(inst){
28659inst.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar");
28660},
28661_checkExternalClick:function(event){
28662if(!$.datepicker._curInst){
28663return;
28664}
28665var $target=$(event.target),
28666inst=$.datepicker._getInst($target[0]);
28667if((($target[0].id!==$.datepicker._mainDivId&&
28668$target.parents("#"+$.datepicker._mainDivId).length===0&&
28669!$target.hasClass($.datepicker.markerClassName)&&
28670!$target.closest("."+$.datepicker._triggerClass).length&&
28671$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)))||
28672($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==inst)){
28673$.datepicker._hideDatepicker();
28674}
28675},
28676_adjustDate:function(id,offset,period){
28677var target=$(id),
28678inst=this._getInst(target[0]);
28679if(this._isDisabledDatepicker(target[0])){
28680return;
28681}
28682this._adjustInstDate(inst,offset,period);
28683this._updateDatepicker(inst);
28684},
28685_gotoToday:function(id){
28686var date,
28687target=$(id),
28688inst=this._getInst(target[0]);
28689if(this._get(inst,"gotoCurrent")&&inst.currentDay){
28690inst.selectedDay=inst.currentDay;
28691inst.drawMonth=inst.selectedMonth=inst.currentMonth;
28692inst.drawYear=inst.selectedYear=inst.currentYear;
28693}else{
28694date=new Date();
28695inst.selectedDay=date.getDate();
28696inst.drawMonth=inst.selectedMonth=date.getMonth();
28697inst.drawYear=inst.selectedYear=date.getFullYear();
28698}
28699this._notifyChange(inst);
28700this._adjustDate(target);
28701},
28702_selectMonthYear:function(id,select,period){
28703var target=$(id),
28704inst=this._getInst(target[0]);
28705inst["selected"+(period==="M"?"Month":"Year")]=
28706inst["draw"+(period==="M"?"Month":"Year")]=
28707parseInt(select.options[select.selectedIndex].value,10);
28708this._notifyChange(inst);
28709this._adjustDate(target);
28710},
28711_selectDay:function(id,month,year,td){
28712var inst,
28713target=$(id);
28714if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){
28715return;
28716}
28717inst=this._getInst(target[0]);
28718inst.selectedDay=inst.currentDay=parseInt($("a",td).attr("data-date"));
28719inst.selectedMonth=inst.currentMonth=month;
28720inst.selectedYear=inst.currentYear=year;
28721this._selectDate(id,this._formatDate(inst,
28722inst.currentDay,inst.currentMonth,inst.currentYear));
28723},
28724_clearDate:function(id){
28725var target=$(id);
28726this._selectDate(target,"");
28727},
28728_selectDate:function(id,dateStr){
28729var onSelect,
28730target=$(id),
28731inst=this._getInst(target[0]);
28732dateStr=(dateStr!=null?dateStr:this._formatDate(inst));
28733if(inst.input){
28734inst.input.val(dateStr);
28735}
28736this._updateAlternate(inst);
28737onSelect=this._get(inst,"onSelect");
28738if(onSelect){
28739onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);
28740}else if(inst.input){
28741inst.input.trigger("change");
28742}
28743if(inst.inline){
28744this._updateDatepicker(inst);
28745}else{
28746this._hideDatepicker();
28747this._lastInput=inst.input[0];
28748if(typeof(inst.input[0])!=="object"){
28749inst.input.trigger("focus");
28750}
28751this._lastInput=null;
28752}
28753},
28754_updateAlternate:function(inst){
28755var altFormat,date,dateStr,
28756altField=this._get(inst,"altField");
28757if(altField){
28758altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");
28759date=this._getDate(inst);
28760dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));
28761$(document).find(altField).val(dateStr);
28762}
28763},
28764noWeekends:function(date){
28765var day=date.getDay();
28766return[(day>0&&day<6),""];
28767},
28768iso8601Week:function(date){
28769var time,
28770checkDate=new Date(date.getTime());
28771checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));
28772time=checkDate.getTime();
28773checkDate.setMonth(0);
28774checkDate.setDate(1);
28775return Math.floor(Math.round((time-checkDate)/86400000)/7)+1;
28776},
28777parseDate:function(format,value,settings){
28778if(format==null||value==null){
28779throw"Invalid arguments";
28780}
28781value=(typeof value==="object"?value.toString():value+"");
28782if(value===""){
28783return null;
28784}
28785var iFormat,dim,extra,
28786iValue=0,
28787shortYearCutoffTemp=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff,
28788shortYearCutoff=(typeof shortYearCutoffTemp!=="string"?shortYearCutoffTemp:
28789new Date().getFullYear()%100+parseInt(shortYearCutoffTemp,10)),
28790dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,
28791dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,
28792monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,
28793monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,
28794year=-1,
28795month=-1,
28796day=-1,
28797doy=-1,
28798literal=false,
28799date,
28800lookAhead=function(match){
28801var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);
28802if(matches){
28803iFormat++;
28804}
28805return matches;
28806},
28807getNumber=function(match){
28808var isDoubled=lookAhead(match),
28809size=(match==="@"?14:(match==="!"?20:
28810(match==="y"&&isDoubled?4:(match==="o"?3:2)))),
28811minSize=(match==="y"?size:1),
28812digits=new RegExp("^\\d{"+minSize+","+size+"}"),
28813num=value.substring(iValue).match(digits);
28814if(!num){
28815throw"Missing number at position "+iValue;
28816}
28817iValue+=num[0].length;
28818return parseInt(num[0],10);
28819},
28820getName=function(match,shortNames,longNames){
28821var index=-1,
28822names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){
28823return[[k,v]];
28824}).sort(function(a,b){
28825return-(a[1].length-b[1].length);
28826});
28827$.each(names,function(i,pair){
28828var name=pair[1];
28829if(value.substr(iValue,name.length).toLowerCase()===name.toLowerCase()){
28830index=pair[0];
28831iValue+=name.length;
28832return false;
28833}
28834});
28835if(index!==-1){
28836return index+1;
28837}else{
28838throw"Unknown name at position "+iValue;
28839}
28840},
28841checkLiteral=function(){
28842if(value.charAt(iValue)!==format.charAt(iFormat)){
28843throw"Unexpected literal at position "+iValue;
28844}
28845iValue++;
28846};
28847for(iFormat=0;iFormat<format.length;iFormat++){
28848if(literal){
28849if(format.charAt(iFormat)==="'"&&!lookAhead("'")){
28850literal=false;
28851}else{
28852checkLiteral();
28853}
28854}else{
28855switch(format.charAt(iFormat)){
28856case"d":
28857day=getNumber("d");
28858break;
28859case"D":
28860getName("D",dayNamesShort,dayNames);
28861break;
28862case"o":
28863doy=getNumber("o");
28864break;
28865case"m":
28866month=getNumber("m");
28867break;
28868case"M":
28869month=getName("M",monthNamesShort,monthNames);
28870break;
28871case"y":
28872year=getNumber("y");
28873break;
28874case"@":
28875date=new Date(getNumber("@"));
28876year=date.getFullYear();
28877month=date.getMonth()+1;
28878day=date.getDate();
28879break;
28880case"!":
28881date=new Date((getNumber("!")-this._ticksTo1970)/10000);
28882year=date.getFullYear();
28883month=date.getMonth()+1;
28884day=date.getDate();
28885break;
28886case"'":
28887if(lookAhead("'")){
28888checkLiteral();
28889}else{
28890literal=true;
28891}
28892break;
28893default:
28894checkLiteral();
28895}
28896}
28897}
28898if(iValue<value.length){
28899extra=value.substr(iValue);
28900if(!/^\s+/.test(extra)){
28901throw"Extra/unparsed characters found in date: "+extra;
28902}
28903}
28904if(year===-1){
28905year=new Date().getFullYear();
28906}else if(year<100){
28907year+=new Date().getFullYear()-new Date().getFullYear()%100+
28908(year<=shortYearCutoff?0:-100);
28909}
28910if(doy>-1){
28911month=1;
28912day=doy;
28913do{
28914dim=this._getDaysInMonth(year,month-1);
28915if(day<=dim){
28916break;
28917}
28918month++;
28919day-=dim;
28920}while(true);
28921}
28922date=this._daylightSavingAdjust(new Date(year,month-1,day));
28923if(date.getFullYear()!==year||date.getMonth()+1!==month||date.getDate()!==day){
28924throw"Invalid date";
28925}
28926return date;
28927},
28928ATOM:"yy-mm-dd",
28929COOKIE:"D, dd M yy",
28930ISO_8601:"yy-mm-dd",
28931RFC_822:"D, d M y",
28932RFC_850:"DD, dd-M-y",
28933RFC_1036:"D, d M y",
28934RFC_1123:"D, d M yy",
28935RFC_2822:"D, d M yy",
28936RSS:"D, d M y",
28937TICKS:"!",
28938TIMESTAMP:"@",
28939W3C:"yy-mm-dd",
28940_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+
28941Math.floor(1970/400))*24*60*60*10000000),
28942formatDate:function(format,date,settings){
28943if(!date){
28944return"";
28945}
28946var iFormat,
28947dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort,
28948dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames,
28949monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort,
28950monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames,
28951lookAhead=function(match){
28952var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);
28953if(matches){
28954iFormat++;
28955}
28956return matches;
28957},
28958formatNumber=function(match,value,len){
28959var num=""+value;
28960if(lookAhead(match)){
28961while(num.length<len){
28962num="0"+num;
28963}
28964}
28965return num;
28966},
28967formatName=function(match,value,shortNames,longNames){
28968return(lookAhead(match)?longNames[value]:shortNames[value]);
28969},
28970output="",
28971literal=false;
28972if(date){
28973for(iFormat=0;iFormat<format.length;iFormat++){
28974if(literal){
28975if(format.charAt(iFormat)==="'"&&!lookAhead("'")){
28976literal=false;
28977}else{
28978output+=format.charAt(iFormat);
28979}
28980}else{
28981switch(format.charAt(iFormat)){
28982case"d":
28983output+=formatNumber("d",date.getDate(),2);
28984break;
28985case"D":
28986output+=formatName("D",date.getDay(),dayNamesShort,dayNames);
28987break;
28988case"o":
28989output+=formatNumber("o",
28990Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000),3);
28991break;
28992case"m":
28993output+=formatNumber("m",date.getMonth()+1,2);
28994break;
28995case"M":
28996output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);
28997break;
28998case"y":
28999output+=(lookAhead("y")?date.getFullYear():
29000(date.getFullYear()%100<10?"0":"")+date.getFullYear()%100);
29001break;
29002case"@":
29003output+=date.getTime();
29004break;
29005case"!":
29006output+=date.getTime()*10000+this._ticksTo1970;
29007break;
29008case"'":
29009if(lookAhead("'")){
29010output+="'";
29011}else{
29012literal=true;
29013}
29014break;
29015default:
29016output+=format.charAt(iFormat);
29017}
29018}
29019}
29020}
29021return output;
29022},
29023_possibleChars:function(format){
29024var iFormat,
29025chars="",
29026literal=false,
29027lookAhead=function(match){
29028var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)===match);
29029if(matches){
29030iFormat++;
29031}
29032return matches;
29033};
29034for(iFormat=0;iFormat<format.length;iFormat++){
29035if(literal){
29036if(format.charAt(iFormat)==="'"&&!lookAhead("'")){
29037literal=false;
29038}else{
29039chars+=format.charAt(iFormat);
29040}
29041}else{
29042switch(format.charAt(iFormat)){
29043case"d":case"m":case"y":case"@":
29044chars+="0123456789";
29045break;
29046case"D":case"M":
29047return null;
29048case"'":
29049if(lookAhead("'")){
29050chars+="'";
29051}else{
29052literal=true;
29053}
29054break;
29055default:
29056chars+=format.charAt(iFormat);
29057}
29058}
29059}
29060return chars;
29061},
29062_get:function(inst,name){
29063return inst.settings[name]!==undefined?
29064inst.settings[name]:this._defaults[name];
29065},
29066_setDateFromField:function(inst,noDefault){
29067if(inst.input.val()===inst.lastVal){
29068return;
29069}
29070var dateFormat=this._get(inst,"dateFormat"),
29071dates=inst.lastVal=inst.input?inst.input.val():null,
29072defaultDate=this._getDefaultDate(inst),
29073date=defaultDate,
29074settings=this._getFormatConfig(inst);
29075try{
29076date=this.parseDate(dateFormat,dates,settings)||defaultDate;
29077}catch(event){
29078dates=(noDefault?"":dates);
29079}
29080inst.selectedDay=date.getDate();
29081inst.drawMonth=inst.selectedMonth=date.getMonth();
29082inst.drawYear=inst.selectedYear=date.getFullYear();
29083inst.currentDay=(dates?date.getDate():0);
29084inst.currentMonth=(dates?date.getMonth():0);
29085inst.currentYear=(dates?date.getFullYear():0);
29086this._adjustInstDate(inst);
29087},
29088_getDefaultDate:function(inst){
29089return this._restrictMinMax(inst,
29090this._determineDate(inst,this._get(inst,"defaultDate"),new Date()));
29091},
29092_determineDate:function(inst,date,defaultDate){
29093var offsetNumeric=function(offset){
29094var date=new Date();
29095date.setDate(date.getDate()+offset);
29096return date;
29097},
29098offsetString=function(offset){
29099try{
29100return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),
29101offset,$.datepicker._getFormatConfig(inst));
29102}catch(e){
29103}
29104var date=(offset.toLowerCase().match(/^c/)?
29105$.datepicker._getDate(inst):null)||new Date(),
29106year=date.getFullYear(),
29107month=date.getMonth(),
29108day=date.getDate(),
29109pattern=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
29110matches=pattern.exec(offset);
29111while(matches){
29112switch(matches[2]||"d"){
29113case"d":case"D":
29114day+=parseInt(matches[1],10);break;
29115case"w":case"W":
29116day+=parseInt(matches[1],10)*7;break;
29117case"m":case"M":
29118month+=parseInt(matches[1],10);
29119day=Math.min(day,$.datepicker._getDaysInMonth(year,month));
29120break;
29121case"y":case"Y":
29122year+=parseInt(matches[1],10);
29123day=Math.min(day,$.datepicker._getDaysInMonth(year,month));
29124break;
29125}
29126matches=pattern.exec(offset);
29127}
29128return new Date(year,month,day);
29129},
29130newDate=(date==null||date===""?defaultDate:(typeof date==="string"?offsetString(date):
29131(typeof date==="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));
29132newDate=(newDate&&newDate.toString()==="Invalid Date"?defaultDate:newDate);
29133if(newDate){
29134newDate.setHours(0);
29135newDate.setMinutes(0);
29136newDate.setSeconds(0);
29137newDate.setMilliseconds(0);
29138}
29139return this._daylightSavingAdjust(newDate);
29140},
29141_daylightSavingAdjust:function(date){
29142if(!date){
29143return null;
29144}
29145date.setHours(date.getHours()>12?date.getHours()+2:0);
29146return date;
29147},
29148_setDate:function(inst,date,noChange){
29149var clear=!date,
29150origMonth=inst.selectedMonth,
29151origYear=inst.selectedYear,
29152newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));
29153inst.selectedDay=inst.currentDay=newDate.getDate();
29154inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();
29155inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();
29156if((origMonth!==inst.selectedMonth||origYear!==inst.selectedYear)&&!noChange){
29157this._notifyChange(inst);
29158}
29159this._adjustInstDate(inst);
29160if(inst.input){
29161inst.input.val(clear?"":this._formatDate(inst));
29162}
29163},
29164_getDate:function(inst){
29165var startDate=(!inst.currentYear||(inst.input&&inst.input.val()==="")?null:
29166this._daylightSavingAdjust(new Date(
29167inst.currentYear,inst.currentMonth,inst.currentDay)));
29168return startDate;
29169},
29170_attachHandlers:function(inst){
29171var stepMonths=this._get(inst,"stepMonths"),
29172id="#"+inst.id.replace(/\\\\/g,"\\");
29173inst.dpDiv.find("[data-handler]").map(function(){
29174var handler={
29175prev:function(){
29176$.datepicker._adjustDate(id,-stepMonths,"M");
29177},
29178next:function(){
29179$.datepicker._adjustDate(id,+stepMonths,"M");
29180},
29181hide:function(){
29182$.datepicker._hideDatepicker();
29183},
29184today:function(){
29185$.datepicker._gotoToday(id);
29186},
29187selectDay:function(){
29188$.datepicker._selectDay(id,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);
29189return false;
29190},
29191selectMonth:function(){
29192$.datepicker._selectMonthYear(id,this,"M");
29193return false;
29194},
29195selectYear:function(){
29196$.datepicker._selectMonthYear(id,this,"Y");
29197return false;
29198}
29199};
29200$(this).on(this.getAttribute("data-event"),handler[this.getAttribute("data-handler")]);
29201});
29202},
29203_generateHTML:function(inst){
29204var maxDraw,prevText,prev,nextText,next,currentText,gotoDate,
29205controls,buttonPanel,firstDay,showWeek,dayNames,dayNamesMin,
29206monthNames,monthNamesShort,beforeShowDay,showOtherMonths,
29207selectOtherMonths,defaultDate,html,dow,row,group,col,selectedDate,
29208cornerClass,calender,thead,day,daysInMonth,leadDays,curRows,numRows,
29209printDate,dRow,tbody,daySettings,otherMonth,unselectable,
29210tempDate=new Date(),
29211today=this._daylightSavingAdjust(
29212new Date(tempDate.getFullYear(),tempDate.getMonth(),tempDate.getDate())),
29213isRTL=this._get(inst,"isRTL"),
29214showButtonPanel=this._get(inst,"showButtonPanel"),
29215hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext"),
29216navigationAsDateFormat=this._get(inst,"navigationAsDateFormat"),
29217numMonths=this._getNumberOfMonths(inst),
29218showCurrentAtPos=this._get(inst,"showCurrentAtPos"),
29219stepMonths=this._get(inst,"stepMonths"),
29220isMultiMonth=(numMonths[0]!==1||numMonths[1]!==1),
29221currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):
29222new Date(inst.currentYear,inst.currentMonth,inst.currentDay))),
29223minDate=this._getMinMaxDate(inst,"min"),
29224maxDate=this._getMinMaxDate(inst,"max"),
29225drawMonth=inst.drawMonth-showCurrentAtPos,
29226drawYear=inst.drawYear;
29227if(drawMonth<0){
29228drawMonth+=12;
29229drawYear--;
29230}
29231if(maxDate){
29232maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),
29233maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));
29234maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);
29235while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){
29236drawMonth--;
29237if(drawMonth<0){
29238drawMonth=11;
29239drawYear--;
29240}
29241}
29242}
29243inst.drawMonth=drawMonth;
29244inst.drawYear=drawYear;
29245prevText=this._get(inst,"prevText");
29246prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,
29247this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),
29248this._getFormatConfig(inst)));
29249if(this._canAdjustMonth(inst,-1,drawYear,drawMonth)){
29250prev=$("<a>")
29251.attr({
29252"class":"ui-datepicker-prev ui-corner-all",
29253"data-handler":"prev",
29254"data-event":"click",
29255title:prevText
29256})
29257.append(
29258$("<span>")
29259.addClass("ui-icon ui-icon-circle-triangle-"+
29260(isRTL?"e":"w"))
29261.text(prevText)
29262)[0].outerHTML;
29263}else if(hideIfNoPrevNext){
29264prev="";
29265}else{
29266prev=$("<a>")
29267.attr({
29268"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",
29269title:prevText
29270})
29271.append(
29272$("<span>")
29273.addClass("ui-icon ui-icon-circle-triangle-"+
29274(isRTL?"e":"w"))
29275.text(prevText)
29276)[0].outerHTML;
29277}
29278nextText=this._get(inst,"nextText");
29279nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,
29280this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),
29281this._getFormatConfig(inst)));
29282if(this._canAdjustMonth(inst,+1,drawYear,drawMonth)){
29283next=$("<a>")
29284.attr({
29285"class":"ui-datepicker-next ui-corner-all",
29286"data-handler":"next",
29287"data-event":"click",
29288title:nextText
29289})
29290.append(
29291$("<span>")
29292.addClass("ui-icon ui-icon-circle-triangle-"+
29293(isRTL?"w":"e"))
29294.text(nextText)
29295)[0].outerHTML;
29296}else if(hideIfNoPrevNext){
29297next="";
29298}else{
29299next=$("<a>")
29300.attr({
29301"class":"ui-datepicker-next ui-corner-all ui-state-disabled",
29302title:nextText
29303})
29304.append(
29305$("<span>")
29306.attr("class","ui-icon ui-icon-circle-triangle-"+
29307(isRTL?"w":"e"))
29308.text(nextText)
29309)[0].outerHTML;
29310}
29311currentText=this._get(inst,"currentText");
29312gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);
29313currentText=(!navigationAsDateFormat?currentText:
29314this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));
29315controls="";
29316if(!inst.inline){
29317controls=$("<button>")
29318.attr({
29319type:"button",
29320"class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all",
29321"data-handler":"hide",
29322"data-event":"click"
29323})
29324.text(this._get(inst,"closeText"))[0].outerHTML;
29325}
29326buttonPanel="";
29327if(showButtonPanel){
29328buttonPanel=$("<div class='ui-datepicker-buttonpane ui-widget-content'>")
29329.append(isRTL?controls:"")
29330.append(this._isInRange(inst,gotoDate)?
29331$("<button>")
29332.attr({
29333type:"button",
29334"class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all",
29335"data-handler":"today",
29336"data-event":"click"
29337})
29338.text(currentText):
29339"")
29340.append(isRTL?"":controls)[0].outerHTML;
29341}
29342firstDay=parseInt(this._get(inst,"firstDay"),10);
29343firstDay=(isNaN(firstDay)?0:firstDay);
29344showWeek=this._get(inst,"showWeek");
29345dayNames=this._get(inst,"dayNames");
29346dayNamesMin=this._get(inst,"dayNamesMin");
29347monthNames=this._get(inst,"monthNames");
29348monthNamesShort=this._get(inst,"monthNamesShort");
29349beforeShowDay=this._get(inst,"beforeShowDay");
29350showOtherMonths=this._get(inst,"showOtherMonths");
29351selectOtherMonths=this._get(inst,"selectOtherMonths");
29352defaultDate=this._getDefaultDate(inst);
29353html="";
29354for(row=0;row<numMonths[0];row++){
29355group="";
29356this.maxRows=4;
29357for(col=0;col<numMonths[1];col++){
29358selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));
29359cornerClass=" ui-corner-all";
29360calender="";
29361if(isMultiMonth){
29362calender+="<div class='ui-datepicker-group";
29363if(numMonths[1]>1){
29364switch(col){
29365case 0:calender+=" ui-datepicker-group-first";
29366cornerClass=" ui-corner-"+(isRTL?"right":"left");break;
29367case numMonths[1]-1:calender+=" ui-datepicker-group-last";
29368cornerClass=" ui-corner-"+(isRTL?"left":"right");break;
29369default:calender+=" ui-datepicker-group-middle";cornerClass="";break;
29370}
29371}
29372calender+="'>";
29373}
29374calender+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+cornerClass+"'>"+
29375(/all|left/.test(cornerClass)&&row===0?(isRTL?next:prev):"")+
29376(/all|right/.test(cornerClass)&&row===0?(isRTL?prev:next):"")+
29377this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,
29378row>0||col>0,monthNames,monthNamesShort)+
29379"</div><table class='ui-datepicker-calendar'><thead>"+
29380"<tr>";
29381thead=(showWeek?"<th class='ui-datepicker-week-col'>"+this._get(inst,"weekHeader")+"</th>":"");
29382for(dow=0;dow<7;dow++){
29383day=(dow+firstDay)%7;
29384thead+="<th scope='col'"+((dow+firstDay+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+
29385"<span title='"+dayNames[day]+"'>"+dayNamesMin[day]+"</span></th>";
29386}
29387calender+=thead+"</tr></thead><tbody>";
29388daysInMonth=this._getDaysInMonth(drawYear,drawMonth);
29389if(drawYear===inst.selectedYear&&drawMonth===inst.selectedMonth){
29390inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);
29391}
29392leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;
29393curRows=Math.ceil((leadDays+daysInMonth)/7);
29394numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);
29395this.maxRows=numRows;
29396printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));
29397for(dRow=0;dRow<numRows;dRow++){
29398calender+="<tr>";
29399tbody=(!showWeek?"":"<td class='ui-datepicker-week-col'>"+
29400this._get(inst,"calculateWeek")(printDate)+"</td>");
29401for(dow=0;dow<7;dow++){
29402daySettings=(beforeShowDay?
29403beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);
29404otherMonth=(printDate.getMonth()!==drawMonth);
29405unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||
29406(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);
29407tbody+="<td class='"+
29408((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+
29409(otherMonth?" ui-datepicker-other-month":"")+
29410((printDate.getTime()===selectedDate.getTime()&&drawMonth===inst.selectedMonth&&inst._keyEvent)||
29411(defaultDate.getTime()===printDate.getTime()&&defaultDate.getTime()===selectedDate.getTime())?
29412" "+this._dayOverClass:"")+
29413(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+
29414(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+
29415(printDate.getTime()===currentDate.getTime()?" "+this._currentClass:"")+
29416(printDate.getTime()===today.getTime()?" ui-datepicker-today":""))+"'"+
29417((!otherMonth||showOtherMonths)&&daySettings[2]?" title='"+daySettings[2].replace(/'/g,"&#39;")+"'":"")+
29418(unselectable?"":" data-handler='selectDay' data-event='click' data-month='"+printDate.getMonth()+"' data-year='"+printDate.getFullYear()+"'")+">"+
29419(otherMonth&&!showOtherMonths?"&#xa0;":
29420(unselectable?"<span class='ui-state-default'>"+printDate.getDate()+"</span>":"<a "+(printDate.getTime()===currentDate.getTime()?"aria-label=\"ausgewählt "+printDate.getDate()+"\"":"")+" class='ui-state-default"+
29421(printDate.getTime()===today.getTime()?" ui-state-highlight":"")+
29422(printDate.getTime()===currentDate.getTime()?" ui-state-active":"")+
29423(otherMonth?" ui-priority-secondary":"")+
29424"' href='#' aria-current='"+(printDate.getTime()===currentDate.getTime()?"true":"false")+
29425"' data-date='"+printDate.getDate()+
29426"'>"+printDate.getDate()+"</a>"))+"</td>";
29427printDate.setDate(printDate.getDate()+1);
29428printDate=this._daylightSavingAdjust(printDate);
29429}
29430calender+=tbody+"</tr>";
29431}
29432drawMonth++;
29433if(drawMonth>11){
29434drawMonth=0;
29435drawYear++;
29436}
29437calender+="</tbody></table>"+(isMultiMonth?"</div>"+
29438((numMonths[0]>0&&col===numMonths[1]-1)?"<div class='ui-datepicker-row-break'></div>":""):"");
29439group+=calender;
29440}
29441html+=group;
29442}
29443html+=buttonPanel;
29444inst._keyEvent=false;
29445return html;
29446},
29447_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,
29448secondary,monthNames,monthNamesShort){
29449var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,
29450changeMonth=this._get(inst,"changeMonth"),
29451changeYear=this._get(inst,"changeYear"),
29452showMonthAfterYear=this._get(inst,"showMonthAfterYear"),
29453selectMonthLabel=this._get(inst,"selectMonthLabel"),
29454selectYearLabel=this._get(inst,"selectYearLabel"),
29455html="<div class='ui-datepicker-title'>",
29456monthHtml="";
29457if(secondary||!changeMonth){
29458monthHtml+="<span class='ui-datepicker-month'>"+monthNames[drawMonth]+"</span>";
29459}else{
29460inMinYear=(minDate&&minDate.getFullYear()===drawYear);
29461inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);
29462monthHtml+="<select class='ui-datepicker-month' aria-label='"+selectMonthLabel+"' data-handler='selectMonth' data-event='change'>";
29463for(month=0;month<12;month++){
29464if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){
29465monthHtml+="<option value='"+month+"'"+
29466(month===drawMonth?" selected='selected'":"")+
29467">"+monthNamesShort[month]+"</option>";
29468}
29469}
29470monthHtml+="</select>";
29471}
29472if(!showMonthAfterYear){
29473html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"");
29474}
29475if(!inst.yearshtml){
29476inst.yearshtml="";
29477if(secondary||!changeYear){
29478html+="<span class='ui-datepicker-year'>"+drawYear+"</span>";
29479}else{
29480years=this._get(inst,"yearRange").split(":");
29481thisYear=new Date().getFullYear();
29482determineYear=function(value){
29483var year=(value.match(/c[+\-].*/)?drawYear+parseInt(value.substring(1),10):
29484(value.match(/[+\-].*/)?thisYear+parseInt(value,10):
29485parseInt(value,10)));
29486return(isNaN(year)?thisYear:year);
29487};
29488year=determineYear(years[0]);
29489endYear=Math.max(year,determineYear(years[1]||""));
29490year=(minDate?Math.max(year,minDate.getFullYear()):year);
29491endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);
29492inst.yearshtml+="<select class='ui-datepicker-year' aria-label='"+selectYearLabel+"' data-handler='selectYear' data-event='change'>";
29493for(;year<=endYear;year++){
29494inst.yearshtml+="<option value='"+year+"'"+
29495(year===drawYear?" selected='selected'":"")+
29496">"+year+"</option>";
29497}
29498inst.yearshtml+="</select>";
29499html+=inst.yearshtml;
29500inst.yearshtml=null;
29501}
29502}
29503html+=this._get(inst,"yearSuffix");
29504if(showMonthAfterYear){
29505html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml;
29506}
29507html+="</div>";
29508return html;
29509},
29510_adjustInstDate:function(inst,offset,period){
29511var year=inst.selectedYear+(period==="Y"?offset:0),
29512month=inst.selectedMonth+(period==="M"?offset:0),
29513day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==="D"?offset:0),
29514date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));
29515inst.selectedDay=date.getDate();
29516inst.drawMonth=inst.selectedMonth=date.getMonth();
29517inst.drawYear=inst.selectedYear=date.getFullYear();
29518if(period==="M"||period==="Y"){
29519this._notifyChange(inst);
29520}
29521},
29522_restrictMinMax:function(inst,date){
29523var minDate=this._getMinMaxDate(inst,"min"),
29524maxDate=this._getMinMaxDate(inst,"max"),
29525newDate=(minDate&&date<minDate?minDate:date);
29526return(maxDate&&newDate>maxDate?maxDate:newDate);
29527},
29528_notifyChange:function(inst){
29529var onChange=this._get(inst,"onChangeMonthYear");
29530if(onChange){
29531onChange.apply((inst.input?inst.input[0]:null),
29532[inst.selectedYear,inst.selectedMonth+1,inst]);
29533}
29534},
29535_getNumberOfMonths:function(inst){
29536var numMonths=this._get(inst,"numberOfMonths");
29537return(numMonths==null?[1,1]:(typeof numMonths==="number"?[1,numMonths]:numMonths));
29538},
29539_getMinMaxDate:function(inst,minMax){
29540return this._determineDate(inst,this._get(inst,minMax+"Date"),null);
29541},
29542_getDaysInMonth:function(year,month){
29543return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate();
29544},
29545_getFirstDayOfMonth:function(year,month){
29546return new Date(year,month,1).getDay();
29547},
29548_canAdjustMonth:function(inst,offset,curYear,curMonth){
29549var numMonths=this._getNumberOfMonths(inst),
29550date=this._daylightSavingAdjust(new Date(curYear,
29551curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));
29552if(offset<0){
29553date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));
29554}
29555return this._isInRange(inst,date);
29556},
29557_isInRange:function(inst,date){
29558var yearSplit,currentYear,
29559minDate=this._getMinMaxDate(inst,"min"),
29560maxDate=this._getMinMaxDate(inst,"max"),
29561minYear=null,
29562maxYear=null,
29563years=this._get(inst,"yearRange");
29564if(years){
29565yearSplit=years.split(":");
29566currentYear=new Date().getFullYear();
29567minYear=parseInt(yearSplit[0],10);
29568maxYear=parseInt(yearSplit[1],10);
29569if(yearSplit[0].match(/[+\-].*/)){
29570minYear+=currentYear;
29571}
29572if(yearSplit[1].match(/[+\-].*/)){
29573maxYear+=currentYear;
29574}
29575}
29576return((!minDate||date.getTime()>=minDate.getTime())&&
29577(!maxDate||date.getTime()<=maxDate.getTime())&&
29578(!minYear||date.getFullYear()>=minYear)&&
29579(!maxYear||date.getFullYear()<=maxYear));
29580},
29581_getFormatConfig:function(inst){
29582var shortYearCutoff=this._get(inst,"shortYearCutoff");
29583shortYearCutoff=(typeof shortYearCutoff!=="string"?shortYearCutoff:
29584new Date().getFullYear()%100+parseInt(shortYearCutoff,10));
29585return{shortYearCutoff:shortYearCutoff,
29586dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),
29587monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")};
29588},
29589_formatDate:function(inst,day,month,year){
29590if(!day){
29591inst.currentDay=inst.selectedDay;
29592inst.currentMonth=inst.selectedMonth;
29593inst.currentYear=inst.selectedYear;
29594}
29595var date=(day?(typeof day==="object"?day:
29596this._daylightSavingAdjust(new Date(year,month,day))):
29597this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));
29598return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst));
29599}
29600});
29601function datepicker_bindHover(dpDiv){
29602var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
29603return dpDiv.on("mouseout",selector,function(){
29604$(this).removeClass("ui-state-hover");
29605if(this.className.indexOf("ui-datepicker-prev")!==-1){
29606$(this).removeClass("ui-datepicker-prev-hover");
29607}
29608if(this.className.indexOf("ui-datepicker-next")!==-1){
29609$(this).removeClass("ui-datepicker-next-hover");
29610}
29611})
29612.on("mouseover",selector,datepicker_handleMouseover);
29613}
29614function datepicker_handleMouseover(){
29615if(!$.datepicker._isDisabledDatepicker(datepicker_instActive.inline?datepicker_instActive.dpDiv.parent()[0]:datepicker_instActive.input[0])){
29616$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
29617$(this).addClass("ui-state-hover");
29618if(this.className.indexOf("ui-datepicker-prev")!==-1){
29619$(this).addClass("ui-datepicker-prev-hover");
29620}
29621if(this.className.indexOf("ui-datepicker-next")!==-1){
29622$(this).addClass("ui-datepicker-next-hover");
29623}
29624}
29625}
29626function datepicker_extendRemove(target,props){
29627$.extend(target,props);
29628for(var name in props){
29629if(props[name]==null){
29630target[name]=props[name];
29631}
29632}
29633return target;
29634}
29635$.fn.datepicker=function(options){
29636if(!this.length){
29637return this;
29638}
29639if(!$.datepicker.initialized){
29640$(document).on("mousedown",$.datepicker._checkExternalClick);
29641$.datepicker.initialized=true;
29642}
29643if($("#"+$.datepicker._mainDivId).length===0){
29644$("body").append($.datepicker.dpDiv);
29645}
vendor: 11,493 bytes, lines 29646-30105
29646var otherArgs=Array.prototype.slice.call(arguments,1);
29647if(typeof options==="string"&&(options==="isDisabled"||options==="getDate"||options==="widget")){
29648return $.datepicker["_"+options+"Datepicker"].
29649apply($.datepicker,[this[0]].concat(otherArgs));
29650}
29651if(options==="option"&&arguments.length===2&&typeof arguments[1]==="string"){
29652return $.datepicker["_"+options+"Datepicker"].
29653apply($.datepicker,[this[0]].concat(otherArgs));
29654}
29655return this.each(function(){
29656if(typeof options==="string"){
29657$.datepicker["_"+options+"Datepicker"]
29658.apply($.datepicker,[this].concat(otherArgs));
29659}else{
29660$.datepicker._attachDatepicker(this,options);
29661}
29662});
29663};
29664$.datepicker=new Datepicker();
29665$.datepicker.initialized=false;
29666$.datepicker.uuid=new Date().getTime();
29667$.datepicker.version="1.13.2";
29668var widgetsDatepicker=$.datepicker;
29669var ie=$.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
29670var mouseHandled=false;
29671$(document).on("mouseup",function(){
29672mouseHandled=false;
29673});
29674var widgetsMouse=$.widget("ui.mouse",{
29675version:"1.13.2",
29676options:{
29677cancel:"input, textarea, button, select, option",
29678distance:1,
29679delay:0
29680},
29681_mouseInit:function(){
29682var that=this;
29683this.element
29684.on("mousedown."+this.widgetName,function(event){
29685return that._mouseDown(event);
29686})
29687.on("click."+this.widgetName,function(event){
29688if(true===$.data(event.target,that.widgetName+".preventClickEvent")){
29689$.removeData(event.target,that.widgetName+".preventClickEvent");
29690event.stopImmediatePropagation();
29691return false;
29692}
29693});
29694this.started=false;
29695},
29696_mouseDestroy:function(){
29697this.element.off("."+this.widgetName);
29698if(this._mouseMoveDelegate){
29699this.document
29700.off("mousemove."+this.widgetName,this._mouseMoveDelegate)
29701.off("mouseup."+this.widgetName,this._mouseUpDelegate);
29702}
29703},
29704_mouseDown:function(event){
29705if(mouseHandled){
29706return;
29707}
29708this._mouseMoved=false;
29709if(this._mouseStarted){
29710this._mouseUp(event);
29711}
29712this._mouseDownEvent=event;
29713var that=this,
29714btnIsLeft=(event.which===1),
29715elIsCancel=(typeof this.options.cancel==="string"&&event.target.nodeName?
29716$(event.target).closest(this.options.cancel).length:false);
29717if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){
29718return true;
29719}
29720this.mouseDelayMet=!this.options.delay;
29721if(!this.mouseDelayMet){
29722this._mouseDelayTimer=setTimeout(function(){
29723that.mouseDelayMet=true;
29724},this.options.delay);
29725}
29726if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){
29727this._mouseStarted=(this._mouseStart(event)!==false);
29728if(!this._mouseStarted){
29729event.preventDefault();
29730return true;
29731}
29732}
29733if(true===$.data(event.target,this.widgetName+".preventClickEvent")){
29734$.removeData(event.target,this.widgetName+".preventClickEvent");
29735}
29736this._mouseMoveDelegate=function(event){
29737return that._mouseMove(event);
29738};
29739this._mouseUpDelegate=function(event){
29740return that._mouseUp(event);
29741};
29742this.document
29743.on("mousemove."+this.widgetName,this._mouseMoveDelegate)
29744.on("mouseup."+this.widgetName,this._mouseUpDelegate);
29745event.preventDefault();
29746mouseHandled=true;
29747return true;
29748},
29749_mouseMove:function(event){
29750if(this._mouseMoved){
29751if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&
29752!event.button){
29753return this._mouseUp(event);
29754}else if(!event.which){
29755if(event.originalEvent.altKey||event.originalEvent.ctrlKey||
29756event.originalEvent.metaKey||event.originalEvent.shiftKey){
29757this.ignoreMissingWhich=true;
29758}else if(!this.ignoreMissingWhich){
29759return this._mouseUp(event);
29760}
29761}
29762}
29763if(event.which||event.button){
29764this._mouseMoved=true;
29765}
29766if(this._mouseStarted){
29767this._mouseDrag(event);
29768return event.preventDefault();
29769}
29770if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){
29771this._mouseStarted=
29772(this._mouseStart(this._mouseDownEvent,event)!==false);
29773if(this._mouseStarted){
29774this._mouseDrag(event);
29775}else{
29776this._mouseUp(event);
29777}
29778}
29779return!this._mouseStarted;
29780},
29781_mouseUp:function(event){
29782this.document
29783.off("mousemove."+this.widgetName,this._mouseMoveDelegate)
29784.off("mouseup."+this.widgetName,this._mouseUpDelegate);
29785if(this._mouseStarted){
29786this._mouseStarted=false;
29787if(event.target===this._mouseDownEvent.target){
29788$.data(event.target,this.widgetName+".preventClickEvent",true);
29789}
29790this._mouseStop(event);
29791}
29792if(this._mouseDelayTimer){
29793clearTimeout(this._mouseDelayTimer);
29794delete this._mouseDelayTimer;
29795}
29796this.ignoreMissingWhich=false;
29797mouseHandled=false;
29798event.preventDefault();
29799},
29800_mouseDistanceMet:function(event){
29801return(Math.max(
29802Math.abs(this._mouseDownEvent.pageX-event.pageX),
29803Math.abs(this._mouseDownEvent.pageY-event.pageY)
29804)>=this.options.distance
29805);
29806},
29807_mouseDelayMet:function(){
29808return this.mouseDelayMet;
29809},
29810_mouseStart:function(){},
29811_mouseDrag:function(){},
29812_mouseStop:function(){},
29813_mouseCapture:function(){
29814return true;
29815}
29816});
29817var plugin=$.ui.plugin={
29818add:function(module,option,set){
29819var i,
29820proto=$.ui[module].prototype;
29821for(i in set){
29822proto.plugins[i]=proto.plugins[i]||[];
29823proto.plugins[i].push([option,set[i]]);
29824}
29825},
29826call:function(instance,name,args,allowDisconnected){
29827var i,
29828set=instance.plugins[name];
29829if(!set){
29830return;
29831}
29832if(!allowDisconnected&&(!instance.element[0].parentNode||
29833instance.element[0].parentNode.nodeType===11)){
29834return;
29835}
29836for(i=0;i<set.length;i++){
29837if(instance.options[set[i][0]]){
29838set[i][1].apply(instance.element,args);
29839}
29840}
29841}
29842};
29843var safeBlur=$.ui.safeBlur=function(element){
29844if(element&&element.nodeName.toLowerCase()!=="body"){
29845$(element).trigger("blur");
29846}
29847};
29848$.widget("ui.draggable",$.ui.mouse,{
29849version:"1.13.2",
29850widgetEventPrefix:"drag",
29851options:{
29852addClasses:true,
29853appendTo:"parent",
29854axis:false,
29855connectToSortable:false,
29856containment:false,
29857cursor:"auto",
29858cursorAt:false,
29859grid:false,
29860handle:false,
29861helper:"original",
29862iframeFix:false,
29863opacity:false,
29864refreshPositions:false,
29865revert:false,
29866revertDuration:500,
29867scope:"default",
29868scroll:true,
29869scrollSensitivity:20,
29870scrollSpeed:20,
29871snap:false,
29872snapMode:"both",
29873snapTolerance:20,
29874stack:false,
29875zIndex:false,
29876drag:null,
29877start:null,
29878stop:null
29879},
29880_create:function(){
29881if(this.options.helper==="original"){
29882this._setPositionRelative();
29883}
29884if(this.options.addClasses){
29885this._addClass("ui-draggable");
29886}
29887this._setHandleClassName();
29888this._mouseInit();
29889},
29890_setOption:function(key,value){
29891this._super(key,value);
29892if(key==="handle"){
29893this._removeHandleClassName();
29894this._setHandleClassName();
29895}
29896},
29897_destroy:function(){
29898if((this.helper||this.element).is(".ui-draggable-dragging")){
29899this.destroyOnClear=true;
29900return;
29901}
29902this._removeHandleClassName();
29903this._mouseDestroy();
29904},
29905_mouseCapture:function(event){
29906var o=this.options;
29907if(this.helper||o.disabled||
29908$(event.target).closest(".ui-resizable-handle").length>0){
29909return false;
29910}
29911this.handle=this._getHandle(event);
29912if(!this.handle){
29913return false;
29914}
29915this._blurActiveElement(event);
29916this._blockFrames(o.iframeFix===true?"iframe":o.iframeFix);
29917return true;
29918},
29919_blockFrames:function(selector){
29920this.iframeBlocks=this.document.find(selector).map(function(){
29921var iframe=$(this);
29922return $("<div>")
29923.css("position","absolute")
29924.appendTo(iframe.parent())
29925.outerWidth(iframe.outerWidth())
29926.outerHeight(iframe.outerHeight())
29927.offset(iframe.offset())[0];
29928});
29929},
29930_unblockFrames:function(){
29931if(this.iframeBlocks){
29932this.iframeBlocks.remove();
29933delete this.iframeBlocks;
29934}
29935},
29936_blurActiveElement:function(event){
29937var activeElement=$.ui.safeActiveElement(this.document[0]),
29938target=$(event.target);
29939if(target.closest(activeElement).length){
29940return;
29941}
29942$.ui.safeBlur(activeElement);
29943},
29944_mouseStart:function(event){
29945var o=this.options;
29946this.helper=this._createHelper(event);
29947this._addClass(this.helper,"ui-draggable-dragging");
29948this._cacheHelperProportions();
29949if($.ui.ddmanager){
29950$.ui.ddmanager.current=this;
29951}
29952this._cacheMargins();
29953this.cssPosition=this.helper.css("position");
29954this.scrollParent=this.helper.scrollParent(true);
29955this.offsetParent=this.helper.offsetParent();
29956this.hasFixedAncestor=this.helper.parents().filter(function(){
29957return $(this).css("position")==="fixed";
29958}).length>0;
29959this.positionAbs=this.element.offset();
29960this._refreshOffsets(event);
29961this.originalPosition=this.position=this._generatePosition(event,false);
29962this.originalPageX=event.pageX;
29963this.originalPageY=event.pageY;
29964if(o.cursorAt){
29965this._adjustOffsetFromHelper(o.cursorAt);
29966}
29967this._setContainment();
29968if(this._trigger("start",event)===false){
29969this._clear();
29970return false;
29971}
29972this._cacheHelperProportions();
29973if($.ui.ddmanager&&!o.dropBehaviour){
29974$.ui.ddmanager.prepareOffsets(this,event);
29975}
29976this._mouseDrag(event,true);
29977if($.ui.ddmanager){
29978$.ui.ddmanager.dragStart(this,event);
29979}
29980return true;
29981},
29982_refreshOffsets:function(event){
29983this.offset={
29984top:this.positionAbs.top-this.margins.top,
29985left:this.positionAbs.left-this.margins.left,
29986scroll:false,
29987parent:this._getParentOffset(),
29988relative:this._getRelativeOffset()
29989};
29990this.offset.click={
29991left:event.pageX-this.offset.left,
29992top:event.pageY-this.offset.top
29993};
29994},
29995_mouseDrag:function(event,noPropagation){
29996if(this.hasFixedAncestor){
29997this.offset.parent=this._getParentOffset();
29998}
29999this.position=this._generatePosition(event,true);
30000this.positionAbs=this._convertPositionTo("absolute");
30001if(!noPropagation){
30002var ui=this._uiHash();
30003if(this._trigger("drag",event,ui)===false){
30004this._mouseUp(new $.Event("mouseup",event));
30005return false;
30006}
30007this.position=ui.position;
30008}
30009this.helper[0].style.left=this.position.left+"px";
30010this.helper[0].style.top=this.position.top+"px";
30011if($.ui.ddmanager){
30012$.ui.ddmanager.drag(this,event);
30013}
30014return false;
30015},
30016_mouseStop:function(event){
30017var that=this,
30018dropped=false;
30019if($.ui.ddmanager&&!this.options.dropBehaviour){
30020dropped=$.ui.ddmanager.drop(this,event);
30021}
30022if(this.dropped){
30023dropped=this.dropped;
30024this.dropped=false;
30025}
30026if((this.options.revert==="invalid"&&!dropped)||
30027(this.options.revert==="valid"&&dropped)||
30028this.options.revert===true||(typeof this.options.revert==="function"&&
30029this.options.revert.call(this.element,dropped))
30030){
30031$(this.helper).animate(
30032this.originalPosition,
30033parseInt(this.options.revertDuration,10),
30034function(){
30035if(that._trigger("stop",event)!==false){
30036that._clear();
30037}
30038}
30039);
30040}else{
30041if(this._trigger("stop",event)!==false){
30042this._clear();
30043}
30044}
30045return false;
30046},
30047_mouseUp:function(event){
30048this._unblockFrames();
30049if($.ui.ddmanager){
30050$.ui.ddmanager.dragStop(this,event);
30051}
30052if(this.handleElement.is(event.target)){
30053this.element.trigger("focus");
30054}
30055return $.ui.mouse.prototype._mouseUp.call(this,event);
30056},
30057cancel:function(){
30058if(this.helper.is(".ui-draggable-dragging")){
30059this._mouseUp(new $.Event("mouseup",{target:this.element[0]}));
30060}else{
30061this._clear();
30062}
30063return this;
30064},
30065_getHandle:function(event){
30066return this.options.handle?
30067!!$(event.target).closest(this.element.find(this.options.handle)).length:
30068true;
30069},
30070_setHandleClassName:function(){
30071this.handleElement=this.options.handle?
30072this.element.find(this.options.handle):this.element;
30073this._addClass(this.handleElement,"ui-draggable-handle");
30074},
30075_removeHandleClassName:function(){
30076this._removeClass(this.handleElement,"ui-draggable-handle");
30077},
30078_createHelper:function(event){
30079var o=this.options,
30080helperIsFunction=typeof o.helper==="function",
30081helper=helperIsFunction?
30082$(o.helper.apply(this.element[0],[event])):
30083(o.helper==="clone"?
30084this.element.clone().removeAttr("id"):
30085this.element);
30086if(!helper.parents("body").length){
30087helper.appendTo((o.appendTo==="parent"?
30088this.element[0].parentNode:
30089o.appendTo));
30090}
30091if(helperIsFunction&&helper[0]===this.element[0]){
30092this._setPositionRelative();
30093}
30094if(helper[0]!==this.element[0]&&
30095!(/(fixed|absolute)/).test(helper.css("position"))){
30096helper.css("position","absolute");
30097}
30098return helper;
30099},
30100_setPositionRelative:function(){
30101if(!(/^(?:r|a|f)/).test(this.element.css("position"))){
30102this.element[0].style.position="relative";
30103}
30104},
30105_adjustOffsetFromHelper:function(obj){
vendor: 13,402 bytes, lines 30106-30593
30106if(typeof obj==="string"){
30107obj=obj.split(" ");
30108}
30109if(Array.isArray(obj)){
30110obj={left:+obj[0],top:+obj[1]||0};
30111}
30112if("left"in obj){
30113this.offset.click.left=obj.left+this.margins.left;
30114}
30115if("right"in obj){
30116this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;
30117}
30118if("top"in obj){
30119this.offset.click.top=obj.top+this.margins.top;
30120}
30121if("bottom"in obj){
30122this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;
30123}
30124},
30125_isRootNode:function(element){
30126return(/(html|body)/i).test(element.tagName)||element===this.document[0];
30127},
30128_getParentOffset:function(){
30129var po=this.offsetParent.offset(),
30130document=this.document[0];
30131if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&
30132$.contains(this.scrollParent[0],this.offsetParent[0])){
30133po.left+=this.scrollParent.scrollLeft();
30134po.top+=this.scrollParent.scrollTop();
30135}
30136if(this._isRootNode(this.offsetParent[0])){
30137po={top:0,left:0};
30138}
30139return{
30140top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),
30141left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)
30142};
30143},
30144_getRelativeOffset:function(){
30145if(this.cssPosition!=="relative"){
30146return{top:0,left:0};
30147}
30148var p=this.element.position(),
30149scrollIsRootNode=this._isRootNode(this.scrollParent[0]);
30150return{
30151top:p.top-(parseInt(this.helper.css("top"),10)||0)+
30152(!scrollIsRootNode?this.scrollParent.scrollTop():0),
30153left:p.left-(parseInt(this.helper.css("left"),10)||0)+
30154(!scrollIsRootNode?this.scrollParent.scrollLeft():0)
30155};
30156},
30157_cacheMargins:function(){
30158this.margins={
30159left:(parseInt(this.element.css("marginLeft"),10)||0),
30160top:(parseInt(this.element.css("marginTop"),10)||0),
30161right:(parseInt(this.element.css("marginRight"),10)||0),
30162bottom:(parseInt(this.element.css("marginBottom"),10)||0)
30163};
30164},
30165_cacheHelperProportions:function(){
30166this.helperProportions={
30167width:this.helper.outerWidth(),
30168height:this.helper.outerHeight()
30169};
30170},
30171_setContainment:function(){
30172var isUserScrollable,c,ce,
30173o=this.options,
30174document=this.document[0];
30175this.relativeContainer=null;
30176if(!o.containment){
30177this.containment=null;
30178return;
30179}
30180if(o.containment==="window"){
30181this.containment=[
30182$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,
30183$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,
30184$(window).scrollLeft()+$(window).width()-
30185this.helperProportions.width-this.margins.left,
30186$(window).scrollTop()+
30187($(window).height()||document.body.parentNode.scrollHeight)-
30188this.helperProportions.height-this.margins.top
30189];
30190return;
30191}
30192if(o.containment==="document"){
30193this.containment=[
301940,
301950,
30196$(document).width()-this.helperProportions.width-this.margins.left,
30197($(document).height()||document.body.parentNode.scrollHeight)-
30198this.helperProportions.height-this.margins.top
30199];
30200return;
30201}
30202if(o.containment.constructor===Array){
30203this.containment=o.containment;
30204return;
30205}
30206if(o.containment==="parent"){
30207o.containment=this.helper[0].parentNode;
30208}
30209c=$(o.containment);
30210ce=c[0];
30211if(!ce){
30212return;
30213}
30214isUserScrollable=/(scroll|auto)/.test(c.css("overflow"));
30215this.containment=[
30216(parseInt(c.css("borderLeftWidth"),10)||0)+
30217(parseInt(c.css("paddingLeft"),10)||0),
30218(parseInt(c.css("borderTopWidth"),10)||0)+
30219(parseInt(c.css("paddingTop"),10)||0),
30220(isUserScrollable?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-
30221(parseInt(c.css("borderRightWidth"),10)||0)-
30222(parseInt(c.css("paddingRight"),10)||0)-
30223this.helperProportions.width-
30224this.margins.left-
30225this.margins.right,
30226(isUserScrollable?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-
30227(parseInt(c.css("borderBottomWidth"),10)||0)-
30228(parseInt(c.css("paddingBottom"),10)||0)-
30229this.helperProportions.height-
30230this.margins.top-
30231this.margins.bottom
30232];
30233this.relativeContainer=c;
30234},
30235_convertPositionTo:function(d,pos){
30236if(!pos){
30237pos=this.position;
30238}
30239var mod=d==="absolute"?1:-1,
30240scrollIsRootNode=this._isRootNode(this.scrollParent[0]);
30241return{
30242top:(
30243pos.top+
30244this.offset.relative.top*mod+
30245this.offset.parent.top*mod-
30246((this.cssPosition==="fixed"?
30247-this.offset.scroll.top:
30248(scrollIsRootNode?0:this.offset.scroll.top))*mod)
30249),
30250left:(
30251pos.left+
30252this.offset.relative.left*mod+
30253this.offset.parent.left*mod-
30254((this.cssPosition==="fixed"?
30255-this.offset.scroll.left:
30256(scrollIsRootNode?0:this.offset.scroll.left))*mod)
30257)
30258};
30259},
30260_generatePosition:function(event,constrainPosition){
30261var containment,co,top,left,
30262o=this.options,
30263scrollIsRootNode=this._isRootNode(this.scrollParent[0]),
30264pageX=event.pageX,
30265pageY=event.pageY;
30266if(!scrollIsRootNode||!this.offset.scroll){
30267this.offset.scroll={
30268top:this.scrollParent.scrollTop(),
30269left:this.scrollParent.scrollLeft()
30270};
30271}
30272if(constrainPosition){
30273if(this.containment){
30274if(this.relativeContainer){
30275co=this.relativeContainer.offset();
30276containment=[
30277this.containment[0]+co.left,
30278this.containment[1]+co.top,
30279this.containment[2]+co.left,
30280this.containment[3]+co.top
30281];
30282}else{
30283containment=this.containment;
30284}
30285if(event.pageX-this.offset.click.left<containment[0]){
30286pageX=containment[0]+this.offset.click.left;
30287}
30288if(event.pageY-this.offset.click.top<containment[1]){
30289pageY=containment[1]+this.offset.click.top;
30290}
30291if(event.pageX-this.offset.click.left>containment[2]){
30292pageX=containment[2]+this.offset.click.left;
30293}
30294if(event.pageY-this.offset.click.top>containment[3]){
30295pageY=containment[3]+this.offset.click.top;
30296}
30297}
30298if(o.grid){
30299top=o.grid[1]?this.originalPageY+Math.round((pageY-
30300this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;
30301pageY=containment?((top-this.offset.click.top>=containment[1]||
30302top-this.offset.click.top>containment[3])?
30303top:
30304((top-this.offset.click.top>=containment[1])?
30305top-o.grid[1]:top+o.grid[1])):top;
30306left=o.grid[0]?this.originalPageX+
30307Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0]:
30308this.originalPageX;
30309pageX=containment?((left-this.offset.click.left>=containment[0]||
30310left-this.offset.click.left>containment[2])?
30311left:
30312((left-this.offset.click.left>=containment[0])?
30313left-o.grid[0]:left+o.grid[0])):left;
30314}
30315if(o.axis==="y"){
30316pageX=this.originalPageX;
30317}
30318if(o.axis==="x"){
30319pageY=this.originalPageY;
30320}
30321}
30322return{
30323top:(
30324pageY-
30325this.offset.click.top-
30326this.offset.relative.top-
30327this.offset.parent.top+
30328(this.cssPosition==="fixed"?
30329-this.offset.scroll.top:
30330(scrollIsRootNode?0:this.offset.scroll.top))
30331),
30332left:(
30333pageX-
30334this.offset.click.left-
30335this.offset.relative.left-
30336this.offset.parent.left+
30337(this.cssPosition==="fixed"?
30338-this.offset.scroll.left:
30339(scrollIsRootNode?0:this.offset.scroll.left))
30340)
30341};
30342},
30343_clear:function(){
30344this._removeClass(this.helper,"ui-draggable-dragging");
30345if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){
30346this.helper.remove();
30347}
30348this.helper=null;
30349this.cancelHelperRemoval=false;
30350if(this.destroyOnClear){
30351this.destroy();
30352}
30353},
30354_trigger:function(type,event,ui){
30355ui=ui||this._uiHash();
30356$.ui.plugin.call(this,type,[event,ui,this],true);
30357if(/^(drag|start|stop)/.test(type)){
30358this.positionAbs=this._convertPositionTo("absolute");
30359ui.offset=this.positionAbs;
30360}
30361return $.Widget.prototype._trigger.call(this,type,event,ui);
30362},
30363plugins:{},
30364_uiHash:function(){
30365return{
30366helper:this.helper,
30367position:this.position,
30368originalPosition:this.originalPosition,
30369offset:this.positionAbs
30370};
30371}
30372});
30373$.ui.plugin.add("draggable","connectToSortable",{
30374start:function(event,ui,draggable){
30375var uiSortable=$.extend({},ui,{
30376item:draggable.element
30377});
30378draggable.sortables=[];
30379$(draggable.options.connectToSortable).each(function(){
30380var sortable=$(this).sortable("instance");
30381if(sortable&&!sortable.options.disabled){
30382draggable.sortables.push(sortable);
30383sortable.refreshPositions();
30384sortable._trigger("activate",event,uiSortable);
30385}
30386});
30387},
30388stop:function(event,ui,draggable){
30389var uiSortable=$.extend({},ui,{
30390item:draggable.element
30391});
30392draggable.cancelHelperRemoval=false;
30393$.each(draggable.sortables,function(){
30394var sortable=this;
30395if(sortable.isOver){
30396sortable.isOver=0;
30397draggable.cancelHelperRemoval=true;
30398sortable.cancelHelperRemoval=false;
30399sortable._storedCSS={
30400position:sortable.placeholder.css("position"),
30401top:sortable.placeholder.css("top"),
30402left:sortable.placeholder.css("left")
30403};
30404sortable._mouseStop(event);
30405sortable.options.helper=sortable.options._helper;
30406}else{
30407sortable.cancelHelperRemoval=true;
30408sortable._trigger("deactivate",event,uiSortable);
30409}
30410});
30411},
30412drag:function(event,ui,draggable){
30413$.each(draggable.sortables,function(){
30414var innermostIntersecting=false,
30415sortable=this;
30416sortable.positionAbs=draggable.positionAbs;
30417sortable.helperProportions=draggable.helperProportions;
30418sortable.offset.click=draggable.offset.click;
30419if(sortable._intersectsWith(sortable.containerCache)){
30420innermostIntersecting=true;
30421$.each(draggable.sortables,function(){
30422this.positionAbs=draggable.positionAbs;
30423this.helperProportions=draggable.helperProportions;
30424this.offset.click=draggable.offset.click;
30425if(this!==sortable&&
30426this._intersectsWith(this.containerCache)&&
30427$.contains(sortable.element[0],this.element[0])){
30428innermostIntersecting=false;
30429}
30430return innermostIntersecting;
30431});
30432}
30433if(innermostIntersecting){
30434if(!sortable.isOver){
30435sortable.isOver=1;
30436draggable._parent=ui.helper.parent();
30437sortable.currentItem=ui.helper
30438.appendTo(sortable.element)
30439.data("ui-sortable-item",true);
30440sortable.options._helper=sortable.options.helper;
30441sortable.options.helper=function(){
30442return ui.helper[0];
30443};
30444event.target=sortable.currentItem[0];
30445sortable._mouseCapture(event,true);
30446sortable._mouseStart(event,true,true);
30447sortable.offset.click.top=draggable.offset.click.top;
30448sortable.offset.click.left=draggable.offset.click.left;
30449sortable.offset.parent.left-=draggable.offset.parent.left-
30450sortable.offset.parent.left;
30451sortable.offset.parent.top-=draggable.offset.parent.top-
30452sortable.offset.parent.top;
30453draggable._trigger("toSortable",event);
30454draggable.dropped=sortable.element;
30455$.each(draggable.sortables,function(){
30456this.refreshPositions();
30457});
30458draggable.currentItem=draggable.element;
30459sortable.fromOutside=draggable;
30460}
30461if(sortable.currentItem){
30462sortable._mouseDrag(event);
30463ui.position=sortable.position;
30464}
30465}else{
30466if(sortable.isOver){
30467sortable.isOver=0;
30468sortable.cancelHelperRemoval=true;
30469sortable.options._revert=sortable.options.revert;
30470sortable.options.revert=false;
30471sortable._trigger("out",event,sortable._uiHash(sortable));
30472sortable._mouseStop(event,true);
30473sortable.options.revert=sortable.options._revert;
30474sortable.options.helper=sortable.options._helper;
30475if(sortable.placeholder){
30476sortable.placeholder.remove();
30477}
30478ui.helper.appendTo(draggable._parent);
30479draggable._refreshOffsets(event);
30480ui.position=draggable._generatePosition(event,true);
30481draggable._trigger("fromSortable",event);
30482draggable.dropped=false;
30483$.each(draggable.sortables,function(){
30484this.refreshPositions();
30485});
30486}
30487}
30488});
30489}
30490});
30491$.ui.plugin.add("draggable","cursor",{
30492start:function(event,ui,instance){
30493var t=$("body"),
30494o=instance.options;
30495if(t.css("cursor")){
30496o._cursor=t.css("cursor");
30497}
30498t.css("cursor",o.cursor);
30499},
30500stop:function(event,ui,instance){
30501var o=instance.options;
30502if(o._cursor){
30503$("body").css("cursor",o._cursor);
30504}
30505}
30506});
30507$.ui.plugin.add("draggable","opacity",{
30508start:function(event,ui,instance){
30509var t=$(ui.helper),
30510o=instance.options;
30511if(t.css("opacity")){
30512o._opacity=t.css("opacity");
30513}
30514t.css("opacity",o.opacity);
30515},
30516stop:function(event,ui,instance){
30517var o=instance.options;
30518if(o._opacity){
30519$(ui.helper).css("opacity",o._opacity);
30520}
30521}
30522});
30523$.ui.plugin.add("draggable","scroll",{
30524start:function(event,ui,i){
30525if(!i.scrollParentNotHidden){
30526i.scrollParentNotHidden=i.helper.scrollParent(false);
30527}
30528if(i.scrollParentNotHidden[0]!==i.document[0]&&
30529i.scrollParentNotHidden[0].tagName!=="HTML"){
30530i.overflowOffset=i.scrollParentNotHidden.offset();
30531}
30532},
30533drag:function(event,ui,i){
30534var o=i.options,
30535scrolled=false,
30536scrollParent=i.scrollParentNotHidden[0],
30537document=i.document[0];
30538if(scrollParent!==document&&scrollParent.tagName!=="HTML"){
30539if(!o.axis||o.axis!=="x"){
30540if((i.overflowOffset.top+scrollParent.offsetHeight)-event.pageY<
30541o.scrollSensitivity){
30542scrollParent.scrollTop=scrolled=scrollParent.scrollTop+o.scrollSpeed;
30543}else if(event.pageY-i.overflowOffset.top<o.scrollSensitivity){
30544scrollParent.scrollTop=scrolled=scrollParent.scrollTop-o.scrollSpeed;
30545}
30546}
30547if(!o.axis||o.axis!=="y"){
30548if((i.overflowOffset.left+scrollParent.offsetWidth)-event.pageX<
30549o.scrollSensitivity){
30550scrollParent.scrollLeft=scrolled=scrollParent.scrollLeft+o.scrollSpeed;
30551}else if(event.pageX-i.overflowOffset.left<o.scrollSensitivity){
30552scrollParent.scrollLeft=scrolled=scrollParent.scrollLeft-o.scrollSpeed;
30553}
30554}
30555}else{
30556if(!o.axis||o.axis!=="x"){
30557if(event.pageY-$(document).scrollTop()<o.scrollSensitivity){
30558scrolled=$(document).scrollTop($(document).scrollTop()-o.scrollSpeed);
30559}else if($(window).height()-(event.pageY-$(document).scrollTop())<
30560o.scrollSensitivity){
30561scrolled=$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);
30562}
30563}
30564if(!o.axis||o.axis!=="y"){
30565if(event.pageX-$(document).scrollLeft()<o.scrollSensitivity){
30566scrolled=$(document).scrollLeft(
30567$(document).scrollLeft()-o.scrollSpeed
30568);
30569}else if($(window).width()-(event.pageX-$(document).scrollLeft())<
30570o.scrollSensitivity){
30571scrolled=$(document).scrollLeft(
30572$(document).scrollLeft()+o.scrollSpeed
30573);
30574}
30575}
30576}
30577if(scrolled!==false&&$.ui.ddmanager&&!o.dropBehaviour){
30578$.ui.ddmanager.prepareOffsets(i,event);
30579}
30580}
30581});
30582$.ui.plugin.add("draggable","snap",{
30583start:function(event,ui,i){
30584var o=i.options;
30585i.snapElements=[];
30586$(o.snap.constructor!==String?(o.snap.items||":data(ui-draggable)"):o.snap)
30587.each(function(){
30588var $t=$(this),
30589$o=$t.offset();
30590if(this!==i.element[0]){
30591i.snapElements.push({
30592item:this,
30593width:$t.outerWidth(),height:$t.outerHeight(),
vendor: 10,089 bytes, lines 30594-31037
30594top:$o.top,left:$o.left
30595});
30596}
30597});
30598},
30599drag:function(event,ui,inst){
30600var ts,bs,ls,rs,l,r,t,b,i,first,
30601o=inst.options,
30602d=o.snapTolerance,
30603x1=ui.offset.left,x2=x1+inst.helperProportions.width,
30604y1=ui.offset.top,y2=y1+inst.helperProportions.height;
30605for(i=inst.snapElements.length-1;i>=0;i--){
30606l=inst.snapElements[i].left-inst.margins.left;
30607r=l+inst.snapElements[i].width;
30608t=inst.snapElements[i].top-inst.margins.top;
30609b=t+inst.snapElements[i].height;
30610if(x2<l-d||x1>r+d||y2<t-d||y1>b+d||
30611!$.contains(inst.snapElements[i].item.ownerDocument,
30612inst.snapElements[i].item)){
30613if(inst.snapElements[i].snapping){
30614if(inst.options.snap.release){
30615inst.options.snap.release.call(
30616inst.element,
30617event,
30618$.extend(inst._uiHash(),{snapItem:inst.snapElements[i].item})
30619);
30620}
30621}
30622inst.snapElements[i].snapping=false;
30623continue;
30624}
30625if(o.snapMode!=="inner"){
30626ts=Math.abs(t-y2)<=d;
30627bs=Math.abs(b-y1)<=d;
30628ls=Math.abs(l-x2)<=d;
30629rs=Math.abs(r-x1)<=d;
30630if(ts){
30631ui.position.top=inst._convertPositionTo("relative",{
30632top:t-inst.helperProportions.height,
30633left:0
30634}).top;
30635}
30636if(bs){
30637ui.position.top=inst._convertPositionTo("relative",{
30638top:b,
30639left:0
30640}).top;
30641}
30642if(ls){
30643ui.position.left=inst._convertPositionTo("relative",{
30644top:0,
30645left:l-inst.helperProportions.width
30646}).left;
30647}
30648if(rs){
30649ui.position.left=inst._convertPositionTo("relative",{
30650top:0,
30651left:r
30652}).left;
30653}
30654}
30655first=(ts||bs||ls||rs);
30656if(o.snapMode!=="outer"){
30657ts=Math.abs(t-y1)<=d;
30658bs=Math.abs(b-y2)<=d;
30659ls=Math.abs(l-x1)<=d;
30660rs=Math.abs(r-x2)<=d;
30661if(ts){
30662ui.position.top=inst._convertPositionTo("relative",{
30663top:t,
30664left:0
30665}).top;
30666}
30667if(bs){
30668ui.position.top=inst._convertPositionTo("relative",{
30669top:b-inst.helperProportions.height,
30670left:0
30671}).top;
30672}
30673if(ls){
30674ui.position.left=inst._convertPositionTo("relative",{
30675top:0,
30676left:l
30677}).left;
30678}
30679if(rs){
30680ui.position.left=inst._convertPositionTo("relative",{
30681top:0,
30682left:r-inst.helperProportions.width
30683}).left;
30684}
30685}
30686if(!inst.snapElements[i].snapping&&(ts||bs||ls||rs||first)){
30687if(inst.options.snap.snap){
30688inst.options.snap.snap.call(
30689inst.element,
30690event,
30691$.extend(inst._uiHash(),{
30692snapItem:inst.snapElements[i].item
30693}));
30694}
30695}
30696inst.snapElements[i].snapping=(ts||bs||ls||rs||first);
30697}
30698}
30699});
30700$.ui.plugin.add("draggable","stack",{
30701start:function(event,ui,instance){
30702var min,
30703o=instance.options,
30704group=$.makeArray($(o.stack)).sort(function(a,b){
30705return(parseInt($(a).css("zIndex"),10)||0)-
30706(parseInt($(b).css("zIndex"),10)||0);
30707});
30708if(!group.length){
30709return;
30710}
30711min=parseInt($(group[0]).css("zIndex"),10)||0;
30712$(group).each(function(i){
30713$(this).css("zIndex",min+i);
30714});
30715this.css("zIndex",(min+group.length));
30716}
30717});
30718$.ui.plugin.add("draggable","zIndex",{
30719start:function(event,ui,instance){
30720var t=$(ui.helper),
30721o=instance.options;
30722if(t.css("zIndex")){
30723o._zIndex=t.css("zIndex");
30724}
30725t.css("zIndex",o.zIndex);
30726},
30727stop:function(event,ui,instance){
30728var o=instance.options;
30729if(o._zIndex){
30730$(ui.helper).css("zIndex",o._zIndex);
30731}
30732}
30733});
30734var widgetsDraggable=$.ui.draggable;
30735$.widget("ui.resizable",$.ui.mouse,{
30736version:"1.13.2",
30737widgetEventPrefix:"resize",
30738options:{
30739alsoResize:false,
30740animate:false,
30741animateDuration:"slow",
30742animateEasing:"swing",
30743aspectRatio:false,
30744autoHide:false,
30745classes:{
30746"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"
30747},
30748containment:false,
30749ghost:false,
30750grid:false,
30751handles:"e,s,se",
30752helper:false,
30753maxHeight:null,
30754maxWidth:null,
30755minHeight:10,
30756minWidth:10,
30757zIndex:90,
30758resize:null,
30759start:null,
30760stop:null
30761},
30762_num:function(value){
30763return parseFloat(value)||0;
30764},
30765_isNumber:function(value){
30766return!isNaN(parseFloat(value));
30767},
30768_hasScroll:function(el,a){
30769if($(el).css("overflow")==="hidden"){
30770return false;
30771}
30772var scroll=(a&&a==="left")?"scrollLeft":"scrollTop",
30773has=false;
30774if(el[scroll]>0){
30775return true;
30776}
30777try{
30778el[scroll]=1;
30779has=(el[scroll]>0);
30780el[scroll]=0;
30781}catch(e){
30782}
30783return has;
30784},
30785_create:function(){
30786var margins,
30787o=this.options,
30788that=this;
30789this._addClass("ui-resizable");
30790$.extend(this,{
30791_aspectRatio:!!(o.aspectRatio),
30792aspectRatio:o.aspectRatio,
30793originalElement:this.element,
30794_proportionallyResizeElements:[],
30795_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null
30796});
30797if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){
30798this.element.wrap(
30799$("<div class='ui-wrapper'></div>").css({
30800overflow:"hidden",
30801position:this.element.css("position"),
30802width:this.element.outerWidth(),
30803height:this.element.outerHeight(),
30804top:this.element.css("top"),
30805left:this.element.css("left")
30806})
30807);
30808this.element=this.element.parent().data(
30809"ui-resizable",this.element.resizable("instance")
30810);
30811this.elementIsWrapper=true;
30812margins={
30813marginTop:this.originalElement.css("marginTop"),
30814marginRight:this.originalElement.css("marginRight"),
30815marginBottom:this.originalElement.css("marginBottom"),
30816marginLeft:this.originalElement.css("marginLeft")
30817};
30818this.element.css(margins);
30819this.originalElement.css("margin",0);
30820this.originalResizeStyle=this.originalElement.css("resize");
30821this.originalElement.css("resize","none");
30822this._proportionallyResizeElements.push(this.originalElement.css({
30823position:"static",
30824zoom:1,
30825display:"block"
30826}));
30827this.originalElement.css(margins);
30828this._proportionallyResize();
30829}
30830this._setupHandles();
30831if(o.autoHide){
30832$(this.element)
30833.on("mouseenter",function(){
30834if(o.disabled){
30835return;
30836}
30837that._removeClass("ui-resizable-autohide");
30838that._handles.show();
30839})
30840.on("mouseleave",function(){
30841if(o.disabled){
30842return;
30843}
30844if(!that.resizing){
30845that._addClass("ui-resizable-autohide");
30846that._handles.hide();
30847}
30848});
30849}
30850this._mouseInit();
30851},
30852_destroy:function(){
30853this._mouseDestroy();
30854this._addedHandles.remove();
30855var wrapper,
30856_destroy=function(exp){
30857$(exp)
30858.removeData("resizable")
30859.removeData("ui-resizable")
30860.off(".resizable");
30861};
30862if(this.elementIsWrapper){
30863_destroy(this.element);
30864wrapper=this.element;
30865this.originalElement.css({
30866position:wrapper.css("position"),
30867width:wrapper.outerWidth(),
30868height:wrapper.outerHeight(),
30869top:wrapper.css("top"),
30870left:wrapper.css("left")
30871}).insertAfter(wrapper);
30872wrapper.remove();
30873}
30874this.originalElement.css("resize",this.originalResizeStyle);
30875_destroy(this.originalElement);
30876return this;
30877},
30878_setOption:function(key,value){
30879this._super(key,value);
30880switch(key){
30881case"handles":
30882this._removeHandles();
30883this._setupHandles();
30884break;
30885case"aspectRatio":
30886this._aspectRatio=!!value;
30887break;
30888default:
30889break;
30890}
30891},
30892_setupHandles:function(){
30893var o=this.options,handle,i,n,hname,axis,that=this;
30894this.handles=o.handles||
30895(!$(".ui-resizable-handle",this.element).length?
30896"e,s,se":{
30897n:".ui-resizable-n",
30898e:".ui-resizable-e",
30899s:".ui-resizable-s",
30900w:".ui-resizable-w",
30901se:".ui-resizable-se",
30902sw:".ui-resizable-sw",
30903ne:".ui-resizable-ne",
30904nw:".ui-resizable-nw"
30905});
30906this._handles=$();
30907this._addedHandles=$();
30908if(this.handles.constructor===String){
30909if(this.handles==="all"){
30910this.handles="n,e,s,w,se,sw,ne,nw";
30911}
30912n=this.handles.split(",");
30913this.handles={};
30914for(i=0;i<n.length;i++){
30915handle=String.prototype.trim.call(n[i]);
30916hname="ui-resizable-"+handle;
30917axis=$("<div>");
30918this._addClass(axis,"ui-resizable-handle "+hname);
30919axis.css({zIndex:o.zIndex});
30920this.handles[handle]=".ui-resizable-"+handle;
30921if(!this.element.children(this.handles[handle]).length){
30922this.element.append(axis);
30923this._addedHandles=this._addedHandles.add(axis);
30924}
30925}
30926}
30927this._renderAxis=function(target){
30928var i,axis,padPos,padWrapper;
30929target=target||this.element;
30930for(i in this.handles){
30931if(this.handles[i].constructor===String){
30932this.handles[i]=this.element.children(this.handles[i]).first().show();
30933}else if(this.handles[i].jquery||this.handles[i].nodeType){
30934this.handles[i]=$(this.handles[i]);
30935this._on(this.handles[i],{"mousedown":that._mouseDown});
30936}
30937if(this.elementIsWrapper&&
30938this.originalElement[0]
30939.nodeName
30940.match(/^(textarea|input|select|button)$/i)){
30941axis=$(this.handles[i],this.element);
30942padWrapper=/sw|ne|nw|se|n|s/.test(i)?
30943axis.outerHeight():
30944axis.outerWidth();
30945padPos=["padding",
30946/ne|nw|n/.test(i)?"Top":
30947/se|sw|s/.test(i)?"Bottom":
30948/^e$/.test(i)?"Right":"Left"].join("");
30949target.css(padPos,padWrapper);
30950this._proportionallyResize();
30951}
30952this._handles=this._handles.add(this.handles[i]);
30953}
30954};
30955this._renderAxis(this.element);
30956this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));
30957this._handles.disableSelection();
30958this._handles.on("mouseover",function(){
30959if(!that.resizing){
30960if(this.className){
30961axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
30962}
30963that.axis=axis&&axis[1]?axis[1]:"se";
30964}
30965});
30966if(o.autoHide){
30967this._handles.hide();
30968this._addClass("ui-resizable-autohide");
30969}
30970},
30971_removeHandles:function(){
30972this._addedHandles.remove();
30973},
30974_mouseCapture:function(event){
30975var i,handle,
30976capture=false;
30977for(i in this.handles){
30978handle=$(this.handles[i])[0];
30979if(handle===event.target||$.contains(handle,event.target)){
30980capture=true;
30981}
30982}
30983return!this.options.disabled&&capture;
30984},
30985_mouseStart:function(event){
30986var curleft,curtop,cursor,
30987o=this.options,
30988el=this.element;
30989this.resizing=true;
30990this._renderProxy();
30991curleft=this._num(this.helper.css("left"));
30992curtop=this._num(this.helper.css("top"));
30993if(o.containment){
30994curleft+=$(o.containment).scrollLeft()||0;
30995curtop+=$(o.containment).scrollTop()||0;
30996}
30997this.offset=this.helper.offset();
30998this.position={left:curleft,top:curtop};
30999this.size=this._helper?{
31000width:this.helper.width(),
31001height:this.helper.height()
31002}:{
31003width:el.width(),
31004height:el.height()
31005};
31006this.originalSize=this._helper?{
31007width:el.outerWidth(),
31008height:el.outerHeight()
31009}:{
31010width:el.width(),
31011height:el.height()
31012};
31013this.sizeDiff={
31014width:el.outerWidth()-el.width(),
31015height:el.outerHeight()-el.height()
31016};
31017this.originalPosition={left:curleft,top:curtop};
31018this.originalMousePosition={left:event.pageX,top:event.pageY};
31019this.aspectRatio=(typeof o.aspectRatio==="number")?
31020o.aspectRatio:
31021((this.originalSize.width/this.originalSize.height)||1);
31022cursor=$(".ui-resizable-"+this.axis).css("cursor");
31023$("body").css("cursor",cursor==="auto"?this.axis+"-resize":cursor);
31024this._addClass("ui-resizable-resizing");
31025this._propagate("start",event);
31026return true;
31027},
31028_mouseDrag:function(event){
31029var data,props,
31030smp=this.originalMousePosition,
31031a=this.axis,
31032dx=(event.pageX-smp.left)||0,
31033dy=(event.pageY-smp.top)||0,
31034trigger=this._change[a];
31035this._updatePrevProperties();
31036if(!trigger){
31037return false;
vendor: 4,316 bytes, lines 31038-31204
31038}
31039data=trigger.apply(this,[event,dx,dy]);
31040this._updateVirtualBoundaries(event.shiftKey);
31041if(this._aspectRatio||event.shiftKey){
31042data=this._updateRatio(data,event);
31043}
31044data=this._respectSize(data,event);
31045this._updateCache(data);
31046this._propagate("resize",event);
31047props=this._applyChanges();
31048if(!this._helper&&this._proportionallyResizeElements.length){
31049this._proportionallyResize();
31050}
31051if(!$.isEmptyObject(props)){
31052this._updatePrevProperties();
31053this._trigger("resize",event,this.ui());
31054this._applyChanges();
31055}
31056return false;
31057},
31058_mouseStop:function(event){
31059this.resizing=false;
31060var pr,ista,soffseth,soffsetw,s,left,top,
31061o=this.options,that=this;
31062if(this._helper){
31063pr=this._proportionallyResizeElements;
31064ista=pr.length&&(/textarea/i).test(pr[0].nodeName);
31065soffseth=ista&&this._hasScroll(pr[0],"left")?0:that.sizeDiff.height;
31066soffsetw=ista?0:that.sizeDiff.width;
31067s={
31068width:(that.helper.width()-soffsetw),
31069height:(that.helper.height()-soffseth)
31070};
31071left=(parseFloat(that.element.css("left"))+
31072(that.position.left-that.originalPosition.left))||null;
31073top=(parseFloat(that.element.css("top"))+
31074(that.position.top-that.originalPosition.top))||null;
31075if(!o.animate){
31076this.element.css($.extend(s,{top:top,left:left}));
31077}
31078that.helper.height(that.size.height);
31079that.helper.width(that.size.width);
31080if(this._helper&&!o.animate){
31081this._proportionallyResize();
31082}
31083}
31084$("body").css("cursor","auto");
31085this._removeClass("ui-resizable-resizing");
31086this._propagate("stop",event);
31087if(this._helper){
31088this.helper.remove();
31089}
31090return false;
31091},
31092_updatePrevProperties:function(){
31093this.prevPosition={
31094top:this.position.top,
31095left:this.position.left
31096};
31097this.prevSize={
31098width:this.size.width,
31099height:this.size.height
31100};
31101},
31102_applyChanges:function(){
31103var props={};
31104if(this.position.top!==this.prevPosition.top){
31105props.top=this.position.top+"px";
31106}
31107if(this.position.left!==this.prevPosition.left){
31108props.left=this.position.left+"px";
31109}
31110if(this.size.width!==this.prevSize.width){
31111props.width=this.size.width+"px";
31112}
31113if(this.size.height!==this.prevSize.height){
31114props.height=this.size.height+"px";
31115}
31116this.helper.css(props);
31117return props;
31118},
31119_updateVirtualBoundaries:function(forceAspectRatio){
31120var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,
31121o=this.options;
31122b={
31123minWidth:this._isNumber(o.minWidth)?o.minWidth:0,
31124maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:Infinity,
31125minHeight:this._isNumber(o.minHeight)?o.minHeight:0,
31126maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:Infinity
31127};
31128if(this._aspectRatio||forceAspectRatio){
31129pMinWidth=b.minHeight*this.aspectRatio;
31130pMinHeight=b.minWidth/this.aspectRatio;
31131pMaxWidth=b.maxHeight*this.aspectRatio;
31132pMaxHeight=b.maxWidth/this.aspectRatio;
31133if(pMinWidth>b.minWidth){
31134b.minWidth=pMinWidth;
31135}
31136if(pMinHeight>b.minHeight){
31137b.minHeight=pMinHeight;
31138}
31139if(pMaxWidth<b.maxWidth){
31140b.maxWidth=pMaxWidth;
31141}
31142if(pMaxHeight<b.maxHeight){
31143b.maxHeight=pMaxHeight;
31144}
31145}
31146this._vBoundaries=b;
31147},
31148_updateCache:function(data){
31149this.offset=this.helper.offset();
31150if(this._isNumber(data.left)){
31151this.position.left=data.left;
31152}
31153if(this._isNumber(data.top)){
31154this.position.top=data.top;
31155}
31156if(this._isNumber(data.height)){
31157this.size.height=data.height;
31158}
31159if(this._isNumber(data.width)){
31160this.size.width=data.width;
31161}
31162},
31163_updateRatio:function(data){
31164var cpos=this.position,
31165csize=this.size,
31166a=this.axis;
31167if(this._isNumber(data.height)){
31168data.width=(data.height*this.aspectRatio);
31169}else if(this._isNumber(data.width)){
31170data.height=(data.width/this.aspectRatio);
31171}
31172if(a==="sw"){
31173data.left=cpos.left+(csize.width-data.width);
31174data.top=null;
31175}
31176if(a==="nw"){
31177data.top=cpos.top+(csize.height-data.height);
31178data.left=cpos.left+(csize.width-data.width);
31179}
31180return data;
31181},
31182_respectSize:function(data){
31183var o=this._vBoundaries,
31184a=this.axis,
31185ismaxw=this._isNumber(data.width)&&o.maxWidth&&(o.maxWidth<data.width),
31186ismaxh=this._isNumber(data.height)&&o.maxHeight&&(o.maxHeight<data.height),
31187isminw=this._isNumber(data.width)&&o.minWidth&&(o.minWidth>data.width),
31188isminh=this._isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),
31189dw=this.originalPosition.left+this.originalSize.width,
31190dh=this.originalPosition.top+this.originalSize.height,
31191cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);
31192if(isminw){
31193data.width=o.minWidth;
31194}
31195if(isminh){
31196data.height=o.minHeight;
31197}
31198if(ismaxw){
31199data.width=o.maxWidth;
31200}
31201if(ismaxh){
31202data.height=o.maxHeight;
31203}
31204if(isminw&&cw){
vendor: 4,946 bytes, lines 31205-31412
31205data.left=dw-o.minWidth;
31206}
31207if(ismaxw&&cw){
31208data.left=dw-o.maxWidth;
31209}
31210if(isminh&&ch){
31211data.top=dh-o.minHeight;
31212}
31213if(ismaxh&&ch){
31214data.top=dh-o.maxHeight;
31215}
31216if(!data.width&&!data.height&&!data.left&&data.top){
31217data.top=null;
31218}else if(!data.width&&!data.height&&!data.top&&data.left){
31219data.left=null;
31220}
31221return data;
31222},
31223_getPaddingPlusBorderDimensions:function(element){
31224var i=0,
31225widths=[],
31226borders=[
31227element.css("borderTopWidth"),
31228element.css("borderRightWidth"),
31229element.css("borderBottomWidth"),
31230element.css("borderLeftWidth")
31231],
31232paddings=[
31233element.css("paddingTop"),
31234element.css("paddingRight"),
31235element.css("paddingBottom"),
31236element.css("paddingLeft")
31237];
31238for(;i<4;i++){
31239widths[i]=(parseFloat(borders[i])||0);
31240widths[i]+=(parseFloat(paddings[i])||0);
31241}
31242return{
31243height:widths[0]+widths[2],
31244width:widths[1]+widths[3]
31245};
31246},
31247_proportionallyResize:function(){
31248if(!this._proportionallyResizeElements.length){
31249return;
31250}
31251var prel,
31252i=0,
31253element=this.helper||this.element;
31254for(;i<this._proportionallyResizeElements.length;i++){
31255prel=this._proportionallyResizeElements[i];
31256if(!this.outerDimensions){
31257this.outerDimensions=this._getPaddingPlusBorderDimensions(prel);
31258}
31259prel.css({
31260height:(element.height()-this.outerDimensions.height)||0,
31261width:(element.width()-this.outerDimensions.width)||0
31262});
31263}
31264},
31265_renderProxy:function(){
31266var el=this.element,o=this.options;
31267this.elementOffset=el.offset();
31268if(this._helper){
31269this.helper=this.helper||$("<div></div>").css({overflow:"hidden"});
31270this._addClass(this.helper,this._helper);
31271this.helper.css({
31272width:this.element.outerWidth(),
31273height:this.element.outerHeight(),
31274position:"absolute",
31275left:this.elementOffset.left+"px",
31276top:this.elementOffset.top+"px",
31277zIndex:++o.zIndex
31278});
31279this.helper
31280.appendTo("body")
31281.disableSelection();
31282}else{
31283this.helper=this.element;
31284}
31285},
31286_change:{
31287e:function(event,dx){
31288return{width:this.originalSize.width+dx};
31289},
31290w:function(event,dx){
31291var cs=this.originalSize,sp=this.originalPosition;
31292return{left:sp.left+dx,width:cs.width-dx};
31293},
31294n:function(event,dx,dy){
31295var cs=this.originalSize,sp=this.originalPosition;
31296return{top:sp.top+dy,height:cs.height-dy};
31297},
31298s:function(event,dx,dy){
31299return{height:this.originalSize.height+dy};
31300},
31301se:function(event,dx,dy){
31302return $.extend(this._change.s.apply(this,arguments),
31303this._change.e.apply(this,[event,dx,dy]));
31304},
31305sw:function(event,dx,dy){
31306return $.extend(this._change.s.apply(this,arguments),
31307this._change.w.apply(this,[event,dx,dy]));
31308},
31309ne:function(event,dx,dy){
31310return $.extend(this._change.n.apply(this,arguments),
31311this._change.e.apply(this,[event,dx,dy]));
31312},
31313nw:function(event,dx,dy){
31314return $.extend(this._change.n.apply(this,arguments),
31315this._change.w.apply(this,[event,dx,dy]));
31316}
31317},
31318_propagate:function(n,event){
31319$.ui.plugin.call(this,n,[event,this.ui()]);
31320if(n!=="resize"){
31321this._trigger(n,event,this.ui());
31322}
31323},
31324plugins:{},
31325ui:function(){
31326return{
31327originalElement:this.originalElement,
31328element:this.element,
31329helper:this.helper,
31330position:this.position,
31331size:this.size,
31332originalSize:this.originalSize,
31333originalPosition:this.originalPosition
31334};
31335}
31336});
31337$.ui.plugin.add("resizable","animate",{
31338stop:function(event){
31339var that=$(this).resizable("instance"),
31340o=that.options,
31341pr=that._proportionallyResizeElements,
31342ista=pr.length&&(/textarea/i).test(pr[0].nodeName),
31343soffseth=ista&&that._hasScroll(pr[0],"left")?0:that.sizeDiff.height,
31344soffsetw=ista?0:that.sizeDiff.width,
31345style={
31346width:(that.size.width-soffsetw),
31347height:(that.size.height-soffseth)
31348},
31349left=(parseFloat(that.element.css("left"))+
31350(that.position.left-that.originalPosition.left))||null,
31351top=(parseFloat(that.element.css("top"))+
31352(that.position.top-that.originalPosition.top))||null;
31353that.element.animate(
31354$.extend(style,top&&left?{top:top,left:left}:{}),{
31355duration:o.animateDuration,
31356easing:o.animateEasing,
31357step:function(){
31358var data={
31359width:parseFloat(that.element.css("width")),
31360height:parseFloat(that.element.css("height")),
31361top:parseFloat(that.element.css("top")),
31362left:parseFloat(that.element.css("left"))
31363};
31364if(pr&&pr.length){
31365$(pr[0]).css({width:data.width,height:data.height});
31366}
31367that._updateCache(data);
31368that._propagate("resize",event);
31369}
31370}
31371);
31372}
31373});
31374$.ui.plugin.add("resizable","containment",{
31375start:function(){
31376var element,p,co,ch,cw,width,height,
31377that=$(this).resizable("instance"),
31378o=that.options,
31379el=that.element,
31380oc=o.containment,
31381ce=(oc instanceof $)?
31382oc.get(0):
31383(/parent/.test(oc))?el.parent().get(0):oc;
31384if(!ce){
31385return;
31386}
31387that.containerElement=$(ce);
31388if(/document/.test(oc)||oc===document){
31389that.containerOffset={
31390left:0,
31391top:0
31392};
31393that.containerPosition={
31394left:0,
31395top:0
31396};
31397that.parentData={
31398element:$(document),
31399left:0,
31400top:0,
31401width:$(document).width(),
31402height:$(document).height()||document.body.parentNode.scrollHeight
31403};
31404}else{
31405element=$(ce);
31406p=[];
31407$(["Top","Right","Left","Bottom"]).each(function(i,name){
31408p[i]=that._num(element.css("padding"+name));
31409});
31410that.containerOffset=element.offset();
31411that.containerPosition=element.position();
31412that.containerSize={
vendor: 5,051 bytes, lines 31413-31619
31413height:(element.innerHeight()-p[3]),
31414width:(element.innerWidth()-p[1])
31415};
31416co=that.containerOffset;
31417ch=that.containerSize.height;
31418cw=that.containerSize.width;
31419width=(that._hasScroll(ce,"left")?ce.scrollWidth:cw);
31420height=(that._hasScroll(ce)?ce.scrollHeight:ch);
31421that.parentData={
31422element:ce,
31423left:co.left,
31424top:co.top,
31425width:width,
31426height:height
31427};
31428}
31429},
31430resize:function(event){
31431var woset,hoset,isParent,isOffsetRelative,
31432that=$(this).resizable("instance"),
31433o=that.options,
31434co=that.containerOffset,
31435cp=that.position,
31436pRatio=that._aspectRatio||event.shiftKey,
31437cop={
31438top:0,
31439left:0
31440},
31441ce=that.containerElement,
31442continueResize=true;
31443if(ce[0]!==document&&(/static/).test(ce.css("position"))){
31444cop=co;
31445}
31446if(cp.left<(that._helper?co.left:0)){
31447that.size.width=that.size.width+
31448(that._helper?
31449(that.position.left-co.left):
31450(that.position.left-cop.left));
31451if(pRatio){
31452that.size.height=that.size.width/that.aspectRatio;
31453continueResize=false;
31454}
31455that.position.left=o.helper?co.left:0;
31456}
31457if(cp.top<(that._helper?co.top:0)){
31458that.size.height=that.size.height+
31459(that._helper?
31460(that.position.top-co.top):
31461that.position.top);
31462if(pRatio){
31463that.size.width=that.size.height*that.aspectRatio;
31464continueResize=false;
31465}
31466that.position.top=that._helper?co.top:0;
31467}
31468isParent=that.containerElement.get(0)===that.element.parent().get(0);
31469isOffsetRelative=/relative|absolute/.test(that.containerElement.css("position"));
31470if(isParent&&isOffsetRelative){
31471that.offset.left=that.parentData.left+that.position.left;
31472that.offset.top=that.parentData.top+that.position.top;
31473}else{
31474that.offset.left=that.element.offset().left;
31475that.offset.top=that.element.offset().top;
31476}
31477woset=Math.abs(that.sizeDiff.width+
31478(that._helper?
31479that.offset.left-cop.left:
31480(that.offset.left-co.left)));
31481hoset=Math.abs(that.sizeDiff.height+
31482(that._helper?
31483that.offset.top-cop.top:
31484(that.offset.top-co.top)));
31485if(woset+that.size.width>=that.parentData.width){
31486that.size.width=that.parentData.width-woset;
31487if(pRatio){
31488that.size.height=that.size.width/that.aspectRatio;
31489continueResize=false;
31490}
31491}
31492if(hoset+that.size.height>=that.parentData.height){
31493that.size.height=that.parentData.height-hoset;
31494if(pRatio){
31495that.size.width=that.size.height*that.aspectRatio;
31496continueResize=false;
31497}
31498}
31499if(!continueResize){
31500that.position.left=that.prevPosition.left;
31501that.position.top=that.prevPosition.top;
31502that.size.width=that.prevSize.width;
31503that.size.height=that.prevSize.height;
31504}
31505},
31506stop:function(){
31507var that=$(this).resizable("instance"),
31508o=that.options,
31509co=that.containerOffset,
31510cop=that.containerPosition,
31511ce=that.containerElement,
31512helper=$(that.helper),
31513ho=helper.offset(),
31514w=helper.outerWidth()-that.sizeDiff.width,
31515h=helper.outerHeight()-that.sizeDiff.height;
31516if(that._helper&&!o.animate&&(/relative/).test(ce.css("position"))){
31517$(this).css({
31518left:ho.left-cop.left-co.left,
31519width:w,
31520height:h
31521});
31522}
31523if(that._helper&&!o.animate&&(/static/).test(ce.css("position"))){
31524$(this).css({
31525left:ho.left-cop.left-co.left,
31526width:w,
31527height:h
31528});
31529}
31530}
31531});
31532$.ui.plugin.add("resizable","alsoResize",{
31533start:function(){
31534var that=$(this).resizable("instance"),
31535o=that.options;
31536$(o.alsoResize).each(function(){
31537var el=$(this);
31538el.data("ui-resizable-alsoresize",{
31539width:parseFloat(el.width()),height:parseFloat(el.height()),
31540left:parseFloat(el.css("left")),top:parseFloat(el.css("top"))
31541});
31542});
31543},
31544resize:function(event,ui){
31545var that=$(this).resizable("instance"),
31546o=that.options,
31547os=that.originalSize,
31548op=that.originalPosition,
31549delta={
31550height:(that.size.height-os.height)||0,
31551width:(that.size.width-os.width)||0,
31552top:(that.position.top-op.top)||0,
31553left:(that.position.left-op.left)||0
31554};
31555$(o.alsoResize).each(function(){
31556var el=$(this),start=$(this).data("ui-resizable-alsoresize"),style={},
31557css=el.parents(ui.originalElement[0]).length?
31558["width","height"]:
31559["width","height","top","left"];
31560$.each(css,function(i,prop){
31561var sum=(start[prop]||0)+(delta[prop]||0);
31562if(sum&&sum>=0){
31563style[prop]=sum||null;
31564}
31565});
31566el.css(style);
31567});
31568},
31569stop:function(){
31570$(this).removeData("ui-resizable-alsoresize");
31571}
31572});
31573$.ui.plugin.add("resizable","ghost",{
31574start:function(){
31575var that=$(this).resizable("instance"),cs=that.size;
31576that.ghost=that.originalElement.clone();
31577that.ghost.css({
31578opacity:0.25,
31579display:"block",
31580position:"relative",
31581height:cs.height,
31582width:cs.width,
31583margin:0,
31584left:0,
31585top:0
31586});
31587that._addClass(that.ghost,"ui-resizable-ghost");
31588if($.uiBackCompat!==false&&typeof that.options.ghost==="string"){
31589that.ghost.addClass(this.options.ghost);
31590}
31591that.ghost.appendTo(that.helper);
31592},
31593resize:function(){
31594var that=$(this).resizable("instance");
31595if(that.ghost){
31596that.ghost.css({
31597position:"relative",
31598height:that.size.height,
31599width:that.size.width
31600});
31601}
31602},
31603stop:function(){
31604var that=$(this).resizable("instance");
31605if(that.ghost&&that.helper){
31606that.helper.get(0).removeChild(that.ghost.get(0));
31607}
31608}
31609});
31610$.ui.plugin.add("resizable","grid",{
31611resize:function(){
31612var outerDimensions,
31613that=$(this).resizable("instance"),
31614o=that.options,
31615cs=that.size,
31616os=that.originalSize,
31617op=that.originalPosition,
31618a=that.axis,
31619grid=typeof o.grid==="number"?[o.grid,o.grid]:o.grid,
vendor: 17,715 bytes, lines 31620-32402
31620gridX=(grid[0]||1),
31621gridY=(grid[1]||1),
31622ox=Math.round((cs.width-os.width)/gridX)*gridX,
31623oy=Math.round((cs.height-os.height)/gridY)*gridY,
31624newWidth=os.width+ox,
31625newHeight=os.height+oy,
31626isMaxWidth=o.maxWidth&&(o.maxWidth<newWidth),
31627isMaxHeight=o.maxHeight&&(o.maxHeight<newHeight),
31628isMinWidth=o.minWidth&&(o.minWidth>newWidth),
31629isMinHeight=o.minHeight&&(o.minHeight>newHeight);
31630o.grid=grid;
31631if(isMinWidth){
31632newWidth+=gridX;
31633}
31634if(isMinHeight){
31635newHeight+=gridY;
31636}
31637if(isMaxWidth){
31638newWidth-=gridX;
31639}
31640if(isMaxHeight){
31641newHeight-=gridY;
31642}
31643if(/^(se|s|e)$/.test(a)){
31644that.size.width=newWidth;
31645that.size.height=newHeight;
31646}else if(/^(ne)$/.test(a)){
31647that.size.width=newWidth;
31648that.size.height=newHeight;
31649that.position.top=op.top-oy;
31650}else if(/^(sw)$/.test(a)){
31651that.size.width=newWidth;
31652that.size.height=newHeight;
31653that.position.left=op.left-ox;
31654}else{
31655if(newHeight-gridY<=0||newWidth-gridX<=0){
31656outerDimensions=that._getPaddingPlusBorderDimensions(this);
31657}
31658if(newHeight-gridY>0){
31659that.size.height=newHeight;
31660that.position.top=op.top-oy;
31661}else{
31662newHeight=gridY-outerDimensions.height;
31663that.size.height=newHeight;
31664that.position.top=op.top+os.height-newHeight;
31665}
31666if(newWidth-gridX>0){
31667that.size.width=newWidth;
31668that.position.left=op.left-ox;
31669}else{
31670newWidth=gridX-outerDimensions.width;
31671that.size.width=newWidth;
31672that.position.left=op.left+os.width-newWidth;
31673}
31674}
31675}
31676});
31677var widgetsResizable=$.ui.resizable;
31678$.widget("ui.dialog",{
31679version:"1.13.2",
31680options:{
31681appendTo:"body",
31682autoOpen:true,
31683buttons:[],
31684classes:{
31685"ui-dialog":"ui-corner-all",
31686"ui-dialog-titlebar":"ui-corner-all"
31687},
31688closeOnEscape:true,
31689closeText:"Close",
31690draggable:true,
31691hide:null,
31692height:"auto",
31693maxHeight:null,
31694maxWidth:null,
31695minHeight:150,
31696minWidth:150,
31697modal:false,
31698position:{
31699my:"center",
31700at:"center",
31701of:window,
31702collision:"fit",
31703using:function(pos){
31704var topOffset=$(this).css(pos).offset().top;
31705if(topOffset<0){
31706$(this).css("top",pos.top-topOffset);
31707}
31708}
31709},
31710resizable:true,
31711show:null,
31712title:null,
31713width:300,
31714beforeClose:null,
31715close:null,
31716drag:null,
31717dragStart:null,
31718dragStop:null,
31719focus:null,
31720open:null,
31721resize:null,
31722resizeStart:null,
31723resizeStop:null
31724},
31725sizeRelatedOptions:{
31726buttons:true,
31727height:true,
31728maxHeight:true,
31729maxWidth:true,
31730minHeight:true,
31731minWidth:true,
31732width:true
31733},
31734resizableRelatedOptions:{
31735maxHeight:true,
31736maxWidth:true,
31737minHeight:true,
31738minWidth:true
31739},
31740_create:function(){
31741this.originalCss={
31742display:this.element[0].style.display,
31743width:this.element[0].style.width,
31744minHeight:this.element[0].style.minHeight,
31745maxHeight:this.element[0].style.maxHeight,
31746height:this.element[0].style.height
31747};
31748this.originalPosition={
31749parent:this.element.parent(),
31750index:this.element.parent().children().index(this.element)
31751};
31752this.originalTitle=this.element.attr("title");
31753if(this.options.title==null&&this.originalTitle!=null){
31754this.options.title=this.originalTitle;
31755}
31756if(this.options.disabled){
31757this.options.disabled=false;
31758}
31759this._createWrapper();
31760this.element
31761.show()
31762.removeAttr("title")
31763.appendTo(this.uiDialog);
31764this._addClass("ui-dialog-content","ui-widget-content");
31765this._createTitlebar();
31766this._createButtonPane();
31767if(this.options.draggable&&$.fn.draggable){
31768this._makeDraggable();
31769}
31770if(this.options.resizable&&$.fn.resizable){
31771this._makeResizable();
31772}
31773this._isOpen=false;
31774this._trackFocus();
31775},
31776_init:function(){
31777if(this.options.autoOpen){
31778this.open();
31779}
31780},
31781_appendTo:function(){
31782var element=this.options.appendTo;
31783if(element&&(element.jquery||element.nodeType)){
31784return $(element);
31785}
31786return this.document.find(element||"body").eq(0);
31787},
31788_destroy:function(){
31789var next,
31790originalPosition=this.originalPosition;
31791this._untrackInstance();
31792this._destroyOverlay();
31793this.element
31794.removeUniqueId()
31795.css(this.originalCss)
31796.detach();
31797this.uiDialog.remove();
31798if(this.originalTitle){
31799this.element.attr("title",this.originalTitle);
31800}
31801next=originalPosition.parent.children().eq(originalPosition.index);
31802if(next.length&&next[0]!==this.element[0]){
31803next.before(this.element);
31804}else{
31805originalPosition.parent.append(this.element);
31806}
31807},
31808widget:function(){
31809return this.uiDialog;
31810},
31811disable:$.noop,
31812enable:$.noop,
31813close:function(event){
31814var that=this;
31815if(!this._isOpen||this._trigger("beforeClose",event)===false){
31816return;
31817}
31818this._isOpen=false;
31819this._focusedElement=null;
31820this._destroyOverlay();
31821this._untrackInstance();
31822if(!this.opener.filter(":focusable").trigger("focus").length){
31823$.ui.safeBlur($.ui.safeActiveElement(this.document[0]));
31824}
31825this._hide(this.uiDialog,this.options.hide,function(){
31826that._trigger("close",event);
31827});
31828},
31829isOpen:function(){
31830return this._isOpen;
31831},
31832moveToTop:function(){
31833this._moveToTop();
31834},
31835_moveToTop:function(event,silent){
31836var moved=false,
31837zIndices=this.uiDialog.siblings(".ui-front:visible").map(function(){
31838return+$(this).css("z-index");
31839}).get(),
31840zIndexMax=Math.max.apply(null,zIndices);
31841if(zIndexMax>=+this.uiDialog.css("z-index")){
31842this.uiDialog.css("z-index",zIndexMax+1);
31843moved=true;
31844}
31845if(moved&&!silent){
31846this._trigger("focus",event);
31847}
31848return moved;
31849},
31850open:function(){
31851var that=this;
31852if(this._isOpen){
31853if(this._moveToTop()){
31854this._focusTabbable();
31855}
31856return;
31857}
31858this._isOpen=true;
31859this.opener=$($.ui.safeActiveElement(this.document[0]));
31860this._size();
31861this._position();
31862this._createOverlay();
31863this._moveToTop(null,true);
31864if(this.overlay){
31865this.overlay.css("z-index",this.uiDialog.css("z-index")-1);
31866}
31867this._show(this.uiDialog,this.options.show,function(){
31868that._focusTabbable();
31869that._trigger("focus");
31870});
31871this._makeFocusTarget();
31872this._trigger("open");
31873},
31874_focusTabbable:function(){
31875var hasFocus=this._focusedElement;
31876if(!hasFocus){
31877hasFocus=this.element.find("[autofocus]");
31878}
31879if(!hasFocus.length){
31880hasFocus=this.element.find(":tabbable");
31881}
31882if(!hasFocus.length){
31883hasFocus=this.uiDialogButtonPane.find(":tabbable");
31884}
31885if(!hasFocus.length){
31886hasFocus=this.uiDialogTitlebarClose.filter(":tabbable");
31887}
31888if(!hasFocus.length){
31889hasFocus=this.uiDialog;
31890}
31891hasFocus.eq(0).trigger("focus");
31892},
31893_restoreTabbableFocus:function(){
31894var activeElement=$.ui.safeActiveElement(this.document[0]),
31895isActive=this.uiDialog[0]===activeElement||
31896$.contains(this.uiDialog[0],activeElement);
31897if(!isActive){
31898this._focusTabbable();
31899}
31900},
31901_keepFocus:function(event){
31902event.preventDefault();
31903this._restoreTabbableFocus();
31904this._delay(this._restoreTabbableFocus);
31905},
31906_createWrapper:function(){
31907this.uiDialog=$("<div>")
31908.hide()
31909.attr({
31910tabIndex:-1,
31911role:"dialog"
31912})
31913.appendTo(this._appendTo());
31914this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");
31915this._on(this.uiDialog,{
31916keydown:function(event){
31917if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&
31918event.keyCode===$.ui.keyCode.ESCAPE){
31919event.preventDefault();
31920this.close(event);
31921return;
31922}
31923if(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented()){
31924return;
31925}
31926var tabbables=this.uiDialog.find(":tabbable"),
31927first=tabbables.first(),
31928last=tabbables.last();
31929if((event.target===last[0]||event.target===this.uiDialog[0])&&
31930!event.shiftKey){
31931this._delay(function(){
31932first.trigger("focus");
31933});
31934event.preventDefault();
31935}else if((event.target===first[0]||
31936event.target===this.uiDialog[0])&&event.shiftKey){
31937this._delay(function(){
31938last.trigger("focus");
31939});
31940event.preventDefault();
31941}
31942},
31943mousedown:function(event){
31944if(this._moveToTop(event)){
31945this._focusTabbable();
31946}
31947}
31948});
31949if(!this.element.find("[aria-describedby]").length){
31950this.uiDialog.attr({
31951"aria-describedby":this.element.uniqueId().attr("id")
31952});
31953}
31954},
31955_createTitlebar:function(){
31956var uiDialogTitle;
31957this.uiDialogTitlebar=$("<div>");
31958this._addClass(this.uiDialogTitlebar,
31959"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");
31960this._on(this.uiDialogTitlebar,{
31961mousedown:function(event){
31962if(!$(event.target).closest(".ui-dialog-titlebar-close")){
31963this.uiDialog.trigger("focus");
31964}
31965}
31966});
31967this.uiDialogTitlebarClose=$("<button type='button'></button>")
31968.button({
31969label:$("<a>").text(this.options.closeText).html(),
31970icon:"ui-icon-closethick",
31971showLabel:false
31972})
31973.appendTo(this.uiDialogTitlebar);
31974this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");
31975this._on(this.uiDialogTitlebarClose,{
31976click:function(event){
31977event.preventDefault();
31978this.close(event);
31979}
31980});
31981uiDialogTitle=$("<span>").uniqueId().prependTo(this.uiDialogTitlebar);
31982this._addClass(uiDialogTitle,"ui-dialog-title");
31983this._title(uiDialogTitle);
31984this.uiDialogTitlebar.prependTo(this.uiDialog);
31985this.uiDialog.attr({
31986"aria-labelledby":uiDialogTitle.attr("id")
31987});
31988},
31989_title:function(title){
31990if(this.options.title){
31991title.text(this.options.title);
31992}else{
31993title.html("&#160;");
31994}
31995},
31996_createButtonPane:function(){
31997this.uiDialogButtonPane=$("<div>");
31998this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane",
31999"ui-widget-content ui-helper-clearfix");
32000this.uiButtonSet=$("<div>")
32001.appendTo(this.uiDialogButtonPane);
32002this._addClass(this.uiButtonSet,"ui-dialog-buttonset");
32003this._createButtons();
32004},
32005_createButtons:function(){
32006var that=this,
32007buttons=this.options.buttons;
32008this.uiDialogButtonPane.remove();
32009this.uiButtonSet.empty();
32010if($.isEmptyObject(buttons)||(Array.isArray(buttons)&&!buttons.length)){
32011this._removeClass(this.uiDialog,"ui-dialog-buttons");
32012return;
32013}
32014$.each(buttons,function(name,props){
32015var click,buttonOptions;
32016props=typeof props==="function"?
32017{click:props,text:name}:
32018props;
32019props=$.extend({type:"button"},props);
32020click=props.click;
32021buttonOptions={
32022icon:props.icon,
32023iconPosition:props.iconPosition,
32024showLabel:props.showLabel,
32025icons:props.icons,
32026text:props.text
32027};
32028delete props.click;
32029delete props.icon;
32030delete props.iconPosition;
32031delete props.showLabel;
32032delete props.icons;
32033if(typeof props.text==="boolean"){
32034delete props.text;
32035}
32036$("<button></button>",props)
32037.button(buttonOptions)
32038.appendTo(that.uiButtonSet)
32039.on("click",function(){
32040click.apply(that.element[0],arguments);
32041});
32042});
32043this._addClass(this.uiDialog,"ui-dialog-buttons");
32044this.uiDialogButtonPane.appendTo(this.uiDialog);
32045},
32046_makeDraggable:function(){
32047var that=this,
32048options=this.options;
32049function filteredUi(ui){
32050return{
32051position:ui.position,
32052offset:ui.offset
32053};
32054}
32055this.uiDialog.draggable({
32056cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
32057handle:".ui-dialog-titlebar",
32058containment:"document",
32059start:function(event,ui){
32060that._addClass($(this),"ui-dialog-dragging");
32061that._blockFrames();
32062that._trigger("dragStart",event,filteredUi(ui));
32063},
32064drag:function(event,ui){
32065that._trigger("drag",event,filteredUi(ui));
32066},
32067stop:function(event,ui){
32068var left=ui.offset.left-that.document.scrollLeft(),
32069top=ui.offset.top-that.document.scrollTop();
32070options.position={
32071my:"left top",
32072at:"left"+(left>=0?"+":"")+left+" "+
32073"top"+(top>=0?"+":"")+top,
32074of:that.window
32075};
32076that._removeClass($(this),"ui-dialog-dragging");
32077that._unblockFrames();
32078that._trigger("dragStop",event,filteredUi(ui));
32079}
32080});
32081},
32082_makeResizable:function(){
32083var that=this,
32084options=this.options,
32085handles=options.resizable,
32086position=this.uiDialog.css("position"),
32087resizeHandles=typeof handles==="string"?
32088handles:
32089"n,e,s,w,se,sw,ne,nw";
32090function filteredUi(ui){
32091return{
32092originalPosition:ui.originalPosition,
32093originalSize:ui.originalSize,
32094position:ui.position,
32095size:ui.size
32096};
32097}
32098this.uiDialog.resizable({
32099cancel:".ui-dialog-content",
32100containment:"document",
32101alsoResize:this.element,
32102maxWidth:options.maxWidth,
32103maxHeight:options.maxHeight,
32104minWidth:options.minWidth,
32105minHeight:this._minHeight(),
32106handles:resizeHandles,
32107start:function(event,ui){
32108that._addClass($(this),"ui-dialog-resizing");
32109that._blockFrames();
32110that._trigger("resizeStart",event,filteredUi(ui));
32111},
32112resize:function(event,ui){
32113that._trigger("resize",event,filteredUi(ui));
32114},
32115stop:function(event,ui){
32116var offset=that.uiDialog.offset(),
32117left=offset.left-that.document.scrollLeft(),
32118top=offset.top-that.document.scrollTop();
32119options.height=that.uiDialog.height();
32120options.width=that.uiDialog.width();
32121options.position={
32122my:"left top",
32123at:"left"+(left>=0?"+":"")+left+" "+
32124"top"+(top>=0?"+":"")+top,
32125of:that.window
32126};
32127that._removeClass($(this),"ui-dialog-resizing");
32128that._unblockFrames();
32129that._trigger("resizeStop",event,filteredUi(ui));
32130}
32131})
32132.css("position",position);
32133},
32134_trackFocus:function(){
32135this._on(this.widget(),{
32136focusin:function(event){
32137this._makeFocusTarget();
32138this._focusedElement=$(event.target);
32139}
32140});
32141},
32142_makeFocusTarget:function(){
32143this._untrackInstance();
32144this._trackingInstances().unshift(this);
32145},
32146_untrackInstance:function(){
32147var instances=this._trackingInstances(),
32148exists=$.inArray(this,instances);
32149if(exists!==-1){
32150instances.splice(exists,1);
32151}
32152},
32153_trackingInstances:function(){
32154var instances=this.document.data("ui-dialog-instances");
32155if(!instances){
32156instances=[];
32157this.document.data("ui-dialog-instances",instances);
32158}
32159return instances;
32160},
32161_minHeight:function(){
32162var options=this.options;
32163return options.height==="auto"?
32164options.minHeight:
32165Math.min(options.minHeight,options.height);
32166},
32167_position:function(){
32168var isVisible=this.uiDialog.is(":visible");
32169if(!isVisible){
32170this.uiDialog.show();
32171}
32172this.uiDialog.position(this.options.position);
32173if(!isVisible){
32174this.uiDialog.hide();
32175}
32176},
32177_setOptions:function(options){
32178var that=this,
32179resize=false,
32180resizableOptions={};
32181$.each(options,function(key,value){
32182that._setOption(key,value);
32183if(key in that.sizeRelatedOptions){
32184resize=true;
32185}
32186if(key in that.resizableRelatedOptions){
32187resizableOptions[key]=value;
32188}
32189});
32190if(resize){
32191this._size();
32192this._position();
32193}
32194if(this.uiDialog.is(":data(ui-resizable)")){
32195this.uiDialog.resizable("option",resizableOptions);
32196}
32197},
32198_setOption:function(key,value){
32199var isDraggable,isResizable,
32200uiDialog=this.uiDialog;
32201if(key==="disabled"){
32202return;
32203}
32204this._super(key,value);
32205if(key==="appendTo"){
32206this.uiDialog.appendTo(this._appendTo());
32207}
32208if(key==="buttons"){
32209this._createButtons();
32210}
32211if(key==="closeText"){
32212this.uiDialogTitlebarClose.button({
32213label:$("<a>").text(""+this.options.closeText).html()
32214});
32215}
32216if(key==="draggable"){
32217isDraggable=uiDialog.is(":data(ui-draggable)");
32218if(isDraggable&&!value){
32219uiDialog.draggable("destroy");
32220}
32221if(!isDraggable&&value){
32222this._makeDraggable();
32223}
32224}
32225if(key==="position"){
32226this._position();
32227}
32228if(key==="resizable"){
32229isResizable=uiDialog.is(":data(ui-resizable)");
32230if(isResizable&&!value){
32231uiDialog.resizable("destroy");
32232}
32233if(isResizable&&typeof value==="string"){
32234uiDialog.resizable("option","handles",value);
32235}
32236if(!isResizable&&value!==false){
32237this._makeResizable();
32238}
32239}
32240if(key==="title"){
32241this._title(this.uiDialogTitlebar.find(".ui-dialog-title"));
32242}
32243},
32244_size:function(){
32245var nonContentHeight,minContentHeight,maxContentHeight,
32246options=this.options;
32247this.element.show().css({
32248width:"auto",
32249minHeight:0,
32250maxHeight:"none",
32251height:0
32252});
32253if(options.minWidth>options.width){
32254options.width=options.minWidth;
32255}
32256nonContentHeight=this.uiDialog.css({
32257height:"auto",
32258width:options.width
32259})
32260.outerHeight();
32261minContentHeight=Math.max(0,options.minHeight-nonContentHeight);
32262maxContentHeight=typeof options.maxHeight==="number"?
32263Math.max(0,options.maxHeight-nonContentHeight):
32264"none";
32265if(options.height==="auto"){
32266this.element.css({
32267minHeight:minContentHeight,
32268maxHeight:maxContentHeight,
32269height:"auto"
32270});
32271}else{
32272this.element.height(Math.max(0,options.height-nonContentHeight));
32273}
32274if(this.uiDialog.is(":data(ui-resizable)")){
32275this.uiDialog.resizable("option","minHeight",this._minHeight());
32276}
32277},
32278_blockFrames:function(){
32279this.iframeBlocks=this.document.find("iframe").map(function(){
32280var iframe=$(this);
32281return $("<div>")
32282.css({
32283position:"absolute",
32284width:iframe.outerWidth(),
32285height:iframe.outerHeight()
32286})
32287.appendTo(iframe.parent())
32288.offset(iframe.offset())[0];
32289});
32290},
32291_unblockFrames:function(){
32292if(this.iframeBlocks){
32293this.iframeBlocks.remove();
32294delete this.iframeBlocks;
32295}
32296},
32297_allowInteraction:function(event){
32298if($(event.target).closest(".ui-dialog").length){
32299return true;
32300}
32301return!!$(event.target).closest(".ui-datepicker").length;
32302},
32303_createOverlay:function(){
32304if(!this.options.modal){
32305return;
32306}
32307var jqMinor=$.fn.jquery.substring(0,4);
32308var isOpening=true;
32309this._delay(function(){
32310isOpening=false;
32311});
32312if(!this.document.data("ui-dialog-overlays")){
32313this.document.on("focusin.ui-dialog",function(event){
32314if(isOpening){
32315return;
32316}
32317var instance=this._trackingInstances()[0];
32318if(!instance._allowInteraction(event)){
32319event.preventDefault();
32320instance._focusTabbable();
32321if(jqMinor==="3.4."||jqMinor==="3.5."){
32322instance._delay(instance._restoreTabbableFocus);
32323}
32324}
32325}.bind(this));
32326}
32327this.overlay=$("<div>")
32328.appendTo(this._appendTo());
32329this._addClass(this.overlay,null,"ui-widget-overlay ui-front");
32330this._on(this.overlay,{
32331mousedown:"_keepFocus"
32332});
32333this.document.data("ui-dialog-overlays",
32334(this.document.data("ui-dialog-overlays")||0)+1);
32335},
32336_destroyOverlay:function(){
32337if(!this.options.modal){
32338return;
32339}
32340if(this.overlay){
32341var overlays=this.document.data("ui-dialog-overlays")-1;
32342if(!overlays){
32343this.document.off("focusin.ui-dialog");
32344this.document.removeData("ui-dialog-overlays");
32345}else{
32346this.document.data("ui-dialog-overlays",overlays);
32347}
32348this.overlay.remove();
32349this.overlay=null;
32350}
32351}
32352});
32353if($.uiBackCompat!==false){
32354$.widget("ui.dialog",$.ui.dialog,{
32355options:{
32356dialogClass:""
32357},
32358_createWrapper:function(){
32359this._super();
32360this.uiDialog.addClass(this.options.dialogClass);
32361},
32362_setOption:function(key,value){
32363if(key==="dialogClass"){
32364this.uiDialog
32365.removeClass(this.options.dialogClass)
32366.addClass(value);
32367}
32368this._superApply(arguments);
32369}
32370});
32371}
32372var widgetsDialog=$.ui.dialog;
32373$.widget("ui.droppable",{
32374version:"1.13.2",
32375widgetEventPrefix:"drop",
32376options:{
32377accept:"*",
32378addClasses:true,
32379greedy:false,
32380scope:"default",
32381tolerance:"intersect",
32382activate:null,
32383deactivate:null,
32384drop:null,
32385out:null,
32386over:null
32387},
32388_create:function(){
32389var proportions,
32390o=this.options,
32391accept=o.accept;
32392this.isover=false;
32393this.isout=true;
32394this.accept=typeof accept==="function"?accept:function(d){
32395return d.is(accept);
32396};
32397this.proportions=function(){
32398if(arguments.length){
32399proportions=arguments[0];
32400}else{
32401return proportions?
32402proportions:
vendor: 4,271 bytes, lines 32403-32582
32403proportions={
32404width:this.element[0].offsetWidth,
32405height:this.element[0].offsetHeight
32406};
32407}
32408};
32409this._addToManager(o.scope);
32410if(o.addClasses){
32411this._addClass("ui-droppable");
32412}
32413},
32414_addToManager:function(scope){
32415$.ui.ddmanager.droppables[scope]=$.ui.ddmanager.droppables[scope]||[];
32416$.ui.ddmanager.droppables[scope].push(this);
32417},
32418_splice:function(drop){
32419var i=0;
32420for(;i<drop.length;i++){
32421if(drop[i]===this){
32422drop.splice(i,1);
32423}
32424}
32425},
32426_destroy:function(){
32427var drop=$.ui.ddmanager.droppables[this.options.scope];
32428this._splice(drop);
32429},
32430_setOption:function(key,value){
32431if(key==="accept"){
32432this.accept=typeof value==="function"?value:function(d){
32433return d.is(value);
32434};
32435}else if(key==="scope"){
32436var drop=$.ui.ddmanager.droppables[this.options.scope];
32437this._splice(drop);
32438this._addToManager(value);
32439}
32440this._super(key,value);
32441},
32442_activate:function(event){
32443var draggable=$.ui.ddmanager.current;
32444this._addActiveClass();
32445if(draggable){
32446this._trigger("activate",event,this.ui(draggable));
32447}
32448},
32449_deactivate:function(event){
32450var draggable=$.ui.ddmanager.current;
32451this._removeActiveClass();
32452if(draggable){
32453this._trigger("deactivate",event,this.ui(draggable));
32454}
32455},
32456_over:function(event){
32457var draggable=$.ui.ddmanager.current;
32458if(!draggable||(draggable.currentItem||
32459draggable.element)[0]===this.element[0]){
32460return;
32461}
32462if(this.accept.call(this.element[0],(draggable.currentItem||
32463draggable.element))){
32464this._addHoverClass();
32465this._trigger("over",event,this.ui(draggable));
32466}
32467},
32468_out:function(event){
32469var draggable=$.ui.ddmanager.current;
32470if(!draggable||(draggable.currentItem||
32471draggable.element)[0]===this.element[0]){
32472return;
32473}
32474if(this.accept.call(this.element[0],(draggable.currentItem||
32475draggable.element))){
32476this._removeHoverClass();
32477this._trigger("out",event,this.ui(draggable));
32478}
32479},
32480_drop:function(event,custom){
32481var draggable=custom||$.ui.ddmanager.current,
32482childrenIntersection=false;
32483if(!draggable||(draggable.currentItem||
32484draggable.element)[0]===this.element[0]){
32485return false;
32486}
32487this.element
32488.find(":data(ui-droppable)")
32489.not(".ui-draggable-dragging")
32490.each(function(){
32491var inst=$(this).droppable("instance");
32492if(
32493inst.options.greedy&&
32494!inst.options.disabled&&
32495inst.options.scope===draggable.options.scope&&
32496inst.accept.call(
32497inst.element[0],(draggable.currentItem||draggable.element)
32498)&&
32499$.ui.intersect(
32500draggable,
32501$.extend(inst,{offset:inst.element.offset()}),
32502inst.options.tolerance,event
32503)
32504){
32505childrenIntersection=true;
32506return false;
32507}
32508});
32509if(childrenIntersection){
32510return false;
32511}
32512if(this.accept.call(this.element[0],
32513(draggable.currentItem||draggable.element))){
32514this._removeActiveClass();
32515this._removeHoverClass();
32516this._trigger("drop",event,this.ui(draggable));
32517return this.element;
32518}
32519return false;
32520},
32521ui:function(c){
32522return{
32523draggable:(c.currentItem||c.element),
32524helper:c.helper,
32525position:c.position,
32526offset:c.positionAbs
32527};
32528},
32529_addHoverClass:function(){
32530this._addClass("ui-droppable-hover");
32531},
32532_removeHoverClass:function(){
32533this._removeClass("ui-droppable-hover");
32534},
32535_addActiveClass:function(){
32536this._addClass("ui-droppable-active");
32537},
32538_removeActiveClass:function(){
32539this._removeClass("ui-droppable-active");
32540}
32541});
32542$.ui.intersect=(function(){
32543function isOverAxis(x,reference,size){
32544return(x>=reference)&&(x<(reference+size));
32545}
32546return function(draggable,droppable,toleranceMode,event){
32547if(!droppable.offset){
32548return false;
32549}
32550var x1=(draggable.positionAbs||
32551draggable.position.absolute).left+draggable.margins.left,
32552y1=(draggable.positionAbs||
32553draggable.position.absolute).top+draggable.margins.top,
32554x2=x1+draggable.helperProportions.width,
32555y2=y1+draggable.helperProportions.height,
32556l=droppable.offset.left,
32557t=droppable.offset.top,
32558r=l+droppable.proportions().width,
32559b=t+droppable.proportions().height;
32560switch(toleranceMode){
32561case"fit":
32562return(l<=x1&&x2<=r&&t<=y1&&y2<=b);
32563case"intersect":
32564return(l<x1+(draggable.helperProportions.width/2)&&
32565x2-(draggable.helperProportions.width/2)<r&&
32566t<y1+(draggable.helperProportions.height/2)&&
32567y2-(draggable.helperProportions.height/2)<b);
32568case"pointer":
32569return isOverAxis(event.pageY,t,droppable.proportions().height)&&
32570isOverAxis(event.pageX,l,droppable.proportions().width);
32571case"touch":
32572return(
32573(y1>=t&&y1<=b)||
32574(y2>=t&&y2<=b)||
32575(y1<t&&y2>b)
32576)&&(
32577(x1>=l&&x1<=r)||
32578(x2>=l&&x2<=r)||
32579(x1<l&&x2>r)
32580);
32581default:
32582return false;
vendor: 23,082 bytes, lines 32583-33568
32583}
32584};
32585})();
32586$.ui.ddmanager={
32587current:null,
32588droppables:{"default":[]},
32589prepareOffsets:function(t,event){
32590var i,j,
32591m=$.ui.ddmanager.droppables[t.options.scope]||[],
32592type=event?event.type:null,
32593list=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();
32594droppablesLoop:for(i=0;i<m.length;i++){
32595if(m[i].options.disabled||(t&&!m[i].accept.call(m[i].element[0],
32596(t.currentItem||t.element)))){
32597continue;
32598}
32599for(j=0;j<list.length;j++){
32600if(list[j]===m[i].element[0]){
32601m[i].proportions().height=0;
32602continue droppablesLoop;
32603}
32604}
32605m[i].visible=m[i].element.css("display")!=="none";
32606if(!m[i].visible){
32607continue;
32608}
32609if(type==="mousedown"){
32610m[i]._activate.call(m[i],event);
32611}
32612m[i].offset=m[i].element.offset();
32613m[i].proportions({
32614width:m[i].element[0].offsetWidth,
32615height:m[i].element[0].offsetHeight
32616});
32617}
32618},
32619drop:function(draggable,event){
32620var dropped=false;
32621$.each(($.ui.ddmanager.droppables[draggable.options.scope]||[]).slice(),function(){
32622if(!this.options){
32623return;
32624}
32625if(!this.options.disabled&&this.visible&&
32626$.ui.intersect(draggable,this,this.options.tolerance,event)){
32627dropped=this._drop.call(this,event)||dropped;
32628}
32629if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],
32630(draggable.currentItem||draggable.element))){
32631this.isout=true;
32632this.isover=false;
32633this._deactivate.call(this,event);
32634}
32635});
32636return dropped;
32637},
32638dragStart:function(draggable,event){
32639draggable.element.parentsUntil("body").on("scroll.droppable",function(){
32640if(!draggable.options.refreshPositions){
32641$.ui.ddmanager.prepareOffsets(draggable,event);
32642}
32643});
32644},
32645drag:function(draggable,event){
32646if(draggable.options.refreshPositions){
32647$.ui.ddmanager.prepareOffsets(draggable,event);
32648}
32649$.each($.ui.ddmanager.droppables[draggable.options.scope]||[],function(){
32650if(this.options.disabled||this.greedyChild||!this.visible){
32651return;
32652}
32653var parentInstance,scope,parent,
32654intersects=$.ui.intersect(draggable,this,this.options.tolerance,event),
32655c=!intersects&&this.isover?
32656"isout":
32657(intersects&&!this.isover?"isover":null);
32658if(!c){
32659return;
32660}
32661if(this.options.greedy){
32662scope=this.options.scope;
32663parent=this.element.parents(":data(ui-droppable)").filter(function(){
32664return $(this).droppable("instance").options.scope===scope;
32665});
32666if(parent.length){
32667parentInstance=$(parent[0]).droppable("instance");
32668parentInstance.greedyChild=(c==="isover");
32669}
32670}
32671if(parentInstance&&c==="isover"){
32672parentInstance.isover=false;
32673parentInstance.isout=true;
32674parentInstance._out.call(parentInstance,event);
32675}
32676this[c]=true;
32677this[c==="isout"?"isover":"isout"]=false;
32678this[c==="isover"?"_over":"_out"].call(this,event);
32679if(parentInstance&&c==="isout"){
32680parentInstance.isout=false;
32681parentInstance.isover=true;
32682parentInstance._over.call(parentInstance,event);
32683}
32684});
32685},
32686dragStop:function(draggable,event){
32687draggable.element.parentsUntil("body").off("scroll.droppable");
32688if(!draggable.options.refreshPositions){
32689$.ui.ddmanager.prepareOffsets(draggable,event);
32690}
32691}
32692};
32693if($.uiBackCompat!==false){
32694$.widget("ui.droppable",$.ui.droppable,{
32695options:{
32696hoverClass:false,
32697activeClass:false
32698},
32699_addActiveClass:function(){
32700this._super();
32701if(this.options.activeClass){
32702this.element.addClass(this.options.activeClass);
32703}
32704},
32705_removeActiveClass:function(){
32706this._super();
32707if(this.options.activeClass){
32708this.element.removeClass(this.options.activeClass);
32709}
32710},
32711_addHoverClass:function(){
32712this._super();
32713if(this.options.hoverClass){
32714this.element.addClass(this.options.hoverClass);
32715}
32716},
32717_removeHoverClass:function(){
32718this._super();
32719if(this.options.hoverClass){
32720this.element.removeClass(this.options.hoverClass);
32721}
32722}
32723});
32724}
32725var widgetsDroppable=$.ui.droppable;
32726var widgetsProgressbar=$.widget("ui.progressbar",{
32727version:"1.13.2",
32728options:{
32729classes:{
32730"ui-progressbar":"ui-corner-all",
32731"ui-progressbar-value":"ui-corner-left",
32732"ui-progressbar-complete":"ui-corner-right"
32733},
32734max:100,
32735value:0,
32736change:null,
32737complete:null
32738},
32739min:0,
32740_create:function(){
32741this.oldValue=this.options.value=this._constrainedValue();
32742this.element.attr({
32743role:"progressbar",
32744"aria-valuemin":this.min
32745});
32746this._addClass("ui-progressbar","ui-widget ui-widget-content");
32747this.valueDiv=$("<div>").appendTo(this.element);
32748this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");
32749this._refreshValue();
32750},
32751_destroy:function(){
32752this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");
32753this.valueDiv.remove();
32754},
32755value:function(newValue){
32756if(newValue===undefined){
32757return this.options.value;
32758}
32759this.options.value=this._constrainedValue(newValue);
32760this._refreshValue();
32761},
32762_constrainedValue:function(newValue){
32763if(newValue===undefined){
32764newValue=this.options.value;
32765}
32766this.indeterminate=newValue===false;
32767if(typeof newValue!=="number"){
32768newValue=0;
32769}
32770return this.indeterminate?false:
32771Math.min(this.options.max,Math.max(this.min,newValue));
32772},
32773_setOptions:function(options){
32774var value=options.value;
32775delete options.value;
32776this._super(options);
32777this.options.value=this._constrainedValue(value);
32778this._refreshValue();
32779},
32780_setOption:function(key,value){
32781if(key==="max"){
32782value=Math.max(this.min,value);
32783}
32784this._super(key,value);
32785},
32786_setOptionDisabled:function(value){
32787this._super(value);
32788this.element.attr("aria-disabled",value);
32789this._toggleClass(null,"ui-state-disabled",!!value);
32790},
32791_percentage:function(){
32792return this.indeterminate?
32793100:
32794100*(this.options.value-this.min)/(this.options.max-this.min);
32795},
32796_refreshValue:function(){
32797var value=this.options.value,
32798percentage=this._percentage();
32799this.valueDiv
32800.toggle(this.indeterminate||value>this.min)
32801.width(percentage.toFixed(0)+"%");
32802this
32803._toggleClass(this.valueDiv,"ui-progressbar-complete",null,
32804value===this.options.max)
32805._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);
32806if(this.indeterminate){
32807this.element.removeAttr("aria-valuenow");
32808if(!this.overlayDiv){
32809this.overlayDiv=$("<div>").appendTo(this.valueDiv);
32810this._addClass(this.overlayDiv,"ui-progressbar-overlay");
32811}
32812}else{
32813this.element.attr({
32814"aria-valuemax":this.options.max,
32815"aria-valuenow":value
32816});
32817if(this.overlayDiv){
32818this.overlayDiv.remove();
32819this.overlayDiv=null;
32820}
32821}
32822if(this.oldValue!==value){
32823this.oldValue=value;
32824this._trigger("change");
32825}
32826if(value===this.options.max){
32827this._trigger("complete");
32828}
32829}
32830});
32831var widgetsSelectable=$.widget("ui.selectable",$.ui.mouse,{
32832version:"1.13.2",
32833options:{
32834appendTo:"body",
32835autoRefresh:true,
32836distance:0,
32837filter:"*",
32838tolerance:"touch",
32839selected:null,
32840selecting:null,
32841start:null,
32842stop:null,
32843unselected:null,
32844unselecting:null
32845},
32846_create:function(){
32847var that=this;
32848this._addClass("ui-selectable");
32849this.dragged=false;
32850this.refresh=function(){
32851that.elementPos=$(that.element[0]).offset();
32852that.selectees=$(that.options.filter,that.element[0]);
32853that._addClass(that.selectees,"ui-selectee");
32854that.selectees.each(function(){
32855var $this=$(this),
32856selecteeOffset=$this.offset(),
32857pos={
32858left:selecteeOffset.left-that.elementPos.left,
32859top:selecteeOffset.top-that.elementPos.top
32860};
32861$.data(this,"selectable-item",{
32862element:this,
32863$element:$this,
32864left:pos.left,
32865top:pos.top,
32866right:pos.left+$this.outerWidth(),
32867bottom:pos.top+$this.outerHeight(),
32868startselected:false,
32869selected:$this.hasClass("ui-selected"),
32870selecting:$this.hasClass("ui-selecting"),
32871unselecting:$this.hasClass("ui-unselecting")
32872});
32873});
32874};
32875this.refresh();
32876this._mouseInit();
32877this.helper=$("<div>");
32878this._addClass(this.helper,"ui-selectable-helper");
32879},
32880_destroy:function(){
32881this.selectees.removeData("selectable-item");
32882this._mouseDestroy();
32883},
32884_mouseStart:function(event){
32885var that=this,
32886options=this.options;
32887this.opos=[event.pageX,event.pageY];
32888this.elementPos=$(this.element[0]).offset();
32889if(this.options.disabled){
32890return;
32891}
32892this.selectees=$(options.filter,this.element[0]);
32893this._trigger("start",event);
32894$(options.appendTo).append(this.helper);
32895this.helper.css({
32896"left":event.pageX,
32897"top":event.pageY,
32898"width":0,
32899"height":0
32900});
32901if(options.autoRefresh){
32902this.refresh();
32903}
32904this.selectees.filter(".ui-selected").each(function(){
32905var selectee=$.data(this,"selectable-item");
32906selectee.startselected=true;
32907if(!event.metaKey&&!event.ctrlKey){
32908that._removeClass(selectee.$element,"ui-selected");
32909selectee.selected=false;
32910that._addClass(selectee.$element,"ui-unselecting");
32911selectee.unselecting=true;
32912that._trigger("unselecting",event,{
32913unselecting:selectee.element
32914});
32915}
32916});
32917$(event.target).parents().addBack().each(function(){
32918var doSelect,
32919selectee=$.data(this,"selectable-item");
32920if(selectee){
32921doSelect=(!event.metaKey&&!event.ctrlKey)||
32922!selectee.$element.hasClass("ui-selected");
32923that._removeClass(selectee.$element,doSelect?"ui-unselecting":"ui-selected")
32924._addClass(selectee.$element,doSelect?"ui-selecting":"ui-unselecting");
32925selectee.unselecting=!doSelect;
32926selectee.selecting=doSelect;
32927selectee.selected=doSelect;
32928if(doSelect){
32929that._trigger("selecting",event,{
32930selecting:selectee.element
32931});
32932}else{
32933that._trigger("unselecting",event,{
32934unselecting:selectee.element
32935});
32936}
32937return false;
32938}
32939});
32940},
32941_mouseDrag:function(event){
32942this.dragged=true;
32943if(this.options.disabled){
32944return;
32945}
32946var tmp,
32947that=this,
32948options=this.options,
32949x1=this.opos[0],
32950y1=this.opos[1],
32951x2=event.pageX,
32952y2=event.pageY;
32953if(x1>x2){
32954tmp=x2;x2=x1;x1=tmp;
32955}
32956if(y1>y2){
32957tmp=y2;y2=y1;y1=tmp;
32958}
32959this.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});
32960this.selectees.each(function(){
32961var selectee=$.data(this,"selectable-item"),
32962hit=false,
32963offset={};
32964if(!selectee||selectee.element===that.element[0]){
32965return;
32966}
32967offset.left=selectee.left+that.elementPos.left;
32968offset.right=selectee.right+that.elementPos.left;
32969offset.top=selectee.top+that.elementPos.top;
32970offset.bottom=selectee.bottom+that.elementPos.top;
32971if(options.tolerance==="touch"){
32972hit=(!(offset.left>x2||offset.right<x1||offset.top>y2||
32973offset.bottom<y1));
32974}else if(options.tolerance==="fit"){
32975hit=(offset.left>x1&&offset.right<x2&&offset.top>y1&&
32976offset.bottom<y2);
32977}
32978if(hit){
32979if(selectee.selected){
32980that._removeClass(selectee.$element,"ui-selected");
32981selectee.selected=false;
32982}
32983if(selectee.unselecting){
32984that._removeClass(selectee.$element,"ui-unselecting");
32985selectee.unselecting=false;
32986}
32987if(!selectee.selecting){
32988that._addClass(selectee.$element,"ui-selecting");
32989selectee.selecting=true;
32990that._trigger("selecting",event,{
32991selecting:selectee.element
32992});
32993}
32994}else{
32995if(selectee.selecting){
32996if((event.metaKey||event.ctrlKey)&&selectee.startselected){
32997that._removeClass(selectee.$element,"ui-selecting");
32998selectee.selecting=false;
32999that._addClass(selectee.$element,"ui-selected");
33000selectee.selected=true;
33001}else{
33002that._removeClass(selectee.$element,"ui-selecting");
33003selectee.selecting=false;
33004if(selectee.startselected){
33005that._addClass(selectee.$element,"ui-unselecting");
33006selectee.unselecting=true;
33007}
33008that._trigger("unselecting",event,{
33009unselecting:selectee.element
33010});
33011}
33012}
33013if(selectee.selected){
33014if(!event.metaKey&&!event.ctrlKey&&!selectee.startselected){
33015that._removeClass(selectee.$element,"ui-selected");
33016selectee.selected=false;
33017that._addClass(selectee.$element,"ui-unselecting");
33018selectee.unselecting=true;
33019that._trigger("unselecting",event,{
33020unselecting:selectee.element
33021});
33022}
33023}
33024}
33025});
33026return false;
33027},
33028_mouseStop:function(event){
33029var that=this;
33030this.dragged=false;
33031$(".ui-unselecting",this.element[0]).each(function(){
33032var selectee=$.data(this,"selectable-item");
33033that._removeClass(selectee.$element,"ui-unselecting");
33034selectee.unselecting=false;
33035selectee.startselected=false;
33036that._trigger("unselected",event,{
33037unselected:selectee.element
33038});
33039});
33040$(".ui-selecting",this.element[0]).each(function(){
33041var selectee=$.data(this,"selectable-item");
33042that._removeClass(selectee.$element,"ui-selecting")
33043._addClass(selectee.$element,"ui-selected");
33044selectee.selecting=false;
33045selectee.selected=true;
33046selectee.startselected=true;
33047that._trigger("selected",event,{
33048selected:selectee.element
33049});
33050});
33051this._trigger("stop",event);
33052this.helper.remove();
33053return false;
33054}
33055});
33056var widgetsSelectmenu=$.widget("ui.selectmenu",[$.ui.formResetMixin,{
33057version:"1.13.2",
33058defaultElement:"<select>",
33059options:{
33060appendTo:null,
33061classes:{
33062"ui-selectmenu-button-open":"ui-corner-top",
33063"ui-selectmenu-button-closed":"ui-corner-all"
33064},
33065disabled:null,
33066icons:{
33067button:"ui-icon-triangle-1-s"
33068},
33069position:{
33070my:"left top",
33071at:"left bottom",
33072collision:"none"
33073},
33074width:false,
33075change:null,
33076close:null,
33077focus:null,
33078open:null,
33079select:null
33080},
33081_create:function(){
33082var selectmenuId=this.element.uniqueId().attr("id");
33083this.ids={
33084element:selectmenuId,
33085button:selectmenuId+"-button",
33086menu:selectmenuId+"-menu"
33087};
33088this._drawButton();
33089this._drawMenu();
33090this._bindFormResetHandler();
33091this._rendered=false;
33092this.menuItems=$();
33093},
33094_drawButton:function(){
33095var icon,
33096that=this,
33097item=this._parseOption(
33098this.element.find("option:selected"),
33099this.element[0].selectedIndex
33100);
33101this.labels=this.element.labels().attr("for",this.ids.button);
33102this._on(this.labels,{
33103click:function(event){
33104this.button.trigger("focus");
33105event.preventDefault();
33106}
33107});
33108this.element.hide();
33109this.button=$("<span>",{
33110tabindex:this.options.disabled?-1:0,
33111id:this.ids.button,
33112role:"combobox",
33113"aria-expanded":"false",
33114"aria-autocomplete":"list",
33115"aria-owns":this.ids.menu,
33116"aria-haspopup":"true",
33117title:this.element.attr("title")
33118})
33119.insertAfter(this.element);
33120this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed",
33121"ui-button ui-widget");
33122icon=$("<span>").appendTo(this.button);
33123this._addClass(icon,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);
33124this.buttonItem=this._renderButtonItem(item)
33125.appendTo(this.button);
33126if(this.options.width!==false){
33127this._resizeButton();
33128}
33129this._on(this.button,this._buttonEvents);
33130this.button.one("focusin",function(){
33131if(!that._rendered){
33132that._refreshMenu();
33133}
33134});
33135},
33136_drawMenu:function(){
33137var that=this;
33138this.menu=$("<ul>",{
33139"aria-hidden":"true",
33140"aria-labelledby":this.ids.button,
33141id:this.ids.menu
33142});
33143this.menuWrap=$("<div>").append(this.menu);
33144this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");
33145this.menuWrap.appendTo(this._appendTo());
33146this.menuInstance=this.menu
33147.menu({
33148classes:{
33149"ui-menu":"ui-corner-bottom"
33150},
33151role:"listbox",
33152select:function(event,ui){
33153event.preventDefault();
33154that._setSelection();
33155that._select(ui.item.data("ui-selectmenu-item"),event);
33156},
33157focus:function(event,ui){
33158var item=ui.item.data("ui-selectmenu-item");
33159if(that.focusIndex!=null&&item.index!==that.focusIndex){
33160that._trigger("focus",event,{item:item});
33161if(!that.isOpen){
33162that._select(item,event);
33163}
33164}
33165that.focusIndex=item.index;
33166that.button.attr("aria-activedescendant",
33167that.menuItems.eq(item.index).attr("id"));
33168}
33169})
33170.menu("instance");
33171this.menuInstance._off(this.menu,"mouseleave");
33172this.menuInstance._closeOnDocumentClick=function(){
33173return false;
33174};
33175this.menuInstance._isDivider=function(){
33176return false;
33177};
33178},
33179refresh:function(){
33180this._refreshMenu();
33181this.buttonItem.replaceWith(
33182this.buttonItem=this._renderButtonItem(
33183this._getSelectedItem().data("ui-selectmenu-item")||{}
33184)
33185);
33186if(this.options.width===null){
33187this._resizeButton();
33188}
33189},
33190_refreshMenu:function(){
33191var item,
33192options=this.element.find("option");
33193this.menu.empty();
33194this._parseOptions(options);
33195this._renderMenu(this.menu,this.items);
33196this.menuInstance.refresh();
33197this.menuItems=this.menu.find("li")
33198.not(".ui-selectmenu-optgroup")
33199.find(".ui-menu-item-wrapper");
33200this._rendered=true;
33201if(!options.length){
33202return;
33203}
33204item=this._getSelectedItem();
33205this.menuInstance.focus(null,item);
33206this._setAria(item.data("ui-selectmenu-item"));
33207this._setOption("disabled",this.element.prop("disabled"));
33208},
33209open:function(event){
33210if(this.options.disabled){
33211return;
33212}
33213if(!this._rendered){
33214this._refreshMenu();
33215}else{
33216this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active");
33217this.menuInstance.focus(null,this._getSelectedItem());
33218}
33219if(!this.menuItems.length){
33220return;
33221}
33222this.isOpen=true;
33223this._toggleAttr();
33224this._resizeMenu();
33225this._position();
33226this._on(this.document,this._documentClick);
33227this._trigger("open",event);
33228},
33229_position:function(){
33230this.menuWrap.position($.extend({of:this.button},this.options.position));
33231},
33232close:function(event){
33233if(!this.isOpen){
33234return;
33235}
33236this.isOpen=false;
33237this._toggleAttr();
33238this.range=null;
33239this._off(this.document);
33240this._trigger("close",event);
33241},
33242widget:function(){
33243return this.button;
33244},
33245menuWidget:function(){
33246return this.menu;
33247},
33248_renderButtonItem:function(item){
33249var buttonItem=$("<span>");
33250this._setText(buttonItem,item.label);
33251this._addClass(buttonItem,"ui-selectmenu-text");
33252return buttonItem;
33253},
33254_renderMenu:function(ul,items){
33255var that=this,
33256currentOptgroup="";
33257$.each(items,function(index,item){
33258var li;
33259if(item.optgroup!==currentOptgroup){
33260li=$("<li>",{
33261text:item.optgroup
33262});
33263that._addClass(li,"ui-selectmenu-optgroup","ui-menu-divider"+
33264(item.element.parent("optgroup").prop("disabled")?
33265" ui-state-disabled":
33266""));
33267li.appendTo(ul);
33268currentOptgroup=item.optgroup;
33269}
33270that._renderItemData(ul,item);
33271});
33272},
33273_renderItemData:function(ul,item){
33274return this._renderItem(ul,item).data("ui-selectmenu-item",item);
33275},
33276_renderItem:function(ul,item){
33277var li=$("<li>"),
33278wrapper=$("<div>",{
33279title:item.element.attr("title")
33280});
33281if(item.disabled){
33282this._addClass(li,null,"ui-state-disabled");
33283}
33284this._setText(wrapper,item.label);
33285return li.append(wrapper).appendTo(ul);
33286},
33287_setText:function(element,value){
33288if(value){
33289element.text(value);
33290}else{
33291element.html("&#160;");
33292}
33293},
33294_move:function(direction,event){
33295var item,next,
33296filter=".ui-menu-item";
33297if(this.isOpen){
33298item=this.menuItems.eq(this.focusIndex).parent("li");
33299}else{
33300item=this.menuItems.eq(this.element[0].selectedIndex).parent("li");
33301filter+=":not(.ui-state-disabled)";
33302}
33303if(direction==="first"||direction==="last"){
33304next=item[direction==="first"?"prevAll":"nextAll"](filter).eq(-1);
33305}else{
33306next=item[direction+"All"](filter).eq(0);
33307}
33308if(next.length){
33309this.menuInstance.focus(event,next);
33310}
33311},
33312_getSelectedItem:function(){
33313return this.menuItems.eq(this.element[0].selectedIndex).parent("li");
33314},
33315_toggle:function(event){
33316this[this.isOpen?"close":"open"](event);
33317},
33318_setSelection:function(){
33319var selection;
33320if(!this.range){
33321return;
33322}
33323if(window.getSelection){
33324selection=window.getSelection();
33325selection.removeAllRanges();
33326selection.addRange(this.range);
33327}else{
33328this.range.select();
33329}
33330this.button.trigger("focus");
33331},
33332_documentClick:{
33333mousedown:function(event){
33334if(!this.isOpen){
33335return;
33336}
33337if(!$(event.target).closest(".ui-selectmenu-menu, #"+
33338$.escapeSelector(this.ids.button)).length){
33339this.close(event);
33340}
33341}
33342},
33343_buttonEvents:{
33344mousedown:function(){
33345var selection;
33346if(window.getSelection){
33347selection=window.getSelection();
33348if(selection.rangeCount){
33349this.range=selection.getRangeAt(0);
33350}
33351}else{
33352this.range=document.selection.createRange();
33353}
33354},
33355click:function(event){
33356this._setSelection();
33357this._toggle(event);
33358},
33359keydown:function(event){
33360var preventDefault=true;
33361switch(event.keyCode){
33362case $.ui.keyCode.TAB:
33363case $.ui.keyCode.ESCAPE:
33364this.close(event);
33365preventDefault=false;
33366break;
33367case $.ui.keyCode.ENTER:
33368if(this.isOpen){
33369this._selectFocusedItem(event);
33370}
33371break;
33372case $.ui.keyCode.UP:
33373if(event.altKey){
33374this._toggle(event);
33375}else{
33376this._move("prev",event);
33377}
33378break;
33379case $.ui.keyCode.DOWN:
33380if(event.altKey){
33381this._toggle(event);
33382}else{
33383this._move("next",event);
33384}
33385break;
33386case $.ui.keyCode.SPACE:
33387if(this.isOpen){
33388this._selectFocusedItem(event);
33389}else{
33390this._toggle(event);
33391}
33392break;
33393case $.ui.keyCode.LEFT:
33394this._move("prev",event);
33395break;
33396case $.ui.keyCode.RIGHT:
33397this._move("next",event);
33398break;
33399case $.ui.keyCode.HOME:
33400case $.ui.keyCode.PAGE_UP:
33401this._move("first",event);
33402break;
33403case $.ui.keyCode.END:
33404case $.ui.keyCode.PAGE_DOWN:
33405this._move("last",event);
33406break;
33407default:
33408this.menu.trigger(event);
33409preventDefault=false;
33410}
33411if(preventDefault){
33412event.preventDefault();
33413}
33414}
33415},
33416_selectFocusedItem:function(event){
33417var item=this.menuItems.eq(this.focusIndex).parent("li");
33418if(!item.hasClass("ui-state-disabled")){
33419this._select(item.data("ui-selectmenu-item"),event);
33420}
33421},
33422_select:function(item,event){
33423var oldIndex=this.element[0].selectedIndex;
33424this.element[0].selectedIndex=item.index;
33425this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(item));
33426this._setAria(item);
33427this._trigger("select",event,{item:item});
33428if(item.index!==oldIndex){
33429this._trigger("change",event,{item:item});
33430}
33431this.close(event);
33432},
33433_setAria:function(item){
33434var id=this.menuItems.eq(item.index).attr("id");
33435this.button.attr({
33436"aria-labelledby":id,
33437"aria-activedescendant":id
33438});
33439this.menu.attr("aria-activedescendant",id);
33440},
33441_setOption:function(key,value){
33442if(key==="icons"){
33443var icon=this.button.find("span.ui-icon");
33444this._removeClass(icon,null,this.options.icons.button)
33445._addClass(icon,null,value.button);
33446}
33447this._super(key,value);
33448if(key==="appendTo"){
33449this.menuWrap.appendTo(this._appendTo());
33450}
33451if(key==="width"){
33452this._resizeButton();
33453}
33454},
33455_setOptionDisabled:function(value){
33456this._super(value);
33457this.menuInstance.option("disabled",value);
33458this.button.attr("aria-disabled",value);
33459this._toggleClass(this.button,null,"ui-state-disabled",value);
33460this.element.prop("disabled",value);
33461if(value){
33462this.button.attr("tabindex",-1);
33463this.close();
33464}else{
33465this.button.attr("tabindex",0);
33466}
33467},
33468_appendTo:function(){
33469var element=this.options.appendTo;
33470if(element){
33471element=element.jquery||element.nodeType?
33472$(element):
33473this.document.find(element).eq(0);
33474}
33475if(!element||!element[0]){
33476element=this.element.closest(".ui-front, dialog");
33477}
33478if(!element.length){
33479element=this.document[0].body;
33480}
33481return element;
33482},
33483_toggleAttr:function(){
33484this.button.attr("aria-expanded",this.isOpen);
33485this._removeClass(this.button,"ui-selectmenu-button-"+
33486(this.isOpen?"closed":"open"))
33487._addClass(this.button,"ui-selectmenu-button-"+
33488(this.isOpen?"open":"closed"))
33489._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);
33490this.menu.attr("aria-hidden",!this.isOpen);
33491},
33492_resizeButton:function(){
33493var width=this.options.width;
33494if(width===false){
33495this.button.css("width","");
33496return;
33497}
33498if(width===null){
33499width=this.element.show().outerWidth();
33500this.element.hide();
33501}
33502this.button.outerWidth(width);
33503},
33504_resizeMenu:function(){
33505this.menu.outerWidth(Math.max(
33506this.button.outerWidth(),
33507this.menu.width("").outerWidth()+1
33508));
33509},
33510_getCreateOptions:function(){
33511var options=this._super();
33512options.disabled=this.element.prop("disabled");
33513return options;
33514},
33515_parseOptions:function(options){
33516var that=this,
33517data=[];
33518options.each(function(index,item){
33519if(item.hidden){
33520return;
33521}
33522data.push(that._parseOption($(item),index));
33523});
33524this.items=data;
33525},
33526_parseOption:function(option,index){
33527var optgroup=option.parent("optgroup");
33528return{
33529element:option,
33530index:index,
33531value:option.val(),
33532label:option.text(),
33533optgroup:optgroup.attr("label")||"",
33534disabled:optgroup.prop("disabled")||option.prop("disabled")
33535};
33536},
33537_destroy:function(){
33538this._unbindFormResetHandler();
33539this.menuWrap.remove();
33540this.button.remove();
33541this.element.show();
33542this.element.removeUniqueId();
33543this.labels.attr("for",this.ids.element);
33544}
33545}]);
33546var widgetsSlider=$.widget("ui.slider",$.ui.mouse,{
33547version:"1.13.2",
33548widgetEventPrefix:"slide",
33549options:{
33550animate:false,
33551classes:{
33552"ui-slider":"ui-corner-all",
33553"ui-slider-handle":"ui-corner-all",
33554"ui-slider-range":"ui-corner-all ui-widget-header"
33555},
33556distance:0,
33557max:100,
33558min:0,
33559orientation:"horizontal",
33560range:false,
33561step:1,
33562value:0,
33563values:null,
33564change:null,
33565slide:null,
33566start:null,
33567stop:null
33568},
vendor: 15,305 bytes, lines 33569-34221
33569numPages:5,
33570_create:function(){
33571this._keySliding=false;
33572this._mouseSliding=false;
33573this._animateOff=true;
33574this._handleIndex=null;
33575this._detectOrientation();
33576this._mouseInit();
33577this._calculateNewMax();
33578this._addClass("ui-slider ui-slider-"+this.orientation,
33579"ui-widget ui-widget-content");
33580this._refresh();
33581this._animateOff=false;
33582},
33583_refresh:function(){
33584this._createRange();
33585this._createHandles();
33586this._setupEvents();
33587this._refreshValue();
33588},
33589_createHandles:function(){
33590var i,handleCount,
33591options=this.options,
33592existingHandles=this.element.find(".ui-slider-handle"),
33593handle="<span tabindex='0'></span>",
33594handles=[];
33595handleCount=(options.values&&options.values.length)||1;
33596if(existingHandles.length>handleCount){
33597existingHandles.slice(handleCount).remove();
33598existingHandles=existingHandles.slice(0,handleCount);
33599}
33600for(i=existingHandles.length;i<handleCount;i++){
33601handles.push(handle);
33602}
33603this.handles=existingHandles.add($(handles.join("")).appendTo(this.element));
33604this._addClass(this.handles,"ui-slider-handle","ui-state-default");
33605this.handle=this.handles.eq(0);
33606this.handles.each(function(i){
33607$(this)
33608.data("ui-slider-handle-index",i)
33609.attr("tabIndex",0);
33610});
33611},
33612_createRange:function(){
33613var options=this.options;
33614if(options.range){
33615if(options.range===true){
33616if(!options.values){
33617options.values=[this._valueMin(),this._valueMin()];
33618}else if(options.values.length&&options.values.length!==2){
33619options.values=[options.values[0],options.values[0]];
33620}else if(Array.isArray(options.values)){
33621options.values=options.values.slice(0);
33622}
33623}
33624if(!this.range||!this.range.length){
33625this.range=$("<div>")
33626.appendTo(this.element);
33627this._addClass(this.range,"ui-slider-range");
33628}else{
33629this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max");
33630this.range.css({
33631"left":"",
33632"bottom":""
33633});
33634}
33635if(options.range==="min"||options.range==="max"){
33636this._addClass(this.range,"ui-slider-range-"+options.range);
33637}
33638}else{
33639if(this.range){
33640this.range.remove();
33641}
33642this.range=null;
33643}
33644},
33645_setupEvents:function(){
33646this._off(this.handles);
33647this._on(this.handles,this._handleEvents);
33648this._hoverable(this.handles);
33649this._focusable(this.handles);
33650},
33651_destroy:function(){
33652this.handles.remove();
33653if(this.range){
33654this.range.remove();
33655}
33656this._mouseDestroy();
33657},
33658_mouseCapture:function(event){
33659var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,
33660that=this,
33661o=this.options;
33662if(o.disabled){
33663return false;
33664}
33665this.elementSize={
33666width:this.element.outerWidth(),
33667height:this.element.outerHeight()
33668};
33669this.elementOffset=this.element.offset();
33670position={x:event.pageX,y:event.pageY};
33671normValue=this._normValueFromMouse(position);
33672distance=this._valueMax()-this._valueMin()+1;
33673this.handles.each(function(i){
33674var thisDistance=Math.abs(normValue-that.values(i));
33675if((distance>thisDistance)||
33676(distance===thisDistance&&
33677(i===that._lastChangedValue||that.values(i)===o.min))){
33678distance=thisDistance;
33679closestHandle=$(this);
33680index=i;
33681}
33682});
33683allowed=this._start(event,index);
33684if(allowed===false){
33685return false;
33686}
33687this._mouseSliding=true;
33688this._handleIndex=index;
33689this._addClass(closestHandle,null,"ui-state-active");
33690closestHandle.trigger("focus");
33691offset=closestHandle.offset();
33692mouseOverHandle=!$(event.target).parents().addBack().is(".ui-slider-handle");
33693this._clickOffset=mouseOverHandle?{left:0,top:0}:{
33694left:event.pageX-offset.left-(closestHandle.width()/2),
33695top:event.pageY-offset.top-
33696(closestHandle.height()/2)-
33697(parseInt(closestHandle.css("borderTopWidth"),10)||0)-
33698(parseInt(closestHandle.css("borderBottomWidth"),10)||0)+
33699(parseInt(closestHandle.css("marginTop"),10)||0)
33700};
33701if(!this.handles.hasClass("ui-state-hover")){
33702this._slide(event,index,normValue);
33703}
33704this._animateOff=true;
33705return true;
33706},
33707_mouseStart:function(){
33708return true;
33709},
33710_mouseDrag:function(event){
33711var position={x:event.pageX,y:event.pageY},
33712normValue=this._normValueFromMouse(position);
33713this._slide(event,this._handleIndex,normValue);
33714return false;
33715},
33716_mouseStop:function(event){
33717this._removeClass(this.handles,null,"ui-state-active");
33718this._mouseSliding=false;
33719this._stop(event,this._handleIndex);
33720this._change(event,this._handleIndex);
33721this._handleIndex=null;
33722this._clickOffset=null;
33723this._animateOff=false;
33724return false;
33725},
33726_detectOrientation:function(){
33727this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal";
33728},
33729_normValueFromMouse:function(position){
33730var pixelTotal,
33731pixelMouse,
33732percentMouse,
33733valueTotal,
33734valueMouse;
33735if(this.orientation==="horizontal"){
33736pixelTotal=this.elementSize.width;
33737pixelMouse=position.x-this.elementOffset.left-
33738(this._clickOffset?this._clickOffset.left:0);
33739}else{
33740pixelTotal=this.elementSize.height;
33741pixelMouse=position.y-this.elementOffset.top-
33742(this._clickOffset?this._clickOffset.top:0);
33743}
33744percentMouse=(pixelMouse/pixelTotal);
33745if(percentMouse>1){
33746percentMouse=1;
33747}
33748if(percentMouse<0){
33749percentMouse=0;
33750}
33751if(this.orientation==="vertical"){
33752percentMouse=1-percentMouse;
33753}
33754valueTotal=this._valueMax()-this._valueMin();
33755valueMouse=this._valueMin()+percentMouse*valueTotal;
33756return this._trimAlignValue(valueMouse);
33757},
33758_uiHash:function(index,value,values){
33759var uiHash={
33760handle:this.handles[index],
33761handleIndex:index,
33762value:value!==undefined?value:this.value()
33763};
33764if(this._hasMultipleValues()){
33765uiHash.value=value!==undefined?value:this.values(index);
33766uiHash.values=values||this.values();
33767}
33768return uiHash;
33769},
33770_hasMultipleValues:function(){
33771return this.options.values&&this.options.values.length;
33772},
33773_start:function(event,index){
33774return this._trigger("start",event,this._uiHash(index));
33775},
33776_slide:function(event,index,newVal){
33777var allowed,otherVal,
33778currentValue=this.value(),
33779newValues=this.values();
33780if(this._hasMultipleValues()){
33781otherVal=this.values(index?0:1);
33782currentValue=this.values(index);
33783if(this.options.values.length===2&&this.options.range===true){
33784newVal=index===0?Math.min(otherVal,newVal):Math.max(otherVal,newVal);
33785}
33786newValues[index]=newVal;
33787}
33788if(newVal===currentValue){
33789return;
33790}
33791allowed=this._trigger("slide",event,this._uiHash(index,newVal,newValues));
33792if(allowed===false){
33793return;
33794}
33795if(this._hasMultipleValues()){
33796this.values(index,newVal);
33797}else{
33798this.value(newVal);
33799}
33800},
33801_stop:function(event,index){
33802this._trigger("stop",event,this._uiHash(index));
33803},
33804_change:function(event,index){
33805if(!this._keySliding&&!this._mouseSliding){
33806this._lastChangedValue=index;
33807this._trigger("change",event,this._uiHash(index));
33808}
33809},
33810value:function(newValue){
33811if(arguments.length){
33812this.options.value=this._trimAlignValue(newValue);
33813this._refreshValue();
33814this._change(null,0);
33815return;
33816}
33817return this._value();
33818},
33819values:function(index,newValue){
33820var vals,
33821newValues,
33822i;
33823if(arguments.length>1){
33824this.options.values[index]=this._trimAlignValue(newValue);
33825this._refreshValue();
33826this._change(null,index);
33827return;
33828}
33829if(arguments.length){
33830if(Array.isArray(arguments[0])){
33831vals=this.options.values;
33832newValues=arguments[0];
33833for(i=0;i<vals.length;i+=1){
33834vals[i]=this._trimAlignValue(newValues[i]);
33835this._change(null,i);
33836}
33837this._refreshValue();
33838}else{
33839if(this._hasMultipleValues()){
33840return this._values(index);
33841}else{
33842return this.value();
33843}
33844}
33845}else{
33846return this._values();
33847}
33848},
33849_setOption:function(key,value){
33850var i,
33851valsLength=0;
33852if(key==="range"&&this.options.range===true){
33853if(value==="min"){
33854this.options.value=this._values(0);
33855this.options.values=null;
33856}else if(value==="max"){
33857this.options.value=this._values(this.options.values.length-1);
33858this.options.values=null;
33859}
33860}
33861if(Array.isArray(this.options.values)){
33862valsLength=this.options.values.length;
33863}
33864this._super(key,value);
33865switch(key){
33866case"orientation":
33867this._detectOrientation();
33868this._removeClass("ui-slider-horizontal ui-slider-vertical")
33869._addClass("ui-slider-"+this.orientation);
33870this._refreshValue();
33871if(this.options.range){
33872this._refreshRange(value);
33873}
33874this.handles.css(value==="horizontal"?"bottom":"left","");
33875break;
33876case"value":
33877this._animateOff=true;
33878this._refreshValue();
33879this._change(null,0);
33880this._animateOff=false;
33881break;
33882case"values":
33883this._animateOff=true;
33884this._refreshValue();
33885for(i=valsLength-1;i>=0;i--){
33886this._change(null,i);
33887}
33888this._animateOff=false;
33889break;
33890case"step":
33891case"min":
33892case"max":
33893this._animateOff=true;
33894this._calculateNewMax();
33895this._refreshValue();
33896this._animateOff=false;
33897break;
33898case"range":
33899this._animateOff=true;
33900this._refresh();
33901this._animateOff=false;
33902break;
33903}
33904},
33905_setOptionDisabled:function(value){
33906this._super(value);
33907this._toggleClass(null,"ui-state-disabled",!!value);
33908},
33909_value:function(){
33910var val=this.options.value;
33911val=this._trimAlignValue(val);
33912return val;
33913},
33914_values:function(index){
33915var val,
33916vals,
33917i;
33918if(arguments.length){
33919val=this.options.values[index];
33920val=this._trimAlignValue(val);
33921return val;
33922}else if(this._hasMultipleValues()){
33923vals=this.options.values.slice();
33924for(i=0;i<vals.length;i+=1){
33925vals[i]=this._trimAlignValue(vals[i]);
33926}
33927return vals;
33928}else{
33929return[];
33930}
33931},
33932_trimAlignValue:function(val){
33933if(val<=this._valueMin()){
33934return this._valueMin();
33935}
33936if(val>=this._valueMax()){
33937return this._valueMax();
33938}
33939var step=(this.options.step>0)?this.options.step:1,
33940valModStep=(val-this._valueMin())%step,
33941alignValue=val-valModStep;
33942if(Math.abs(valModStep)*2>=step){
33943alignValue+=(valModStep>0)?step:(-step);
33944}
33945return parseFloat(alignValue.toFixed(5));
33946},
33947_calculateNewMax:function(){
33948var max=this.options.max,
33949min=this._valueMin(),
33950step=this.options.step,
33951aboveMin=Math.round((max-min)/step)*step;
33952max=aboveMin+min;
33953if(max>this.options.max){
33954max-=step;
33955}
33956this.max=parseFloat(max.toFixed(this._precision()));
33957},
33958_precision:function(){
33959var precision=this._precisionOf(this.options.step);
33960if(this.options.min!==null){
33961precision=Math.max(precision,this._precisionOf(this.options.min));
33962}
33963return precision;
33964},
33965_precisionOf:function(num){
33966var str=num.toString(),
33967decimal=str.indexOf(".");
33968return decimal===-1?0:str.length-decimal-1;
33969},
33970_valueMin:function(){
33971return this.options.min;
33972},
33973_valueMax:function(){
33974return this.max;
33975},
33976_refreshRange:function(orientation){
33977if(orientation==="vertical"){
33978this.range.css({"width":"","left":""});
33979}
33980if(orientation==="horizontal"){
33981this.range.css({"height":"","bottom":""});
33982}
33983},
33984_refreshValue:function(){
33985var lastValPercent,valPercent,value,valueMin,valueMax,
33986oRange=this.options.range,
33987o=this.options,
33988that=this,
33989animate=(!this._animateOff)?o.animate:false,
33990_set={};
33991if(this._hasMultipleValues()){
33992this.handles.each(function(i){
33993valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-
33994that._valueMin())*100;
33995_set[that.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";
33996$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);
33997if(that.options.range===true){
33998if(that.orientation==="horizontal"){
33999if(i===0){
34000that.range.stop(1,1)[animate?"animate":"css"]({
34001left:valPercent+"%"
34002},o.animate);
34003}
34004if(i===1){
34005that.range[animate?"animate":"css"]({
34006width:(valPercent-lastValPercent)+"%"
34007},{
34008queue:false,
34009duration:o.animate
34010});
34011}
34012}else{
34013if(i===0){
34014that.range.stop(1,1)[animate?"animate":"css"]({
34015bottom:(valPercent)+"%"
34016},o.animate);
34017}
34018if(i===1){
34019that.range[animate?"animate":"css"]({
34020height:(valPercent-lastValPercent)+"%"
34021},{
34022queue:false,
34023duration:o.animate
34024});
34025}
34026}
34027}
34028lastValPercent=valPercent;
34029});
34030}else{
34031value=this.value();
34032valueMin=this._valueMin();
34033valueMax=this._valueMax();
34034valPercent=(valueMax!==valueMin)?
34035(value-valueMin)/(valueMax-valueMin)*100:
340360;
34037_set[this.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";
34038this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);
34039if(oRange==="min"&&this.orientation==="horizontal"){
34040this.range.stop(1,1)[animate?"animate":"css"]({
34041width:valPercent+"%"
34042},o.animate);
34043}
34044if(oRange==="max"&&this.orientation==="horizontal"){
34045this.range.stop(1,1)[animate?"animate":"css"]({
34046width:(100-valPercent)+"%"
34047},o.animate);
34048}
34049if(oRange==="min"&&this.orientation==="vertical"){
34050this.range.stop(1,1)[animate?"animate":"css"]({
34051height:valPercent+"%"
34052},o.animate);
34053}
34054if(oRange==="max"&&this.orientation==="vertical"){
34055this.range.stop(1,1)[animate?"animate":"css"]({
34056height:(100-valPercent)+"%"
34057},o.animate);
34058}
34059}
34060},
34061_handleEvents:{
34062keydown:function(event){
34063var allowed,curVal,newVal,step,
34064index=$(event.target).data("ui-slider-handle-index");
34065switch(event.keyCode){
34066case $.ui.keyCode.HOME:
34067case $.ui.keyCode.END:
34068case $.ui.keyCode.PAGE_UP:
34069case $.ui.keyCode.PAGE_DOWN:
34070case $.ui.keyCode.UP:
34071case $.ui.keyCode.RIGHT:
34072case $.ui.keyCode.DOWN:
34073case $.ui.keyCode.LEFT:
34074event.preventDefault();
34075if(!this._keySliding){
34076this._keySliding=true;
34077this._addClass($(event.target),null,"ui-state-active");
34078allowed=this._start(event,index);
34079if(allowed===false){
34080return;
34081}
34082}
34083break;
34084}
34085step=this.options.step;
34086if(this._hasMultipleValues()){
34087curVal=newVal=this.values(index);
34088}else{
34089curVal=newVal=this.value();
34090}
34091switch(event.keyCode){
34092case $.ui.keyCode.HOME:
34093newVal=this._valueMin();
34094break;
34095case $.ui.keyCode.END:
34096newVal=this._valueMax();
34097break;
34098case $.ui.keyCode.PAGE_UP:
34099newVal=this._trimAlignValue(
34100curVal+((this._valueMax()-this._valueMin())/this.numPages)
34101);
34102break;
34103case $.ui.keyCode.PAGE_DOWN:
34104newVal=this._trimAlignValue(
34105curVal-((this._valueMax()-this._valueMin())/this.numPages));
34106break;
34107case $.ui.keyCode.UP:
34108case $.ui.keyCode.RIGHT:
34109if(curVal===this._valueMax()){
34110return;
34111}
34112newVal=this._trimAlignValue(curVal+step);
34113break;
34114case $.ui.keyCode.DOWN:
34115case $.ui.keyCode.LEFT:
34116if(curVal===this._valueMin()){
34117return;
34118}
34119newVal=this._trimAlignValue(curVal-step);
34120break;
34121}
34122this._slide(event,index,newVal);
34123},
34124keyup:function(event){
34125var index=$(event.target).data("ui-slider-handle-index");
34126if(this._keySliding){
34127this._keySliding=false;
34128this._stop(event,index);
34129this._change(event,index);
34130this._removeClass($(event.target),null,"ui-state-active");
34131}
34132}
34133}
34134});
34135var widgetsSortable=$.widget("ui.sortable",$.ui.mouse,{
34136version:"1.13.2",
34137widgetEventPrefix:"sort",
34138ready:false,
34139options:{
34140appendTo:"parent",
34141axis:false,
34142connectWith:false,
34143containment:false,
34144cursor:"auto",
34145cursorAt:false,
34146dropOnEmpty:true,
34147forcePlaceholderSize:false,
34148forceHelperSize:false,
34149grid:false,
34150handle:false,
34151helper:"original",
34152items:"> *",
34153opacity:false,
34154placeholder:false,
34155revert:false,
34156scroll:true,
34157scrollSensitivity:20,
34158scrollSpeed:20,
34159scope:"default",
34160tolerance:"intersect",
34161zIndex:1000,
34162activate:null,
34163beforeStop:null,
34164change:null,
34165deactivate:null,
34166out:null,
34167over:null,
34168receive:null,
34169remove:null,
34170sort:null,
34171start:null,
34172stop:null,
34173update:null
34174},
34175_isOverAxis:function(x,reference,size){
34176return(x>=reference)&&(x<(reference+size));
34177},
34178_isFloating:function(item){
34179return(/left|right/).test(item.css("float"))||
34180(/inline|table-cell/).test(item.css("display"));
34181},
34182_create:function(){
34183this.containerCache={};
34184this._addClass("ui-sortable");
34185this.refresh();
34186this.offset=this.element.offset();
34187this._mouseInit();
34188this._setHandleClassName();
34189this.ready=true;
34190},
34191_setOption:function(key,value){
34192this._super(key,value);
34193if(key==="handle"){
34194this._setHandleClassName();
34195}
34196},
34197_setHandleClassName:function(){
34198var that=this;
34199this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");
34200$.each(this.items,function(){
34201that._addClass(
34202this.instance.options.handle?
34203this.item.find(this.instance.options.handle):
34204this.item,
34205"ui-sortable-handle"
34206);
34207});
34208},
34209_destroy:function(){
34210this._mouseDestroy();
34211for(var i=this.items.length-1;i>=0;i--){
34212this.items[i].item.removeData(this.widgetName+"-item");
34213}
34214return this;
34215},
34216_mouseCapture:function(event,overrideHandle){
34217var currentItem=null,
34218validHandle=false,
34219that=this;
34220if(this.reverting){
34221return false;
vendor: 6,194 bytes, lines 34222-34447
34222}
34223if(this.options.disabled||this.options.type==="static"){
34224return false;
34225}
34226this._refreshItems(event);
34227$(event.target).parents().each(function(){
34228if($.data(this,that.widgetName+"-item")===that){
34229currentItem=$(this);
34230return false;
34231}
34232});
34233if($.data(event.target,that.widgetName+"-item")===that){
34234currentItem=$(event.target);
34235}
34236if(!currentItem){
34237return false;
34238}
34239if(this.options.handle&&!overrideHandle){
34240$(this.options.handle,currentItem).find("*").addBack().each(function(){
34241if(this===event.target){
34242validHandle=true;
34243}
34244});
34245if(!validHandle){
34246return false;
34247}
34248}
34249this.currentItem=currentItem;
34250this._removeCurrentsFromItems();
34251return true;
34252},
34253_mouseStart:function(event,overrideHandle,noActivation){
34254var i,body,
34255o=this.options;
34256this.currentContainer=this;
34257this.refreshPositions();
34258this.appendTo=$(o.appendTo!=="parent"?
34259o.appendTo:
34260this.currentItem.parent());
34261this.helper=this._createHelper(event);
34262this._cacheHelperProportions();
34263this._cacheMargins();
34264this.offset=this.currentItem.offset();
34265this.offset={
34266top:this.offset.top-this.margins.top,
34267left:this.offset.left-this.margins.left
34268};
34269$.extend(this.offset,{
34270click:{
34271left:event.pageX-this.offset.left,
34272top:event.pageY-this.offset.top
34273},
34274relative:this._getRelativeOffset()
34275});
34276this.helper.css("position","absolute");
34277this.cssPosition=this.helper.css("position");
34278if(o.cursorAt){
34279this._adjustOffsetFromHelper(o.cursorAt);
34280}
34281this.domPosition={
34282prev:this.currentItem.prev()[0],
34283parent:this.currentItem.parent()[0]
34284};
34285if(this.helper[0]!==this.currentItem[0]){
34286this.currentItem.hide();
34287}
34288this._createPlaceholder();
34289this.scrollParent=this.placeholder.scrollParent();
34290$.extend(this.offset,{
34291parent:this._getParentOffset()
34292});
34293if(o.containment){
34294this._setContainment();
34295}
34296if(o.cursor&&o.cursor!=="auto"){
34297body=this.document.find("body");
34298this.storedCursor=body.css("cursor");
34299body.css("cursor",o.cursor);
34300this.storedStylesheet=
34301$("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(body);
34302}
34303if(o.zIndex){
34304if(this.helper.css("zIndex")){
34305this._storedZIndex=this.helper.css("zIndex");
34306}
34307this.helper.css("zIndex",o.zIndex);
34308}
34309if(o.opacity){
34310if(this.helper.css("opacity")){
34311this._storedOpacity=this.helper.css("opacity");
34312}
34313this.helper.css("opacity",o.opacity);
34314}
34315if(this.scrollParent[0]!==this.document[0]&&
34316this.scrollParent[0].tagName!=="HTML"){
34317this.overflowOffset=this.scrollParent.offset();
34318}
34319this._trigger("start",event,this._uiHash());
34320if(!this._preserveHelperProportions){
34321this._cacheHelperProportions();
34322}
34323if(!noActivation){
34324for(i=this.containers.length-1;i>=0;i--){
34325this.containers[i]._trigger("activate",event,this._uiHash(this));
34326}
34327}
34328if($.ui.ddmanager){
34329$.ui.ddmanager.current=this;
34330}
34331if($.ui.ddmanager&&!o.dropBehaviour){
34332$.ui.ddmanager.prepareOffsets(this,event);
34333}
34334this.dragging=true;
34335this._addClass(this.helper,"ui-sortable-helper");
34336if(!this.helper.parent().is(this.appendTo)){
34337this.helper.detach().appendTo(this.appendTo);
34338this.offset.parent=this._getParentOffset();
34339}
34340this.position=this.originalPosition=this._generatePosition(event);
34341this.originalPageX=event.pageX;
34342this.originalPageY=event.pageY;
34343this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute");
34344this._mouseDrag(event);
34345return true;
34346},
34347_scroll:function(event){
34348var o=this.options,
34349scrolled=false;
34350if(this.scrollParent[0]!==this.document[0]&&
34351this.scrollParent[0].tagName!=="HTML"){
34352if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-
34353event.pageY<o.scrollSensitivity){
34354this.scrollParent[0].scrollTop=
34355scrolled=this.scrollParent[0].scrollTop+o.scrollSpeed;
34356}else if(event.pageY-this.overflowOffset.top<o.scrollSensitivity){
34357this.scrollParent[0].scrollTop=
34358scrolled=this.scrollParent[0].scrollTop-o.scrollSpeed;
34359}
34360if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-
34361event.pageX<o.scrollSensitivity){
34362this.scrollParent[0].scrollLeft=scrolled=
34363this.scrollParent[0].scrollLeft+o.scrollSpeed;
34364}else if(event.pageX-this.overflowOffset.left<o.scrollSensitivity){
34365this.scrollParent[0].scrollLeft=scrolled=
34366this.scrollParent[0].scrollLeft-o.scrollSpeed;
34367}
34368}else{
34369if(event.pageY-this.document.scrollTop()<o.scrollSensitivity){
34370scrolled=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed);
34371}else if(this.window.height()-(event.pageY-this.document.scrollTop())<
34372o.scrollSensitivity){
34373scrolled=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed);
34374}
34375if(event.pageX-this.document.scrollLeft()<o.scrollSensitivity){
34376scrolled=this.document.scrollLeft(
34377this.document.scrollLeft()-o.scrollSpeed
34378);
34379}else if(this.window.width()-(event.pageX-this.document.scrollLeft())<
34380o.scrollSensitivity){
34381scrolled=this.document.scrollLeft(
34382this.document.scrollLeft()+o.scrollSpeed
34383);
34384}
34385}
34386return scrolled;
34387},
34388_mouseDrag:function(event){
34389var i,item,itemElement,intersection,
34390o=this.options;
34391this.position=this._generatePosition(event);
34392this.positionAbs=this._convertPositionTo("absolute");
34393if(!this.options.axis||this.options.axis!=="y"){
34394this.helper[0].style.left=this.position.left+"px";
34395}
34396if(!this.options.axis||this.options.axis!=="x"){
34397this.helper[0].style.top=this.position.top+"px";
34398}
34399if(o.scroll){
34400if(this._scroll(event)!==false){
34401this._refreshItemPositions(true);
34402if($.ui.ddmanager&&!o.dropBehaviour){
34403$.ui.ddmanager.prepareOffsets(this,event);
34404}
34405}
34406}
34407this.dragDirection={
34408vertical:this._getDragVerticalDirection(),
34409horizontal:this._getDragHorizontalDirection()
34410};
34411for(i=this.items.length-1;i>=0;i--){
34412item=this.items[i];
34413itemElement=item.item[0];
34414intersection=this._intersectsWithPointer(item);
34415if(!intersection){
34416continue;
34417}
34418if(item.instance!==this.currentContainer){
34419continue;
34420}
34421if(itemElement!==this.currentItem[0]&&
34422this.placeholder[intersection===1?
34423"next":"prev"]()[0]!==itemElement&&
34424!$.contains(this.placeholder[0],itemElement)&&
34425(this.options.type==="semi-dynamic"?
34426!$.contains(this.element[0],itemElement):
34427true
34428)
34429){
34430this.direction=intersection===1?"down":"up";
34431if(this.options.tolerance==="pointer"||
34432this._intersectsWithSides(item)){
34433this._rearrange(event,item);
34434}else{
34435break;
34436}
34437this._trigger("change",event,this._uiHash());
34438break;
34439}
34440}
34441this._contactContainers(event);
34442if($.ui.ddmanager){
34443$.ui.ddmanager.drag(this,event);
34444}
34445this._trigger("sort",event,this._uiHash());
34446this.lastPositionAbs=this.positionAbs;
34447return false;
vendor: 13,729 bytes, lines 34448-34938
34448},
34449_mouseStop:function(event,noPropagation){
34450if(!event){
34451return;
34452}
34453if($.ui.ddmanager&&!this.options.dropBehaviour){
34454$.ui.ddmanager.drop(this,event);
34455}
34456if(this.options.revert){
34457var that=this,
34458cur=this.placeholder.offset(),
34459axis=this.options.axis,
34460animation={};
34461if(!axis||axis==="x"){
34462animation.left=cur.left-this.offset.parent.left-this.margins.left+
34463(this.offsetParent[0]===this.document[0].body?
344640:
34465this.offsetParent[0].scrollLeft
34466);
34467}
34468if(!axis||axis==="y"){
34469animation.top=cur.top-this.offset.parent.top-this.margins.top+
34470(this.offsetParent[0]===this.document[0].body?
344710:
34472this.offsetParent[0].scrollTop
34473);
34474}
34475this.reverting=true;
34476$(this.helper).animate(
34477animation,
34478parseInt(this.options.revert,10)||500,
34479function(){
34480that._clear(event);
34481}
34482);
34483}else{
34484this._clear(event,noPropagation);
34485}
34486return false;
34487},
34488cancel:function(){
34489if(this.dragging){
34490this._mouseUp(new $.Event("mouseup",{target:null}));
34491if(this.options.helper==="original"){
34492this.currentItem.css(this._storedCSS);
34493this._removeClass(this.currentItem,"ui-sortable-helper");
34494}else{
34495this.currentItem.show();
34496}
34497for(var i=this.containers.length-1;i>=0;i--){
34498this.containers[i]._trigger("deactivate",null,this._uiHash(this));
34499if(this.containers[i].containerCache.over){
34500this.containers[i]._trigger("out",null,this._uiHash(this));
34501this.containers[i].containerCache.over=0;
34502}
34503}
34504}
34505if(this.placeholder){
34506if(this.placeholder[0].parentNode){
34507this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
34508}
34509if(this.options.helper!=="original"&&this.helper&&
34510this.helper[0].parentNode){
34511this.helper.remove();
34512}
34513$.extend(this,{
34514helper:null,
34515dragging:false,
34516reverting:false,
34517_noFinalSort:null
34518});
34519if(this.domPosition.prev){
34520$(this.domPosition.prev).after(this.currentItem);
34521}else{
34522$(this.domPosition.parent).prepend(this.currentItem);
34523}
34524}
34525return this;
34526},
34527serialize:function(o){
34528var items=this._getItemsAsjQuery(o&&o.connected),
34529str=[];
34530o=o||{};
34531$(items).each(function(){
34532var res=($(o.item||this).attr(o.attribute||"id")||"")
34533.match(o.expression||(/(.+)[\-=_](.+)/));
34534if(res){
34535str.push(
34536(o.key||res[1]+"[]")+
34537"="+(o.key&&o.expression?res[1]:res[2]));
34538}
34539});
34540if(!str.length&&o.key){
34541str.push(o.key+"=");
34542}
34543return str.join("&");
34544},
34545toArray:function(o){
34546var items=this._getItemsAsjQuery(o&&o.connected),
34547ret=[];
34548o=o||{};
34549items.each(function(){
34550ret.push($(o.item||this).attr(o.attribute||"id")||"");
34551});
34552return ret;
34553},
34554_intersectsWith:function(item){
34555var x1=this.positionAbs.left,
34556x2=x1+this.helperProportions.width,
34557y1=this.positionAbs.top,
34558y2=y1+this.helperProportions.height,
34559l=item.left,
34560r=l+item.width,
34561t=item.top,
34562b=t+item.height,
34563dyClick=this.offset.click.top,
34564dxClick=this.offset.click.left,
34565isOverElementHeight=(this.options.axis==="x")||((y1+dyClick)>t&&
34566(y1+dyClick)<b),
34567isOverElementWidth=(this.options.axis==="y")||((x1+dxClick)>l&&
34568(x1+dxClick)<r),
34569isOverElement=isOverElementHeight&&isOverElementWidth;
34570if(this.options.tolerance==="pointer"||
34571this.options.forcePointerForContainers||
34572(this.options.tolerance!=="pointer"&&
34573this.helperProportions[this.floating?"width":"height"]>
34574item[this.floating?"width":"height"])
34575){
34576return isOverElement;
34577}else{
34578return(l<x1+(this.helperProportions.width/2)&&
34579x2-(this.helperProportions.width/2)<r&&
34580t<y1+(this.helperProportions.height/2)&&
34581y2-(this.helperProportions.height/2)<b);
34582}
34583},
34584_intersectsWithPointer:function(item){
34585var verticalDirection,horizontalDirection,
34586isOverElementHeight=(this.options.axis==="x")||
34587this._isOverAxis(
34588this.positionAbs.top+this.offset.click.top,item.top,item.height),
34589isOverElementWidth=(this.options.axis==="y")||
34590this._isOverAxis(
34591this.positionAbs.left+this.offset.click.left,item.left,item.width),
34592isOverElement=isOverElementHeight&&isOverElementWidth;
34593if(!isOverElement){
34594return false;
34595}
34596verticalDirection=this.dragDirection.vertical;
34597horizontalDirection=this.dragDirection.horizontal;
34598return this.floating?
34599((horizontalDirection==="right"||verticalDirection==="down")?2:1):
34600(verticalDirection&&(verticalDirection==="down"?2:1));
34601},
34602_intersectsWithSides:function(item){
34603var isOverBottomHalf=this._isOverAxis(this.positionAbs.top+
34604this.offset.click.top,item.top+(item.height/2),item.height),
34605isOverRightHalf=this._isOverAxis(this.positionAbs.left+
34606this.offset.click.left,item.left+(item.width/2),item.width),
34607verticalDirection=this.dragDirection.vertical,
34608horizontalDirection=this.dragDirection.horizontal;
34609if(this.floating&&horizontalDirection){
34610return((horizontalDirection==="right"&&isOverRightHalf)||
34611(horizontalDirection==="left"&&!isOverRightHalf));
34612}else{
34613return verticalDirection&&((verticalDirection==="down"&&isOverBottomHalf)||
34614(verticalDirection==="up"&&!isOverBottomHalf));
34615}
34616},
34617_getDragVerticalDirection:function(){
34618var delta=this.positionAbs.top-this.lastPositionAbs.top;
34619return delta!==0&&(delta>0?"down":"up");
34620},
34621_getDragHorizontalDirection:function(){
34622var delta=this.positionAbs.left-this.lastPositionAbs.left;
34623return delta!==0&&(delta>0?"right":"left");
34624},
34625refresh:function(event){
34626this._refreshItems(event);
34627this._setHandleClassName();
34628this.refreshPositions();
34629return this;
34630},
34631_connectWith:function(){
34632var options=this.options;
34633return options.connectWith.constructor===String?
34634[options.connectWith]:
34635options.connectWith;
34636},
34637_getItemsAsjQuery:function(connected){
34638var i,j,cur,inst,
34639items=[],
34640queries=[],
34641connectWith=this._connectWith();
34642if(connectWith&&connected){
34643for(i=connectWith.length-1;i>=0;i--){
34644cur=$(connectWith[i],this.document[0]);
34645for(j=cur.length-1;j>=0;j--){
34646inst=$.data(cur[j],this.widgetFullName);
34647if(inst&&inst!==this&&!inst.options.disabled){
34648queries.push([typeof inst.options.items==="function"?
34649inst.options.items.call(inst.element):
34650$(inst.options.items,inst.element)
34651.not(".ui-sortable-helper")
34652.not(".ui-sortable-placeholder"),inst]);
34653}
34654}
34655}
34656}
34657queries.push([typeof this.options.items==="function"?
34658this.options.items
34659.call(this.element,null,{options:this.options,item:this.currentItem}):
34660$(this.options.items,this.element)
34661.not(".ui-sortable-helper")
34662.not(".ui-sortable-placeholder"),this]);
34663function addItems(){
34664items.push(this);
34665}
34666for(i=queries.length-1;i>=0;i--){
34667queries[i][0].each(addItems);
34668}
34669return $(items);
34670},
34671_removeCurrentsFromItems:function(){
34672var list=this.currentItem.find(":data("+this.widgetName+"-item)");
34673this.items=$.grep(this.items,function(item){
34674for(var j=0;j<list.length;j++){
34675if(list[j]===item.item[0]){
34676return false;
34677}
34678}
34679return true;
34680});
34681},
34682_refreshItems:function(event){
34683this.items=[];
34684this.containers=[this];
34685var i,j,cur,inst,targetData,_queries,item,queriesLength,
34686items=this.items,
34687queries=[[typeof this.options.items==="function"?
34688this.options.items.call(this.element[0],event,{item:this.currentItem}):
34689$(this.options.items,this.element),this]],
34690connectWith=this._connectWith();
34691if(connectWith&&this.ready){
34692for(i=connectWith.length-1;i>=0;i--){
34693cur=$(connectWith[i],this.document[0]);
34694for(j=cur.length-1;j>=0;j--){
34695inst=$.data(cur[j],this.widgetFullName);
34696if(inst&&inst!==this&&!inst.options.disabled){
34697queries.push([typeof inst.options.items==="function"?
34698inst.options.items
34699.call(inst.element[0],event,{item:this.currentItem}):
34700$(inst.options.items,inst.element),inst]);
34701this.containers.push(inst);
34702}
34703}
34704}
34705}
34706for(i=queries.length-1;i>=0;i--){
34707targetData=queries[i][1];
34708_queries=queries[i][0];
34709for(j=0,queriesLength=_queries.length;j<queriesLength;j++){
34710item=$(_queries[j]);
34711item.data(this.widgetName+"-item",targetData);
34712items.push({
34713item:item,
34714instance:targetData,
34715width:0,height:0,
34716left:0,top:0
34717});
34718}
34719}
34720},
34721_refreshItemPositions:function(fast){
34722var i,item,t,p;
34723for(i=this.items.length-1;i>=0;i--){
34724item=this.items[i];
34725if(this.currentContainer&&item.instance!==this.currentContainer&&
34726item.item[0]!==this.currentItem[0]){
34727continue;
34728}
34729t=this.options.toleranceElement?
34730$(this.options.toleranceElement,item.item):
34731item.item;
34732if(!fast){
34733item.width=t.outerWidth();
34734item.height=t.outerHeight();
34735}
34736p=t.offset();
34737item.left=p.left;
34738item.top=p.top;
34739}
34740},
34741refreshPositions:function(fast){
34742this.floating=this.items.length?
34743this.options.axis==="x"||this._isFloating(this.items[0].item):
34744false;
34745if(this.offsetParent&&this.helper){
34746this.offset.parent=this._getParentOffset();
34747}
34748this._refreshItemPositions(fast);
34749var i,p;
34750if(this.options.custom&&this.options.custom.refreshContainers){
34751this.options.custom.refreshContainers.call(this);
34752}else{
34753for(i=this.containers.length-1;i>=0;i--){
34754p=this.containers[i].element.offset();
34755this.containers[i].containerCache.left=p.left;
34756this.containers[i].containerCache.top=p.top;
34757this.containers[i].containerCache.width=
34758this.containers[i].element.outerWidth();
34759this.containers[i].containerCache.height=
34760this.containers[i].element.outerHeight();
34761}
34762}
34763return this;
34764},
34765_createPlaceholder:function(that){
34766that=that||this;
34767var className,nodeName,
34768o=that.options;
34769if(!o.placeholder||o.placeholder.constructor===String){
34770className=o.placeholder;
34771nodeName=that.currentItem[0].nodeName.toLowerCase();
34772o.placeholder={
34773element:function(){
34774var element=$("<"+nodeName+">",that.document[0]);
34775that._addClass(element,"ui-sortable-placeholder",
34776className||that.currentItem[0].className)
34777._removeClass(element,"ui-sortable-helper");
34778if(nodeName==="tbody"){
34779that._createTrPlaceholder(
34780that.currentItem.find("tr").eq(0),
34781$("<tr>",that.document[0]).appendTo(element)
34782);
34783}else if(nodeName==="tr"){
34784that._createTrPlaceholder(that.currentItem,element);
34785}else if(nodeName==="img"){
34786element.attr("src",that.currentItem.attr("src"));
34787}
34788if(!className){
34789element.css("visibility","hidden");
34790}
34791return element;
34792},
34793update:function(container,p){
34794if(className&&!o.forcePlaceholderSize){
34795return;
34796}
34797if(!p.height()||(o.forcePlaceholderSize&&
34798(nodeName==="tbody"||nodeName==="tr"))){
34799p.height(
34800that.currentItem.innerHeight()-
34801parseInt(that.currentItem.css("paddingTop")||0,10)-
34802parseInt(that.currentItem.css("paddingBottom")||0,10));
34803}
34804if(!p.width()){
34805p.width(
34806that.currentItem.innerWidth()-
34807parseInt(that.currentItem.css("paddingLeft")||0,10)-
34808parseInt(that.currentItem.css("paddingRight")||0,10));
34809}
34810}
34811};
34812}
34813that.placeholder=$(o.placeholder.element.call(that.element,that.currentItem));
34814that.currentItem.after(that.placeholder);
34815o.placeholder.update(that,that.placeholder);
34816},
34817_createTrPlaceholder:function(sourceTr,targetTr){
34818var that=this;
34819sourceTr.children().each(function(){
34820$("<td>&#160;</td>",that.document[0])
34821.attr("colspan",$(this).attr("colspan")||1)
34822.appendTo(targetTr);
34823});
34824},
34825_contactContainers:function(event){
34826var i,j,dist,itemWithLeastDistance,posProperty,sizeProperty,cur,nearBottom,
34827floating,axis,
34828innermostContainer=null,
34829innermostIndex=null;
34830for(i=this.containers.length-1;i>=0;i--){
34831if($.contains(this.currentItem[0],this.containers[i].element[0])){
34832continue;
34833}
34834if(this._intersectsWith(this.containers[i].containerCache)){
34835if(innermostContainer&&
34836$.contains(
34837this.containers[i].element[0],
34838innermostContainer.element[0])){
34839continue;
34840}
34841innermostContainer=this.containers[i];
34842innermostIndex=i;
34843}else{
34844if(this.containers[i].containerCache.over){
34845this.containers[i]._trigger("out",event,this._uiHash(this));
34846this.containers[i].containerCache.over=0;
34847}
34848}
34849}
34850if(!innermostContainer){
34851return;
34852}
34853if(this.containers.length===1){
34854if(!this.containers[innermostIndex].containerCache.over){
34855this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));
34856this.containers[innermostIndex].containerCache.over=1;
34857}
34858}else{
34859dist=10000;
34860itemWithLeastDistance=null;
34861floating=innermostContainer.floating||this._isFloating(this.currentItem);
34862posProperty=floating?"left":"top";
34863sizeProperty=floating?"width":"height";
34864axis=floating?"pageX":"pageY";
34865for(j=this.items.length-1;j>=0;j--){
34866if(!$.contains(
34867this.containers[innermostIndex].element[0],this.items[j].item[0])
34868){
34869continue;
34870}
34871if(this.items[j].item[0]===this.currentItem[0]){
34872continue;
34873}
34874cur=this.items[j].item.offset()[posProperty];
34875nearBottom=false;
34876if(event[axis]-cur>this.items[j][sizeProperty]/2){
34877nearBottom=true;
34878}
34879if(Math.abs(event[axis]-cur)<dist){
34880dist=Math.abs(event[axis]-cur);
34881itemWithLeastDistance=this.items[j];
34882this.direction=nearBottom?"up":"down";
34883}
34884}
34885if(!itemWithLeastDistance&&!this.options.dropOnEmpty){
34886return;
34887}
34888if(this.currentContainer===this.containers[innermostIndex]){
34889if(!this.currentContainer.containerCache.over){
34890this.containers[innermostIndex]._trigger("over",event,this._uiHash());
34891this.currentContainer.containerCache.over=1;
34892}
34893return;
34894}
34895if(itemWithLeastDistance){
34896this._rearrange(event,itemWithLeastDistance,null,true);
34897}else{
34898this._rearrange(event,null,this.containers[innermostIndex].element,true);
34899}
34900this._trigger("change",event,this._uiHash());
34901this.containers[innermostIndex]._trigger("change",event,this._uiHash(this));
34902this.currentContainer=this.containers[innermostIndex];
34903this.options.placeholder.update(this.currentContainer,this.placeholder);
34904this.scrollParent=this.placeholder.scrollParent();
34905if(this.scrollParent[0]!==this.document[0]&&
34906this.scrollParent[0].tagName!=="HTML"){
34907this.overflowOffset=this.scrollParent.offset();
34908}
34909this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));
34910this.containers[innermostIndex].containerCache.over=1;
34911}
34912},
34913_createHelper:function(event){
34914var o=this.options,
34915helper=typeof o.helper==="function"?
34916$(o.helper.apply(this.element[0],[event,this.currentItem])):
34917(o.helper==="clone"?this.currentItem.clone():this.currentItem);
34918if(!helper.parents("body").length){
34919this.appendTo[0].appendChild(helper[0]);
34920}
34921if(helper[0]===this.currentItem[0]){
34922this._storedCSS={
34923width:this.currentItem[0].style.width,
34924height:this.currentItem[0].style.height,
34925position:this.currentItem.css("position"),
34926top:this.currentItem.css("top"),
34927left:this.currentItem.css("left")
34928};
34929}
34930if(!helper[0].style.width||o.forceHelperSize){
34931helper.width(this.currentItem.width());
34932}
34933if(!helper[0].style.height||o.forceHelperSize){
34934helper.height(this.currentItem.height());
34935}
34936return helper;
34937},
34938_adjustOffsetFromHelper:function(obj){
vendor: 43,932 bytes, lines 34939-36709
34939if(typeof obj==="string"){
34940obj=obj.split(" ");
34941}
34942if(Array.isArray(obj)){
34943obj={left:+obj[0],top:+obj[1]||0};
34944}
34945if("left"in obj){
34946this.offset.click.left=obj.left+this.margins.left;
34947}
34948if("right"in obj){
34949this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left;
34950}
34951if("top"in obj){
34952this.offset.click.top=obj.top+this.margins.top;
34953}
34954if("bottom"in obj){
34955this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top;
34956}
34957},
34958_getParentOffset:function(){
34959this.offsetParent=this.helper.offsetParent();
34960var po=this.offsetParent.offset();
34961if(this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&
34962$.contains(this.scrollParent[0],this.offsetParent[0])){
34963po.left+=this.scrollParent.scrollLeft();
34964po.top+=this.scrollParent.scrollTop();
34965}
34966if(this.offsetParent[0]===this.document[0].body||
34967(this.offsetParent[0].tagName&&
34968this.offsetParent[0].tagName.toLowerCase()==="html"&&$.ui.ie)){
34969po={top:0,left:0};
34970}
34971return{
34972top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),
34973left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)
34974};
34975},
34976_getRelativeOffset:function(){
34977if(this.cssPosition==="relative"){
34978var p=this.currentItem.position();
34979return{
34980top:p.top-(parseInt(this.helper.css("top"),10)||0)+
34981this.scrollParent.scrollTop(),
34982left:p.left-(parseInt(this.helper.css("left"),10)||0)+
34983this.scrollParent.scrollLeft()
34984};
34985}else{
34986return{top:0,left:0};
34987}
34988},
34989_cacheMargins:function(){
34990this.margins={
34991left:(parseInt(this.currentItem.css("marginLeft"),10)||0),
34992top:(parseInt(this.currentItem.css("marginTop"),10)||0)
34993};
34994},
34995_cacheHelperProportions:function(){
34996this.helperProportions={
34997width:this.helper.outerWidth(),
34998height:this.helper.outerHeight()
34999};
35000},
35001_setContainment:function(){
35002var ce,co,over,
35003o=this.options;
35004if(o.containment==="parent"){
35005o.containment=this.helper[0].parentNode;
35006}
35007if(o.containment==="document"||o.containment==="window"){
35008this.containment=[
350090-this.offset.relative.left-this.offset.parent.left,
350100-this.offset.relative.top-this.offset.parent.top,
35011o.containment==="document"?
35012this.document.width():
35013this.window.width()-this.helperProportions.width-this.margins.left,
35014(o.containment==="document"?
35015(this.document.height()||document.body.parentNode.scrollHeight):
35016this.window.height()||this.document[0].body.parentNode.scrollHeight
35017)-this.helperProportions.height-this.margins.top
35018];
35019}
35020if(!(/^(document|window|parent)$/).test(o.containment)){
35021ce=$(o.containment)[0];
35022co=$(o.containment).offset();
35023over=($(ce).css("overflow")!=="hidden");
35024this.containment=[
35025co.left+(parseInt($(ce).css("borderLeftWidth"),10)||0)+
35026(parseInt($(ce).css("paddingLeft"),10)||0)-this.margins.left,
35027co.top+(parseInt($(ce).css("borderTopWidth"),10)||0)+
35028(parseInt($(ce).css("paddingTop"),10)||0)-this.margins.top,
35029co.left+(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-
35030(parseInt($(ce).css("borderLeftWidth"),10)||0)-
35031(parseInt($(ce).css("paddingRight"),10)||0)-
35032this.helperProportions.width-this.margins.left,
35033co.top+(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-
35034(parseInt($(ce).css("borderTopWidth"),10)||0)-
35035(parseInt($(ce).css("paddingBottom"),10)||0)-
35036this.helperProportions.height-this.margins.top
35037];
35038}
35039},
35040_convertPositionTo:function(d,pos){
35041if(!pos){
35042pos=this.position;
35043}
35044var mod=d==="absolute"?1:-1,
35045scroll=this.cssPosition==="absolute"&&
35046!(this.scrollParent[0]!==this.document[0]&&
35047$.contains(this.scrollParent[0],this.offsetParent[0]))?
35048this.offsetParent:
35049this.scrollParent,
35050scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);
35051return{
35052top:(
35053pos.top+
35054this.offset.relative.top*mod+
35055this.offset.parent.top*mod-
35056((this.cssPosition==="fixed"?
35057-this.scrollParent.scrollTop():
35058(scrollIsRootNode?0:scroll.scrollTop()))*mod)
35059),
35060left:(
35061pos.left+
35062this.offset.relative.left*mod+
35063this.offset.parent.left*mod-
35064((this.cssPosition==="fixed"?
35065-this.scrollParent.scrollLeft():scrollIsRootNode?0:
35066scroll.scrollLeft())*mod)
35067)
35068};
35069},
35070_generatePosition:function(event){
35071var top,left,
35072o=this.options,
35073pageX=event.pageX,
35074pageY=event.pageY,
35075scroll=this.cssPosition==="absolute"&&
35076!(this.scrollParent[0]!==this.document[0]&&
35077$.contains(this.scrollParent[0],this.offsetParent[0]))?
35078this.offsetParent:
35079this.scrollParent,
35080scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);
35081if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&
35082this.scrollParent[0]!==this.offsetParent[0])){
35083this.offset.relative=this._getRelativeOffset();
35084}
35085if(this.originalPosition){
35086if(this.containment){
35087if(event.pageX-this.offset.click.left<this.containment[0]){
35088pageX=this.containment[0]+this.offset.click.left;
35089}
35090if(event.pageY-this.offset.click.top<this.containment[1]){
35091pageY=this.containment[1]+this.offset.click.top;
35092}
35093if(event.pageX-this.offset.click.left>this.containment[2]){
35094pageX=this.containment[2]+this.offset.click.left;
35095}
35096if(event.pageY-this.offset.click.top>this.containment[3]){
35097pageY=this.containment[3]+this.offset.click.top;
35098}
35099}
35100if(o.grid){
35101top=this.originalPageY+Math.round((pageY-this.originalPageY)/
35102o.grid[1])*o.grid[1];
35103pageY=this.containment?
35104((top-this.offset.click.top>=this.containment[1]&&
35105top-this.offset.click.top<=this.containment[3])?
35106top:
35107((top-this.offset.click.top>=this.containment[1])?
35108top-o.grid[1]:top+o.grid[1])):
35109top;
35110left=this.originalPageX+Math.round((pageX-this.originalPageX)/
35111o.grid[0])*o.grid[0];
35112pageX=this.containment?
35113((left-this.offset.click.left>=this.containment[0]&&
35114left-this.offset.click.left<=this.containment[2])?
35115left:
35116((left-this.offset.click.left>=this.containment[0])?
35117left-o.grid[0]:left+o.grid[0])):
35118left;
35119}
35120}
35121return{
35122top:(
35123pageY-
35124this.offset.click.top-
35125this.offset.relative.top-
35126this.offset.parent.top+
35127((this.cssPosition==="fixed"?
35128-this.scrollParent.scrollTop():
35129(scrollIsRootNode?0:scroll.scrollTop())))
35130),
35131left:(
35132pageX-
35133this.offset.click.left-
35134this.offset.relative.left-
35135this.offset.parent.left+
35136((this.cssPosition==="fixed"?
35137-this.scrollParent.scrollLeft():
35138scrollIsRootNode?0:scroll.scrollLeft()))
35139)
35140};
35141},
35142_rearrange:function(event,i,a,hardRefresh){
35143if(a){
35144a[0].appendChild(this.placeholder[0]);
35145}else{
35146i.item[0].parentNode.insertBefore(this.placeholder[0],
35147(this.direction==="down"?i.item[0]:i.item[0].nextSibling));
35148}
35149this.counter=this.counter?++this.counter:1;
35150var counter=this.counter;
35151this._delay(function(){
35152if(counter===this.counter){
35153this.refreshPositions(!hardRefresh);
35154}
35155});
35156},
35157_clear:function(event,noPropagation){
35158this.reverting=false;
35159var i,
35160delayedTriggers=[];
35161if(!this._noFinalSort&&this.currentItem.parent().length){
35162this.placeholder.before(this.currentItem);
35163}
35164this._noFinalSort=null;
35165if(this.helper[0]===this.currentItem[0]){
35166for(i in this._storedCSS){
35167if(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static"){
35168this._storedCSS[i]="";
35169}
35170}
35171this.currentItem.css(this._storedCSS);
35172this._removeClass(this.currentItem,"ui-sortable-helper");
35173}else{
35174this.currentItem.show();
35175}
35176if(this.fromOutside&&!noPropagation){
35177delayedTriggers.push(function(event){
35178this._trigger("receive",event,this._uiHash(this.fromOutside));
35179});
35180}
35181if((this.fromOutside||
35182this.domPosition.prev!==
35183this.currentItem.prev().not(".ui-sortable-helper")[0]||
35184this.domPosition.parent!==this.currentItem.parent()[0])&&!noPropagation){
35185delayedTriggers.push(function(event){
35186this._trigger("update",event,this._uiHash());
35187});
35188}
35189if(this!==this.currentContainer){
35190if(!noPropagation){
35191delayedTriggers.push(function(event){
35192this._trigger("remove",event,this._uiHash());
35193});
35194delayedTriggers.push((function(c){
35195return function(event){
35196c._trigger("receive",event,this._uiHash(this));
35197};
35198}).call(this,this.currentContainer));
35199delayedTriggers.push((function(c){
35200return function(event){
35201c._trigger("update",event,this._uiHash(this));
35202};
35203}).call(this,this.currentContainer));
35204}
35205}
35206function delayEvent(type,instance,container){
35207return function(event){
35208container._trigger(type,event,instance._uiHash(instance));
35209};
35210}
35211for(i=this.containers.length-1;i>=0;i--){
35212if(!noPropagation){
35213delayedTriggers.push(delayEvent("deactivate",this,this.containers[i]));
35214}
35215if(this.containers[i].containerCache.over){
35216delayedTriggers.push(delayEvent("out",this,this.containers[i]));
35217this.containers[i].containerCache.over=0;
35218}
35219}
35220if(this.storedCursor){
35221this.document.find("body").css("cursor",this.storedCursor);
35222this.storedStylesheet.remove();
35223}
35224if(this._storedOpacity){
35225this.helper.css("opacity",this._storedOpacity);
35226}
35227if(this._storedZIndex){
35228this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex);
35229}
35230this.dragging=false;
35231if(!noPropagation){
35232this._trigger("beforeStop",event,this._uiHash());
35233}
35234this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
35235if(!this.cancelHelperRemoval){
35236if(this.helper[0]!==this.currentItem[0]){
35237this.helper.remove();
35238}
35239this.helper=null;
35240}
35241if(!noPropagation){
35242for(i=0;i<delayedTriggers.length;i++){
35243delayedTriggers[i].call(this,event);
35244}
35245this._trigger("stop",event,this._uiHash());
35246}
35247this.fromOutside=false;
35248return!this.cancelHelperRemoval;
35249},
35250_trigger:function(){
35251if($.Widget.prototype._trigger.apply(this,arguments)===false){
35252this.cancel();
35253}
35254},
35255_uiHash:function(_inst){
35256var inst=_inst||this;
35257return{
35258helper:inst.helper,
35259placeholder:inst.placeholder||$([]),
35260position:inst.position,
35261originalPosition:inst.originalPosition,
35262offset:inst.positionAbs,
35263item:inst.currentItem,
35264sender:_inst?_inst.element:null
35265};
35266}
35267});
35268function spinnerModifier(fn){
35269return function(){
35270var previous=this.element.val();
35271fn.apply(this,arguments);
35272this._refresh();
35273if(previous!==this.element.val()){
35274this._trigger("change");
35275}
35276};
35277}
35278$.widget("ui.spinner",{
35279version:"1.13.2",
35280defaultElement:"<input>",
35281widgetEventPrefix:"spin",
35282options:{
35283classes:{
35284"ui-spinner":"ui-corner-all",
35285"ui-spinner-down":"ui-corner-br",
35286"ui-spinner-up":"ui-corner-tr"
35287},
35288culture:null,
35289icons:{
35290down:"ui-icon-triangle-1-s",
35291up:"ui-icon-triangle-1-n"
35292},
35293incremental:true,
35294max:null,
35295min:null,
35296numberFormat:null,
35297page:10,
35298step:1,
35299change:null,
35300spin:null,
35301start:null,
35302stop:null
35303},
35304_create:function(){
35305this._setOption("max",this.options.max);
35306this._setOption("min",this.options.min);
35307this._setOption("step",this.options.step);
35308if(this.value()!==""){
35309this._value(this.element.val(),true);
35310}
35311this._draw();
35312this._on(this._events);
35313this._refresh();
35314this._on(this.window,{
35315beforeunload:function(){
35316this.element.removeAttr("autocomplete");
35317}
35318});
35319},
35320_getCreateOptions:function(){
35321var options=this._super();
35322var element=this.element;
35323$.each(["min","max","step"],function(i,option){
35324var value=element.attr(option);
35325if(value!=null&&value.length){
35326options[option]=value;
35327}
35328});
35329return options;
35330},
35331_events:{
35332keydown:function(event){
35333if(this._start(event)&&this._keydown(event)){
35334event.preventDefault();
35335}
35336},
35337keyup:"_stop",
35338focus:function(){
35339this.previous=this.element.val();
35340},
35341blur:function(event){
35342if(this.cancelBlur){
35343delete this.cancelBlur;
35344return;
35345}
35346this._stop();
35347this._refresh();
35348if(this.previous!==this.element.val()){
35349this._trigger("change",event);
35350}
35351},
35352mousewheel:function(event,delta){
35353var activeElement=$.ui.safeActiveElement(this.document[0]);
35354var isActive=this.element[0]===activeElement;
35355if(!isActive||!delta){
35356return;
35357}
35358if(!this.spinning&&!this._start(event)){
35359return false;
35360}
35361this._spin((delta>0?1:-1)*this.options.step,event);
35362clearTimeout(this.mousewheelTimer);
35363this.mousewheelTimer=this._delay(function(){
35364if(this.spinning){
35365this._stop(event);
35366}
35367},100);
35368event.preventDefault();
35369},
35370"mousedown .ui-spinner-button":function(event){
35371var previous;
35372previous=this.element[0]===$.ui.safeActiveElement(this.document[0])?
35373this.previous:this.element.val();
35374function checkFocus(){
35375var isActive=this.element[0]===$.ui.safeActiveElement(this.document[0]);
35376if(!isActive){
35377this.element.trigger("focus");
35378this.previous=previous;
35379this._delay(function(){
35380this.previous=previous;
35381});
35382}
35383}
35384event.preventDefault();
35385checkFocus.call(this);
35386this.cancelBlur=true;
35387this._delay(function(){
35388delete this.cancelBlur;
35389checkFocus.call(this);
35390});
35391if(this._start(event)===false){
35392return;
35393}
35394this._repeat(null,$(event.currentTarget)
35395.hasClass("ui-spinner-up")?1:-1,event);
35396},
35397"mouseup .ui-spinner-button":"_stop",
35398"mouseenter .ui-spinner-button":function(event){
35399if(!$(event.currentTarget).hasClass("ui-state-active")){
35400return;
35401}
35402if(this._start(event)===false){
35403return false;
35404}
35405this._repeat(null,$(event.currentTarget)
35406.hasClass("ui-spinner-up")?1:-1,event);
35407},
35408"mouseleave .ui-spinner-button":"_stop"
35409},
35410_enhance:function(){
35411this.uiSpinner=this.element
35412.attr("autocomplete","off")
35413.wrap("<span>")
35414.parent()
35415.append(
35416"<a></a><a></a>"
35417);
35418},
35419_draw:function(){
35420this._enhance();
35421this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");
35422this._addClass("ui-spinner-input");
35423this.element.attr("role","spinbutton");
35424this.buttons=this.uiSpinner.children("a")
35425.attr("tabIndex",-1)
35426.attr("aria-hidden",true)
35427.button({
35428classes:{
35429"ui-button":""
35430}
35431});
35432this._removeClass(this.buttons,"ui-corner-all");
35433this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");
35434this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");
35435this.buttons.first().button({
35436"icon":this.options.icons.up,
35437"showLabel":false
35438});
35439this.buttons.last().button({
35440"icon":this.options.icons.down,
35441"showLabel":false
35442});
35443if(this.buttons.height()>Math.ceil(this.uiSpinner.height()*0.5)&&
35444this.uiSpinner.height()>0){
35445this.uiSpinner.height(this.uiSpinner.height());
35446}
35447},
35448_keydown:function(event){
35449var options=this.options,
35450keyCode=$.ui.keyCode;
35451switch(event.keyCode){
35452case keyCode.UP:
35453this._repeat(null,1,event);
35454return true;
35455case keyCode.DOWN:
35456this._repeat(null,-1,event);
35457return true;
35458case keyCode.PAGE_UP:
35459this._repeat(null,options.page,event);
35460return true;
35461case keyCode.PAGE_DOWN:
35462this._repeat(null,-options.page,event);
35463return true;
35464}
35465return false;
35466},
35467_start:function(event){
35468if(!this.spinning&&this._trigger("start",event)===false){
35469return false;
35470}
35471if(!this.counter){
35472this.counter=1;
35473}
35474this.spinning=true;
35475return true;
35476},
35477_repeat:function(i,steps,event){
35478i=i||500;
35479clearTimeout(this.timer);
35480this.timer=this._delay(function(){
35481this._repeat(40,steps,event);
35482},i);
35483this._spin(steps*this.options.step,event);
35484},
35485_spin:function(step,event){
35486var value=this.value()||0;
35487if(!this.counter){
35488this.counter=1;
35489}
35490value=this._adjustValue(value+step*this._increment(this.counter));
35491if(!this.spinning||this._trigger("spin",event,{value:value})!==false){
35492this._value(value);
35493this.counter++;
35494}
35495},
35496_increment:function(i){
35497var incremental=this.options.incremental;
35498if(incremental){
35499return typeof incremental==="function"?
35500incremental(i):
35501Math.floor(i*i*i/50000-i*i/500+17*i/200+1);
35502}
35503return 1;
35504},
35505_precision:function(){
35506var precision=this._precisionOf(this.options.step);
35507if(this.options.min!==null){
35508precision=Math.max(precision,this._precisionOf(this.options.min));
35509}
35510return precision;
35511},
35512_precisionOf:function(num){
35513var str=num.toString(),
35514decimal=str.indexOf(".");
35515return decimal===-1?0:str.length-decimal-1;
35516},
35517_adjustValue:function(value){
35518var base,aboveMin,
35519options=this.options;
35520base=options.min!==null?options.min:0;
35521aboveMin=value-base;
35522aboveMin=Math.round(aboveMin/options.step)*options.step;
35523value=base+aboveMin;
35524value=parseFloat(value.toFixed(this._precision()));
35525if(options.max!==null&&value>options.max){
35526return options.max;
35527}
35528if(options.min!==null&&value<options.min){
35529return options.min;
35530}
35531return value;
35532},
35533_stop:function(event){
35534if(!this.spinning){
35535return;
35536}
35537clearTimeout(this.timer);
35538clearTimeout(this.mousewheelTimer);
35539this.counter=0;
35540this.spinning=false;
35541this._trigger("stop",event);
35542},
35543_setOption:function(key,value){
35544var prevValue,first,last;
35545if(key==="culture"||key==="numberFormat"){
35546prevValue=this._parse(this.element.val());
35547this.options[key]=value;
35548this.element.val(this._format(prevValue));
35549return;
35550}
35551if(key==="max"||key==="min"||key==="step"){
35552if(typeof value==="string"){
35553value=this._parse(value);
35554}
35555}
35556if(key==="icons"){
35557first=this.buttons.first().find(".ui-icon");
35558this._removeClass(first,null,this.options.icons.up);
35559this._addClass(first,null,value.up);
35560last=this.buttons.last().find(".ui-icon");
35561this._removeClass(last,null,this.options.icons.down);
35562this._addClass(last,null,value.down);
35563}
35564this._super(key,value);
35565},
35566_setOptionDisabled:function(value){
35567this._super(value);
35568this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!value);
35569this.element.prop("disabled",!!value);
35570this.buttons.button(value?"disable":"enable");
35571},
35572_setOptions:spinnerModifier(function(options){
35573this._super(options);
35574}),
35575_parse:function(val){
35576if(typeof val==="string"&&val!==""){
35577val=window.Globalize&&this.options.numberFormat?
35578Globalize.parseFloat(val,10,this.options.culture):+val;
35579}
35580return val===""||isNaN(val)?null:val;
35581},
35582_format:function(value){
35583if(value===""){
35584return"";
35585}
35586return window.Globalize&&this.options.numberFormat?
35587Globalize.format(value,this.options.numberFormat,this.options.culture):
35588value;
35589},
35590_refresh:function(){
35591this.element.attr({
35592"aria-valuemin":this.options.min,
35593"aria-valuemax":this.options.max,
35594"aria-valuenow":this._parse(this.element.val())
35595});
35596},
35597isValid:function(){
35598var value=this.value();
35599if(value===null){
35600return false;
35601}
35602return value===this._adjustValue(value);
35603},
35604_value:function(value,allowAny){
35605var parsed;
35606if(value!==""){
35607parsed=this._parse(value);
35608if(parsed!==null){
35609if(!allowAny){
35610parsed=this._adjustValue(parsed);
35611}
35612value=this._format(parsed);
35613}
35614}
35615this.element.val(value);
35616this._refresh();
35617},
35618_destroy:function(){
35619this.element
35620.prop("disabled",false)
35621.removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");
35622this.uiSpinner.replaceWith(this.element);
35623},
35624stepUp:spinnerModifier(function(steps){
35625this._stepUp(steps);
35626}),
35627_stepUp:function(steps){
35628if(this._start()){
35629this._spin((steps||1)*this.options.step);
35630this._stop();
35631}
35632},
35633stepDown:spinnerModifier(function(steps){
35634this._stepDown(steps);
35635}),
35636_stepDown:function(steps){
35637if(this._start()){
35638this._spin((steps||1)*-this.options.step);
35639this._stop();
35640}
35641},
35642pageUp:spinnerModifier(function(pages){
35643this._stepUp((pages||1)*this.options.page);
35644}),
35645pageDown:spinnerModifier(function(pages){
35646this._stepDown((pages||1)*this.options.page);
35647}),
35648value:function(newVal){
35649if(!arguments.length){
35650return this._parse(this.element.val());
35651}
35652spinnerModifier(this._value).call(this,newVal);
35653},
35654widget:function(){
35655return this.uiSpinner;
35656}
35657});
35658if($.uiBackCompat!==false){
35659$.widget("ui.spinner",$.ui.spinner,{
35660_enhance:function(){
35661this.uiSpinner=this.element
35662.attr("autocomplete","off")
35663.wrap(this._uiSpinnerHtml())
35664.parent()
35665.append(this._buttonHtml());
35666},
35667_uiSpinnerHtml:function(){
35668return"<span>";
35669},
35670_buttonHtml:function(){
35671return"<a></a><a></a>";
35672}
35673});
35674}
35675var widgetsSpinner=$.ui.spinner;
35676$.widget("ui.tabs",{
35677version:"1.13.2",
35678delay:300,
35679options:{
35680active:null,
35681classes:{
35682"ui-tabs":"ui-corner-all",
35683"ui-tabs-nav":"ui-corner-all",
35684"ui-tabs-panel":"ui-corner-bottom",
35685"ui-tabs-tab":"ui-corner-top"
35686},
35687collapsible:false,
35688event:"click",
35689heightStyle:"content",
35690hide:null,
35691show:null,
35692activate:null,
35693beforeActivate:null,
35694beforeLoad:null,
35695load:null
35696},
35697_isLocal:(function(){
35698var rhash=/#.*$/;
35699return function(anchor){
35700var anchorUrl,locationUrl;
35701anchorUrl=anchor.href.replace(rhash,"");
35702locationUrl=location.href.replace(rhash,"");
35703try{
35704anchorUrl=decodeURIComponent(anchorUrl);
35705}catch(error){}
35706try{
35707locationUrl=decodeURIComponent(locationUrl);
35708}catch(error){}
35709return anchor.hash.length>1&&anchorUrl===locationUrl;
35710};
35711})(),
35712_create:function(){
35713var that=this,
35714options=this.options;
35715this.running=false;
35716this._addClass("ui-tabs","ui-widget ui-widget-content");
35717this._toggleClass("ui-tabs-collapsible",null,options.collapsible);
35718this._processTabs();
35719options.active=this._initialActive();
35720if(Array.isArray(options.disabled)){
35721options.disabled=$.uniqueSort(options.disabled.concat(
35722$.map(this.tabs.filter(".ui-state-disabled"),function(li){
35723return that.tabs.index(li);
35724})
35725)).sort();
35726}
35727if(this.options.active!==false&&this.anchors.length){
35728this.active=this._findActive(options.active);
35729}else{
35730this.active=$();
35731}
35732this._refresh();
35733if(this.active.length){
35734this.load(options.active);
35735}
35736},
35737_initialActive:function(){
35738var active=this.options.active,
35739collapsible=this.options.collapsible,
35740locationHash=location.hash.substring(1);
35741if(active===null){
35742if(locationHash){
35743this.tabs.each(function(i,tab){
35744if($(tab).attr("aria-controls")===locationHash){
35745active=i;
35746return false;
35747}
35748});
35749}
35750if(active===null){
35751active=this.tabs.index(this.tabs.filter(".ui-tabs-active"));
35752}
35753if(active===null||active===-1){
35754active=this.tabs.length?0:false;
35755}
35756}
35757if(active!==false){
35758active=this.tabs.index(this.tabs.eq(active));
35759if(active===-1){
35760active=collapsible?false:0;
35761}
35762}
35763if(!collapsible&&active===false&&this.anchors.length){
35764active=0;
35765}
35766return active;
35767},
35768_getCreateEventData:function(){
35769return{
35770tab:this.active,
35771panel:!this.active.length?$():this._getPanelForTab(this.active)
35772};
35773},
35774_tabKeydown:function(event){
35775var focusedTab=$($.ui.safeActiveElement(this.document[0])).closest("li"),
35776selectedIndex=this.tabs.index(focusedTab),
35777goingForward=true;
35778if(this._handlePageNav(event)){
35779return;
35780}
35781switch(event.keyCode){
35782case $.ui.keyCode.RIGHT:
35783case $.ui.keyCode.DOWN:
35784selectedIndex++;
35785break;
35786case $.ui.keyCode.UP:
35787case $.ui.keyCode.LEFT:
35788goingForward=false;
35789selectedIndex--;
35790break;
35791case $.ui.keyCode.END:
35792selectedIndex=this.anchors.length-1;
35793break;
35794case $.ui.keyCode.HOME:
35795selectedIndex=0;
35796break;
35797case $.ui.keyCode.SPACE:
35798event.preventDefault();
35799clearTimeout(this.activating);
35800this._activate(selectedIndex);
35801return;
35802case $.ui.keyCode.ENTER:
35803event.preventDefault();
35804clearTimeout(this.activating);
35805this._activate(selectedIndex===this.options.active?false:selectedIndex);
35806return;
35807default:
35808return;
35809}
35810event.preventDefault();
35811clearTimeout(this.activating);
35812selectedIndex=this._focusNextTab(selectedIndex,goingForward);
35813if(!event.ctrlKey&&!event.metaKey){
35814focusedTab.attr("aria-selected","false");
35815this.tabs.eq(selectedIndex).attr("aria-selected","true");
35816this.activating=this._delay(function(){
35817this.option("active",selectedIndex);
35818},this.delay);
35819}
35820},
35821_panelKeydown:function(event){
35822if(this._handlePageNav(event)){
35823return;
35824}
35825if(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){
35826event.preventDefault();
35827this.active.trigger("focus");
35828}
35829},
35830_handlePageNav:function(event){
35831if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){
35832this._activate(this._focusNextTab(this.options.active-1,false));
35833return true;
35834}
35835if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){
35836this._activate(this._focusNextTab(this.options.active+1,true));
35837return true;
35838}
35839},
35840_findNextTab:function(index,goingForward){
35841var lastTabIndex=this.tabs.length-1;
35842function constrain(){
35843if(index>lastTabIndex){
35844index=0;
35845}
35846if(index<0){
35847index=lastTabIndex;
35848}
35849return index;
35850}
35851while($.inArray(constrain(),this.options.disabled)!==-1){
35852index=goingForward?index+1:index-1;
35853}
35854return index;
35855},
35856_focusNextTab:function(index,goingForward){
35857index=this._findNextTab(index,goingForward);
35858this.tabs.eq(index).trigger("focus");
35859return index;
35860},
35861_setOption:function(key,value){
35862if(key==="active"){
35863this._activate(value);
35864return;
35865}
35866this._super(key,value);
35867if(key==="collapsible"){
35868this._toggleClass("ui-tabs-collapsible",null,value);
35869if(!value&&this.options.active===false){
35870this._activate(0);
35871}
35872}
35873if(key==="event"){
35874this._setupEvents(value);
35875}
35876if(key==="heightStyle"){
35877this._setupHeightStyle(value);
35878}
35879},
35880_sanitizeSelector:function(hash){
35881return hash?hash.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):"";
35882},
35883refresh:function(){
35884var options=this.options,
35885lis=this.tablist.children(":has(a[href])");
35886options.disabled=$.map(lis.filter(".ui-state-disabled"),function(tab){
35887return lis.index(tab);
35888});
35889this._processTabs();
35890if(options.active===false||!this.anchors.length){
35891options.active=false;
35892this.active=$();
35893}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])){
35894if(this.tabs.length===options.disabled.length){
35895options.active=false;
35896this.active=$();
35897}else{
35898this._activate(this._findNextTab(Math.max(0,options.active-1),false));
35899}
35900}else{
35901options.active=this.tabs.index(this.active);
35902}
35903this._refresh();
35904},
35905_refresh:function(){
35906this._setOptionDisabled(this.options.disabled);
35907this._setupEvents(this.options.event);
35908this._setupHeightStyle(this.options.heightStyle);
35909this.tabs.not(this.active).attr({
35910"aria-selected":"false",
35911"aria-expanded":"false",
35912tabIndex:-1
35913});
35914this.panels.not(this._getPanelForTab(this.active))
35915.hide()
35916.attr({
35917"aria-hidden":"true"
35918});
35919if(!this.active.length){
35920this.tabs.eq(0).attr("tabIndex",0);
35921}else{
35922this.active
35923.attr({
35924"aria-selected":"true",
35925"aria-expanded":"true",
35926tabIndex:0
35927});
35928this._addClass(this.active,"ui-tabs-active","ui-state-active");
35929this._getPanelForTab(this.active)
35930.show()
35931.attr({
35932"aria-hidden":"false"
35933});
35934}
35935},
35936_processTabs:function(){
35937var that=this,
35938prevTabs=this.tabs,
35939prevAnchors=this.anchors,
35940prevPanels=this.panels;
35941this.tablist=this._getList().attr("role","tablist");
35942this._addClass(this.tablist,"ui-tabs-nav",
35943"ui-helper-reset ui-helper-clearfix ui-widget-header");
35944this.tablist
35945.on("mousedown"+this.eventNamespace,"> li",function(event){
35946if($(this).is(".ui-state-disabled")){
35947event.preventDefault();
35948}
35949})
35950.on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){
35951if($(this).closest("li").is(".ui-state-disabled")){
35952this.blur();
35953}
35954});
35955this.tabs=this.tablist.find("> li:has(a[href])")
35956.attr({
35957role:"tab",
35958tabIndex:-1
35959});
35960this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");
35961this.anchors=this.tabs.map(function(){
35962return $("a",this)[0];
35963})
35964.attr({
35965tabIndex:-1
35966});
35967this._addClass(this.anchors,"ui-tabs-anchor");
35968this.panels=$();
35969this.anchors.each(function(i,anchor){
35970var selector,panel,panelId,
35971anchorId=$(anchor).uniqueId().attr("id"),
35972tab=$(anchor).closest("li"),
35973originalAriaControls=tab.attr("aria-controls");
35974if(that._isLocal(anchor)){
35975selector=anchor.hash;
35976panelId=selector.substring(1);
35977panel=that.element.find(that._sanitizeSelector(selector));
35978}else{
35979panelId=tab.attr("aria-controls")||$({}).uniqueId()[0].id;
35980selector="#"+panelId;
35981panel=that.element.find(selector);
35982if(!panel.length){
35983panel=that._createPanel(panelId);
35984panel.insertAfter(that.panels[i-1]||that.tablist);
35985}
35986panel.attr("aria-live","polite");
35987}
35988if(panel.length){
35989that.panels=that.panels.add(panel);
35990}
35991if(originalAriaControls){
35992tab.data("ui-tabs-aria-controls",originalAriaControls);
35993}
35994tab.attr({
35995"aria-controls":panelId,
35996"aria-labelledby":anchorId
35997});
35998panel.attr("aria-labelledby",anchorId);
35999});
36000this.panels.attr("role","tabpanel");
36001this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");
36002if(prevTabs){
36003this._off(prevTabs.not(this.tabs));
36004this._off(prevAnchors.not(this.anchors));
36005this._off(prevPanels.not(this.panels));
36006}
36007},
36008_getList:function(){
36009return this.tablist||this.element.find("ol, ul").eq(0);
36010},
36011_createPanel:function(id){
36012return $("<div>")
36013.attr("id",id)
36014.data("ui-tabs-destroy",true);
36015},
36016_setOptionDisabled:function(disabled){
36017var currentItem,li,i;
36018if(Array.isArray(disabled)){
36019if(!disabled.length){
36020disabled=false;
36021}else if(disabled.length===this.anchors.length){
36022disabled=true;
36023}
36024}
36025for(i=0;(li=this.tabs[i]);i++){
36026currentItem=$(li);
36027if(disabled===true||$.inArray(i,disabled)!==-1){
36028currentItem.attr("aria-disabled","true");
36029this._addClass(currentItem,null,"ui-state-disabled");
36030}else{
36031currentItem.removeAttr("aria-disabled");
36032this._removeClass(currentItem,null,"ui-state-disabled");
36033}
36034}
36035this.options.disabled=disabled;
36036this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,
36037disabled===true);
36038},
36039_setupEvents:function(event){
36040var events={};
36041if(event){
36042$.each(event.split(" "),function(index,eventName){
36043events[eventName]="_eventHandler";
36044});
36045}
36046this._off(this.anchors.add(this.tabs).add(this.panels));
36047this._on(true,this.anchors,{
36048click:function(event){
36049event.preventDefault();
36050}
36051});
36052this._on(this.anchors,events);
36053this._on(this.tabs,{keydown:"_tabKeydown"});
36054this._on(this.panels,{keydown:"_panelKeydown"});
36055this._focusable(this.tabs);
36056this._hoverable(this.tabs);
36057},
36058_setupHeightStyle:function(heightStyle){
36059var maxHeight,
36060parent=this.element.parent();
36061if(heightStyle==="fill"){
36062maxHeight=parent.height();
36063maxHeight-=this.element.outerHeight()-this.element.height();
36064this.element.siblings(":visible").each(function(){
36065var elem=$(this),
36066position=elem.css("position");
36067if(position==="absolute"||position==="fixed"){
36068return;
36069}
36070maxHeight-=elem.outerHeight(true);
36071});
36072this.element.children().not(this.panels).each(function(){
36073maxHeight-=$(this).outerHeight(true);
36074});
36075this.panels.each(function(){
36076$(this).height(Math.max(0,maxHeight-
36077$(this).innerHeight()+$(this).height()));
36078})
36079.css("overflow","auto");
36080}else if(heightStyle==="auto"){
36081maxHeight=0;
36082this.panels.each(function(){
36083maxHeight=Math.max(maxHeight,$(this).height("").height());
36084}).height(maxHeight);
36085}
36086},
36087_eventHandler:function(event){
36088var options=this.options,
36089active=this.active,
36090anchor=$(event.currentTarget),
36091tab=anchor.closest("li"),
36092clickedIsActive=tab[0]===active[0],
36093collapsing=clickedIsActive&&options.collapsible,
36094toShow=collapsing?$():this._getPanelForTab(tab),
36095toHide=!active.length?$():this._getPanelForTab(active),
36096eventData={
36097oldTab:active,
36098oldPanel:toHide,
36099newTab:collapsing?$():tab,
36100newPanel:toShow
36101};
36102event.preventDefault();
36103if(tab.hasClass("ui-state-disabled")||
36104tab.hasClass("ui-tabs-loading")||
36105this.running||
36106(clickedIsActive&&!options.collapsible)||
36107(this._trigger("beforeActivate",event,eventData)===false)){
36108return;
36109}
36110options.active=collapsing?false:this.tabs.index(tab);
36111this.active=clickedIsActive?$():tab;
36112if(this.xhr){
36113this.xhr.abort();
36114}
36115if(!toHide.length&&!toShow.length){
36116$.error("jQuery UI Tabs: Mismatching fragment identifier.");
36117}
36118if(toShow.length){
36119this.load(this.tabs.index(tab),event);
36120}
36121this._toggle(event,eventData);
36122},
36123_toggle:function(event,eventData){
36124var that=this,
36125toShow=eventData.newPanel,
36126toHide=eventData.oldPanel;
36127this.running=true;
36128function complete(){
36129that.running=false;
36130that._trigger("activate",event,eventData);
36131}
36132function show(){
36133that._addClass(eventData.newTab.closest("li"),"ui-tabs-active","ui-state-active");
36134if(toShow.length&&that.options.show){
36135that._show(toShow,that.options.show,complete);
36136}else{
36137toShow.show();
36138complete();
36139}
36140}
36141if(toHide.length&&this.options.hide){
36142this._hide(toHide,this.options.hide,function(){
36143that._removeClass(eventData.oldTab.closest("li"),
36144"ui-tabs-active","ui-state-active");
36145show();
36146});
36147}else{
36148this._removeClass(eventData.oldTab.closest("li"),
36149"ui-tabs-active","ui-state-active");
36150toHide.hide();
36151show();
36152}
36153toHide.attr("aria-hidden","true");
36154eventData.oldTab.attr({
36155"aria-selected":"false",
36156"aria-expanded":"false"
36157});
36158if(toShow.length&&toHide.length){
36159eventData.oldTab.attr("tabIndex",-1);
36160}else if(toShow.length){
36161this.tabs.filter(function(){
36162return $(this).attr("tabIndex")===0;
36163})
36164.attr("tabIndex",-1);
36165}
36166toShow.attr("aria-hidden","false");
36167eventData.newTab.attr({
36168"aria-selected":"true",
36169"aria-expanded":"true",
36170tabIndex:0
36171});
36172},
36173_activate:function(index){
36174var anchor,
36175active=this._findActive(index);
36176if(active[0]===this.active[0]){
36177return;
36178}
36179if(!active.length){
36180active=this.active;
36181}
36182anchor=active.find(".ui-tabs-anchor")[0];
36183this._eventHandler({
36184target:anchor,
36185currentTarget:anchor,
36186preventDefault:$.noop
36187});
36188},
36189_findActive:function(index){
36190return index===false?$():this.tabs.eq(index);
36191},
36192_getIndex:function(index){
36193if(typeof index==="string"){
36194index=this.anchors.index(this.anchors.filter("[href$='"+
36195$.escapeSelector(index)+"']"));
36196}
36197return index;
36198},
36199_destroy:function(){
36200if(this.xhr){
36201this.xhr.abort();
36202}
36203this.tablist
36204.removeAttr("role")
36205.off(this.eventNamespace);
36206this.anchors
36207.removeAttr("role tabIndex")
36208.removeUniqueId();
36209this.tabs.add(this.panels).each(function(){
36210if($.data(this,"ui-tabs-destroy")){
36211$(this).remove();
36212}else{
36213$(this).removeAttr("role tabIndex "+
36214"aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded");
36215}
36216});
36217this.tabs.each(function(){
36218var li=$(this),
36219prev=li.data("ui-tabs-aria-controls");
36220if(prev){
36221li
36222.attr("aria-controls",prev)
36223.removeData("ui-tabs-aria-controls");
36224}else{
36225li.removeAttr("aria-controls");
36226}
36227});
36228this.panels.show();
36229if(this.options.heightStyle!=="content"){
36230this.panels.css("height","");
36231}
36232},
36233enable:function(index){
36234var disabled=this.options.disabled;
36235if(disabled===false){
36236return;
36237}
36238if(index===undefined){
36239disabled=false;
36240}else{
36241index=this._getIndex(index);
36242if(Array.isArray(disabled)){
36243disabled=$.map(disabled,function(num){
36244return num!==index?num:null;
36245});
36246}else{
36247disabled=$.map(this.tabs,function(li,num){
36248return num!==index?num:null;
36249});
36250}
36251}
36252this._setOptionDisabled(disabled);
36253},
36254disable:function(index){
36255var disabled=this.options.disabled;
36256if(disabled===true){
36257return;
36258}
36259if(index===undefined){
36260disabled=true;
36261}else{
36262index=this._getIndex(index);
36263if($.inArray(index,disabled)!==-1){
36264return;
36265}
36266if(Array.isArray(disabled)){
36267disabled=$.merge([index],disabled).sort();
36268}else{
36269disabled=[index];
36270}
36271}
36272this._setOptionDisabled(disabled);
36273},
36274load:function(index,event){
36275index=this._getIndex(index);
36276var that=this,
36277tab=this.tabs.eq(index),
36278anchor=tab.find(".ui-tabs-anchor"),
36279panel=this._getPanelForTab(tab),
36280eventData={
36281tab:tab,
36282panel:panel
36283},
36284complete=function(jqXHR,status){
36285if(status==="abort"){
36286that.panels.stop(false,true);
36287}
36288that._removeClass(tab,"ui-tabs-loading");
36289panel.removeAttr("aria-busy");
36290if(jqXHR===that.xhr){
36291delete that.xhr;
36292}
36293};
36294if(this._isLocal(anchor[0])){
36295return;
36296}
36297this.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));
36298if(this.xhr&&this.xhr.statusText!=="canceled"){
36299this._addClass(tab,"ui-tabs-loading");
36300panel.attr("aria-busy","true");
36301this.xhr
36302.done(function(response,status,jqXHR){
36303setTimeout(function(){
36304panel.html(response);
36305that._trigger("load",event,eventData);
36306complete(jqXHR,status);
36307},1);
36308})
36309.fail(function(jqXHR,status){
36310setTimeout(function(){
36311complete(jqXHR,status);
36312},1);
36313});
36314}
36315},
36316_ajaxSettings:function(anchor,event,eventData){
36317var that=this;
36318return{
36319url:anchor.attr("href").replace(/#.*$/,""),
36320beforeSend:function(jqXHR,settings){
36321return that._trigger("beforeLoad",event,
36322$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData));
36323}
36324};
36325},
36326_getPanelForTab:function(tab){
36327var id=$(tab).attr("aria-controls");
36328return this.element.find(this._sanitizeSelector("#"+id));
36329}
36330});
36331if($.uiBackCompat!==false){
36332$.widget("ui.tabs",$.ui.tabs,{
36333_processTabs:function(){
36334this._superApply(arguments);
36335this._addClass(this.tabs,"ui-tab");
36336}
36337});
36338}
36339var widgetsTabs=$.ui.tabs;
36340$.widget("ui.tooltip",{
36341version:"1.13.2",
36342options:{
36343classes:{
36344"ui-tooltip":"ui-corner-all ui-widget-shadow"
36345},
36346content:function(){
36347var title=$(this).attr("title");
36348return $("<a>").text(title).html();
36349},
36350hide:true,
36351items:"[title]:not([disabled])",
36352position:{
36353my:"left top+15",
36354at:"left bottom",
36355collision:"flipfit flip"
36356},
36357show:true,
36358track:false,
36359close:null,
36360open:null
36361},
36362_addDescribedBy:function(elem,id){
36363var describedby=(elem.attr("aria-describedby")||"").split(/\s+/);
36364describedby.push(id);
36365elem
36366.data("ui-tooltip-id",id)
36367.attr("aria-describedby",String.prototype.trim.call(describedby.join(" ")));
36368},
36369_removeDescribedBy:function(elem){
36370var id=elem.data("ui-tooltip-id"),
36371describedby=(elem.attr("aria-describedby")||"").split(/\s+/),
36372index=$.inArray(id,describedby);
36373if(index!==-1){
36374describedby.splice(index,1);
36375}
36376elem.removeData("ui-tooltip-id");
36377describedby=String.prototype.trim.call(describedby.join(" "));
36378if(describedby){
36379elem.attr("aria-describedby",describedby);
36380}else{
36381elem.removeAttr("aria-describedby");
36382}
36383},
36384_create:function(){
36385this._on({
36386mouseover:"open",
36387focusin:"open"
36388});
36389this.tooltips={};
36390this.parents={};
36391this.liveRegion=$("<div>")
36392.attr({
36393role:"log",
36394"aria-live":"assertive",
36395"aria-relevant":"additions"
36396})
36397.appendTo(this.document[0].body);
36398this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");
36399this.disabledTitles=$([]);
36400},
36401_setOption:function(key,value){
36402var that=this;
36403this._super(key,value);
36404if(key==="content"){
36405$.each(this.tooltips,function(id,tooltipData){
36406that._updateContent(tooltipData.element);
36407});
36408}
36409},
36410_setOptionDisabled:function(value){
36411this[value?"_disable":"_enable"]();
36412},
36413_disable:function(){
36414var that=this;
36415$.each(this.tooltips,function(id,tooltipData){
36416var event=$.Event("blur");
36417event.target=event.currentTarget=tooltipData.element[0];
36418that.close(event,true);
36419});
36420this.disabledTitles=this.disabledTitles.add(
36421this.element.find(this.options.items).addBack()
36422.filter(function(){
36423var element=$(this);
36424if(element.is("[title]")){
36425return element
36426.data("ui-tooltip-title",element.attr("title"))
36427.removeAttr("title");
36428}
36429})
36430);
36431},
36432_enable:function(){
36433this.disabledTitles.each(function(){
36434var element=$(this);
36435if(element.data("ui-tooltip-title")){
36436element.attr("title",element.data("ui-tooltip-title"));
36437}
36438});
36439this.disabledTitles=$([]);
36440},
36441open:function(event){
36442var that=this,
36443target=$(event?event.target:this.element)
36444.closest(this.options.items);
36445if(!target.length||target.data("ui-tooltip-id")){
36446return;
36447}
36448if(target.attr("title")){
36449target.data("ui-tooltip-title",target.attr("title"));
36450}
36451target.data("ui-tooltip-open",true);
36452if(event&&event.type==="mouseover"){
36453target.parents().each(function(){
36454var parent=$(this),
36455blurEvent;
36456if(parent.data("ui-tooltip-open")){
36457blurEvent=$.Event("blur");
36458blurEvent.target=blurEvent.currentTarget=this;
36459that.close(blurEvent,true);
36460}
36461if(parent.attr("title")){
36462parent.uniqueId();
36463that.parents[this.id]={
36464element:this,
36465title:parent.attr("title")
36466};
36467parent.attr("title","");
36468}
36469});
36470}
36471this._registerCloseHandlers(event,target);
36472this._updateContent(target,event);
36473},
36474_updateContent:function(target,event){
36475var content,
36476contentOption=this.options.content,
36477that=this,
36478eventType=event?event.type:null;
36479if(typeof contentOption==="string"||contentOption.nodeType||
36480contentOption.jquery){
36481return this._open(event,target,contentOption);
36482}
36483content=contentOption.call(target[0],function(response){
36484that._delay(function(){
36485if(!target.data("ui-tooltip-open")){
36486return;
36487}
36488if(event){
36489event.type=eventType;
36490}
36491this._open(event,target,response);
36492});
36493});
36494if(content){
36495this._open(event,target,content);
36496}
36497},
36498_open:function(event,target,content){
36499var tooltipData,tooltip,delayedShow,a11yContent,
36500positionOption=$.extend({},this.options.position);
36501if(!content){
36502return;
36503}
36504tooltipData=this._find(target);
36505if(tooltipData){
36506tooltipData.tooltip.find(".ui-tooltip-content").html(content);
36507return;
36508}
36509if(target.is("[title]")){
36510if(event&&event.type==="mouseover"){
36511target.attr("title","");
36512}else{
36513target.removeAttr("title");
36514}
36515}
36516tooltipData=this._tooltip(target);
36517tooltip=tooltipData.tooltip;
36518this._addDescribedBy(target,tooltip.attr("id"));
36519tooltip.find(".ui-tooltip-content").html(content);
36520this.liveRegion.children().hide();
36521a11yContent=$("<div>").html(tooltip.find(".ui-tooltip-content").html());
36522a11yContent.removeAttr("name").find("[name]").removeAttr("name");
36523a11yContent.removeAttr("id").find("[id]").removeAttr("id");
36524a11yContent.appendTo(this.liveRegion);
36525function position(event){
36526positionOption.of=event;
36527if(tooltip.is(":hidden")){
36528return;
36529}
36530tooltip.position(positionOption);
36531}
36532if(this.options.track&&event&&/^mouse/.test(event.type)){
36533this._on(this.document,{
36534mousemove:position
36535});
36536position(event);
36537}else{
36538tooltip.position($.extend({
36539of:target
36540},this.options.position));
36541}
36542tooltip.hide();
36543this._show(tooltip,this.options.show);
36544if(this.options.track&&this.options.show&&this.options.show.delay){
36545delayedShow=this.delayedShow=setInterval(function(){
36546if(tooltip.is(":visible")){
36547position(positionOption.of);
36548clearInterval(delayedShow);
36549}
36550},13);
36551}
36552this._trigger("open",event,{tooltip:tooltip});
36553},
36554_registerCloseHandlers:function(event,target){
36555var events={
36556keyup:function(event){
36557if(event.keyCode===$.ui.keyCode.ESCAPE){
36558var fakeEvent=$.Event(event);
36559fakeEvent.currentTarget=target[0];
36560this.close(fakeEvent,true);
36561}
36562}
36563};
36564if(target[0]!==this.element[0]){
36565events.remove=function(){
36566var targetElement=this._find(target);
36567if(targetElement){
36568this._removeTooltip(targetElement.tooltip);
36569}
36570};
36571}
36572if(!event||event.type==="mouseover"){
36573events.mouseleave="close";
36574}
36575if(!event||event.type==="focusin"){
36576events.focusout="close";
36577}
36578this._on(true,target,events);
36579},
36580close:function(event){
36581var tooltip,
36582that=this,
36583target=$(event?event.currentTarget:this.element),
36584tooltipData=this._find(target);
36585if(!tooltipData){
36586target.removeData("ui-tooltip-open");
36587return;
36588}
36589tooltip=tooltipData.tooltip;
36590if(tooltipData.closing){
36591return;
36592}
36593clearInterval(this.delayedShow);
36594if(target.data("ui-tooltip-title")&&!target.attr("title")){
36595target.attr("title",target.data("ui-tooltip-title"));
36596}
36597this._removeDescribedBy(target);
36598tooltipData.hiding=true;
36599tooltip.stop(true);
36600this._hide(tooltip,this.options.hide,function(){
36601that._removeTooltip($(this));
36602});
36603target.removeData("ui-tooltip-open");
36604this._off(target,"mouseleave focusout keyup");
36605if(target[0]!==this.element[0]){
36606this._off(target,"remove");
36607}
36608this._off(this.document,"mousemove");
36609if(event&&event.type==="mouseleave"){
36610$.each(this.parents,function(id,parent){
36611$(parent.element).attr("title",parent.title);
36612delete that.parents[id];
36613});
36614}
36615tooltipData.closing=true;
36616this._trigger("close",event,{tooltip:tooltip});
36617if(!tooltipData.hiding){
36618tooltipData.closing=false;
36619}
36620},
36621_tooltip:function(element){
36622var tooltip=$("<div>").attr("role","tooltip"),
36623content=$("<div>").appendTo(tooltip),
36624id=tooltip.uniqueId().attr("id");
36625this._addClass(content,"ui-tooltip-content");
36626this._addClass(tooltip,"ui-tooltip","ui-widget ui-widget-content");
36627tooltip.appendTo(this._appendTo(element));
36628return this.tooltips[id]={
36629element:element,
36630tooltip:tooltip
36631};
36632},
36633_find:function(target){
36634var id=target.data("ui-tooltip-id");
36635return id?this.tooltips[id]:null;
36636},
36637_removeTooltip:function(tooltip){
36638clearInterval(this.delayedShow);
36639tooltip.remove();
36640delete this.tooltips[tooltip.attr("id")];
36641},
36642_appendTo:function(target){
36643var element=target.closest(".ui-front, dialog");
36644if(!element.length){
36645element=this.document[0].body;
36646}
36647return element;
36648},
36649_destroy:function(){
36650var that=this;
36651$.each(this.tooltips,function(id,tooltipData){
36652var event=$.Event("blur"),
36653element=tooltipData.element;
36654event.target=event.currentTarget=element[0];
36655that.close(event,true);
36656$("#"+id).remove();
36657if(element.data("ui-tooltip-title")){
36658if(!element.attr("title")){
36659element.attr("title",element.data("ui-tooltip-title"));
36660}
36661element.removeData("ui-tooltip-title");
36662}
36663});
36664this.liveRegion.remove();
36665}
36666});
36667if($.uiBackCompat!==false){
36668$.widget("ui.tooltip",$.ui.tooltip,{
36669options:{
36670tooltipClass:null
36671},
36672_tooltip:function(){
36673var tooltipData=this._superApply(arguments);
36674if(this.options.tooltipClass){
36675tooltipData.tooltip.addClass(this.options.tooltipClass);
36676}
36677return tooltipData;
36678}
36679});
36680}
36681var widgetsTooltip=$.ui.tooltip;
36682});
36683(function(factory){
36684if(typeof define==="function"&&define.amd){
36685define(["../widgets/datepicker"],factory);
36686}else{
36687factory(jQuery.datepicker);
36688}
36689}(function(datepicker){
36690datepicker.regional.de={
36691closeText:"Schließen",
36692prevText:"Zurück",
36693nextText:"Vor",
36694currentText:"Heute",
36695monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],
36696monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],
36697dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],
36698dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],
36699dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],
36700weekHeader:"KW",
36701dateFormat:"dd.mm.yy",
36702firstDay:1,
36703isRTL:false,
36704showMonthAfterYear:false,
36705yearSuffix:""};
36706datepicker.setDefaults(datepicker.regional.de);
36707return datepicker.regional.de;
36708}));
36709!function(a,b){var c={},d={};!function(a,b){function c(a){if("number"==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}function d(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=x}function e(){return a.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function f(b,c,e){var f=new d;return c&&(f.fill="both",f.duration="auto"),"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof f[c]||"duration"==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==v.indexOf(b[c]))return;if("direction"==c&&-1==w.indexOf(b[c]))return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;f[c]=b[c]}}):f.duration=b,f}
vendor: 5,896 bytes, line 36709
36709function g(a){return"number"==typeof a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function h(b,c){return b=a.numericTimingToObject(b),f(b,c)}function i(a,b,c,d){return a<0||a>1||c<0||c>1?x:function(e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(e<=0){var g=0;return a>0?g=b/a:!b&&c>0&&(g=d/c),g*e}if(e>=1){var h=0;return c<1?h=(d-1)/(c-1):1==c&&a<1&&(h=(b-1)/(a-1)),1+h*(e-1)}for(var i=0,j=1;i<j;){var k=(i+j)/2,l=f(a,c,k);if(Math.abs(e-l)<1e-5)return f(b,d,k);l<e?i=k:j=k}return f(b,d,k)}}function j(a,b){return function(c){if(c>=1)return 1;var d=1/a;return(c+=b*d)-c%d}}function k(a){C||(C=document.createElement("div").style),C.animationTimingFunction="",C.animationTimingFunction=a;var b=C.animationTimingFunction;if(""==b&&e())throw new TypeError(a+" is not a valid value for easing");return b}function l(a){if("linear"==a)return x;var b=E.exec(a);if(b)return i.apply(this,b.slice(1).map(Number));var c=F.exec(a);return c?j(Number(c[1]),{start:y,middle:z,end:A}[c[2]]):B[a]||x}function m(a){return Math.abs(n(a)/a.playbackRate)}function n(a){return 0===a.duration||0===a.iterations?0:a.duration*a.iterations}function o(a,b,c){if(null==b)return G;var d=c.delay+a+c.endDelay;return b<Math.min(c.delay,d)?H:b>=Math.min(c.delay+a,d)?I:J}function p(a,b,c,d,e){switch(d){case H:return"backwards"==b||"both"==b?0:null;case J:return c-e;case I:return"forwards"==b||"both"==b?a:null;case G:return null}}function q(a,b,c,d,e){var f=e;return 0===a?b!==H&&(f+=c):f+=d/a,f}function r(a,b,c,d,e,f){var g=a===1/0?b%1:a%1;return 0!==g||c!==I||0===d||0===e&&0!==f||(g=1),g}function s(a,b,c,d){return a===I&&b===1/0?1/0:1===c?Math.floor(d)-1:Math.floor(d)}function t(a,b,c){var d=a;if("normal"!==a&&"reverse"!==a){var e=b;"alternate-reverse"===a&&(e+=1),d="normal",e!==1/0&&e%2!=0&&(d="reverse")}return"normal"===d?c:1-c}function u(a,b,c){var d=o(a,b,c),e=p(a,c.fill,b,d,c.delay);if(null===e)return null;var f=q(c.duration,d,c.iterations,e,c.iterationStart),g=r(f,c.iterationStart,d,c.iterations,e,c.duration),h=s(d,c.iterations,g,f),i=t(c.direction,h,g);return c._easingFunction(i)}var v="backwards|forwards|both|none".split("|"),w="reverse|alternate|alternate-reverse".split("|"),x=function(a){return a};d.prototype={_setMember:function(b,c){this["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this._effect._timing=a.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=a.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(a){this._setMember("delay",a)},get delay(){return this._delay},set endDelay(a){this._setMember("endDelay",a)},get endDelay(){return this._endDelay},set fill(a){this._setMember("fill",a)},get fill(){return this._fill},set iterationStart(a){if((isNaN(a)||a<0)&&e())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",a)},get iterationStart(){return this._iterationStart},set duration(a){if("auto"!=a&&(isNaN(a)||a<0)&&e())throw new TypeError("duration must be non-negative or auto, received: "+a);this._setMember("duration",a)},get duration(){return this._duration},set direction(a){this._setMember("direction",a)},get direction(){return this._direction},set easing(a){this._easingFunction=l(k(a)),this._setMember("easing",a)},get easing(){return this._easing},set iterations(a){if((isNaN(a)||a<0)&&e())throw new TypeError("iterations must be non-negative, received: "+a);this._setMember("iterations",a)},get iterations(){return this._iterations}};var y=1,z=.5,A=0,B={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":j(1,y),"step-middle":j(1,z),"step-end":j(1,A)},C=null,D="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",E=new RegExp("cubic-bezier\\("+D+","+D+","+D+","+D+"\\)"),F=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,G=0,H=1,I=2,J=3;a.cloneTimingInput=c,a.makeTiming=f,a.numericTimingToObject=g,a.normalizeTimingInput=h,a.calculateActiveDuration=m,a.calculateIterationProgress=u,a.calculatePhase=o,a.normalizeEasing=k,a.parseEasingFunction=l}(c),function(a,b){function c(a,b){return a in k?k[a][b]||b:b}function d(a){return"display"===a||0===a.lastIndexOf("animation",0)||0===a.lastIndexOf("transition",0)}function e(a,b,e){if(!d(a)){var f=h[a];if(f){i.style[a]=b;for(var g in f){var j=f[g],k=i.style[j];e[j]=c(j,k)}}else e[a]=c(a,b)}}function f(a){var b=[];for(var c in a)if(!(c in["easing","offset","composite"])){var d=a[c];Array.isArray(d)||(d=[d]);for(var e,f=d.length,g=0;g<f;g++)e={},e.offset="offset"in a?a.offset:1==f?1:g/(f-1),"easing"in a&&(e.easing=a.easing),"composite"in a&&(e.composite=a.composite),e[c]=d[g],b.push(e)}return b.sort(function(a,b){return a.offset-b.offset}),b}function g(b){function c(){var a=d.length;null==d[a-1].offset&&(d[a-1].offset=1),a>1&&null==d[0].offset&&(d[0].offset=0);for(var b=0,c=d[0].offset,e=1;e<a;e++){var f=d[e].offset;if(null!=f){for(var g=1;g<e-b;g++)d[b+g].offset=c+(f-c)*g/(e-b);b=e,c=f}}}if(null==b)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator]&&(b=Array.from(b)),Array.isArray(b)||(b=f(b));for(var d=b.map(function(b){var c={};for(var d in b){var f=b[d];if("offset"==d){if(null!=f){if(f=Number(f),!isFinite(f))throw new TypeError("Keyframe offsets must be numbers.");if(f<0||f>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==d){if("add"==f||"accumulate"==f)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=f)throw new TypeError("Invalid composite mode "+f+".")}else f="easing"==d?a.normalizeEasing(f):""+f;e(d,f,c)}return void 0==c.offset&&(c.offset=null),void 0==c.easing&&(c.easing="linear"),c}),g=!0,h=-1/0,i=0;i<d.length;i++){var j=d[i].offset;
vendor: 24,837 bytes, line 36709
36709if(null!=j){if(j<h)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");h=j}else g=!1}return d=d.filter(function(a){return a.offset>=0&&a.offset<=1}),g||c(),d}var h={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},i=document.createElementNS("http://www.w3.org/1999/xhtml","div"),j={thin:"1px",medium:"3px",thick:"5px"},k={borderBottomWidth:j,borderLeftWidth:j,borderRightWidth:j,borderTopWidth:j,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:j,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.convertToArrayForm=f,a.normalizeKeyframes=g}(c),function(a){var b={};a.isDeprecated=function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth(h.getMonth()+3),!(g<h&&(a in b||console.warn("Web Animations: "+a+" "+f+" deprecated and will stop working on "+h.toDateString()+". "+d),b[a]=!0,1))},a.deprecated=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Error(b+" "+f+" no longer supported. "+d)}}(c),function(){if(document.documentElement.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b,c){function d(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easing"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!=g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return b}function e(c){var d=[];for(var e in c)for(var f=c[e],g=0;g<f.length-1;g++){var h=g,i=g+1,j=f[h].offset,k=f[i].offset,l=j,m=k;0==g&&(l=-1/0,0==k&&(i=h)),g==f.length-2&&(m=1/0,1==j&&(h=i)),d.push({applyFrom:l,applyTo:m,startOffset:f[h].offset,endOffset:f[i].offset,easingFunction:a.parseEasingFunction(f[h].easing),property:e,interpolation:b.propertyInterpolation(e,f[h].value,f[i].value)})}return d.sort(function(a,b){return a.startOffset-b.startOffset}),d}b.convertEffectInput=function(c){var f=a.normalizeKeyframes(c),g=d(f),h=e(g);return function(a,c){if(null!=c)h.filter(function(a){return c>=a.applyFrom&&c<a.applyTo}).forEach(function(d){var e=c-d.startOffset,f=d.endOffset-d.startOffset,g=0==f?0:d.easingFunction(e/f);b.apply(a,d.property,d.interpolation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clear(a,d)}}}(c,d),function(a,b,c){function d(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function e(a,b,c){h[c]=h[c]||[],h[c].push([a,b])}function f(a,b,c){for(var f=0;f<c.length;f++){e(a,b,d(c[f]))}}function g(c,e,f){var g=c;/-/.test(c)&&!a.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(g=d(c)),"initial"!=e&&"initial"!=f||("initial"==e&&(e=i[g]),"initial"==f&&(f=i[g]));for(var j=e==f?[]:h[g],k=0;j&&k<j.length;k++){var l=j[k][0](e),m=j[k][0](f);if(void 0!==l&&void 0!==m){var n=j[k][1](l,m);if(n){var o=b.Interpolation.apply(null,n);return function(a){return 0==a?e:1==a?f:o(a)}}}}return b.Interpolation(!1,!0,function(a){return a?f:e})}var h={};b.addPropertiesHandler=f;var i={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};b.propertyInterpolation=g}(c,d),function(a,b,c){function d(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calculateIterationProgress(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d}b.KeyframeEffect=function(c,e,f,g){var h,i=d(a.normalizeTimingInput(f)),j=b.convertEffectInput(e),k=function(){j(c,h)};return k._update=function(a){return null!==(h=i(a))},k._clear=function(){j(c,null)},k._hasSameTarget=function(a){return c===a},k._target=c,k._totalDuration=i._totalDuration,k._id=g,k}}(c,d),function(a,b){function c(a,b){return!(!b.namespaceURI||-1==b.namespaceURI.indexOf("/svg"))&&(g in a||(a[g]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(a.navigator.userAgent)),a[g])}function d(a,b,c){c.enumerable=!0,c.configurable=!0,Object.defineProperty(a,b,c)}function e(a){this._element=a,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=a.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=c(window,a),this._savedTransformAttr=null;for(var b=0;b<this._style.length;b++){var d=this._style[b];this._surrogateStyle[d]=this._style[d]}this._updateIndices()}function f(a){if(!a._webAnimationsPatchedStyle){var b=new e(a);try{d(a,"style",{get:function(){return b}})}catch(b){a.style._set=function(b,c){a.style[b]=c},a.style._clear=function(b){a.style[b]=""}}a._webAnimationsPatchedStyle=a.style}}var g="_webAnimationsUpdateSvgTransformAttr",h={cssText:1,length:1,parentRule:1},i={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},j={removeProperty:1,setProperty:1};e.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(a){for(var b={},c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;this._surrogateStyle.cssText=a,this._updateIndices();for(var c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;for(var d in b)this._isAnimatedProperty[d]||this._style.setProperty(d,this._surrogateStyle.getPropertyValue(d))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(a){return function(){return this._surrogateStyle[a]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(b,c){this._style[b]=c,this._isAnimatedProperty[b]=!0,this._updateSvgTransformAttr&&"transform"==a.unprefixedPropertyName(b)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",a.transformToSvgMatrix(c)))},_clear:function(b){this._style[b]=this._surrogateStyle[b],this._updateSvgTransformAttr&&"transform"==a.unprefixedPropertyName(b)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[b]}};for(var k in i)e.prototype[k]=function(a,b){return function(){var c=this._surrogateStyle[a].apply(this._surrogateStyle,arguments);return b&&(this._isAnimatedProperty[arguments[0]]||this._style[a].apply(this._style,arguments),this._updateIndices()),c}}(k,k in j);for(var l in document.documentElement.style)l in h||l in i||function(a){d(e.prototype,a,{get:function(){return this._surrogateStyle[a]},set:function(b){this._surrogateStyle[a]=b,this._updateIndices(),this._isAnimatedProperty[a]||(this._style[a]=b)}})}(l);a.apply=function(b,c,d){f(b),b.style._set(a.propertyName(c),d)},a.clear=function(b,c){b._webAnimationsPatchedStyle&&b.style._clear(a.propertyName(c))}}(d),function(a){window.Element.prototype.animate=function(b,c){var d="";return c&&c.id&&(d=c.id),a.timeline._play(a.KeyframeEffect(this,b,c,d))}}(d),function(a,b){function c(a,b,d){if("number"==typeof a&&"number"==typeof b)return a*(1-d)+b*d;if("boolean"==typeof a&&"boolean"==typeof b)return d<.5?a:b;if(a.length==b.length){for(var e=[],f=0;f<a.length;f++)e.push(c(a[f],b[f],d));return e}throw"Mismatched interpolation arguments "+a+":"+b}a.Interpolation=function(a,b,d){return function(e){return d(c(a,b,e))}}}(d),function(a,b){function c(a,b,c){return Math.max(Math.min(a,c),b)}function d(b,d,e){var f=a.dot(b,d);f=c(f,-1,1);var g=[];if(1===f)g=b;else for(var h=Math.acos(f),i=1*Math.sin(e*h)/Math.sqrt(1-f*f),j=0;j<4;j++)g.push(b[j]*(Math.cos(e*h)-f*i)+d[j]*i);return g}var e=function(){function a(a,b){for(var c=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],d=0;d<4;d++)for(var e=0;e<4;e++)for(var f=0;f<4;f++)c[d][e]+=b[d][f]*a[f][e];return c}function b(a){return 0==a[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]}function c(c,d,e,f,g){for(var h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],i=0;i<4;i++)h[i][3]=g[i];for(var i=0;i<3;i++)for(var j=0;j<3;j++)h[3][i]+=c[j]*h[j][i];var k=f[0],l=f[1],m=f[2],n=f[3],o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[0][0]=1-2*(l*l+m*m),o[0][1]=2*(k*l-m*n),o[0][2]=2*(k*m+l*n),o[1][0]=2*(k*l+m*n),o[1][1]=1-2*(k*k+m*m),o[1][2]=2*(l*m-k*n),o[2][0]=2*(k*m-l*n),o[2][1]=2*(l*m+k*n),o[2][2]=1-2*(k*k+l*l),h=a(h,o);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];e[2]&&(p[2][1]=e[2],h=a(h,p)),e[1]&&(p[2][1]=0,p[2][0]=e[0],h=a(h,p)),e[0]&&(p[2][0]=0,p[1][0]=e[0],h=a(h,p));for(var i=0;i<3;i++)for(var j=0;j<3;j++)h[i][j]*=d[i];return b(h)?[h[0][0],h[0][1],h[1][0],h[1][1],h[3][0],h[3][1]]:h[0].concat(h[1],h[2],h[3])}return c}();a.composeMatrix=e,a.quat=d}(d),function(a,b,c){a.sequenceNumber=0;var d=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};b.Animation=function(b){this.id="",b&&b._id&&(this.id=b._id),this._sequenceNumber=a.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=b,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},b.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,b.timeline._animations.push(this))},_tickCurrentTime:function(a,b){a!=this._currentTime&&(this._currentTime=a,this._isFinished&&!b&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(a){a=+a,isNaN(a)||(b.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-a/this._playbackRate),this._currentTimePending=!1,this._currentTime!=a&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(a,!0),b.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(a){a=+a,isNaN(a)||this._paused||this._idle||(this._startTime=a,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),b.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._playbackRate){var c=this.currentTime;this._playbackRate=a,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtiedAnimation(this)),null!=c&&(this.currentTime=c)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,b.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),b.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){"function"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},removeEventListener:function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){if(this._isFinished){if(!this._finishedFlag){var b=new d(this,this._currentTime,a),c=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){c.forEach(function(a){a.call(b.target,b)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(a,b){this._idle||this._paused||(null==this._startTime?b&&(this.startTime=a-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((a-this._startTime)*this.playbackRate)),b&&(this._currentTimePending=!1,this._fireEvents(a))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var a=this._effect._target;return a._activeAnimations||(a._activeAnimations=[]),a._activeAnimations},_markTarget:function(){var a=this._targetAnimations();-1===a.indexOf(this)&&a.push(this)},_unmarkTarget:function(){var a=this._targetAnimations(),b=a.indexOf(this);-1!==b&&a.splice(b,1)}}}(c,d),function(a,b,c){function d(a){var b=j;j=[],a<q.currentTime&&(a=q.currentTime),q._animations.sort(e),q._animations=h(a,!0,q._animations)[0],b.forEach(function(b){b[1](a)}),g(),l=void 0}function e(a,b){return a._sequenceNumber-b._sequenceNumber}function f(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function g(){o.forEach(function(a){a()}),o.length=0}function h(a,c,d){p=!0,n=!1,b.timeline.currentTime=a,m=!1;var e=[],f=[],g=[],h=[];return d.forEach(function(b){b._tick(a,c),b._inEffect?(f.push(b._effect),b._markTarget()):(e.push(b._effect),b._unmarkTarget()),b._needsTick&&(m=!0);var d=b._inEffect||b._needsTick;b._inTimeline=d,d?g.push(b):h.push(b)}),o.push.apply(o,e),o.push.apply(o,f),m&&requestAnimationFrame(function(){}),p=!1,[g,h]}var i=window.requestAnimationFrame,j=[],k=0;window.requestAnimationFrame=function(a){var b=k++;return 0==j.length&&i(d),j.push([b,a]),b},window.cancelAnimationFrame=function(a){j.forEach(function(b){b[0]==a&&(b[1]=function(){})})},f.prototype={_play:function(c){c._timing=a.normalizeTimingInput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timeline=this,this._animations.push(d),b.restart(),b.applyDirtiedAnimation(d),d}};var l=void 0,m=!1,n=!1;b.restart=function(){return m||(m=!0,requestAnimationFrame(function(){}),n=!0),n},b.applyDirtiedAnimation=function(a){if(!p){a._markTarget();var c=a._targetAnimations();c.sort(e),h(b.timeline.currentTime,!1,c.slice())[1].forEach(function(a){var b=q._animations.indexOf(a);-1!==b&&q._animations.splice(b,1)}),g()}};var o=[],p=!1,q=new f;b.timeline=q}(c,d),function(a,b){function c(a,b){for(var c=0,d=0;d<a.length;d++)c+=a[d]*b[d];return c}function d(a,b){return[a[0]*b[0]+a[4]*b[1]+a[8]*b[2]+a[12]*b[3],a[1]*b[0]+a[5]*b[1]+a[9]*b[2]+a[13]*b[3],a[2]*b[0]+a[6]*b[1]+a[10]*b[2]+a[14]*b[3],a[3]*b[0]+a[7]*b[1]+a[11]*b[2]+a[15]*b[3],a[0]*b[4]+a[4]*b[5]+a[8]*b[6]+a[12]*b[7],a[1]*b[4]+a[5]*b[5]+a[9]*b[6]+a[13]*b[7],a[2]*b[4]+a[6]*b[5]+a[10]*b[6]+a[14]*b[7],a[3]*b[4]+a[7]*b[5]+a[11]*b[6]+a[15]*b[7],a[0]*b[8]+a[4]*b[9]+a[8]*b[10]+a[12]*b[11],a[1]*b[8]+a[5]*b[9]+a[9]*b[10]+a[13]*b[11],a[2]*b[8]+a[6]*b[9]+a[10]*b[10]+a[14]*b[11],a[3]*b[8]+a[7]*b[9]+a[11]*b[10]+a[15]*b[11],a[0]*b[12]+a[4]*b[13]+a[8]*b[14]+a[12]*b[15],a[1]*b[12]+a[5]*b[13]+a[9]*b[14]+a[13]*b[15],a[2]*b[12]+a[6]*b[13]+a[10]*b[14]+a[14]*b[15],a[3]*b[12]+a[7]*b[13]+a[11]*b[14]+a[15]*b[15]]}function e(a){var b=a.rad||0;return((a.deg||0)/360+(a.grad||0)/400+(a.turn||0))*(2*Math.PI)+b}function f(a){switch(a.t){case"rotatex":var b=e(a.d[0]);return[1,0,0,0,0,Math.cos(b),Math.sin(b),0,0,-Math.sin(b),Math.cos(b),0,0,0,0,1];case"rotatey":var b=e(a.d[0]);return[Math.cos(b),0,-Math.sin(b),0,0,1,0,0,Math.sin(b),0,Math.cos(b),0,0,0,0,1];case"rotate":case"rotatez":var b=e(a.d[0]);return[Math.cos(b),Math.sin(b),0,0,-Math.sin(b),Math.cos(b),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var c=a.d[0],d=a.d[1],f=a.d[2],b=e(a.d[3]),g=c*c+d*d+f*f;if(0===g)c=1,d=0,f=0;else if(1!==g){var h=Math.sqrt(g);c/=h,d/=h,f/=h}var i=Math.sin(b/2),j=i*Math.cos(b/2),k=i*i;return[1-2*(d*d+f*f)*k,2*(c*d*k+f*j),2*(c*f*k-d*j),0,2*(c*d*k-f*j),1-2*(c*c+f*f)*k,2*(d*f*k+c*j),0,2*(c*f*k+d*j),2*(d*f*k-c*j),1-2*(c*c+d*d)*k,0,0,0,0,1];case"scale":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[a.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,a.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,a.d[0],0,0,0,0,1];case"scale3d":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,a.d[2],0,0,0,0,1];case"skew":var l=e(a.d[0]),m=e(a.d[1]);return[1,Math.tan(m),0,0,Math.tan(l),1,0,0,0,0,1,0,0,0,0,1];case"skewx":var b=e(a.d[0]);return[1,0,0,0,Math.tan(b),1,0,0,0,0,1,0,0,0,0,1];case"skewy":var b=e(a.d[0]);return[1,Math.tan(b),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":var c=a.d[0].px||0,d=a.d[1].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,c,d,0,1];case"translatex":var c=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,c,0,0,1];case"translatey":var d=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,d,0,1];case"translatez":var f=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,f,1];case"translate3d":var c=a.d[0].px||0,d=a.d[1].px||0,f=a.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,c,d,f,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,a.d[0].px?-1/a.d[0].px:0,0,0,0,1];case"matrix":return[a.d[0],a.d[1],0,0,a.d[2],a.d[3],0,0,0,0,1,0,a.d[4],a.d[5],0,1];case"matrix3d":return a.d}}function g(a){return 0===a.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:a.map(f).reduce(d)}function h(a){return[i(g(a))]}var i=function(){function a(a){return a[0][0]*a[1][1]*a[2][2]+a[1][0]*a[2][1]*a[0][2]+a[2][0]*a[0][1]*a[1][2]-a[0][2]*a[1][1]*a[2][0]-a[1][2]*a[2][1]*a[0][0]-a[2][2]*a[0][1]*a[1][0]}function b(b){for(var c=1/a(b),d=b[0][0],e=b[0][1],f=b[0][2],g=b[1][0],h=b[1][1],i=b[1][2],j=b[2][0],k=b[2][1],l=b[2][2],m=[[(h*l-i*k)*c,(f*k-e*l)*c,(e*i-f*h)*c,0],[(i*j-g*l)*c,(d*l-f*j)*c,(f*g-d*i)*c,0],[(g*k-h*j)*c,(j*e-d*k)*c,(d*h-e*g)*c,0]],n=[],o=0;o<3;o++){for(var p=0,q=0;q<3;q++)p+=b[3][q]*m[q][o];n.push(p)}return n.push(1),m.push(n),m}function d(a){return[[a[0][0],a[1][0],a[2][0],a[3][0]],[a[0][1],a[1][1],a[2][1],a[3][1]],[a[0][2],a[1][2],a[2][2],a[3][2]],[a[0][3],a[1][3],a[2][3],a[3][3]]]}function e(a,b){for(var c=[],d=0;d<4;d++){for(var e=0,f=0;f<4;f++)e+=a[f]*b[f][d];c.push(e)}return c}function f(a){var b=g(a);return[a[0]/b,a[1]/b,a[2]/b]}function g(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2])}function h(a,b,c,d){return[c*a[0]+d*b[0],c*a[1]+d*b[1],c*a[2]+d*b[2]]}function i(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function j(j){var k=[j.slice(0,4),j.slice(4,8),j.slice(8,12),j.slice(12,16)];if(1!==k[3][3])return null;for(var l=[],m=0;m<4;m++)l.push(k[m].slice());for(var m=0;m<3;m++)l[m][3]=0;if(0===a(l))return null;var n,o=[];k[0][3]||k[1][3]||k[2][3]?(o.push(k[0][3]),o.push(k[1][3]),o.push(k[2][3]),o.push(k[3][3]),n=e(o,d(b(l)))):n=[0,0,0,1];var p=k[3].slice(0,3),q=[];q.push(k[0].slice(0,3));var r=[];r.push(g(q[0])),q[0]=f(q[0]);var s=[];q.push(k[1].slice(0,3)),s.push(c(q[0],q[1])),q[1]=h(q[1],q[0],1,-s[0]),r.push(g(q[1])),q[1]=f(q[1]),s[0]/=r[1],q.push(k[2].slice(0,3)),s.push(c(q[0],q[2])),q[2]=h(q[2],q[0],1,-s[1]),s.push(c(q[1],q[2])),q[2]=h(q[2],q[1],1,-s[2]),r.push(g(q[2])),q[2]=f(q[2]),s[1]/=r[2],s[2]/=r[2];var t=i(q[1],q[2]);if(c(q[0],t)<0)for(var m=0;m<3;m++)r[m]*=-1,q[m][0]*=-1,q[m][1]*=-1,q[m][2]*=-1;var u,v,w=q[0][0]+q[1][1]+q[2][2]+1;return w>1e-4?(u=.5/Math.sqrt(w),v=[(q[2][1]-q[1][2])*u,(q[0][2]-q[2][0])*u,(q[1][0]-q[0][1])*u,.25/u]):q[0][0]>q[1][1]&&q[0][0]>q[2][2]?(u=2*Math.sqrt(1+q[0][0]-q[1][1]-q[2][2]),v=[.25*u,(q[0][1]+q[1][0])/u,(q[0][2]+q[2][0])/u,(q[2][1]-q[1][2])/u]):q[1][1]>q[2][2]?(u=2*Math.sqrt(1+q[1][1]-q[0][0]-q[2][2]),v=[(q[0][1]+q[1][0])/u,.25*u,(q[1][2]+q[2][1])/u,(q[0][2]-q[2][0])/u]):(u=2*Math.sqrt(1+q[2][2]-q[0][0]-q[1][1]),v=[(q[0][2]+q[2][0])/u,(q[1][2]+q[2][1])/u,.25*u,(q[1][0]-q[0][1])/u]),[p,r,s,v,n]}return j}();a.dot=c,a.makeMatrixDecomposition=h,a.transformListToMatrix=g}(d),function(a){function b(a,b){var c=a.exec(b);if(c)return c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);if(c)return[c[0],c[1].replace(/^\s*/,"")]}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.push(g[0]),e=g[1],!(g=b(d,e))||""==g[1])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++)if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,c<=0))break;var e=a(b.substr(0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c&&d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function(c){return a(c)||[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrimmed(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}if(""==c)return d}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k=0;k<j;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g.push(l[0]),h.push(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(function(a,b){return i[b](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h=0;h<c.length;h++)if("function"==typeof c[h]){var i=c[h](a[g],b[g++]);d.push(i[0]),e.push(i[1]),f.push(i[2])}else!function(a){d.push(!1),e.push(!1),f.push(function(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+=f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a.consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRepeated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeList=k}(d),function(a){function b(b){function c(b){var c=a.consumeToken(/^inset/i,b);
vendor: 7,209 bytes, line 36709
36709if(c)return d.inset=!0,c;var c=a.consumeLengthOrPercent(b);if(c)return d.lengths.push(c[0]),c;var c=a.consumeColor(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,lengths:[],color:null},e=a.consumeRepeated(c,/^/,b);if(e&&e[0].length)return[d,e[1]]}function c(c){var d=a.consumeRepeated(b,/^,/,c);if(d&&""==d[1])return d[0]}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.length,c.lengths.length);)b.lengths.push({px:0});for(;c.lengths.length<Math.max(b.lengths.length,c.lengths.length);)c.lengths.push({px:0});if(b.inset==c.inset&&!!b.color==!!c.color){for(var d,e=[],f=[[],0],g=[[],0],h=0;h<b.lengths.length;h++){var i=a.mergeDimensions(b.lengths[h],c.lengths[h],2==h);f[0].push(i[0]),g[0].push(i[1]),e.push(i[2])}if(b.color&&c.color){var j=a.mergeColors(b.color,c.color);f[1]=j[0],g[1]=j[1],d=j[2]}return[f,g,function(a){for(var c=b.inset?"inset ":" ",f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";return d&&(c+=d(a[1])),c}]}}function e(b,c,d,e){function f(a){return{inset:a,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var g=[],h=[],i=0;i<d.length||i<e.length;i++){var j=d[i]||f(e[i].inset),k=e[i]||f(d[i].inset);g.push(j),h.push(k)}return a.mergeNestedRepeated(b,c,g,h)}var f=e.bind(null,d,", ");a.addPropertiesHandler(c,f,["box-shadow","text-shadow"])}(d),function(a,b){function c(a){return a.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function d(a,b,c){return Math.min(b,Math.max(a,c))}function e(a){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(a))return Number(a)}function f(a,b){return[a,b,c]}function g(a,b){if(0!=a)return i(0,1/0)(a,b)}function h(a,b){return[a,b,function(a){return Math.round(d(1,1/0,a))}]}function i(a,b){return function(e,f){return[e,f,function(e){return c(d(a,b,e))}]}}function j(a){var b=a.trim().split(/\s*[\s,]\s*/);if(0!==b.length){for(var c=[],d=0;d<b.length;d++){var f=e(b[d]);if(void 0===f)return;c.push(f)}return c}}function k(a,b){if(a.length==b.length)return[a,b,function(a){return a.map(c).join(" ")}]}function l(a,b){return[a,b,Math.round]}a.clamp=d,a.addPropertiesHandler(j,k,["stroke-dasharray"]),a.addPropertiesHandler(e,i(0,1/0),["border-image-width","line-height"]),a.addPropertiesHandler(e,i(0,1),["opacity","shape-image-threshold"]),a.addPropertiesHandler(e,g,["flex-grow","flex-shrink"]),a.addPropertiesHandler(e,h,["orphans","widows"]),a.addPropertiesHandler(e,l,["z-index"]),a.parseNumber=e,a.parseNumberList=j,a.mergeNumbers=f,a.numberToString=c}(d),function(a,b){function c(a,b){if("visible"==a||"visible"==b)return[0,1,function(c){return c<=0?a:c>=1?b:"visible"}]}a.addPropertiesHandler(String,c,["visibility"])}(d),function(a,b){function c(a){a=a.trim(),f.fillStyle="#000",f.fillStyle=a;var b=f.fillStyle;if(f.fillStyle="#fff",f.fillStyle=a,b==f.fillStyle){f.fillRect(0,0,1,1);var c=f.getImageData(0,0,1,1).data;f.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function d(b,c){return[b,c,function(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;d<3;d++)b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"rgba("+b.join(",")+")"}]}var e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");e.width=e.height=1;var f=e.getContext("2d");a.addPropertiesHandler(c,d,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),a.consumeColor=a.consumeParenthesised.bind(null,c),a.mergeColors=d}(d),function(a,b){function c(a){function b(){var b=h.exec(a);g=b?b[0]:void 0}function c(){var a=Number(g);return b(),a}function d(){if("("!==g)return c();b();var a=f();return")"!==g?NaN:(b(),a)}function e(){for(var a=d();"*"===g||"/"===g;){var c=g;b();var e=d();"*"===c?a*=e:a/=e}return a}function f(){for(var a=e();"+"===g||"-"===g;){var c=g;b();var d=e();"+"===c?a+=d:a-=d}return a}var g,h=/([\+\-\w\.]+|[\(\)\*\/])/g;return b(),f()}function d(a,b){if("0"==(b=b.trim().toLowerCase())&&"px".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var d={};b=b.replace(a,function(a){return d[a]=null,"U"+a});for(var e="U("+a.source+")",f=b.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+e,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),g=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],h=0;h<g.length;)g[h].test(f)?(f=f.replace(g[h],"$1"),h=0):h++;if("D"==f){for(var i in d){var j=c(b.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(e,"g"),"*0"));if(!isFinite(j))return;d[i]=j}return d}}}function e(a,b){return f(a,b,!0)}function f(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&&f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.length&&d&&(c=Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.length>1?"calc("+c+")":c}]}var g="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",h=d.bind(null,new RegExp(g,"g")),i=d.bind(null,new RegExp(g+"|%","g")),j=d.bind(null,/deg|rad|grad|turn/g);a.parseLength=h,a.parseLengthOrPercent=i,a.consumeLengthOrPercent=a.consumeParenthesised.bind(null,i),a.parseAngle=j,a.mergeDimensions=f;var k=a.consumeParenthesised.bind(null,h),l=a.consumeRepeated.bind(void 0,k,/^/),m=a.consumeRepeated.bind(void 0,l,/^,/);a.consumeSizePairList=m;var n=function(a){var b=m(a);if(b&&""==b[1])return b[0]},o=a.mergeNestedRepeated.bind(void 0,e," "),p=a.mergeNestedRepeated.bind(void 0,o,",");a.mergeNonNegativeSizePair=o,a.addPropertiesHandler(n,p,["background-size"]),a.addPropertiesHandler(i,e,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),a.addPropertiesHandler(i,f,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(d),function(a,b){function c(b){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function d(b){var d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,c,/^,/),a.ignore(a.consumeToken.bind(null,/^\)/))],b);if(d&&4==d[0].length)return d[0]}function e(b,c){return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("auto"==e)return"auto";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}function f(a){return"rect("+a+")"}var g=a.mergeWrappedNestedRepeated.bind(null,f,e,", ");a.parseBox=d,a.mergeBoxes=g,a.addPropertiesHandler(d,g,["clip"])}(d),function(a,b){function c(a){return function(b){var c=0;return a.map(function(a){return a===k?b[c++]:a})}}function d(a){return a}function e(b){if("none"==(b=b.toLowerCase().trim()))return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);){if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=n[g];
vendor: 8,726 bytes, lines 36709-36710
36709if(!h)return;var i=c[2].split(","),j=h[0];if(j.length<i.length)return;for(var k=[],o=0;o<j.length;o++){var p,q=i[o],r=j[o];if(void 0===(p=q?{A:function(b){return"0"==b.trim()?m:a.parseAngle(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()](q):{a:m,n:k[0],t:l}[r]))return;k.push(p)}if(e.push({t:g,d:k}),d.lastIndex==b.length)return e}}function f(a){return a.toFixed(6).replace(".000000","")}function g(b,c){if(b.decompositionPair!==c){b.decompositionPair=c;var d=a.makeMatrixDecomposition(b)}if(c.decompositionPair!==b){c.decompositionPair=b;var e=a.makeMatrixDecomposition(c)}return null==d[0]||null==e[0]?[[!1],[!0],function(a){return a?c[0].d:b[0].d}]:(d[0].push(0),e[0].push(1),[d,e,function(b){var c=a.quat(d[0][3],e[0][3],b[5]);return a.composeMatrix(b[0],b[1],b[2],c,b[4]).map(f).join(",")}])}function h(a){return a.replace(/[xy]/,"")}function i(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function j(b,c){var d=a.makeMatrixDecomposition&&!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(var f=0;f<b.length;f++){var j=b[f].t,k=b[f].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(function(a){if("number"==typeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var m=function(a,b){return"perspective"==a&&"perspective"==b||("matrix"==a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.length){if(!d)return;var r=g(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else for(var f=0;f<b.length;f++){var j,s=b[f].t,t=c[f].t,u=b[f].d,v=c[f].d,w=n[s],x=n[t];if(m(s,t)){if(!d)return;var r=g([b[f]],[c[f]]);o.push(r[0]),p.push(r[1]),q.push(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&h(s)==h(t))j=h(s),u=w[2](u),v=x[2](v);else{if(!w[1]||!x[1]||i(s)!=i(t)){if(!d)return;var r=g(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=i(s),u=w[1](u),v=x[1](v)}for(var y=[],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mergeDimensions,r=C(u[B],v[B]);y[B]=r[0],z[B]=r[1],A.push(r[2])}o.push(y),p.push(z),q.push([j,A])}}if(e){var D=o;o=p,p=D}return[o,p,function(a){return a.map(function(a,b){var c=a.map(function(a,c){return q[b][1][c](a)}).join(",");return"matrix"==q[b][0]&&16==c.split(",").length&&(q[b][0]="matrix3d"),q[b][0]+"("+c+")"}).join(" ")}]}var k=null,l={px:0},m={deg:0},n={matrix:["NNNNNN",[k,k,0,0,k,k,0,0,0,0,1,0,k,k,0,1],d],matrix3d:["NNNNNNNNNNNNNNNN",d],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",c([k,k,1]),d],scalex:["N",c([k,1,1]),c([k,1])],scaley:["N",c([1,k,1]),c([1,k])],scalez:["N",c([1,1,k])],scale3d:["NNN",d],skew:["Aa",null,d],skewx:["A",null,c([k,m])],skewy:["A",null,c([m,k])],translate:["Tt",c([k,k,l]),d],translatex:["T",c([k,l,l]),c([k,l])],translatey:["T",c([l,k,l]),c([l,k])],translatez:["L",c([l,l,k])],translate3d:["TTL",d]};a.addPropertiesHandler(e,j,["transform"]),a.transformToSvgMatrix=function(b){var c=a.transformListToMatrix(e(b));return"matrix("+f(c[0])+" "+f(c[1])+" "+f(c[4])+" "+f(c[5])+" "+f(c[12])+" "+f(c[13])+")"}}(d),function(a){function b(a){var b=Number(a);if(!(isNaN(b)||b<100||b>900||b%100!=0))return b}function c(b){return b=100*Math.round(b/100),b=a.clamp(100,900,b),400===b?"normal":700===b?"bold":String(b)}function d(a,b){return[a,b,c]}a.addPropertiesHandler(b,d,["font-weight"])}(d),function(a){function b(a){var b={};for(var c in a)b[c]=-a[c];return b}function c(b){return a.consumeToken(/^(left|center|right|top|bottom)\b/i,b)||a.consumeLengthOrPercent(b)}function d(b,d){var e=a.consumeRepeated(c,/^/,d);if(e&&""==e[1]){var f=e[0];if(f[0]=f[0]||"center",f[1]=f[1]||"center",3==b&&(f[2]=f[2]||{px:0}),f.length==b){if(/top|bottom/.test(f[0])||/left|right/.test(f[1])){var h=f[0];f[0]=f[1],f[1]=h}if(/left|right|center|Object/.test(f[0])&&/top|bottom|center|Object/.test(f[1]))return f.map(function(a){return"object"==typeof a?a:g[a]})}}}function e(d){var e=a.consumeRepeated(c,/^/,d);if(e){for(var f=e[0],h=[{"%":50},{"%":50}],i=0,j=!1,k=0;k<f.length;k++){var l=f[k];"string"==typeof l?(j=/bottom|right/.test(l),i={left:0,right:0,center:i,top:1,bottom:1}[l],h[i]=g[l],"center"==l&&i++):(j&&(l=b(l),l["%"]=(l["%"]||0)+100),h[i]=l,i++,j=!1)}return[h,e[1]]}}function f(b){var c=a.consumeRepeated(e,/^,/,b);if(c&&""==c[1])return c[0]}var g={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},h=a.mergeNestedRepeated.bind(null,a.mergeDimensions," ");a.addPropertiesHandler(d.bind(null,3),h,["transform-origin"]),a.addPropertiesHandler(d.bind(null,2),h,["perspective-origin"]),a.consumePosition=e,a.mergeOffsetList=h;var i=a.mergeNestedRepeated.bind(null,h,", ");a.addPropertiesHandler(f,i,["background-position","object-position"])}(d),function(a){function b(b){var c=a.consumeToken(/^circle/,b);if(c&&c[0])return["circle"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),d,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))],c[1]));var f=a.consumeToken(/^ellipse/,b);if(f&&f[0])return["ellipse"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),e,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))],f[1]));var g=a.consumeToken(/^polygon/,b);return g&&g[0]?["polygon"].concat(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),a.optional(a.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),a.consumeSizePairList,a.ignore(a.consumeToken.bind(void 0,/^\)/))],g[1])):void 0}function c(b,c){if(b[0]===c[0])return"circle"==b[0]?a.mergeList(b.slice(1),c.slice(1),["circle(",a.mergeDimensions," at ",a.mergeOffsetList,")"]):"ellipse"==b[0]?a.mergeList(b.slice(1),c.slice(1),["ellipse(",a.mergeNonNegativeSizePair," at ",a.mergeOffsetList,")"]):"polygon"==b[0]&&b[1]==c[1]?a.mergeList(b.slice(2),c.slice(2),["polygon(",b[1],g,")"]):void 0}var d=a.consumeParenthesised.bind(null,a.parseLengthOrPercent),e=a.consumeRepeated.bind(void 0,d,/^/),f=a.mergeNestedRepeated.bind(void 0,a.mergeDimensions," "),g=a.mergeNestedRepeated.bind(void 0,f,",");a.addPropertiesHandler(b,c,["shape-outside"])}(d),function(a,b){function c(a,b){b.concat([a]).forEach(function(b){b in document.documentElement.style&&(d[a]=b),e[b]=a})}var d={},e={};c("transform",["webkitTransform","msTransform"]),c("transformOrigin",["webkitTransformOrigin"]),c("perspective",["webkitPerspective"]),c("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyName=function(a){return d[a]||a},a.unprefixedPropertyName=function(a){return e[a]||a}}(d)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){var a;if(window.performance&&performance.now)var a=function(){return performance.now()};else var a=function(){return Date.now()};var b=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},c=window.Element.prototype.animate;window.Element.prototype.animate=function(d,e){var f=c.call(this,d,e);f._cancelHandlers=[],f.oncancel=null;var g=f.cancel;f.cancel=function(){g.call(this);var c=new b(this,null,a()),d=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){d.forEach(function(a){a.call(c.target,c)})},0)};var h=f.addEventListener;f.addEventListener=function(a,b){"function"==typeof b&&"cancel"==a?this._cancelHandlers.push(b):h.call(this,a,b)};var i=f.removeEventListener;return f.removeEventListener=function(a,b){if("cancel"==a){var c=this._cancelHandlers.indexOf(b);c>=0&&this._cancelHandlers.splice(c,1)}else i.call(this,a,b)},f}}}(),function(a){var b=document.documentElement,c=null,d=!1;try{var e=getComputedStyle(b).getPropertyValue("opacity"),f="0"==e?"1":"0";c=b.animate({opacity:[f,f]},{duration:1}),c.currentTime=0,d=getComputedStyle(b).getPropertyValue("opacity")==f}catch(a){}finally{c&&c.cancel()}if(!d){var g=window.Element.prototype.animate;window.Element.prototype.animate=function(b,c){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator]&&(b=Array.from(b)),Array.isArray(b)||null===b||(b=a.convertToArrayForm(b)),g.call(this,b,c)}}}(c),b.true=a}({},function(){return this}());
36710!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Muuri=e()}(this,(function(){"use strict";var t={},e="function"==typeof Map?new Map:null,i="ontouchstart"in window,s=!!window.PointerEvent,n=!!window.navigator.msPointerEnabled;function r(){this._events={},this._queue=[],this._counter=0,this._clearOnEmit=!1}r.prototype.on=function(t,e){if(!this._events||!t||!e)return this;var i=this._events[t];
vendor: 44,930 bytes, line 36710
36710return i||(i=this._events[t]=[]),i.push(e),this},r.prototype.off=function(t,e){if(!this._events||!t||!e)return this;var i,s=this._events[t];if(!s||!s.length)return this;for(;-1!==(i=s.indexOf(e));)s.splice(i,1);return this},r.prototype.clear=function(t){if(!this._events||!t)return this;var e=this._events[t];return e&&(e.length=0,delete this._events[t]),this},r.prototype.emit=function(t){if(!this._events||!t)return this._clearOnEmit=!1,this;var e=this._events[t];if(!e||!e.length)return this._clearOnEmit=!1,this;var i,s=this._queue,n=s.length,r=arguments.length-1;r>3&&((i=[]).push.apply(i,arguments),i.shift()),s.push.apply(s,e),this._clearOnEmit&&(e.length=0,this._clearOnEmit=!1),++this._counter;for(var o=n,h=s.length;o<h;o++)if(0===r?s[o]():1===r?s[o](arguments[1]):2===r?s[o](arguments[1],arguments[2]):3===r?s[o](arguments[1],arguments[2],arguments[3]):s[o].apply(null,i),!this._events)return this;return--this._counter,this._counter||(s.length=0),this},r.prototype.burst=function(){return this._events?(this._clearOnEmit=!0,this.emit.apply(this,arguments),this):this},r.prototype.countListeners=function(t){if(!this._events)return 0;var e=this._events[t];return e?e.length:0},r.prototype.destroy=function(){return this._events?(this._queue.length=this._counter=0,this._events=null,this):this};var o=s?"pointerout":n?"MSPointerOut":"";function h(t){o&&(this._dragger=t,this._timeout=null,this._outEvent=null,this._isActive=!1,this._addBehaviour=this._addBehaviour.bind(this),this._removeBehaviour=this._removeBehaviour.bind(this),this._onTimeout=this._onTimeout.bind(this),this._resetData=this._resetData.bind(this),this._onStart=this._onStart.bind(this),this._onOut=this._onOut.bind(this),this._dragger.on("start",this._onStart))}h.prototype._addBehaviour=function(){this._isActive||(this._isActive=!0,this._dragger.on("move",this._resetData),this._dragger.on("cancel",this._removeBehaviour),this._dragger.on("end",this._removeBehaviour),window.addEventListener(o,this._onOut))},h.prototype._removeBehaviour=function(){this._isActive&&(this._dragger.off("move",this._resetData),this._dragger.off("cancel",this._removeBehaviour),this._dragger.off("end",this._removeBehaviour),window.removeEventListener(o,this._onOut),this._resetData(),this._isActive=!1)},h.prototype._resetData=function(){window.clearTimeout(this._timeout),this._timeout=null,this._outEvent=null},h.prototype._onStart=function(t){"mouse"!==t.pointerType&&this._addBehaviour()},h.prototype._onOut=function(t){this._dragger._getTrackedTouch(t)&&(this._resetData(),this._outEvent=t,this._timeout=window.setTimeout(this._onTimeout,100))},h.prototype._onTimeout=function(){var t=this._outEvent;this._resetData(),this._dragger.isActive()&&this._dragger._onCancel(t)},h.prototype.destroy=function(){o&&(this._dragger.off("start",this._onStart),this._removeBehaviour())};var a=["","webkit","moz","ms","o","Webkit","Moz","MS","O"],l={};function _(t,e){var i=l[e]||"";if(i)return i;for(var s=e[0].toUpperCase()+e.slice(1),n=0;n<a.length;){if((i=a[n]?a[n]+s:e)in t)return l[e]=i,i;++n}return""}function d(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}return t}var u=window.navigator.userAgent.toLowerCase(),c=u.indexOf("edge")>-1,f=u.indexOf("trident")>-1,p=u.indexOf("firefox")>-1,m=u.indexOf("android")>-1,g=!!d()&&{passive:!0},v=_(document.documentElement.style,"touchAction");function y(t,e){this._element=t,this._emitter=new r,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._isActive=!1,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this._edgeHack=null,(c||f)&&(s||n)&&(this._edgeHack=new h(this)),this.setCssProps(e),this._touchAction||this.setTouchAction("auto"),t.addEventListener("dragstart",y._preventDefault,!1),t.addEventListener(y._inputEvents.start,this._onStart,g)}y._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},y._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},y._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},y._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},y._inputEvents=i?y._touchEvents:s?y._pointerEvents:n?y._msPointerEvents:y._mouseEvents,y._emitter=new r,y._emitterEvents={start:"start",move:"move",end:"end",cancel:"cancel"},y._activeInstances=[],y._preventDefault=function(t){t.preventDefault&&!1!==t.cancelable&&t.preventDefault()},y._activateInstance=function(t){y._activeInstances.indexOf(t)>-1||(y._activeInstances.push(t),y._emitter.on(y._emitterEvents.move,t._onMove),y._emitter.on(y._emitterEvents.cancel,t._onCancel),y._emitter.on(y._emitterEvents.end,t._onEnd),1===y._activeInstances.length&&y._bindListeners())},y._deactivateInstance=function(t){var e=y._activeInstances.indexOf(t);-1!==e&&(y._activeInstances.splice(e,1),y._emitter.off(y._emitterEvents.move,t._onMove),y._emitter.off(y._emitterEvents.cancel,t._onCancel),y._emitter.off(y._emitterEvents.end,t._onEnd),y._activeInstances.length||y._unbindListeners())},y._bindListeners=function(){window.addEventListener(y._inputEvents.move,y._onMove,g),window.addEventListener(y._inputEvents.end,y._onEnd,g),y._inputEvents.cancel&&window.addEventListener(y._inputEvents.cancel,y._onCancel,g)},y._unbindListeners=function(){window.removeEventListener(y._inputEvents.move,y._onMove,g),window.removeEventListener(y._inputEvents.end,y._onEnd,g),y._inputEvents.cancel&&window.removeEventListener(y._inputEvents.cancel,y._onCancel,g)},y._getEventPointerId=function(t){return"number"==typeof t.pointerId?t.pointerId:t.changedTouches?t.changedTouches[0]?t.changedTouches[0].identifier:null:1},y._getTouchById=function(t,e){if("number"==typeof t.pointerId)return t.pointerId===e?t:null;if(t.changedTouches){for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].identifier===e)return t.changedTouches[i];return null}return t},y._onMove=function(t){y._emitter.emit(y._emitterEvents.move,t)},y._onCancel=function(t){y._emitter.emit(y._emitterEvents.cancel,t)},y._onEnd=function(t){y._emitter.emit(y._emitterEvents.end,t)},y.prototype._reset=function(){this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._isActive=!1,y._deactivateInstance(this)},y.prototype._createEvent=function(t,e){var i=this._getTrackedTouch(e);return{type:t,srcEvent:e,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:t===y._emitterEvents.start?0:this.getDeltaTime(),isFirst:t===y._emitterEvents.start,isFinal:t===y._emitterEvents.end||t===y._emitterEvents.cancel,pointerType:e.pointerType||(e.touches?"touch":"mouse"),identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},y.prototype._emit=function(t,e){this._emitter.emit(t,this._createEvent(t,e))},y.prototype._getTrackedTouch=function(t){return null===this._pointerId?null:y._getTouchById(t,this._pointerId)},y.prototype._onStart=function(t){if(!this._isDestroyed&&null===this._pointerId&&(this._pointerId=y._getEventPointerId(t),null!==this._pointerId)){var e=this._getTrackedTouch(t);this._startX=this._currentX=e.clientX,this._startY=this._currentY=e.clientY,this._startTime=Date.now(),this._isActive=!0,this._emit(y._emitterEvents.start,t),this._isActive&&y._activateInstance(this)}},y.prototype._onMove=function(t){var e=this._getTrackedTouch(t);e&&(this._currentX=e.clientX,this._currentY=e.clientY,this._emit(y._emitterEvents.move,t))},y.prototype._onCancel=function(t){this._getTrackedTouch(t)&&(this._emit(y._emitterEvents.cancel,t),this._reset())},y.prototype._onEnd=function(t){this._getTrackedTouch(t)&&(this._emit(y._emitterEvents.end,t),this._reset())},y.prototype.isActive=function(){return this._isActive},y.prototype.setTouchAction=function(t){this._touchAction=t,v&&(this._cssProps[v]="",this._element.style[v]=t),i&&(this._element.removeEventListener(y._touchEvents.start,y._preventDefault,!0),(this._element.style[v]!==t||p&&m)&&this._element.addEventListener(y._touchEvents.start,y._preventDefault,!0))},y.prototype.setCssProps=function(t){if(t){var e,i,s=this._cssProps,n=this._element;for(e in s)n.style[e]=s[e],delete s[e];for(e in t)t[e]&&("touchAction"!==e?(i=_(n.style,e))&&(s[i]="",n.style[i]=t[e]):this.setTouchAction(t[e]))}},y.prototype.getDeltaX=function(){return this._currentX-this._startX},y.prototype.getDeltaY=function(){return this._currentY-this._startY},y.prototype.getDistance=function(){var t=this.getDeltaX(),e=this.getDeltaY();return Math.sqrt(t*t+e*e)},y.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},y.prototype.on=function(t,e){this._emitter.on(t,e)},y.prototype.off=function(t,e){this._emitter.off(t,e)},y.prototype.destroy=function(){if(!this._isDestroyed){var t=this._element;for(var e in this._edgeHack&&this._edgeHack.destroy(),this._reset(),this._emitter.destroy(),t.removeEventListener(y._inputEvents.start,this._onStart,g),t.removeEventListener("dragstart",y._preventDefault,!1),t.removeEventListener(y._touchEvents.start,y._preventDefault,!0),this._cssProps)t.style[e]=this._cssProps[e],delete this._cssProps[e];this._element=null,this._isDestroyed=!0}};var S=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return this.setTimeout((function(){t(Date.now())}),1e3/60)}).bind(window);function w(t){this._nextStep=null,this._lanes=[],this._stepQueue=[],this._stepCallbacks={},this._step=this._step.bind(this);for(var e=0;e<t;e++)this._lanes.push(new D)}function D(){this.queue=[],this.indices={},this.callbacks={}}w.prototype._step=function(t){var e,i,s,n,r,o,h=this._lanes,a=this._stepQueue,l=this._stepCallbacks;for(this._nextStep=null,e=0;e<h.length;e++){for(n=h[e].queue,r=h[e].callbacks,o=h[e].indices,i=0;i<n.length;i++)(s=n[i])&&(a.push(s),l[s]=r[s],delete r[s],delete o[s]);n.length=0}for(e=0;e<a.length;e++)l[s=a[e]]&&l[s](t),delete l[s];a.length=0},w.prototype.add=function(t,e,i){this._lanes[t].add(e,i),this._nextStep||(this._nextStep=S(this._step))},w.prototype.remove=function(t,e){this._lanes[t].remove(e)},D.prototype.add=function(t,e){var i=this.indices[t];void 0!==i&&(this.queue[i]=void 0),this.queue.push(t),this.callbacks[t]=e,this.indices[t]=this.queue.length-1},D.prototype.remove=function(t){var e=this.indices[t];void 0!==e&&(this.queue[e]=void 0,delete this.callbacks[t],delete this.indices[t])};var b=new w(3);function A(t){b.remove(0,"layoutRead"+t),b.remove(2,"layoutWrite"+t)}function E(t){b.remove(0,"visibilityRead"+t),b.remove(2,"visibilityWrite"+t)}function R(t){b.remove(0,"dragStartRead"+t),b.remove(2,"dragStartWrite"+t)}function x(t){b.remove(0,"dragMoveRead"+t),b.remove(2,"dragMoveWrite"+t)}function T(t){b.remove(0,"dragScrollRead"+t),b.remove(2,"dragScrollWrite"+t)}function k(t,e){b.add(1,"dragSortRead"+t,e)}function L(t){b.remove(0,"placeholderLayoutRead"+t),b.remove(2,"placeholderLayoutWrite"+t)}function I(t,e){b.add(0,"autoScrollRead",t),b.add(2,"autoScrollWrite",e)}function C(t){return"function"==typeof t}var M,X="function"==typeof WeakMap,Y=X?new WeakMap:null,P=!0,q=function(){P?(M=window.clearInterval(M),Y=X?new WeakMap:null):P=!0};function O(t,e){var i=Y&&Y.get(t);return i||(i=window.getComputedStyle(t,null),Y&&Y.set(t,i)),Y&&(M?P=!1:M=window.setInterval(q,3e3)),i.getPropertyValue(e)}function H(t,e){return parseFloat(O(t,e))||0}var G,W=document.documentElement,B=document.body,N={value:0,offset:0};function F(t){return t===window||t===W||t===B?window:t}function z(t){return t===window?t.pageXOffset:t.scrollLeft}function V(t){return t===window?t.pageYOffset:t.scrollTop}function j(t){return t===window?W.scrollWidth-W.clientWidth:t.scrollWidth-t.clientWidth}function Q(t){return t===window?W.scrollHeight-W.clientHeight:t.scrollHeight-t.clientHeight}function U(t,e){if(e=e||{},t===window)e.width=W.clientWidth,e.height=W.clientHeight,e.left=0,e.right=e.width,e.top=0,e.bottom=e.height;else{var i=t.getBoundingClientRect(),s=t.clientLeft||H(t,"border-left-width"),n=t.clientTop||H(t,"border-top-width");e.width=t.clientWidth,e.height=t.clientHeight,e.left=i.left+s,e.right=e.left+e.width,e.top=i.top+n,e.bottom=e.top+e.height}return e}function Z(t){return t._drag._getGrid()._settings.dragAutoScroll}function J(t){t._drag&&t._drag._prepareScroll()}function $(t){if(t._drag&&t._isActive){var e=t._drag;e._scrollDiffX=e._scrollDiffY=0,t._setTranslate(e._left,e._top)}}function K(t,e,i,s){return N.value=Math.min(s/2,t),N.offset=Math.max(0,i+2*N.value+s*e-s)/2,N}function tt(){this.reset()}function et(){this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0}function it(t,e){this.pool=[],this.createItem=t,this.releaseItem=e}function st(t,e){var i=function(t,e){return function(t,e){return!(t.left+t.width<=e.left||e.left+e.width<=t.left||t.top+t.height<=e.top||e.top+e.height<=t.top)}(t,e)?(Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left))*(Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top)):0}(t,e);return i?i/(Math.min(t.width,e.width)*Math.min(t.height,e.height))*100:0}tt.prototype.reset=function(){this.isActive&&this.onStop(),this.item=null,this.element=null,this.isActive=!1,this.isEnding=!1,this.direction=null,this.value=null,this.maxValue=0,this.threshold=0,this.distance=0,this.speed=0,this.duration=0,this.action=null},tt.prototype.hasReachedEnd=function(){return 4&this.direction?this.value>=this.maxValue:this.value<=0},tt.prototype.computeCurrentScrollValue=function(){return null===this.value?1&this.direction?z(this.element):V(this.element):Math.max(0,Math.min(this.value,this.maxValue))},tt.prototype.computeNextScrollValue=function(t){var e=this.speed*(t/1e3),i=4&this.direction?this.value+e:this.value-e;return Math.max(0,Math.min(i,this.maxValue))},tt.prototype.computeSpeed=(G={direction:null,threshold:0,distance:0,value:0,maxValue:0,deltaTime:0,duration:0,isEnding:!1},function(t){var e=this.item,i=Z(e).speed;return C(i)?(G.direction=this.direction,G.threshold=this.threshold,G.distance=this.distance,G.value=this.value,G.maxValue=this.maxValue,G.duration=this.duration,G.speed=this.speed,G.deltaTime=t,G.isEnding=this.isEnding,i(e,this.element,G)):i}),tt.prototype.tick=function(t){return this.isActive||(this.isActive=!0,this.onStart()),this.value=this.computeCurrentScrollValue(),this.speed=this.computeSpeed(t),this.value=this.computeNextScrollValue(t),this.duration+=t,this.value},tt.prototype.onStart=function(){var t=this.item,e=Z(t).onStart;C(e)&&e(t,this.element,this.direction)},tt.prototype.onStop=function(){var t=this.item,e=Z(t).onStop;C(e)&&e(t,this.element,this.direction),t._drag&&t._drag.sort()},et.prototype.reset=function(){this.requestX&&(this.requestX.action=null),this.requestY&&(this.requestY.action=null),this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0},et.prototype.addRequest=function(t){1&t.direction?(this.removeRequest(this.requestX),this.requestX=t):(this.removeRequest(this.requestY),this.requestY=t),t.action=this},et.prototype.removeRequest=function(t){t&&(this.requestX===t?(this.requestX=null,t.action=null):this.requestY===t&&(this.requestY=null,t.action=null))},et.prototype.computeScrollValues=function(){this.scrollLeft=this.requestX?this.requestX.value:z(this.element),this.scrollTop=this.requestY?this.requestY.value:V(this.element)},et.prototype.scroll=function(){var t=this.element;t&&(t.scrollTo?t.scrollTo(this.scrollLeft,this.scrollTop):(t.scrollLeft=this.scrollLeft,t.scrollTop=this.scrollTop))},it.prototype.pick=function(){return this.pool.pop()||this.createItem()},it.prototype.release=function(t){this.releaseItem(t),-1===this.pool.indexOf(t)&&this.pool.push(t)},it.prototype.reset=function(){this.pool.length=0};var nt={width:0,height:0,left:0,right:0,top:0,bottom:0},rt={width:0,height:0,left:0,right:0,top:0,bottom:0};function ot(){this._isDestroyed=!1,this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,this._items=[],this._actions=[],this._requests={},this._requests[1]={},this._requests[2]={},this._requestOverlapCheck={},this._dragPositions={},this._dragDirections={},this._overlapCheckInterval=150,this._requestPool=new it((function(){return new tt}),(function(t){t.reset()})),this._actionPool=new it((function(){return new et}),(function(t){t.reset()})),this._readTick=this._readTick.bind(this),this._writeTick=this._writeTick.bind(this)}ot.AXIS_X=1,ot.AXIS_Y=2,ot.FORWARD=4,ot.BACKWARD=8,ot.LEFT=9,ot.RIGHT=5,ot.UP=10,ot.DOWN=6,ot.smoothSpeed=function(t,e,i){return function(s,n,r){var o=0;if(!r.isEnding)if(r.threshold>0){var h=r.threshold-Math.max(0,r.distance);o=t/r.threshold*h}else o=t;var a=r.speed,l=o;return a===o?l:a<o?(l=a+e*(r.deltaTime/1e3),Math.min(o,l)):(l=a-i*(r.deltaTime/1e3),Math.max(o,l))}},ot.pointerHandle=function(t){var e={left:0,top:0,width:0,height:0},i=t||1;return function(t,s,n,r,o,h,a){return e.left=h-.5*i,e.top=a-.5*i,e.width=i,e.height=i,e}},ot.prototype._readTick=function(t){this._isDestroyed||(t&&this._tickTime?(this._tickDeltaTime=t-this._tickTime,this._tickTime=t,this._updateRequests(),this._updateActions()):(this._tickTime=t,this._tickDeltaTime=0))},ot.prototype._writeTick=function(){this._isDestroyed||(this._applyActions(),I(this._readTick,this._writeTick))},ot.prototype._startTicking=function(){this._isTicking=!0,I(this._readTick,this._writeTick)},ot.prototype._stopTicking=function(){this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,b.remove(0,"autoScrollRead"),b.remove(2,"autoScrollWrite")},ot.prototype._getItemHandleRect=function(t,e,i){var s=t._drag;if(e){var n=s._dragMoveEvent||s._dragStartEvent,r=e(t,s._clientX,s._clientY,t._width,t._height,n.clientX,n.clientY);i.left=r.left,i.top=r.top,i.width=r.width,i.height=r.height}else i.left=s._clientX,i.top=s._clientY,i.width=t._width,i.height=t._height;return i.right=i.left+i.width,i.bottom=i.top+i.height,i},ot.prototype._requestItemScroll=function(t,e,i,s,n,r,o){var h=this._requests[e],a=h[t._id];a?a.element===i&&a.direction===s||a.reset():a=this._requestPool.pick(),a.item=t,a.element=i,a.direction=s,a.threshold=n,a.distance=r,a.maxValue=o,h[t._id]=a},ot.prototype._cancelItemScroll=function(t,e){var i=this._requests[e],s=i[t._id];s&&(s.action&&s.action.removeRequest(s),this._requestPool.release(s),delete i[t._id])},ot.prototype._checkItemOverlap=function(t,e,i){var s=Z(t),n=C(s.targets)?s.targets(t):s.targets,r=s.threshold,o=s.safeZone;if(!n||!n.length)return e&&this._cancelItemScroll(t,1),void(i&&this._cancelItemScroll(t,2));var h=this._dragDirections[t._id],a=h[0],l=h[1];if(!a&&!l)return e&&this._cancelItemScroll(t,1),void(i&&this._cancelItemScroll(t,2));for(var _=this._getItemHandleRect(t,s.handle,nt),d=rt,u=null,c=null,f=!0,p=!0,m=0,g=0,v=null,y=null,S=0,w=0,D=0,b=null,A=-1/0,E=0,R=0,x=null,T=0,k=0,L=null,I=-1/0,M=0,X=0,Y=null,P=0,q=0,O=0;O<n.length;O++)u=n[O],f=e&&a&&2!==u.axis,p=i&&l&&1!==u.axis,g=u.priority||0,(!f||g<A)&&(!p||g<I)||(c=F(u.element||u),w=f?j(c):-1,D=p?Q(c):-1,(w||D)&&((m=st(_,d=U(c,d)))<=0||(f&&g>=A&&w>0&&(g>A||m>R)&&(y=null,v=K("number"==typeof u.threshold?u.threshold:r,o,_.width,d.width),5===a?(S=d.right+v.offset-_.right)<=v.value&&z(c)<w&&(y=5):9===a&&(S=_.left-(d.left-v.offset))<=v.value&&z(c)>0&&(y=9),null!==y&&(b=c,A=g,E=v.value,R=m,x=y,T=S,k=w)),p&&g>=I&&D>0&&(g>I||m>X)&&(y=null,v=K("number"==typeof u.threshold?u.threshold:r,o,_.height,d.height),6===l?(S=d.bottom+v.offset-_.bottom)<=v.value&&V(c)<D&&(y=6):10===l&&(S=_.top-(d.top-v.offset))<=v.value&&V(c)>0&&(y=10),null!==y&&(L=c,I=g,M=v.value,X=m,Y=y,P=S,q=D)))));e&&(b?this._requestItemScroll(t,1,b,x,E,T,k):this._cancelItemScroll(t,1)),i&&(L?this._requestItemScroll(t,2,L,Y,M,P,q):this._cancelItemScroll(t,2))},ot.prototype._updateScrollRequest=function(t){for(var e=t.item,i=Z(e),s=C(i.targets)?i.targets(e):i.targets,n=s&&s.length||0,r=i.threshold,o=i.safeZone,h=this._getItemHandleRect(e,i.handle,nt),a=rt,l=null,_=null,d=!1,u=null,c=null,f=null,p=null,m=null,g=0;g<n;g++)if((_=F((l=s[g]).element||l))===t.element){if(d=!!(1&t.direction)){if(2===l.axis)continue}else if(1===l.axis)continue;if((p=d?j(_):Q(_))<=0)break;if(st(h,a=U(_,a))<=0)break;if(u=K("number"==typeof l.threshold?l.threshold:r,o,d?h.width:h.height,d?a.width:a.height),(c=9===t.direction?h.left-(a.left-u.offset):5===t.direction?a.right+u.offset-h.right:10===t.direction?h.top-(a.top-u.offset):a.bottom+u.offset-h.bottom)>u.value)break;if(f=d?z(_):V(_),m=4&t.direction?f>=p:f<=0)break;return t.maxValue=p,t.threshold=u.value,t.distance=c,t.isEnding=!1,!0}return!0===i.smoothStop&&t.speed>0?(null===m&&(m=t.hasReachedEnd()),t.isEnding=!m):t.isEnding=!1,t.isEnding},ot.prototype._updateRequests=function(){for(var t,e,i,s,n,r,o,h=this._items,a=this._requests[1],l=this._requests[2],_=0;_<h.length;_++)t=h[_],n=(s=this._requestOverlapCheck[t._id])>0&&this._tickTime-s>this._overlapCheckInterval,r=!0,(e=a[t._id])&&e.isActive&&(r=!this._updateScrollRequest(e))&&(n=!0,this._cancelItemScroll(t,1)),o=!0,(i=l[t._id])&&i.isActive&&(o=!this._updateScrollRequest(i))&&(n=!0,this._cancelItemScroll(t,2)),n&&(this._requestOverlapCheck[t._id]=0,this._checkItemOverlap(t,r,o))},ot.prototype._requestAction=function(t,e){for(var i=this._actions,s=1===e,n=null,r=0;r<i.length;r++){if(n=i[r],t.element===n.element){if(s?n.requestX:n.requestY)return void this._cancelItemScroll(t.item,e);break}n=null}n||(n=this._actionPool.pick()),n.element=t.element,n.addRequest(t),t.tick(this._tickDeltaTime),i.push(n)},ot.prototype._updateActions=function(){var t,e,i,s,n=this._items,r=this._requests,o=this._actions;for(s=0;s<n.length;s++)t=n[s]._id,e=r[1][t],i=r[2][t],e&&this._requestAction(e,1),i&&this._requestAction(i,2);for(s=0;s<o.length;s++)o[s].computeScrollValues()},ot.prototype._applyActions=function(){var t,e=this._actions,i=this._items;if(e.length){for(t=0;t<e.length;t++)e[t].scroll(),this._actionPool.release(e[t]);for(e.length=0,t=0;t<i.length;t++)J(i[t]);for(t=0;t<i.length;t++)$(i[t])}},ot.prototype._updateDragDirection=function(t){var e=this._dragPositions[t._id],i=this._dragDirections[t._id],s=t._drag._left,n=t._drag._top;if(e.length){var r=e[0],o=e[1];i[0]=s>r?5:s<r?9:i[0]||0,i[1]=n>o?6:n<o?10:i[1]||0}e[0]=s,e[1]=n},ot.prototype.addItem=function(t){this._isDestroyed||-1===this._items.indexOf(t)&&(this._items.push(t),this._requestOverlapCheck[t._id]=this._tickTime,this._dragDirections[t._id]=[0,0],this._dragPositions[t._id]=[],this._isTicking||this._startTicking())},ot.prototype.updateItem=function(t){this._isDestroyed||(this._updateDragDirection(t),this._requestOverlapCheck[t._id]||(this._requestOverlapCheck[t._id]=this._tickTime))},ot.prototype.removeItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);if(-1!==e){var i=t._id;this._requests[1][i]&&(this._cancelItemScroll(t,1),delete this._requests[1][i]),this._requests[2][i]&&(this._cancelItemScroll(t,2),delete this._requests[2][i]),delete this._requestOverlapCheck[i],delete this._dragPositions[i],delete this._dragDirections[i],this._items.splice(e,1),this._isTicking&&!this._items.length&&this._stopTicking()}}},ot.prototype.isItemScrollingX=function(t){var e=this._requests[1][t._id];return!(!e||!e.isActive)},ot.prototype.isItemScrollingY=function(t){var e=this._requests[2][t._id];return!(!e||!e.isActive)},ot.prototype.isItemScrolling=function(t){return this.isItemScrollingX(t)||this.isItemScrollingY(t)},ot.prototype.destroy=function(){if(!this._isDestroyed){for(var t=this._items.slice(0),e=0;e<t.length;e++)this.removeItem(t[e]);this._actions.length=0,this._requestPool.reset(),this._actionPool.reset(),this._isDestroyed=!0}};var ht=window.Element.prototype,at=ht.matches||ht.matchesSelector||ht.webkitMatchesSelector||ht.mozMatchesSelector||ht.msMatchesSelector||ht.oMatchesSelector||function(){return!1};function lt(t,e){return at.call(t,e)}function _t(t,e){e&&(t.classList?t.classList.add(e):lt(t,"."+e)||(t.className+=" "+e))}var dt=[];function ut(t,e,i){var s="number"==typeof i?i:-1;s<0&&(s=t.length-s+1),t.splice.apply(t,dt.concat(s,0,e)),dt.length=0}function ct(t,e,i){var s=Math.max(0,t.length-1+(i||0));return e>s?s:e<0?Math.max(s+e+1,0):e}function ft(t,e,i){if(!(t.length<2)){var s=ct(t,e),n=ct(t,i);s!==n&&t.splice(n,0,t.splice(s,1)[0])}}function pt(t,e,i){if(!(t.length<2)){var s,n=ct(t,e),r=ct(t,i);n!==r&&(s=t[n],t[n]=t[r],t[r]=s)}}var mt=_(document.documentElement.style,"transform")||"transform",gt=/([A-Z])/g,vt=/^(webkit-|moz-|ms-|o-)/,yt=/^(-m-s-)/;function St(t){var e=t.replace(gt,"-$1").toLowerCase();return e=(e=e.replace(vt,"-$1")).replace(yt,"-ms-")}var wt=St(mt);function Dt(t){var e=O(t,wt);if(!e||"none"===e)return!1;var i=O(t,"display");return"inline"!==i&&"none"!==i}function bt(t){for(var e=document,i=t||e;i&&i!==e&&"static"===O(i,"position")&&!Dt(i);)i=i.parentElement||e;return i}var At={},Et={},Rt={};function xt(t,e){var i,s=e||{};return s.left=0,s.top=0,t===document?s:(s.left=window.pageXOffset||0,s.top=window.pageYOffset||0,t.self===window.self||(i=t.getBoundingClientRect(),s.left+=i.left,s.top+=i.top,s.left+=H(t,"border-left-width"),s.top+=H(t,"border-top-width")),s)}function Tt(t,e,i){return Rt.left=0,Rt.top=0,t===e||i&&(t=bt(t))===(e=bt(e))||(xt(t,At),xt(e,Et),Rt.left=Et.left-At.left,Rt.top=Et.top-At.top),Rt}function kt(t){return"auto"===t||"scroll"===t||"overlay"===t}function Lt(t){return kt(O(t,"overflow"))||kt(O(t,"overflow-x"))||kt(O(t,"overflow-y"))}function It(t,e){for(e=e||[];t&&t!==document;)t.getRootNode&&t instanceof DocumentFragment?t=t.getRootNode().host:(Lt(t)&&e.push(t),t=t.parentNode);return e.push(window),e}var Ct={},Mt=/^matrix3d/,Xt=/([^,]*,){4}/,Yt=/([^,]*,){12}/,Pt=/[^,]*,/;function qt(t){Ct.x=0,Ct.y=0;var e=O(t,wt);if(!e||"none"===e)return Ct;var i=Mt.test(e),s=e.replace(i?Yt:Xt,""),n=s.replace(Pt,"");return Ct.x=parseFloat(s)||0,Ct.y=parseFloat(n)||0,Ct}function Ot(t,e){e&&(t.classList?t.classList.remove(e):lt(t,"."+e)&&(t.className=(" "+t.className+" ").replace(" "+e+" "," ").trim()))}var Ht,Gt,Wt,Bt,Nt=!!d()&&{passive:!0};function Ft(t){var e=t._element,i=t.getGrid(),s=i._settings;this._item=t,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=C(s.dragStartPredicate)?s.dragStartPredicate:Ft.defaultStartPredicate,this._startPredicateState=0,this._startPredicateResult=void 0,this._isSortNeeded=!1,this._sortTimer=void 0,this._blockedSortIndex=null,this._sortX1=0,this._sortX2=0,this._sortY1=0,this._sortY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareStart=this._prepareStart.bind(this),this._applyStart=this._applyStart.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._handleSort=this._handleSort.bind(this),this._handleSortDelayed=this._handleSortDelayed.bind(this),this._handle=s.dragHandle&&e.querySelector(s.dragHandle)||e,this._dragger=new y(this._handle,s.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}function zt(t,e){var i,s,n={};if(Array.isArray(e))for(s=0;s<e.length;s++)n[i=e[s]]=O(t,St(i));else for(i in e)n[i]=O(t,St(i));return n}Ft.autoScroller=new ot,Ft.defaultStartPredicate=function(t,e,i){var s=t._drag;if(e.isFirst&&e.srcEvent.button)return!1;if(e.isFirst&&!0===e.srcEvent.isTrusted&&!1===e.srcEvent.defaultPrevented&&!1===e.srcEvent.cancelable)return!1;if(!e.isFinal){var n=s._startPredicateData;if(!n){var r=i||s._getGrid()._settings.dragStartPredicate||{};s._startPredicateData=n={distance:Math.max(r.distance,0)||0,delay:Math.max(r.delay,0)||0}}return n.delay&&(n.event=e,n.delayTimer||(n.delayTimer=window.setTimeout((function(){n.delay=0,s._resolveStartPredicate(n.event)&&(s._forceResolveStartPredicate(n.event),s._resetStartPredicate())}),n.delay))),s._resolveStartPredicate(e)}s._finishStartPredicate(e)},Ft.defaultSortPredicate=(Ht={},Gt={},Wt={},Bt=[],function(t,e){var i=t._drag,s=i._getGrid(),n=e&&"number"==typeof e.threshold?e.threshold:50,r=e&&"swap"===e.action?"swap":"move",o=e&&"swap"===e.migrateAction?"swap":"move";n=Math.min(Math.max(n,1),100),Ht.width=t._width,Ht.height=t._height,Ht.left=i._clientX,Ht.top=i._clientY;var h=function(t,e,i){var s,n,r,o,h,a,l,_,d,u,c=null,f=e._settings.dragSort,p=-1;if(!0===f?(Bt[0]=e,n=Bt):C(f)&&(n=f.call(e,t)),!n||!Array.isArray(n)||!n.length)return c;for(u=0;u<n.length;u++)if(!(r=n[u])._isDestroyed){for(r._updateBoundingRect(),a=Math.max(0,r._left),l=Math.max(0,r._top),_=Math.min(window.innerWidth,r._right),d=Math.min(window.innerHeight,r._bottom),o=r._element.parentNode;o&&o!==document&&o!==document.documentElement&&o!==document.body;)if(o.getRootNode&&o instanceof DocumentFragment)o=o.getRootNode().host;else{if("visible"!==O(o,"overflow")&&(h=o.getBoundingClientRect(),a=Math.max(a,h.left),l=Math.max(l,h.top),_=Math.min(_,h.right),d=Math.min(d,h.bottom)),"fixed"===O(o,"position"))break;o=o.parentNode}a>=_||l>=d||(Gt.left=a,Gt.top=l,Gt.width=_-a,Gt.height=d-l,(s=st(Ht,Gt))>i&&s>p&&(p=s,c=r))}return Bt.length=0,c}(t,s,n);if(!h)return null;var a,l,_,d=t.getGrid()!==h,u=0,c=0,f=0,p=-1,m=!1;for(h===s?(Ht.left=i._gridX+t._marginLeft,Ht.top=i._gridY+t._marginTop):(h._updateBorders(1,0,1,0),u=h._left+h._borderLeft,c=h._top+h._borderTop),_=0;_<h._items.length;_++)(a=h._items[_])._isActive&&a!==t&&(m=!0,Gt.width=a._width,Gt.height=a._height,Gt.left=a._left+a._marginLeft+u,Gt.top=a._top+a._marginTop+c,(l=st(Ht,Gt))>f&&(p=_,f=l));return d&&f<n&&(p=m?p:0,f=n),f>=n?(Wt.grid=h,Wt.index=p,Wt.action=d?o:r,Wt):null}),Ft.prototype.stop=function(){if(this._isActive)if(this._isMigrating)this._finishMigration();else{var t=this._item._id;if(R(t),x(t),T(t),this._cancelSort(),this._isStarted){this._unbindScrollListeners();var e=item._element,i=this._getGrid(),s=i._settings.itemDraggingClass;e.parentNode!==i._element&&(i._element.appendChild(e),item._setTranslate(this._gridX,this._gridY),s&&e.clientWidth),Ot(e,s)}this._reset()}},Ft.prototype.sort=function(t){var e=this._item;e._isActive&&this._dragMoveEvent&&(!0===t?this._handleSort():k(e._id,this._handleSort))},Ft.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._dragger.destroy(),Ft.autoScroller.removeItem(this._item),this._isDestroyed=!0)},Ft.prototype._getGrid=function(){return t[this._gridId]||null},Ft.prototype._reset=function(){this._isActive=!1,this._isStarted=!1,this._container=null,this._containingBlock=null,this._dragStartEvent=null,this._dragMoveEvent=null,this._dragPrevMoveEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._clientX=0,this._clientY=0,this._scrollDiffX=0,this._scrollDiffY=0,this._moveDiffX=0,this._moveDiffY=0,this._containerDiffX=0,this._containerDiffY=0},Ft.prototype._bindScrollListeners=function(){var t,e,i=this._getGrid()._element,s=this._container,n=this._scrollers;if(n.length=0,It(this._item._element.parentNode,n),s!==i)for(It(i,t=[]),e=0;e<t.length;e++)n.indexOf(t[e])<0&&n.push(t[e]);for(e=0;e<n.length;e++)n[e].addEventListener("scroll",this._onScroll,Nt)},Ft.prototype._unbindScrollListeners=function(){var t,e=this._scrollers;for(t=0;t<e.length;t++)e[t].removeEventListener("scroll",this._onScroll,Nt);e.length=0},Ft.prototype._resolveStartPredicate=function(t){var e=this._startPredicateData;if(!(t.distance<e.distance||e.delay))return this._resetStartPredicate(),!0},Ft.prototype._forceResolveStartPredicate=function(t){this._isDestroyed||1!==this._startPredicateState||(this._startPredicateState=2,this._onStart(t))},Ft.prototype._finishStartPredicate=function(t){var e=this._item._element,i=Math.abs(t.deltaX)<2&&Math.abs(t.deltaY)<2&&t.deltaTime<200;this._resetStartPredicate(),i&&function(t){if("a"!==t.tagName.toLowerCase())return;var e=t.getAttribute("href");if(!e)return;var i=t.getAttribute("target");i&&"_self"!==i?window.open(e,i):window.location.href=e}(e)},Ft.prototype._resetHeuristics=function(t,e){this._blockedSortIndex=null,this._sortX1=this._sortX2=t,this._sortY1=this._sortY2=e},Ft.prototype._checkHeuristics=function(t,e){var i=this._getGrid()._settings.dragSortHeuristics,s=i.minDragDistance;if(s<=0)return this._blockedSortIndex=null,!0;var n=t-this._sortX2,r=e-this._sortY2,o=s>3&&i.minBounceBackAngle>0;if(o||(this._blockedSortIndex=null),Math.abs(n)>s||Math.abs(r)>s){if(o){var h=Math.atan2(n,r),a=Math.atan2(this._sortX2-this._sortX1,this._sortY2-this._sortY1),l=Math.atan2(Math.sin(h-a),Math.cos(h-a));Math.abs(l)>i.minBounceBackAngle&&(this._blockedSortIndex=null)}return this._sortX1=this._sortX2,this._sortY1=this._sortY2,this._sortX2=t,this._sortY2=e,!0}return!1},Ft.prototype._resetStartPredicate=function(){var t=this._startPredicateData;t&&(t.delayTimer&&(t.delayTimer=window.clearTimeout(t.delayTimer)),this._startPredicateData=null)},Ft.prototype._handleSort=function(){var t=this._getGrid()._settings;if(!t.dragSort||!t.dragAutoScroll.sortDuringScroll&&Ft.autoScroller.isItemScrolling(this._item))return this._sortX1=this._sortX2=this._gridX,this._sortY1=this._sortY2=this._gridY,this._isSortNeeded=!0,void(void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)));var e=this._checkHeuristics(this._gridX,this._gridY);if(this._isSortNeeded||e){var i=t.dragSortHeuristics.sortInterval;i<=0||this._isSortNeeded?(this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),this._checkOverlap()):void 0===this._sortTimer&&(this._sortTimer=window.setTimeout(this._handleSortDelayed,i))}},Ft.prototype._handleSortDelayed=function(){this._isSortNeeded=!0,this._sortTimer=void 0,k(this._item._id,this._handleSort)},Ft.prototype._cancelSort=function(){var t;this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),t=this._item._id,b.remove(1,"dragSortRead"+t)},Ft.prototype._finishSort=function(){var t=this._getGrid()._settings.dragSort&&(this._isSortNeeded||void 0!==this._sortTimer);this._cancelSort(),t&&this._checkOverlap()},Ft.prototype._checkOverlap=function(){if(this._isActive){var t,e,i,s,n,r,o,h,a=this._item,l=this._getGrid()._settings;(t=C(l.dragSortPredicate)?l.dragSortPredicate(a,this._dragMoveEvent):Ft.defaultSortPredicate(a,l.dragSortPredicate))&&"number"==typeof t.index&&(o="swap"===t.action?"swap":"move",h=(e=a.getGrid())!==(s=t.grid||e),i=e._items.indexOf(a),n=ct(s._items,t.index,h&&"move"===o?1:0),(h||n!==this._blockedSortIndex)&&(h?(this._blockedSortIndex=null,r=s._items[n],e._hasListeners("beforeSend")&&e._emit("beforeSend",{item:a,fromGrid:e,fromIndex:i,toGrid:s,toIndex:n}),s._hasListeners("beforeReceive")&&s._emit("beforeReceive",{item:a,fromGrid:e,fromIndex:i,toGrid:s,toIndex:n}),a._gridId=s._id,this._isMigrating=a._gridId!==this._gridId,e._items.splice(i,1),ut(s._items,a,n),a._sortData=null,e._hasListeners("send")&&e._emit("send",{item:a,fromGrid:e,fromIndex:i,toGrid:s,toIndex:n}),s._hasListeners("receive")&&s._emit("receive",{item:a,fromGrid:e,fromIndex:i,toGrid:s,toIndex:n}),"swap"===o&&r&&r.isActive()&&s._items.indexOf(r)>-1&&s.send(r,e,i,{appendTo:this._container||document.body,layoutSender:!1,layoutReceiver:!1}),e.layout(),s.layout()):i!==n&&(this._blockedSortIndex=i,("swap"===o?pt:ft)(e._items,i,n),e._hasListeners("move")&&e._emit("move",{item:a,fromIndex:i,toIndex:n,action:o}),e.layout())))}},Ft.prototype._finishMigration=function(){var t,e,i=this._item,s=i._dragRelease,n=i._element,r=i._isActive,o=i.getGrid(),h=o._element,a=o._settings,l=a.dragContainer||h,_=this._getGrid()._settings,d=n.parentNode,u=r?_.itemVisibleClass:_.itemHiddenClass,c=r?a.itemVisibleClass:a.itemHiddenClass;this._isMigrating=!1,this.destroy(),_.itemClass!==a.itemClass&&(Ot(n,_.itemClass),_t(n,a.itemClass)),u!==c&&(Ot(n,u),_t(n,c)),l!==d&&(l.appendChild(n),e=Tt(d,l,!0),(t=qt(n)).x-=e.left,t.y-=e.top),i._refreshDimensions(),e=Tt(l,h,!0),s._containerDiffX=e.left,s._containerDiffY=e.top,i._drag=a.dragEnabled?new Ft(i):null,l!==d&&i._setTranslate(t.x,t.y),i._visibility.setStyles(r?a.visibleStyles:a.hiddenStyles),s.start()},Ft.prototype._preStartCheck=function(t){0===this._startPredicateState&&(this._startPredicateState=1),1===this._startPredicateState?(this._startPredicateResult=this._startPredicate(this._item,t),!0===this._startPredicateResult?(this._startPredicateState=2,this._onStart(t)):!1===this._startPredicateResult&&(this._resetStartPredicate(t),this._dragger._reset(),this._startPredicateState=0)):2===this._startPredicateState&&this._isActive&&this._onMove(t)},Ft.prototype._preEndCheck=function(t){var e=2===this._startPredicateState;this._startPredicate(this._item,t),this._startPredicateState=0,e&&this._isActive&&(this._isStarted?this._onEnd(t):this.stop())},Ft.prototype._onStart=function(t){var e,i,s,n=this._item;n._isActive&&(this._isActive=!0,this._dragStartEvent=t,Ft.autoScroller.addItem(n),e=n._id,i=this._prepareStart,s=this._applyStart,b.add(0,"dragStartRead"+e,i),b.add(2,"dragStartWrite"+e,s))},Ft.prototype._prepareStart=function(){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),s=i._settings,n=i._element,r=s.dragContainer||n,o=bt(r),h=qt(e),a=e.getBoundingClientRect(),l=r!==n;if(this._container=r,this._containingBlock=o,this._clientX=a.left,this._clientY=a.top,this._left=this._gridX=h.x,this._top=this._gridY=h.y,this._scrollDiffX=this._scrollDiffY=0,this._moveDiffX=this._moveDiffY=0,this._resetHeuristics(this._gridX,this._gridY),l){var _=Tt(o,n);this._containerDiffX=_.left,this._containerDiffY=_.top}}},Ft.prototype._applyStart=function(){var t=this._item;if(t._isActive){var e=this._getGrid(),i=t._element,s=t._dragRelease,n=t._migrate,r=this._container!==e._element;t.isPositioning()&&t._layout.stop(!0,this._left,this._top),n._isActive&&(this._left-=n._containerDiffX,this._top-=n._containerDiffY,this._gridX-=n._containerDiffX,this._gridY-=n._containerDiffY,n.stop(!0,this._left,this._top)),t.isReleasing()&&s._reset(),e._settings.dragPlaceholder.enabled&&t._dragPlaceholder.create(),this._isStarted=!0,e._emit("dragInit",t,this._dragStartEvent),r&&(i.parentNode===this._container?(this._gridX-=this._containerDiffX,this._gridY-=this._containerDiffY):(this._left+=this._containerDiffX,this._top+=this._containerDiffY,this._container.appendChild(i),t._setTranslate(this._left,this._top))),_t(i,e._settings.itemDraggingClass),this._bindScrollListeners(),e._emit("dragStart",t,this._dragStartEvent)}},Ft.prototype._onMove=function(t){var e,i,s,n=this._item;n._isActive?(this._dragMoveEvent=t,e=n._id,i=this._prepareMove,s=this._applyMove,b.add(0,"dragMoveRead"+e,i),b.add(2,"dragMoveWrite"+e,s),k(n._id,this._handleSort)):this.stop()},Ft.prototype._prepareMove=function(){if(this._item._isActive){var t=this._getGrid()._settings.dragAxis,e=this._dragMoveEvent,i=this._dragPrevMoveEvent||this._dragStartEvent||e;if("y"!==t){var s=e.clientX-i.clientX;this._left=this._left-this._moveDiffX+s,this._gridX=this._gridX-this._moveDiffX+s,this._clientX=this._clientX-this._moveDiffX+s,this._moveDiffX=s}if("x"!==t){var n=e.clientY-i.clientY;this._top=this._top-this._moveDiffY+n,this._gridY=this._gridY-this._moveDiffY+n,this._clientY=this._clientY-this._moveDiffY+n,this._moveDiffY=n}this._dragPrevMoveEvent=e}},Ft.prototype._applyMove=function(){var t=this._item;t._isActive&&(this._moveDiffX=this._moveDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit("dragMove",t,this._dragMoveEvent),Ft.autoScroller.updateItem(t))},Ft.prototype._onScroll=function(t){var e,i,s,n=this._item;n._isActive?(this._scrollEvent=t,e=n._id,i=this._prepareScroll,s=this._applyScroll,b.add(0,"dragScrollRead"+e,i),b.add(2,"dragScrollWrite"+e,s),k(n._id,this._handleSort)):this.stop()},Ft.prototype._prepareScroll=function(){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),s=i._element,n=i._settings.dragAxis,r="y"!==n,o="x"!==n,h=e.getBoundingClientRect();if(this._container!==s){var a=Tt(this._containingBlock,s);this._containerDiffX=a.left,this._containerDiffY=a.top}if(r){var l=this._clientX-this._moveDiffX-this._scrollDiffX-h.left;this._left=this._left-this._scrollDiffX+l,this._scrollDiffX=l}if(o){var _=this._clientY-this._moveDiffY-this._scrollDiffY-h.top;this._top=this._top-this._scrollDiffY+_,this._scrollDiffY=_}this._gridX=this._left-this._containerDiffX,this._gridY=this._top-this._containerDiffY}},Ft.prototype._applyScroll=function(){var t=this._item;t._isActive&&(this._scrollDiffX=this._scrollDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit("dragScroll",t,this._scrollEvent))},Ft.prototype._onEnd=function(t){var e=this._item,i=e._element,s=this._getGrid(),n=s._settings,r=e._dragRelease;e._isActive?(R(e._id),x(e._id),T(e._id),this._finishSort(),this._unbindScrollListeners(),r._containerDiffX=this._containerDiffX,r._containerDiffY=this._containerDiffY,this._reset(),Ot(i,n.itemDraggingClass),Ft.autoScroller.removeItem(e),s._emit("dragEnd",e,t),this._isMigrating?this._finishMigration():r.start()):this.stop()};var Vt=/^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/,jt={};function Qt(t){var e=jt[t];return e||((e=t.replace(Vt,""))!==t&&(e=e[0].toLowerCase()+e.slice(1)),jt[t]=e,e)}function Ut(t,e){for(var i in e)t.style[i]=e[i]}var Zt,Jt,$t=!(!Element||!C(Element.prototype.animate)),Kt=!!(Element&&(Zt=Element.prototype.animate,Jt=window.Symbol,Zt&&C(Jt)&&C(Jt.toString)&&Jt(Zt).toString().indexOf("[native code]")>-1));function te(t){this._element=t,this._animation=null,this._duration=0,this._easing="",this._callback=null,this._props=[],this._values=[],this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}function ee(t,e){var i={};for(var s in t)i[e?s:Qt(s)]=t[s];return i}function ie(t,e){return"translateX("+t+"px) translateY("+e+"px)"}function se(t){this._item=t,this._animation=new te,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._left=0,this._top=0,this._transX=0,this._transY=0,this._nextTransX=0,this._nextTransY=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._updateDimensions=this._updateDimensions.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this),this._onHide=this._onHide.bind(this)}function ne(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}te.prototype.start=function(t,e,i){if(!this._isDestroyed){var s=this._element,n=i||{};if(!$t)return Ut(s,e),this._callback=C(n.onFinish)?n.onFinish:null,void this._onFinish();var r,o,h,a=this._animation,l=this._props,_=this._values,d=n.duration||300,u=n.easing||"ease",c=!1;if(a&&(o=0,d===this._duration&&u===this._easing||(c=!0),!c)){for(r in e)if(++o,-1===(h=l.indexOf(r))||e[r]!==_[h]){c=!0;break}o!==l.length&&(c=!0)}if(c&&a.cancel(),this._callback=C(n.onFinish)?n.onFinish:null,!a||c){for(r in l.length=_.length=0,e)l.push(r),_.push(e[r]);this._duration=d,this._easing=u,this._animation=s.animate([ee(t,Kt),ee(e,Kt)],{duration:d,easing:u}),this._animation.onfinish=this._onFinish,Ut(s,e)}}},te.prototype.stop=function(){!this._isDestroyed&&this._animation&&(this._animation.cancel(),this._animation=this._callback=null,this._props.length=this._values.length=0)},te.prototype.getCurrentStyles=function(){return zt(element,currentProps)},te.prototype.isAnimating=function(){return!!this._animation},te.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=null,this._isDestroyed=!0)},te.prototype._onFinish=function(){var t=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,t&&t()},se.prototype._updateDimensions=function(){this.isActive()&&Ut(this._element,{width:this._item._width+"px",height:this._item._height+"px"})},se.prototype._onLayoutStart=function(t,e){var i=this._item;if(-1!==t.indexOf(i)){var s=i._left,n=i._top,r=this._left,o=this._top;if(this._left=s,this._top=n,e||this._didMigrate||r!==s||o!==n){var h,a,l,_=s+i._marginLeft,d=n+i._marginTop,u=i.getGrid();if(!(!e&&u._settings.layoutDuration>0)||this._didMigrate)return L(i._id),this._element.style[mt]=ie(_,d),this._animation.stop(),void(this._didMigrate&&(u.getElement().appendChild(this._element),this._didMigrate=!1));this._nextTransX=_,this._nextTransY=d,h=i._id,a=this._setupAnimation,l=this._startAnimation,b.add(0,"placeholderL
36710ayoutRead"+h,a),b.add(2,"placeholderLayoutWrite"+h,l)}}else this.reset()},se.prototype._setupAnimation=function(){if(this.isActive()){var t=qt(this._element);this._transX=t.x,this._transY=t.y}},se.prototype._startAnimation=function(){if(this.isActive()){var t=this._animation,e=this._transX,i=this._transY,s=this._nextTransX,n=this._nextTransY;if(e!==s||i!==n){var r=this._item.getGrid()._settings,o={},h={};o[mt]=ie(e,i),h[mt]=ie(s,n),t.start(o,h,{duration:r.layoutDuration,easing:r.layoutEasing,onFinish:this._onLayoutEnd})}else t.isAnimating()&&(this._element.style[mt]=ie(s,n),t.stop())}},se.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},se.prototype._onReleaseEnd=function(t){if(t._id===this._item._id){if(!this._animation.isAnimating())return void this.reset();this._resetAfterLayout=!0}},se.prototype._onMigrate=function(t){if(t.item===this._item){var e=this._item.getGrid(),i=t.toGrid;e.off("dragReleaseEnd",this._onReleaseEnd),e.off("layoutStart",this._onLayoutStart),e.off("beforeSend",this._onMigrate),e.off("hideStart",this._onHide),i.on("dragReleaseEnd",this._onReleaseEnd),i.on("layoutStart",this._onLayoutStart),i.on("beforeSend",this._onMigrate),i.on("hideStart",this._onHide),this._didMigrate=!0}},se.prototype._onHide=function(t){t.indexOf(this._item)>-1&&this.reset()},se.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var t,e=this._item,i=e.getGrid(),s=i._settings,n=this._animation;this._left=e._left,this._top=e._top,t=C(s.dragPlaceholder.createElement)?s.dragPlaceholder.createElement(e):document.createElement("div"),this._element=t,n._element=t,this._className=s.itemPlaceholderClass||"",this._className&&_t(t,this._className),Ut(t,{position:"absolute",left:"0px",top:"0px",width:e._width+"px",height:e._height+"px"}),t.style[mt]=ie(e._left+e._marginLeft,e._top+e._marginTop),i.on("layoutStart",this._onLayoutStart),i.on("dragReleaseEnd",this._onReleaseEnd),i.on("beforeSend",this._onMigrate),i.on("hideStart",this._onHide),C(s.dragPlaceholder.onCreate)&&s.dragPlaceholder.onCreate(e,t),i.getElement().appendChild(t)}},se.prototype.reset=function(){if(this.isActive()){var t,e=this._element,i=this._item,s=i.getGrid(),n=s._settings,r=this._animation;this._resetAfterLayout=!1,L(i._id),t=i._id,b.remove(2,"placeholderResizeWrite"+t),r.stop(),r._element=null,s.off("dragReleaseEnd",this._onReleaseEnd),s.off("layoutStart",this._onLayoutStart),s.off("beforeSend",this._onMigrate),s.off("hideStart",this._onHide),this._className&&(Ot(e,this._className),this._className=""),e.parentNode.removeChild(e),this._element=null,C(n.dragPlaceholder.onRemove)&&n.dragPlaceholder.onRemove(i,e)}},se.prototype.isActive=function(){return!!this._element},se.prototype.getElement=function(){return this._element},se.prototype.updateDimensions=function(){var t,e;this.isActive()&&(t=this._item._id,e=this._updateDimensions,b.add(2,"placeholderResizeWrite"+t,e))},se.prototype.destroy=function(){this.reset(),this._animation.destroy(),this._item=this._animation=null},ne.prototype.start=function(){if(!this._isDestroyed&&!this._isActive){var t=this._item,e=t.getGrid(),i=e._settings;this._isActive=!0,_t(t._element,i.itemReleasingClass),i.dragRelease.useDragContainer||this._placeToGrid(),e._emit("dragReleaseStart",t),e._nextLayoutData||t._layout.start(!1)}},ne.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var s=this._item,n=s.getGrid();t||void 0!==e&&void 0!==i||(e=s._left,i=s._top);var r=this._placeToGrid(e,i);this._reset(r),t||n._emit("dragReleaseEnd",s)}},ne.prototype.isJustReleased=function(){return this._isActive&&!1===this._isPositioningStarted},ne.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},ne.prototype._placeToGrid=function(t,e){if(!this._isDestroyed){var i=this._item,s=i._element,n=i.getGrid()._element,r=!1;if(s.parentNode!==n){if(void 0===t||void 0===e){var o=qt(s);t=o.x-this._containerDiffX,e=o.y-this._containerDiffY}n.appendChild(s),i._setTranslate(t,e),r=!0}return this._containerDiffX=0,this._containerDiffY=0,r}},ne.prototype._reset=function(t){if(!this._isDestroyed){var e=this._item,i=e.getGrid()._settings.itemReleasingClass;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,i&&(t&&e._element.clientWidth,Ot(e._element,i))}};function re(t){var e=t._element,i=e.style;this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._nextLeft=0,this._nextTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animOptions={onFinish:this._finish.bind(this),duration:0,easing:0},i.left="0px",i.top="0px",t._setTranslate(0,0),this._animation=new te(e),this._queue="layout-"+t._id,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}function oe(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}function he(t){var e=t._isActive,i=t._element,s=i.children[0],n=t.getGrid()._settings;if(!s)throw new Error("No valid child element found within item element.");this._item=t,this._isDestroyed=!1,this._isHidden=!e,this._isHiding=!1,this._isShowing=!1,this._childElement=s,this._currentStyleProps=[],this._animation=new te(s),this._queue="visibility-"+t._id,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=e?"":"none",_t(i,e?n.itemVisibleClass:n.itemHiddenClass),this.setStyles(e?n.visibleStyles:n.hiddenStyles)}re.prototype.start=function(t,e){if(!this._isDestroyed){var i,s,n,r=this._item,o=r._dragRelease,h=r.getGrid()._settings,a=this._isActive,l=o.isJustReleased(),_=l?h.dragRelease.duration:h.layoutDuration,d=l?h.dragRelease.easing:h.layoutEasing,u=!t&&!this._skipNextAnimation&&_>0;
vendor: 32,329 bytes, line 36710
36710if(a&&(A(r._id),r._emitter.burst(this._queue,!0,r)),l&&(o._isPositioningStarted=!0),C(e)&&r._emitter.on(this._queue,e),this._skipNextAnimation=!1,!u)return this._updateOffsets(),r._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._isActive=!0,this._animOptions.easing=d,this._animOptions.duration=_,this._isInterrupted=a,i=r._id,s=this._setupAnimation,n=this._startAnimation,b.add(0,"layoutRead"+i,s),b.add(2,"layoutWrite"+i,n)}},re.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var s=this._item;if(A(s._id),this._animation.isAnimating()){if(void 0===e||void 0===i){var n=qt(s._element);e=n.x,i=n.y}s._setTranslate(e,i),this._animation.stop()}Ot(s._element,s.getGrid()._settings.itemPositioningClass),this._isActive=!1,t&&s._emitter.burst(this._queue,!0,s)}},re.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item._element.style;this.stop(!0,0,0),this._item._emitter.clear(this._queue),this._animation.destroy(),t[mt]="",t.left="",t.top="",this._item=null,this._currentStyles=null,this._targetStyles=null,this._animOptions=null,this._isDestroyed=!0}},re.prototype._updateOffsets=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;this._offsetLeft=i._isActive?i._containerDiffX:e._isActive?e._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:e._isActive?e._containerDiffY:0,this._nextLeft=this._item._left+this._offsetLeft,this._nextTop=this._item._top+this._offsetTop}},re.prototype._finish=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;t._tX=this._nextLeft,t._tY=this._nextTop,this._isActive&&(this._isActive=!1,Ot(t._element,t.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),e._isActive&&e.stop(),t._emitter.burst(this._queue,!1,t)}},re.prototype._setupAnimation=function(){var t=this._item;if(void 0===t._tX||void 0===t._tY){var e=qt(t._element);t._tX=e.x,t._tY=e.y}},re.prototype._startAnimation=function(){var t=this._item,e=t.getGrid()._settings,i=this._animOptions.duration<=0;this._updateOffsets();var s=Math.abs(t._left-(t._tX-this._offsetLeft)),n=Math.abs(t._top-(t._tY-this._offsetTop));if(i||s<2&&n<2)return(s||n||this._isInterrupted)&&t._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._isInterrupted||_t(t._element,e.itemPositioningClass),this._currentStyles[mt]=ie(t._tX,t._tY),this._targetStyles[mt]=ie(this._nextLeft,this._nextTop),t._tX=t._tY=void 0,this._animation.start(this._currentStyles,this._targetStyles,this._animOptions)},oe.prototype.start=function(t,e,i){if(!this._isDestroyed){var s,n,r,o,h,a,l,_,d,u,c=this._item,f=c._element,p=c.isActive(),m=c.isVisible(),g=c.getGrid(),v=g._settings,y=t._settings,S=t._element,w=t._items,D=g._items.indexOf(c),b=i||document.body;if("number"==typeof e)s=ct(w,e,1);else{if(!(n=t.getItem(e)))return;s=w.indexOf(n)}(c.isPositioning()||this._isActive||c.isReleasing())&&(l=(a=qt(f)).x,_=a.y),c.isPositioning()&&c._layout.stop(!0,l,_),this._isActive&&(l-=this._containerDiffX,_-=this._containerDiffY,this.stop(!0,l,_)),c.isReleasing()&&(l-=c._dragRelease._containerDiffX,_-=c._dragRelease._containerDiffY,c._dragRelease.stop(!0,l,_)),c._visibility.stop(!0),c._drag&&c._drag.destroy(),g._hasListeners("beforeSend")&&g._emit("beforeSend",{item:c,fromGrid:g,fromIndex:D,toGrid:t,toIndex:s}),t._hasListeners("beforeReceive")&&t._emit("beforeReceive",{item:c,fromGrid:g,fromIndex:D,toGrid:t,toIndex:s}),v.itemClass!==y.itemClass&&(Ot(f,v.itemClass),_t(f,y.itemClass)),(d=m?v.itemVisibleClass:v.itemHiddenClass)!==(u=m?y.itemVisibleClass:y.itemHiddenClass)&&(Ot(f,d),_t(f,u)),g._items.splice(D,1),ut(w,c,s),c._gridId=t._id,p?b!==(r=f.parentNode)&&(b.appendChild(f),o=Tt(b,r,!0),a||(l=(a=qt(f)).x,_=a.y),c._setTranslate(l+o.left,_+o.top)):S.appendChild(f),c._visibility.setStyles(m?y.visibleStyles:y.hiddenStyles),p&&(h=Tt(b,S,!0)),c._refreshDimensions(),c._sortData=null,c._drag=y.dragEnabled?new Ft(c):null,p?(this._isActive=!0,this._container=b,this._containerDiffX=h.left,this._containerDiffY=h.top):(this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0),g._hasListeners("send")&&g._emit("send",{item:c,fromGrid:g,fromIndex:D,toGrid:t,toIndex:s}),t._hasListeners("receive")&&t._emit("receive",{item:c,fromGrid:g,fromIndex:D,toGrid:t,toIndex:s})}},oe.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var s,n=this._item,r=n._element,o=n.getGrid()._element;this._container!==o&&(void 0!==e&&void 0!==i||(t?(e=(s=qt(r)).x-this._containerDiffX,i=s.y-this._containerDiffY):(e=n._left,i=n._top)),o.appendChild(r),n._setTranslate(e,i)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0}},oe.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},he.prototype.show=function(t,e){if(!this._isDestroyed){var i=this._item,s=i._element,n=C(e)?e:null,r=i.getGrid()._settings;this._isShowing||this._isHidden?!this._isShowing||t?(this._isShowing||(i._emitter.burst(this._queue,!0,i),Ot(s,r.itemHiddenClass),_t(s,r.itemVisibleClass),this._isHiding||(s.style.display="")),n&&i._emitter.on(this._queue,n),this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,t,this._finishShow)):n&&i._emitter.on(this._queue,n):n&&n(!1,i)}},he.prototype.hide=function(t,e){if(!this._isDestroyed){var i=this._item,s=i._element,n=C(e)?e:null,r=i.getGrid()._settings;this._isHiding||!this._isHidden?!this._isHiding||t?(this._isHiding||(i._emitter.burst(this._queue,!0,i),_t(s,r.itemHiddenClass),Ot(s,r.itemVisibleClass)),n&&i._emitter.on(this._queue,n),this._isHidden=this._isHiding=!0,this._isShowing=!1,this._startAnimation(!1,t,this._finishHide)):n&&i._emitter.on(this._queue,n):n&&n(!1,i)}},he.prototype.stop=function(t){if(!this._isDestroyed&&(this._isHiding||this._isShowing)){var e=this._item;E(e._id),this._animation.stop(),t&&e._emitter.burst(this._queue,!0,e)}},he.prototype.setStyles=function(t){var e=this._childElement,i=this._currentStyleProps;for(var s in this._removeCurrentStyles(),t)i.push(s),e.style[s]=t[s]},he.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item,e=t._element,i=t.getGrid()._settings;this.stop(!0),t._emitter.clear(this._queue),this._animation.destroy(),this._removeCurrentStyles(),Ot(e,i.itemVisibleClass),Ot(e,i.itemHiddenClass),e.style.display="",this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0}},he.prototype._startAnimation=function(t,e,i){if(!this._isDestroyed){var s,n=this._item,r=this._animation,o=this._childElement,h=n.getGrid()._settings,a=t?h.visibleStyles:h.hiddenStyles,l=t?h.showDuration:h.hideDuration,_=t?h.showEasing:h.hideEasing,d=e||l<=0;if(a){if(E(n._id),d)return Ut(o,a),r.stop(),void(i&&i());var u,c,f;u=n._id,c=function(){s=zt(o,a)},f=function(){r.start(s,a,{duration:l,easing:_,onFinish:i})},b.add(0,"visibilityRead"+u,c),b.add(2,"visibilityWrite"+u,f)}else i&&i()}},he.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._item._emitter.burst(this._queue,!1,this._item))},he.prototype._finishHide=function(){if(this._isHidden){var t=this._item;this._isHiding=!1,t._layout.stop(!0,0,0),t._element.style.display="none",t._emitter.burst(this._queue,!1,t)}},he.prototype._removeCurrentStyles=function(){for(var t=this._childElement,e=this._currentStyleProps,i=0;i<e.length;i++)t.style[e[i]]="";e.length=0};var ae=0;function le(){return++ae}function _e(t,i,s){var n=t._settings;if(e){if(e.has(i))throw new Error("You can only create one Muuri Item per element!");e.set(i,this)}this._id=le(),this._gridId=t._id,this._element=i,this._isDestroyed=!1,this._left=0,this._top=0,this._width=0,this._height=0,this._marginLeft=0,this._marginRight=0,this._marginTop=0,this._marginBottom=0,this._tX=void 0,this._tY=void 0,this._sortData=null,this._emitter=new r,i.parentNode!==t._element&&t._element.appendChild(i),_t(i,n.itemClass),"boolean"!=typeof s&&(s="none"!==O(i,"display")),this._isActive=s,this._visibility=new he(this),this._layout=new re(this),this._migrate=new oe(this),this._drag=n.dragEnabled?new Ft(this):null,this._dragRelease=new ne(this),this._dragPlaceholder=new se(this)}function de(t=!1){var e,i,s,n,r,o=.001;function h(t){return((1e3*t+.5<<0)/10<<0)/100}function a(){this.currentRects=[],this.nextRects=[],this.rectTarget={},this.rectStore=[],this.slotSizes=[],this.rectId=0,this.slotIndex=-1,this.slotData={left:0,top:0,width:0,height:0},this.sortRectsLeftTop=this.sortRectsLeftTop.bind(this),this.sortRectsTopLeft=this.sortRectsTopLeft.bind(this)}if(a.prototype.computeLayout=function(t,e){var i,s,n,r,o,a,l=t.items,_=t.slots,d=!!(1&e),u=!!(2&e),c=!!(4&e),f=!!(8&e),p=!!(16&e),m="number"==typeof l[0];if(!l.length)return t;for(s=m?2:1,i=0;i<l.length;i+=s)m?(r=l[i],o=l[i+1]):(r=(n=l[i])._width+n._marginLeft+n._marginRight,o=n._height+n._marginTop+n._marginBottom),p&&(r=h(r),o=h(o)),a=this.computeNextSlot(t,r,o,d,u),u?a.left+a.width>t.width&&(t.width=a.left+a.width):a.top+a.height>t.height&&(t.height=a.top+a.height),_[++this.slotIndex]=a.left,_[++this.slotIndex]=a.top,(c||f)&&this.slotSizes.push(a.width,a.height);if(c)for(i=0;i<_.length;i+=2)_[i]=t.width-(_[i]+this.slotSizes[i]);if(f)for(i=1;i<_.length;i+=2)_[i]=t.height-(_[i]+this.slotSizes[i]);return this.slotSizes.length=0,this.currentRects.length=0,this.nextRects.length=0,this.rectId=0,this.slotIndex=-1,t},a.prototype.computeNextSlot=function(t,e,i,s,n){var r,h,a,l,_,d=this.slotData,u=this.currentRects,c=this.nextRects,f=!1;for(c.length=0,d.left=null,d.top=null,d.width=e,d.height=i,l=0;l<u.length;l++)if((h=u[l])&&(r=this.getRect(h),d.width<=r.width+o&&d.height<=r.height+o)){d.left=r.left,d.top=r.top;break}if(null===d.left&&(n?(d.left=t.width,d.top=0):(d.left=0,d.top=t.height),s||(f=!0)),!n&&d.top+d.height>t.height+o&&(d.left>.5&&c.push(this.addRect(0,t.height,d.left,1/0)),d.left+d.width<t.width-.5&&c.push(this.addRect(d.left+d.width,t.height,t.width-d.left-d.width,1/0)),t.height=d.top+d.height),n&&d.left+d.width>t.width+o&&(d.top>.5&&c.push(this.addRect(t.width,0,1/0,d.top)),d.top+d.height<t.height-.5&&c.push(this.addRect(t.width,d.top+d.height,1/0,t.height-d.top-d.height)),t.width=d.left+d.width),!f)for(s&&(l=0);l<u.length;l++)if(h=u[l])for(r=this.getRect(h),a=this.splitRect(r,d),_=0;_<a.length;_++)h=a[_],r=this.getRect(h),(n?r.left+o<t.width-o:r.top+o<t.height-o)&&c.push(h);return c.length>1&&this.purgeRects(c).sort(n?this.sortRectsLeftTop:this.sortRectsTopLeft),this.currentRects=c,this.nextRects=u,d},a.prototype.addRect=function(t,e,i,s){var n=++this.rectId;return this.rectStore[n]=t||0,this.rectStore[++this.rectId]=e||0,this.rectStore[++this.rectId]=i||0,this.rectStore[++this.rectId]=s||0,n},a.prototype.getRect=function(t,e){return e||(e=this.rectTarget),e.left=this.rectStore[t]||0,e.top=this.rectStore[++t]||0,e.width=this.rectStore[++t]||0,e.height=this.rectStore[++t]||0,e},a.prototype.splitRect=(e=[],i=0,s=0,function(t,n){return e.length=0,t.left+t.width<=n.left+o||n.left+n.width<=t.left+o||t.top+t.height<=n.top+o||n.top+n.height<=t.top+o?(e.push(this.addRect(t.left,t.top,t.width,t.height)),e):((i=n.left-t.left)>=.5&&e.push(this.addRect(t.left,t.top,i,t.height)),(i=t.left+t.width-(n.left+n.width))>=.5&&e.push(this.addRect(n.left+n.width,t.top,i,t.height)),(s=n.top-t.top)>=.5&&e.push(this.addRect(t.left,t.top,t.width,s)),(s=t.top+t.height-(n.top+n.height))>=.5&&e.push(this.addRect(t.left,n.top+n.height,t.width,s)),e)}),a.prototype.isRectAWithinRectB=function(t,e){return t.left+o>=e.left&&t.top+o>=e.top&&t.left+t.width-o<=e.left+e.width&&t.top+t.height-o<=e.top+e.height},a.prototype.purgeRects=(n={},r={},function(t){for(var e,i=t.length;i--;)if(e=t.length,t[i])for(this.getRect(t[i],n);e--;)if(t[e]&&i!==e&&(this.getRect(t[e],r),this.isRectAWithinRectB(n,r))){t[i]=0;break}return t}),a.prototype.sortRectsTopLeft=function(){var t={},e={};return function(i,s){return this.getRect(i,t),this.getRect(s,e),t.top<e.top&&t.top+o<e.top?-1:t.top>e.top&&t.top-o>e.top?1:t.left<e.left&&t.left+o<e.left?-1:t.left>e.left&&t.left-o>e.left?1:0}}(),a.prototype.sortRectsLeftTop=function(){var t={},e={};return function(i,s){return this.getRect(i,t),this.getRect(s,e),t.left<e.left&&t.left+o<e.left?-1:t.left>e.left&&t.left-o<e.left?1:t.top<e.top&&t.top+o<e.top?-1:t.top>e.top&&t.top-o>e.top?1:0}}(),t){var l=new a;self.onmessage=function(t){var e=new Float32Array(t.data),i=e.subarray(4,e.length),s=new Float32Array(i.length),n=e[3],r={items:i,slots:s,width:e[1],height:e[2]};l.computeLayout(r,n),e[1]=r.width,e[2]=r.height,e.set(r.slots,4),postMessage(e.buffer,[e.buffer])}}return a}_e.prototype.getGrid=function(){return t[this._gridId]},_e.prototype.getElement=function(){return this._element},_e.prototype.getWidth=function(){return this._width},_e.prototype.getHeight=function(){return this._height},_e.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},_e.prototype.getPosition=function(){return{left:this._left,top:this._top}},_e.prototype.isActive=function(){return this._isActive},_e.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},_e.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)},_e.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)},_e.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)},_e.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)},_e.prototype.isReleasing=function(){return!(!this._dragRelease||!this._dragRelease._isActive)},_e.prototype.isDestroyed=function(){return this._isDestroyed},_e.prototype._refreshDimensions=function(t){if(!(this._isDestroyed||!0!==t&&this._visibility._isHidden)){var e=this._element,i=this._dragPlaceholder,s=e.getBoundingClientRect();this._width=s.width,this._height=s.height,this._marginLeft=Math.max(0,H(e,"margin-left")),this._marginRight=Math.max(0,H(e,"margin-right")),this._marginTop=Math.max(0,H(e,"margin-top")),this._marginBottom=Math.max(0,H(e,"margin-bottom")),i&&i.updateDimensions()}},_e.prototype._refreshSortData=function(){if(!this._isDestroyed){var t,e=this._sortData={},i=this.getGrid()._settings.sortData;for(t in i)e[t]=i[t](this,this._element)}},_e.prototype._addToLayout=function(t,e){!0!==this._isActive&&(this._isActive=!0,this._left=t||0,this._top=e||0)},_e.prototype._removeFromLayout=function(){!1!==this._isActive&&(this._isActive=!1,this._left=0,this._top=0)},_e.prototype._canSkipLayout=function(t,e){return this._left===t&&this._top===e&&!this._migrate._isActive&&!this._layout._skipNextAnimation&&!this._dragRelease.isJustReleased()},_e.prototype._setTranslate=function(t,e){return(this._tX!==t||this._tY!==e)&&(this._tX=t,this._tY=e,this._element.style[mt]=ie(t,e),!0)},_e.prototype._destroy=function(t){if(!this._isDestroyed){var i=this._element,s=this.getGrid()._settings;this._dragPlaceholder.destroy(),this._dragRelease.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._drag&&this._drag.destroy(),this._emitter.destroy(),Ot(i,s.itemClass),t&&i.parentNode.removeChild(i),e&&e.delete(i),this._isActive=!1,this._isDestroyed=!0}};var ue=de(),ce=null,fe=[];function pe(t,e){if(this._options=0,this._processor=null,this._layoutQueue=[],this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={},this._workers=[],this._onWorkerMessage=this._onWorkerMessage.bind(this),this.setOptions(e),(t="number"==typeof t?Math.max(0,t):0)&&window.Worker&&window.URL&&window.Blob)try{this._workers=function(t,e){var i=[];if(t>0){ce||(ce=URL.createObjectURL(new Blob(["("+de.toString()+")(true)"],{type:"application/javascript"})));for(var s,n=0;n<t;n++)s=new Worker(ce),e&&(s.onmessage=e),i.push(s),fe.push(s)}return i}(t,this._onWorkerMessage)}catch(t){this._processor=new ue}else this._processor=new ue}pe.prototype._sendToWorker=function(){if(this._layoutQueue.length&&this._workers.length){var t=this._layoutQueue.shift(),e=this._workers.pop(),i=this._layoutWorkerData[t];delete this._layoutWorkerData[t],this._layoutWorkers[t]=e,e.postMessage(i.buffer,[i.buffer])}},pe.prototype._onWorkerMessage=function(t){var e=new Float32Array(t.data),i=e[0],s=this._layouts[i],n=this._layoutCallbacks[i],r=this._layoutWorkers[i];s&&delete this._layoutCallbacks[i],n&&delete this._layoutCallbacks[i],r&&delete this._layoutWorkers[i],s&&n&&(s.width=e[1],s.height=e[2],s.slots=e.subarray(4,e.length),this._finalizeLayout(s),n(s)),r&&(this._workers.push(r),this._sendToWorker())},pe.prototype._finalizeLayout=function(t){var e=t._grid,i=2&t._settings,s="border-box"===e._boxSizing;return delete t._grid,delete t._settings,t.styles={},i?t.styles.width=(s?t.width+e._borderLeft+e._borderRight:t.width)+"px":t.styles.height=(s?t.height+e._borderTop+e._borderBottom:t.height)+"px",t},pe.prototype.setOptions=function(t){var e,i,s,n,r;t&&(e="boolean"==typeof t.fillGaps?t.fillGaps?1:0:1&this._options,i="boolean"==typeof t.horizontal?t.horizontal?2:0:2&this._options,s="boolean"==typeof t.alignRight?t.alignRight?4:0:4&this._options,n="boolean"==typeof t.alignBottom?t.alignBottom?8:0:8&this._options,r="boolean"==typeof t.rounding?t.rounding?16:0:16&this._options,this._options=e|i|s|n|r)},pe.prototype.createLayout=function(t,e,i,s,n,r){if(this._layouts[e])throw new Error("A layout with the provided id is currently being processed.");var o=2&this._options,h={id:e,items:i,slots:null,width:o?0:s,height:o?n:0,_grid:t,_settings:this._options};if(!i.length)return h.slots=[],this._finalizeLayout(h),void r(h);if(this._processor)return h.slots=window.Float32Array?new Float32Array(2*i.length):new Array(2*i.length),this._processor.computeLayout(h,h._settings),this._finalizeLayout(h),void r(h);var a,l,_,d=new Float32Array(4+2*i.length);for(d[0]=e,d[1]=h.width,d[2]=h.height,d[3]=h._settings,a=0,l=3;a<i.length;a++)_=i[a],d[++l]=_._width+_._marginLeft+_._marginRight,d[++l]=_._height+_._marginTop+_._marginBottom;return this._layoutQueue.push(e),this._layouts[e]=h,this._layoutCallbacks[e]=r,this._layoutWorkerData[e]=d,this._sendToWorker(),this.cancelLayout.bind(this,e)},pe.prototype.cancelLayout=function(t){if(this._layouts[t]&&(delete this._layouts[t],delete this._layoutCallbacks[t],this._layoutWorkerData[t])){delete this._layoutWorkerData[t];var e=this._layoutQueue.indexOf(t);e>-1&&this._layoutQueue.splice(e,1)}},pe.prototype.destroy=function(){for(var t in this._layoutWorkers)this._workers.push(this._layoutWorkers[t]);!function(t){for(var e,i,s=0;s<t.length;s++)(e=t[s]).onmessage=null,e.onerror=null,e.onmessageerror=null,e.terminate(),(i=fe.indexOf(e))>-1&&fe.splice(i,1);ce&&!fe.length&&(URL.revokeObjectURL(ce),ce=null)}(this._workers),this._workers.length=0,this._layoutQueue.length=0,this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={}};var me=0;function ge(t,e){var i=++me,s=0,n=0,r=!1,o=function(e){r||(n&&(s-=e-n),n=e,s>0?function(t,e){b.add(0,"debounceRead"+t,e)}(i,o):(s=n=0,t()))};return function(h){if(!r){if(!(e<=0))return!0===h?(r=!0,s=n=0,o=void 0,void function(t){b.remove(0,"debounceRead"+t)}(i)):void(s<=0?(s=e,o(0)):s=e);!0!==h&&t()}}}function ve(t){var e=Object.prototype.toString.call(t);return"[object HTMLCollection]"===e||"[object NodeList]"===e}var ye=Object.prototype.toString;function Se(t){return"object"==typeof t&&"[object Object]"===ye.call(t)}function we(){}var De,be=0;function Ae(e,i){if("string"==typeof e&&(e=document.querySelector(e)),!(e.getRootNode?e.getRootNode({composed:!0})===document:document.body.contains(e))||e===document.documentElement)throw new Error("Container element must be an existing DOM element.");var s=function(t,e){var i=Ee({},t);e&&(i=Ee(i,e));e&&e.visibleStyles?i.visibleStyles=e.visibleStyles:t&&t.visibleStyles&&(i.visibleStyles=t.visibleStyles);e&&e.hiddenStyles?i.hiddenStyles=e.hiddenStyles:t&&t.hiddenStyles&&(i.hiddenStyles=t.hiddenStyles);return i}(Ae.defaultOptions,i);s.visibleStyles=Re(s.visibleStyles),s.hiddenStyles=Re(s.hiddenStyles),C(s.dragSort)||(s.dragSort=!!s.dragSort),this._id=le(),this._element=e,this._settings=s,this._isDestroyed=!1,this._items=[],this._layout={id:0,items:[],slots:[]},this._isLayoutFinished=!0,this._nextLayoutData=null,this._emitter=new r,this._onLayoutDataReceived=this._onLayoutDataReceived.bind(this),t[this._id]=this,_t(e,s.containerClass),function(t,e){"number"!=typeof e&&(e=!0===e?0:-1);e>=0&&(t._resizeHandler=ge((function(){t.refreshItems().layout()}),e),window.addEventListener("resize",t._resizeHandler))}(this,s.layoutOnResize),this.add(function(t,e){if("*"===e)return t.children;if("string"==typeof e){for(var i=[],s=t.children,n=0;n<s.length;n++)lt(s[n],e)&&i.push(s[n]);return i}if(Array.isArray(e)||ve(e))return e;return[]}(e,s.items),{layout:!1}),s.layoutOnInit&&this.layout(!0)}function Ee(t,e){var i,s,n,r=Object.keys(e),o=r.length;for(n=0;n<o;n++)i=Se(e[s=r[n]]),Se(t[s])&&i?t[s]=Ee(Ee({},t[s]),e[s]):i?t[s]=Ee({},e[s]):Array.isArray(e[s])?t[s]=e[s].slice(0):t[s]=e[s];return t}function Re(t){var e,i,s={},n=document.documentElement.style;for(e in t)t[e]&&(i=_(n,e))&&(s[i]=t[e]);return s}function xe(t){for(var e={},i=0;i<t.length;i++)e[t[i]._id]=i;return e}function Te(t,e,i){return t[e._id]-t[i._id]}return Ae.Item=_e,Ae.ItemLayout=re,Ae.ItemVisibility=he,Ae.ItemMigrate=oe,Ae.ItemDrag=Ft,Ae.ItemDragRelease=ne,Ae.ItemDragPlaceholder=se,Ae.Emitter=r,Ae.Animator=te,Ae.Dragger=y,Ae.Packer=pe,Ae.AutoScroller=ot,Ae.defaultPacker=new pe(2),Ae.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1},layoutOnResize:150,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragHandle:null,dragStartPredicate:{distance:0,delay:0},dragAxis:"xy",dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:"move",migrateAction:"move"},dragRelease:{duration:300,easing:"ease",useDragContainer:!0},dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,createElement:null,onCreate:null,onRemove:null},dragAutoScroll:{targets:[],handle:null,threshold:50,safeZone:.2,speed:ot.smoothSpeed(1e3,2e3,2500),sortDuringScroll:!0,smoothStop:!1,onStart:null,onStop:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},Ae.prototype.on=function(t,e){return this._emitter.on(t,e),this},Ae.prototype.off=function(t,e){return this._emitter.off(t,e),this},Ae.prototype.getElement=function(){return this._element},Ae.prototype.getItem=function(t){if(this._isDestroyed||!t&&0!==t)return null;if("number"==typeof t)return this._items[t>-1?t:this._items.length+t]||null;if(t instanceof _e)return t._gridId===this._id?t:null;if(e){var i=e.get(t);return i&&i._gridId===this._id?i:null}for(var s=0;s<this._items.length;s++)if(this._items[s]._element===t)return this._items[s];return null},Ae.prototype.getItems=function(t){if(this._isDestroyed||void 0===t)return this._items.slice(0);var e,i,s=[];if(Array.isArray(t)||ve(t))for(e=0;e<t.length;e++)(i=this.getItem(t[e]))&&s.push(i);else(i=this.getItem(t))&&s.push(i);return s},Ae.prototype.refreshItems=function(t,e){if(this._isDestroyed)return this;var i,s,n,r,o=t||this._items;if(!0===e)for(r=[],i=0;i<o.length;i++)(s=o[i]).isVisible()||s.isHiding()||((n=s.getElement().style).visibility="hidden",n.display="",r.push(n));for(i=0;i<o.length;i++)o[i]._refreshDimensions(e);if(!0===e){for(i=0;i<r.length;i++)(n=r[i]).visibility="",n.display="none";r.length=0}return this},Ae.prototype.refreshSortData=function(t){if(this._isDestroyed)return this;for(var e=t||this._items,i=0;i<e.length;i++)e[i]._refreshSortData();return this},Ae.prototype.synchronize=function(){if(this._isDestroyed)return this;var t,e,i=this._items;if(!i.length)return this;for(var s=0;s<i.length;s++)(e=i[s]._element).parentNode===this._element&&(t=t||document.createDocumentFragment()).appendChild(e);return t?(this._element.appendChild(t),this._emit("synchronize"),this):this},Ae.prototype.layout=function(t,e){if(this._isDestroyed)return this;var i=this._nextLayoutData;i&&C(i.cancel)&&i.cancel();var s=be=be%16777216+1;this._nextLayoutData={id:s,instant:t,onFinish:e,cancel:null};for(var n=this._items,r=[],o=0;o<n.length;o++)n[o]._isActive&&r.push(n[o]);this._refreshDimensions();var h,a=this._width-this._borderLeft-this._borderRight,l=this._height-this._borderTop-this._borderBottom,_=this._settings.layout;return C(_)?h=_(this,s,r,a,l,this._onLayoutDataReceived):(Ae.defaultPacker.setOptions(_),h=Ae.defaultPacker.createLayout(this,s,r,a,l,this._onLayoutDataReceived)),C(h)&&this._nextLayoutData&&this._nextLayoutData.id===s&&(this._nextLayoutData.cancel=h),this},Ae.prototype.add=function(t,e){if(this._isDestroyed||!t)return[];var i,s=ve(i=t)?Array.prototype.slice.call(i):Array.prototype.concat(i);if(!s.length)return s;var n,r,o,h,a=e||{},l=a.layout?a.layout:void 0===a.layout,_=this._items,d=!1;for(h=0;h<s.length;h++)(r=s[h]).parentNode!==this._element&&(n=n||document.createDocumentFragment()).appendChild(r);for(n&&this._element.appendChild(n),h=0;h<s.length;h++)r=s[h],(o=s[h]=new _e(this,r,a.active))._isActive&&(d=!0,o._layout._skipNextAnimation=!0);for(h=0;h<s.length;h++)(o=s[h])._refreshDimensions(),o._refreshSortData();return ut(_,s,a.index),this._hasListeners("add")&&this._emit("add",s.slice(0)),d&&l&&this.layout("instant"===l,C(l)?l:void 0),s},Ae.prototype.remove=function(t,e){if(this._isDestroyed||!t.length)return[];var i,s,n,r=e||{},o=r.layout?r.layout:void 0===r.layout,h=!1,a=this.getItems(),l=[],_=[];for(n=0;n<t.length;n++)(s=t[n])._isDestroyed||-1!==(i=this._items.indexOf(s))&&(s._isActive&&(h=!0),l.push(s),_.push(a.indexOf(s)),s._destroy(r.removeElements),this._items.splice(i,1));return this._hasListeners("remove")&&this._emit("remove",l.slice(0),_),h&&o&&this.layout("instant"===o,C(o)?o:void 0),l},Ae.prototype.show=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!0,e),this},Ae.prototype.hide=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!1,e),this},Ae.prototype.filter=function(t,e){if(this._isDestroyed||!this._items.length)return this;var i,s,n=[],r=[],o="string"==typeof t,h=C(t),a=e||{},l=!0===a.instant,_=a.syncWithLayout,d=a.layout?a.layout:void 0===a.layout,u=C(a.onFinish)?a.onFinish:null,c=-1,f=we;if(u&&(f=function(){++c&&u(n.slice(0),r.slice(0))}),h||o)for(s=0;s<this._items.length;s++)i=this._items[s],(h?t(i):lt(i._element,t))?n.push(i):r.push(i);return n.length?this.show(n,{instant:l,syncWithLayout:_,onFinish:f,layout:!1}):f(),r.length?this.hide(r,{instant:l,syncWithLayout:_,onFinish:f,layout:!1}):f(),(n.length||r.length)&&(this._hasListeners("filter")&&this._emit("filter",n.slice(0),r.slice(0)),d&&this.layout("instant"===d,C(d)?d:void 0)),this},Ae.prototype.sort=function(){var t,e,i,s;function n(n,r){for(var o,h,a,l,_=0,d=0;d<t.length;d++)if(o=t[d][0],h=t[d][1],a=(n._sortData?n:n._refreshSortData())._sortData[o],l=(r._sortData?r:r._refreshSortData())._sortData[o],_="desc"===h||!h&&e?l<a?-1:l>a?1:0:a<l?-1:a>l?1:0)return _;return _||(s||(s=xe(i)),_=e?Te(s,r,n):Te(s,n,r)),_}function r(n,r){var o=e?-t(n,r):t(n,r);return o||(s||(s=xe(i)),o=e?Te(s,r,n):Te(s,n,r)),o}return function(o,h){if(this._isDestroyed||this._items.length<2)return this;var a=this._items,l=h||{},_=l.layout?l.layout:void 0===l.layout;if(e=!!l.descending,i=a.slice(0),s=null,C(o))t=o,a.sort(r);else if("string"==typeof o)t=o.trim().split(" ").filter((function(t){return t})).map((function(t){return t.split(":")})),a.sort(n);else{if(!Array.isArray(o))throw t=e=i=s=null,new Error("Invalid comparer argument provided.");a.length=0,a.push.apply(a,o)}return this._hasListeners("sort")&&this._emit("sort",a.slice(0),i),_&&this.layout("instant"===_,C(_)?_:void 0),t=e=i=s=null,this}}(),Ae.prototype.move=function(t,e,i){if(this._isDestroyed||this._items.length<2)return this;var s,n,r=this._items,o=i||{},h=o.layout?o.layout:void 0===o.layout,a="swap"===o.action,l=a?"swap":"move",_=this.getItem(t),d=this.getItem(e);return _&&d&&_!==d&&(s=r.indexOf(_),n=r.indexOf(d),a?pt(r,s,n):ft(r,s,n),this._hasListeners("move")&&this._emit("move",{item:_,fromIndex:s,toIndex:n,action:l}),h&&this.layout("instant"===h,C(h)?h:void 0)),this},Ae.prototype.send=function(t,e,i,s){if(this._isDestroyed||e._isDestroyed||this===e)return this;if(!(t=this.getItem(t)))return this;var n=s||{},r=n.appendTo||document.body,o=n.layoutSender?n.layoutSender:void 0===n.layoutSender,h=n.layoutReceiver?n.layoutReceiver:void 0===n.layoutReceiver;return t._migrate.start(e,i,r),t._migrate._isActive&&t._isActive&&(o&&this.layout("instant"===o,C(o)?o:void 0),h&&e.layout("instant"===h,C(h)?h:void 0)),this},Ae.prototype.destroy=function(e){if(this._isDestroyed)return this;var i,s,n,r=this._element,o=this._items.slice(0),h=this._layout&&this._layout.styles||{};for((n=this)._resizeHandler&&(n._resizeHandler(!0),window.removeEventListener("resize",n._resizeHandler),n._resizeHandler=null),i=0;i<o.length;i++)o[i]._destroy(e);for(s in this._items.length=0,Ot(r,this._settings.containerClass),h)r.style[s]="";return this._emit("destroy"),this._emitter.destroy(),delete t[this._id],this._isDestroyed=!0,this},Ae.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},Ae.prototype._hasListeners=function(t){return!this._isDestroyed&&this._emitter.countListeners(t)>0},Ae.prototype._updateBoundingRect=function(){var t=this._element.getBoundingClientRect();this._width=t.width,this._height=t.height,this._left=t.left,this._top=t.top,this._right=t.right,this._bottom=t.bottom},Ae.prototype._updateBorders=function(t,e,i,s){var n=this._element;t&&(this._borderLeft=H(n,"border-left-width")),e&&(this._borderRight=H(n,"border-right-width")),i&&(this._borderTop=H(n,"border-top-width")),s&&(this._borderBottom=H(n,"border-bottom-width"))},Ae.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1),this._boxSizing=O(this._element,"box-sizing")},Ae.prototype._onLayoutDataReceived=(De=[],function(t){if(!this._isDestroyed&&this._nextLayoutData&&this._nextLayoutData.id===t.id){var e,i,s,n,r=this,o=this._nextLayoutData.instant,h=this._nextLayoutData.onFinish,a=t.items.length,l=a;for(this._nextLayoutData=null,!this._isLayoutFinished&&this._hasListeners("layoutAbort")&&this._emit("layoutAbort",this._layout.items.slice(0)),this._layout=t,De.length=0,n=0;n<a;n++)(e=t.items[n])?(i=t.slots[2*n],s=t.slots[2*n+1],e._canSkipLayout(i,s)?--l:(e._left=i,e._top=s,e.isActive()&&!e.isDragging()&&De.push(e))):--l;if(t.styles&&Ut(this._element,t.styles),this._hasListeners("layoutStart")&&this._emit("layoutStart",t.items.slice(0),!0===o),!De.length)return _(),this;for(this._isLayoutFinished=!1,n=0;n<De.length&&this._layout.id===t.id;n++)De[n]._layout.start(!0===o,_);return this._layout.id===t.id&&(De.length=0),this}function _(){if(!(--l>0)){var e=r._layout.id!==t.id,i=C(o)?o:h;e||(r._isLayoutFinished=!0),C(i)&&i(t.items.slice(0),e),!e&&r._hasListeners("layoutEnd")&&r._emit("layoutEnd",t.items.slice(0))}}}),Ae.prototype._setItemsVisibility=function(t,e,i){var s,n,r=this,o=t.slice(0),h=i||{},a=!0===h.instant,l=h.onFinish,_=h.layout?h.layout:void 0===h.layout,d=o.length,u=e?"showStart":"hideStart",c=e?"showEnd":"hideEnd",f=e?"show":"hide",p=!1,m=[],g=[];if(d){for(n=0;n<o.length;n++)s=o[n],(e&&!s._isActive||!e&&s._isActive)&&(p=!0),s._layout._skipNextAnimation=!(!e||s._isActive),e&&s._visibility._isHidden&&g.push(s),e?s._addToLayout():s._removeFromLayout();g.length&&(this.refreshItems(g,!0),g.length=0),p&&!1!==h.syncWithLayout?this.on("layoutStart",v):v(),p&&_&&this.layout("instant"===_,C(_)?_:void 0)}else C(l)&&l(o);function v(){for(p&&!1!==h.syncWithLayout&&r.off("layoutStart",v),r._hasListeners(u)&&r._emit
36710(u,o.slice(0)),n=0;n<o.length;n++)o[n]._gridId===r._id?o[n]._visibility[f](a,(function(t,e){t||m.push(e),--d<1&&(C(l)&&l(m.slice(0)),r._hasListeners(c)&&r._emit(c,m.slice(0)))})):--d<1&&(C(l)&&l(m.slice(0)),r._hasListeners(c)&&r._emit(c,m.slice(0)))}},Ae}));
36711!function(t,e){"use strict";"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var u=e.createEvent("CustomEvent");return u.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),u},t.CustomEvent.prototype=t.Event.prototype),e.addEventListener("touchstart",function(t){if("true"===t.target.getAttribute("data-swipe-ignore"))return;o=t.target,l=Date.now(),n=t.touches[0].clientX,u=t.touches[0].clientY,a=0,i=0},!1),e.addEventListener("touchmove",function(t){if(!n||!u)return;var e=t.touches[0].clientX,l=t.touches[0].clientY;a=n-e,i=u-l},!1),e.addEventListener("touchend",function(t){if(o!==t.target)return;var e=parseInt(o.getAttribute("data-swipe-threshold")||"20",10),s=parseInt(o.getAttribute("data-swipe-timeout")||"500",10),r=Date.now()-l,c="";Math.abs(a)>Math.abs(i)?Math.abs(a)>e&&r<s&&(c=a>0?"swiped-left":"swiped-right"):Math.abs(i)>e&&r<s&&(c=i>0?"swiped-up":"swiped-down");""!==c&&o.dispatchEvent(new CustomEvent(c,{bubbles:!0,cancelable:!0}));n=null,u=null,l=null},!1);var n=null,u=null,a=null,i=null,l=null,o=null}(window,document);
36712var History=(function(){
36713var exports={};
36714exports.slider=function(historySlider,datemap,options){
36715options={
36716evenSpacing:options&&options.evenSpacing!=null?options.evenSpacing:false,
36717};
36718var slides=sortSlides(historySlider.slides);
36719var historySliderId=historySlider.historySliderId;
36720var arrayDatemap=createArrayDateMap();
36721var $slider=$("."+historySlider.wrapperId);
36722var $sliderImages=$slider.find("."+historySlider.imagesWrapperClass);
36723var $sliderContent=$slider.find("."+historySlider.mainContentWrapperClass);
36724var rangeSlider=$('#'+historySlider.rangeSliderId).get(0);
36725var $draggerPosition=$(".history-slider__dragger-position."+historySliderId);
36726renderSliderImages();
36727renderContent();
36728createArrows();
36729createRangeSlider();
36730registerSwipe();
36731function updatePips(value,type){
36732return datemap[value].dateFormatted;
36733}
36734function createArrayDateMap(){
36735var arr=[];
36736for(var key in datemap){
36737if(datemap.hasOwnProperty(key)){
36738arr.push(parseInt(key));
36739}
36740}
36741return arr;
36742}
36743function registerSwipe(){
36744$sliderContent.each(function(){
36745this.addEventListener("swiped-left",function(e){
36746nextSlide();
36747});
36748});
36749$sliderContent.each(function(){
36750this.addEventListener("swiped-right",function(e){
36751previousSlide();
36752});
36753});
36754$sliderImages.each(function(){
36755this.addEventListener("swiped-left",function(e){
36756nextSlide();
36757});
36758});
36759$sliderImages.each(function(){
36760this.addEventListener("swiped-right",function(e){
36761previousSlide();
36762});
36763});
36764}
36765function getRanges(){
36766const keys=Object.keys(datemap);
36767var ranges={
36768min:0,
36769max:+keys[keys.length-1],
36770};
36771for(var i=0;i<keys.length;i++){
36772const key=keys[i];
36773if(datemap.hasOwnProperty(key)){
36774if(options.evenSpacing){
36775ranges[i/(keys.length-1)*100]=parseInt(key);
36776}else{
36777ranges[datemap[key].distribution]=parseInt(key);
36778}
36779}
36780}
36781return ranges;
36782}
36783function sortSlides(slides){
36784var sorted=[];
36785for(var i=0;i<slides.length;i++){
36786var date=slides[i].date;
36787for(var key in datemap){
36788if(datemap.hasOwnProperty(key)){
36789var dateUnFormatted=datemap[key].dateUnFormatted;
36790if(dateUnFormatted==date){
36791sorted[datemap[key].index]=slides[i];
36792}
36793}
36794}
36795}
36796return sorted;
36797}
36798function createRangeSlider(){
36799noUiSlider.create(rangeSlider,{
36800start:parseInt($draggerPosition.text()),
36801snap:true,
36802range:getRanges(),
36803pips:{
36804mode:'range',
36805format:{to:updatePips}
36806},
36807});
36808rangeSlider.noUiSlider.on('update',function(values,handle){
36809if($("body.mode-editor").length){
36810$draggerPosition.text(parseInt(values[0]));
36811}
36812var slide=getSlide(values);
36813$(rangeSlider).find(".noUi-value").removeClass('noUi-value-active').each(function(i,obj){
36814if($(obj).text()==datemap[parseInt(values[0])].dateFormatted){
36815$(obj).addClass('noUi-value-active');
36816}
36817});
36818$slider.attr("data-history-slider-active-slide",slide);
36819$slider.find("."+historySlider.activeSlideClass).removeClass(historySlider.activeSlideClass);
36820$slider.find("[data-history-slider-slide='"+slide+"']").addClass(historySlider.activeSlideClass);
36821$slider.find(".history-slider__image-wrapper").css("transform","translateX("+(-slide*100)+"%)");
36822});
36823}
36824function getSlide(val){
36825return datemap[parseInt(val[0])].index;
36826}
36827function nextSlide(){
36828var current=parseInt(rangeSlider.noUiSlider.get());
36829for(var i=0;i<arrayDatemap.length;i++){
36830if(current==arrayDatemap[i]){
36831if(i+1<=arrayDatemap.length-1){
36832rangeSlider.noUiSlider.set(arrayDatemap[i+1]);
36833return;
36834}
36835rangeSlider.noUiSlider.set(arrayDatemap[0]);
36836return;
36837}
36838}
36839}
36840function previousSlide(){
36841var current=parseInt(rangeSlider.noUiSlider.get());
36842for(var i=0;i<slides.length;i++){
36843if(current==arrayDatemap[i]){
36844if(i-1>=0){
36845rangeSlider.noUiSlider.set(arrayDatemap[i-1]);
36846return;
36847}
36848rangeSlider.noUiSlider.set(arrayDatemap[arrayDatemap.length-1]);
36849return;
36850}
36851}
36852return-1;
36853}
36854function renderSliderImages(){
36855for(var i=0;i<slides.length;i++){
36856var $image=$(slides[i].image);
36857var $wrapper=$("<div></div>");
36858$wrapper.addClass(historySlider.imageWrapperClass);
36859$wrapper.attr("data-history-slider-slide",i);
36860$image.addClass(historySlider.imageClass);
36861$image.appendTo($wrapper);
36862$wrapper.appendTo($sliderImages);
36863}
36864}
36865function createArrows(){
36866var $arrows=$('<div></div>').addClass(historySlider.arrowsClass);
36867var $leftArrow=$('<div></div>').addClass(historySlider.arrowLeftClass);
36868var $rightArrow=$('<div></div>').addClass(historySlider.arrowRightClass);
36869$rightArrow.on("click",function(){
36870nextSlide();
36871});
36872$leftArrow.on("click",function(){
36873previousSlide();
36874});
36875$leftArrow.appendTo($arrows);
36876$rightArrow.appendTo($arrows);
36877$arrows.appendTo($sliderContent);
36878}
36879function renderContent(){
36880for(var i=0;i<slides.length;i++){
36881$content=$('<div></div>').addClass(historySlider.contentClass);
36882$content.attr("data-history-slider-slide",i);
36883let xhtmlEl=document.getElementById(slides[i].id);
36884if(xhtmlEl){
36885$content.append($(xhtmlEl).html());
36886}
36887$sliderContent.append($content);
36888}
36889}
36890}
36891return exports;
36892})();(function(){
36893(function(){
36894(function(){
36895(function(){
36896(function(){
36897let that=this;
36898const popupCloseEvent=new CustomEvent('c_c_advanced_popup__close_popup',{
36899bubbles:true,
36900});
36901const debounce=(func,wait,immediate)=>{
36902let timeout;
36903return function executedFunction(){
36904let context=this;
36905let args=arguments;
36906let later=function(){
36907timeout=null;
36908if(!immediate)func.apply(context,args);
36909};
36910let callNow=immediate&&!timeout;
36911clearTimeout(timeout);
36912timeout=setTimeout(later,wait);
36913if(callNow)func.apply(context,args);
36914};
36915};
36916class Banner{
36917constructor(iframeUrl,afterClose,options,parentWindow){
36918this.iframeUrl=iframeUrl;
36919this.afterClose=afterClose;
36920this.options=options;
36921this.locked=false;
36922this.parentWindow=parentWindow;
36923this.iframeLoaded=false;
36924this.transitionDuration=0;
36925this.userInteracted=false;
36926this.banner=$(`<div class="cca-popup__banner-wrapper-1 is-closed"/>`)
36927.attr("role","dialog")
36928.addClass(`banner-align-${this.options.bannerAlignment}`)
36929.css({maxWidth:`${this.options.bannerContainerMaxWidth}px`});
36930let banner_inner=$(`<div class="cca-popup__banner-wrapper-2"/>`).css({
36931marginLeft:`${this.options.bannerHorizontalPadding}px`,
36932marginRight:`${this.options.bannerHorizontalPadding}px`
36933});
36934banner_inner.appendTo(this.banner);
36935this.iframe=$(`<iframe class="cca-popup__banner-wrapper-3"/>`).attr({
36936src:this.iframeUrl,
36937frameborder:0,
36938vspace:0,
36939hspace:0,
36940title:options.iframeTitle,
36941}).css({
36942maxWidth:`${this.options.bannerContentMaxWidth}px`
36943});
36944this.iframe.appendTo(banner_inner);
36945$("body").prepend(this.banner);
36946this.calculateTransitionDuration();
36947this.open().then(()=>{
36948$(this.parentWindow).on("keydown",(e)=>{
36949if(e.keyCode===27){
36950this.close();
36951}
36952});
36953$(this.iframe.get(0).contentWindow).on("keydown",(e)=>{
36954if(e.keyCode===27){
36955this.close();
36956}
36957});
36958this.banner.on("mouseenter",()=>{
36959this.userInteracted=true;
36960});
36961this.banner.on("click",()=>{
36962this.userInteracted=true;
36963});
36964$(this.iframe.get(0).contentWindow.document.body).on("click",()=>{
36965this.userInteracted=true;
36966});
36967$(this.iframe.get(0).contentWindow.document.body).on("focusin",()=>{
36968this.userInteracted=true;
36969});
36970if(this.options.bannerCloseStrategy==='timeout'){
36971setTimeout(()=>{
36972if(!this.userInteracted)
36973this.close();
36974},this.options.bannerCloseTime*1000);
36975}
36976if(this.options.bannerCloseStrategy==='scroll'){
36977$(this.parentWindow).one("scroll",()=>{
36978this.close();
36979});
36980}
36981});
36982};
36983focusableElements(){
36984return $(this.iframe.get(0).contentWindow.document.body).find(".template-popup-inner").find('a[href], button, input, textarea, select, details').filter(":visible");
36985}
36986onResize(){
36987let iframe=this.iframe.get(0);
36988let iframeHtml=iframe.contentWindow.document.querySelector("html");
36989iframe.style.minHeight=(iframeHtml.scrollHeight+parseFloat(window.getComputedStyle(iframe).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(iframe).getPropertyValue("padding-bottom")))+"px"
36990this.applyPaddingBottomOnBody();
36991}
36992calculateTransitionDuration(){
36993let transitionPropertyArr=this.banner.css("transitionProperty").split(",").map(property=>property.toLowerCase());
36994let transformIndex=transitionPropertyArr.indexOf("transform");
36995let transitionDurationArr=this.banner.css("transitionDuration").split(",");
36996let transitionDurationStr=transitionDurationArr[transformIndex];
36997try{
36998this.transitionDuration=parseInt(transitionDurationStr.replace("s","")*1000);
36999}catch(e){
37000console.warn("Coudn't parse Transition-Duration for common.common.advanced.popup. Setting to 0");
37001}
37002}
37003registerResizeHandler(){
37004this.debouncedResize=debounce(this.onResize.bind(this),100,false);
37005this.onResize();
37006this.parentWindow.addEventListener("resize",this.debouncedResize);
37007}
37008loadIframe(){
37009return new Promise((resolve,reject)=>{
37010if(this.iframeLoaded){
37011resolve();
37012return;
37013}
37014this.iframe.on("load",()=>{
37015this.registerResizeHandler();
37016this.iframe.get(0).contentWindow.document.body.addEventListener("c_c_advanced_popup__close_popup",()=>{
37017this.close();
37018});
37019this.iframeLoaded=true;
37020resolve();
37021});
37022});
37023}
37024applyPaddingBottomOnBody(){
37025if(this.options.paddingBottomOnBody){
37026if(this.options.bannerAlignment=='bottom'){
37027let iframeHeight=this.iframe.outerHeight();
37028$("body").css("paddingBottom",`${iframeHeight}px`);
37029}
37030}
37031}
37032open(){
37033return new Promise((resolve,reject)=>{
37034if(this.locked){
37035reject();
37036return;
37037}
37038if(this.banner.is(".is-open")){
37039resolve();
37040return;
37041}
37042this.locked=true;
37043this.loadIframe().then(()=>{
37044this.banner.addClass("is-open");
37045this.banner.removeClass("is-closed");
37046setTimeout(()=>{
37047this.locked=false;
37048resolve();
37049},this.transitionDuration);
37050});
37051})
37052}
37053close(){
37054if(this.locked)return;
37055if(this.banner.is(".is-closed"))return;
37056this.locked=true;
37057this.banner.removeClass("is-open");
37058if(this.options.paddingBottomOnBody){
37059if(this.options.bannerAlignment=='bottom'){
37060$("body").css("paddingBottom",0);
37061}
37062}
37063this.afterClose();
37064setTimeout(()=>{
37065this.locked=false;
37066this.banner.addClass("is-closed");
37067},this.transitionDuration);
37068}
37069}
37070this.showPopup=(iframeUrl,afterClose,options)=>{
37071let _defaultOptions={displayMode:'lightbox',iframeTitle:'Hinweisbox'};
37072let _options=Object.assign(_defaultOptions,options||{});
37073let _displayMode=_options.displayMode||'lightbox';
37074let iframeTitle=_options.iframeTitle||'Hinweisbox';
37075let iframeTpl=`<iframe title="${iframeTitle}" id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>`;
37076if(_displayMode==='lightbox'){
37077$.fancybox({
37078type:'iframe',
37079padding:0,
37080href:iframeUrl,
37081afterClose,
37082tpl:{
37083iframe:iframeTpl,
37084},
37085afterLoad:function(){
37086if(this.content&&this.content.length>0){
37087let iframe=this.content[0];
37088iframe.contentWindow.document.body.addEventListener("c_c_advanced_popup__close_popup",function(e){
37089$.fancybox.close();
37090});
37091}
37092}
37093});
37094}
37095if(_displayMode==='banner'){
37096this.banner=new Banner(iframeUrl,afterClose,_options,window)
37097}
37098};
37099$(function(){
37100$("body").on("click","[data-popup-close-trigger]",function(i,obj){
37101this.dispatchEvent(popupCloseEvent)
37102});
37103const addListeners=function(root){
37104if(root.querySelectorAll){
37105root.querySelectorAll('a[href$="#popup"]').forEach(link=>{
37106if(!link.hasPopupClickTrigger){
37107link.addEventListener('click',function(event){
37108event.stopPropagation();
37109event.preventDefault();
37110const url=new URL(link.getAttribute("href"),document.baseURI);
37111const params=new URLSearchParams(url.search);
37112const iframeTitle=params.get("iframe_title");
37113that.showPopup(url.toString(),null,{iframeTitle});
37114});
37115link.hasPopupClickTrigger=true;
37116}
37117});
37118}
37119};
37120addListeners(document);
37121const observer=new MutationObserver(function(mutations){
37122mutations.forEach(function(mutation){
37123mutation.addedNodes.forEach(addedNode=>addListeners(addedNode));
37124});
37125});
37126observer.observe(document.body,{
37127attributes:true,
37128childList:true,
37129characterData:false,
37130subtree:true
37131});
37132});
37133}).call(this.Popup||(this.Popup={}));
37134}).call(this.Advanced||(this.Advanced={}));
37135}).call(this.Common||(this.Common={}));
37136}).call(this.Common||(this.Common={}));
37137}).call(window.Pegasus||(window.Pegasus={}));var MixedSlider=function(slider){
37138var Default=Pegasus.defineNamespace('Common.Common.Default');
37139var $slickSlider;
37140var $slickSliderWrapper;
37141var $innerCaption;
37142var slickSliderProperties;
37143var slickSliderPropertiesDefaults;
37144var $prevButton;
37145var $nextButton;
37146var slideCount;
37147var _slick;
37148var mobileBrowser=false;
37149var roundTrip=0;
37150var searchInputTimeoutIds=[];
37151var currentSearchKeyword="";
37152var initialSpeed=0;
37153var options={
37154responsiveClasses:[]
37155};
37156function onPause(slide){
37157$slickSlider.removeClass('video-is-playing');
37158}
37159function onPlay(slide){
37160$slickSlider.addClass('video-is-playing');
37161$slickSlider.find(".arrow").blur();
37162}
37163function isKeyboard(){
37164return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard'
37165}
37166function onPlayerReady(video){
37167var $video=$(video);
37168if($video.is("[data-has-volume]")){
37169var $muteToggle=$("<button class='mute-toggle'></button>");
37170var muteLabel=$slickSlider.attr("data-mute-label");
37171var unmuteLabel=$slickSlider.attr("data-unmute-label");
37172$muteToggle.attr("aria-label",unmuteLabel);
37173videoControls($video,function(controls){
37174if(controls.muted()){
37175$muteToggle.addClass("muted");
37176}else{
37177$muteToggle.addClass("loud");
37178}
37179});
37180$muteToggle.on("click",function(){
37181if($(this).is(".loud")){
37182$(this).removeClass("loud");
37183$(this).addClass("muted");
37184$(this).attr("aria-label",unmuteLabel);
37185videoControls($video,function(controls){
37186controls.mute();
37187});
37188}else{
37189$(this).addClass("loud");
37190$(this).removeClass("muted");
37191$(this).attr("aria-label",muteLabel);
37192videoControls($video,function(controls){
37193controls.unmute();
37194});
37195}
37196});
37197$video.append($muteToggle);
37198}
37199}
37200function youtubeVideo(video,callback){
37201var $video=$(video);
37202var $iframe=$video.find('iframe');
37203if($iframe.length===0)return;
37204if($iframe.is("[data-src]")){
37205$iframe.attr("src",$iframe.attr("data-src"));
37206$iframe.removeAttr("data-src");
37207Default.loadYoutubeIframeAPI().then(function(){
37208var player;
37209var videoControls={};
37210var player=new YT.Player($iframe.get(0),{
37211events:{
37212'onReady':function(event){
37213videoControls={
37214play:function(){
37215player.playVideo();
37216},
37217pause:function(){
37218player.pauseVideo();
37219},
37220mute:function(){
37221player.mute();
37222},
37223unmute:function(){
37224player.unMute();
37225},
37226muted:function(){
37227return player.isMuted();
37228},
37229duration:function(){
37230return Math.round(player.getDuration()*1000);
37231}
37232}
37233$video.data("videoControls",videoControls);
37234callback(videoControls);
37235onPlayerReady($(video));
37236},
37237'onStateChange':function(event){
37238if(event.data==YT.PlayerState.PLAYING){
37239onPlay($video);
37240}
37241if(event.data==YT.PlayerState.PAUSED||event.data===0){
37242onPause($video);
37243}
37244},
37245}
37246});
37247});
37248}else{
37249callback($video.data("videoControls"));
37250}
37251}
37252function clearSearchInputTimeouts(){
37253while((timeoutId=searchInputTimeoutIds.pop())){
37254clearTimeout(timeoutId);
37255}
37256}
37257function handleSearch(){
37258clearSearchInputTimeouts();
37259var input=$slickSlider.find(".slick-slide.slick-active .mixed-slider__search-input");
37260if(input.length===0)
37261return;
37262if(input[0].mixed_slider_user_interaction&&input[0].value.length>0)return;
37263if(input.is(":focus"))return;
37264input.val("");
37265var keywords=JSON.parse(input.attr("data-keywords"));
37266if(keywords.length===0)return;
37267currentSearchKeyword=keywords[0];
37268var i=0;
37269function typeWrite(){
37270if(i<keywords.length){
37271currentSearchKeyword=keywords[i];
37272typeWriter(keywords[i],input[0]);
37273}
37274i++;
37275if(i>keywords.length){
37276i=0;
37277}
37278var id=setTimeout(typeWrite,4000);
37279searchInputTimeoutIds.push(id);
37280}
37281typeWrite();
37282}
37283function selfhostedVideo(video,callback){
37284var player=$(video).children('video').get(0);
37285var $video=$(video);
37286if($video.data("videoControls")===undefined){
37287var videoControls={
37288play:function(){
37289$(video).data("playPromise",player.play());
37290},
37291pause:function(){
37292if($(video).data("playPromise")!==undefined){
37293$(video).data("playPromise").then(function(value){
37294player.pause();
37295}).catch(function(error){
37296});
37297}
37298},
37299mute:function(){
37300player.muted=true;
37301},
37302unmute:function(){
37303player.muted=false;
37304},
37305muted:function(){
37306return player.muted;
37307},
37308duration:function(){
37309return Math.round(player.duration*1000);
37310}
37311};
37312player.addEventListener("playing",function(){
37313onPlay($(video));
37314});
37315player.addEventListener("pause",function(){
37316onPause($(video));
37317});
37318player.addEventListener("ended",function(){
37319onPause($(video));
37320});
37321$video.data("videoControls",videoControls);
37322callback(videoControls);
37323onPlayerReady(video);
37324}else{
37325callback($video.data("videoControls"));
37326}
37327}
37328function isMobileBrowser(){
37329var check=false;
37330(function(a){
37331if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true;
37332})(navigator.userAgent||navigator.vendor||window.opera,'http://detectmobilebrowser.com/mobile');
37333return check;
37334}
37335function videoControls($video,callback){
37336if($video.length===0){
37337return false;
37338}
37339var providerName=$video.data('providername');
37340if(providerName=='YouTube'){
37341youtubeVideo($video,function(controls){
37342callback(controls);
37343});
37344}
37345if(providerName=='selfhosted'){
37346selfhostedVideo($video,function(controls){
37347callback(controls);
37348});
37349}
37350}
37351function setAutoplayspeed($el,options){
37352var $autoplaySpeedEl=$el.find("[data-autoplayspeed]");
37353if($el.is("[data-autoplayspeed]")){
37354$autoplaySpeedEl=$el;
37355}
37356if($autoplaySpeedEl.length>0){
37357var speed=$autoplaySpeedEl.attr("data-autoplayspeed");
37358options.autoplaySpeed=speed;
37359}
37360}
37361function getRotatableSlide($rotatableSlides,roundTrip){
37362var rotatableSlideCount=$rotatableSlides.length;
37363var rotatableItemIndex=((roundTrip%rotatableSlideCount)+rotatableSlideCount)%rotatableSlideCount;
37364return $rotatableSlides.eq(rotatableItemIndex);
37365}
37366function youtubeVideoPrivacyShieldObserver(){
37367var observer=new MutationObserver(function(mutations){
37368mutations.forEach(function(mutation){
37369for(var i=0;i<mutation.addedNodes.length;i++){
37370var $addedNode=$(mutation.addedNodes[i]);
37371var $target=null;
37372if($addedNode.has("iframe[data-src]")||$addedNode.is("iframe[data-src]")){
37373var $videoEl=$addedNode.closest("[data-providername='YouTube']");
37374videoControls($videoEl,function(controls){
37375controls.play();
37376});
37377}
37378}
37379});
37380});
37381$slickSlider.find("[data-providername='YouTube']").each(function(){
37382observer.observe(this,{attributes:false,childList:true,characterData:false,subtree:true});
37383});
37384}
37385function openFancybox(){
37386}
37387function openFancybox(fancyboxItem){
37388$.fancybox.open({
37389autosize:false,
37390width:1000,
37391padding:0,
37392type:'ajax',
37393href:fancyboxItem.data('fancybox-href'),
37394afterShow:function(){
37395new Clipboard('.fancybox-inner .tvm-event .socialbar .copy .link');
37396}
37397});
37398}
37399function init(){
37400mobileBrowser=isMobileBrowser();
37401$slickSlider=slider;
37402if($slickSlider.length===0)return;
37403$slickSliderWrapper=$slickSlider.closest(".slider-wrapper");
37404youtubeVideoPrivacyShieldObserver();
37405if(location.href.match(/\/:translation\//)){
37406$slickSlider.find(".mixed-slider__search-inner-wrapper").css("visibility","hidden");
37407}
37408$slickSlider.on("click","[data-fancybox-href]",function(e){
37409e.preventDefault();
37410openFancybox($(this));
37411});
37412if(mobileBrowser){
37413$slickSlider.addClass("is-mobile-browser");
37414}
37415slickSliderProperties=$slickSlider.data("slick-properties");
37416slickSliderPropertiesDefaults=JSON.parse(JSON.stringify($slickSlider.data("slick-properties")));
37417options=$.extend(options,$slickSlider.data("mixed-slider"));
37418slickSliderProperties.useTransform=true;
37419slideCount=$slickSlider.attr("data-slidecount");
37420setAutoplayspeed($slickSlider.find(".slick-slide").first(),slickSliderProperties);
37421function registerClickBehaviour(){
37422$slickSlider.on("click",".outer-slide",function(e){
37423if($(e.target).closest("a").length===0&&$(e.target).closest("button").length===0){
37424const $hrefEl=$(e.target).closest(".outer-slide[data-href]");
37425if($hrefEl.length){
37426const jsLinked=$hrefEl.is(".mixed-slider--js-linked");
37427if(jsLinked&&$("body.mode-editor").length===0){
37428var $fancyboxItem=$hrefEl.find('[data-fancybox-href]');
37429if($fancyboxItem.length===1){
37430openFancybox($fancyboxItem);
37431return;
37432}
37433window.location.href=$hrefEl.attr("data-href");
37434}
37435}
37436}
37437});
37438}
37439$slickSlider.on('init',function(event,slick){
37440registerClickBehaviour();
37441const mutationCallback=function(mutationsList,observer){
37442for(const mutation of mutationsList){
37443if(mutation.type==='attributes'&&mutation.attributeName==='data-is-user-paused'){
37444const userPaused=$slickSlider.get(0).getAttribute('data-is-user-paused');
37445const currentSlide=$slickSlider.get(0).slick.currentSlide;
37446const $currentSlide=$slickSlider.find(`[data-slick-index="${currentSlide}"]`);
37447if(userPaused==='true'){
37448if(!slickSliderProperties.disableAnimations){
37449$slickSlider.attr("data-disable-animations","true");
37450}
37451}else{
37452if(!slickSliderProperties.disableAnimations){
37453$slickSlider.removeAttr("data-disable-animations");
37454}
37455}
37456if(!slickSliderProperties.autoplay&&!slickSliderProperties.disableAnimations&&slickSliderProperties.autoplayButton){
37457$slickSlider.find(".mixed-slider__autoplay-button").toggleClass("pause",userPaused==='false').toggleClass("play",userPaused==='true');
37458}
37459$slickSlider.find(".media.is-video").each(function(){
37460videoControls($(this),function(controls){
37461if(userPaused==='true'){
37462controls.pause();
37463}
37464});
37465});
37466if($currentSlide.length){
37467videoControls($currentSlide.find(".media.is-video"),function(controls){
37468if(userPaused==='false'){
37469controls.play();
37470}
37471});
37472}
37473}
37474}
37475};
37476const observer=new MutationObserver(mutationCallback);
37477observer.observe($slickSlider.get(0),{attributes:true});
37478if(slickSliderProperties.disableAnimations){
37479$slickSlider.attr("data-disable-animations","true");
37480}
37481initialSpeed=slick.options.speed;
37482var $currentSlide=$slickSlider.find('[data-slick-index="0"]');
37483document.addEventListener("visibilitychange",function(){
37484if(!document.hidden){
37485handleSearch();
37486}
37487});
37488handleSearch();
37489$slickSlider.find(".mixed-slider__search-outer-wrapper").on("focusin",function(e){
37490$slickSlider.slick('slickPause');
37491$(this).find(".mixed-slider__search-keywords").addClass("is-active");
37492}).on("focusout",function(e){
37493if($(e.relatedTarget).closest(".mixed-slider__search-outer-wrapper").length===0){
37494$(this).find(".mixed-slider__search-keywords").removeClass("is-active")
37495}
37496});
37497$slickSlider.find(".mixed-slider__search-input").on("focus",function(e){
37498if(searchInputTimeoutIds.length>0){
37499this.value="";
37500}
37501clearSearchInputTimeouts();
37502this.mixed_slider_user_interaction=true;
37503}).on("keyup",function(e){
37504this.mixed_slider_user_interaction=true;
37505if(e.key==='Enter'||e.keyCode===13){
37506var event=new CustomEvent("searchInputValueUpdate",{
37507detail:{
37508value:this.value
37509}
37510});
37511document.body.dispatchEvent(event);
37512}
37513});
37514$slickSlider.find(".mixed-slider__search-keywords__button").on("click",function(e){
37515var input=$(this).closest(".outer-slide").find("input")[0];
37516input.mixed_slider_user_interaction=true;
37517if(searchInputTimeoutIds.length>0){
37518clearSearchInputTimeouts();
37519}
37520input.value=$(this).attr("data-keyword");
37521var event=new CustomEvent("searchInputValueUpdate",{
37522detail:{
37523value:input.value
37524}
37525});
37526document.body.dispatchEvent(event);
37527});
37528$slickSlider.find(".mixed-slider__search-button").on("click",function(e){
37529var input=$(this).closest(".outer-slide").find("input")[0];
37530input.mixed_slider_user_interaction=true;
37531if(searchInputTimeoutIds.length>0){
37532input.value=currentSearchKeyword;
37533clearSearchInputTimeouts();
37534}
37535var event=new CustomEvent("searchInputValueUpdate",{
37536detail:{
37537value:input.value
37538}
37539});
37540document.body.dispatchEvent(event);
37541});
37542$slickSlider.find("[aria-live]").removeAttr("aria-live");
37543$innerCaption=$slickSlider.find('.inner-caption');
37544$prevButton=$slickSlider.find(".prev-arrow");
37545$nextButton=$slickSlider.find(".next-arrow");
37546$slickSliderWrapper.find(".morelink").attr("aria-hidden","true");
37547_slick=slick
37548$slickSlider.find(".slick-slide").first().addClass("is-visible-slide");
37549if($slickSlider.find(".arrow").length>2){
37550$slickSlider.find(".next-arrow").on("click",function(){
37551$slickSlider.slick("slickNext");
37552});
37553$slickSlider.find(".prev-arrow").on("click",function(){
37554$slickSlider.slick("slickPrev");
37555});
37556}
37557$slickSlider.find(".outer-slide").on("click",function(e){
37558if($(e.target).is(".arrow")){
37559e.preventDefault();
37560}
37561});
37562var $firstSlide=$slickSlider.find("[data-slick-index='0']");
37563videoControls($firstSlide.find(".media.is-video"),function(controls){
37564controls.play();
37565});
37566$slickSlider.addClass("initialized");
37567});
37568$slickSlider.on('beforeChange',function(event,slick,currentSlide,nextSlide){
37569var $currentSlide=$slickSlider.find('[data-slick-index="'+currentSlide+'"]');
37570var $nextSlide=$slickSlider.find('[data-slick-index="'+nextSlide+'"]');
37571if(currentSlide===slick.slideCount-1&&nextSlide===0)
37572roundTrip++;
37573if(currentSlide===0&&nextSlide===slick.slideCount-1&&slick.slideCount>2){
37574roundTrip--;
37575}
37576const activeElement=document.activeElement;
37577const $activeElement=$(activeElement);
37578if(activeElement&&$activeElement.closest(slick.$slider).length&&($activeElement.is(".slick-arrow")||$activeElement.closest(".dots").length)&&isKeyboard()){
37579$slickSlider.slick('slickSetOption','speed','0');
37580}else{
37581$slickSlider.slick('slickSetOption',"speed",initialSpeed);
37582}
37583var $rotatableSlides=$nextSlide.find(".mixed-slider__rotatable-slide");
37584if($rotatableSlides.length>1){
37585var $nextRotatableSlide=getRotatableSlide($rotatableSlides,roundTrip);
37586$rotatableSlides.filter(".is-active").removeClass("is-active");
37587$nextRotatableSlide.addClass("is-active");
37588}
37589if($nextSlide)
37590setAutoplayspeed($nextSlide.find("[data-autoplayspeed]"),slick.options);
37591videoControls($currentSlide.find('.is-video'),function(controls){
37592controls.pause();
37593});
37594if(!$('body.mode-editor').length){
37595videoControls($nextSlide.find('.is-video'),function(controls){
37596if($slickSlider.attr("data-is-user-paused")!=='true'){
37597controls.play();
37598}
37599});
37600}
37601$slickSlider.find(".arrow").off("mouseover focus mousemove");
37602setTimeout(function(){
37603$currentSlide.removeClass("is-visible-slide");
37604},slickSliderProperties.speed);
37605$nextSlide.addClass("is-visible-slide");
37606});
37607$slickSlider.on('afterChange',function(event,slick,currentSlide){
37608var $currentSlide=$slickSlider.find('[data-slick-index="'+currentSlide+'"]');
37609var firstFocusable=$currentSlide.find('a, input, button, select, [role="link"]').not("[aria-hidden='true']").not("[role='presentation']").first();
37610let $dots=$slickSlider.find(".dots");
37611$dots.find("li.slick-active button").attr("aria-current","true");
37612$dots.find("li:not(.slick-active) button").attr("aria-current","false");
37613$slickSlider.find(".slick-slide:not(.slick-active) .mixed-slider__search-input").each(function(i,input){
37614if(!input.mixed_slider_user_interaction){
37615input.value="";
37616}
37617});
37618handleSearch();
37619let nextFocusable=null;
37620const activeElement=document.activeElement;
37621const $activeElement=$(activeElement);
37622if(activeElement&&$activeElement.closest(".outer-slide").length&&$activeElement.is(".slick-arrow")){
37623if($activeElement.is(".prev-arrow")){
37624nextFocusable=$currentSlide.find(".prev-arrow");
37625}
37626if($activeElement.is(".next-arrow")){
37627nextFocusable=$currentSlide.find(".next-arrow");
37628}
37629}
37630setTimeout(function(){
37631if(whatInput&&whatInput.ask('loose')==='keyboard'&&nextFocusable.length){
37632nextFocusable.focus();
37633}
37634},1);
37635});
37636$slickSlider.on('afterChange',function(event,slick,currentSlide){
37637var $currentSlide=$slickSlider.find('[data-slick-index="'+currentSlide+'"]');
37638});
37639slickSliderProperties.customPaging=function(slider,i){
37640let ariaCurrentValue="false";
37641if(i===0){
37642ariaCurrentValue="true";
37643}
37644return'<button aria-current="'+ariaCurrentValue+'" type="button">Slide '+(i+1)+'</button>';
37645}
37646$slickSlider.slick(slickSliderProperties);
37647}
37648function typeWriter(txt,el){
37649var i=0;
37650el.value="";
37651function typeWrite(){
37652if(i<txt.length){
37653el.value+=txt.charAt(i);
37654}
37655i++;
37656var id=setTimeout(typeWrite,50);
37657searchInputTimeoutIds.push(id);
37658}
37659typeWrite();
37660}
37661init();
37662}
37663$(function(){
37664var target=$('body')[0];
37665var observer=new MutationObserver(function(mutations){
37666mutations.forEach(function(mutation){
37667for(var i=0;i<mutation.addedNodes.length;i++){
37668var $addedNode=$(mutation.addedNodes[i]);
37669var $target=null;
37670if($addedNode.has("[data-mixed-slider]"))
37671$target=$addedNode.find("[data-mixed-slider]");
37672if($addedNode.is("[data-mixed-slider]")){
37673$target=$addedNode;
37674}
37675if($target!==null&&$target.length){
37676new MixedSlider($target);
37677}
37678}
37679});
37680});
37681var config={attributes:true,childList:true,characterData:false,subtree:true};
37682observer.observe(target,config);
37683$("[data-mixed-slider]").each(function(){
37684new MixedSlider($(this));
37685});
37686});
37687(function(e){"function"===typeof define&&define.amd?define(["jquery"],e):"undefined"!==typeof exports?module.exports=e(require("jquery")):e(jQuery)})(function(e){function W(a){if(console&&console.warn)console.warn("Scrollax: "+a);else throw"Scrollax: "+a;}function ka(a){var g=!!("pageYOffset"in a);return{width:g?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:a.offsetWidth,height:g?window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight:
37688a.offsetHeight,left:a[g?"pageXOffset":"scrollLeft"],top:a[g?"pageYOffset":"scrollTop"]}}function X(a){return(a=a.data("scrollax"))&&eval("({"+a+"})")||{}}function Y(a){var g,c;return!!(a&&"object"===typeof a&&"object"===typeof a.window&&a.window==a&&a.setTimeout&&a.alert&&(g=a.document)&&"object"===typeof g&&(c=g.defaultView||g.parentWindow)&&"object"===typeof c&&c==a)}var v=Array.prototype,C=v.push,Z=v.splice,aa=Object.prototype.hasOwnProperty,la=/[-+]?\d+(\.\d+)?/g,ma="translateX translateY rotate rotateX rotateY rotateZ skewX 
vendor: 5,027 bytes, lines 37688-37698
37688skewY scaleX scaleY".split(" "),
37689ba=e(window),ca=e(document.body),da,ea,L,M,N,q=function(a,g,c){function k(){O=fa?ca.find(ga):P.find(ga);x.length=0;r=!!t.horizontal;O.each(na);d();t.performanceTrick&&(F=fa?ca:P);u("load");return f}function l(){G&&(G=clearTimeout(G));G=setTimeout(function(){f.reload()})}function d(){var ha=x.length;t.performanceTrick&&F&&(clearTimeout(ia),Q||(F.addClass("scrollax-performance"),Q=!0),ia=setTimeout(function(){F.removeClass("scrollax-performance");Q=!1},100));if(ha){H=ka(a);for(var c=0;c<ha;c++)I=x[c],
37690y=L(I.element,a),0>y[r?"right":"bottom"]||y[r?"left":"top"]>H[r?"width":"height"]||(ja=I.options,R=ja.offset||t.offset||0,J=y[r?"right":"bottom"],z=y[r?"width":"height"],A=(z-J+R)/z,0>A&&(J=y[r?"left":"top"],z=H[r?"width":"height"],A=-1+(z-J+R)/z),1<A||-1>A||b(I,A,r));u("scroll",H)}}function b(a,b){S=a.parallaxElements;var c=S.length;if(c)for(var f=0;f<c;f++){T=S[f];var g=oa=T.element,d=b;U=T.properties||(r?{translateX:"100%"}:{translateY:"100%"});D="";for(B in U){n=U[B];if("number"===typeof n)n*=
37691d;else if("string"===typeof n)for(K=n.match(la),m=0,E=K.length;m<E;m++)n=n.replace(K[m],parseFloat(K[m]*d));if(-1!==e.inArray(B,ma))D+=B+"("+n+")";else{var k=g.style,l=B,h;"opacity"===B?(h=0>d?1+n:1-n,h=0>h?0:1<h?1:h):h=n;k[l]=h}}D&&(g.style[da]=ea+D)}}function pa(a){return"undefined"!==typeof a?"number"!==typeof a&&"string"!==typeof a||""===a||isNaN(a)?O.index(a):0<=a&&a<x.length?a:-1:-1}function u(a,b){if(h[a]){E=h[a].length;for(m=V.length=0;m<E;m++)C.call(V,h[a][m]);for(m=0;m<E;m++)V[m].call(f,
37692a,b)}}function p(a,b){for(var c=0,f=h[a].length;c<f;c++)if(h[a][c]===b)return c;return-1}var f=this,P=a&&e(a).eq(0)||ba,w=q.instances,v=null;a=P[0];e.each(w,function(b,c){b&&b.frame===a&&(v=!0)});if(!a||v)v?W("Scrollax: Scrollax has been initialized for this frame!"):W("Scrollax: Frame is not available!");else{var t=e.extend({},q.defaults,g),x=[],O=null,ga=t.parentSelector||"[data-scrollax-parent]",qa=t.elementsSelector||"[data-scrollax]",h={},V=[],G,fa=Y(a),m,E,F,ia,Q,H,r,R,y,I,ja,A,J,z,S,T,oa,U,
37693B,n,D,K;f.frame=a;f.options=t;f.parents=x;f.initialized=!1;f.reload=k;var na=function(a,b){var c=e(b),f=X(e(b)),d={};d.element=b;d.options=f;d.parallaxElements=[];c.find(qa).each(function(a,b){var c=X(e(b));c.element=b;C.call(d.parallaxElements,c)});C.call(x,d)};f.scroll=d;f.getIndex=pa;f.one=function(a,b){function c(){b.apply(f,arguments);f.off(a,c)}f.on(a,c);return f};f.on=function(a,b){if("object"===typeof a)for(var c in a){if(aa.call(a,c))f.on(c,a[c])}else if("function"===typeof b){c=a.split(" ");
37694for(var d=0,g=c.length;d<g;d++)h[c[d]]=h[c[d]]||[],-1===p(c[d],b)&&C.call(h[c[d]],b)}else if("array"===typeof b)for(c=0,d=b.length;c<d;c++)f.on(a,b[c]);return f};f.off=function(a,c){if(c instanceof Array)for(var b=0,d=c.length;b<d;b++)f.off(a,c[b]);else for(var b=a.split(" "),d=0,g=b.length;d<g;d++)if(h[b[d]]=h[b[d]]||[],"undefined"===typeof c)h[b[d]].length=0;else{var k=p(b[d],c);-1!==k&&Z.call(h[b[d]],k,1)}return f};f.set=function(a,b){e.isPlainObject(a)?e.extend(t,a):aa.call(t,a)&&(t[a]=b);k();
37695return f};f.destroy=function(){N(window,"resize",l);N(a,"scroll",d);e.each(w,function(b,c){b&&b.frame===a&&Z.call(q.instances,c,1)});x.length=0;f.initialized=!1;u("destroy");return f};f.init=function(){if(!f.initialized)return f.on(c),k(),M(window,"resize",l),M(a,"scroll",d),C.call(q.instances,f),f.initialized=!0,u("initialized"),f}}};q.instances=[];(function(){var a,g,c,k,l,d,b,e;L=function(u,p){g=u.ownerDocument||u;c=g.documentElement;k=Y(p)?p:g.defaultView||window;p=p&&p!==g?p:c;l=(k.pageYOffset||
37696c.scrollTop)-c.clientTop;d=(k.pageXOffset||c.scrollLeft)-c.clientLeft;b={top:0,left:0};if(u&&u.getBoundingClientRect){var f={},q=u.getBoundingClientRect();for(a in q)f[a]=q[a];b=f;b.width=b.right-b.left;b.height=b.bottom-b.top}else return null;if(p===k)return b;b.top+=l;b.left+=d;b.right+=d;b.bottom+=l;if(p===c)return b;e=L(p);b.left-=e.left;b.right-=e.left;b.top-=e.top;b.bottom-=e.top;return b}})();(function(){function a(){this.returnValue=!1}function g(){this.cancelBubble=!0}M=window.addEventListener?
37697function(a,g,e,d){a.addEventListener(g,e,d||!1);return e}:function(c,e,l){var d=e+l;c[d]=c[d]||function(){var b=window.event;b.target=b.srcElement;b.preventDefault=a;b.stopPropagation=g;l.call(c,b)};c.attachEvent("on"+e,c[d]);return l};N=window.removeEventListener?function(a,g,e,d){a.removeEventListener(g,e,d||!1);return e}:function(a,g,e){var d=g+e;a.detachEvent("on"+g,a[d]);try{delete a[d]}catch(b){a[d]=void 0}return e}})();(function(){function a(a){for(var e=0,d=g.length;e<d;e++){var b=g[e]?g[e]+
37698a.charAt(0).toUpperCase()+a.slice(1):a;if(null!=c.style[b])return b}}var g=["","webkit","moz","ms","o"],c=document.createElement("div");da=a("transform");ea=a("perspective")?"translateZ(0) ":""})();q.defaults={horizontal:!1,offset:0,parentSelector:null,elementsSelector:null,performanceTrick:!1};window.Scrollax=q;e.fn.Scrollax=function(a,g){var c,k;if(!e.isPlainObject(a)){if("string"===typeof a||!1===a)c=!1===a?"destroy":a,k=slice.call(arguments,1
37698);a={}}return this.each(function(l,d){var b=e.data(d,
37699"scrollax");b||c?b&&c&&b[c]&&b[c].apply(b,k):e.data(d,"scrollax",(new q(d,a,g)).init())})};e.Scrollax=function(a,e){ba.Scrollax(a,e)};var v=document.head||document.getElementsByTagName("head")[0],w=document.createElement("style");w.type="text/css";w.styleSheet?w.styleSheet.cssText=".scrollax-performance, .scrollax-performance *, .scrollax-performance *:before, .scrollax-performance *:after { pointer-events: none !important; -webkit-animation-play-state: paused !important; animation-play-state: paused !important; };":
37700w.appendChild(document.createTextNode(".scrollax-performance, .scrollax-performance *, .scrollax-performance *:before, .scrollax-performance *:after { pointer-events: none !important; -webkit-animation-play-state: paused !important; animation-play-state: paused !important; };"));v.appendChild(w);return q});
37701(function(){
37702$(function(){
37703var $html=$(document.documentElement);
37704function setMediaQueryOnly(){
37705$html.removeClass("small-only-mq medium-only-mq large-only-mq xlarge-only-mq");
37706if(Foundation.MediaQuery.atLeast('xlarge')){
37707$html.addClass("xlarge-only-mq");
37708return;
37709}
37710if(Foundation.MediaQuery.atLeast('large')){
37711$html.addClass("large-only-mq");
37712return;
37713}
37714if(Foundation.MediaQuery.atLeast('medium')){
37715$html.addClass("medium-only-mq");
37716return;
37717}
37718if(Foundation.MediaQuery.atLeast('small')){
37719$html.addClass("small-only-mq");
37720return;
37721}
37722}
37723function setMediaQueryAtLeast(){
37724$html.removeClass("small-up-mq medium-up-mq large-up-mq xlarge-up-mq");
37725if(Foundation.MediaQuery.atLeast('xlarge')){
37726$html.addClass("xlarge-up-mq");
37727}
37728if(Foundation.MediaQuery.atLeast('large')){
37729$html.addClass("large-up-mq");
37730}
37731if(Foundation.MediaQuery.atLeast('medium')){
37732$html.addClass("medium-up-mq");
37733}
37734if(Foundation.MediaQuery.atLeast('small')){
37735$html.addClass("small-up-mq");
37736}
37737}
37738window.getGridConfig=function(column){
37739var columnClass=column.attr("class");
37740var columnWidths={
37741small:12,
37742medium:12,
37743large:12,
37744xlarge:12
37745}
37746var regex=/(small)-([1-9]+[0-2]?)/g;
37747var small_query_width_arr=regex.exec(columnClass);
37748if(small_query_width_arr!=null){
37749columnWidths.small=small_query_width_arr[2];
37750columnWidths.medium=small_query_width_arr[2];
37751columnWidths.large=small_query_width_arr[2];
37752columnWidths.xlarge=small_query_width_arr[2];
37753}
37754var regex=/(medium)-([1-9]+[0-2]?)/g;
37755var medium_query_width_arr=regex.exec(columnClass);
37756if(medium_query_width_arr!=null){
37757columnWidths.medium=medium_query_width_arr[2];
37758columnWidths.large=medium_query_width_arr[2];
37759columnWidths.xlarge=medium_query_width_arr[2];
37760}
37761var regex=/(large)-([1-9]+[0-2]?)/g;
37762var large_query_width_arr=regex.exec(columnClass);
37763if(large_query_width_arr!=null){
37764columnWidths.large=large_query_width_arr[2];
37765columnWidths.xlarge=large_query_width_arr[2];
37766}
37767var regex=/(xlarge)-([1-9]+[0-2]?)/g;
37768var xlarge_query_width_arr=regex.exec(columnClass);
37769if(xlarge_query_width_arr!=null){
37770columnWidths.xlarge=xlarge_query_width_arr[2];
37771}
37772return columnWidths;
37773}
37774var mediaQueryOrders=['small-up-mq','medium-up-mq','large-up-mq','xlarge-up-mq'];
37775function getRelevantMediaquery(breakpoints){
37776var max=-1;
37777for(var i=0;i<breakpoints.length;i++){
37778var val=breakpoints[i];
37779if($html.hasClass(val)){
37780if(val.indexOf("-only")!==-1){
37781return val;
37782}
37783index=mediaQueryOrders.indexOf(val);
37784if(index>max){
37785max=index;
37786}
37787}
37788}
37789return max>-1?mediaQueryOrders[max]:null;
37790}
37791var lastMediaQuery=null;
37792function onResize(){
37793setMediaQueryOnly();
37794setMediaQueryAtLeast();
37795lastMediaQuery=Foundation.MediaQuery.current;
37796}
37797$(window).resize(function(){
37798onResize();
37799});
37800function checkRowWithHeadline(){
37801if($('body.mode-editor').length)
37802return;
37803$('.main-column__headline').each(function(i,obj){
37804if(!$(this).hasClass('main-column__headline--empty')){
37805$(this).closest(".row").addClass("has-main-column-headline");
37806}
37807});
37808}
37809function detectIE11(){
37810if(!(window.ActiveXObject)&&"ActiveXObject"in window){
37811$("html").addClass("ie11");
37812}
37813var headerElement=document.getElementById("header");
37814if(headerElement){
37815headerElement.style.opacity=".99";
37816setTimeout(function(){
37817headerElement.style.opacity="1";
37818},0);
37819}
37820}
37821window.enableGoogleTranslateWidget=function(settings){
37822settings.containerId=settings.containerId||'google-translate-container';
37823const container=document.getElementById(settings.containerId);
37824if(!container)
37825return console.error("Google Translate Widget container not found.");
37826function closeTooltip(){
37827container.removeAttribute('show-tooltip');
37828}
37829function openTooltip(){
37830container.setAttribute('show-tooltip','');
37831}
37832function shouldLoad(){
37833return localStorage.getItem('PrivacyPolicy[tracking]')!=null;
37834}
37835function loadScript(){
37836closeTooltip();
37837const script=document.createElement('script');
37838script.type="text/javascript";
37839script.src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit";
37840document.head.appendChild(script);
37841}
37842window.googleTranslateElementInit=function(){
37843container.innerHTML="";
37844const widgetConfig=Object.assign({
37845layout:google.translate.TranslateElement.InlineLayout.SIMPLE,
37846pageLanguage:'de',
37847includedLanguages:'de,en',
37848autoDisplay:false
37849},settings);
37850new google.translate.TranslateElement(
37851widgetConfig,
37852settings.containerId
37853);
37854if(settings.label){
37855const gadget=container.querySelector('.skiptranslate.goog-te-gadget');
37856const label=document.createElement('span');
37857label.className="google-translate_label";
37858label.innerText=settings.label;
37859gadget.appendChild(label);
37860}
37861};
37862container.innerHTML+='<div class="goog-te-gadget placeholder"><span class="google-translate_label">'+(settings.label||'Sprache')+'</span></div>';
37863container.tabIndex=0;
37864container.onblur=function(){
37865closeTooltip();
37866};
37867const placeholder=container.querySelector('.placeholder');
37868placeholder.onclick=function(){
37869openTooltip();
37870};
37871container.onclick=function(e){
37872if(e.target.hasAttribute('tooltip-accept')){
37873loadScript();
37874}else if(e.target.hasAttribute('tooltip-deny')){
37875if($("html").hasClass("ie11")){
37876container.focus();
37877}
37878container.blur();
37879}
37880};
37881const tooltip=container.querySelector('.google-translate-tooltip');
37882if(shouldLoad()||!tooltip){
37883loadScript();
37884}
37885};
37886detectIE11();
37887onResize();
37888checkRowWithHeadline();
37889$.Scrollax();
37890});
37891window.addEventListener('load',function(){
37892const eles=document.querySelectorAll('.chosen-container');
37893for(var i=0;i<eles.length;i++){
37894const container=eles[i];
37895const input=container.querySelector('.chosen-search-input');
37896input.addEventListener('focus',function(e){
37897if(!container.classList.contains('chosen-with-drop')){
37898container.classList.add('chosen-with-drop');
37899}
37900if(!container.classList.contains('chosen-container-activechosen-container')){
37901container.classList.add('chosen-container-activechosen-container');
37902}
37903});
37904input.addEventListener('blur',function(){
37905setTimeout(function(){
37906if(document.activeElement!==input){
37907container.classList.remove('chosen-with-drop');
37908container.classList.remove('chosen-container-activechosen-container');
37909}
37910},300);
37911});
37912}
37913});
37914})();
37915var Metropolis;
37916(function(Metropolis){
37917function filterClasses(classPatterns,classes){
37918var classesArray=classes.split(" ");
37919var classesToRemove=[];
37920for(var i=0;i<classesArray.length;i++){
37921for(var j=0;j<classPatterns.length;j++){
37922if(classesArray[i].indexOf(classPatterns[j])!==-1){
37923classesToRemove.push(classesArray[i]);
37924}
37925}
37926}
37927return classesToRemove.join(" ");
37928}
37929Metropolis.filterClasses=filterClasses;
37930function generateSpaces(options){
37931var defaultOptions={
37932el:null,
37933generateUpClasses:true,
37934cssClassTemplate:'space-%SPACE%',
37935sizes:[
37936{
37937name:'small',
37938max:600
37939},
37940{
37941name:'medium',
37942min:601,
37943max:800,
37944},
37945{
37946name:'large',
37947min:801,
37948max:1064
37949},
37950{
37951name:'xlarge',
37952min:1065
37953}
37954],
37955considerPadding:true,
37956considerMargin:true
37957};
37958var completeOptions=$.extend({},defaultOptions,options);
37959var classesToRemove=[];
37960var handleSizeClasses=function(index,el){
37961if(index<0||index>=completeOptions.sizes.length){
37962return;
37963}
37964var name=completeOptions.sizes[index].name;
37965var sizeQueryOnly=completeOptions.cssClassTemplate.replace('%SPACE%',name+"-only");
37966if(el.hasClass(sizeQueryOnly))
37967return;
37968el.removeClass(classesToRemove.join(" "));
37969el.addClass(sizeQueryOnly);
37970if(!completeOptions.generateUpClasses)
37971return;
37972for(var i=0;i<=index;i++){
37973el.addClass(completeOptions.cssClassTemplate.replace('%SPACE%',completeOptions.sizes[i].name+'-up'));
37974}
37975};
37976var generate=function(){
37977var sizes=completeOptions.sizes;
37978for(var i=0;i<sizes.length;i++){
37979if(completeOptions.generateUpClasses){
37980classesToRemove.push(completeOptions.cssClassTemplate.replace('%SPACE%',sizes[i].name+"-up"));
37981}
37982classesToRemove.push(completeOptions.cssClassTemplate.replace('%SPACE%',sizes[i].name+"-only"));
37983}
37984completeOptions.el.each(function(i,obj){
37985var width=-1;
37986if(completeOptions.considerPadding&&completeOptions.considerMargin)
37987width=$(obj).outerWidth(true);
37988if(completeOptions.considerPadding&&!completeOptions.considerMargin)
37989width=$(obj).outerWidth(false);
37990if(!completeOptions.considerPadding&&!completeOptions.considerMargin)
37991width=$(obj).width();
37992for(var i_1=0;i_1<sizes.length;i_1++){
37993var min=sizes[i_1].min;
37994var max=sizes[i_1].max;
37995var name_1=sizes[i_1].name;
37996if(min!==undefined&&max!==undefined){
37997if(width>=min&&width<=max){
37998handleSizeClasses(i_1,$(obj));
37999}
38000}
38001if(min===undefined&&max!==undefined){
38002if(width<=max){
38003handleSizeClasses(i_1,$(obj));
38004}
38005}
38006if(min!==undefined&&max===undefined){
38007if(width>=min){
38008handleSizeClasses(i_1,$(obj));
38009}
38010}
38011}
38012});
38013};
38014generate();
38015}
38016Metropolis.generateSpaces=generateSpaces;
38017function mayScrollToContent(){
38018window.addEventListener("load",function(){
38019$(function(){
38020if($('.stage-area').is(':visible')){
38021var body=document.body;
38022if(body.classList.contains('mode-editor')
38023||window.location.hash
38024||body.classList.contains('ot-common.common.ionas.core:root')
38025||body.classList.contains('ot-common.common.ionas.core:site-root')
38026||body.classList.contains('ot-common.common.ionas.core:language-root')
38027||body.scrollTop>0
38028||document.documentElement.scrollTop>0){
38029return;
38030}
38031if($('.stage-text').text().trim()){
38032return;
38033}
38034Metropolis.scrollToContent();
38035}
38036});
38037});
38038}
38039Metropolis.mayScrollToContent=mayScrollToContent;
38040function scrollToContent(){
38041if(window.location.hash){
38042return;
38043}
38044var height=0;
38045var $header=$('#header');
38046var $subnav=$('.subnav');
38047var $stickyBreadcrumb=$('[data-sticky-breadcrumb]');
38048if($header.length>0){
38049height+=$header.height();
38050}
38051if($subnav.length>0){
38052height+=$subnav.height();
38053}
38054if($stickyBreadcrumb.length>0){
38055height+=$stickyBreadcrumb.height();
38056}
38057$('html, body').animate({scrollTop:($('main').offset().top-height-60)},500);
38058}
38059Metropolis.scrollToContent=scrollToContent;
38060function headerScrollResize(offset,cssClass,domElement){
38061var cssClass=cssClass||'header-offset-top-trigger';
38062$(function(){
38063Metropolis.handleHeaderResize(offset,cssClass,domElement);
38064});
38065$(window).scroll(function(){
38066Metropolis.handleHeaderResize(offset,cssClass,domElement);
38067});
38068}
38069Metropolis.headerScrollResize=headerScrollResize;
38070function handleHeaderResize(offset,cssClass,domElement){
38071var $header=!domElement?$('.header'):$(domElement);
38072if($(document).scrollTop()>offset){
38073if(!$header.hasClass(cssClass)){
38074$header.addClass(cssClass);
38075$('body').trigger("header-offset-top-trigger");
38076}
38077}
38078else{
38079if($header.hasClass(cssClass))
38080$header.removeClass(cssClass);
38081}
38082}
38083Metropolis.handleHeaderResize=handleHeaderResize;
38084})(Metropolis||(Metropolis={}));
38085if(!Element.prototype.matches){
38086Element.prototype.matches=
38087Element.prototype.matchesSelector||
38088Element.prototype.mozMatchesSelector||
38089Element.prototype.msMatchesSelector||
38090Element.prototype.oMatchesSelector||
38091Element.prototype.webkitMatchesSelector||
38092function(selector){
38093var matches=(this.document||this.ownerDocument).querySelectorAll(selector),index=matches.length;
38094while(--index>=0&&matches.item(index)!==this)
38095;
38096return index>-1;
38097};
38098}
38099var Metropolis;
38100(function(Metropolis){
38101var Polyfill;
38102(function(Polyfill){
38103var ObjectFit;
38104(function(ObjectFit){
38105ObjectFit.APPLIED_EVENT="metropolis:polyfill:object-fit:applied";
38106var SVG_NS="http://www.w3.org/2000/svg";
38107var XLINK_NS="http://www.w3.org/1999/xlink";
38108var OBJECT_POSITION_PATTERN=/object-position:\s*(\d+\.\d+|\.?\d+)%\s+(\d+\.\d+|\.?\d+)%/;
38109function hasObjectFitSupport(){
38110var styles=(new Image()).style;
38111return styles&&undefined!==styles.objectFit;
38112}
38113var selectors=[];
38114function specificity(selector){
38115return selector.split(new RegExp("\s*[\.>~+:\[\s]\s*")).length
38116+(selector.match(" !important$")?999:0);
38117}
38118function findSelectors(){
38119selectors=[];
38120for(var styleSheetIndex=0;styleSheetIndex<document.styleSheets.length;styleSheetIndex++){
38121var styleSheet=document.styleSheets.item(styleSheetIndex);
38122try{
38123if(styleSheet.cssRules){
38124for(var ruleIndex=0;ruleIndex<styleSheet.cssRules.length;ruleIndex++){
38125try{
38126var rule=styleSheet.cssRules.item(ruleIndex);
38127if(rule.selectorText&&-1!==rule.selectorText.indexOf(".-object-fit-cover-hook ")){
38128var selector=rule.selectorText.replace(/.-object-fit-cover-hook /g,"");
38129selectors.push({
38130selector:selector,
38131objectFit:"cover",
38132specificity:specificity(selector)
38133});
38134}
38135if(rule.selectorText&&-1!==rule.selectorText.indexOf(".-object-fit-contain-hook ")){
38136var selector=rule.selectorText.replace(/.-object-fit-contain-hook /g,"");
38137selectors.push({
38138selector:selector,
38139objectFit:"contain",
38140specificity:specificity(selector)
38141});
38142}
38143if(rule.selectorText&&-1!==rule.selectorText.indexOf(".-object-fit-scale-down-hook ")){
38144var selector=rule.selectorText.replace(/.-object-fit-scale-down-hook /g,"");
38145selectors.push({
38146selector:selector,
38147objectFit:"cover",
38148specificity:specificity(selector)
38149});
38150}
38151}
38152catch(e){
38153console.warn(e);
38154}
38155}
38156}
38157}
38158catch(e){
38159console.warn(e);
38160}
38161}
38162selectors.push({
38163selector:".i4-object-cover",
38164objectFit:"cover",
38165specificity:1000
38166});
38167selectors.push({
38168selector:".i4-object-contain",
38169objectFit:"contain",
38170specificity:1000
38171});
38172selectors.push({
38173selector:".i4-object-scale-down",
38174objectFit:"scale-down",
38175specificity:1000
38176});
38177}
38178function isNecessary(image){
38179return"img"===image.tagName.toLowerCase()
38180&&!image.classList.contains("i4-object-fit-polyfill")
38181&&image.hasAttribute("src")
38182&&!image.getAttribute("src").match("^data:")
38183&&!image.hasAttribute("data-lazy-mode")
38184&&"dynamic"!==image.getAttribute("data-resize-mode");
38185}
38186function determineMeetOrSlice(image){
38187var result="slice";
38188var lastSpecificity=0;
38189for(var _i=0,selectors_1=selectors;_i<selectors_1.length;_i++){
38190var selector=selectors_1[_i];
38191if(selector.specificity>=lastSpecificity&&image.matches(selector.selector)){
38192if("cover"==selector.objectFit){
38193result="slice";
38194}
38195else{
38196result="meet";
38197}
38198lastSpecificity=selector.specificity;
38199}
38200}
38201return result;
38202}
38203function init(){
38204if(hasObjectFitSupport()){
38205return;
38206}
38207findSelectors();
38208applyOnAll(document);
38209var observer=new MutationObserver(function(mutations){
38210mutations.forEach(function(mutation){
38211if(mutation.target instanceof Element){
38212applyOnAll(mutation.target.parentElement||mutation.target);
38213}
38214});
38215});
38216observer.observe(document.body,{
38217childList:true,
38218attributes:true,
38219characterData:false,
38220subtree:true
38221});
38222}
38223ObjectFit.init=init;
38224function applyOnAll(root){
38225if(!selectors.length){
38226return;
38227}
38228var images=root.querySelectorAll(selectors.map(function(s){return s.selector;}).join(","));
38229var _loop_1=function(index){
38230var image=images.item(index);
38231if(!isNecessary(image)){
38232return"continue";
38233}
38234if(image.complete){
38235Metropolis.Polyfill.ObjectFit.apply(image);
38236}
38237else{
38238image.style.visibility="hidden";
38239image.addEventListener("load",function(){
38240Metropolis.Polyfill.ObjectFit.apply(image);
38241});
38242}
38243};
38244for(var index=0;index<images.length;index++){
38245_loop_1(index);
38246}
38247}
38248ObjectFit.applyOnAll=applyOnAll;
38249function apply(htmlImage,tries){
38250if(tries===void 0){tries=0;}
38251try{
38252var parentElement=htmlImage.parentElement;
38253if(!parentElement){
38254if(tries<5){
38255setTimeout(function(){
38256Metropolis.Polyfill.ObjectFit.apply(htmlImage,tries+1);
38257},tries*100);
38258}
38259return;
38260}
38261var width=htmlImage.naturalWidth;
38262var height=htmlImage.naturalHeight;
38263var src=htmlImage.hasAttribute("data-src")?htmlImage.getAttribute("data-src"):htmlImage.src;
38264if(!width||!height||!src){
38265if(tries<5){
38266setTimeout(function(){
38267Metropolis.Polyfill.ObjectFit.apply(htmlImage,tries+1);
38268},tries*100);
38269}
38270return;
38271}
38272var preserveAspectRatioAlign="xMidYMid";
38273var style=htmlImage.getAttribute("style")||"";
38274var objectPosition=OBJECT_POSITION_PATTERN.exec(style);
38275if(objectPosition){
38276var xPosition=parseFloat(objectPosition[1]);
38277var yPosition=parseFloat(objectPosition[2]);
38278if(xPosition<=40){
38279preserveAspectRatioAlign="xMin";
38280}
38281else if(xPosition>=60){
38282preserveAspectRatioAlign="xMax";
38283}
38284else{
38285preserveAspectRatioAlign="xMid";
38286}
38287if(yPosition<=40){
38288preserveAspectRatioAlign+="YMin";
38289}
38290else if(yPosition>=60){
38291preserveAspectRatioAlign+="YMax";
38292}
38293else{
38294preserveAspectRatioAlign+="YMid";
38295}
38296}
38297var meetOrSlice=determineMeetOrSlice(htmlImage);
38298var svgImage=document.createElementNS(SVG_NS,"image");
38299svgImage.setAttributeNS(XLINK_NS,"xlink:href",src);
38300svgImage.setAttribute("src",src);
38301svgImage.setAttribute("width",width.toString());
38302svgImage.setAttribute("height",height.toString());
38303svgImage.setAttribute("x","0");
38304svgImage.setAttribute("y","0");
38305svgImage.setAttribute("preserveAspectRatio",preserveAspectRatioAlign+" "+meetOrSlice);
38306var svg_1=document.createElementNS(SVG_NS,"svg");
38307var attributes=htmlImage.attributes;
38308for(var index=0;index<attributes.length;index++){
38309var attribute=attributes.item(index);
38310if("style"==attribute.name
38311||"src"==attribute.name
38312||"srcset"==attribute.name
38313||"sizes"==attribute.name
38314||"data-src"==attribute.name
38315||"data-srcset"==attribute.name
38316||"data-sizes"==attribute.name){
38317continue;
38318}
38319svg_1.setAttribute(attribute.name,attribute.value);
38320}
38321svg_1.setAttribute("version","1.1");
38322svg_1.removeAttribute("width");
38323svg_1.removeAttribute("height");
38324svg_1.setAttribute("viewBox","0 0 "+width+" "+height);
38325svg_1.setAttribute("preserveAspectRatio",preserveAspectRatioAlign+" "+meetOrSlice);
38326svg_1.appendChild(svgImage);
38327svg_1.classList.add("i4-object-fit-polyfill");
38328parentElement.insertBefore(svg_1,htmlImage);
38329parentElement.removeChild(htmlImage);
38330svg_1.style.visibility="";
38331svg_1.style.zoom="1";
38332var event_1=document.createEvent("Event");
38333event_1.initEvent(ObjectFit.APPLIED_EVENT,true,true);
38334event_1.image=htmlImage;
38335svg_1.dispatchEvent(event_1);
38336setTimeout(function(){
38337svg_1.style.zoom="";
38338},100);
38339}
38340catch(e){
38341(console.error||console.log)("Failed to apply object-fit polyfill",htmlImage,e);
38342}
38343}
38344ObjectFit.apply=apply;
38345})(ObjectFit=Polyfill.ObjectFit||(Polyfill.ObjectFit={}));
38346})(Polyfill=Metropolis.Polyfill||(Metropolis.Polyfill={}));
38347})(Metropolis||(Metropolis={}));
38348var Metropolis;
38349(function(Metropolis){
38350var Utils;
38351(function(Utils){
38352var EnvironmentChecker;
38353(function(EnvironmentChecker){
38354function init(){
38355var deviceAgent=navigator.userAgent.toLowerCase();
38356var agentID=deviceAgent.match(/(iphone|ipod|ipad)/);
38357if(agentID){
38358$('html').addClass('ios');
38359}
38360}
38361EnvironmentChecker.init=init;
38362})(EnvironmentChecker=Utils.EnvironmentChecker||(Utils.EnvironmentChecker={}));
38363})(Utils=Metropolis.Utils||(Metropolis.Utils={}));
38364})(Metropolis||(Metropolis={}));
38365var Metropolis;
38366(function(Metropolis){
38367var Components;
38368(function(Components){
38369var Pegasus;
38370(function(Pegasus){
38371var Accordion;
38372(function(Accordion){
38373var $window=jQuery(window);
38374function scrollContentIntoView(content){
38375var prev=content.prev();
38376var offset=(prev.is(".accordion-title")?prev:content).offset();
38377var contentTop=offset.top;
38378var scrollTop=$window.scrollTop();
38379var scrollOffset=0;
38380if($("#header").length){
38381scrollOffset+=$("#header").height();
38382}
38383if($(".subnav").length){
38384scrollOffset+=$(".subnav").height();
38385}
38386if($(".main-top__breadcrumbs").length){
38387scrollOffset+=$(".breadcrumbs").height();
38388}
38389var scrollMin=scrollTop+scrollOffset;
38390var scrollMax=scrollTop+($window.height()/2);
38391if(contentTop<scrollMin||contentTop>scrollMax){
38392$([document.documentElement,document.body]).animate({"scrollTop":contentTop-scrollOffset},300);
38393}
38394}
38395Accordion.scrollContentIntoView=scrollContentIntoView;
38396function downListener(event,content){
38397var options={
38398disableDownlistener:false
38399};
38400if(typeof Event==='function'){
38401window.dispatchEvent(new Event('reflow'));
38402}
38403else{
38404var reflowEvent=document.createEvent('Event');
38405reflowEvent.initEvent('reflow',true,true);
38406window.dispatchEvent(reflowEvent);
38407}
38408$(document.body).trigger('beforeDownlistener.accordion.metropolis',options);
38409if(!options.disableDownlistener)
38410scrollContentIntoView(content);
38411}
38412$(document.body).on("click.zf.accordion",function(event){
38413var container=jQuery(event.target).closest("[data-accordion]");
38414if(container.length&&!container.prop("scrollContentIntoView")){
38415container.prop("scrollContentIntoView",true);
38416container.on("down.zf.accordion",downListener);
38417}
38418});
38419})(Accordion=Pegasus.Accordion||(Pegasus.Accordion={}));
38420})(Pegasus=Components.Pegasus||(Components.Pegasus={}));
38421})(Components=Metropolis.Components||(Metropolis.Components={}));
38422})(Metropolis||(Metropolis={}));
38423var Metropolis;
38424(function(Metropolis){
38425var Components;
38426(function(Components){
38427var Pegasus;
38428(function(Pegasus){
38429var OpeningHours;
38430(function(OpeningHours){
38431function apply(id){
38432var $el=$('.'+id);
38433if(!$el.length)
38434return;
38435var $toggles=$el.find("[data-toggle]");
38436var $toggleHint=$el.find(".opening-hours__toggle-hint");
38437$toggles.on('click',function(){
38438toggleExpand($el[0],this,$toggleHint[0]);
38439});
38440$toggles.on('keyup',function(e){
38441if(e.keyCode===13)
38442toggleExpand($el[0],this,$toggleHint[0]);
38443});
38444}
38445OpeningHours.apply=apply;
38446function toggleExpand(ele,toggle,toggleHint){
38447if($(ele).hasClass("opening-hours__collapsed")){
38448ele.classList.remove('opening-hours__collapsed');
38449ele.classList.add('opening-hours__expanded');
38450$(toggle).attr("aria-expanded","true");
38451$(toggleHint).text($(toggleHint).attr("data-collapsed-label"));
38452}
38453else{
38454ele.classList.remove('opening-hours__expanded');
38455ele.classList.add('opening-hours__collapsed');
38456$(toggle).attr("aria-expanded","false");
38457$(toggleHint).text($(toggleHint).attr("data-expanded-label"));
38458}
38459}
38460function init(){
38461$('body').on("openingHours.ready",function(event,data){
38462apply(data.id);
38463});
38464}
38465OpeningHours.init=init;
38466})(OpeningHours=Pegasus.OpeningHours||(Pegasus.OpeningHours={}));
38467})(Pegasus=Components.Pegasus||(Components.Pegasus={}));
38468})(Components=Metropolis.Components||(Metropolis.Components={}));
38469})(Metropolis||(Metropolis={}));
38470$(function(){
38471Metropolis.Polyfill.ObjectFit.init();
38472Metropolis.Components.Pegasus.OpeningHours.init();
38473Metropolis.Utils.EnvironmentChecker.init();
38474});
38475(function(){
38476let anchorClick=false;
38477let domContentLoading=new Promise(function(resolve){
38478if(document.readyState==='complete'){
38479resolve();
38480}else{
38481window.addEventListener("load",resolve);
38482}
38483});
38484const isKeyboard=()=>{
38485return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard';
38486};
38487function getHeaderHeight(){
38488var height=0;
38489var headerHeight=$("#header").outerHeight()||0;
38490height+=headerHeight;
38491var $stickyBreadcrumb=$("[data-sticky-breadcrumb]");
38492if($stickyBreadcrumb.length>0){
38493height+=$stickyBreadcrumb.height();
38494}
38495return height;
38496}
38497function getScrollTop(el){
38498let headerHeight=getHeaderHeight();
38499let fixedOffset=45;
38500return el.offset().top-headerHeight-fixedOffset;
38501}
38502function getTarget(hash){
38503try{
38504return $(document.querySelector(hash));
38505}catch(e){
38506return undefined;
38507}
38508}
38509function scrollTo1(el){
38510$('html, body').animate({
38511scrollTop:getScrollTop(el),
38512},0);
38513}
38514domContentLoading.then(()=>{
38515if(window.location.hash){
38516var $target=getTarget(window.location.hash);
38517if($target){
38518setTimeout(()=>{
38519scrollToOuter($target);
38520},120);
38521}
38522}
38523});
38524function scrollToOuter($target){
38525if($target.length){
38526scrollTo1($target);
38527}
38528}
38529function init(){
38530if($("body.mode-editor").length>0)
38531return;
38532let $anchorLinks=$("a[href*='#']");
38533$(window).on("hashchange",function(e){
38534let $target=$(":target");
38535if($target.length){
38536setTimeout(()=>{
38537scrollToOuter($target);
38538},120);
38539}
38540})
38541$anchorLinks.on("click",function(e){
38542const focusableElements=document.querySelectorAll('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])');
38543focusableElements.length>0&&isKeyboard()
38544setTimeout(()=>{
38545if($(this).attr("href").toLowerCase()==='#top'){
38546if(focusableElements.length&&isKeyboard()){
38547focusableElements[0].focus({
38548preventScroll:true
38549});
38550}
38551return;
38552}
38553let $target=$(":target");
38554let target_id=$target.attr("id");
38555let href=$(this).attr("href");
38556if($target.length&&href.indexOf(target_id)!==-1){
38557setTimeout(()=>{
38558scrollToOuter($target);
38559},120);
38560}
38561},0);
38562});
38563}
38564$(document).ready(function(){
38565init();
38566});
38567})();
38568$(function(){
38569(function(){
38570var $button=$("button.search-input__button");
38571var $input=$("input.search-input__input");
38572if($button.length===1&&!$button.is("[aria-label]")&&$button.text().trim().length===0){
38573$button.attr("aria-label","Suche ausführen");
38574$button.attr("title","Suche ausführen");
38575var $children=$button.children();
38576if($children.length===1){
38577$children.attr("aria-hidden","true");
38578}
38579}
38580if($input.length===1&&!$input.is("[aria-label]")){
38581$input.attr("aria-label","Suchbegriff eingeben")
38582}
38583})();
38584(function(){
38585var $button=$("button.search-button");
38586if($button.length===0)return;
38587if(!$button.is("[aria-expanded]")){
38588$button.attr("aria-expanded","false");
38589}
38590if(!$button.is("[aria-label]")&&$button.text().trim().length===0){
38591$button.attr("aria-label","Suche öffnen");
38592$button.attr("title","Suche öffnen");
38593}
38594})();
38595});
38596$(function(){
38597function Greedy(target){
38598var $target=target;
38599var timeoutSet=false;
38600var $hiddenItemsContainer;
38601var $hiddenItems;
38602var $toggleButton;
38603var activeSelector=null;
38604var hiddenItemsOptions;
38605function openOnClick(){
38606return isKeyboard()||isTouch()||$("body").is(".mode-editor");
38607}
38608function openOnHover(){
38609return isMouse()&&!$("body").is(".mode-editor")
38610}
38611function isTouch(){
38612return window.matchMedia("(pointer: coarse)").matches;
38613}
38614function isMouse(){
38615return whatInput.ask()==='mouse'||whatInput.ask('loose')==='mouse';
38616}
38617function isKeyboard(){
38618return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard';
38619}
38620function isWrapping(){
38621var $item=$target.children().nextUntil(".hidden-item").last();
38622if($item.length===0){
38623return false;
38624}
38625if($item.offset().top>$target.children().first().offset().top){
38626return true;
38627}
38628return false;
38629}
38630function checkWrap(){
38631if(!timeoutSet){
38632timeoutSet=true;
38633var intervalId=setInterval(checkWrap,30);
38634setTimeout(function(){
38635clearInterval(intervalId);
38636timeoutSet=false;
38637},1000);
38638}
38639$target.children().removeClass("hidden-item");
38640$hiddenItems.find(".visible").removeClass("visible");
38641$hiddenItemsContainer.removeClass("visible");
38642while(isWrapping()){
38643var $wrappingItem=$target.children().nextUntil(".hidden-item").last();
38644$wrappingItem.addClass("hidden-item");
38645$hiddenItemsContainer.addClass("visible");
38646$hiddenItems.children().nextUntil(".visible").last().addClass("visible");
38647}
38648}
38649function shortId(){
38650var firstPart=(Math.random()*46656)|0;
38651var secondPart=(Math.random()*46656)|0;
38652firstPart=("000"+firstPart.toString(36)).slice(-3);
38653secondPart=("000"+secondPart.toString(36)).slice(-3);
38654return firstPart+secondPart;
38655}
38656function onResize(){
38657checkWrap();
38658}
38659function openHiddenItems(){
38660$hiddenItemsContainer.addClass("is-open");
38661$toggleButton.attr("aria-expanded","true");
38662}
38663function closeHiddenItems(){
38664$hiddenItemsContainer.removeClass("is-open");
38665$toggleButton.attr("aria-expanded","false");
38666}
38667function toggleHiddenItems(){
38668if($hiddenItemsContainer.is(".is-open")){
38669closeHiddenItems();
38670}else{
38671openHiddenItems();
38672}
38673}
38674function init2(){
38675var $clonedItems=$target.children().clone(true,true);
38676$clonedItems.attr("class",hiddenItemsOptions.liClass);
38677$clonedItems.find("a").attr("class",hiddenItemsOptions.linkClass);
38678$clonedItems.appendTo($hiddenItems);
38679$hiddenItems.appendTo($hiddenItemsContainer);
38680$toggleButton.attr("aria-expanded","false");
38681$toggleButton.attr("aria-controls",$hiddenItems.attr("id"));
38682$toggleButton.on("click",function(e){
38683if(!openOnClick())return;
38684toggleHiddenItems();
38685});
38686$hiddenItemsContainer.on("mouseenter",function(){
38687if(openOnHover()){
38688openHiddenItems();
38689}
38690}).on("mouseleave",function(){
38691if(openOnHover()){
38692closeHiddenItems();
38693}
38694});
38695$(window).on("resize",function(){
38696onResize();
38697});
38698onResize();
38699if(activeSelector!==null){
38700if($hiddenItems.find(activeSelector).length>0&&$hiddenItems.find(activeSelector).is(".visible")){
38701$hiddenItemsContainer.addClass("has-active-item");
38702}
38703}
38704}
38705function init(){
38706$("[data-greedy-hidden-items-target-id]").each(function(){
38707if($(this).attr("data-greedy-hidden-items-target-id")==$target.attr("id")){
38708$hiddenItemsContainer=$(this);
38709}
38710});
38711hiddenItemsOptions=$hiddenItemsContainer.data("greedy-hidden-items-options");
38712$toggleButton=$hiddenItemsContainer.find("[data-greedy-hidden-items-toggle]");
38713activeSelector=$toggleButton.attr("data-greedy-active-selector");
38714$hiddenItems=$("<ul/>").addClass(hiddenItemsOptions.ulClass);
38715$hiddenItems.attr("id","id-"+shortId());
38716$(window).on("keydown",function(e){
38717if(e.keyCode===27){
38718const $focusedElement=$(document.activeElement);
38719let $closestExpandedItem=$focusedElement.closest(".subnav__bottom-bar-hidden-items.is-open");
38720if($closestExpandedItem.length===1){
38721closeHiddenItems();
38722$toggleButton.focus();
38723}else{
38724let expandedPrimaryMenuItem=$(".subnav__bottom-bar-hidden-items.is-open");
38725if($hiddenItemsContainer.is(".is-open")){
38726closeHiddenItems();
38727}
38728}
38729}
38730});
38731$("body").on("click",function(e){
38732if($hiddenItemsContainer.is(".is-open")){
38733if(!$(e.target).closest($hiddenItemsContainer).length){
38734closeHiddenItems();
38735}
38736}
38737});
38738if($target.is("[data-greedy-callback]")){
38739var event=$target.attr("data-greedy-callback");
38740$target.on(event,function(e,data){
38741init2();
38742});
38743return;
38744}else{
38745init2();
38746}
38747}
38748init();
38749}
38750var target=$('body')[0];
38751var observer=new MutationObserver(function(mutations){
38752mutations.forEach(function(mutation){
38753for(var i=0;i<mutation.addedNodes.length;i++){
38754var $addedNode=$(mutation.addedNodes[i]);
38755var $target=null;
38756if($addedNode.is("[data-greedy]")){
38757$target=$addedNode;
38758}
38759if($target!==null&&$target.length>0){
38760Greedy($target);
38761}
38762}
38763});
38764});
38765var config={attributes:false,childList:true,characterData:false,subtree:true};
38766observer.observe(target,config);
38767$("[data-greedy]").each(function(i,el){
38768Greedy($(this));
38769});
38770});
38771var MetropolisNavigation=(function(){
38772var TIMEOUT=300;
38773var exports={};
38774exports.expandedSelector=".nav__item--is-expanded.expanded";
38775exports.expandedClass="nav__item--is-expanded expanded";
38776exports.isMobileBrowser=(function(a){
38777return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
38777sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)));
38778})(navigator.userAgent||navigator.vendor||window.opera,'http://detectmobilebrowser.com/mobile');
38779var _this=exports;
38780exports.hoverOnMouseDection=false;
38781exports.outsideClickHandlerListItems=function(e,items){
38782items.each(function(i,obj){
38783if(!$(this).is(e.target)&&$(this).has(e.target).length===0){
38784_this.closeSubmenu($(this));
38785}
38786});
38787};
38788exports.toggleSubmenu=function(el){
38789if(_this.isSubmenuOpened(el)){
38790_this.closeSubmenu(el);
38791}else{
38792_this.openSubmenu(el);
38793}
38794};
38795exports.isSubmenuOpened=function(el){
38796var navItem;
38797if(el.is(".nav__item")){
38798navItem=el;
38799}else{
38800navItem=el.parents('.nav__item--has-children')
38801}
38802return navItem.hasClass(_this.expandedClass);
38803};
38804exports.openSubmenu=function(navItem){
38805var navItem;
38806if(navItem.length===0)
38807return;
38808if(exports.openOnClick()){
38809$(".nav").addClass("nav-open-on-click");
38810exports.closeAllSubmenusExcept(navItem.parents('.nav__item--has-children').addBack(navItem));
38811}
38812if(navItem.hasClass(_this.expandedClass)){
38813return;
38814}
38815var parentItems=navItem.parents(".nav__item").addBack(navItem);
38816parentItems.addClass(_this.expandedClass);
38817parentItems.children("a").attr("aria-expanded","true");
38818parentItems.children("a").removeAttr("tabindex");
38819navItem.children("ul").children("li").children("a").removeAttr("tabindex");
38820navItem.children("ul").removeAttr("aria-hidden");
38821navItem.trigger('MetropolisNavigation.submenu.open');
38822};
38823exports.closeSubmenu=function(navItem){
38824if(navItem.length===0)
38825return;
38826if(!navItem.hasClass(_this.expandedClass))
38827return;
38828$(".nav").removeClass("nav-open-on-click");
38829var submenus=navItem.find(_this.expandedSelector).addBack(navItem);
38830submenus.children("a").attr("aria-expanded","false");
38831navItem
38832.children("ul")
38833.attr("aria-hidden","true")
38834.find("a").attr("tabindex","-1");
38835submenus.removeClass(_this.expandedClass);
38836navItem.trigger('MetropolisNavigation.submenu.close');
38837};
38838exports.closeAllSubmenusExcept=function(keepOpen){
38839var submenus=$(exports.expandedSelector);
38840if(keepOpen){
38841submenus=submenus.not(keepOpen);
38842}
38843submenus.children("a").attr("aria-expanded","false");
38844submenus.children("ul").find("a").attr("tabindex","-1");
38845submenus.children("ul").attr("aria-hidden","true");
38846submenus.removeClass(_this.expandedClass);
38847};
38848exports.createDuplicateMobileLink=function(){
38849_this.$parentItems.each(function(i,obj){
38850var $link=$(this).children('a');
38851var $ul=$(this).children('ul');
38852var $liCopy=$ul.children().first().clone();
38853$liCopy.children('ul').remove();
38854var $newLink=$liCopy.children('a');
38855$newLink.html("<span></span>");
38856$newLink.children().first().text($link.text());
38857var relevantAttrs=["href","target","rel","title"];
38858for(var i=0;i<relevantAttrs.length;i++){
38859const attribute=$link.attr(relevantAttrs[i]);
38860$newLink.attr(relevantAttrs[i],attribute||null);
38861}
38862$newLink.addClass('nav__link--is-duplicate duplicate-link');
38863$liCopy.addClass('duplicate-link nav__item--is-duplicate');
38864$newLink.removeClass('nav__link--has-redirect has-redirect');
38865$liCopy.removeClass('nav__item--has-redirect has-redirect');
38866$liCopy.removeClass(function(index,classes){
38867return Metropolis.filterClasses(['has-children','is-active','is-trail'],classes);
38868});
38869$newLink.removeClass(function(index,classes){
38870return Metropolis.filterClasses(['has-children','is-active','is-trail'],classes);
38871});
38872$liCopy.addClass(Metropolis.filterClasses(['has-redirect'],$link.parent().attr('class')));
38873$newLink.addClass(Metropolis.filterClasses(['has-redirect'],$link.attr('class')));
38874$newLink.removeAttr("aria-expanded");
38875$liCopy.prependTo($ul);
38876});
38877_this.$parentItems.each(function(i,obj){
38878var $ul=$(this).children('ul');
38879var $liCopy=$ul.children('li').eq(1).clone();
38880$liCopy.children('ul').remove();
38881var $link=$liCopy.children('a');
38882$link.html("<span>"+"Zurück"+"</span>");
38883$link.attr('href','#');
38884$link.addClass('nav__back-link');
38885$link.removeClass(function(index,classes){
38886return Metropolis.filterClasses(['has-children','is-active','is-duplicate','duplicate-link','is-trail'],classes);
38887});
38888$link.removeAttr("aria-expanded");
38889$link.attr("role","button");
38890$liCopy.removeClass(function(index,classes){
38891return Metropolis.filterClasses(['has-children','is-active','is-duplicate','duplicate-link','is-trail'],classes);
38892});
38893$liCopy.addClass('nav__back-link-item');
38894$liCopy.prependTo($ul);
38895});
38896};
38897exports.isTouch=function(){
38898return whatInput.ask('loose')=='touch';
38899}
38900exports.isMouse=function(){
38901return whatInput.ask('loose')=='mouse';
38902}
38903exports.isKeyboard=function(){
38904return whatInput.ask('loose')=='keyboard';
38905}
38906exports.openOnClick=function(){
38907return exports.isKeyboard()||exports.isTouch()||(exports.isMouse()&&!exports.hoverOnMouseDection);
38908}
38909exports.openOnHover=function(){
38910return exports.hoverOnMouseDection&&exports.isMouse()
38911}
38912exports.init=function(){
38913if(exports.isInitialized!==undefined)
38914return;
38915exports.isInitialized=true;
38916var $containerWithNavTag=$("nav.nav");
38917if($containerWithNavTag.length===1&&$containerWithNavTag.parent().closest("nav").length===1){
38918var newElem=$("<div />");
38919newElem.html($containerWithNavTag.html());
38920$.each($containerWithNavTag[0].attributes,function(){
38921newElem.attr(this.name,this.value);
38922});
38923$containerWithNavTag.replaceWith(newElem);
38924}
38925$(document).ready(function(){
38926exports.$topLevelLinks=$('.nav__link-level-1');
38927exports.$parentItems=$('.nav__item--has-children');
38928exports.$parentLinks=$('.nav__link--has-children');
38929if($(".nav").is("[data-hover-on-mouse-detection]")){
38930exports.hoverOnMouseDection=true;
38931}
38932if(exports.hoverOnMouseDection){
38933$(".nav").addClass("nav--open-on-mouseover");
38934}
38935exports.$parentLinks.on('click',function(e){
38936if(exports.openOnClick()){
38937e.preventDefault();
38938var $parentItem=$(this).parent('.nav__item--has-children');
38939exports.toggleSubmenu($parentItem);
38940}
38941}
38941);
38942$(".nav__link").focus(function(){
38943if(exports.isKeyboard()){
38944let $item=$(this).closest("ul").find(".nav__item--is-expanded");
38945exports.closeSubmenu($item);
38946}
38947});
38948exports.$parentItems.on('mouseover',function(e){
38949if(exports.openOnHover()){
38950exports.openSubmenu($(this));
38951}
38952}).on('mouseleave',function(){
38953if(exports.openOnHover()){
38954exports.closeSubmenu($(this));
38955}
38956});
38957$('.goto-first-menuitem').on('click',function(e){
38958e.preventDefault();
38959$('.goto-last-menuitem').each(function(){
38960setTimeout(this.focus.bind(this),TIMEOUT);
38961});
38962});
38963$('.goto-last-menuitem').on('click',function(e){
38964e.preventDefault();
38965$('.goto-first-menuitem').each(function(){
38966setTimeout(this.focus.bind(this),TIMEOUT);
38967});
38968});
38969$('.i4-hidden-accessible').each(function(){
38970var $i4HiddenAccessible=$(this);
38971$i4HiddenAccessible.on('focusin',function(){
38972$i4HiddenAccessible.addClass('active');
38973});
38974$i4HiddenAccessible.on('focusout',function(){
38975$i4HiddenAccessible.removeClass('active');
38976});
38977});
38978exports.createDuplicateMobileLink();
38979setTimeout(()=>{
38980$(".nav__level-2-up").attr("aria-hidden","true");
38981$(".nav__link-level-2-up").attr("tabindex","-1");
38982},0);
38983});
38984};
38985return exports;
38986})();
38987window.addEventListener('DOMContentLoaded',function(){
38988let langNavigationContainer=document.querySelectorAll('.language-navigation-container');
38989langNavigationContainer.forEach(nav=>{
38990let langCount=nav.querySelectorAll('.language-navigation__item').length;
38991if(langCount>1){
38992let activeItem=nav.querySelector('.language-navigation__item.active');
38993let current=activeItem.cloneNode(true);
38994activeItem.parentNode.removeChild(activeItem);
38995current.classList.remove('active');
38996current.classList.add('current-language');
38997current.addEventListener('click',function(e){
38998e.preventDefault();
38999e.stopPropagation();
39000if(nav.hasAttribute('expanded')){
39001nav.removeAttribute('expanded')
39002}else{
39003nav.setAttribute('expanded','');
39004}
39005});
39006nav.insertBefore(current,nav.children[0]);
39007}
39008})
39009});
39010var MetropolisMegaMenu=(function(){
39011var $target;
39012var options={
39013hasHighlightedPrimaryLink:false,
39014openOnClick:false
39015};
39016var $overlay;
39017var $overlayInner;
39018var $menuContainer;
39019var $menuTop;
39020var tabForward=false;
39021var asyncAsideLoad=false;
39022var activeRelationId=null;
39023var layoutClassesArr=[];
39024var initialized=false;
39025var $focusTrap1=null;
39026var $focusTrap2=null;
39027var hoverTimeout=100;
39028function isInViewport(el){
39029var rect=el.get(0).getBoundingClientRect();
39030let width=window.innerWidth;
39031if($overlayInner.is(".is-overflowing")){
39032width=$overlayInner.get(0).clientWidth;
39033}
39034return rect.right<=width;
39035}
39036function openOnClick(){
39037return isKeyboard()||isTouch()||options.openOnClick||$("body").is(".mode-editor");
39038}
39039function openOnHover(){
39040return!options.openOnClick&&isMouse()&&!$("body").is(".mode-editor")
39041}
39042function flyoutIntersectHandler(el){
39043var $el=el;
39044$el.removeClass("to-left");
39045if(!isInViewport($el)){
39046$el.addClass("to-left");
39047}
39048}
39049function isTouch(){
39050return whatInput.ask()==='touch'||whatInput.ask('loose')==='touch';
39051}
39052function isMouse(){
39053return whatInput.ask()==='mouse'||whatInput.ask('loose')==='mouse';
39054}
39055function isKeyboard(){
39056return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard';
39057}
39058var primaryMenuItemTimeoutId=null;
39059function primaryMenuHandler(){
39060$(".mega-menu__link-level-1-up.has-children").each(function(e){
39061var $link=$(this);
39062var $ul=$link.parent().children("ul");
39063if($ul.length>0){
39064let display=window.getComputedStyle($ul.get(0)).getPropertyValue("display").toLowerCase();
39065if(display==="none"){
39066$link.attr("data-haspopup","true");
39067$link.attr("aria-expanded","false");
39068}
39069}
39070});
39071$("[data-has-children='true'][data-header-primary-menu-link]").each(function(){
39072var $link=$(this);
39073$link.attr("data-haspopup","true");
39074$link.attr("aria-expanded","false");
39075});
39076$("[data-header-primary-menu-item]").on("mouseenter",function(){
39077if(!openOnHover()){
39078return;
39079}
39080openOverlay($(this).children("a"));
39081}).on("mouseleave",function(e){
39082if(!openOnHover())
39083return
39084clearTimeout(primaryMenuItemTimeoutId);
39085if($overlay.has(e.relatedTarget).length>0){
39086return;
39087}
39088$(this).removeClass("expanded");
39089$(this).children("a").removeClass("expanded");
39090});
39091$("[data-header-primary-menu-link]").on("focus",function(e){
39092if(isKeyboard()){
39093if(isOverlayOpen()){
39094closeOverlay();
39095}
39096}
39097});
39098$("[data-has-children='true'][data-header-primary-menu-link]").on("focusout",function(e){
39099if(isKeyboard()){
39100var relationId=$(this).attr("data-relation-id");
39101if(tabForward&&isOverlayOpen()){
39102if(relationId==activeRelationId){
39103$overlay.find("a:visible").first().focus();
39104}
39105}
39106}
39107});
39108$("[data-has-children='true'][data-header-primary-menu-link]").on("keyup",function(e){
39109if(e.keyCode===32){
39110onPrimaryMenuClick(e,$(this));
39111}
39112});
39113$("[data-has-children='true'][data-header-primary-menu-link]").on("click",function(e){
39114onPrimaryMenuClick(e,$(this));
39115});
39116}
39117function onPrimaryMenuClick(e,primaryLink){
39118if(!openOnClick())
39119return;
39120e.preventDefault();
39121toggleOverlay(primaryLink);
39122}
39123function onSubmenuClick(e,link){
39124if(!openOnClick())
39125return;
39126link.parent().siblings().removeClass("expanded").find(".expanded").removeClass("expanded");
39127if(link.hasClass("expanded")){
39128let displayMenu=window.getComputedStyle(link.next().get(0),null).getPropertyValue("display").toLowerCase();
39129if(displayMenu!=="none"){
39130e.preventDefault();
39131}
39132link.removeClass("expanded");
39133link.parent().removeClass("expanded");
39134link.next().find(".expanded").removeClass("expanded");
39135link.attr("aria-expanded","false");
39136}else{
39137let displayMenuBeforeExpanding=window.getComputedStyle(link.next().get(0),null).getPropertyValue("display").toLowerCase();
39138if(displayMenuBeforeExpanding==="none"){
39139link.addClass("expanded");
39140link.parent().addClass("expanded");
39141link.closest("ul").find("[aria-expanded='true']").attr("aria-expanded","false");
39142link.attr("aria-expanded","true");
39143let displayMenuAfterExpanding=window.getComputedStyle(link.next().get(0),null).getPropertyValue("display").toLowerCase();
39144if(displayMenuAfterExpanding!=="none"){
39145e.preventDefault();
39146}
39147}
39148}
39149flyoutIntersectHandler(link.next());
39150link.parent().addClass("clicked");
39151$(".mega-menu__hidden-duplicate-item").removeClass("mega-menu__hidden-duplicate-item");
39152var followLink=window.getComputedStyle(link.get(0),null).getPropertyValue("pointer-events").toLowerCase()==="auto";
39153if(!followLink){
39154e.preventDefault();
39155}
39156link.parent().removeClass("clicked");
39157}
39158function submenuHandler(){
39159$(".mega-menu__item-level-1-up.has-children").on("mouseenter",function(){
39160if(!openOnHover())
39161return;
39162$(this).removeClass("clicked");
39163var timeoutId=$(this).attr("data-mouseover-timeout-id");
39164if(timeoutId!==undefined){
39165clearTimeout(timeoutId);
39166}
39167$(this).closest("ul").find(".expanded").removeClass("expanded");
39168$(this).children("ul").children(".duplicate-item").addClass("mega-menu__hidden-duplicate-item");
39169$(this).addClass("expanded");
39170$(this).parent().addClass("expanded");
39171$(this).closest("ul").find("[aria-expanded='true']").attr("aria-expanded","false");
39172$(this).children("a").attr("aria-expanded","true");
39173flyoutIntersectHandler($(this).children("ul"));
39174}).on("mouseleave",function(){
39175if(!openOnHover())
39176return;
39177var $this=$(this);
39178var timeoutId=setTimeout(function(){
39179$this.removeClass("expanded");
39180$this.parent().removeClass("expanded");
39181$(this).children("a").attr("aria-expanded","false");
39182},hoverTimeout);
39183$this.attr("data-mouseover-timeout-id",timeoutId);
39184});
39185$(".mega-menu__link-level-1-up").on("focus",function(e){
39186$(this).closest("ul").find(".expanded").removeClass("expanded");
39187$(this).closest("ul").find("[aria-expanded='true']").attr("aria-expanded","false");
39188});
39189$(".mega-menu__link-level-1-up.has-children").on("keydown",function(e){
39190if(e.keyCode===32){
39191onSubmenuClick(e,$(this));
39192}
39193});
39194$(".mega-menu__link-level-1-up.has-children").on("click",function(e){
39195onSubmenuClick(e,$(this));
39196});
39197}
39198function getPrimaryLink(relationId){
39199return $("[data-header-primary-menu-link][data-relation-id='"+relationId+"']");
39200}
39201function registerOverlayOpenBehaviour(){
39202$(document).click(function(e){
39203if($("body").is(".mode-editor"))
39204return;
39205if(
39206!$(e.target).is($target)
39207&&$target.has(e.target).length===0
39208&&!$(e.target).is(".breadcrumbs")
39209&&$(".breadcrumbs").has(e.target).length===0
39210){
39211closeOverlay();
39212}
39213});
39214primaryMenuHandler();
39215submenuHandler();
39216$("[data-mega-menu-toggle]").on("click",function(){
39217toggleOverlay();
39218});
39219var targetTimeoutId=null;
39220$target.on("mouseenter focusin",function(){
39221if(targetTimeoutId!==null){
39222clearTimeout(targetTimeoutId);
39223}
39224});
39225$focusTrap1.on("focus",function(){
39226var activePrimaryLink=getPrimaryLink(activeRelationId);
39227activePrimaryLink.focus();
39228});
39229$focusTrap2.on("focus",function(){
39230var activePrimaryLink=getPrimaryLink(activeRelationId);
39231var next=activePrimaryLink.parent().next();
39232if(next.is("[data-header-primary-menu-item]")){
39233next.find("a").focus();
39234}
39235});
39236$target.on("mouseleave focusout",function(e){
39237clearTimeout(targetTimeoutId);
39238targetTimeoutId=setTimeout(function(){
39239var isI4Tag=false;
39240if($(e.relatedTarget).prop("tagName")!==undefined){
39241isI4Tag=$(e.relatedTarget).prop("tagName").toLowerCase().indexOf("i4")!==-1;
39242}
39243if($target.has(e.relatedTarget).length===0&&!isI4Tag&&!options.openOnClick&&!$("body").is(".mode-editor")){
39244closeOverlay();
39245}
39246},300);
39247});
39248}
39249function createDuplicateLink(){
39250$menuContainer.find(".mega-menu__item.has-children").each(function(){
39251var $link=$(this).children('a');
39252var relationId=$link.next().attr("data-relation-id");
39253var level=$link.attr("data-level");
39254if($(this).hasClass("mega-menu__item-level-1")&&options.hasHighlightedPrimaryLink){
39255$("<a><span>"+$link.text()+"</span></a>")
39256.addClass("mega-menu__headline highlighted-primary-link relation-id-"+relationId)
39257.attr("href",$link.attr("href"))
39258.attr("data-relation-id",relationId)
39259.appendTo($menuTop);
39260}
39261var $ul=$(this).children('ul');
39262var $liCopy=$ul.children().first().clone();
39263$liCopy.children('ul').remove();
39264var $newLink=$liCopy.children('a');
39265$newLink.html("<span>"+$link.text()+"</span>");
39266$newLink.attr('href',$link.attr('href'));
39267$newLink.addClass('duplicate-link mega-menu__link-level-'+(level+1));
39268$liCopy.prependTo($ul);
39269$liCopy.addClass('duplicate-item');
39270$liCopy.removeClass(function(index,classes){
39271return Metropolis.filterClasses(['has-children','is-active','is-trail'],classes);
39272});
39273$newLink.removeClass(function(index,classes){
39274return Metropolis.filterClasses(['has-children','is-active','is-trail'],classes);
39275});
39276});
39277}
39278function isOverlayOpen(){
39279return $overlay.is(".is-open");
39280}
39281function checkHeight(){
39282if(!isOverlayOpen())
39283return;
39284var rect=$overlay.get(0).getBoundingClientRect();
39285var isOverflowing=window.innerHeight-rect.bottom<0;
39286if(isOverflowing){
39287$overlayInner.height(window.innerHeight-rect.top);
39288$overlayInner.children(".mega-menu-overlay-content").height($overlayInner.get(0).scrollHeight);
39289$overlayInner.addClass("is-overflowing");
39290}else{
39291if(!$overlayInner.is("[style*='height']")){
39292return;
39293}
39294$overlayInner.removeClass("is-overflowing");
39295$overlayInner[0].style.removeProperty('height');
39296$overlayInner.children(".mega-menu-overlay-content").removeAttr("style");
39297checkHeight();
39298}
39299}
39300function checkLayout(){
39301closeOverlay();
39302$.each(options.layout,function(breakpoint,cssClass){
39303if(Foundation.MediaQuery.atLeast(breakpoint)){
39304$target.removeClass(layoutClassesArr.join(" "));
39305$target.addClass(cssClass);
39306}
39307});
39308}
39309function onChangedMediaQuery(){
39310var display=window.getComputedStyle($target.get(0),null).getPropertyValue("display");
39311if(display!=="none"&&!initialized){
39312initialized=true;
39313init();
39314}
39315if(display!=="none"){
39316$(".is-active-menu").removeClass("is-active-menu");
39317$target.addClass("is-active-menu");
39318}
39319}
39320function loadAsideContent(){
39321asyncAsideLoad=$target.is("[data-async-aside-load]");
39322if(!asyncAsideLoad)return Promise.resolve(true);
39323var asideColumn=$(".mega-menu-overlay__aside-column");
39324var fileIds=[];
39325var promises=[];
39326if(asideColumn.length>0){
39327var baseUrl=window.location.origin+window.parent.ionasInfo.context+"/:megamenuaside/"
39328$("[data-header-primary-menu-item]").each(function(i,obj){
39329var fileId=$(obj).attr("data-file-id");
39330if(fileIds.indexOf(fileId)===-1){
39331fileIds.push(fileId);
39332var megaMenuAsidePromise=fetch(baseUrl+fileId).then(function(response){
39333return response.text();
39334});
39335promises.push(megaMenuAsidePromise);
39336megaMenuAsidePromise.then(function(html){
39337var wrapper=$("<div/>").addClass("mega-menu__aside-item").attr("data-file-id",fileId).css("display","none");
39338asideColumn.append($(html).wrap(wrapper).parent());
39339});
39340}
39341});
39342}
39343return Promise.all(promises);
39344}
39345function init(){
39346loadAsideContent().then((function(){
39347$focusTrap1=$("<div tabindex='0' class='mega-menu-focus-trap' style='display:none'></div>");
39348$focusTrap2=$("<div tabindex='0' class='mega-menu-focus-trap-2' style='display:none'></div>");
39349$focusTrap1.insertBefore($overlay);
39350$focusTrap2.insertAfter($overlay);
39351$overlayInner.attr("tabindex","-1");
39352$(window).on("keydown",function(e){
39353if(e.keyCode===9&&e.shiftKey){
39354tabForward=false;
39355}
39356if(e.keyCode===9&&!e.shiftKey){
39357tabForward=true;
39358}
39359if(e.keyCode===27){
39360if(isOverlayOpen()){
39361let activeElement=$(document.activeElement);
39362let closestExpandedMegamenuItem=activeElement.closest(".mega-menu__subitem.expanded");
39363if(closestExpandedMegamenuItem.length>0&&closestExpandedMegamenuItem.children("a").is("[data-haspopup='true']")){
39364closestExpandedMegamenuItem.removeClass("expanded");
39365closestExpandedMegamenuItem.children("a").removeClass("expanded");
39366closestExpandedMegamenuItem.children("a").attr("aria-expanded","false");
39367closestExpandedMegamenuItem.children("a").focus();
39368}else{
39369var activeprimaryLink=getPrimaryLink(activeRelationId);
39370if(activeprimaryLink&&activeprimaryLink.length>0){
39371activeprimaryLink.focus();
39372}
39373closeOverlay();
39374}
39375}
39376}
39377});
39378options=$.extend(options,$target.data("mega-menu"));
39379if(window.getComputedStyle($overlayInner.get(0),null).getPropertyValue("max-width").toLocaleLowerCase()!=='none'){
39380$overlay.css("pointer-events","none");
39381$overlayInner.css("pointer-events","all");
39382}
39383if($target.attr("data-mega-menu-layout")!==undefined){
39384options.layout=$target.data("mega-menu-layout");
39385layoutClassesArr=[];
39386$.each(options.layout,function(breakpoint,cssClass){
39387layoutClassesArr.push(cssClass);
39388});
39389$(window).on('changed.zf.mediaquery',function(){
39390checkLayout();
39391});
39392checkLayout();
39393}
39394registerOverlayOpenBehaviour();
39395createDuplicateLink();
39396$overlay.find("a").on("focus",function(){
39397$focusTrap1.css("display","block");
39398var activePrimaryLink=getPrimaryLink(activeRelationId);
39399if(!activePrimaryLink.parent().next().is("[data-header-primary-menu-item]")){
39400$focusTrap2.css("display","none");
39401}else{
39402$focusTrap2.css("display","block");
39403}
39404});
39405$(window).resize(function(){
39406checkHeight();
39407});
39408if(options.hasHighlightedPrimaryLink){
39409$overlay.addClass("has-highlighted-primary-link");
39410}
39411if(options.openOnClick){
39412$overlay.addClass("open-on-click");
39413}
39414}));
39415}
39416function toggleOverlay(primaryLink){
39417if(isOverlayOpen()&&primaryLink&&primaryLink.length>0&&activeRelationId===primaryLink.attr("data-relation-id")){
39418closeOverlay();
39419}else{
39420openOverlay(primaryLink);
39421}
39422}
39423function openOverlay(primaryLink){
39424$('[data-header-primary-menu-item], [data-header-primary-menu-link]').removeClass("expanded");
39425var relationId="1-2";
39426var primaryItem=null;
39427if(primaryLink&&primaryLink.length>0){
39428relationId=primaryLink.attr("data-relation-id");
39429primaryItem=primaryLink.parent();
39430primaryLink.attr("aria-expanded","true");
39431}
39432if($overlay.find(".relation-id-"+relationId).length>0){
39433$overlay.attr("data-current-relation-id",relationId);
39434activeRelationId=relationId;
39435$("[data-mega-menu-toggle]").addClass("is-active");
39436if(primaryItem){
39437var fileId=primaryItem.attr("data-file-id");
39438$(".mega-menu__aside-item").css("display","none");
39439$(".mega-menu__aside-item[data-file-id='"+fileId+"']").css("display","block");
39440}
39441clearTimeout(primaryMenuItemTimeoutId);
39442var openInner=function(){
39443$overlay.find('.item-is-visible').removeClass('item-is-visible');
39444$overlay.find(".relation-id-"+relationId).addClass("item-is-visible");
39445if(primaryItem){
39446primaryLink.addClass("expanded");
39447primaryItem.addClass("expanded");
39448}
39449$overlay.addClass('is-open');
39450checkHeight();
39451};
39452if(openOnHover()){
39453primaryMenuItemTimeoutId=setTimeout(function(){
39454openInner();
39455},300);
39456}else{
39457openInner();
39458}
39459}else{
39460closeOverlay();
39461}
39462}
39463function closeOverlay(){
39464activeRelationId=null;
39465$focusTrap1.css("display","none");
39466$focusTrap2.css("display","none");
39467$(".mega-menu__aside-item").css("display","none");
39468$overlay.removeClass('is-open');
39469$target.find(".expanded").removeClass("expanded");
39470$("[data-mega-menu-toggle]").removeClass("is-active");
39471$("[aria-expanded='true'][data-header-primary-menu-link]").attr("aria-expanded","fal
39471se");
39472$overlay.find("[aria-expanded='true']").attr("aria-expanded","false");
39473}
39474function checkInit(){
39475$target=$("[data-mega-menu]");
39476if($target.length===0)
39477return;
39478$(window).on('changed.zf.mediaquery',function(){
39479onChangedMediaQuery();
39480});
39481onChangedMediaQuery();
39482}
39483$(function(){
39484$overlay=$('.mega-menu-overlay');
39485$overlayInner=$('.mega-menu-overlay-inner');
39486var $menuContainerWithNavTag=$("nav.mega-menu-overlay__main-column-bottom");
39487if($menuContainerWithNavTag.length===1){
39488var newElem=$("<div />");
39489newElem.html($menuContainerWithNavTag.html());
39490$.each($menuContainerWithNavTag[0].attributes,function(){
39491newElem.attr(this.name,this.value);
39492});
39493$menuContainerWithNavTag.replaceWith(newElem);
39494}
39495$menuContainer=$(".mega-menu-overlay__main-column-bottom");
39496$menuTop=$(".mega-menu-overlay__main-column-top");
39497checkInit();
39498});
39499function openTrailItem(e,depth){
39500}
39501return{
39502openTrailItem:openTrailItem
39503}
39504})();
39505var offcanvas_multicolumn=(function(){
39506var _exports={};
39507var $target;
39508var firstFocus=false;
39509var $parentLinks;
39510var $parentPrimaryLinks;
39511var $secondColumnParentLinks;
39512var $parentLinksSecondColumn;
39513var $firstFocusGuardSecondColumn;
39514var $lastFocusGuardSecondColumn;
39515var $lastFocusGuardFirstColumn;
39516var noToggleButton;
39517var noDuplicateLink;
39518var $triggeredBy;
39519var $firstColumn;
39520var $secondColumn;
39521var $offCanvasToggles;
39522var transitionDuration=0;
39523var isLocked=false;
39524function createDuplicateLinks(){
39525$secondColumnParentLinks.each(function(i,obj){
39526var $link=$(this);
39527var $ul=$(this).parent().children('ul').first();
39528var $liCopy=$ul.children().first().clone(false);
39529$liCopy.children('ul').remove();
39530var $button=$liCopy.children("button");
39531if($button.length){
39532$button.remove();
39533}
39534var $newLink=$liCopy.children('a');
39535$newLink.removeAttr("data-submenu-toggle");
39536if($button.length){
39537$button.remove();
39538}
39539$newLink.html("<span>"+$link.text()+"</span>");
39540var href=$link.attr("href");
39541if(href=='#'){
39542href=$link.attr("data-href");
39543}
39544$newLink.attr('href',href);
39545$liCopy.addClass('is-duplicate');
39546$liCopy.removeClass("has-children is-active is-trail is-active-leaf");
39547$liCopy.removeAttr("data-trail");
39548$liCopy.removeAttr("data-is-active");
39549$liCopy.removeAttr("data-has-redirect");
39550$newLink.removeClass("has-children is-active is-trail is-active-leaf");
39551$newLink.removeAttr("data-trail");
39552$newLink.removeAttr("data-is-active");
39553$newLink.removeAttr("data-has-redirect");
39554$liCopy.prependTo($ul);
39555});
39556}
39557function getFocusableElements(el){
39558return el.find('button, a, [role="button"], input, select, textarea, [role="link"]').not("[tabindex='-1']").filter(":visible");
39559}
39560function handleToggleOpen(){
39561$offCanvasToggles.attr("aria-expanded","true");
39562$offCanvasToggles.attr("aria-label","Hauptnavigation schließen");
39563$offCanvasToggles.attr("title","Hauptnavigation schließen");
39564$offCanvasToggles.each(function(i,toggle){
39565const activeClass=$(toggle).attr("data-active-class");
39566$(toggle).addClass(activeClass);
39567});
39568}
39569function handleToggleClose(){
39570$offCanvasToggles.attr("aria-expanded","false");
39571$offCanvasToggles.attr("aria-label","Hauptnavigation öffnen");
39572$offCanvasToggles.attr("title","Hauptnavigation öffnen");
39573$offCanvasToggles.each(function(i,toggle){
39574const activeClass=$(toggle).attr("data-active-class");
39575$(toggle).removeClass(activeClass);
39576});
39577}
39578_exports.open=function(){
39579if(isLocked)return;
39580$target.foundation("open");
39581isLocked=true;
39582handleToggleOpen();
39583setTimeout(function(){
39584var $firstFocusable=getFocusableElements($target).first();
39585$firstFocusable.focus();
39586isLocked=false;
39587},transitionDuration);
39588}
39589_exports.close=function(){
39590if(isLocked)return;
39591$target.foundation("close");
39592isLocked=true;
39593handleToggleClose();
39594setTimeout(function(){
39595isLocked=false;
39596},transitionDuration);
39597}
39598_exports.toggle=function(){
39599if(isLocked)return;
39600if(!$target.is(".is-open")){
39601_exports.open();
39602}else{
39603_exports.close();
39604}
39605}
39606function shortId(){
39607var firstPart=(Math.random()*46656)|0;
39608var secondPart=(Math.random()*46656)|0;
39609firstPart=("000"+firstPart.toString(36)).slice(-3);
39610secondPart=("000"+secondPart.toString(36)).slice(-3);
39611return firstPart+secondPart;
39612}
39613function init(){
39614$target=$("#offcanvas-multicolumn");
39615if($target.length===0)
39616return;
39617noToggleButton=$target.attr("data-no-toggle-button")!==undefined;
39618noDuplicateLink=$target.attr("data-no-duplicate-link")!==undefined;
39619$target.on("focusin",function(e){
39620var $relatedTarget=$(e.relatedTarget);
39621if(e.relatedTarget&&
39622$relatedTarget.length>0&&
39623$relatedTarget.closest($target).length===0){
39624$triggeredBy=$(e.relatedTarget);
39625}
39626firstFocus=true;
39627});
39628$target.on("focusout",function(e){
39629if(!e.relatedTarget||$(e.relatedTarget).closest($target).length===0){
39630if($triggeredBy&&$triggeredBy.length===1){
39631$triggeredBy.focus();
39632}else if($offCanvasToggles.length>0){
39633$offCanvasToggles.first().focus();
39634}
39635}
39636firstFocus=true;
39637});
39638transitionDuration=window.getComputedStyle($target.get(0),null).getPropertyValue("transition-duration");
39639transitionDuration=parseInt(transitionDuration.replace("s","")*1000);
39640$firstColumn=$target.find(".offcanvas-multicolumn__column.first");
39641$secondColumn=$target.find(".offcanvas-multicolumn__column.second");
39642$secondColumnParentLinks=$secondColumn.find(".sublink.has-children");
39643$firstFocusGuardSecondColumn=$('<div class="first-focus-guard-second-column" tabindex="0"></div>');
39644$lastFocusGuardSecondColumn=$('<div class="last-focus-guard-second-column" tabindex="0"></div>');
39645$lastFocusGuardFirstColumn=$('<div class="last-focus-guard-first-column" tabindex="0"></div>');
39646$firstColumn.append($lastFocusGuardFirstColumn);
39647$secondColumn.prepend($firstFocusGuardSecondColumn);
39648$secondColumn.append($lastFocusGuardSecondColumn);
39649$parentLinksSecondColumn=$secondColumn.find(".link-level-2-up.has-children");
39650$firstColumn.find(".link.has-children").each(function(){
39651var relationId=$(this).attr("data-relation-id");
39652var relatedElementInSecondColumn=$secondColumn.find("ul[data-relation-id='"+relationId+"']");
39653if(relatedElementInSecondColumn.length===0){
39654$(this).add($(this).parent()).removeClass("has-children").removeAttr("data-has-children");
39655}
39656});
39657$parentLinks=$target.find(".link.has-children");
39658$parentPrimaryLinks=$firstColumn.find(".link.has-children");
39659$parentLinks.each(function(){
39660var $parentLink=$(this);
39661var isFirstColumnLink=$parentLink.closest(".first").length===1;
39662var isSecondColumnLink=$parentLink.closest(".second").length===1;
39663if(isFirstColumnLink||(isSecondColumnLink&&$parentLink.is(".link-level-2-up"))){
39664var $toggleButton=$('<button data-submenu-toggle class="submenu-toggle"></button>');
39665$parentLink.after($toggleButton);
39666if(noToggleButton){
39667$toggleButton.attr("tabindex","-1");
39668$toggleButton.attr("aria-hidden","true");
39669$parentLink.attr("data-href",$parentLink.attr("href"))
39670$parentLink.attr("data-submenu-toggle","");
39671$parentLink.attr("role","button");
39672$parentLink.attr("href","#");
39673}
39674if(isFirstColumnLink){
39675var $focusGuard=$('<div class="focus-guard" tabindex="0" style="display:none"></div>');
39676$parentLink.parent().append($focusGuard);
39677}
39678}
39679});
39680if(noToggleButton&&!noDuplicateLink){
39681createDuplicateLinks();
39682}
39683var $submenuToggles=$target.find("[data-submenu-toggle]");
39684$submenuToggles.attr("title","Untermenü öffnen");
39685$submenuToggles.attr("aria-label","Untermenü öffnen");
39686$submenuToggles.attr("aria-expanded","false");
39687$submenuToggles.on("click",function(e){
39688e.preventDefault();
39689toggleMenu($(this).parent().children("a"));
39690});
39691var $oldToggles=$("[data-toggle='offcanvas-multicolumn']");
39692if($oldToggles.length>0){
39693$oldToggles.each(function(){
39694try{
39695$(this).foundation('_destroy')
39696}catch(e){}finally{
39697$(this).removeAttr("data-toggle");
39698$(this).attr("data-offcanvas-multicolumn-toggle","");
39699}
39700});
39701}
39702$offCanvasToggles=$("[data-offcanvas-multicolumn-toggle]");
39703if($offCanvasToggles.length>0){
39704$offCanvasToggles.attr("aria-expanded","false");
39705$offCanvasToggles.attr("aria-controls",$target.attr("id"));
39706$offCanvasToggles.attr("aria-label","Hauptnavigation öffnen");
39707var firstToggle=$offCanvasToggles.first();
39708var id=firstToggle.attr("id");
39709if(!id){
39710firstToggle.attr("id","offcanvas-multicolumn-toggle-"+shortId());
39711}
39712if(c_c_accessibility_navigationAnchors){
39713c_c_accessibility_navigationAnchors.addAnchor(firstToggle[0],"Hauptnavigation");
39714}
39715}
39716$target.find(".focus-guard").on("focus",function(e){
39717var $relatedTarget=$(e.relatedTarget);
39718if($relatedTarget.is($(this).parent().children("[data-submenu-toggle]"))){
39719getFocusableElements($secondColumn).first().focus();
39720}else{
39721getFocusableElements($secondColumn).last().focus();
39722}
39723});
39724$firstFocusGuardSecondColumn.on("focus",function(e){
39725var relationId=$secondColumn.find(".visible").attr("data-relation-id");
39726var $relatedLink=$firstColumn.find("[data-relation-id='"+relationId+"']");
39727var $lastFocusable=getFocusableElements($relatedLink.closest("li")).last();
39728if($lastFocusable.length===1){
39729$lastFocusable.focus();
39730}
39731});
39732$lastFocusGuardSecondColumn.on("focus",function(e){
39733var relationId=$secondColumn.find(".visible").attr("data-relation-id");
39734var $relatedLink=$firstColumn.find("[data-relation-id='"+relationId+"']");
39735var $nextItem=$relatedLink.closest("li").next();
39736if($nextItem.length===0){
39737$nextItem=$firstColumn.find(".item-level-1:first-child")
39738}
39739var $nextLink=getFocusableElements($nextItem).first();
39740$nextLink.focus();
39741});
39742$lastFocusGuardFirstColumn.on("focus",function(e){
39743var $relatedTarget=$(e.relatedTarget);
39744if($relatedTarget.closest($firstColumn).length===1){
39745$target.blur();
39746}
39747});
39748$offCanvasToggles.on("click",function(e){
39749_exports.toggle();
39750});
39751$("body").on("closed.zf.offcanvas",function(){
39752handleToggleClose();
39753});
39754if($secondColumn.find(".item-level-2-up.is-active-leaf").length>0){
39755var $leaf=$secondColumn.find(".link.is-active-leaf");
39756}
39757$target.find(".link.is-trail").each(function(){
39758expandMenu($(this));
39759});
39760var $firstLevelLinkLeaf=$firstColumn.find(".link-level-1.has-children.is-active-leaf");
39761if($firstLevelLinkLeaf.length>0){
39762toggleMenu($firstLevelLinkLeaf);
39763}
39764}
39765function expandMenu($link){
39766var isFirstColumnLink=$link.closest(".first").length===1;
39767var $toggle=$link.parent().children("[data-submenu-toggle]");
39768$link.addClass("expanded");
39769$link.parent().addClass("expanded");
39770$link.parent().siblings().removeClass("expanded");
39771$link.parent().siblings().find(".expanded").removeClass("expanded");
39772$toggle.attr("aria-label","Untermenü schließen")
39773$toggle.attr("title","Untermenü schließen");
39774$toggle.attr("aria-expanded","true");
39775$link.parent().siblings().find(".focus-guard").css("display","none");
39776var otherSubmenuToggles=$link.parent().siblings().find("[data-submenu-toggle]");
39777otherSubmenuToggles.attr("aria-label","Untermenü öffnen");
39778otherSubmenuToggles.attr("title","Untermenü öffnen");
39779otherSubmenuToggles.attr("aria-expanded","false");
39780if(isFirstColumnLink){
39781$secondColumn.find(".visible").removeClass("visible");
39782$secondColumn.find("[data-visible]").removeAttr("data-visible");
39783var relationId=$link.attr("data-relation-id");
39784var focusGuard=$link.parent().children(".focus-guard");
39785focusGuard.css("display","block");
39786var $active_ul=$secondColumn.find("[data-relation-id='"+relationId+"']");
39787$active_ul.addClass("visible");
39788$active_ul.parent("li").attr("data-visible",true);
39789$secondColumn.addClass("expanded");
39790}
39791}
39792function closeMenu($link){
39793var isFirstColumnLink=$link.closest(".first").length===1;
39794var $toggle=$link.parent().children("[data-submenu-toggle]");
39795$link.removeClass("expanded");
39796$link.parent().removeClass("expanded");
39797$toggle.attr("aria-label","Untermenü öffnen")
39798$toggle.attr("title","Untermenü öffnen");
39799$toggle.attr("aria-expanded","false");
39800if(isFirstColumnLink){
39801$secondColumn.find(".visible").removeClass("visible");
39802$secondColumn.find("[data-visible]").removeAttr("data-visible");
39803$secondColumn.removeClass("expanded");
39804var focusGuard=$link.parent().children(".focus-guard");
39805focusGuard.css("display","none");
39806}
39807}
39808function toggleMenu($link){
39809if($link.hasClass("expanded")){
39810closeMenu($link);
39811}else{
39812expandMenu($link);
39813}
39814}
39815init();
39816return _exports;
39817})();
39818(function(){
39819var $target;
39820var $parentPrimaryLinks;
39821var $activePrimaryLink;
39822var $column;
39823var $body;
39824var $offCanvasWrapper;
39825var $offCanvasContent;
39826var $offCanvasToggles;
39827var transitionDuration=0;
39828var $triggeredBy;
39829var tabForward=true;
39830var isLocked=false;
39831function isKeyboard(){
39832return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard';
39833}
39834function expandLink($link){
39835$link.addClass("expanded");
39836$link.parent().addClass("expanded");
39837$link.parent().siblings().find("> ul").slideUp();
39838$link.siblings("ul").slideDown();
39839$link.next().attr("aria-expanded","true");
39840}
39841function toggle(){
39842if(isLocked)return;
39843if(!$target.is(".is-open")){
39844open();
39845}else{
39846close();
39847}
39848}
39849function getFocusableElements(el){
39850return el.find('button, a, [role="button"], input, select, textarea, [role="link"]').not("[tabindex='-1']").filter(":visible");
39851}
39852function open(){
39853if(isLocked)return;
39854$target.foundation("open");
39855isLocked=true;
39856$offCanvasToggles.attr("aria-expanded","true");
39857$offCanvasToggles.attr("aria-label","Hauptnavigation schließen");
39858$offCanvasToggles.attr("title","Hauptnavigation schließen");
39859setTimeout(function(){
39860var $firstFocusable=getFocusableElements($target).first();
39861$firstFocusable.focus();
39862isLocked=false;
39863},transitionDuration);
39864}
39865function close(){
39866if(isLocked)return;
39867$target.foundation("close");
39868isLocked=true;
39869$offCanvasToggles.attr("aria-expanded","false");
39870$offCanvasToggles.attr("aria-label","Hauptnavigation öffnen");
39871$offCanvasToggles.attr("title","Hauptnavigation öffnen");
39872setTimeout(function(){
39873isLocked=false;
39874},transitionDuration);
39875}
39876function focusableElements(){
39877return $target.find('a[href], button, input, textarea, select, details').filter(":visible");
39878}
39879function firstFocusableElement(){
39880return focusableElements().first()
39881}
39882function lastFocusableElement(){
39883return focusableElements().last()
39884}
39885function shortId(){
39886var firstPart=(Math.random()*46656)|0;
39887var secondPart=(Math.random()*46656)|0;
39888firstPart=("000"+firstPart.toString(36)).slice(-3);
39889secondPart=("000"+secondPart.toString(36)).slice(-3);
39890return firstPart+secondPart;
39891}
39892function init(){
39893$target=$("#offcanvas-singlecolumn");
39894if($target.length===0)
39895return;
39896transitionDuration=window.getComputedStyle($target.get(0),null).getPropertyValue("transition-duration");
39897transitionDuration=parseInt(transitionDuration.replace("s","")*1000);
39898let $focusGuard1=$('<div class="offcanvas-singlecolumn__focus-guard-1 offcanvas-singlecolumn__focus-guard" tabindex="0"></div>');
39899let $focusGuard2=$('<div class="offcanvas-singlecolumn__focus-guard-2 offcanvas-singlecolumn__focus-guard" tabindex="0"></div>');
39900$target.prepend($focusGuard1);
39901$target.append($focusGuard2);
39902$focusGuard1.on("focus",function(){lastFocusableElement().focus()});
39903$focusGuard2.on("focus",function(){firstFocusableElement().focus()});
39904$target.on("focusin",function(e){
39905var $relatedTarget=$(e.relatedTarget);
39906if(e.relatedTarget&&
39907$relatedTarget.length>0&&
39908$relatedTarget.closest($target).length===0){
39909$triggeredBy=$(e.relatedTarget);
39910}
39911});
39912$(window).on("keydown",function(e){
39913if(e.keyCode===9&&e.shiftKey){
39914tabForward=false;
39915}else if(e.keyCode===9&&!e.shiftKey){
39916tabForward=true;
39917}
39918});
39919var $oldToggles=$("[data-toggle='offcanvas-singlecolumn']");
39920if($oldToggles.length>0){
39921$oldToggles.each(function(){
39922try{
39923$(this).foundation('_destroy')
39924}catch(e){}finally{
39925$(this).removeAttr("data-toggle");
39926$(this).attr("data-offcanvas-singlecolumn-toggle","");
39927}
39928});
39929}
39930$offCanvasToggles=$("[data-offcanvas-singlecolumn-toggle]");
39931if($offCanvasToggles.length>0){
39932$offCanvasToggles.attr("aria-expanded","false");
39933$offCanvasToggles.attr("aria-controls",$target.attr("id"));
39934$offCanvasToggles.attr("aria-label","Hauptnavigation öffnen");
39935$offCanvasToggles.attr("title","Hauptnavigation öffnen");
39936var firstToggle=$offCanvasToggles.first();
39937var id=firstToggle.attr("id");
39938if(!id){
39939firstToggle.attr("id","offcanvas-singlecolumn-toggle-"+shortId());
39940}
39941if(c_c_accessibility_navigationAnchors){
39942c_c_accessibility_navigationAnchors.addAnchor(firstToggle[0],"Hauptnavigation");
39943}
39944}
39945$offCanvasToggles.on("click",function(e){
39946toggle();
39947});
39948$("body").on("closed.zf.offcanvas",function(){
39949$offCanvasToggles.attr("aria-expanded","false");
39950$offCanvasToggles.attr("aria-label","Hauptnavigation öffnen");
39951$offCanvasToggles.attr("title","Hauptnavigation öffnen");
39952});
39953$(function(){
39954$target.on("closed.zf.offcanvas",function(){
39955$offCanvasToggles.first().focus();
39956});
39957});
39958preparePage();
39959$column=$target.find(".offcanvas-singlecolumn__column");
39960$parentPrimaryLinks=$column.find(".nav__link.has-children");
39961$activePrimaryLink=$column.find(".nav__link--is-active");
39962$parentPrimaryLinks.each(function(){
39963var id=$(this).attr("id");
39964var submenuId=$(this).next().attr("id");
39965var $toggleButton=$('<button aria-controls="'+submenuId+'" aria-labeledby="'+id+'" title="Untermenü öffnen" class="submenu-toggle" aria-expanded="false"></button>');
39966$(this).after($toggleButton);
39967});
39968$parentPrimaryLinks.next(".submenu-toggle").on("click",function(){
39969var $link=$(this).prev();
39970var $ul=$link.parent().find("> ul");
39971if($link.hasClass("expanded")){
39972$link.removeClass("expanded");
39973$link.parent().removeClass("expanded");
39974$(this).attr("aria-expanded","false");
39975$ul.slideUp(200);
39976}else{
39977expandLink($link);
39978$link.parent().siblings().removeClass("expanded");
39979$link.parent().siblings().children("a").removeClass("expanded");
39980$ul.slideDown(200);
39981}
39982});
39983if($activePrimaryLink.length!==0){
39984expandLink($activePrimaryLink);
39985$("ul.is-trail").each(function(i,e){
39986var $e=$(e);
39987if($e.css("display")==="none"){
39988$e.addClass("expanded");
39989$e.css("display","block");
39990}
39991});
39992}
39993}
39994function preparePage(){
39995$body=$("body");
39996$offCanvasWrapper=$("<div />",{
39997"class":"off-canvas-wrapper"
39998});
39999$offCanvasContent=$("<div />",{
40000"class":"off-canvas-content",
40001"data-off-canvas-content":""
40002});
40003$("<div />",{"class":"off-canvas-menu","data-off-canvas":""});
40004$body.wrapInner($offCanvasContent);
40005$body.append($offCanvasWrapper);
40006$offCanvasWrapper.append($("#offcanvas-singlecolumn"));
40007$offCanvasWrapper.append($(".off-canvas-content"));
40008}
40009init();
40010})();
40011$(function(){
40012var $target;
40013var options={
40014hideForBreakpoint:"large"
40015};
40016var visibleLevelClass="";
40017var $nav;
40018var $parentLinks;
40019var $trigger;
40020var initialized=false;
40021function isKeyboard(){
40022return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard';
40023}
40024function showActive(){
40025var $activeItem=$target.find("li.is-active-leaf");
40026if($activeItem.length==0){
40027$target.find('.menu__level-1').addClass('visible-slide');
40028return;
40029}
40030if($activeItem.hasClass('has-children')){
40031show($activeItem.children('ul'));
40032}else{
40033show($activeItem.parent());
40034}
40035}
40036function createDuplicateLink(){
40037$target.find(".menu__item.has-children").each(function(i,obj){
40038var $link=$(this).children('a');
40039var $ul=$(this).children('ul');
40040var $liCopy=$ul.children().first().clone();
40041$liCopy.children('ul').remove();
40042var $newLink=$liCopy.children('a');
40043$newLink.html("<span>"+$link.text()+"</span>");
40044$newLink.attr('href',$link.attr('href'));
40045$newLink.addClass('duplicate-link');
40046$liCopy.prependTo($ul);
40047$liCopy.addClass('duplicate-item');
40048$liCopy.removeClass(function(index,classes){
40049return Metropolis.filterClasses(['has-children','is-active'],classes);
40050});
40051$newLink.removeClass(function(index,classes){
40052return Metropolis.filterClasses(['has-children','is-active'],classes);
40053});
40054$newLink.removeAttr("aria-expanded");
40055var $liCopy2=$ul.children('li').eq(1).clone();
40056$liCopy2.children('ul').remove();
40057var $link=$liCopy2.children('a');
40058$link.html("<span><span aria-hidden='true'>Zurück</span><span class='show-for-sr'>Eine Ebene zurück</span></span>");
40059$link.removeAttr("aria-expanded");
40060$link.attr("role","button");
40061$link.attr('href','#');
40062$link.addClass('menu__back-link');
40063$link.removeClass(function(index,classes){
40064return Metropolis.filterClasses(['has-children','is-active','is-duplicate','duplicate-link'],classes);
40065});
40066$liCopy2.removeClass(function(index,classes){
40067return Metropolis.filterClasses(['has-children','is-active','is-duplicate','duplicate-link'],classes);
40068});
40069$liCopy2.addClass('menu_back-link-item');
40070$liCopy2.prependTo($ul);
40071});
40072}
40073function mobileNavScrollHandler(currentSlide){
40074var $currentSlide=currentSlide;
40075if($currentSlide.height()>$target.height()){
40076$target.css('overflow-y','auto');
40077}else{
40078$target.css('overflow-y','initial');
40079}
40080}
40081function updateTabIndizes(){
40082setTimeout(function(){
40083var $hiddenLinks=$target.find(".menu__link").filter(function(i,el){
40084return!$(this).closest("ul").is(".visible-slide")
40085});
40086var $visibleSlideLinks=$target.find(".menu__link").filter(function(i,el){
40087return $(this).closest("ul").is(".visible-slide")
40088});
40089$hiddenLinks.attr("tabindex","-1");
40090$hiddenLinks.attr("aria-hidden","true");
40091$visibleSlideLinks.removeAttr("aria-hidden");
40092$visibleSlideLinks.removeAttr("tabindex");
40093if(isKeyboard()){
40094$target.find(".visible-slide > li > a:visible").first().focus();
40095}
40096},1);
40097}
40098function updatePath($ul){
40099if($ul.hasClass('menu__level-1')){
40100return;
40101}
40102$target.find('.menu__level-2-up').removeClass("is-visible-menu");
40103$ul.addClass("is-visible-menu");
40104$ul.parentsUntil($('.menu__level-1'),'ul').addClass('is-visible-menu');
40105$ul.find("ul").addClass("is-visible-menu");
40106}
40107function setContainerHeight(){
40108$target.height($(window).height()-$('.header').height());
40109}
40110function registerBacklink(){
40111$target.find(".menu__back-link").on('click',function(e){
40112e.preventDefault();
40113var $parentMenu=$(this).closest('.menu__level-1-up').parent().closest('.menu__level-1-up');
40114if($parentMenu.length)
40115show($parentMenu);
40116});
40117}
40118function show($ul){
40119$('.visible-slide').removeClass('visible-slide');
40120setTimeout(function(){
40121$ul.addClass('visible-slide');
40122mobileNavScrollHandler($ul);
40123updateTabIndizes();
40124},300);
40125$nav.removeClass(visibleLevelClass);
40126var level=$ul.data("level");
40127visibleLevelClass="is-visible-level-"+level;
40128$nav.addClass(visibleLevelClass);
40129updatePath($ul);
40130}
40131function close(){
40132$target.removeClass("is-open");
40133$trigger.attr("aria-label","Hauptmenü öffnen");
40134$trigger.attr("title","Hauptmenü öffnen");
40135$trigger.removeClass("is-active");
40136}
40137function open(){
40138$target.addClass("is-open");
40139$trigger.addClass("is-active");
40140$trigger.attr("aria-label","Hauptmenü schließen");
40141$trigger.attr("title","Hauptmenü schließen");
40142setTimeout(function(){
40143if($target.hasClass("is-open")){
40144if(isKeyboard()){
40145$target.find(".visible-slide > li > a:visible").first().focus();
40146}
40147mobileNavScrollHandler($target.find('.visible-slide'));
40148}
40149},1);
40150}
40151function init(){
40152$nav=$target.find(".menu__level-1");
40153$parentLinks=$nav.find(".menu__link.has-children");
40154$trigger=$("[data-toggle='"+$target.attr("id")+"']");
40155$trigger.attr("aria-label","Hauptmenü öffnen");
40156$trigger.attr("title","Hauptmenü öffnen");
40157$target.on("on.zf.toggler",function(){
40158open();
40159});
40160$target.on("off.zf.toggler",function(){
40161close();
40162});
40163$(window).on("keydown",function(e){
40164if(e.keyCode===27){
40165let $focusedElement=$(document.activeElement);
40166close();
40167if($focusedElement.closest($target).length===1){
40168$trigger.focus();
40169}
40170}
40171});
40172createDuplicateLink();
40173registerBacklink();
40174$(window).on("resize",function(){
40175setContainerHeight();
40176});
40177setContainerHeight();
40178$parentLinks.on('click',function(e){
40179e.preventDefault();
40180show($(this).next());
40181});
40182showActive();
40183$navEle=$target.find(".mobile-menu-alpha-inner");
40184if($navEle.children().length===0){
40185var $headerToggleButton=$(".header-menu-toggle-button-outer");
40186$headerToggleButton.addClass("hide");
40187}
40188}
40189function onChangedMediaQuery(){
40190if(!Foundation.MediaQuery.atLeast(options.hideForBreakpoint)&&!initialized){
40191initialized=true;
40192init();
40193}
40194if(!Foundation.MediaQuery.atLeast(options.hideForBreakpoint)){
40195$(".is-active-menu").removeClass("is-active-menu");
40196$target.addClass("is-active-menu");
40197}
40198}
40199function checkInit(){
40200$target=$("[data-mobile-menu-alpha]");
40201if($target.length==0)
40202return;
40203options=$.extend(options,$target.data("mobile-menu-alpha"));
40204$(window).on('changed.zf.mediaquery',function(event,newSize,oldSize){
40205onChangedMediaQuery();
40206});
40207onChangedMediaQuery();
40208}
40209checkInit();
40210});
40211!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s.isBoxSizeOuter=r=200==t(o.width),i.removeChild(e)}}function s(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=n(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],m=s[f],c=parseFloat(m);a[f]=isNaN(c)?0:c}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,I=a.borderTopWidth+a.borderBottomWidth,z=d&&r,S=t(s.width);S!==!1&&(a.width=S+(z?0:p+_));var x=t(s.height);return x!==!1&&(a.height=x+(z?0:y+I)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+I),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
40211sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)o.push(i[s])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,s=this;this[o]=setTimeout(function(){n.apply(s,e),delete s[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=h[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=this.layout.size,r=n.indexOf("%")!=-1?parseFloat(n)/100*s.width:parseInt(n,10),a=o.indexOf("%")!=-1?parseFloat(o)/100*s.height:parseInt(o,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]="";var u=n?"paddingTop":"paddingBottom",h=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,u=e-n,h={};
vendor: 8,465 bytes, line 40211
40211h.transform=this.getTranslate(a,u),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var m={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(m)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,s){return e(t,i,n,o,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function s(t,e){var i=n.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,f[o]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=c[n]||1;return i*o}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var m=s.prototype;n.extend(m,e.prototype),m.option=function(t){n.extend(this.options,t)},m._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},m._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},m.reloadItems=function(){this.items=this._itemize(this.element.children)},m._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=e[o],r=new i(s,this);n.push(r)}return n},m._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},m.getItemElements=function(){return this.items.map(function(t){return t.element})},m.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},m._init=m.layout,m._resetLayout=function(){this.getSize()},m.getSize=function(){this.size=i(this.element)},m._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},m.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},m._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},m._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},m._getItemLayoutPosition=function(){return{x:0,y:0}},m._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},m.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},m._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},m._postLayout=function(){this.resizeContainer()},m.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},m._getContainerSize=d,m._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},m._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){r++,r==s&&i()}var o=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,n)})},m.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),h)if(this.$element=this.$element||h(this.element),e){var o=h.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},m.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},m.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},m.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.
vendor: 11,223 bytes, line 40211
40211concat(t),t.forEach(this.ignore,this))},m.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},m._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},m._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},m._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},m._manageStamp=d,m._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),s={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return s},m.handleEvent=n.handleEvent,m.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},m.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},m.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),m.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},m.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},m.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},m.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},m.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},m.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},m.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},m.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},m.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},m.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},m.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},m.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},m.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(o),n.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var c={ms:1,s:1e3};return s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return o.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=Object.create(n),o.prototype.constructor=o,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,s=o/n,r=n-o%n,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),s=Math.min.apply(Math,o),r=o.indexOf(s),a={x:this.columnWidth*r,y:s},u=s+t.size.outerHeight,h=this.cols+1-o.length,d=0;d<h;d++)this.colYs[r+d]=u;return a},i.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),s=o?n.left:n.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?n.top:n.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)o[s]||(n[s]=e.prototype[s]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}
40211(window,function(t,e,i,n,o,s,r){function a(t,e){return function(i,n){for(var o=0;o<t.length;o++){var s=t[o],r=i.sortData[s],a=n.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&n&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var e,i,n,o=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],o=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?n.push(a):u||a.isHidden||o.push(a)}}return{matches:i,needReveal:n,needHide:o}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},l.updateSortData=function(t){var e;t?(t=o.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),s=o&&o[1],r=e(s,n),a=d.sortDataParsers[i[1]];
40212return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=o.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,o=e.length;for(i=0;i<o;i++)n=e[i],this.element.appendChild(n.element);var s=this._filter(e).matches;for(i=0;i<o;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<o;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var m=l.remove;return l.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);m.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
40213!function(a,b){"function"==typeof define&&define.amd?define("packery/js/rect",b):"object"==typeof module&&module.exports?module.exports=b():(a.Packery=a.Packery||{},a.Packery.Rect=b())}(window,function(){function a(b){for(var c in a.defaults)this[c]=a.defaults[c];for(c in b)this[c]=b[c]}a.defaults={x:0,y:0,width:0,height:0};var b=a.prototype;return b.contains=function(a){var b=a.width||0,c=a.height||0;return this.x<=a.x&&this.y<=a.y&&this.x+this.width>=a.x+b&&this.y+this.height>=a.y+c},b.overlaps=function(a){var b=this.x+this.width,c=this.y+this.height,d=a.x+a.width,e=a.y+a.height;return this.x<d&&b>a.x&&this.y<e&&c>a.y},b.getMaximalFreeRects=function(b){if(!this.overlaps(b))return!1;var c,d=[],e=this.x+this.width,f=this.y+this.height,g=b.x+b.width,h=b.y+b.height;return this.y<b.y&&(c=new a({x:this.x,y:this.y,width:this.width,height:b.y-this.y}),d.push(c)),e>g&&(c=new a({x:g,y:this.y,width:e-g,height:this.height}),d.push(c)),f>h&&(c=new a({x:this.x,y:h,width:this.width,height:f-h}),d.push(c)),this.x<b.x&&(c=new a({x:this.x,y:this.y,width:b.x-this.x,height:this.height}),d.push(c)),d},b.canFit=function(a){return this.width>=a.width&&this.height>=a.height},a}),function(a,b){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],b);else if("object"==typeof module&&module.exports)module.exports=b(require("./rect"));else{var c=a.Packery=a.Packery||{};c.Packer=b(c.Rect)}}(window,function(a){function b(a,b,c){this.width=a||0,this.height=b||0,this.sortDirection=c||"downwardLeftToRight",this.reset()}var c=b.prototype;c.reset=function(){this.spaces=[];var b=new a({x:0,y:0,width:this.width,height:this.height});this.spaces.push(b),this.sorter=d[this.sortDirection]||d.downwardLeftToRight},c.pack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b];if(c.canFit(a)){this.placeInSpace(a,c);break}}},c.columnPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.x<=a.x&&c.x+c.width>=a.x+a.width&&c.height>=a.height-.01;if(d){a.y=c.y,this.placed(a);break}}},c.rowPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.y<=a.y&&c.y+c.height>=a.y+a.height&&c.width>=a.width-.01;if(d){a.x=c.x,this.placed(a);break}}},c.placeInSpace=function(a,b){a.x=b.x,a.y=b.y,this.placed(a)},c.placed=function(a){for(var b=[],c=0;c<this.spaces.length;c++){var d=this.spaces[c],e=d.getMaximalFreeRects(a);
vendor: 8,438 bytes, line 40213
40213e?b.push.apply(b,e):b.push(d)}this.spaces=b,this.mergeSortSpaces()},c.mergeSortSpaces=function(){b.mergeRects(this.spaces),this.spaces.sort(this.sorter)},c.addSpace=function(a){this.spaces.push(a),this.mergeSortSpaces()},b.mergeRects=function(a){var b=0,c=a[b];a:for(;c;){for(var d=0,e=a[b+d];e;){if(e==c)d++;else{if(e.contains(c)){a.splice(b,1),c=a[b];continue a}c.contains(e)?a.splice(b+d,1):d++}e=a[b+d]}b++,c=a[b]}return a};var d={downwardLeftToRight:function(a,b){return a.y-b.y||a.x-b.x},rightwardTopToBottom:function(a,b){return a.x-b.x||a.y-b.y}};return b}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("./rect")):a.Packery.Item=b(a.Outlayer,a.Packery.Rect)}(window,function(a,b){var c=document.documentElement.style,d="string"==typeof c.transform?"transform":"WebkitTransform",e=function(){a.Item.apply(this,arguments)},f=e.prototype=Object.create(a.Item.prototype),g=f._create;f._create=function(){g.call(this),this.rect=new b};var h=f.moveTo;return f.moveTo=function(a,b){var c=Math.abs(this.position.x-a),d=Math.abs(this.position.y-b),e=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>c&&1>d;return e?void this.goTo(a,b):void h.apply(this,arguments)},f.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&d&&(this.element.style[d]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},f.disablePlacing=function(){this.isPlacing=!1},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},f.showDropPlaceholder=function(){var a=this.dropPlaceholder;a||(a=this.dropPlaceholder=document.createElement("div"),a.className="packery-drop-placeholder",a.style.position="absolute"),a.style.width=this.size.width+"px",a.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(a)},f.positionDropPlaceholder=function(){this.dropPlaceholder.style[d]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},f.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],b):"object"==typeof module&&module.exports?module.exports=b(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):a.Packery=b(a.getSize,a.Outlayer,a.Packery.Rect,a.Packery.Packer,a.Packery.Item)}(window,function(a,b,c,d,e){function f(a,b){return a.position.y-b.position.y||a.position.x-b.position.x}function g(a,b){return a.position.x-b.position.x||a.position.y-b.position.y}function h(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)}c.prototype.canFit=function(a){return this.width>=a.width-1&&this.height>=a.height-1};var i=b.create("packery");i.Item=e;var j=i.prototype;j._create=function(){b.prototype._create.call(this),this.packer=new d,this.shiftPacker=new d,this.isEnabled=!0,this.dragItemCount=0;var a=this;this.handleDraggabilly={dragStart:function(){a.itemDragStart(this.element)},dragMove:function(){a.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){a.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(b,c){c&&a.itemDragStart(b.currentTarget)},drag:function(b,c){c&&a.itemDragMove(b.currentTarget,c.position.left,c.position.top)},stop:function(b,c){c&&a.itemDragEnd(b.currentTarget)}}},j._resetLayout=function(){this.getSize(),this._getMeasurements();var a,b,c;this._getOption("horizontal")?(a=1/0,b=this.size.innerHeight+this.gutter,c="rightwardTopToBottom"):(a=this.size.innerWidth+this.gutter,b=1/0,c="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=a,this.packer.height=this.shiftPacker.height=b,this.packer.sortDirection=this.shiftPacker.sortDirection=c,this.packer.reset(),this.maxY=0,this.maxX=0},j._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},j._getItemLayoutPosition=function(a){if(this._setRectSize(a.element,a.rect),this.isShifting||this.dragItemCount>0){var b=this._getPackMethod();this.packer[b](a.rect)}else this.packer.pack(a.rect);return this._setMaxXY(a.rect),a.rect},j.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},j._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},j._setMaxXY=function(a){this.maxX=Math.max(a.x+a.width,this.maxX),this.maxY=Math.max(a.y+a.height,this.maxY)},j._setRectSize=function(b,c){var d=a(b),e=d.outerWidth,f=d.outerHeight;(e||f)&&(e=this._applyGridGutter(e,this.columnWidth),f=this._applyGridGutter(f,this.rowHeight)),c.width=Math.min(e,this.packer.width),c.height=Math.min(f,this.packer.height)},j._applyGridGutter=function(a,b){if(!b)return a+this.gutter;b+=this.gutter;var c=a%b,d=c&&1>c?"round":"ceil";return a=Math[d](a/b)*b},j._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},j._manageStamp=function(a){var b,d=this.getItem(a);if(d&&d.isPlacing)b=d.rect;else{var e=this._getElementOffset(a);b=new c({x:this._getOption("originLeft")?e.left:e.right,y:this._getOption("originTop")?e.top:e.bottom})}this._setRectSize(a,b),this.packer.placed(b),this._setMaxXY(b)},j.sortItemsByPosition=function(){var a=this._getOption("horizontal")?g:f;this.items.sort(a)},j.fit=function(a,b,c){var d=this.getItem(a);d&&(this.stamp(d.element),d.enablePlacing(),this.updateShiftTargets(d),b=void 0===b?d.rect.x:b,c=void 0===c?d.rect.y:c,this.shift(d,b,c),this._bindFitEvents(d),d.moveTo(d.rect.x,d.rect.y),this.shiftLayout(),this.unstamp(d.element),this.sortItemsByPosition(),d.disablePlacing())},j._bindFitEvents=function(a){function b(){d++,2==d&&c.dispatchEvent("fitComplete",null,[a])}var c=this,d=0;a.once("layout",b),this.once("layoutComplete",b)},j.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},j.needsResizeLayout=function(){var b=a(this.element),c=this._getOption("horizontal")?"innerHeight":"innerWidth";return b[c]!=this.size[c]},j.resizeShiftPercentLayout=function(){var b=this._getItemsForLayout(this.items),c=this._getOption("horizontal"),d=c?"y":"x",e=c?"height":"width",f=c?"rowHeight":"columnWidth",g=c?"innerHeight":"innerWidth",h=this[f];if(h=h&&h+this.gutter){this._getMeasurements();var i=this[f]+this.gutter;b.forEach(function(a){var b=Math.round(a.rect[d]/h);a.rect[d]=b*i})}else{var j=a(this.element)[g]+this.gutter,k=this.packer[e];b.forEach(function(a){a.rect[d]=a.rect[d]/k*j})}this.shiftLayout()},j.itemDragStart=function(a){if(this.isEnabled){this.stamp(a);var b=this.getItem(a);b&&(b.enablePlacing(),b.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(b))}},j.updateShiftTargets=function(a){this.shiftPacker.reset(),this._getBoundingRect();var b=this._getOption("originLeft"),d=this._getOption("originTop");this.stamps.forEach(function(a){var e=this.getItem(a);if(!e||!e.isPlacing){var f=this._getElementOffset(a),g=new c({x:b?f.left:f.right,y:d?f.top:f.bottom});this._setRectSize(a,g),this.shiftPacker.placed(g)}},this);var e=this._getOption("horizontal"),f=e?"rowHeight":"columnWidth",g=e?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var h,i=this[f];if(i=i&&i+this.gutter){var j=Math.ceil(a.rect[g]/i),k=Math.floor((this.shiftPacker[g]+this.gutter)/i);h=(k-j)*i;for(var l=0;k>l;l++)this._addShiftTarget(l*i,0,h)}else h=this.shiftPacker[g]+this.gutter-a.rect[g],this._addShiftTarget(0,0,h);var m=this._getItemsForLayout(this.items),n=this._getPackMethod();m.forEach(function(a){var b=a.rect;this._setRectSize(a.element,b),this.shiftPacker[n](b),this._addShiftTarget(b.x,b.y,h);var c=e?b.x+b.width:b.x,d=e?b.y:b.y+b.height;if(this._addShiftTarget(c,d,h),i)for(var f=Math.round(b[g]/i),j=1;f>j;j++){var k=e?c:b.x+i*j,l=e?b.y+i*j:d;this._addShiftTarget(k,l,h)}},this)},j._addShiftTarget=function(a,b,c){var d=this._getOption("horizontal")?b:a;if(!(0!==d&&d>c)){var e=a+","+b,f=-1!=this.shiftTargetKeys.indexOf(e);f||(this.shiftTargetKeys.push(e),this.shiftTargets.push({x:a,y:b}))}},j.shift=function(a,b,c){var d,e=1/0,f={x:b,y:c};
40213this.shiftTargets.forEach(function(a){var b=h(a,f);e>b&&(d=a,e=b)}),a.rect.x=d.x,a.rect.y=d.y};var k=120;j.itemDragMove=function(a,b,c){function d(){f.shift(e,b,c),e.positionDropPlaceholder(),f.layout()}var e=this.isEnabled&&this.getItem(a);if(e){b-=this.size.paddingLeft,c-=this.size.paddingTop;var f=this,g=new Date;this._itemDragTime&&g-this._itemDragTime<k?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(d,k)):(d(),this._itemDragTime=g)}},j.itemDragEnd=function(a){function b(){d++,2==d&&(c.element.classList.remove("is-positioning-post-drag"),c.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[c]))}var c=this.isEnabled&&this.getItem(a);if(c){clearTimeout(this.dragTimeout),c.element.classList.add("is-positioning-post-drag");var d=0,e=this;c.once("layout",b),this.once("layoutComplete",b),c.moveTo(c.rect.x,c.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),c.disablePlacing(),this.unstamp(c.element)}},j.bindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"on")},j.unbindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"off")},j._bindDraggabillyEvents=function(a,b){var c=this.handleDraggabilly;a[b]("dragStart",c.dragStart),a[b]("dragMove",c.dragMove),a[b]("dragEnd",c.dragEnd)},j.bindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"on")},j.unbindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"off")},j._bindUIDraggableEvents=function(a,b){var c=this.handleUIDraggable;a[b]("dragstart",c.start)[b]("drag",c.drag)[b]("dragstop",c.stop)};var l=j.destroy;return j.destroy=function(){l.apply(this,arguments),this.isEnabled=!1},i.Rect=c,i.Packer=d,i}),function(a,b){"function"==typeof define&&define.amd?define(["isotope/js/layout-mode","packery/js/packery"],b):"object"==typeof module&&module.exports?module.exports=b(require("isotope-layout/js/layout-mode"),require("packery")):b(a.Isotope.LayoutMode,a.Packery)}(window,function(a,b){var c=a.create("packery"),d=c.prototype,e={_getElementOffset:!0,_getMeasurement:!0};for(var f in b.prototype)e[f]||(d[f]=b.prototype[f]);var g=d._resetLayout;d._resetLayout=function(){this.packer=this.packer||new b.Packer,this.shiftPacker=this.shiftPacker||new b.Packer,g.apply(this,arguments)};var h=d._getItemLayoutPosition;d._getItemLayoutPosition=function(a){return a.rect=a.rect||new b.Rect,h.call(this,a)};var i=d.needsResizeLayout;d.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():i.call(this)};var j=d._getOption;return d._getOption=function(a){return"horizontal"==a?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:j.apply(this.isotope,arguments)},c});
40214var metropolisFilter=function(_options){
40215var filters={};
40216var that=this;
40217var options={
40218filterIterationHook:function(section,filter){
40219return[]
40220},
40221inverseFilteredItemClass:'metropolis-filter__hidden-item',
40222sectionClass:'',
40223buttonClass:'metropolis-filter-button',
40224selectClass:'',
40225controlsClass:'',
40226controlsId:null,
40227containerSelector:null,
40228itemSelector:null,
40229isotopeLayoutMode:"",
40230isotopeGrid:null,
40231disableIsotopeOnMobile:true
40232};
40233this.setActiveButtons=function(filterSelectors){
40234if(filterSelectors.length==0)
40235return false;
40236var filterValue=filterSelectors.join(",");
40237var filterGroup=null;
40238for(var i=0;i<filterSelectors.length;i++){
40239if(i==0){
40240var $firstButton=options.$filterControls.find("button[data-filter='"+filterSelectors[0]+"']");
40241$firstButton.siblings().removeClass("active");
40242filterGroup=$firstButton.parents('.metropolis-filter-section').attr('data-filter-group');
40243}
40244options.$filterControls.find("button[data-filter='"+filterSelectors[i]+"']").addClass("active");
40245}
40246if(filterGroup==null)
40247return false;
40248filters[filterGroup]=filterValue;
40249doFilter();
40250}
40251function init(){
40252options=$.extend(options,_options);
40253options.$container=$(options.containerSelector);
40254options.$filterItems=options.$container.find(options.itemSelector);
40255options.$container.trigger('metropolis-filter.beforeRender',{options:options,metropolisfilter:that});
40256if(renderFilterControls()){
40257isotopeHandler();
40258registerHandlers();
40259options.$container.trigger('metropolis-filter.afterRender',{options:options,metropolisfilter:that});
40260$(window).resize(function(){
40261isotopeHandler();
40262});
40263}
40264}
40265function doFilter(){
40266var filter=concatValues(filters);
40267if(options.isotopeGrid!==null){
40268options.isotopeGrid.isotope({filter:filter});
40269return;
40270}
40271options.$filterItems.removeClass(options.inverseFilteredItemClass);
40272if(filter.trim()==""){
40273return;
40274}
40275var $inverseFilteredItems=options.$filterItems.not(filter).addClass(options.inverseFilteredItemClass);
40276}
40277function getFilterValue(filterType,target){
40278if(filterType=="button"){
40279return target.attr('data-filter');
40280}
40281if(filterType=="select"){
40282return target.get(0).value;
40283}
40284}
40285function registerHandlers(){
40286options.$filterControls.on('click','button',function(){
40287$(this).trigger('metropolis-do-filter',{filterType:'button'});
40288$(this).siblings('button').removeClass('active');
40289$(this).addClass('active');
40290});
40291options.$filterControls.on('change','select',function(){
40292$(this).trigger('metropolis-do-filter',{filterType:'select'});
40293});
40294options.$filterControls.on("metropolis-do-filter",function(e,data){
40295var $target=$(e.target);
40296var filterType=data.filterType;
40297var $filterSection=$target.parents('.metropolis-filter-section');
40298var filterGroup=$filterSection.attr('data-filter-group');
40299var filterValue=getFilterValue(filterType,$target);
40300filters[filterGroup]=filterValue;
40301doFilter();
40302});
40303options.$filterControls.find('button.active').trigger("click");
40304options.$filterControls.find('select').trigger("change");
40305}
40306function destroyIsotope(){
40307options.isotopeGrid.isotope('destroy');
40308options.isotopeGrid=null;
40309}
40310function isotopeHandler(){
40311if(options.disableIsotopeOnMobile&&options.isotopeGrid!=null&&$('html').hasClass('small-only-mq')){
40312destroyIsotope();
40313}
40314var initMediaQuery=options.disableIsotopeOnMobile?'medium-up-mq':'small-up-mq';
40315if(options.isotopeLayoutMode!==""&&options.isotopeGrid==null&&$('html').hasClass(initMediaQuery)){
40316initIsotope();
40317}
40318}
40319function initIsotope(){
40320options.isotopeGrid=options.$container.isotope({
40321itemSelector:options.itemSelector,
40322layoutMode:options.isotopeLayoutMode
40323});
40324}
40325function allPossibleCases(arr){
40326if(arr.length===0){
40327return[];
40328}
40329else if(arr.length===1){
40330return arr[0];
40331}
40332else{
40333var result=[];
40334var allCasesOfRest=allPossibleCases(arr.slice(1));
40335for(var c in allCasesOfRest){
40336for(var i=0;i<arr[0].length;i++){
40337result.push(arr[0][i]+allCasesOfRest[c]);
40338}
40339}
40340return result;
40341}
40342}
40343function concatValues(obj){
40344var arr=[];
40345for(var prop in obj){
40346if(obj[prop].indexOf("*")!==-1)
40347continue;
40348arr.push(obj[prop].split(','));
40349}
40350var result=allPossibleCases(arr).join();
40351return result;
40352}
40353function createFilterSection(i){
40354$section=$("<div/>");
40355$section.addClass('metropolis-filter-section '+options.sectionClass);
40356$section.attr('data-filter-group','group'+i);
40357return $section;
40358}
40359function renderFilterControls(){
40360var $filterControls=$("<div/>");
40361$filterControls.attr("id",options.controlsId);
40362$filterControls.addClass('metropolis-filter-controls '+options.controlsClass);
40363options.$filterControls=$filterControls;
40364for(var i=0;i<options.sections.length;i++){
40365var section=options.sections[i];
40366var $section=createFilterSection(i);
40367for(var j=0;j<section.filters.length;j++){
40368var filter=section.filters[j];
40369var label=filter.label;
40370var filterSelectors=filter.filterSelectors;
40371if(filterSelectors===undefined){
40372filterSelectors=options.filterIterationHook(section,filter).join();
40373}else{
40374if(filterSelectors.constructor===Array){
40375filterSelectors=filterSelectors.concat(options.filterIterationHook(section,filter)).join();
40376}else{
40377filterSelectors=filterSelectors.split(",").concat(options.filterIterationHook(section,filter)).join();
40378}
40379}
40380if(options.$filterItems.filter(filterSelectors).length==0)
40381continue;
40382if(section.type=='button'){
40383var $control=$("<button class='metropolis-filter-control-item'>"+label+"</button>");
40384$control.addClass(options.buttonClass);
40385$control.attr("data-filter",filterSelectors);
40386$control.appendTo($section);
40387if($section.children().length==1){
40388$control.addClass('active');
40389}
40390if(filter.isActive!==undefined&&filter.isActive==true){
40391$section.children().removeClass('active');
40392$control.addClass('active');
40393}
40394}
40395if(section.type=='select'){
40396if($select===undefined){
40397var $select=$('<select class="metropolis-filter-select metropolis-filter-control-item"></select>');
40398$select.addClass(options.selectClass);
40399$select.appendTo($section);
40400}
40401var $option=$("<option>"+label+"</option>");
40402$option.attr("value",filterSelectors);
40403$option.attr("data-filter",filterSelectors);
40404$option.attr("data-filter-duplicate",true);
40405$option.appendTo($select);
40406if($select.children().length==1){
40407$select.val(filterSelectors);
40408}
40409if(filter.isActive!==undefined&&filter.isActive==true){
40410$select.val(filterSelectors);
40411}
40412}
40413}
40414var hasSingleAllFilter=$section.find('[data-filter="*"]:only-child').length==1;
40415if($section.find('[data-filter]').length>0&&!hasSingleAllFilter){
40416$section.find('[data-filter-duplicate]').removeAttr('data-filter-duplicate').removeAttr('data-filter');
40417$section.appendTo($filterControls);
40418}
40419}
40420if($filterControls.length>0){
40421$filterControls.insertBefore(options.$container);
40422return true;
40423}
40424return false;
40425}
40426init();
40427};
40428var greedyNavOptions=greedyNavOptions||{
40429mobileViewBreakpoint:'small-up-mq',
40430desktopViewBreakpoint:'large-up-mq'
40431};
40432MetropolisNavigation.GreedyNav=(function(_options){
40433var exports={};
40434var $html;
40435var $headerWrapper;
40436var $standardNav;
40437var $greedyNavContainer;
40438var $greedyNav;
40439var $greedyNavItemCount;
40440var defaultOptions={};
40441var options=$.extend(defaultOptions,_options);
40442var count=null;
40443function isKeyboard(){
40444return whatInput.ask()==='keyboard'||whatInput.ask('loose')==='keyboard';
40445}
40446function outsideClickHandlerGreedyNav(e){
40447if(isInDesktopViewBreakpoint()){
40448if(!$(e.target).is($greedyNavContainer)
40449&&$greedyNavContainer.has(e.target).length===0
40450&&!$(e.target).is(".breadcrumbs")
40451&&$(".breadcrumbs").has(e.target).length===0
40452){
40453$greedyNavContainer.removeClass('greedy-nav--is-expanded');
40454}
40455}
40456}
40457function isWrapping(){
40458if($standardNav.children().length<1)
40459return false;
40460var $item=$standardNav.children().last();
40461if($item.offset().top>$standardNav.children().first().offset().top){
40462return true;
40463}
40464return false;
40465}
40466var lastResizeWidth=0;
40467var isLargerResize=false;
40468function isInMobileViewBreakpoint(){
40469return $html.hasClass(options.mobileViewBreakpoint)&&!$html.hasClass(options.desktopViewBreakpoint);
40470}
40471function isInDesktopViewBreakpoint(){
40472return $('html').hasClass(options.desktopViewBreakpoint);
40473}
40474function greedyNavHandler(){
40475if(isInMobileViewBreakpoint()&&$standardNav.children().length>0){
40476var $children=$standardNav.children();
40477if($children.length){
40478$children.prependTo($greedyNav);
40479$greedyNavContainer.addClass('greedy-nav--is-visible');
40480}
40481return;
40482}
40483if(isInDesktopViewBreakpoint()&&$greedyNav.children().length>0){
40484$greedyNavContainer.removeClass('greedy-nav--is-visible');
40485$greedyNav.children().appendTo($standardNav);
40486}
40487while(isWrapping()){
40488$standardNav.children().last().prependTo($greedyNav);
40489$greedyNavContainer.addClass('greedy-nav--is-visible');
40490}
40491if(count!==$greedyNav.children().length){
40492count=$greedyNav.children().length;
40493$greedyNavItemCount.text(count);
40494}
40495}
40496function mobileNavScrollHandler(currentSlide){
40497var $currentSlide=currentSlide;
40498var $menuContainer=$('.greedy-nav__menu-container');
40499if($currentSlide.height()>$menuContainer.height()&&isInMobileViewBreakpoint()){
40500$menuContainer.css('overflow-y','auto');
40501}else{
40502$menuContainer.css('overflow-y','initial');
40503}
40504}
40505function showActive(){
40506var $activeItem=$('.nav__item[data-is-active=true]').last();
40507if($activeItem.length<1){
40508$greedyNav.addClass('visible-slide');
40509return;
40510}
40511if($activeItem.hasClass('has-children')){
40512exports.show($activeItem.children('ul'));
40513}else{
40514exports.show($activeItem.closest('.nav__level-1-up'));
40515}
40516}
40517function registerBacklink(){
40518$('.nav__back-link').on('click',function(e){
40519e.preventDefault();
40520var $parentMenu=$(this).closest('.nav__level-1-up').parent().closest('.nav__level-1-up');
40521if($parentMenu.length)
40522exports.show($parentMenu);
40523});
40524}
40525function onResize(){
40526if(isInMobileViewBreakpoint()){
40527if(!$headerWrapper.hasClass('mobile-nav')){
40528$headerWrapper.removeClass('desktop-nav');
40529$headerWrapper.addClass('mobile-nav');
40530updateTabIndizes();
40531if(isGreedyNavOpened()){
40532$(".greedy-nav__button").attr("aria-expanded","true");
40533$(".greedy-nav__button").attr("title","Hauptmenü schließen");
40534$(".greedy-nav__button").attr("aria-label","Hauptmenü schließen");
40535}else{
40536$(".greedy-nav__button").attr("aria-expanded","false");
40537$(".greedy-nav__button").attr("title","Hauptmenü öffnen");
40538$(".greedy-nav__button").attr("aria-label","Hauptmenü öffnen");
40539}
40540}
40541if(!$greedyNavContainer.hasClass('greedy-nav-mobile')){
40542$greedyNavContainer.removeClass('greedy-nav-large');
40543$greedyNavContainer.addClass('greedy-nav-mobile');
40544}
40545$('.greedy-nav__menu-container').height($(window).height()-$('.header').height());
40546}
40547if(isInDesktopViewBreakpoint()){
40548$('.greedy-nav__menu-container').height('auto');
40549if(isGreedyNavOpened()){
40550$(".greedy-nav__button").attr("title","Weitere Menüpunkte schließen");
40551$(".greedy-nav__button").attr("aria-label","Weitere Menüpunkte schließen");
40552}else{
40553$(".greedy-nav__button").attr("title","Weitere Menüpunkte öffnen");
40554$(".greedy-nav__button").attr("aria-label","Weitere Menüpunkte öffnen");
40555}
40556$(".nav__link[tabindex='-1']").removeAttr("tabindex");
40557$(".nav__link[aria-hidden='true']").removeAttr("aria-hidden");
40558if(!$headerWrapper.hasClass('desktop-nav')){
40559$headerWrapper.removeClass('mobile-nav');
40560$headerWrapper.addClass('desktop-nav');
40561}
40562if(!$greedyNavContainer.hasClass('greedy-nav-large')){
40563$greedyNavContainer.removeClass('greedy-nav-mobile');
40564$greedyNavContainer.addClass('greedy-nav-large');
40565}
40566}
40567greedyNavHandler();
40568}
40569function toggleGreedyNav(){
40570if(isGreedyNavOpened()){
40571exports.close();
40572}else{
40573exports.open();
40574}
40575}
40576function isGreedyNavOpened(){
40577return $greedyNavContainer.hasClass('greedy-nav--is-expanded');
40578}
40579function updateTabIndizes(){
40580if(isInDesktopViewBreakpoint())return;
40581setTimeout(function(){
40582var $hiddenLinks=$('.greedy-nav__menu-container').find(".nav__link").filter(function(i,el){
40583return!$(this).closest("ul").is(".visible-slide")
40584});
40585var $visibleSlideLinks=$('.greedy-nav__menu-container').find(".nav__link").filter(function(i,el){
40586return $(this).closest("ul").is(".visible-slide")
40587});
40588$hiddenLinks.attr("tabindex","-1");
40589$hiddenLinks.attr("aria-hidden","true");
40590$visibleSlideLinks.removeAttr("aria-hidden");
40591$visibleSlideLinks.removeAttr("tabindex");
40592if(isKeyboard()){
40593$greedyNavContainer.find(".visible-slide > li > a:visible").first().focus();
40594}
40595},1);
40596}
40597exports.open=function(){
40598$greedyNavContainer.addClass('greedy-nav--is-expanded');
40599$greedyNavContainer.trigger('open.greedynav.metropolisnavigation');
40600if(isKeyboard()){
40601$greedyNavContainer.find(".visible-slide > li > a:visible").first().focus();
40602}
40603$(".greedy-nav__button").attr("aria-expanded","true");
40604if(isInMobileViewBreakpoint()){
40605$(".greedy-nav__button").attr("title","Hauptmenü schließen");
40606$(".greedy-nav__button").attr("aria-label","Hauptmenü schließen");
40607}else{
40608$(".greedy-nav__button").attr("title","Weitere Menüpunkte schließen");
40609$(".greedy-nav__button").attr("aria-label","Weitere Menüpunkte schließen");
40610}
40611}
40612exports.close=function(){
40613$greedyNavContainer.removeClass('greedy-nav--is-expanded');
40614$(".greedy-nav__button").attr("aria-expanded","false");
40615if(isInMobileViewBreakpoint()){
40616$(".greedy-nav__button").attr("title","Hauptmenü öffnen");
40617$(".greedy-nav__button").attr("aria-label","Hauptmenü öffnen");
40618}else{
40619$(".greedy-nav__button").attr("title","Weitere Menüpunkte öffnen");
40620$(".greedy-nav__button").attr("aria-label","Weitere Menüpunkte öffnen");
40621}
40622}
40623function updatePath($ul){
40624if($ul.hasClass('nav__level-1')){
40625return;
40626}
40627$('.nav__level-2-up').removeClass("is-visible-menu");
40628$ul.addClass("is-visible-menu");
40629$ul.parentsUntil($('.nav__level-1'),'ul').addClass('is-visible-menu');
40630$ul.find("ul").addClass("is-visible-menu");
40631}
40632function updateShowLeft(){
40633}
40634var visibleLevelClass="";
40635exports.show=function($ul){
40636$('.visible-slide').removeClass('visible-slide');
40637setTimeout(function(){
40638if($ul.is(".nav__level-1")){
40639$greedyNav.addClass("visible-slide");
40640}
40641$ul.addClass('visible-slide');
40642mobileNavScrollHandler($ul);
40643updateTabIndizes();
40644},300);
40645$greedyNav.removeClass(visibleLevelClass);
40646var level=$ul.data("level");
40647visibleLevelClass="is-visible-level-"+level;
40648$greedyNav.addClass(visibleLevelClass);
40649updatePath($ul);
40650};
40651function observeHeader(){
40652if(!$('#header').length)
40653return;
40654var target=document.querySelector('#header');
40655target.addEventListener('transitionend',function(e){
40656var $target=$(e.target);
40657if($target.closest(".greedy-nav").length>0){
40658return;
40659}
40660if($target.closest(".nav").length>0){
40661return;
40662}
40663if($target.closest(".i4-hidden-accessible").length>0){
40664return;
40665}
40666greedyNavHandler();
40667});
40668target.addEventListener('animationend',function(){
40669var $target=$(e.target);
40670if($target.closest(".greedy-nav").length){
40671return;
40672}
40673greedyNavHandler();
40674});
40675var headerObserver=new MutationObserver(function(mutations){
40676var relevantMutationsCount=mutations.filter(function(mutation){
40677return!$(mutation.target).closest('.nav-wrapper').length
40678}).length;
40679if(relevantMutationsCount>0){
40680greedyNavHandler();
40681}
40682});
40683var config={attributes:true,childList:true,characterData:true,subtree:true};
40684headerObserver.observe(target,config);
40685}
40686function openTrailItem(event,depth){
40687$(".nav__link.is-trail").each(function(i){
40688if(i<=depth){
40689$(this).parent().addClass(MetropolisNavigation.expandedClass);
40690if($(this).closest($greedyNav).length>0){
40691exports.open();
40692}
40693return true;
40694}
40695return false;
40696});
40697}
40698var onDomReady=function(){
40699MetropolisNavigation.$parentLinks.on('click',function(e){
40700if(isInMobileViewBreakpoint()){
40701e.preventDefault();
40702exports.show($(this).next());
40703}
40704});
40705$(".nav__link-level-2-up.has-children").on("click mouseover",function(){
40706if(isInDesktopViewBreakpoint()){
40707var $li=$(this).parent();
40708var $childUl=$li.children("ul");
40709var offset=$childUl.offset();
40710var rightEdge=offset.left+$childUl.outerWidth();
40711if(rightEdge>document.body.clientWidth){
40712$li.addClass("menu-left");
40713}
40714}
40715});
40716$(".nav__link-level-1.has-children").on("click mouseover",function(){
40717$(".nav__item-level-2-up.menu-left").removeClass("menu-left");
40718});
40719$(".is-active-menu").removeClass("is-active-menu");
40720$standardNav.addClass("is-active-menu");
40721$('.greedy-nav__button').on('click',function(e){
40722toggleGreedyNav();
40723});
40724$(".greedy-nav__button").on("keydown",(e)=>{
40725if(e.keyCode===13){
40726toggleGreedyNav();
40727}
40728});
40729$(window).resize(function(){
40730if($(window).width()>lastResizeWidth){
40731isLargerResize=true;
40732}
40733if($(window).width()<lastResizeWidth){
40734isLargerResize=false;
40735}
40736lastResizeWidth=$(window).width();
40737onResize();
40738});
40739$('body').on('click',outsideClickHandlerGreedyNav);
40740$(document).click(function(e){
40741if(
40742!$(e.target).is($standardNav)
40743&&$standardNav.has(e.target).length===0
40744&&!$(e.target).is(".breadcrumbs")
40745&&$(".breadcrumbs").has(e.target).length===0
40746){
40747$standardNav.find(MetropolisNavigation.expandedSelector).removeClass(MetropolisNavigation.expandedClass);
40748}
40749});
40750$greedyNavContainer.on('open.greedynav.metropolisnavigation',function(){
40751mobileNavScrollHandler($greedyNavContainer.find('.visible-slide'));
40752});
40753$(window).on("keydown",function(e){
40754if(e.keyCode===27){
40755let $focusedElement=$(document.activeElement);
40756if(isInMobileViewBreakpoint()){
40757if($focusedElement.closest(".greedy-nav__menu-container").length===1){
40758$(".greedy-nav__button").focus();
40759}
40760exports.close();
40761}else{
40762let $closestExpandedItem=$focusedElement.closest(".nav__item--is-expanded");
40763if($closestExpandedItem.length===1){
40764MetropolisNavigation.closeSubmenu($closestExpandedItem);
40765$closestExpandedItem.children("a").focus();
40766}else{
40767let $greedyNavWrapper=$focusedElement.closest(".greedy-nav");
40768if($greedyNavWrapper.length===1){
40769$(".greedy-nav__button").focus();
40770exports.close();
40771}else{
40772MetropolisNavigation.closeSubmenu($(".nav__item-level-1.expanded"));
40773}
40774}
40775}
40776}
40777});
40778registerBacklink();
40779showActive();
40780onResize();
40781observeHeader();
40782};
40783exports.init=function(){
40784if($('.greedy-nav').length==0)
40785return;
40786MetropolisNavigation.init();
40787var $greedyNavContainerWithNavTag=$("nav.greedy-nav");
40788if($greedyNavContainerWithNavTag.length===1&&$greedyNavContainerWithNavTag.parent().closest("nav").length===1){
40789var newElem=$("<div />");
40790newElem.html($greedyNavContainerWithNavTag.html());
40791$.each($greedyNavContainerWithNavTag[0].attributes,function(){
40792newElem.attr(this.name,this.value);
40793});
40794$greedyNavContainerWithNavTag.replaceWith(newElem);
40795}
40796var $greedyNavButton=$(".greedy-nav__button");
40797if($greedyNavButton.length===1){
40798$greedyNavButton.attr("tabindex","0");
40799if($greedyNavButton.is("div")){
40800$greedyNavButton.attr("role","button");
40801}
40802$greedyNavButton.attr("aria-label","Weitere Menüpunkte öffnen");
40803$greedyNavButton.attr("title","Weitere Menüpunkte öffnen");
40804}
40805$html=$('html');
40806$headerWrapper=$('.header-wrapper');
40807$standardNav=$('.nav .nav__level-1');
40808$greedyNavContainer=$('.greedy-nav');
40809$greedyNav=$('.greedy-nav .nav__level-1');
40810$greedyNavItemCount=$greedyNavContainer.find('.greedy-nav__item-count');
40811$(document).ready(function(){
40812onDomReady();
40813});
40814if("complete"===document.readyState){
40815setTimeout(greedyNavHandler,500);
40816}else{
40817$(window).on("load",greedyNavHandler);
40818}
40819};
40820exports.init();
40821return exports;
40822})
40823(greedyNavOptions);
40824$(function(){
40825var $target;
40826function init(){
40827$target=$("[data-subnav]");
40828if($target.length===0)
40829return;
40830const parentsUntilMainOuter=$target.parentsUntil("#main-outer");
40831if(parentsUntilMainOuter.length===0)
40832return;
40833let mainTop=parentsUntilMainOuter.eq(parentsUntilMainOuter.length-1);
40834if(!mainTop.is("html")&&!mainTop.is("body")){
40835mainTop.attr("data-subnav-sticky-container","");
40836}
40837var levelShift=$target.find(".subnav-level-shift");
40838var startObjectLevel=1;
40839if(levelShift.length>0){
40840startObjectLevel=2;
40841}
40842var $leaf=$(".subnav__top-bar-menu .subnav__item.is-active[data-has-children='false']");
40843if($leaf.length>0&&!$leaf.is(".object-level-"+startObjectLevel)){
40844var $newTopBar=$($("#subnav-topbar-hook").html());
40845var $newBottomBar=$($("#subnav-bottombar-hook").html());
40846$(".subnav__top-bar-menu").remove();
40847$(".subnav__bottom-bar-menu").remove();
40848$(".subnav__bottom-bar-inner-2").prepend($newBottomBar);
40849$newTopBar.insertBefore($(".subnav__top-bar-inner-2 .subnav__hidden-items"));
40850$target.addClass("initialized");
40851$target.addClass("special-case-is-leaf");
40852return;
40853}
40854if($(".subnav__top-bar-menu .subnav__item.is-active.object-level-"+startObjectLevel).length==0){
40855$target.addClass("initialized");
40856$(".subnav__top-bar-menu").trigger("initialized.top-bar.subnav");
40857$(".subnav__bottom-bar-menu").trigger("initialized.bottom-bar.subnav");
40858return;
40859}
40860if($(".subnav__top-bar-menu .subnav__item.is-active.object-level-"+startObjectLevel+".has-children").length>0){
40861$(".subnav__top-bar-menu").html("");
40862$(".subnav__bottom-bar-menu li").appendTo($(".subnav__top-bar-menu"));
40863$target.addClass("special-case");
40864$target.addClass("initialized");
40865$(".subnav__top-bar-menu").trigger("initialized.top-bar.subnav");
40866return;
40867}
40868}
40869init();
40870});
40871$(function(){
40872var _input=document.querySelector('input[data-mobile-placeholder]');
40873if(window.matchMedia&&_input){
40874var placeholder=_input.getAttribute('placeholder');
40875var mq=window.matchMedia("(max-width: 639px)");
40876let listener=function(){
40877if(mq.matches){
40878_input.setAttribute('placeholder',_input.getAttribute('data-mobile-placeholder'));
40879}else{
40880_input.setAttribute('placeholder',placeholder);
40881}
40882};
40883window.addEventListener('resize',listener);
40884listener();
40885}
40886});
40887$(function(){
40888function checkAllImagesLoaded(wrapper){
40889const images=wrapper.getElementsByTagName('img');
40890const promises=Array.from(images).map(image=>{
40891return new Promise((resolve,reject)=>{
40892if(image.complete){
40893resolve();
40894}else{
40895image.addEventListener('load',()=>{
40896resolve();
40897});
40898image.addEventListener('error',()=>{
40899resolve();
40900});
40901}
40902});
40903});
40904return Promise.all(promises);
40905}
40906if($('.logoslider').length<1)
40907return;
40908if($('body.mode-editor').length){
40909$(window).load(function(){
40910$('.logoslider').each(function(i,logoSlider){
40911if($(logoSlider).closest('.columns').length<1)
40912return true;
40913var columnWidth=$(logoSlider).closest('.columns').width();
40914var baseItemWidth=150;
40915var itemsPerRow=1;
40916for(var i=6;i>0;i--){
40917var width=Math.abs((columnWidth/i));
40918if(width>baseItemWidth){
40919var itemsPerRow=i+1;
40920if(itemsPerRow>6)
40921itemsPerRow=6;
40922break;
40923}
40924}
40925$(logoSlider).addClass("logoslider-"+itemsPerRow+"-items-per-row");
40926});
40927});
40928return;
40929}
40930var paused=false;
40931var columnWidths={
40932small:0,
40933medium:0,
40934large:0
40935};
40936var settings={
40937small:[
40938{
40939slidesToShow:2
40940}
40941],
40942medium:[
40943{
40944columnRange:[1,4],
40945slidesToShow:1
40946},
40947{
40948columnRange:[5,5],
40949slidesToShow:2
40950},
40951{
40952columnRange:[6,8],
40953slidesToShow:3
40954},
40955{
40956columnRange:[9,10],
40957slidesToShow:4
40958},
40959{
40960columnRange:[11,12],
40961slidesToShow:4
40962}
40963],
40964large:[
40965{
40966columnRange:[1,2],
40967slidesToShow:1
40968},
40969{
40970columnRange:[3,3],
40971slidesToShow:2
40972},
40973{
40974columnRange:[4,4],
40975slidesToShow:3
40976},
40977{
40978columnRange:[5,7],
40979slidesToShow:4
40980},
40981{
40982columnRange:[8,10],
40983slidesToShow:5
40984},
40985{
40986columnRange:[11,12],
40987slidesToShow:5
40988}
40989]
40990};
40991function isFocus(slider){
40992return slider.querySelectorAll('*:focus').length>0;
40993}
40994function initSlick(slidesToShow,logoSliderWrapper,showAutoplayButton){
40995var settingsLarge={
40996slidesToShow:slidesToShow.large,
40997slidesToScroll:slidesToShow.large,
40998infinite:true
40999};
41000var settingsMedium={
41001slidesToShow:slidesToShow.medium,
41002slidesToScroll:slidesToShow.medium
41003};
41004var settingsSmall={
41005slidesToShow:slidesToShow.small,
41006slidesToScroll:slidesToShow.small
41007};
41008let autoplayButtonHtml=logoSliderWrapper.find(".logoslider-playbutton-template").html();
41009return{
41010infinite:true,
41011speed:300,
41012autoplay:true,
41013autoplaySpeed:4000,
41014mobileFirst:true,
41015autoplayButton:showAutoplayButton,
41016autoplayButtonHtml,
41017useTransform:true,
41018accessibility:true,
41019responsive:[
41020{
41021breakpoint:992,
41022settings:settingsLarge
41023},
41024{
41025breakpoint:767,
41026settings:settingsMedium
41027},
41028{
41029breakpoint:0,
41030settings:settingsSmall
41031}
41032],
41033prevArrow:"<button type=\"button\" class=\"slick-prev\">Zum vorherigen Slide</button>",
41034nextArrow:"<button type=\"button\" class=\"slick-next\">Zum nächsten Slide</button>"
41035};
41036}
41037$('.logoslider').each(function(i,logoSlider){
41038var columns=$(this).closest(".columns").attr("class");
41039if($(this).closest(".columns").lenxgth<1)
41040return;
41041var regex=/(small)-([1-9]+[0-2]?)/g;
41042var small_query_width_arr=regex.exec(columns);
41043if(small_query_width_arr!=null){
41044columnWidths.small=small_query_width_arr[2];
41045columnWidths.medium=small_query_width_arr[2];
41046columnWidths.large=small_query_width_arr[2];
41047}
41048var regex=/(medium)-([1-9]+[0-2]?)/g;
41049var medium_query_width_arr=regex.exec(columns);
41050if(medium_query_width_arr!=null){
41051columnWidths.medium=medium_query_width_arr[2];
41052columnWidths.large=medium_query_width_arr[2];
41053}
41054var regex=/(large)-([1-9]+[0-2]?)/g;
41055var large_query_width_arr=regex.exec(columns);
41056if(large_query_width_arr!=null){
41057columnWidths.large=large_query_width_arr[2];
41058}
41059var slidesToShow={
41060small:0,
41061medium:0,
41062large:0
41063};
41064for(var mediaQuery in settings){
41065if(settings.hasOwnProperty(mediaQuery)){
41066for(var i=0;i<settings[mediaQuery].length;i++){
41067if(settings[mediaQuery][i].columnRange===undefined){
41068slidesToShow[mediaQuery]=settings[mediaQuery][i].slidesToShow;
41069continue;
41070}
41071if(columnWidths[mediaQuery]>=settings[mediaQuery][i].columnRange[0]&&columnWidths[mediaQuery]<=settings[mediaQuery][i].columnRange[1])
41072slidesToShow[mediaQuery]=settings[mediaQuery][i].slidesToShow;
41073}
41074}
41075}
41076var itemCount=$(logoSlider).find('.logoslider-item').length;
41077if(itemCount==1)
41078return;
41079if(slidesToShow.small>itemCount-1){
41080slidesToShow.small=itemCount-1;
41081}
41082if(slidesToShow.medium>itemCount-1){
41083slidesToShow.medium=itemCount-1;
41084}
41085if(slidesToShow.large>itemCount-1){
41086slidesToShow.large=itemCount-1;
41087}
41088const $logoSlider=$(logoSlider);
41089const $logoSliderWrapper=$logoSlider.closest(".logoslider-wrapper");
41090let showAutoplayButton=false;
41091try{
41092showAutoplayButton=JSON.parse($logoSliderWrapper.attr("data-show-autoplay-button"));
41093}catch(e){
41094}
41095$logoSlider.on("init",function(slick){
41096if($('body.mode-editor').length===0){
41097checkAllImagesLoaded($logoSliderWrapper.get(0)).then(()=>{
41098const hasItems=$logoSlider.find(".slick-slide").length;
41099if(hasItems){
41100(function checkSize(){
41101if($logoSlider.find(".slick-list").width()>0)return;
41102$logoSlider.slick("getSlick").refresh();
41103setTimeout(()=>{
41104checkSize();
41105},400);
41106})();
41107}
41108});
41109}
41110});
41111$logoSlider.slick(initSlick(slidesToShow,$logoSliderWrapper,showAutoplayButton));
41112});
41113});
41114$(function(){
41115var settings={
41116small:[
41117{
41118slidesToShow:3
41119}
41120],
41121medium:[
41122{
41123columnRange:[3,4],
41124slidesToShow:2
41125},
41126{
41127columnRange:[1,2],
41128slidesToShow:1
41129}
41130],
41131large:[
41132{
41133columnRange:[1,2],
41134slidesToShow:1
41135},
41136{
41137columnRange:[3,3],
41138slidesToShow:3
41139}
41140]
41141};
41142function initSlick(slidesToShow){
41143var settingsLarge={
41144slidesToShow:slidesToShow.large,
41145slidesToScroll:slidesToShow.large,
41146};
41147var settingsMedium={
41148slidesToShow:slidesToShow.medium,
41149slidesToScroll:slidesToShow.medium
41150};
41151var settingsSmall={
41152slidesToShow:slidesToShow.small,
41153slidesToScroll:slidesToShow.small
41154};
41155settingsLarge=slidesToShow.large==0?"unslick":settingsLarge;
41156settingsMedium=slidesToShow.medium==0?"unslick":settingsMedium;
41157settingsSmall=slidesToShow.small==0?"unslick":settingsSmall;
41158return{
41159infinite:true,
41160speed:300,
41161autoplay:true,
41162autoplaySpeed:4000,
41163mobileFirst:true,
41164useTransform:false,
41165responsive:[
41166{
41167breakpoint:992,
41168settings:settingsLarge
41169},
41170{
41171breakpoint:768,
41172settings:settingsMedium
41173},
41174{
41175breakpoint:0,
41176settings:settingsSmall
41177}
41178]
41179};
41180}
41181if($('.image-gallery').length<1)
41182return;
41183$('.image-gallery').each(function(i,imageGallery){
41184$(this).closest(".column__content-wrapper").css("min-height","1px");
41185if($('.image-gallery__item').length<25){
41186if($(this).closest(".columns").length<1)
41187return;
41188var gridConfig=window.getGridConfig($(this).closest(".columns"));
41189var slidesToShow={
41190small:0,
41191medium:0,
41192large:0
41193};
41194for(var mediaQuery in settings){
41195if(settings.hasOwnProperty(mediaQuery)){
41196for(var i=0;i<settings[mediaQuery].length;i++){
41197if(settings[mediaQuery][i].columnRange===undefined){
41198slidesToShow[mediaQuery]=settings[mediaQuery][i].slidesToShow;
41199continue;
41200}
41201if(gridConfig[mediaQuery]>=settings[mediaQuery][i].columnRange[0]&&gridConfig[mediaQuery]<=settings[mediaQuery][i].columnRange[1])
41202slidesToShow[mediaQuery]=settings[mediaQuery][i].slidesToShow;
41203}
41204}
41205}
41206function onResize(){
41207if($('html').hasClass('large-up-mq')){
41208if(slidesToShow.large>0&&!$(imageGallery).hasClass("slick-initialized")){
41209$(imageGallery).slick(initSlick(slidesToShow));
41210}
41211}
41212if($('html').hasClass('medium-only-mq')){
41213if(slidesToShow.medium>0&&!$(imageGallery).hasClass("slick-initialized")){
41214$(imageGallery).slick(initSlick(slidesToShow));
41215}
41216}
41217if($('html').hasClass('small-only-mq')){
41218if(slidesToShow.small>0&&!$(imageGallery).hasClass("slick-initialized")){
41219$(imageGallery).slick(initSlick(slidesToShow));
41220}
41221}
41222}
41223$(window).resize(function(){
41224onResize();
41225});
41226onResize();
41227}
41228});
41229});
41230$(function(){
41231var $target;
41232var stickyBreadcrumb=null;
41233var bodyFontSize=parseInt($("body").css("font-size"));
41234function initSticky(){
41235$(window).on("scroll",function(e){
41236recalcSticky();
41237});
41238$("#header").on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",recalcSticky);
41239stickyBreadcrumb=new Foundation.Sticky($target,{
41240anchor:'main-outer',
41241marginTop:parseInt($("#header").outerHeight())/bodyFontSize,
41242});
41243}
41244function recalcSticky(){
41245stickyBreadcrumb.options.marginTop=parseInt($("#header").outerHeight())/bodyFontSize;
41246$target.foundation('_setSticky');
41247$target.foundation('_calc',false);
41248}
41249function init(){
41250$target=$("[data-sticky-breadcrumb]");
41251if($target.length==0)
41252return;
41253initSticky();
41254}
41255init();
41256});
41257(function(){
41258(function(){
41259$(function(){
41260const $header=$("#header");
41261if(!$header.length)return;
41262let debouncedCheck=entries=>{
41263for(let entry of entries){
41264document.documentElement.style.setProperty("--header-height",entry.contentRect.height+"px");
41265document.documentElement.style.setProperty("scroll-padding-top","var(--header-height)");
41266}
41267};
41268const observer=new ResizeObserver(debouncedCheck);
41269observer.observe($header[0]);
41270});
41271}).call(this.Utils||(this.Utils={}));
41272}).call(window.Metropolis||(window.Metropolis={}));
41273jQuery(function($){
41274const footer=document.querySelector('.footer .main-row');
41275if(footer){
41276$(document).on('click','.cookies-disclaimer__dismiss',function(){
41277$(".cookies-disclaimer-wrapper").hide(500);
41278footer.removeAttribute('style');
41279});
41280window.addEventListener('DOMContentLoaded',function(){
41281const banner=document.getElementsByClassName('cookies-disclaimer-wrapper');
41282if(!banner.length>0)return;
41283const bannerHeight=banner[0].offsetHeight;
41284if(bannerHeight>0){
41285footer.style.paddingBottom=bannerHeight+"px";
41286}
41287});
41288}else{
41289$(document).on('click','.cookies-disclaimer__dismiss',function(){
41290$(".cookies-disclaimer-wrapper").hide(500);
41291});
41292}
41293});
41294$(function(){
41295var AZTabs=function AZTabs(element){
41296this.tabsEl=element.get(0).querySelector("[data-tabs]");
41297this.$tabsEl=$(this.tabsEl);
41298if(!this.tabsEl)return;
41299if(!this.$tabsEl.data("zfPlugin")){
41300var $tabs=new Foundation.Tabs(this.$tabsEl);
41301}
41302var id=this.$tabsEl.attr("id");
41303var activeTabId=sessionStorage.getItem(id);
41304var activeTab=this.$tabsEl.find("a[href='"+activeTabId+"']");
41305var existsTabWithIdFromStorage=activeTab.length>0;
41306if(activeTabId&&existsTabWithIdFromStorage){
41307this.$tabsEl.find("a[href='"+activeTabId+"']").click();
41308}else{
41309this.$tabsEl.find(".tabs-title:first-child a").click();
41310}
41311};
41312var observer=new MutationObserver(function(mutations){
41313mutations.forEach(function(mutation){
41314for(var i=0;i<mutation.addedNodes.length;i++){
41315var $addedNode=$(mutation.addedNodes[i]);
41316var $target=null;
41317if($addedNode.is(".integration--pagination")){
41318$target=$addedNode;
41319}
41320if($addedNode.find(".integration--pagination").length>0){
41321$target=$addedNode.find(".integration--pagination").first();
41322}
41323if($target){
41324var az_tabs=new AZTabs($target);
41325}
41326}
41327});
41328});
41329observer.observe(document.body,{attributes:false,childList:true,characterData:false,subtree:true});
41330$(".integration--pagination").each(function(){
41331new AZTabs($(this));
41332});
41333});
41334jQuery(function($){
41335$('.integration-card__rooms').each(function(){
41336$(this).slick({'autoplay':true});
41337});
41338$('a.sd-details--photo').each(function(){
41339$(this).css('cursor','zoom-in').attr('rel','sd-details--photo');
41340}).fancybox({type:'image'});
41341});
41342function header_outer(){
41343const header_outer=document.querySelector(".header-outer");
41344if(header_outer){
41345Scrollax.defaults.offset=header_outer.offsetHeight;
41346}
41347}
41348Metropolis.headerScrollResize(70,undefined,'.header-outer');
41349ionasQ(jQuery,document);

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.