This repository has been archived by the owner on Oct 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
1 lines (1 loc) · 321 KB
/
main.js
1
function convertDataURIToBinary(e){var t=e.split(";base64,")[1],n=window.atob(t),r=n.length,o=new Uint8Array(new ArrayBuffer(r));for(i=0;i<r;i++)o[i]=n.charCodeAt(i);return o}function crop(e,t,n,r,i,o){e=e||0,t=t||0,n=n||506,r=r||506;var s=i?"png":"jpeg",a=document.createElement("canvas");a.width=n,a.height=r;var u=a.getContext("2d");$("#bgImgEl").width()>1e3?(u.drawImage(document.getElementById("bgImgEl"),-e,-t),o(a.toDataURL("image/"+s,1))):$("#bgImgEl").load(function(){u.drawImage(document.getElementById("bgImgEl"),-e,-t),o(a.toDataURL("image/"+s,1))})}function getImageBase64(e,t){$("#bgImgEl").attr("src",null),$("#bgImgEl").attr("src",e),$("#bgImgEl").one("load",function(){loadedBack=e,t()})}function getRandomInt(e,t){return Math.floor(Math.random()*(t-e))+e}function bgChanged(){reloadAds()}function noAds(){var e=randomBanner();$(".underfr").empty().html('<a href="'+e[1]+'" target="_blank"><img src="/images/'+e[0]+'"></a>'),$(".rColAds").remove(),$(".profile_badges").show()}function reloadAds(){if(rAdsCount%10==0){rAdsCount++;var e=window.localStorage.getItem("SteamId");if(-1!==donators.indexOf(e))return noAds();$(".rColAds").html(gAds[0]),(adsbygoogle=window.adsbygoogle||[]).push({}),$("#bottomAds").html(gAds[1]),(adsbygoogle=window.adsbygoogle||[]).push({}),e||($("#topAds").html(gAds[2]),(adsbygoogle=window.adsbygoogle||[]).push({}))}else rAdsCount++}function reloadImages(){if(window.location.hash&&-1==window.location.hash.indexOf("#login")&&-1==window.location.hash.indexOf("#logout")){var e=window.location.hash.slice(1);-1==e.indexOf("http")&&(e="https://"+e),window.localStorage.setItem("bg",e)}$("#cSize").css("height",""),background=window.localStorage.getItem("bg"),null==background&&(background=randomBackground(),window.localStorage.setItem("bg",background)),$("#bg1").css("background-image","url('"+background+"')"),$("#bg2").css("background-image","url('"+background+"')"),background!=loadedBack?getImageBase64(background,function(){console.log("The current background URL is:",background),payloadHandler(),bgChanged()}):CropImages()}function CropImages(){setTimeout(function(){$("#bgImgEl").height();var e=$("#bgImgEl").width(),t=e>2e3?1:e<=1280?2:2e3==e?3:0,n=$("#hBig1").height(),r=$("#hBig2").height(),i=$("#hBig1").offset().top-$(".profile_header").offset().top+1,o=$("#hBig2").offset().top-$(".profile_header").offset().top+1,s=$("#w1").offset().top-$(".profile_header").offset().top+1;if(bgSaveInfo={url:background,images:[]},payload.background=background,payload.toggles.AWSC_Enable)if(payload.toggles.AWSC_Long)if(payload.toggles.AWSC_Long_Minus70){a=n-70;fillImage($("#big1"),leftOffset[t],i,506,n,ImagesNames[10][1],!0),fillImage($("#r11"),514+leftOffset[t],i,100,a,ImagesNames[11][1])}else fillImage($("#big1"),leftOffset[t],i,506,n,ImagesNames[10][1],!0),fillImage($("#r11"),514+leftOffset[t],i,100,n,ImagesNames[11][1]);else fillImage($("#big1"),leftOffset[t],i,506,n,ImagesNames[10][1],!0),fillImage($("#r11"),514+leftOffset[t],i,100,80,ImagesNames[11][1]),fillImage($("#r12"),514+leftOffset[t],i+93,100,80,ImagesNames[12][1]),fillImage($("#r13"),514+leftOffset[t],i+186,100,80,ImagesNames[13][1]);if(payload.toggles.SSSC_Enable)if(payload.toggles.SSSC_Long)if(payload.toggles.SSSC_Long_Minus70){var a=n-70;fillImage($("#big2"),leftOffset[t],o,506,n,ImagesNames[20][1],!0),fillImage($("#r21"),514+leftOffset[t],o,100,n,ImagesNames[21][1])}else fillImage($("#big2"),leftOffset[t],o,506,n,ImagesNames[20][1],!0),fillImage($("#r21"),514+leftOffset[t],o,100,n,ImagesNames[21][1]);else fillImage($("#big2"),leftOffset[t],o,506,r,ImagesNames[20][1],!0),fillImage($("#r21"),514+leftOffset[t],o,100,80,ImagesNames[21][1]),fillImage($("#r22"),514+leftOffset[t],o+93,100,80,ImagesNames[22][1]),fillImage($("#r23"),514+leftOffset[t],o+186,100,80,ImagesNames[23][1]);payload.toggles.WSSC_Enable&&(fillImage($("#w1"),1+leftOffset[t],s,150,150,ImagesNames[30][1]),fillImage($("#w2"),156+leftOffset[t],s,150,150,ImagesNames[31][1]),fillImage($("#w3"),309+leftOffset[t],s,150,150,ImagesNames[32][1]),fillImage($("#w4"),464+leftOffset[t],s,150,150,ImagesNames[33][1])),fillImage($("#avatar"),leftOffset[t]-9,34,164,164,ImagesNames[0][1]),payload.bgSaveInfo=bgSaveInfo,$(".saveButton").attr("href","https://steam.design/raw/"+btoa(JSON.stringify(bgSaveInfo)))},250)}function fillImage(e,t,n,r,i,o,s){o||(o="unknownImage.png"),s&&(e.css("width","100%"),e.css("height","100%")),e.css("background","url('"+background+"') no-repeat"),e.css("background-position","-"+t+"px -"+n+"px"),bgSaveInfo.images.push({name:o,x:Math.floor(t),y:Math.floor(n),w:Math.floor(r),h:Math.floor(i)})}function getParameterByName(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}function createInventory(e){store.get("hide");var t=store.get("backpack");if(t&&null!==t.backgrounds)doInventoryThings(t);else{var n=Date.now()+864e5;$.ajax("https://steam.design/backpack/"+e+"/items.json").done(function(e){if(store.set("backpack",e,n),null==e.backgrounds)return privateInventory();doInventoryThings(e)})}$("#hideBacksList").show(),$("#refreshInventory").show(),$(".filter").show(),$(".guide").css("left","0px")}function doInventoryThings(e){var t=store.get("hide");1==oddball.refresh&&(clearInterval(oddball.ref),$("#refreshInventory").rotate({animateTo:0}),oddball.refresh=!1),e.backgrounds.forEach(function(e){var n=e.actions[0].link.replace("http://cdn.akamai.steamstatic.com/","https://steamcdn-a.akamaihd.net/");1==t&&$(".backsList").addClass("backsListHide");var r=$("<div>",{class:"itemHolder",alt:e.name.toLowerCase()}),i=$("<div>",{class:"item app753 context6 activeInfo"}),o=$("<a>",{href:"#"+n,class:"inventory_item_link"}),s=$("<img>",{src:"https://steamcommunity-a.akamaihd.net/economy/image/"+e.icon_url+"/96fx96f"});$(o).append(s),$(i).append(o),$(r).append(i),$("#backsList").append(r)})}function privateInventory(){$("#backsList").text("Either your inventory has no backgrounds, or is private."),$("#backsList").css("text-align","center")}function refreshInventory(){store.remove("backpack"),$("#backsList").addClass("backsListHide"),setTimeout(function(){$(".itemHolder").each(function(){$(this).remove()}),userId=window.localStorage.getItem("SteamId"),$.ajax("https://steam.design/backpack/"+userId+"/itemsRefresh.json").done(function(e){var t=Date.now()+864e5;store.set("backpack",e,t),doInventoryThings(e),setTimeout(function(){$("#backsList").removeClass("backsListHide")},20)})},150)}function loginFunc(){if(-1!==window.location.hash.indexOf("#login")){var e=window.location.hash.substr(window.location.hash.indexOf("&openid.identity")-17,17);window.localStorage.setItem("SteamId",e),window.location.href=window.location.href.split("#")[0]}-1!==window.location.hash.indexOf("#logout")&&(window.localStorage.removeItem("SteamId"),window.location.href=window.location.href.split("#")[0])}function addArrows(){$(".profile_customization_header").not(".guide").each(function(){$(this).prepend('<span style="float: right" class="arrow down" onclick="moveElem(this,2);">Down <div class="fa fa-arrow-down" style="font-size:17px;"></div></span><span style="float: right" class="arrow up" onclick="moveElem(this,1);"">Up <div class="fa fa-arrow-up" style="font-size:17px;"></div></span>')})}function moveElem(e,t){e=$(e).parent().parent();if(1==t){var n=$(e).prev(".profile_customization");n.find(".locationvar").val($(this).val+1),r=n,$(r).before(e)}else if(2==t){var r=$(e).next(".profile_customization");$(r).after(e)}$.smoothScroll({offset:$(e).offset().top-200,speed:500,easing:"swing"}),reloadImages(),setTimeout(function(){autoCropHeight()},100)}function addProfileColor(){var e=payload.esColor;$(".colorStyle").remove(),oddball.holiday&&(clearInterval(animation),$(".profile_header_actions").css("right",""),$(".holidayprofile_header_overlay").remove(),$("#profilebody").removeClass("holidayprofile"),oddball.holiday=!1),$("#profilebody").removeClass("es_style_clear"),$(".profile_header_bg_texture").css("background-image",""),$(".profile_customization").css("background-image",""),0==e||(4==e?($("head").append("<link rel='stylesheet' type='text/css' href='https://steamcommunity-a.akamaihd.net/public/css/skin_1/holidayprofile.css'>"),$(".profile_header_bg_texture").append("<div class='holidayprofile_header_overlay'></div>"),$("#profilebody").addClass("holidayprofile"),$(".profile_header_actions").css("right","30px"),$.getScript("https://steam.design/holiday.js").done(function(){StartAnimation(),oddball.holiday=!0})):2==e?$("#profilebody").addClass("es_style_clear"):($("head").append("<link rel='stylesheet' class='colorStyle' type='text/css' href='/images/profile_styles/"+e+"/style.css'>"),$(".profile_header_bg_texture").css("background-image","url('/images/profile_styles/"+e+"/header.jpg')"),$(".profile_customization").css("background-image","url('/images/profile_styles/"+e+"/showcase.png')")))}function esColorLoad(e){var t=e.value;payload.esColor=t}function getTextWidth(e,t){var n=(getTextWidth.canvas||(getTextWidth.canvas=document.createElement("canvas"))).getContext("2d");return n.font=t,n.measureText(e).width}function toggleCustomize(){getShareUrl(btoa(JSON.stringify(payload))).then(function(e){var t=getTextWidth("https://steam.design/s/"+e.ShortCode,"13px Arial");$("#shareWidth").css("width",Math.ceil(t)+5),$("#shareURL").val("https://steam.design/s/"+e.ShortCode)}),$("#customize").toggle(),$("#customizeBackground").fadeToggle();var e=!1;$("#customize").hover(function(){e=!0},function(){e=!1}),$("body").mouseup(function(){$("#customize").is(":visible")&&!e&&closeCustomize()})}function closeCustomize(){$("#customize").hide(),$("#customizeBackground").fadeOut(),addProfileColor(),payloadHandler()}function closeCommunity(){$("#community_updates").hide(),$("#customizeBackground").fadeOut(),store.set("community",!0)}function customizeCheckboxHandler(e){var t=$("#"+e),n=t.siblings(".hiddenBelow");switch(e){case"SSSC_Checkbox":payload.toggles.SSSC_Enable=!payload.toggles.SSSC_Enable,$("#SSSC_Long_Checkbox").hasClass("checked")&&$("#SSSC_Long_Checkbox").trigger("click");break;case"SSSC_Long_Checkbox":payload.toggles.SSSC_Long=!payload.toggles.SSSC_Long,$("#SSSC_Long_Minus70_Checkbox").hasClass("checked")&&$("#SSSC_Long_Minus70_Checkbox").trigger("click");break;case"SSSC_Long_Minus70_Checkbox":payload.toggles.SSSC_Long_Minus70=!payload.toggles.SSSC_Long_Minus70;break;case"AWSC_Checkbox":payload.toggles.AWSC_Enable=!payload.toggles.AWSC_Enable,$("#AWSC_Long_Checkbox").hasClass("checked")&&$("#AWSC_Long_Checkbox").trigger("click");break;case"AWSC_Long_Checkbox":payload.toggles.AWSC_Long=!payload.toggles.AWSC_Long,$("#AWSC_Long_Minus70_Checkbox").hasClass("checked")&&$("#AWSC_Long_Minus70_Checkbox").trigger("click");break;case"AWSC_Long_Minus70_Checkbox":payload.toggles.AWSC_Long_Minus70=!payload.toggles.AWSC_Long_Minus70;break;case"WSSC_Checkbox":payload.toggles.WSSC_Enable=!payload.toggles.WSSC_Enable;break;default:console.log("How the hell?")}t.hasClass("checked")?t.removeClass("checked"):t.addClass("checked"),n.length&&(n.hasClass("hidden")?n.removeClass("hidden"):n.addClass("hidden"))}function shortenRight(e){var t=$("#big"+e).height()-70;$(".r"+e).css("height",t),$(".r"+e).addClass("shortened"),$(".artwork_ammount_"+e).show()}function extendRight(e){setTimeout(function(){var t=$("#big"+e).height();$(".r"+e).css("height",t),$(".r"+e).removeClass("shortened"),$(".artwork_ammount_"+e).hide()},275)}function showDiv(e){$(".showcase_"+e).removeClass("hidden")}function hideDiv(e){$(".showcase_"+e).addClass("hidden")}function longImages(e){var t=$("#bgImgEl").height()-($("#hBig"+e).offset().top-$(".profile_header").offset().top+1)-1;if($(".hidelong"+e).addClass("hidden"),$(".showlong"+e).removeClass("hidden"),1==e){if(payload.toggles.AWSC_Resized)return}else if(2==e&&payload.toggles.SSSC_Resized)return;$("#hBig"+e).css("height",t),$(".r"+e).css("height",t)}function autoCropHeight(e){1!=e||payload.toggles.AWSC_Resized?2!=e||payload.toggles.SSSC_Resized?payload.toggles.SSSC_Resized||payload.toggles.AWSC_Resized?CropImages():(payload.toggles.SSSC_Long&&autoCropHeight_2(2),payload.toggles.AWSC_Long&&autoCropHeight_2(1)):autoCropHeight_2(2):autoCropHeight_2(1)}function autoCropHeight_2(e){var t=$("#bgImgEl").height()-($("#hBig"+e).offset().top-$(".profile_header").offset().top+1)-1;if(t<284)return $(".r"+e).css("height",284),$("#hBig"+e).css("height",284),void reloadImages();$(".r"+e).css("height",t),$("#hBig"+e).css("height",t),reloadImages()}function shortImages(e){$("#hBig"+e).css("height",506),$(".hidelong"+e).removeClass("hidden"),$(".r"+e).css("height",80),$(".showlong"+e).addClass("hidden"),$(".artwork_ammount_"+e).show()}function loadb64(){window.location.href="#"+payload.background,loadb64Checkboxes(),$("#colorChange").val(payload.esColor),addProfileColor(),setTimeout(function(){payload.cropInfo.customHeight.AWSC&&loadCustomHeight(1,payload.cropInfo.customHeight.AWSC),payload.cropInfo.customHeight.SSSC&&loadCustomHeight(2,payload.cropInfo.customHeight.SSSC)},200)}function loadb64Checkboxes(){payload.toggles.SSSC_Enable&&loadb64Checkboxes_2($("#SSSC_Checkbox")),payload.toggles.SSSC_Long&&loadb64Checkboxes_2($("#SSSC_Long_Checkbox")),payload.toggles.SSSC_Long_Minus70&&loadb64Checkboxes_2($("#SSSC_Long_Minus70_Checkbox")),payload.toggles.AWSC_Enable||loadb64Checkboxes_2($("#AWSC_Checkbox")),payload.toggles.AWSC_Long||loadb64Checkboxes_2($("#AWSC_Long_Checkbox")),payload.toggles.AWSC_Long_Minus70&&loadb64Checkboxes_2($("#AWSC_Long_Minus70_Checkbox")),payload.WSSC_Enable&&loadb64Checkboxes_2($("#WSSC_Checkbox"))}function loadb64Checkboxes_2(e){var t=e.siblings(".hiddenBelow");e.hasClass("checked")?e.removeClass("checked"):e.addClass("checked"),t.length&&(t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden"))}function payloadHandler(){payload.toggles.SSSC_Enable?(showDiv(2),payload.toggles.SSSC_Long?(longImages(2),payload.toggles.SSSC_Long_Minus70?setTimeout(function(){shortenRight(2)},300):extendRight(2)):shortImages(2)):hideDiv(2),payload.toggles.AWSC_Enable?(showDiv(1),payload.toggles.AWSC_Long?(longImages(1),payload.toggles.AWSC_Long_Minus70?shortenRight(1):extendRight(1)):shortImages(1)):hideDiv(1),payload.toggles.WSSC_Enable?showDiv(3):hideDiv(3),reloadImages()}function loadCustomHeight(e,t){var n=$("#bgImgEl").height();if(1==e){if($(".showcase_1").css("height",t+75),payload.toggles.AWSC_Long)if(1==payload.toggles.AWSC_Long_Minus70){r=t-70;$(".r1").css("height",r)}else $(".r1").css("height",t);t>=284&&t<=n-272&&$("#hBig1").css("height",t+"px"),payload.toggles.AWSC_Resized=!0,$("#autoResize_AWSC").show(),$("#autoResize_AWSC").click(function(){$(".showcase_1").css("height",""),autoCropHeight_2(1),$("#autoResize_AWSC").hide(),closeCustomize()}),payload.toggles.SSSC_Long&&autoCropHeight(2)}else if(2==e){if($(".showcase_2").css("height",t+75),payload.toggles.SSSC_Long)if(1==payload.toggles.SSSC_Long_Minus70){var r=t-70;$(".r2").css("height",r)}else $(".r2").css("height",t);t>=284&&t<=n-272&&($("#hBig2").style.height=t+"px"),payload.toggles.SSSC_Resized=!0,$("#autoResize_SSSC").show(),$("#autoResize_SSSC").click(function(){$(".showcase_2").css("height",""),autoCropHeight_2(2),$("#autoResize_SSSC").hide(),closeCustomize()}),payload.toggles.AWSC_Long&&autoCropHeight(1)}}function trackClick(e,t){ga("send",{hitType:"event",eventCategory:"userClick",eventAction:e,eventLabel:t||"click"})}function getShareUrl(e){return new Promise(function(t,n){var r=store.get("shortCode"+e);if(r)return console.log(r),t(r);$.ajax("https://steam.design/shorten/"+e).done(function(n){store.set("shortCode"+e,n.code),t(n.code)})})}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){var n=(t=t||te).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return pe.isFunction(t)?pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?pe.grep(e,function(e){return e===t!==n}):"string"!=typeof t?pe.grep(e,function(e){return se.call(t,e)>-1!==n}):Ce.test(t)?pe.filter(t,e,n):(t=pe.filter(t,e),pe.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return pe.each(e.match(Ie)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&pe.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&pe.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function h(){te.removeEventListener("DOMContentLoaded",h),e.removeEventListener("load",h),pe.ready()}function f(){this.expando=pe.expando+f.uid++}function d(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Be.test(e)?JSON.parse(e):e)}function p(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Re,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=d(n)}catch(e){}Me.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=a(),c=n&&n[3]||(pe.cssNumber[t]?"":"px"),l=(pe.cssNumber[t]||"px"!==c&&+u)&&Fe.exec(pe.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,pe.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function m(e){var t,n=e.ownerDocument,r=e.nodeName,i=He[r];return i||(t=n.body.appendChild(n.createElement(r)),i=pe.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),He[r]=i,i)}function v(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Ne.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&We(r)&&(i[o]=m(r))):"none"!==n&&(i[o]="none",Ne.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?pe.merge([e],n):n}function b(e,t){for(var n=0,r=e.length;n<r;n++)Ne.set(e[n],"globalEval",!t||Ne.get(t[n],"globalEval"))}function w(e,t,n,r,i){for(var o,s,a,u,c,l,h=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===pe.type(o))pe.merge(f,o.nodeType?[o]:o);else if(Ge.test(o)){for(s=s||h.appendChild(t.createElement("div")),a=($e.exec(o)||["",""])[1].toLowerCase(),u=Xe[a]||Xe._default,s.innerHTML=u[1]+pe.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;pe.merge(f,s.childNodes),(s=h.firstChild).textContent=""}else f.push(t.createTextNode(o));for(h.textContent="",d=0;o=f[d++];)if(r&&pe.inArray(o,r)>-1)i&&i.push(o);else if(c=pe.contains(o.ownerDocument,o),s=y(h.appendChild(o),"script"),c&&b(s),n)for(l=0;o=s[l++];)Ue.test(o.type||"")&&n.push(o);return h}function _(){return!0}function x(){return!1}function S(){try{return te.activeElement}catch(e){}}function C(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)C(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=x;else if(!i)return e;return 1===o&&(s=i,i=function(e){return pe().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function k(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?pe(">tbody",e)[0]||e:e}function E(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function T(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function A(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Ne.hasData(e)&&(o=Ne.access(e),s=Ne.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)pe.event.add(t,i,c[i][n])}Me.hasData(e)&&(a=Me.access(e),u=pe.extend({},a),Me.set(t,u))}}function I(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ye.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function D(e,t,r,i){t=ie.apply([],t);var o,s,a,u,c,l,h=0,f=e.length,d=f-1,p=t[0],g=pe.isFunction(p);if(g||f>1&&"string"==typeof p&&!fe.checkClone&&tt.test(p))return e.each(function(n){var o=e.eq(n);g&&(t[0]=p.call(this,n,o.html())),D(o,t,r,i)});if(f&&(o=w(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(u=(a=pe.map(y(o,"script"),E)).length;h<f;h++)c=o,h!==d&&(c=pe.clone(c,!0,!0),u&&pe.merge(a,y(c,"script"))),r.call(e[h],c,h);if(u)for(l=a[a.length-1].ownerDocument,pe.map(a,T),h=0;h<u;h++)c=a[h],Ue.test(c.type||"")&&!Ne.access(c,"globalEval")&&pe.contains(l,c)&&(c.src?pe._evalUrl&&pe._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function z(e,t,n){for(var r,i=t?pe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pe.cleanData(y(r)),r.parentNode&&(n&&pe.contains(r.ownerDocument,r)&&b(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return(n=n||st(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||pe.contains(e.ownerDocument,e)||(s=pe.style(e,t)),!fe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function N(e){if(e in ft)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ht.length;n--;)if((e=ht[n]+t)in ft)return e}function M(e){var t=pe.cssProps[e];return t||(t=pe.cssProps[e]=N(e)||e),t}function B(e,t,n){var r=Fe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function R(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=pe.css(e,n+Pe[o],!0,i)),r?("content"===n&&(s-=pe.css(e,"padding"+Pe[o],!0,i)),"margin"!==n&&(s-=pe.css(e,"border"+Pe[o]+"Width",!0,i))):(s+=pe.css(e,"padding"+Pe[o],!0,i),"padding"!==n&&(s+=pe.css(e,"border"+Pe[o]+"Width",!0,i)));return s}function j(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===pe.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(fe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+R(e,t,n||(s?"border":"content"),r,i)+"px")}function F(e,t,n,r,i){return new F.prototype.init(e,t,n,r,i)}function P(){pt&&(!1===te.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(P):e.setTimeout(P,pe.fx.interval),pe.fx.tick())}function W(){return e.setTimeout(function(){dt=void 0}),dt=pe.now()}function q(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Pe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function H(e,t,n){for(var r,i=($.tweeners[t]||[]).concat($.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function Y(e,t){var n,r,i,o,s;for(n in e)if(r=pe.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=pe.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function $(e,t,n){var r,i,o=0,s=$.prefilters.length,a=pe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=dt||W(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(e,[c,r,n]),r<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||W(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pe.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(Y(l,c.opts.specialEasing);o<s;o++)if(r=$.prefilters[o].call(c,e,l,c.opts))return pe.isFunction(r.stop)&&(pe._queueHooks(c.elem,c.opts.queue).stop=pe.proxy(r.stop,r)),r;return pe.map(l,H,c),pe.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),pe.fx.timer(pe.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ie)||[]).join(" ")}function X(e){return e.getAttribute&&e.getAttribute("class")||""}function G(e,t,n,r){var i;if(Array.isArray(t))pe.each(t,function(t,i){n||Et.test(e)?r(e,i):G(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==pe.type(t))r(e,t);else for(i in t)G(e+"["+i+"]",t[i],n,r)}function V(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ie)||[];if(pe.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Z(e,t,n,r){function i(a){var u;return o[a]=!0,pe.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===jt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function J(e,t){var n,r,i=pe.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&pe.extend(!0,e,r),e}function Q(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function K(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var ee=[],te=e.document,ne=Object.getPrototypeOf,re=ee.slice,ie=ee.concat,oe=ee.push,se=ee.indexOf,ae={},ue=ae.toString,ce=ae.hasOwnProperty,le=ce.toString,he=le.call(Object),fe={},de="3.2.1",pe=function(e,t){return new pe.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ve=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:de,constructor:pe,length:0,toArray:function(){return re.call(this)},get:function(e){return null==e?re.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(re.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:oe,sort:ee.sort,splice:ee.splice},pe.extend=pe.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||pe.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(pe.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&pe.isPlainObject(n)?n:{},s[t]=pe.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},pe.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=pe.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ue.call(e)||(t=ne(e))&&("function"!=typeof(n=ce.call(t,"constructor")&&t.constructor)||le.call(n)!==he))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ae[ue.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(me,"ms-").replace(ve,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?pe.merge(n,"string"==typeof e?[e]:e):oe.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return ie.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),pe.isFunction(e))return r=re.call(arguments,2),i=function(){return e.apply(t||this,r.concat(re.call(arguments)))},i.guid=e.guid=e.guid||pe.guid++,i},now:Date.now,support:fe}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=ee[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ae["[object "+t+"]"]=t.toLowerCase()});var be=function(e){function t(e,t,n,r){var i,o,s,a,u,l,f,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:F)!==z&&D(t),t=t||z,L)){if(11!==p&&(u=ge.exec(e)))if(i=u[1]){if(9===p){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&R(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!Y[e+" "]&&(!N||!N.test(e))){if(1!==p)d=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(be,we):t.setAttribute("id",a=j),o=(l=C(e)).length;o--;)l[o]="#"+a+" "+h(l[o]);f=l.join(","),d=me.test(e)&&c(t.parentNode)||t}if(f)try{return Z.apply(n,d.querySelectorAll(f)),n}catch(e){}finally{a===j&&t.removeAttribute("id")}}}return E(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>_.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[j]=!0,e}function i(e){var t=z.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&xe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function h(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=W++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,h,f=[P,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(h=t[j]||(t[j]={}),l=h[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===P&&c[1]===a)return f[2]=c[2];if(l[o]=f,f[2]=e(t,n,u))return!0}return!1}}function d(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function p(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function m(e,t,n,i,o,s){return i&&!i[j]&&(i=m(i)),o&&!o[j]&&(o=m(o,s)),r(function(r,s,a,u){var c,l,h,f=[],d=[],m=s.length,v=r||p(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?v:g(v,f,e,a,u),b=n?o||(r?e:m||i)?[]:s:y;if(n&&n(y,b,a,u),i)for(c=g(b,d),i(c,[],a,u),l=c.length;l--;)(h=c[l])&&(b[d[l]]=!(y[d[l]]=h));if(r){if(o||e){if(o){for(c=[],l=b.length;l--;)(h=b[l])&&c.push(y[l]=h);o(null,b=[],c,u)}for(l=b.length;l--;)(h=b[l])&&(c=o?Q(r,h):f[l])>-1&&(r[c]=!(s[c]=h))}}else b=g(b===s?b.splice(m,b.length):b),o?o(null,s,b,u):Z.apply(s,b)})}function v(e){for(var t,n,r,i=e.length,o=_.relative[e[0].type],s=o||_.relative[" "],a=o?1:0,u=f(function(e){return e===t},s,!0),c=f(function(e){return Q(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==T)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=_.relative[e[a].type])l=[f(d(l),n)];else{if((n=_.filter[e[a].type].apply(null,e[a].matches))[j]){for(r=++a;r<i&&!_.relative[e[r].type];r++);return m(a>1&&d(l),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&v(e.slice(a,r)),r<i&&v(e=e.slice(r)),r<i&&h(e))}l.push(n)}return d(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,h,f,d=0,p="0",m=r&&[],v=[],y=T,b=r||o&&_.find.TAG("*",c),w=P+=null==y?1:Math.random()||.1,x=b.length;for(c&&(T=s===z||s||c);p!==x&&null!=(l=b[p]);p++){if(o&&l){for(h=0,s||l.ownerDocument===z||(D(l),a=!L);f=e[h++];)if(f(l,s||z,a)){u.push(l);break}c&&(P=w)}i&&((l=!f&&l)&&d--,r&&m.push(l))}if(d+=p,i&&p!==d){for(h=0;f=n[h++];)f(m,v,s,a);if(r){if(d>0)for(;p--;)m[p]||v[p]||(v[p]=G.call(u));v=g(v)}Z.apply(u,v),c&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(u)}return c&&(P=w,T=y),m};return i?r(s):s}var b,w,_,x,S,C,k,E,T,A,I,D,z,O,L,N,M,B,R,j="sizzle"+1*new Date,F=e.document,P=0,W=0,q=n(),H=n(),Y=n(),$=function(e,t){return e===t&&(I=!0),0},U={}.hasOwnProperty,X=[],G=X.pop,V=X.push,Z=X.push,J=X.slice,Q=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),he={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,pe=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/[+~]/,ve=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},be=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,we=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},_e=function(){D()},xe=f(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Z.apply(X=J.call(F.childNodes),F.childNodes),X[F.childNodes.length].nodeType}catch(e){Z={apply:X.length?function(e,t){V.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==z&&9===r.nodeType&&r.documentElement?(z=r,O=z.documentElement,L=!S(z),F!==z&&(n=z.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_e,!1):n.attachEvent&&n.attachEvent("onunload",_e)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(z.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=pe.test(z.getElementsByClassName),w.getById=i(function(e){return O.appendChild(e).id=j,!z.getElementsByName||!z.getElementsByName(j).length}),w.getById?(_.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var n=t.getElementById(e);return n?[n]:[]}}):(_.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),_.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},_.find.CLASS=w.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&L)return t.getElementsByClassName(e)},M=[],N=[],(w.qsa=pe.test(z.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||N.push("\\["+ee+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+j+"-]").length||N.push("~="),e.querySelectorAll(":checked").length||N.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||N.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=z.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&N.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&N.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&N.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),N.push(",.*:")})),(w.matchesSelector=pe.test(B=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){w.disconnectedMatch=B.call(e,"*"),B.call(e,"[s!='']:x"),M.push("!=",re)}),N=N.length&&new RegExp(N.join("|")),M=M.length&&new RegExp(M.join("|")),t=pe.test(O.compareDocumentPosition),R=t||pe.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=t?function(e,t){if(e===t)return I=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===z||e.ownerDocument===F&&R(F,e)?-1:t===z||t.ownerDocument===F&&R(F,t)?1:A?Q(A,e)-Q(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return I=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===z?-1:t===z?1:i?-1:o?1:A?Q(A,e)-Q(A,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===F?-1:u[r]===F?1:0},z):z},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==z&&D(e),n=n.replace(ue,"='$1']"),w.matchesSelector&&L&&!Y[n+" "]&&(!M||!M.test(n))&&(!N||!N.test(n)))try{var r=B.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,z,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==z&&D(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==z&&D(e);var n=_.attrHandle[t.toLowerCase()],r=n&&U.call(_.attrHandle,t.toLowerCase())?n(e,t,!L):void 0;return void 0!==r?r:w.attributes||!L?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(be,we)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(I=!w.detectDuplicates,A=!w.sortStable&&e.slice(0),e.sort($),I){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return A=null,e},x=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=x(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=x(t);return n},(_=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ve,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&q(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,h,f,d,p,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a,b=!1;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&y){for(b=(d=(c=(l=(h=(f=m)[j]||(f[j]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===P&&c[1])&&c[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(b=d=0)||p.pop();)if(1===f.nodeType&&++b&&f===t){l[e]=[P,d,b];break}}else if(y&&(f=t,h=f[j]||(f[j]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),c=l[e]||[],d=c[0]===P&&c[1],b=d),!1===b)for(;(f=++d&&f&&f[g]||(b=d=0)||p.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&(h=f[j]||(f[j]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),l[e]=[P,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,n){var i,o=_.pseudos[e]||_.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[j]?o(n):o.length>1?(i=[e,e,"",n],_.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=Q(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(oe,"$1"));return i[j]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ve,ye),function(t){return(t.textContent||t.innerText||x(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ve,ye).toLowerCase(),function(t){var n;do{if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===z.activeElement&&(!z.hasFocus||z.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(b);return l.prototype=_.filters=_.pseudos,_.setFilters=new l,C=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=H[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=_.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in _.filter)!(i=he[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):H(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=Y[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)(o=v(t[n]))[j]?r.push(o):i.push(o);(o=Y(e,y(i,r))).selector=e}return o},E=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,f=!r&&C(e=l.selector||e);if(n=n||[],1===f.length){if((o=f[0]=f[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&L&&_.relative[o[1].type]){if(!(t=(_.find.ID(s.matches[0].replace(ve,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(s=o[i],!_.relative[a=s.type]);)if((u=_.find[a])&&(r=u(s.matches[0].replace(ve,ye),me.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&h(o)))return Z.apply(n,r),n;break}}return(l||k(e,f))(r,t,!L,n,!t||me.test(e)&&c(t.parentNode)||t),n},w.sortStable=j.split("").sort($).join("")===j,w.detectDuplicates=!!I,D(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(z.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(K,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=be,pe.expr=be.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=be.uniqueSort,pe.text=be.getText,pe.isXMLDoc=be.isXML,pe.contains=be.contains,pe.escapeSelector=be.escape;var we=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},_e=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},xe=pe.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t<r;t++)if(pe.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)pe.find(e,i[t],n);return r>1?pe.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&xe.test(e)?pe(e):e||[],!1).length}});var ke,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ke,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ee.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:te,!0)),Se.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=te.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):pe.isFunction(e)?void 0!==n.ready?n.ready(e):e(pe):pe.makeArray(e,this)}).prototype=pe.fn,ke=pe(te);var Te=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t=pe(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(pe.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&pe(e);if(!xe.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(pe(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return we(e,"parentNode")},parentsUntil:function(e,t,n){return we(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return we(e,"nextSibling")},prevAll:function(e){return we(e,"previousSibling")},nextUntil:function(e,t,n){return we(e,"nextSibling",n)},prevUntil:function(e,t,n){return we(e,"previousSibling",n)},siblings:function(e){return _e((e.parentNode||{}).firstChild,e)},children:function(e){return _e(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),pe.merge([],e.childNodes))}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ae[e]||pe.uniqueSort(i),Te.test(e)&&i.reverse()),this.pushStack(i)}});var Ie=/[^\x20\t\r\n\f]+/g;pe.Callbacks=function(e){e="string"==typeof e?a(e):pe.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){pe.each(n,function(n,r){pe.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==pe.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;(n=pe.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},pe.extend({Deferred:function(t){var n=[["notify","progress",pe.Callbacks("memory"),pe.Callbacks("memory"),2],["resolve","done",pe.Callbacks("once memory"),pe.Callbacks("once memory"),0,"resolved"],["reject","fail",pe.Callbacks("once memory"),pe.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return pe.Deferred(function(t){pe.each(n,function(n,r){var i=pe.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,h=function(){var e,h;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");h=e&&("object"==typeof e||"function"==typeof e)&&e.then,pe.isFunction(h)?i?h.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,h.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},f=i?h:function(){try{h()}catch(e){pe.Deferred.exceptionHook&&pe.Deferred.exceptionHook(e,f.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?f():(pe.Deferred.getStackHook&&(f.stackTrace=pe.Deferred.getStackHook()),e.setTimeout(f))}}var s=0;return pe.Deferred(function(e){n[0][3].add(o(0,e,pe.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,pe.isFunction(t)?t:u)),n[2][3].add(o(0,e,pe.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?pe.extend(e,i):i}},o={};return pe.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=re.call(arguments),o=pe.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?re.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||pe.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var De=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;pe.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&De.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},pe.readyException=function(t){e.setTimeout(function(){throw t})};var ze=pe.Deferred();pe.fn.ready=function(e){return ze.then(e).catch(function(e){pe.readyException(e)}),this},pe.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--pe.readyWait:pe.isReady)||(pe.isReady=!0,!0!==e&&--pe.readyWait>0||ze.resolveWith(te,[pe]))}}),pe.ready.then=ze.then,"complete"===te.readyState||"loading"!==te.readyState&&!te.documentElement.doScroll?e.setTimeout(pe.ready):(te.addEventListener("DOMContentLoaded",h),e.addEventListener("load",h));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===pe.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,pe.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(pe(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},Le=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};f.uid=1,f.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Le(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[pe.camelCase(t)]=n;else for(r in t)i[pe.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][pe.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(pe.camelCase):(t=pe.camelCase(t),t=t in r?[t]:t.match(Ie)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||pe.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!pe.isEmptyObject(t)}};var Ne=new f,Me=new f,Be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Re=/[A-Z]/g;pe.extend({hasData:function(e){return Me.hasData(e)||Ne.hasData(e)},data:function(e,t,n){return Me.access(e,t,n)},removeData:function(e,t){Me.remove(e,t)},_data:function(e,t,n){return Ne.access(e,t,n)},_removeData:function(e,t){Ne.remove(e,t)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Me.get(o),1===o.nodeType&&!Ne.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=pe.camelCase(r.slice(5)),p(o,r,i[r]));Ne.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Me.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=Me.get(o,e)))return n;if(void 0!==(n=p(o,e)))return n}else this.each(function(){Me.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Me.remove(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ne.get(e,t),n&&(!r||Array.isArray(n)?r=Ne.access(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){pe.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ne.get(e,n)||Ne.access(e,n,{empty:pe.Callbacks("once memory").add(function(){Ne.remove(e,[t+"queue",n])})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?pe.queue(this[0],e):void 0===t?this:this.each(function(){var n=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&pe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=pe.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Ne.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var je=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fe=new RegExp("^(?:([+-])=|)("+je+")([a-z%]*)$","i"),Pe=["Top","Right","Bottom","Left"],We=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&pe.contains(e.ownerDocument,e)&&"none"===pe.css(e,"display")},qe=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},He={};pe.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){We(this)?pe(this).show():pe(this).hide()})}});var Ye=/^(?:checkbox|radio)$/i,$e=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ue=/^$|\/(?:java|ecma)script/i,Xe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ge=/<|&#?\w+;/;!function(){var e=te.createDocumentFragment().appendChild(te.createElement("div")),t=te.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),fe.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",fe.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ve=te.documentElement,Ze=/^key/,Je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qe=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,h,f,d,p,g,m=Ne.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&pe.find.matchesSelector(Ve,i),n.guid||(n.guid=pe.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==pe&&pe.event.triggered!==t.type?pe.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Ie)||[""]).length;c--;)a=Qe.exec(t[c])||[],d=g=a[1],p=(a[2]||"").split(".").sort(),d&&(h=pe.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=pe.event.special[d]||{},l=pe.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&pe.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=u[d])||(f=u[d]=[],f.delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,s)||e.addEventListener&&e.addEventListener(d,s)),h.add&&(h.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),pe.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,h,f,d,p,g,m=Ne.hasData(e)&&Ne.get(e);if(m&&(u=m.events)){for(c=(t=(t||"").match(Ie)||[""]).length;c--;)if(a=Qe.exec(t[c])||[],d=g=a[1],p=(a[2]||"").split(".").sort(),d){for(h=pe.event.special[d]||{},f=u[d=(r?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)l=f[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(o,1),l.selector&&f.delegateCount--,h.remove&&h.remove.call(e,l));s&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||pe.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)pe.event.remove(e,d+t[c],n,r,!0);pe.isEmptyObject(u)&&Ne.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=pe.event.fix(e),u=new Array(arguments.length),c=(Ne.get(this,"events")||{})[a.type]||[],l=pe.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=pe.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?pe(i,this).index(c)>-1:pe.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(pe.Event.prototype,e,{enumerable:!0,configurable:!0,get:pe.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[pe.expando]?e:new pe.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},pe.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},pe.Event=function(e,t){return this instanceof pe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_:x,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),void(this[pe.expando]=!0)):new pe.Event(e,t)},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ze.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Je.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},pe.event.addProp),pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||pe.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),pe.fn.extend({on:function(e,t,n,r){return C(this,e,t,n,r)},one:function(e,t,n,r){return C(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,pe(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=x),this.each(function(){pe.event.remove(this,e,n,t)})}});var Ke=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;pe.extend({htmlPrefilter:function(e){return e.replace(Ke,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=pe.contains(e.ownerDocument,e);if(!(fe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)I(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)A(o[r],s[r]);else A(e,a);return(s=y(a,"script")).length>0&&b(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=pe.event.special,o=0;void 0!==(n=e[o]);o++)if(Le(n)){if(t=n[Ne.expando]){if(t.events)for(r in t.events)i[r]?pe.event.remove(n,r):pe.removeEvent(n,r,t.handle);n[Ne.expando]=void 0}n[Me.expando]&&(n[Me.expando]=void 0)}}}),pe.fn.extend({detach:function(e){return z(this,e,!0)},remove:function(e){return z(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?pe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||k(this,e).appendChild(e)})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(pe.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Xe[($e.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(pe.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return D(this,arguments,function(t){var n=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pe.fn[e]=function(e){for(var n,r=[],i=pe(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),pe(i[s])[t](n),oe.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+je+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ve.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ve.removeChild(s),a=null}}var n,r,i,o,s=te.createElement("div"),a=te.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",fe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),pe.extend(fe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ht=["Webkit","Moz","ms"],ft=te.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=pe.camelCase(t),u=ut.test(t),c=e.style;return u||(t=M(a)),s=pe.cssHooks[t]||pe.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t]:("string"===(o=typeof n)&&(i=Fe.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),void(null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssNumber[a]?"":"px")),fe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))))}},css:function(e,t,n,r){var i,o,s,a=pe.camelCase(t);return ut.test(t)||(t=M(a)),(s=pe.cssHooks[t]||pe.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(pe.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?j(e,t,r):qe(e,ct,function(){return j(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&R(e,t,r,"border-box"===pe.css(e,"boxSizing",!1,o),o);return s&&(i=Fe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=pe.css(e,t)),B(0,n,s)}}}),pe.cssHooks.marginLeft=L(fe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Pe[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(pe.cssHooks[e+t].set=B)}),pe.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=pe.css(e,t[s],!1,r);return o}return void 0!==n?pe.style(e,t,n):pe.css(e,t)},e,t,arguments.length>1)}}),pe.Tween=F,F.prototype={constructor:F,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=F.propHooks[this.prop];return e&&e.get?e.get(this):F.propHooks._default.get(this)},run:function(e){var t,n=F.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):F.propHooks._default.set(this),this}},F.prototype.init.prototype=F.prototype,F.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=F.prototype.init,pe.fx.step={};var dt,pt,gt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;pe.Animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Fe.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Ie);for(var n,r=0,i=e.length;r<i;r++)n=e[r],$.tweeners[n]=$.tweeners[n]||[],$.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,u,c,l,h="width"in t||"height"in t,f=this,d={},p=e.style,g=e.nodeType&&We(e),m=Ne.get(e,"fxshow");n.queue||(null==(s=pe._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,pe.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||pe.style(e,r)}if((u=!pe.isEmptyObject(t))||!pe.isEmptyObject(d)){h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Ne.get(e,"display")),"none"===(l=pe.css(e,"display"))&&(c?l=c:(v([e],!0),c=e.style.display||c,l=pe.css(e,"display"),v([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===pe.css(e,"float")&&(u||(f.done(function(){p.display=c}),null==c&&(l=p.display,c="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1;for(r in d)u||(m?"hidden"in m&&(g=m.hidden):m=Ne.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&v([e],!0),f.done(function(){g||v([e]),Ne.remove(e,"fxshow");for(r in d)pe.style(e,r,d[r])})),u=H(g?m[r]:0,r,f),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}],prefilter:function(e,t){t?$.prefilters.unshift(e):$.prefilters.push(e)}}),pe.speed=function(e,t,n){var r=e&&"object"==typeof e?pe.extend({},e):{complete:n||!n&&t||pe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pe.isFunction(t)&&t};return pe.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in pe.fx.speeds?r.duration=pe.fx.speeds[r.duration]:r.duration=pe.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){pe.isFunction(r.old)&&r.old.call(this),r.queue&&pe.dequeue(this,r.queue)},r},pe.fn.extend({fadeTo:function(e,t,n,r){return this.filter(We).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=pe.isEmptyObject(e),o=pe.speed(t,n,r),s=function(){var t=$(this,pe.extend({},e),o);(i||Ne.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=pe.timers,s=Ne.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&mt.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||pe.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Ne.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=pe.timers,s=r?r.length:0;for(n.finish=!0,pe.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),pe.each(["toggle","show","hide"],function(e,t){var n=pe.fn[t];pe.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(q(t,!0),e,r,i)}}),pe.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pe.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),pe.timers=[],pe.fx.tick=function(){var e,t=0,n=pe.timers;for(dt=pe.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||pe.fx.stop(),dt=void 0},pe.fx.timer=function(e){pe.timers.push(e),pe.fx.start()},pe.fx.interval=13,pe.fx.start=function(){pt||(pt=!0,P())},pe.fx.stop=function(){pt=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(t,n){return t=pe.fx?pe.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=te.createElement("input"),t=te.createElement("select").appendChild(te.createElement("option"));e.type="checkbox",fe.checkOn=""!==e.value,fe.optSelected=t.selected,(e=te.createElement("input")).value="t",e.type="radio",fe.radioValue="t"===e.value}();var vt,yt=pe.expr.attrHandle;pe.fn.extend({attr:function(e,t){return Oe(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(i=pe.attrHooks[t.toLowerCase()]||(pe.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void pe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=pe.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!fe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ie);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?pe.removeAttr(e,n):e.setAttribute(n,n),n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||pe.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Oe(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[pe.propFix[e]||e]})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),fe.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),pe.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,X(this)))});if("string"==typeof e&&e)for(t=e.match(Ie)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=U(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,X(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ie)||[];n=this[u++];)if(i=X(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=U(r))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,X(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(Ie)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=X(this))&&Ne.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Ne.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(X(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,pe(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),(t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_t,""):null==n?"":n:void 0}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:U(pe.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(((n=o[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=pe(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=pe.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=pe.inArray(pe.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},fe.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var xt=/^(?:focusinfocus|focusoutblur)$/;pe.extend(pe.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,h,f=[r||te],d=ce.call(t,"type")?t.type:t,p=ce.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||te,3!==r.nodeType&&8!==r.nodeType&&!xt.test(d+pe.event.triggered)&&(d.indexOf(".")>-1&&(p=d.split("."),d=p.shift(),p.sort()),c=d.indexOf(":")<0&&"on"+d,t=t[pe.expando]?t:new pe.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),h=pe.event.special[d]||{},i||!h.trigger||!1!==h.trigger.apply(r,n))){if(!i&&!h.noBubble&&!pe.isWindow(r)){for(u=h.delegateType||d,xt.test(u+d)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(r.ownerDocument||te)&&f.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)t.type=o>1?u:h.bindType||d,(l=(Ne.get(s,"events")||{})[t.type]&&Ne.get(s,"handle"))&&l.apply(s,n),(l=c&&s[c])&&l.apply&&Le(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),n)||!Le(r)||c&&pe.isFunction(r[d])&&!pe.isWindow(r)&&((a=r[c])&&(r[c]=null),pe.event.triggered=d,r[d](),pe.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(r,null,t)}}),pe.fn.extend({trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return pe.event.trigger(e,t,n,!0)}}),pe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),fe.focusin="onfocusin"in e,fe.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Ne.access(r,t);i||r.addEventListener(e,n,!0),Ne.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ne.access(r,t)-1;i?Ne.access(r,t,i):(r.removeEventListener(e,n,!0),Ne.remove(r,t))}}});var St=e.location,Ct=pe.now(),kt=/\?/;pe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var Et=/\[\]$/,Tt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){var n=pe.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)G(n,e[n],t,i);return r.join("&")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&It.test(this.nodeName)&&!At.test(e)&&(this.checked||!Ye.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:Array.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var Dt=/%20/g,zt=/#.*$/,Ot=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Rt={},jt={},Ft="*/".concat("*"),Pt=te.createElement("a");Pt.href=St.href,pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Nt.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?J(J(e,pe.ajaxSettings),t):J(pe.ajaxSettings,e)},ajaxPrefilter:V(Rt),ajaxTransport:V(jt),ajax:function(t,n){function r(t,n,r,a){var c,f,d,w,_,x=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(w=Q(p,S,r)),w=K(p,w,S,c),c?(p.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(pe.lastModified[o]=_),(_=S.getResponseHeader("etag"))&&(pe.etag[o]=_)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,f=w.data,d=w.error,c=!d)):(d=x,!t&&x||(x="error",t<0&&(t=0))),S.status=t,S.statusText=(n||x)+"",c?v.resolveWith(g,[f,x,S]):v.rejectWith(g,[S,x,d]),S.statusCode(b),b=void 0,h&&m.trigger(c?"ajaxSuccess":"ajaxError",[S,p,c?f:d]),y.fireWith(g,[S,x]),h&&(m.trigger("ajaxComplete",[S,p]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,h,f,d,p=pe.ajaxSetup({},n),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?pe(g):pe.event,v=pe.Deferred(),y=pe.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Lt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==l&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),r(0,t),this}};if(v.promise(S),p.url=((t||p.url||St.href)+"").replace(Bt,St.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Ie)||[""],null==p.crossDomain){c=te.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Pt.protocol+"//"+Pt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=pe.param(p.data,p.traditional)),Z(Rt,p,n,S),l)return S;(h=pe.event&&p.global)&&0==pe.active++&&pe.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Mt.test(p.type),o=p.url.replace(zt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Dt,"+")):(d=p.url.slice(o.length),p.data&&(o+=(kt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Ot,"$1"),d=(kt.test(o)?"&":"?")+"_="+Ct+++d),p.url=o+d),p.ifModified&&(pe.lastModified[o]&&S.setRequestHeader("If-Modified-Since",pe.lastModified[o]),pe.etag[o]&&S.setRequestHeader("If-None-Match",pe.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ft+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)S.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(g,S,p)||l))return S.abort();if(x="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),i=Z(jt,p,n,S)){if(S.readyState=1,h&&m.trigger("ajaxSend",[S,p]),l)return S;p.async&&p.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},p.timeout));try{l=!1,i.send(w,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isFunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:i,data:n,success:r},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},pe.fn.extend({wrapAll:function(e){var t;return this[0]&&(pe.isFunction(e)&&(e=e.call(this[0])),t=pe(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){pe(this).replaceWith(this.childNodes)}),this}}),pe.expr.pseudos.hidden=function(e){return!pe.expr.pseudos.visible(e)},pe.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},pe.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},qt=pe.ajaxSettings.xhr();fe.cors=!!qt&&"withCredentials"in qt,fe.ajax=qt=!!qt,pe.ajaxTransport(function(t){var n,r;if(fe.cors||qt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Wt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),pe.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=pe("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),te.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Ht=[],Yt=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||pe.expando+"_"+Ct++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Yt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Yt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||pe.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?pe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ht.push(i)),s&&pe.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),fe.createHTMLDocument=function(){var e=te.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),pe.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(fe.createHTMLDocument?(t=te.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=te.location.href,t.head.appendChild(r)):t=te),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=w([e],t,o),o&&o.length&&pe(o).remove(),pe.merge([],i.childNodes))},pe.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?pe("<div>").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.pseudos.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c=pe.css(e,"position"),l=pe(e),h={};"static"===c&&(e.style.position="relative"),a=l.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(r=l.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+i),"using"in t?t.using.call(e,h):l.css(h)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];return o?o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===pe.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+pe.css(e[0],"borderTopWidth",!0),left:r.left+pe.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-pe.css(n,"marginTop",!0),left:t.left-r.left-pe.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||Ve})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;pe.fn[e]=function(r){return Oe(this,function(e,r,i){var o;return pe.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=L(fe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?pe(e).position()[t]+"px":n})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return pe.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?pe.css(t,n,a):pe.style(t,n,i,a)},t,s?i:void 0,s)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.holdReady=function(e){e?pe.readyWait++:pe.ready(!0)},pe.isArray=Array.isArray,pe.parseJSON=JSON.parse,pe.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pe});var $t=e.jQuery,Ut=e.$;return pe.noConflict=function(t){return e.$===pe&&(e.$=Ut),t&&e.jQuery===pe&&(e.jQuery=$t),pe},t||(e.jQuery=e.$=pe),pe}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).store=e()}}(function(){var define,module,exports;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";var r=e("../src/store-engine"),i=e("../storages/all"),o=e("../plugins/all");t.exports=r.createStore(i,o)},{"../plugins/all":2,"../src/store-engine":13,"../storages/all":15}],2:[function(e,t,n){"use strict";t.exports={defaults:e("./defaults"),dump:e("./dump"),events:e("./events"),observe:e("./observe"),expire:e("./expire"),json2:e("./json2"),operations:e("./operations"),update:e("./update"),"v1-backcompat":e("./v1-backcompat")}},{"./defaults":3,"./dump":4,"./events":5,"./expire":6,"./json2":7,"./observe":9,"./operations":10,"./update":11,"./v1-backcompat":12}],3:[function(e,t,n){"use strict";t.exports=function(){var e={};return{defaults:function(t,n){e=n},get:function(t,n){var r=t();return void 0!==r?r:e[n]}}}},{}],4:[function(e,t,n){"use strict";t.exports=function(){return{dump:function(e){var t={};return this.each(function(e,n){t[n]=e}),t}}}},{}],5:[function(e,t,n){"use strict";function r(){return a(c,{_id:0,_subSignals:{},_subCallbacks:{}})}var i=e("../src/util"),o=i.bind,s=i.each,a=i.create,u=i.slice;t.exports=function(){var e=r();return{watch:function(t,n,r){return e.on(n,o(this,r))},unwatch:function(t,n){e.off(n)},once:function(t,n,r){e.once(n,o(this,r))},set:function(t,n,r){var i=this.get(n);t(),e.fire(n,r,i)},remove:function(t,n){var r=this.get(n);t(),e.fire(n,void 0,r)},clearAll:function(t){var n={};this.each(function(e,t){n[t]=e}),t(),s(n,function(t,n){e.fire(n,void 0,t)})}}};var c={_id:null,_subCallbacks:null,_subSignals:null,on:function(e,t){return this._subCallbacks[e]||(this._subCallbacks[e]={}),this._id+=1,this._subCallbacks[e][this._id]=t,this._subSignals[this._id]=e,this._id},off:function(e){var t=this._subSignals[e];delete this._subCallbacks[t][e],delete this._subSignals[e]},once:function(e,t){var n=this.on(e,o(this,function(){t.apply(this,arguments),this.off(n)}))},fire:function(e){var t=u(arguments,1);s(this._subCallbacks[e],function(e){e.apply(this,t)})}}},{"../src/util":14}],6:[function(e,t,n){"use strict";var r="expire_mixin";t.exports=function(){var e=this.namespace(r);return{set:function(t,n,i,o){return this.hasNamespace(r)||e.set(n,o),t()},get:function(t,n){return this.hasNamespace(r)||e.get(n,Number.MAX_VALUE)<=(new Date).getTime()&&this.remove(n),t()},remove:function(t,n){return this.hasNamespace(r)||e.remove(n),t()}}}},{}],7:[function(e,t,n){"use strict";t.exports=function(){return e("./lib/json2"),{}}},{"./lib/json2":8}],8:[function(require,module,exports){"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};"object"!==("undefined"==typeof JSON?"undefined":_typeof(JSON))&&(JSON={}),function(){function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,o,s,a=gap,u=t[e];switch(u&&"object"===(void 0===u?"undefined":_typeof(u))&&"function"==typeof u.toJSON&&(u=u.toJSON(e)),"function"==typeof rep&&(u=rep.call(t,e,u)),void 0===u?"undefined":_typeof(u)){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,n=0;n<o;n+=1)s[n]=str(n,u)||"null";return i=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,i}if(rep&&"object"===(void 0===rep?"undefined":_typeof(rep)))for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(r=rep[n],(i=str(r,u))&&s.push(quote(r)+(gap?": ":":")+i));else for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(i=str(r,u))&&s.push(quote(r)+(gap?": ":":")+i);return i=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,i}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!==(void 0===t?"undefined":_typeof(t))||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&"object"===(void 0===i?"undefined":_typeof(i)))for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},{}],9:[function(e,t,n){"use strict";var r=e("./events");t.exports=[r,function(){return{observe:function(e,t,n){var r=this.watch(t,n);return n(this.get(t)),r},unobserve:function(e,t){this.unwatch(t)}}}]},{"./events":5}],10:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e("../src/util"),o=i.slice,s=i.assign,a=e("./update");t.exports=[a,function(){function e(e,t){var n,r=t[1],i=o(t,2);return this.update(r,[],function(t){n=Array.prototype[e].apply(t,i)}),n}return{push:function(t,n,r,i,o,s){return e.call(this,"push",arguments)},pop:function(t,n){return e.call(this,"pop",arguments)},shift:function(t,n){return e.call(this,"shift",arguments)},unshift:function(t,n,r,i,o,s){return e.call(this,"unshift",arguments)},assign:function(e,t,n,i,a,u){var c=o(arguments,2);return this.update(t,{},function(e){if("object"!=(void 0===e?"undefined":r(e)))throw new Error('store.assign called for non-object value with key "'+t+'"');return c.unshift(e),s.apply(Object,c)})}}}]},{"../src/util":14,"./update":11}],11:[function(e,t,n){"use strict";t.exports=function(){return{update:function(e,t,n,r){3==arguments.length&&(r=n,n=void 0);var i=this.get(t,n),o=r(i);this.set(t,void 0!=o?o:i)}}}},{}],12:[function(e,t,n){"use strict";function r(e,t){return void 0!==this.get(t)}function i(e,t,n,r){null==r&&(r=n,n=null),null==n&&(n={});var i=this.get(t,n),o=r(i);this.set(t,void 0===o?i:o)}function o(e){return this.clearAll.call(this)}function s(e,t){return this.each.call(this,function(e,n){t(n,e)})}function a(e){return this.dump.call(this)}function u(e,t){return JSON.stringify(t)}function c(e,t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}}var l=e("./dump"),h=e("./json2");t.exports=[l,h,function(){return this.disabled=!this.enabled,{has:r,transact:i,clear:o,forEach:s,getAll:a,serialize:u,deserialize:c}}]},{"./dump":4,"./json2":7}],13:[function(e,t,n){"use strict";function r(e,t){var n=a({_seenPlugins:[],_namespacePrefix:"",_namespaceRegexp:null,_legalNamespace:/^[a-zA-Z0-9_\-]+$/,_storage:function(){if(!this.enabled)throw new Error("store.js: No supported storage has been added! Add one (e.g store.addStorage(require('store/storages/cookieStorage')) or use a build with more built-in storages (e.g https://github.com/marcuswestin/store.js/tree/master/dist/store.legacy.min.js)");return this._storage.resolved},_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var n=e.read(t)===t;return e.remove(t),n}catch(e){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){function t(){if(n){var e=n.apply(i,t.args);return delete t.args,e}}var r=Array.prototype.slice.call(arguments,0),i=this,o=[t].concat(r);return t.args=r,e.apply(i,o)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var n="";try{n=JSON.parse(e)}catch(t){n=e}return void 0!==n?n:t}},h);return s(e,function(e){n.addStorage(e)}),s(t,function(e){n.addPlugin(e)}),n}var i=e("./util"),o=i.pluck,s=i.each,a=i.create,u=i.isList,c=i.isFunction,l=i.isObject;t.exports={createStore:r};var h={version:"2.0.3",enabled:!1,storage:null,addStorage:function(e){this.enabled||this._testStorage(e)&&(this._storage.resolved=e,this.enabled=!0,this.storage=e.name)},addPlugin:function(e){var t=this;if(u(e))s(e,function(e){t.addPlugin(e)});else if(!o(this._seenPlugins,function(t){return e===t})){if(this._seenPlugins.push(e),!c(e))throw new Error("Plugins must be function values that return objects");var n=e.call(this);if(!l(n))throw new Error("Plugins must return an object of function properties");s(n,function(n,r){if(!c(n))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(n,r)})}},get:function(e,t){var n=this._storage().read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return void 0===t?this.remove(e):(this._storage().write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this._storage().remove(this._namespacePrefix+e)},each:function(e){var t=this;this._storage().each(function(n,r){e(t._deserialize(n),r.replace(t._namespaceRegexp,""))})},clearAll:function(){this._storage().clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},namespace:function(e){if(!this._legalNamespace.test(e))throw new Error("store.js namespaces can only have alhpanumerics + underscores and dashes");var t="__storejs_"+e+"_";return a(this,{_namespacePrefix:t,_namespaceRegexp:t?new RegExp("^"+t):null})},createStore:function(e,t){return r(e,t)}}},{"./util":14}],14:[function(e,t,n){(function(e){"use strict";function n(e,t){return Array.prototype.slice.call(e,t||0)}function r(e,t){i(e,function(e,n){return t(e,n),!1})}function i(e,t){if(o(e)){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]}else for(var r in e)if(e.hasOwnProperty(r)&&t(e[r],r))return e[r]}function o(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}var s=Object.assign?Object.assign:function(e,t,n,i){for(var o=1;o<arguments.length;o++)r(Object(arguments[o]),function(t,n){e[n]=t});return e},a=function(){if(Object.create)return function(e,t,r,i){var o=n(arguments,1);return s.apply(this,[Object.create(e)].concat(o))};var e=function(){};return function(t,r,i,o){var a=n(arguments,1);return e.prototype=t,s.apply(this,[new e].concat(a))}}(),u=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},c="undefined"!=typeof window?window:e;t.exports={assign:s,create:a,trim:u,bind:function(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}},slice:n,each:r,map:function(e,t){var n=o(e)?[]:{};return i(e,function(e,r){return n[r]=t(e,r),!1}),n},pluck:i,isList:o,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:c}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,t,n){"use strict";t.exports={localStorage:e("./localStorage"),"oldFF-globalStorage":e("./oldFF-globalStorage"),"oldIE-userDataStorage":e("./oldIE-userDataStorage"),cookieStorage:e("./cookieStorage"),sessionStorage:e("./sessionStorage"),memoryStorage:e("./memoryStorage")}},{"./cookieStorage":16,"./localStorage":17,"./memoryStorage":18,"./oldFF-globalStorage":19,"./oldIE-userDataStorage":20,"./sessionStorage":21}],16:[function(e,t,n){"use strict";function r(e){for(var t=c.cookie.split(/; ?/g),n=t.length-1;n>=0;n--)if(u(t[n])){var r=t[n].split("="),i=unescape(r[0]);e(unescape(r[1]),i)}}function i(e){e&&o(e)&&(c.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function o(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(c.cookie)}var s=e("../src/util"),a=s.Global,u=s.trim;t.exports={name:"cookieStorage",read:function(e){if(!e||!o(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(c.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){e&&(c.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:r,remove:i,clearAll:function(){r(function(e,t){i(t)})}};var c=a.document},{"../src/util":14}],17:[function(e,t,n){"use strict";function r(){return o.localStorage}function i(e){return r().getItem(e)}var o=e("../src/util").Global;t.exports={name:"localStorage",read:i,write:function(e,t){return r().setItem(e,t)},each:function(e){for(var t=r().length-1;t>=0;t--){var n=r().key(t);e(i(n),n)}},remove:function(e){return r().removeItem(e)},clearAll:function(){return r().clear()}}},{"../src/util":14}],18:[function(e,t,n){"use strict";t.exports={name:"memoryStorage",read:function(e){return r[e]},write:function(e,t){r[e]=t},each:function(e){for(var t in r)r.hasOwnProperty(t)&&e(r[t],t)},remove:function(e){delete r[e]},clearAll:function(e){r={}}};var r={}},{}],19:[function(e,t,n){"use strict";function r(e){for(var t=o.length-1;t>=0;t--){var n=o.key(t);e(o[n],n)}}var i=e("../src/util").Global;t.exports={name:"oldFF-globalStorage",read:function(e){return o[e]},write:function(e,t){o[e]=t},each:r,remove:function(e){return o.removeItem(e)},clearAll:function(){r(function(e,t){delete o[e]})}};var o=i.globalStorage},{"../src/util":14}],20:[function(e,t,n){"use strict";function r(e){return e.replace(/^d/,"___$&").replace(c,"___")}var i=e("../src/util").Global;t.exports={name:"oldIE-userDataStorage",write:function(e,t){if(!u){var n=r(e);a(function(e){e.setAttribute(n,t),e.save(o)})}},read:function(e){if(!u){var t=r(e),n=null;return a(function(e){n=e.getAttribute(t)}),n}},each:function(e){a(function(t){for(var n=t.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];e(t.getAttribute(i.name),i.name)}})},remove:function(e){var t=r(e);a(function(e){e.removeAttribute(t),e.save(o)})},clearAll:function(){a(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(o);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(o)})}};var o="storejs",s=i.document,a=function(){if(!s||!s.documentElement||!s.documentElement.addBehavior)return null;var e,t,n,r="script";try{(t=new ActiveXObject("htmlfile")).open(),t.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,n=e.createElement("div")}catch(t){n=s.createElement("div"),e=s.body}return function(t){var r=[].slice.call(arguments,0);r.unshift(n),e.appendChild(n),n.addBehavior("#default#userData"),n.load(o),t.apply(this,r),e.removeChild(n)}}(),u=(i.navigator?i.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g")},{"../src/util":14}],21:[function(e,t,n){"use strict";function r(){return o.sessionStorage}function i(e){return r().getItem(e)}var o=e("../src/util").Global;t.exports={name:"sessionStorage",read:i,write:function(e,t){return r().setItem(e,t)},each:function(e){for(var t=r().length-1;t>=0;t--){var n=r().key(t);e(i(n),n)}},remove:function(e){return r().removeItem(e)},clearAll:function(){return r().clear()}}},{"../src/util":14}]},{},[1])(1)}),Enumerable=function(){var e="Single:sequence contains more than one element.",t=!0,n=null,r=!1,i=function(e){this.GetEnumerator=e};i.Choice=function(){var e=arguments[0]instanceof Array?arguments[0]:arguments;return new i(function(){return new c(o.Blank,function(){return this.Yield(e[Math.floor(Math.random()*e.length)])},o.Blank)})},i.Cycle=function(){var e=arguments[0]instanceof Array?arguments[0]:arguments;return new i(function(){var t=0;return new c(o.Blank,function(){return t>=e.length&&(t=0),this.Yield(e[t++])},o.Blank)})},i.Empty=function(){return new i(function(){return new c(o.Blank,function(){return r},o.Blank)})},i.From=function(e){if(e==n)return i.Empty();if(e instanceof i)return e;if(typeof e==s.Number||typeof e==s.Boolean)return i.Repeat(e,1);if(typeof e==s.String)return new i(function(){var t=0;return new c(o.Blank,function(){return t<e.length?this.Yield(e.charAt(t++)):r},o.Blank)});if(typeof e!=s.Function){if(typeof e.length==s.Number)return new d(e);if(!(e instanceof Object)&&a.IsIEnumerable(e))return new i(function(){var n,i=t;return new c(function(){n=new Enumerator(e)},function(){return i?i=r:n.moveNext(),n.atEnd()?r:this.Yield(n.item())},o.Blank)})}return new i(function(){var t=[],n=0;return new c(function(){for(var n in e)!(e[n]instanceof Function)&&t.push({Key:n,Value:e[n]})},function(){return n<t.length?this.Yield(t[n++]):r},o.Blank)})},i.Return=function(e){return i.Repeat(e,1)},i.Matches=function(e,t,s){return s==n&&(s=""),t instanceof RegExp&&(s+=t.ignoreCase?"i":"",s+=t.multiline?"m":"",t=t.source),-1===s.indexOf("g")&&(s+="g"),new i(function(){var n;return new c(function(){n=new RegExp(t,s)},function(){var t=n.exec(e);return t?this.Yield(t):r},o.Blank)})},i.Range=function(e,t,r){return r==n&&(r=1),i.ToInfinity(e,r).Take(t)},i.RangeDown=function(e,t,r){return r==n&&(r=1),i.ToNegativeInfinity(e,r).Take(t)},i.RangeTo=function(e,t,r){return r==n&&(r=1),e<t?i.ToInfinity(e,r).TakeWhile(function(e){return e<=t}):i.ToNegativeInfinity(e,r).TakeWhile(function(e){return e>=t})},i.Repeat=function(e,t){return t!=n?i.Repeat(e).Take(t):new i(function(){return new c(o.Blank,function(){return this.Yield(e)},o.Blank)})},i.RepeatWithFinalize=function(e,t){return e=a.CreateLambda(e),t=a.CreateLambda(t),new i(function(){var r;return new c(function(){r=e()},function(){return this.Yield(r)},function(){r!=n&&(t(r),r=n)})})},i.Generate=function(e,t){return t!=n?i.Generate(e).Take(t):(e=a.CreateLambda(e),new i(function(){return new c(o.Blank,function(){return this.Yield(e())},o.Blank)}))},i.ToInfinity=function(e,t){return e==n&&(e=0),t==n&&(t=1),new i(function(){var n;return new c(function(){n=e-t},function(){return this.Yield(n+=t)},o.Blank)})},i.ToNegativeInfinity=function(e,t){return e==n&&(e=0),t==n&&(t=1),new i(function(){var n;return new c(function(){n=e+t},function(){return this.Yield(n-=t)},o.Blank)})},i.Unfold=function(e,n){return n=a.CreateLambda(n),new i(function(){var i,s=t;return new c(o.Blank,function(){return s?(s=r,i=e,this.Yield(i)):(i=n(i),this.Yield(i))},o.Blank)})},i.prototype={CascadeBreadthFirst:function(e,t){var n=this;return e=a.CreateLambda(e),t=a.CreateLambda(t),new i(function(){var o,s=0,u=[];return new c(function(){o=n.GetEnumerator()},function(){for(;;){if(o.MoveNext())return u.push(o.Current()),this.Yield(t(o.Current(),s));var n=i.From(u).SelectMany(function(t){return e(t)});if(!n.Any())return r;s++,u=[],a.Dispose(o),o=n.GetEnumerator()}},function(){a.Dispose(o)})})},CascadeDepthFirst:function(e,t){var n=this;return e=a.CreateLambda(e),t=a.CreateLambda(t),new i(function(){var o,s=[];return new c(function(){o=n.GetEnumerator()},function(){for(;;){if(o.MoveNext()){var n=t(o.Current(),s.length);return s.push(o),o=i.From(e(o.Current())).GetEnumerator(),this.Yield(n)}if(s.length<=0)return r;a.Dispose(o),o=s.pop()}},function(){try{a.Dispose(o)}finally{i.From(s).ForEach(function(e){e.Dispose()})}})})},Flatten:function(){var e=this;return new i(function(){var t,s=n;return new c(function(){t=e.GetEnumerator()},function(){for(;;){if(s!=n){if(s.MoveNext())return this.Yield(s.Current());s=n}if(t.MoveNext()){if(t.Current()instanceof Array){a.Dispose(s),s=i.From(t.Current()).SelectMany(o.Identity).Flatten().GetEnumerator();continue}return this.Yield(t.Current())}return r}},function(){try{a.Dispose(t)}finally{a.Dispose(s)}})})},Pairwise:function(e){var t=this;return e=a.CreateLambda(e),new i(function(){var n;return new c(function(){(n=t.GetEnumerator()).MoveNext()},function(){var t=n.Current();return n.MoveNext()?this.Yield(e(t,n.Current())):r},function(){a.Dispose(n)})})},Scan:function(e,o,s){if(s!=n)return this.Scan(e,o).Select(s);var u;o==n?(o=a.CreateLambda(e),u=r):(o=a.CreateLambda(o),u=t);var l=this;return new i(function(){var n,i,s=t;return new c(function(){n=l.GetEnumerator()},function(){if(s){if(s=r,u)return this.Yield(i=e);if(n.MoveNext())return this.Yield(i=n.Current())}return n.MoveNext()?this.Yield(i=o(i,n.Current())):r},function(){a.Dispose(n)})})},Select:function(e){var t=this;return e=a.CreateLambda(e),new i(function(){var n,i=0;return new c(function(){n=t.GetEnumerator()},function(){return n.MoveNext()?this.Yield(e(n.Current(),i++)):r},function(){a.Dispose(n)})})},SelectMany:function(e,t){var o=this;return e=a.CreateLambda(e),t==n&&(t=function(e,t){return t}),t=a.CreateLambda(t),new i(function(){var s,u=void 0,l=0;return new c(function(){s=o.GetEnumerator()},function(){if(void 0===u&&!s.MoveNext())return r;do{if(u==n){var o=e(s.Current(),l++);u=i.From(o).GetEnumerator()}if(u.MoveNext())return this.Yield(t(s.Current(),u.Current()));a.Dispose(u),u=n}while(s.MoveNext());return r},function(){try{a.Dispose(s)}finally{a.Dispose(u)}})})},Where:function(e){e=a.CreateLambda(e);var t=this;return new i(function(){var n,i=0;return new c(function(){n=t.GetEnumerator()},function(){for(;n.MoveNext();)if(e(n.Current(),i++))return this.Yield(n.Current());return r},function(){a.Dispose(n)})})},OfType:function(e){var t;switch(e){case Number:t=s.Number;break;case String:t=s.String;break;case Boolean:t=s.Boolean;break;case Function:t=s.Function;break;default:t=n}return t===n?this.Where(function(t){return t instanceof e}):this.Where(function(e){return typeof e===t})},Zip:function(e,t){t=a.CreateLambda(t);var n=this;return new i(function(){var o,s,u=0;return new c(function(){o=n.GetEnumerator(),s=i.From(e).GetEnumerator()},function(){return o.MoveNext()&&s.MoveNext()?this.Yield(t(o.Current(),s.Current(),u++)):r},function(){try{a.Dispose(o)}finally{a.Dispose(s)}})})},Join:function(e,t,s,u,l){t=a.CreateLambda(t),s=a.CreateLambda(s),u=a.CreateLambda(u),l=a.CreateLambda(l);var h=this;return new i(function(){var f,d,p=n,g=0;return new c(function(){f=h.GetEnumerator(),d=i.From(e).ToLookup(s,o.Identity,l)},function(){for(;;){if(p!=n){var e=p[g++];if(void 0!==e)return this.Yield(u(f.Current(),e));e=n,g=0}if(!f.MoveNext())return r;var i=t(f.Current());p=d.Get(i).ToArray()}},function(){a.Dispose(f)})})},GroupJoin:function(e,t,s,u,l){t=a.CreateLambda(t),s=a.CreateLambda(s),u=a.CreateLambda(u),l=a.CreateLambda(l);var h=this;return new i(function(){var f=h.GetEnumerator(),d=n;return new c(function(){f=h.GetEnumerator(),d=i.From(e).ToLookup(s,o.Identity,l)},function(){if(f.MoveNext()){var e=d.Get(t(f.Current()));return this.Yield(u(f.Current(),e))}return r},function(){a.Dispose(f)})})},All:function(e){e=a.CreateLambda(e);var n=t;return this.ForEach(function(t){if(!e(t))return n=r,r}),n},Any:function(e){e=a.CreateLambda(e);var n=this.GetEnumerator();try{if(0==arguments.length)return n.MoveNext();for(;n.MoveNext();)if(e(n.Current()))return t;return r}finally{a.Dispose(n)}},Concat:function(e){var t=this;return new i(function(){var o,s;return new c(function(){o=t.GetEnumerator()},function(){if(s==n){if(o.MoveNext())return this.Yield(o.Current());s=i.From(e).GetEnumerator()}return s.MoveNext()?this.Yield(s.Current()):r},function(){try{a.Dispose(o)}finally{a.Dispose(s)}})})},Insert:function(e,n){var o=this;return new i(function(){var s,u,l=0,h=r;return new c(function(){s=o.GetEnumerator(),u=i.From(n).GetEnumerator()},function(){return l==e&&u.MoveNext()?(h=t,this.Yield(u.Current())):s.MoveNext()?(l++,this.Yield(s.Current())):!h&&u.MoveNext()?this.Yield(u.Current()):r},function(){try{a.Dispose(s)}finally{a.Dispose(u)}})})},Alternate:function(e){return e=i.Return(e),this.SelectMany(function(t){return i.Return(t).Concat(e)}).TakeExceptLast()},Contains:function(e,n){n=a.CreateLambda(n);var i=this.GetEnumerator();try{for(;i.MoveNext();)if(n(i.Current())===e)return t;return r}finally{a.Dispose(i)}},DefaultIfEmpty:function(e){var n=this;return new i(function(){var i,o=t;return new c(function(){i=n.GetEnumerator()},function(){return i.MoveNext()?(o=r,this.Yield(i.Current())):o?(o=r,this.Yield(e)):r},function(){a.Dispose(i)})})},Distinct:function(e){return this.Except(i.Empty(),e)},Except:function(e,t){t=a.CreateLambda(t);var n=this;return new i(function(){var o,s;return new c(function(){o=n.GetEnumerator(),s=new p(t),i.From(e).ForEach(function(e){s.Add(e)})},function(){for(;o.MoveNext();){var e=o.Current();if(!s.Contains(e))return s.Add(e),this.Yield(e)}return r},function(){a.Dispose(o)})})},Intersect:function(e,t){t=a.CreateLambda(t);var n=this;return new i(function(){var o,s,u;return new c(function(){o=n.GetEnumerator(),s=new p(t),i.From(e).ForEach(function(e){s.Add(e)}),u=new p(t)},function(){for(;o.MoveNext();){var e=o.Current();if(!u.Contains(e)&&s.Contains(e))return u.Add(e),this.Yield(e)}return r},function(){a.Dispose(o)})})},SequenceEqual:function(e,n){n=a.CreateLambda(n);var o=this.GetEnumerator();try{var s=i.From(e).GetEnumerator();try{for(;o.MoveNext();)if(!s.MoveNext()||n(o.Current())!==n(s.Current()))return r;return s.MoveNext()?r:t}finally{a.Dispose(s)}}finally{a.Dispose(o)}},Union:function(e,t){t=a.CreateLambda(t);var n=this;return new i(function(){var o,s,u;return new c(function(){o=n.GetEnumerator(),u=new p(t)},function(){var t;if(void 0===s){for(;o.MoveNext();)if(t=o.Current(),!u.Contains(t))return u.Add(t),this.Yield(t);s=i.From(e).GetEnumerator()}for(;s.MoveNext();)if(t=s.Current(),!u.Contains(t))return u.Add(t),this.Yield(t);return r},function(){try{a.Dispose(o)}finally{a.Dispose(s)}})})},OrderBy:function(e){return new h(this,e,r)},OrderByDescending:function(e){return new h(this,e,t)},Reverse:function(){var e=this;return new i(function(){var t,n;return new c(function(){t=e.ToArray(),n=t.length},function(){return n>0?this.Yield(t[--n]):r},o.Blank)})},Shuffle:function(){var e=this;return new i(function(){var t;return new c(function(){t=e.ToArray()},function(){if(t.length>0){var e=Math.floor(Math.random()*t.length);return this.Yield(t.splice(e,1)[0])}return r},o.Blank)})},GroupBy:function(e,t,o,s){var u=this;return e=a.CreateLambda(e),t=a.CreateLambda(t),o!=n&&(o=a.CreateLambda(o)),s=a.CreateLambda(s),new i(function(){var i;return new c(function(){i=u.ToLookup(e,t,s).ToEnumerable().GetEnumerator()},function(){for(;i.MoveNext();)return o==n?this.Yield(i.Current()):this.Yield(o(i.Current().Key(),i.Current()));return r},function(){a.Dispose(i)})})},PartitionBy:function(e,o,s,u){var l=this;e=a.CreateLambda(e),o=a.CreateLambda(o),u=a.CreateLambda(u);var h;return s==n?(h=r,s=function(e,t){return new m(e,t)}):(h=t,s=a.CreateLambda(s)),new i(function(){var n,f,d,p=[];return new c(function(){(n=l.GetEnumerator()).MoveNext()&&(f=e(n.Current()),d=u(f),p.push(o(n.Current())))},function(){for(var a;(a=n.MoveNext())==t&&d===u(e(n.Current()));)p.push(o(n.Current()));if(p.length>0){var c=h?s(f,i.From(p)):s(f,p);return a?(f=e(n.Current()),d=u(f),p=[o(n.Current())]):p=[],this.Yield(c)}return r},function(){a.Dispose(n)})})},BufferWithCount:function(e){var t=this;return new i(function(){var n;return new c(function(){n=t.GetEnumerator()},function(){for(var t=[],i=0;n.MoveNext();)if(t.push(n.Current()),++i>=e)return this.Yield(t);return t.length>0?this.Yield(t):r},function(){a.Dispose(n)})})},Aggregate:function(e,t,n){return this.Scan(e,t,n).Last()},Average:function(e){e=a.CreateLambda(e);var t=0,n=0;return this.ForEach(function(r){t+=e(r),++n}),t/n},Count:function(e){e=e==n?o.True:a.CreateLambda(e);var t=0;return this.ForEach(function(n,r){e(n,r)&&++t}),t},Max:function(e){return e==n&&(e=o.Identity),this.Select(e).Aggregate(function(e,t){return e>t?e:t})},Min:function(e){return e==n&&(e=o.Identity),this.Select(e).Aggregate(function(e,t){return e<t?e:t})},MaxBy:function(e){return e=a.CreateLambda(e),this.Aggregate(function(t,n){return e(t)>e(n)?t:n})},MinBy:function(e){return e=a.CreateLambda(e),this.Aggregate(function(t,n){return e(t)<e(n)?t:n})},Sum:function(e){return e==n&&(e=o.Identity),this.Select(e).Aggregate(0,function(e,t){return e+t})},ElementAt:function(e){var n,i=r;if(this.ForEach(function(o,s){if(s==e)return n=o,i=t,r}),!i)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return n},ElementAtOrDefault:function(e,n){var i,o=r;return this.ForEach(function(n,s){if(s==e)return i=n,o=t,r}),o?i:n},First:function(e){if(e!=n)return this.Where(e).First();var i,o=r;if(this.ForEach(function(e){return i=e,o=t,r}),!o)throw new Error("First:No element satisfies the condition.");return i},FirstOrDefault:function(e,i){if(i!=n)return this.Where(i).FirstOrDefault(e);var o,s=r;return this.ForEach(function(e){return o=e,s=t,r}),s?o:e},Last:function(e){if(e!=n)return this.Where(e).Last();var i,o=r;if(this.ForEach(function(e){o=t,i=e}),!o)throw new Error("Last:No element satisfies the condition.");return i},LastOrDefault:function(e,i){if(i!=n)return this.Where(i).LastOrDefault(e);var o,s=r;return this.ForEach(function(e){s=t,o=e}),s?o:e},Single:function(i){if(i!=n)return this.Where(i).Single();var o,s=r;if(this.ForEach(function(n){if(s)throw new Error(e);s=t,o=n}),!s)throw new Error("Single:No element satisfies the condition.");return o},SingleOrDefault:function(i,o){if(o!=n)return this.Where(o).SingleOrDefault(i);var s,a=r;return this.ForEach(function(n){if(a)throw new Error(e);a=t,s=n}),a?s:i},Skip:function(e){var t=this;return new i(function(){var n,i=0;return new c(function(){for(n=t.GetEnumerator();i++<e&&n.MoveNext(););},function(){return n.MoveNext()?this.Yield(n.Current()):r},function(){a.Dispose(n)})})},SkipWhile:function(e){e=a.CreateLambda(e);var n=this;return new i(function(){var i,o=0,s=r;return new c(function(){i=n.GetEnumerator()},function(){for(;!s;){if(i.MoveNext()){if(!e(i.Current(),o++))return s=t,this.Yield(i.Current());continue}return r}return i.MoveNext()?this.Yield(i.Current()):r},function(){a.Dispose(i)})})},Take:function(e){var t=this;return new i(function(){var n,i=0;return new c(function(){n=t.GetEnumerator()},function(){return i++<e&&n.MoveNext()?this.Yield(n.Current()):r},function(){a.Dispose(n)})})},TakeWhile:function(e){e=a.CreateLambda(e);var t=this;return new i(function(){var n,i=0;return new c(function(){n=t.GetEnumerator()},function(){return n.MoveNext()&&e(n.Current(),i++)?this.Yield(n.Current()):r},function(){a.Dispose(n)})})},TakeExceptLast:function(e){e==n&&(e=1);var t=this;return new i(function(){if(e<=0)return t.GetEnumerator();var n,i=[];return new c(function(){n=t.GetEnumerator()},function(){for(;n.MoveNext();){if(i.length==e)return i.push(n.Current()),this.Yield(i.shift());i.push(n.Current())}return r},function(){a.Dispose(n)})})},TakeFromLast:function(e){if(e<=0||e==n)return i.Empty();var t=this;return new i(function(){var o,s,u=[];return new c(function(){o=t.GetEnumerator()},function(){for(;o.MoveNext();)u.length==e&&u.shift(),u.push(o.Current());return s==n&&(s=i.From(u).GetEnumerator()),s.MoveNext()?this.Yield(s.Current()):r},function(){a.Dispose(s)})})},IndexOf:function(e){var r=n;return this.ForEach(function(n,i){if(n===e)return r=i,t}),r!==n?r:-1},LastIndexOf:function(e){var t=-1;return this.ForEach(function(n,r){n===e&&(t=r)}),t},ToArray:function(){var e=[];return this.ForEach(function(t){e.push(t)}),e},ToLookup:function(e,t,n){e=a.CreateLambda(e),t=a.CreateLambda(t),n=a.CreateLambda(n);var r=new p(n);return this.ForEach(function(n){var i=e(n),o=t(n),s=r.Get(i);void 0!==s?s.push(o):r.Add(i,[o])}),new g(r)},ToObject:function(e,t){e=a.CreateLambda(e),t=a.CreateLambda(t);var n={};return this.ForEach(function(r){n[e(r)]=t(r)}),n},ToDictionary:function(e,t,n){e=a.CreateLambda(e),t=a.CreateLambda(t),n=a.CreateLambda(n);var r=new p(n);return this.ForEach(function(n){r.Add(e(n),t(n))}),r},ToJSON:function(e,t){return JSON.stringify(this.ToArray(),e,t)},ToString:function(e,t){return e==n&&(e=""),t==n&&(t=o.Identity),this.Select(t).ToArray().join(e)},Do:function(e){var t=this;return e=a.CreateLambda(e),new i(function(){var n,i=0;return new c(function(){n=t.GetEnumerator()},function(){return n.MoveNext()?(e(n.Current(),i++),this.Yield(n.Current())):r},function(){a.Dispose(n)})})},ForEach:function(e){e=a.CreateLambda(e);var t=0,n=this.GetEnumerator();try{for(;n.MoveNext()&&e(n.Current(),t++)!==r;);}finally{a.Dispose(n)}},Write:function(e,i){e==n&&(e=""),i=a.CreateLambda(i);var o=t;this.ForEach(function(t){o?o=r:document.write(e),document.write(i(t))})},WriteLine:function(e){e=a.CreateLambda(e),this.ForEach(function(t){document.write(e(t)),document.write("<br />")})},Force:function(){var e=this.GetEnumerator();try{for(;e.MoveNext(););}finally{a.Dispose(e)}},Let:function(e){e=a.CreateLambda(e);var t=this;return new i(function(){var n;return new c(function(){n=i.From(e(t)).GetEnumerator()},function(){return n.MoveNext()?this.Yield(n.Current()):r},function(){a.Dispose(n)})})},Share:function(){var e,t=this;return new i(function(){return new c(function(){e==n&&(e=t.GetEnumerator())},function(){return e.MoveNext()?this.Yield(e.Current()):r},o.Blank)})},MemoizeAll:function(){var e,t,s=this;return new i(function(){var i=-1;return new c(function(){t==n&&(t=s.GetEnumerator(),e=[])},function(){return i++,e.length<=i?t.MoveNext()?this.Yield(e[i]=t.Current()):r:this.Yield(e[i])},o.Blank)})},Catch:function(e){e=a.CreateLambda(e);var t=this;return new i(function(){var n;return new c(function(){n=t.GetEnumerator()},function(){try{return n.MoveNext()?this.Yield(n.Current()):r}catch(t){return e(t),r}},function(){a.Dispose(n)})})},Finally:function(e){e=a.CreateLambda(e);var t=this;return new i(function(){var n;return new c(function(){n=t.GetEnumerator()},function(){return n.MoveNext()?this.Yield(n.Current()):r},function(){try{a.Dispose(n)}finally{e()}})})},Trace:function(e,t){return e==n&&(e="Trace"),t=a.CreateLambda(t),this.Do(function(n){console.log(e,":",t(n))})}};var o={Identity:function(e){return e},True:function(){return t},Blank:function(){}},s={Boolean:typeof t,Number:"number",String:"string",Object:typeof{},Undefined:"undefined",Function:"function"},a={CreateLambda:function(e){if(e==n)return o.Identity;if(typeof e==s.String){if(""==e)return o.Identity;if(-1==e.indexOf("=>"))return new Function("$,$$,$$$,$$$$","return "+e);var t=e.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return new Function(t[1],"return "+t[2])}return e},IsIEnumerable:function(e){if(typeof Enumerator!=s.Undefined)try{return new Enumerator(e),t}catch(e){}return r},Compare:function(e,t){return e===t?0:e>t?1:-1},Dispose:function(e){e!=n&&e.Dispose()}},u={Before:0,Running:1,After:2},c=function(e,n,i){var o=new l,s=u.Before;this.Current=o.Current,this.MoveNext=function(){try{switch(s){case u.Before:s=u.Running,e();case u.Running:return n.apply(o)?t:(this.Dispose(),r);case u.After:return r}}catch(e){throw this.Dispose(),e}},this.Dispose=function(){if(s==u.Running)try{i()}finally{s=u.After}}},l=function(){var e=n;this.Current=function(){return e},this.Yield=function(n){return e=n,t}},h=function(e,t,n,r){var i=this;i.source=e,i.keySelector=a.CreateLambda(t),i.descending=n,i.parent=r};h.prototype=new i,h.prototype.CreateOrderedEnumerable=function(e,t){return new h(this.source,e,t,this)},h.prototype.ThenBy=function(e){return this.CreateOrderedEnumerable(e,r)},h.prototype.ThenByDescending=function(e){return this.CreateOrderedEnumerable(e,t)},h.prototype.GetEnumerator=function(){var e,t,i=this,s=0;return new c(function(){e=[],t=[],i.source.ForEach(function(n,r){e.push(n),t.push(r)});var r=f.Create(i,n);r.GenerateKeys(e),t.sort(function(e,t){return r.Compare(e,t)})},function(){return s<t.length?this.Yield(e[t[s++]]):r},o.Blank)};var f=function(e,t,r){var i=this;i.keySelector=e,i.descending=t,i.child=r,i.keys=n};f.Create=function(e,t){var r=new f(e.keySelector,e.descending,t);return e.parent!=n?f.Create(e.parent,r):r},f.prototype.GenerateKeys=function(e){for(var t=this,r=e.length,i=t.keySelector,o=new Array(r),s=0;s<r;s++)o[s]=i(e[s]);t.keys=o,t.child!=n&&t.child.GenerateKeys(e)},f.prototype.Compare=function(e,t){var r=this,i=a.Compare(r.keys[e],r.keys[t]);if(0==i){if(r.child!=n)return r.child.Compare(e,t);i=a.Compare(e,t)}return r.descending?-i:i};var d=function(e){this.source=e};d.prototype=new i,d.prototype.Any=function(e){return e==n?this.source.length>0:i.prototype.Any.apply(this,arguments)},d.prototype.Count=function(e){return e==n?this.source.length:i.prototype.Count.apply(this,arguments)},d.prototype.ElementAt=function(e){return 0<=e&&e<this.source.length?this.source[e]:i.prototype.ElementAt.apply(this,arguments)},d.prototype.ElementAtOrDefault=function(e,t){return 0<=e&&e<this.source.length?this.source[e]:t},d.prototype.First=function(e){return e==n&&this.source.length>0?this.source[0]:i.prototype.First.apply(this,arguments)},d.prototype.FirstOrDefault=function(e,t){return t!=n?i.prototype.FirstOrDefault.apply(this,arguments):this.source.length>0?this.source[0]:e},d.prototype.Last=function(e){var t=this;return e==n&&t.source.length>0?t.source[t.source.length-1]:i.prototype.Last.apply(t,arguments)},d.prototype.LastOrDefault=function(e,t){var r=this;return t!=n?i.prototype.LastOrDefault.apply(r,arguments):r.source.length>0?r.source[r.source.length-1]:e},d.prototype.Skip=function(e){var t=this.source;return new i(function(){var n;return new c(function(){n=e<0?0:e},function(){return n<t.length?this.Yield(t[n++]):r},o.Blank)})},d.prototype.TakeExceptLast=function(e){return e==n&&(e=1),this.Take(this.source.length-e)},d.prototype.TakeFromLast=function(e){return this.Skip(this.source.length-e)},d.prototype.Reverse=function(){var e=this.source;return new i(function(){var t;return new c(function(){t=e.length},function(){return t>0?this.Yield(e[--t]):r},o.Blank)})},d.prototype.SequenceEqual=function(e,t){return(e instanceof d||e instanceof Array)&&t==n&&i.From(e).Count()!=this.Count()?r:i.prototype.SequenceEqual.apply(this,arguments)},d.prototype.ToString=function(e,t){return t==n&&this.source instanceof Array?(e==n&&(e=""),this.source.join(e)):i.prototype.ToString.apply(this,arguments)},d.prototype.GetEnumerator=function(){var e=this.source,t=0;return new c(o.Blank,function(){return t<e.length?this.Yield(e[t++]):r},o.Blank)};var p=function(){var e=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a=function(e){return e===n?"null":void 0===e?"undefined":typeof e.toString===s.Function?e.toString():Object.prototype.toString.call(e)},u=function(e,t){var r=this;r.Key=e,r.Value=t,r.Prev=n,r.Next=n},l=function(){this.First=n,this.Last=n};l.prototype={AddLast:function(e){var t=this;t.Last!=n?(t.Last.Next=e,e.Prev=t.Last,t.Last=e):t.First=t.Last=e},Replace:function(e,t){e.Prev!=n?(e.Prev.Next=t,t.Prev=e.Prev):this.First=t,e.Next!=n?(e.Next.Prev=t,t.Next=e.Next):this.Last=t},Remove:function(e){e.Prev!=n?e.Prev.Next=e.Next:this.First=e.Next,e.Next!=n?e.Next.Prev=e.Prev:this.Last=e.Prev}};var h=function(e){var t=this;t.count=0,t.entryList=new l,t.buckets={},t.compareSelector=e==n?o.Identity:e};return h.prototype={Add:function(t,n){var r=this,i=r.compareSelector(t),o=a(i),s=new u(t,n);if(e(r.buckets,o)){for(var c=r.buckets[o],l=0;l<c.length;l++)if(r.compareSelector(c[l].Key)===i)return r.entryList.Replace(c[l],s),void(c[l]=s);c.push(s)}else r.buckets[o]=[s];r.count++,r.entryList.AddLast(s)},Get:function(t){var n=this,r=n.compareSelector(t),i=a(r);if(e(n.buckets,i))for(var o=n.buckets[i],s=0;s<o.length;s++){var u=o[s];if(n.compareSelector(u.Key)===r)return u.Value}},Set:function(n,i){var o=this,s=o.compareSelector(n),c=a(s);if(e(o.buckets,c))for(var l=o.buckets[c],h=0;h<l.length;h++)if(o.compareSelector(l[h].Key)===s){var f=new u(n,i);return o.entryList.Replace(l[h],f),l[h]=f,t}return r},Contains:function(n){var i=this,o=i.compareSelector(n),s=a(o);if(!e(i.buckets,s))return r;for(var u=i.buckets[s],c=0;c<u.length;c++)if(i.compareSelector(u[c].Key)===o)return t;return r},Clear:function(){this.count=0,this.buckets={},this.entryList=new l},Remove:function(t){var n=this,r=n.compareSelector(t),i=a(r);if(e(n.buckets,i))for(var o=n.buckets[i],s=0;s<o.length;s++)if(n.compareSelector(o[s].Key)===r)return n.entryList.Remove(o[s]),o.splice(s,1),0==o.length&&delete n.buckets[i],void n.count--},Count:function(){return this.count},ToEnumerable:function(){var e=this;return new i(function(){var t;return new c(function(){t=e.entryList.First},function(){if(t!=n){var e={Key:t.Key,Value:t.Value};return t=t.Next,this.Yield(e)}return r},o.Blank)})}},h}(),g=function(e){var t=this;t.Count=function(){return e.Count()},t.Get=function(t){return i.From(e.Get(t))},t.Contains=function(t){return e.Contains(t)},t.ToEnumerable=function(){return e.ToEnumerable().Select(function(e){return new m(e.Key,e.Value)})}},m=function(e,t){this.Key=function(){return e},d.call(this,t)};return m.prototype=new d,i}(),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.JSZip=e()}}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e,t){for(var n,i,o,s,a,u,c,l="",h=0;h<e.length;)s=(n=e.charCodeAt(h++))>>2,a=(3&n)<<4|(i=e.charCodeAt(h++))>>4,u=(15&i)<<2|(o=e.charCodeAt(h++))>>6,c=63&o,isNaN(i)?u=c=64:isNaN(o)&&(c=64),l=l+r.charAt(s)+r.charAt(a)+r.charAt(u)+r.charAt(c);return l},n.decode=function(e,t){var n,i,o,s,a,u,c="",l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<e.length;)n=r.indexOf(e.charAt(l++))<<2|(s=r.indexOf(e.charAt(l++)))>>4,i=(15&s)<<4|(a=r.indexOf(e.charAt(l++)))>>2,o=(3&a)<<6|(u=r.indexOf(e.charAt(l++))),c+=String.fromCharCode(n),64!=a&&(c+=String.fromCharCode(i)),64!=u&&(c+=String.fromCharCode(o));return c}},{}],2:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e,t){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n="string"!==r.getTypeOf(e);void 0===t&&(t=0);var o=0;t^=-1;for(var s=0,a=e.length;s<a;s++)o=n?e[s]:e.charCodeAt(s),t=t>>>8^i[255&(t^o)];return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";function r(e){this.data=null,this.length=0,this.index=0}var i=e("./utils");r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=r},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e,t){return i.deflateRaw(e,{level:t.level||-1})},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t,n){"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}var i=e("./base64");r.prototype=e("./object"),r.prototype.load=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.utils=e("./deprecatedPublicUtils"),r.base64={encode:function(e){return i.encode(e)},decode:function(e){return i.decode(e)}},r.compressions=e("./compressions"),t.exports=r},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){var n,o,s,a;for((t=t||{}).base64&&(e=r.decode(e)),n=(o=new i(e,t)).files,s=0;s<n.length;s++)a=n[s],this.file(a.fileName,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileComment.length?a.fileComment:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders});return o.zipComment.length&&(this.comment=o.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(e,t,n){(function(e){"use strict";t.exports=function(t,n){return new e(t,n)},t.exports.test=function(t){return e.isBuffer(t)}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(e,t,n){"use strict";function r(e){this.data=e,this.length=this.data.length,this.index=0}var i=e("./uint8ArrayReader");(r.prototype=new i).readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=r},{"./uint8ArrayReader":18}],13:[function(e,t,n){"use strict";var r=e("./support"),i=e("./utils"),o=e("./crc32"),s=e("./signature"),a=e("./defaults"),u=e("./base64"),c=e("./compressions"),l=e("./compressedObject"),h=e("./nodeBuffer"),f=e("./utf8"),d=e("./stringWriter"),p=e("./uint8ArrayWriter"),g=function(e){if(e._data instanceof l&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},m=function(e){var t=g(e);return"string"===i.getTypeOf(t)?!e.options.binary&&r.nodebuffer?h(t,"utf-8"):e.asBinary():t},v=function(e){var t=g(this);return null===t||void 0===t?"":(this.options.base64&&(t=u.decode(t)),t=e&&this.options.binary?D.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",D.utf8encode(t))),t)},y=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}};y.prototype={asText:function(){return v.call(this,!0)},asBinary:function(){return v.call(this,!1)},asNodeBuffer:function(){var e=m(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=m(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var b=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},w=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},_=function(e){return!0!==(e=e||{}).base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=w(e,a),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e},x=function(e,t,n){var r,o=i.getTypeOf(t);if("string"==typeof(n=_(n)).unixPermissions&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&16384&n.unixPermissions&&(n.dir=!0),n.dosPermissions&&16&n.dosPermissions&&(n.dir=!0),n.dir&&(e=C(e)),n.createFolders&&(r=S(e))&&k.call(this,r,!0),n.dir||null===t||void 0===t)n.base64=!1,n.binary=!1,t=null,o=null;else if("string"===o)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(t=i.string2binary(t));else{if(n.base64=!1,n.binary=!0,!(o||t instanceof l))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===o&&(t=i.transformTo("uint8array",t))}var s=new y(e,t,n);return this.files[e]=s,s},S=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},C=function(e){return"/"!=e.slice(-1)&&(e+="/"),e},k=function(e,t){return t=void 0!==t&&t,e=C(e),this.files[e]||x.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},E=function(e,t,n){var r,s=new l;return e._data instanceof l?(s.uncompressedSize=e._data.uncompressedSize,s.crc32=e._data.crc32,0===s.uncompressedSize||e.dir?(t=c.STORE,s.compressedContent="",s.crc32=0):e._data.compressionMethod===t.magic?s.compressedContent=e._data.getCompressedContent():(r=e._data.getContent(),s.compressedContent=t.compress(i.transformTo(t.compressInputType,r),n))):((r=m(e))&&0!==r.length&&!e.dir||(t=c.STORE,r=""),s.uncompressedSize=r.length,s.crc32=o(r),s.compressedContent=t.compress(i.transformTo(t.compressInputType,r),n)),s.compressedSize=s.compressedContent.length,s.compressionMethod=t.magic,s},T=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16},A=function(e,t){return 63&(e||0)},I=function(e,t,n,r,a){n.compressedContent;var u,c,l,h,d=i.transformTo("string",f.utf8encode(t.name)),p=t.comment||"",g=i.transformTo("string",f.utf8encode(p)),m=d.length!==t.name.length,v=g.length!==p.length,y=t.options,w="",_="",x="";l=t._initialMetadata.dir!==t.dir?t.dir:y.dir,h=t._initialMetadata.date!==t.date?t.date:y.date;var S=0,C=0;l&&(S|=16),"UNIX"===a?(C=798,S|=T(t.unixPermissions,l)):(C=20,S|=A(t.dosPermissions)),u=h.getHours(),u<<=6,u|=h.getMinutes(),u<<=5,u|=h.getSeconds()/2,c=h.getFullYear()-1980,c<<=4,c|=h.getMonth()+1,c<<=5,c|=h.getDate(),m&&(_=b(1,1)+b(o(d),4)+d,w+="up"+b(_.length,2)+_),v&&(x=b(1,1)+b(this.crc32(g),4)+g,w+="uc"+b(x.length,2)+x);var k="";return k+="\n\0",k+=m||v?"\0\b":"\0\0",k+=n.compressionMethod,k+=b(u,2),k+=b(c,2),k+=b(n.crc32,4),k+=b(n.compressedSize,4),k+=b(n.uncompressedSize,4),k+=b(d.length,2),k+=b(w.length,2),{fileRecord:s.LOCAL_FILE_HEADER+k+d+w,dirRecord:s.CENTRAL_FILE_HEADER+b(C,2)+k+b(g.length,2)+"\0\0\0\0"+b(S,4)+b(r,4)+d+w+g,compressedObject:n}},D={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,o=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new y(r.name,r._data,w(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&o.push(i));return o},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,x.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=k.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=w(e||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip"}),i.checkSupport(e.type),"darwin"!==e.platform&&"freebsd"!==e.platform&&"linux"!==e.platform&&"sunos"!==e.platform||(e.platform="UNIX"),"win32"===e.platform&&(e.platform="DOS");var t,n,r=[],o=0,a=0,l=i.transformTo("string",this.utf8encode(e.comment||this.comment||""));for(var h in this.files)if(this.files.hasOwnProperty(h)){var f=this.files[h],g=f.options.compression||e.compression.toUpperCase(),m=c[g];if(!m)throw new Error(g+" is not a valid compression method !");var v=f.options.compressionOptions||e.compressionOptions||{},y=E.call(this,f,m,v),_=I.call(this,h,f,y,o,e.platform);o+=_.fileRecord.length+y.compressedSize,a+=_.dirRecord.length,r.push(_)}var x="";x=s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+b(r.length,2)+b(r.length,2)+b(a,4)+b(o,4)+b(l.length,2)+l;var S=e.type.toLowerCase();for(t="uint8array"===S||"arraybuffer"===S||"blob"===S||"nodebuffer"===S?new p(o+a+x.length):new d(o+a+x.length),n=0;n<r.length;n++)t.append(r[n].fileRecord),t.append(r[n].compressedObject.compressedContent);for(n=0;n<r.length;n++)t.append(r[n].dirRecord);t.append(x);var C=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(e.type.toLowerCase(),C);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",C),e.mimeType);case"base64":return e.base64?u.encode(C):C;default:return C}},crc32:function(e,t){return o(e,t)},utf8encode:function(e){return i.transformTo("string",f.utf8encode(e))},utf8decode:function(e){return f.utf8decode(e)}};t.exports=D},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],15:[function(e,t,n){"use strict";function r(e,t){this.data=e,t||(this.data=o.string2binary(this.data)),this.length=this.data.length,this.index=0}var i=e("./dataReader"),o=e("./utils");(r.prototype=new i).byteAt=function(e){return this.data.charCodeAt(e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=r},{"./dataReader":5,"./utils":21}],16:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){this.data=[]};i.prototype={append:function(e){e=r.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=i},{"./utils":21}],17:[function(e,t,n){(function(e){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer=void 0!==e,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var t=new ArrayBuffer(0);try{n.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);r.append(t),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(e,t,n){"use strict";function r(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}var i=e("./dataReader");(r.prototype=new i).byteAt=function(e){return this.data[e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;o>=0;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o;return-1},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=r},{"./dataReader":5}],19:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodeBuffer"),s=new Array(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;s[254]=s[254]=1;var u=function(e){var t,n,r,o,s,a=e.length,u=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(u):new Array(u),s=0,o=0;s<u;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|63&n):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|63&n):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|63&n);return t},c=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t},l=function(e){var t,n,i,o,a=e.length,u=new Array(2*a);for(n=0,t=0;t<a;)if((i=e[t++])<128)u[n++]=i;else if((o=s[i])>4)u[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&t<a;)i=i<<6|63&e[t++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),r.applyFromCharCode(u)};n.utf8encode=function(e){return i.nodebuffer?o(e,"utf-8"):u(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],n=0,o=(e=r.transformTo(i.uint8array?"uint8array":"array",e)).length;n<o;){var s=c(e,Math.min(n+65536,o));i.uint8array?t.push(l(e.subarray(n,s))):t.push(l(e.slice(n,s))),n=s}return t.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,n){"use strict";function r(e){return e}function i(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function o(e){var t=65536,r=[],i=e.length,o=n.getTypeOf(e),s=0,a=!0;try{switch(o){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,c(0))}}catch(e){a=!1}if(!a){for(var u="",l=0;l<e.length;l++)u+=String.fromCharCode(e[l]);return u}for(;s<i&&t>1;)try{"array"===o||"nodebuffer"===o?r.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,i)))),s+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function s(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var a=e("./support"),u=e("./compressions"),c=e("./nodeBuffer");n.string2binary=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return t},n.arrayBuffer2Blob=function(e,t){n.checkSupport("blob"),t=t||"application/zip";try{return new Blob([e],{type:t})}catch(n){try{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=o;var l={};l.string={string:r,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return l.string.uint8array(e).buffer},uint8array:function(e){return i(e,new Uint8Array(e.length))},nodebuffer:function(e){return i(e,c(e.length))}},l.array={string:o,array:r,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return c(e)}},l.arraybuffer={string:function(e){return o(new Uint8Array(e))},array:function(e){return s(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:r,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return c(new Uint8Array(e))}},l.uint8array={string:o,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:r,nodebuffer:function(e){return c(e)}},l.nodebuffer={string:o,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return l.nodebuffer.uint8array(e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:r},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return l[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":a.nodebuffer&&c.test(e)?"nodebuffer":a.uint8array&&e instanceof Uint8Array?"uint8array":a.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!a[e.toLowerCase()])throw new Error(e+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===e)return u[t];return null},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(e,t,n){"use strict";function r(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}var i=e("./stringReader"),o=e("./nodeBufferReader"),s=e("./uint8ArrayReader"),a=e("./utils"),u=e("./signature"),c=e("./zipEntry"),l=e("./support"),h=e("./object");r.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=h.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(u.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===u.CENTRAL_FILE_HEADER;)(e=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(u.CENTRAL_DIRECTORY_END);if(-1===e){var t=!0;try{this.reader.setIndex(0),this.checkSignature(u.LOCAL_FILE_HEADER),t=!1}catch(e){}throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}if(this.reader.setIndex(e),this.checkSignature(u.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,-1===(e=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR)))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(e),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(e){var t=a.getTypeOf(e);"string"!==t||l.uint8array?this.reader="nodebuffer"===t?new o(e):new s(a.transformTo("uint8array",e)):this.reader=new i(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=r},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t,n){"use strict";function r(e,t){this.options=e,this.loadOptions=t}var i=e("./stringReader"),o=e("./utils"),s=e("./compressedObject"),a=e("./object");r.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(e,t,n){return function(){var r=e.index;e.setIndex(t);var i=e.readData(n);return e.setIndex(r),i}},prepareContent:function(e,t,n,r,i){return function(){var e=o.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==i)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readString(this.fileNameLength),e.skip(n),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(null===(t=o.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new s,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=o.transformTo("string",this.decompressed.getContent()),a.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readString(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readString(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileName.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index;for(this.extraFields=this.extraFields||{};e.index<i+this.extraFieldsLength;)t=e.readInt(2),n=e.readInt(2),r=e.readString(n),this.extraFields[t]={id:t,length:n,value:r}},handleUTF8:function(){if(this.useUTF8())this.fileName=a.utf8decode(this.fileName),this.fileComment=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();null!==e&&(this.fileName=e);var t=this.findExtraFieldUnicodeComment();null!==t&&(this.fileComment=t)}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new i(e.value);return 1!==t.readInt(1)?null:a.crc32(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new i(e.value);return 1!==t.readInt(1)?null:a.crc32(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null}},t.exports=r},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,n){"use strict";function r(e,t){var n=new c(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}var i=e("./zlib/deflate.js"),o=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/messages"),u=e("./zlib/zstream"),c=function(e){this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);t.header&&i.deflateSetHeader(this.strm,t.header)};c.prototype.push=function(e,t){var n,r,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,a.input="string"==typeof e?s.string2buf(e):e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new o.Buf8(u),a.next_out=0,a.avail_out=u),1!==(n=i.deflate(a,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===a.avail_out||0===a.avail_in&&4===r)&&("string"===this.options.to?this.onData(s.buf2binstring(o.shrinkBuf(a.output,a.next_out))):this.onData(o.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==n);return 4!==r||(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=c,n.deflate=r,n.deflateRaw=function(e,t){return t=t||{},t.raw=!0,r(e,t)},n.gzip=function(e,t){return t=t||{},t.gzip=!0,r(e,t)}},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";function r(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}var i=e("./zlib/inflate.js"),o=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/constants"),u=e("./zlib/messages"),c=e("./zlib/zstream"),l=e("./zlib/gzheader"),h=function(e){this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(u[n]);this.header=new l,i.inflateGetHeader(this.strm,this.header)};h.prototype.push=function(e,t){var n,r,u,c,l,h=this.strm,f=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,h.input="string"==typeof e?s.binstring2buf(e):e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(f),h.next_out=0,h.avail_out=f),(n=i.inflate(h,a.Z_NO_FLUSH))!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0===h.avail_out||n===a.Z_STREAM_END||0===h.avail_in&&r===a.Z_FINISH)&&("string"===this.options.to?(u=s.utf8border(h.output,h.next_out),c=h.next_out-u,l=s.buf2string(h.output,u),h.next_out=c,h.avail_out=f-c,c&&o.arraySet(h.output,h.output,u,c,0),this.onData(l)):this.onData(o.shrinkBuf(h.output,h.next_out)))}while(h.avail_in>0&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(r=a.Z_FINISH),r!==a.Z_FINISH||(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=r,n.inflateRaw=function(e,t){return t=t||{},t.raw=!0,r(e,t)},n.ungzip=r},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,s;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(s=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],28:[function(e,t,n){"use strict";function r(e,t){if(t<65537&&(e.subarray&&s||!e.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}var i=e("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new i.Buf8(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,s,a=e.length,u=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(u),s=0,o=0;s<u;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|63&n):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|63&n):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|63&n);return t},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,o,s,u=t||e.length,c=new Array(2*u);for(i=0,n=0;n<u;)if((o=e[n++])<128)c[i++]=o;else if((s=a[o])>4)c[i++]=65533,n+=s-1;else{for(o&=2===s?31:3===s?15:7;s>1&&n<u;)o=o<<6|63&e[n++],s--;s>1?c[i++]=65533:o<65536?c[i++]=o:(o-=65536,c[i++]=55296|o>>10&1023,c[i++]=56320|1023&o)}return r(c,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+a[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},{}],30:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}},{}],32:[function(e,t,n){"use strict";function r(e,t){return e.msg=T[t],t}function i(e){return(e<<1)-(e>4?9:0)}function o(e){for(var t=e.length;--t>=0;)e[t]=0}function s(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(S.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function a(e,t){C._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,s(e.strm)}function u(e,t){e.pending_buf[e.pending++]=t}function c(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function l(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,S.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=k(e.adler,t,i,n):2===e.state.wrap&&(e.adler=E(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function h(e,t){var n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-ne?e.strstart-(e.w_size-ne):0,c=e.window,l=e.w_mask,h=e.prev,f=e.strstart+te,d=c[o+s-1],p=c[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,c[n+s]===p&&c[n+s-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=te-(f-o),o=f-te,r>s){if(e.match_start=t,s=r,r>=a)break;d=c[o+s-1],p=c[o+s]}}}while((t=h[t&l])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead}function f(e){var t,n,r,i,o,s=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-ne)){S.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);t=n=s;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);i+=s}if(0===e.strm.avail_in)break;if(n=l(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=ee)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+ee-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<ee)););}while(e.lookahead<ne&&0!==e.strm.avail_in)}function d(e,t){for(var n,r;;){if(e.lookahead<ne){if(f(e),e.lookahead<ne&&t===A)return he;if(0===e.lookahead)break}if(n=0,e.lookahead>=ee&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ee-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ne&&(e.match_length=h(e,n)),e.match_length>=ee)if(r=C._tr_tally(e,e.strstart-e.match_start,e.match_length-ee),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ee){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ee-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=C._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(a(e,!1),0===e.strm.avail_out))return he}return e.insert=e.strstart<ee-1?e.strstart:ee-1,t===z?(a(e,!0),0===e.strm.avail_out?de:pe):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?he:fe}function p(e,t){for(var n,r,i;;){if(e.lookahead<ne){if(f(e),e.lookahead<ne&&t===A)return he;if(0===e.lookahead)break}if(n=0,e.lookahead>=ee&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ee-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ee-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-ne&&(e.match_length=h(e,n),e.match_length<=5&&(e.strategy===F||e.match_length===ee&&e.strstart-e.match_start>4096)&&(e.match_length=ee-1)),e.prev_length>=ee&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ee,r=C._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ee),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ee-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=ee-1,e.strstart++,r&&(a(e,!1),0===e.strm.avail_out))return he}else if(e.match_available){if((r=C._tr_tally(e,0,e.window[e.strstart-1]))&&a(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return he}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=C._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ee-1?e.strstart:ee-1,t===z?(a(e,!0),0===e.strm.avail_out?de:pe):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?he:fe}function g(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=te){if(f(e),e.lookahead<=te&&t===A)return he;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ee&&e.strstart>0&&(i=e.strstart-1,(r=s[i])===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+te;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=te-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ee?(n=C._tr_tally(e,1,e.match_length-ee),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=C._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(a(e,!1),0===e.strm.avail_out))return he}return e.insert=0,t===z?(a(e,!0),0===e.strm.avail_out?de:pe):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?he:fe}function m(e,t){for(var n;;){if(0===e.lookahead&&(f(e),0===e.lookahead)){if(t===A)return he;break}if(e.match_length=0,n=C._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(a(e,!1),0===e.strm.avail_out))return he}return e.insert=0,t===z?(a(e,!0),0===e.strm.avail_out?de:pe):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?he:fe}function v(e){e.window_size=2*e.w_size,o(e.head),e.max_lazy_match=x[e.level].max_lazy,e.good_match=x[e.level].good_length,e.nice_match=x[e.level].nice_length,e.max_chain_length=x[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ee-1,e.match_available=0,e.ins_h=0}function y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=$,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S.Buf16(2*Q),this.dyn_dtree=new S.Buf16(2*(2*Z+1)),this.bl_tree=new S.Buf16(2*(2*J+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(K+1),this.heap=new S.Buf16(2*V+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*V+1),o(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function b(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=Y,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ie:ce,e.adler=2===t.wrap?0:1,t.last_flush=A,C._tr_init(t),L):r(e,M)}function w(e){var t=b(e);return t===L&&v(e.state),t}function _(e,t,n,i,o,s){if(!e)return M;var a=1;if(t===j&&(t=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),o<1||o>U||n!==$||i<8||i>15||t<0||t>9||s<0||s>q)return r(e,M);8===i&&(i=9);var u=new y;return e.state=u,u.strm=e,u.wrap=a,u.gzhead=null,u.w_bits=i,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+ee-1)/ee),u.window=new S.Buf8(2*u.w_size),u.head=new S.Buf16(u.hash_size),u.prev=new S.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new S.Buf8(u.pending_buf_size),u.d_buf=u.lit_bufsize>>1,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=s,u.method=n,w(e)}var x,S=e("../utils/common"),C=e("./trees"),k=e("./adler32"),E=e("./crc32"),T=e("./messages"),A=0,I=1,D=3,z=4,O=5,L=0,N=1,M=-2,B=-3,R=-5,j=-1,F=1,P=2,W=3,q=4,H=0,Y=2,$=8,U=9,X=15,G=8,V=286,Z=30,J=19,Q=2*V+1,K=15,ee=3,te=258,ne=te+ee+1,re=32,ie=42,oe=69,se=73,ae=91,ue=103,ce=113,le=666,he=1,fe=2,de=3,pe=4,ge=3,me=function(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i};x=[new me(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(f(e),0===e.lookahead&&t===A)return he;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,a(e,!1),0===e.strm.avail_out))return he;if(e.strstart-e.block_start>=e.w_size-ne&&(a(e,!1),0===e.strm.avail_out))return he}return e.insert=0,t===z?(a(e,!0),0===e.strm.avail_out?de:pe):(e.strstart>e.block_start&&(a(e,!1),e.strm.avail_out),he)}),new me(4,4,8,4,d),new me(4,5,16,8,d),new me(4,6,32,32,d),new me(4,4,16,16,p),new me(8,16,32,32,p),new me(8,16,128,128,p),new me(8,32,128,256,p),new me(32,128,258,1024,p),new me(32,258,258,4096,p)],n.deflateInit=function(e,t){return _(e,t,$,X,G,H)},n.deflateInit2=_,n.deflateReset=w,n.deflateResetKeep=b,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?M:(e.state.gzhead=t,L):M},n.deflate=function(e,t){var n,a,l,h;if(!e||!e.state||t>O||t<0)return e?r(e,M):M;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||a.status===le&&t!==z)return r(e,0===e.avail_out?R:M);if(a.strm=e,n=a.last_flush,a.last_flush=t,a.status===ie)if(2===a.wrap)e.adler=0,u(a,31),u(a,139),u(a,8),a.gzhead?(u(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),u(a,255&a.gzhead.time),u(a,a.gzhead.time>>8&255),u(a,a.gzhead.time>>16&255),u(a,a.gzhead.time>>24&255),u(a,9===a.level?2:a.strategy>=P||a.level<2?4:0),u(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(u(a,255&a.gzhead.extra.length),u(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=E(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=oe):(u(a,0),u(a,0),u(a,0),u(a,0),u(a,0),u(a,9===a.level?2:a.strategy>=P||a.level<2?4:0),u(a,ge),a.status=ce);else{var f=$+(a.w_bits-8<<4)<<8;f|=(a.strategy>=P||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(f|=re),f+=31-f%31,a.status=ce,c(a,f),0!==a.strstart&&(c(a,e.adler>>>16),c(a,65535&e.adler)),e.adler=1}if(a.status===oe)if(a.gzhead.extra){for(l=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>l&&(e.adler=E(e.adler,a.pending_buf,a.pending-l,l)),s(e),l=a.pending,a.pending!==a.pending_buf_size));)u(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>l&&(e.adler=E(e.adler,a.pending_buf,a.pending-l,l)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=se)}else a.status=se;if(a.status===se)if(a.gzhead.name){l=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>l&&(e.adler=E(e.adler,a.pending_buf,a.pending-l,l)),s(e),l=a.pending,a.pending===a.pending_buf_size)){h=1;break}h=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,u(a,h)}while(0!==h);a.gzhead.hcrc&&a.pending>l&&(e.adler=E(e.adler,a.pending_buf,a.pending-l,l)),0===h&&(a.gzindex=0,a.status=ae)}else a.status=ae;if(a.status===ae)if(a.gzhead.comment){l=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>l&&(e.adler=E(e.adler,a.pending_buf,a.pending-l,l)),s(e),l=a.pending,a.pending===a.pending_buf_size)){h=1;break}h=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,u(a,h)}while(0!==h);a.gzhead.hcrc&&a.pending>l&&(e.adler=E(e.adler,a.pending_buf,a.pending-l,l)),0===h&&(a.status=ue)}else a.status=ue;if(a.status===ue&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&s(e),a.pending+2<=a.pending_buf_size&&(u(a,255&e.adler),u(a,e.adler>>8&255),e.adler=0,a.status=ce)):a.status=ce),0!==a.pending){if(s(e),0===e.avail_out)return a.last_flush=-1,L}else if(0===e.avail_in&&i(t)<=i(n)&&t!==z)return r(e,R);if(a.status===le&&0!==e.avail_in)return r(e,R);if(0!==e.avail_in||0!==a.lookahead||t!==A&&a.status!==le){var d=a.strategy===P?m(a,t):a.strategy===W?g(a,t):x[a.level].func(a,t);if(d!==de&&d!==pe||(a.status=le),d===he||d===de)return 0===e.avail_out&&(a.last_flush=-1),L;if(d===fe&&(t===I?C._tr_align(a):t!==O&&(C._tr_stored_block(a,0,0,!1),t===D&&(o(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),s(e),0===e.avail_out))return a.last_flush=-1,L}return t!==z?L:a.wrap<=0?N:(2===a.wrap?(u(a,255&e.adler),u(a,e.adler>>8&255),u(a,e.adler>>16&255),u(a,e.adler>>24&255),u(a,255&e.total_in),u(a,e.total_in>>8&255),u(a,e.total_in>>16&255),u(a,e.total_in>>24&255)):(c(a,e.adler>>>16),c(a,65535&e.adler)),s(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?L:N)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==ie&&t!==oe&&t!==se&&t!==ae&&t!==ue&&t!==ce&&t!==le?r(e,M):(e.state=null,t===ce?r(e,B):L):M},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],34:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,s,a,u,c,l,h,f,d,p,g,m,v,y,b,w,_,x,S,C,k,E;n=e.state,r=e.next_in,k=e.input,i=r+(e.avail_in-5),o=e.next_out,E=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(d+=k[r++]<<p,p+=8,d+=k[r++]<<p,p+=8),b=g[d&v];t:for(;;){if(w=b>>>24,d>>>=w,p-=w,0===(w=b>>>16&255))E[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(d&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&b,(w&=15)&&(p<w&&(d+=k[r++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=k[r++]<<p,p+=8,d+=k[r++]<<p,p+=8),b=m[d&y];n:for(;;){if(w=b>>>24,d>>>=w,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=m[(65535&b)+(d&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&b,w&=15,p<w&&(d+=k[r++]<<p,(p+=8)<w&&(d+=k[r++]<<p,p+=8)),(x+=d&(1<<w)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=w,p-=w,w=o-s,x>w){if((w=x-w)>l&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,C=f,0===h){if(S+=c-w,w<_){_-=w;do{E[o++]=f[S++]}while(--w);S=o-x,C=E}}else if(h<w){if(S+=c+h-w,(w-=h)<_){_-=w;do{E[o++]=f[S++]}while(--w);if(S=0,h<_){_-=w=h;do{E[o++]=f[S++]}while(--w);S=o-x,C=E}}}else if(S+=h-w,w<_){_-=w;do{E[o++]=f[S++]}while(--w);S=o-x,C=E}for(;_>2;)E[o++]=C[S++],E[o++]=C[S++],E[o++]=C[S++],_-=3;_&&(E[o++]=C[S++],_>1&&(E[o++]=C[S++]))}else{S=o-x;do{E[o++]=E[S++],E[o++]=E[S++],E[o++]=E[S++],_-=3}while(_>2);_&&(E[o++]=E[S++],_>1&&(E[o++]=E[S++]))}break}}break}}while(r<i&&o<a);r-=_=p>>3,d&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<a?a-o+257:257-(o-a),n.hold=d,n.bits=p}},{}],35:[function(e,t,n){"use strict";function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=O,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new d.Buf32(le),t.distcode=t.distdyn=new d.Buf32(he),t.sane=1,t.back=-1,C):T}function s(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,o(e)):T}function a(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?T:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,s(e))):T}function u(e,t){var n,r;return e?(r=new i,e.state=r,r.window=null,(n=a(e,t))!==C&&(e.state=null),n):T}function c(e){if(de){var t;for(h=new d.Buf32(512),f=new d.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(v(b,e.lens,0,288,h,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;v(w,e.lens,0,32,f,0,e.work,{bits:5}),de=!1}e.lencode=h,e.lenbits=9,e.distcode=f,e.distbits=5}function l(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new d.Buf8(o.wsize)),r>=o.wsize?(d.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),d.arraySet(o.window,t,n-r,i,o.wnext),(r-=i)?(d.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var h,f,d=e("../utils/common"),p=e("./adler32"),g=e("./crc32"),m=e("./inffast"),v=e("./inftrees"),y=0,b=1,w=2,_=4,x=5,S=6,C=0,k=1,E=2,T=-2,A=-3,I=-4,D=-5,z=8,O=1,L=2,N=3,M=4,B=5,R=6,j=7,F=8,P=9,W=10,q=11,H=12,Y=13,$=14,U=15,X=16,G=17,V=18,Z=19,J=20,Q=21,K=22,ee=23,te=24,ne=25,re=26,ie=27,oe=28,se=29,ae=30,ue=31,ce=32,le=852,he=592,fe=15,de=!0;n.inflateReset=s,n.inflateReset2=a,n.inflateResetKeep=o,n.inflateInit=function(e){return u(e,fe)},n.inflateInit2=u,n.inflate=function(e,t){var n,i,o,s,a,u,h,f,le,he,fe,de,pe,ge,me,ve,ye,be,we,_e,xe,Se,Ce,ke,Ee=0,Te=new d.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return T;(n=e.state).mode===H&&(n.mode=Y),a=e.next_out,o=e.output,h=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,f=n.hold,le=n.bits,he=u,fe=h,Se=C;e:for(;;)switch(n.mode){case O:if(0===n.wrap){n.mode=Y;break}for(;le<16;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(2&n.wrap&&35615===f){n.check=0,Te[0]=255&f,Te[1]=f>>>8&255,n.check=g(n.check,Te,2,0),f=0,le=0,n.mode=L;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&f)<<8)+(f>>8))%31){e.msg="incorrect header check",n.mode=ae;break}if((15&f)!==z){e.msg="unknown compression method",n.mode=ae;break}if(f>>>=4,le-=4,xe=8+(15&f),0===n.wbits)n.wbits=xe;else if(xe>n.wbits){e.msg="invalid window size",n.mode=ae;break}n.dmax=1<<xe,e.adler=n.check=1,n.mode=512&f?W:H,f=0,le=0;break;case L:for(;le<16;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(n.flags=f,(255&n.flags)!==z){e.msg="unknown compression method",n.mode=ae;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=ae;break}n.head&&(n.head.text=f>>8&1),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,n.check=g(n.check,Te,2,0)),f=0,le=0,n.mode=N;case N:for(;le<32;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}n.head&&(n.head.time=f),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,Te[2]=f>>>16&255,Te[3]=f>>>24&255,n.check=g(n.check,Te,4,0)),f=0,le=0,n.mode=M;case M:for(;le<16;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}n.head&&(n.head.xflags=255&f,n.head.os=f>>8),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,n.check=g(n.check,Te,2,0)),f=0,le=0,n.mode=B;case B:if(1024&n.flags){for(;le<16;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}n.length=f,n.head&&(n.head.extra_len=f),512&n.flags&&(Te[0]=255&f,Te[1]=f>>>8&255,n.check=g(n.check,Te,2,0)),f=0,le=0}else n.head&&(n.head.extra=null);n.mode=R;case R:if(1024&n.flags&&((de=n.length)>u&&(de=u),de&&(n.head&&(xe=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),d.arraySet(n.head.extra,i,s,de,xe)),512&n.flags&&(n.check=g(n.check,i,de,s)),u-=de,s+=de,n.length-=de),n.length))break e;n.length=0,n.mode=j;case j:if(2048&n.flags){if(0===u)break e;de=0;do{xe=i[s+de++],n.head&&xe&&n.length<65536&&(n.head.name+=String.fromCharCode(xe))}while(xe&&de<u);if(512&n.flags&&(n.check=g(n.check,i,de,s)),u-=de,s+=de,xe)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=F;case F:if(4096&n.flags){if(0===u)break e;de=0;do{xe=i[s+de++],n.head&&xe&&n.length<65536&&(n.head.comment+=String.fromCharCode(xe))}while(xe&&de<u);if(512&n.flags&&(n.check=g(n.check,i,de,s)),u-=de,s+=de,xe)break e}else n.head&&(n.head.comment=null);n.mode=P;case P:if(512&n.flags){for(;le<16;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(f!==(65535&n.check)){e.msg="header crc mismatch",n.mode=ae;break}f=0,le=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=H;break;case W:for(;le<32;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}e.adler=n.check=r(f),f=0,le=0,n.mode=q;case q:if(0===n.havedict)return e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=u,n.hold=f,n.bits=le,E;e.adler=n.check=1,n.mode=H;case H:if(t===x||t===S)break e;case Y:if(n.last){f>>>=7&le,le-=7&le,n.mode=ie;break}for(;le<3;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}switch(n.last=1&f,f>>>=1,le-=1,3&f){case 0:n.mode=$;break;case 1:if(c(n),n.mode=J,t===S){f>>>=2,le-=2;break e}break;case 2:n.mode=G;break;case 3:e.msg="invalid block type",n.mode=ae}f>>>=2,le-=2;break;case $:for(f>>>=7&le,le-=7≤le<32;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if((65535&f)!=(f>>>16^65535)){e.msg="invalid stored block lengths",n.mode=ae;break}if(n.length=65535&f,f=0,le=0,n.mode=U,t===S)break e;case U:n.mode=X;case X:if(de=n.length){if(de>u&&(de=u),de>h&&(de=h),0===de)break e;d.arraySet(o,i,s,de,a),u-=de,s+=de,h-=de,a+=de,n.length-=de;break}n.mode=H;break;case G:for(;le<14;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(n.nlen=257+(31&f),f>>>=5,le-=5,n.ndist=1+(31&f),f>>>=5,le-=5,n.ncode=4+(15&f),f>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ae;break}n.have=0,n.mode=V;case V:for(;n.have<n.ncode;){for(;le<3;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}n.lens[Ae[n.have++]]=7&f,f>>>=3,le-=3}for(;n.have<19;)n.lens[Ae[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ce={bits:n.lenbits},Se=v(y,n.lens,0,19,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,Se){e.msg="invalid code lengths set",n.mode=ae;break}n.have=0,n.mode=Z;case Z:for(;n.have<n.nlen+n.ndist;){for(;Ee=n.lencode[f&(1<<n.lenbits)-1],me=Ee>>>24,ve=Ee>>>16&255,ye=65535&Ee,!(me<=le);){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(ye<16)f>>>=me,le-=me,n.lens[n.have++]=ye;else{if(16===ye){for(ke=me+2;le<ke;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(f>>>=me,le-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=ae;break}xe=n.lens[n.have-1],de=3+(3&f),f>>>=2,le-=2}else if(17===ye){for(ke=me+3;le<ke;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}le-=me,xe=0,de=3+(7&(f>>>=me)),f>>>=3,le-=3}else{for(ke=me+7;le<ke;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}le-=me,xe=0,de=11+(127&(f>>>=me)),f>>>=7,le-=7}if(n.have+de>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ae;break}for(;de--;)n.lens[n.have++]=xe}}if(n.mode===ae)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=ae;break}if(n.lenbits=9,Ce={bits:n.lenbits},Se=v(b,n.lens,0,n.nlen,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,Se){e.msg="invalid literal/lengths set",n.mode=ae;break}if(n.distbits=6,n.distcode=n.distdyn,Ce={bits:n.distbits},Se=v(w,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ce),n.distbits=Ce.bits,Se){e.msg="invalid distances set",n.mode=ae;break}if(n.mode=J,t===S)break e;case J:n.mode=Q;case Q:if(u>=6&&h>=258){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=u,n.hold=f,n.bits=le,m(e,fe),a=e.next_out,o=e.output,h=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,f=n.hold,le=n.bits,n.mode===H&&(n.back=-1);break}for(n.back=0;Ee=n.lencode[f&(1<<n.lenbits)-1],me=Ee>>>24,ve=Ee>>>16&255,ye=65535&Ee,!(me<=le);){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(ve&&0==(240&ve)){for(be=me,we=ve,_e=ye;Ee=n.lencode[_e+((f&(1<<be+we)-1)>>be)],me=Ee>>>24,ve=Ee>>>16&255,ye=65535&Ee,!(be+me<=le);){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}f>>>=be,le-=be,n.back+=be}if(f>>>=me,le-=me,n.back+=me,n.length=ye,0===ve){n.mode=re;break}if(32&ve){n.back=-1,n.mode=H;break}if(64&ve){e.msg="invalid literal/length code",n.mode=ae;break}n.extra=15&ve,n.mode=K;case K:if(n.extra){for(ke=n.extra;le<ke;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}n.length+=f&(1<<n.extra)-1,f>>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ee;case ee:for(;Ee=n.distcode[f&(1<<n.distbits)-1],me=Ee>>>24,ve=Ee>>>16&255,ye=65535&Ee,!(me<=le);){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(0==(240&ve)){for(be=me,we=ve,_e=ye;Ee=n.distcode[_e+((f&(1<<be+we)-1)>>be)],me=Ee>>>24,ve=Ee>>>16&255,ye=65535&Ee,!(be+me<=le);){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}f>>>=be,le-=be,n.back+=be}if(f>>>=me,le-=me,n.back+=me,64&ve){e.msg="invalid distance code",n.mode=ae;break}n.offset=ye,n.extra=15&ve,n.mode=te;case te:if(n.extra){for(ke=n.extra;le<ke;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}n.offset+=f&(1<<n.extra)-1,f>>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ae;break}n.mode=ne;case ne:if(0===h)break e;if(de=fe-h,n.offset>de){if((de=n.offset-de)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ae;break}de>n.wnext?(de-=n.wnext,pe=n.wsize-de):pe=n.wnext-de,de>n.length&&(de=n.length),ge=n.window}else ge=o,pe=a-n.offset,de=n.length;de>h&&(de=h),h-=de,n.length-=de;do{o[a++]=ge[pe++]}while(--de);0===n.length&&(n.mode=Q);break;case re:if(0===h)break e;o[a++]=n.length,h--,n.mode=Q;break;case ie:if(n.wrap){for(;le<32;){if(0===u)break e;u--,f|=i[s++]<<le,le+=8}if(fe-=h,e.total_out+=fe,n.total+=fe,fe&&(e.adler=n.check=n.flags?g(n.check,o,fe,a-fe):p(n.check,o,fe,a-fe)),fe=h,(n.flags?f:r(f))!==n.check){e.msg="incorrect data check",n.mode=ae;break}f=0,le=0}n.mode=oe;case oe:if(n.wrap&&n.flags){for(;le<32;){if(0===u)break e;u--,f+=i[s++]<<le,le+=8}if(f!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=ae;break}f=0,le=0}n.mode=se;case se:Se=k;break e;case ae:Se=A;break e;case ue:return I;case ce:default:return T}return e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=u,n.hold=f,n.bits=le,(n.wsize||fe!==e.avail_out&&n.mode<ae&&(n.mode<ie||t!==_))&&l(e,e.output,e.next_out,fe-e.avail_out)?(n.mode=ue,I):(he-=e.avail_in,fe-=e.avail_out,e.total_in+=he,e.total_out+=fe,n.total+=fe,n.wrap&&fe&&(e.adler=n.check=n.flags?g(n.check,o,fe,e.next_out-fe):p(n.check,o,fe,e.next_out-fe)),e.data_type=n.bits+(n.last?64:0)+(n.mode===H?128:0)+(n.mode===J||n.mode===U?256:0),(0===he&&0===fe||t===_)&&Se===C&&(Se=D),Se)},n.inflateEnd=function(e){if(!e||!e.state)return T;var t=e.state;return t.window&&(t.window=null),e.state=null,C},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?T:(n.head=t,t.done=!1,C):T},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,u,c,l,h,f){var d,p,g,m,v,y,b,w,_,x=f.bits,S=0,C=0,k=0,E=0,T=0,A=0,I=0,D=0,z=0,O=0,L=null,N=0,M=new r.Buf16(16),B=new r.Buf16(16),R=null,j=0;for(S=0;S<=15;S++)M[S]=0;for(C=0;C<u;C++)M[t[n+C]]++;for(T=x,E=15;E>=1&&0===M[E];E--);if(T>E&&(T=E),0===E)return c[l++]=20971520,c[l++]=20971520,f.bits=1,0;for(k=1;k<E&&0===M[k];k++);for(T<k&&(T=k),D=1,S=1;S<=15;S++)if(D<<=1,(D-=M[S])<0)return-1;if(D>0&&(0===e||1!==E))return-1;for(B[1]=0,S=1;S<15;S++)B[S+1]=B[S]+M[S];for(C=0;C<u;C++)0!==t[n+C]&&(h[B[t[n+C]]++]=C);if(0===e?(L=R=h,y=19):1===e?(L=i,N-=257,R=o,j-=257,y=256):(L=s,R=a,y=-1),O=0,C=0,S=k,v=l,A=T,I=0,g=-1,z=1<<T,m=z-1,1===e&&z>852||2===e&&z>592)return 1;for(;;){0,b=S-I,h[C]<y?(w=0,_=h[C]):h[C]>y?(w=R[j+h[C]],_=L[N+h[C]]):(w=96,_=0),d=1<<S-I,k=p=1<<A;do{c[v+(O>>I)+(p-=d)]=b<<24|w<<16|_|0}while(0!==p);for(d=1<<S-1;O&d;)d>>=1;if(0!==d?(O&=d-1,O+=d):O=0,C++,0==--M[S]){if(S===E)break;S=t[n+h[C]]}if(S>T&&(O&m)!==g){for(0===I&&(I=T),v+=k,D=1<<(A=S-I);A+I<E&&!((D-=M[A+I])<=0);)A++,D<<=1;if(z+=1<<A,1===e&&z>852||2===e&&z>592)return 1;c[g=O&m]=T<<24|A<<16|v-l|0}}return 0!==O&&(c[v+O]=S-I<<24|64<<16|0),f.bits=T,0}},{"../utils/common":27}],37:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";function r(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e){return e<256?K[e]:K[256+(e>>>7)]}function o(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function s(e,t,n){e.bi_valid>W-n?(e.bi_buf|=t<<e.bi_valid&65535,o(e,e.bi_buf),e.bi_buf=t>>W-e.bi_valid,e.bi_valid+=n-W):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function a(e,t,n){s(e,n[2*t],n[2*t+1])}function u(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function c(e){16===e.bi_valid?(o(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function l(e,t){var n,r,i,o,s,a,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=P;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<F;n++)(o=u[2*u[2*(r=e.heap[n])+1]+1]+1)>p&&(o=p,g++),u[2*r+1]=o,r>c||(e.bl_count[o]++,s=0,r>=d&&(s=f[r-d]),a=u[2*r],e.opt_len+=a*(o+s),h&&(e.static_len+=a*(l[2*r+1]+s)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}function h(e,t,n){var r,i,o=new Array(P+1),s=0;for(r=1;r<=P;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=u(o[a]++,a))}}function f(){var e,t,n,r,i,o=new Array(P+1);for(n=0,r=0;r<N-1;r++)for(te[r]=n,e=0;e<1<<X[r];e++)ee[n++]=r;for(ee[n-1]=r,i=0,r=0;r<16;r++)for(ne[r]=i,e=0;e<1<<G[r];e++)K[i++]=r;for(i>>=7;r<R;r++)for(ne[r]=i<<7,e=0;e<1<<G[r]-7;e++)K[256+i++]=r;for(t=0;t<=P;t++)o[t]=0;for(e=0;e<=143;)J[2*e+1]=8,e++,o[8]++;for(;e<=255;)J[2*e+1]=9,e++,o[9]++;for(;e<=279;)J[2*e+1]=7,e++,o[7]++;for(;e<=287;)J[2*e+1]=8,e++,o[8]++;for(h(J,B+1,o),e=0;e<R;e++)Q[2*e+1]=5,Q[2*e]=u(e,5);re=new se(J,X,M+1,B,P),ie=new se(Q,G,0,R,P),oe=new se(new Array(0),V,0,j,q)}function d(e){var t;for(t=0;t<B;t++)e.dyn_ltree[2*t]=0;for(t=0;t<R;t++)e.dyn_dtree[2*t]=0;for(t=0;t<j;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*H]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function p(e){e.bi_valid>8?o(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function g(e,t,n,r){p(e),r&&(o(e,n),o(e,~n)),E.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function m(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function v(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&m(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!m(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function y(e,t,n){var r,o,u,c,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],o=e.pending_buf[e.l_buf+l],l++,0===r?a(e,o,t):(a(e,(u=ee[o])+M+1,t),0!==(c=X[u])&&s(e,o-=te[u],c),a(e,u=i(--r),n),0!==(c=G[u])&&s(e,r-=ne[u],c))}while(l<e.last_lit);a(e,H,t)}function b(e,t){var n,r,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=F,n=0;n<u;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)v(e,o,n);i=u;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],v(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,v(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],l(e,t),h(o,c,e.bl_count)}function w(e,t,n){var r,i,o=-1,s=t[1],a=0,u=7,c=4;for(0===s&&(u=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a<u&&i===s||(a<c?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*Y]++):a<=10?e.bl_tree[2*$]++:e.bl_tree[2*U]++,a=0,o=i,0===s?(u=138,c=3):i===s?(u=6,c=3):(u=7,c=4))}function _(e,t,n){var r,i,o=-1,u=t[1],c=0,l=7,h=4;for(0===u&&(l=138,h=3),r=0;r<=n;r++)if(i=u,u=t[2*(r+1)+1],!(++c<l&&i===u)){if(c<h)do{a(e,i,e.bl_tree)}while(0!=--c);else 0!==i?(i!==o&&(a(e,i,e.bl_tree),c--),a(e,Y,e.bl_tree),s(e,c-3,2)):c<=10?(a(e,$,e.bl_tree),s(e,c-3,3)):(a(e,U,e.bl_tree),s(e,c-11,7));c=0,o=i,0===u?(l=138,h=3):i===u?(l=6,h=3):(l=7,h=4)}}function x(e){var t;for(w(e,e.dyn_ltree,e.l_desc.max_code),w(e,e.dyn_dtree,e.d_desc.max_code),b(e,e.bl_desc),t=j-1;t>=3&&0===e.bl_tree[2*Z[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function S(e,t,n,r){var i;for(s(e,t-257,5),s(e,n-1,5),s(e,r-4,4),i=0;i<r;i++)s(e,e.bl_tree[2*Z[i]+1],3);_(e,e.dyn_ltree,t-1),_(e,e.dyn_dtree,n-1)}function C(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return A;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return I;for(t=32;t<M;t++)if(0!==e.dyn_ltree[2*t])return I;return A}function k(e,t,n,r){s(e,(z<<1)+(r?1:0),3),g(e,t,n,!0)}var E=e("../utils/common"),T=4,A=0,I=1,D=2,z=0,O=1,L=2,N=29,M=256,B=M+1+N,R=30,j=19,F=2*B+1,P=15,W=16,q=7,H=256,Y=16,$=17,U=18,X=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],G=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=new Array(2*(B+2));r(J);var Q=new Array(2*R);r(Q);var K=new Array(512);r(K);var ee=new Array(256);r(ee);var te=new Array(N);r(te);var ne=new Array(R);r(ne);var re,ie,oe,se=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},ae=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t},ue=!1;n._tr_init=function(e){ue||(f(),ue=!0),e.l_desc=new ae(e.dyn_ltree,re),e.d_desc=new ae(e.dyn_dtree,ie),e.bl_desc=new ae(e.bl_tree,oe),e.bi_buf=0,e.bi_valid=0,d(e)},n._tr_stored_block=k,n._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(e.strm.data_type===D&&(e.strm.data_type=C(e)),b(e,e.l_desc),b(e,e.d_desc),a=x(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?k(e,t,n,r):e.strategy===T||o===i?(s(e,(O<<1)+(r?1:0),3),y(e,J,Q)):(s(e,(L<<1)+(r?1:0),3),S(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),y(e,e.dyn_ltree,e.dyn_dtree)),d(e),r&&p(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ee[n]+M+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){s(e,O<<1,3),a(e,H,J),c(e)}},{"../utils/common":27}],39:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}]},{},[9])(9)}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(e){return e.replace(/(:|\.|\/)/g,"\\$1")}var n={},r={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},i=function(t){var n=[],r=!1,i=t.dir&&"left"===t.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!==document&&this!==window){var t=e(this);t[i]()>0?n.push(this):(t[i](1),(r=t[i]()>0)&&n.push(this),t[i](0))}}),n.length||this.each(function(){"BODY"===this.nodeName&&(n=[this])}),"first"===t.el&&n.length>1&&(n=[n[0]]),n};e.fn.extend({scrollable:function(e){var t=i.call(this,{dir:e});return this.pushStack(t)},firstScrollable:function(e){var t=i.call(this,{el:"first",dir:e});return this.pushStack(t)},smoothScroll:function(n,r){if("options"===(n=n||{}))return r?this.each(function(){var t=e(this),n=e.extend(t.data("ssOpts")||{},r);e(this).data("ssOpts",n)}):this.first().data("ssOpts");var i=e.extend({},e.fn.smoothScroll.defaults,n),o=e.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(n){var r=this,s=e(this),a=e.extend({},i,s.data("ssOpts")||{}),u=i.exclude,c=a.excludeWithin,l=0,h=0,f=!0,d={},p=location.hostname===r.hostname||!r.hostname,g=a.scrollTarget||e.smoothScroll.filterPath(r.pathname)===o,m=t(r.hash);if(a.scrollTarget||p&&g&&m){for(;f&&u.length>l;)s.is(t(u[l++]))&&(f=!1);for(;f&&c.length>h;)s.closest(c[h++]).length&&(f=!1)}else f=!1;f&&(a.preventDefault&&n.preventDefault(),e.extend(d,a,{scrollTarget:a.scrollTarget||m,link:r}),e.smoothScroll(d))}),this}}),e.smoothScroll=function(t,r){if("options"===t&&"object"==typeof r)return e.extend(n,r);var i,o,s,a,u,c=0,l="offset",h="scrollTop",f={},d={};"number"==typeof t?(i=e.extend({link:null},e.fn.smoothScroll.defaults,n),s=t):(i=e.extend({link:null},e.fn.smoothScroll.defaults,t||{},n)).scrollElement&&(l="position","static"===i.scrollElement.css("position")&&i.scrollElement.css("position","relative")),h="left"===i.direction?"scrollLeft":h,i.scrollElement?(o=i.scrollElement,/^(?:HTML|BODY)$/.test(o[0].nodeName)||(c=o[h]())):o=e("html, body").firstScrollable(i.direction),i.beforeScroll.call(o,i),s="number"==typeof t?t:r||e(i.scrollTarget)[l]()&&e(i.scrollTarget)[l]()[i.direction]||0,f[h]=s+c+i.offset,"auto"===(a=i.speed)&&(0>(u=f[h]-o.scrollTop())&&(u*=-1),a=u/i.autoCoefficient),d={duration:a,easing:i.easing,complete:function(){i.afterScroll.call(i.link,i)}},i.step&&(d.step=i.step),o.length?o.stop().animate(f,d):i.afterScroll.call(i.link,i)},e.smoothScroll.version="1.5.4",e.smoothScroll.filterPath=function(e){return(e=e||"").replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},e.fn.smoothScroll.defaults=r});var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,n,r){if(t){for(n=$jscomp.global,e=e.split("."),r=0;r<e.length-1;r++){var i=e[r];i in n||(n[i]={}),n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Math.hypot",function(e){return e||function(e,t,n){e=Number(e),t=Number(t);var r,i=Math.max(Math.abs(e),Math.abs(t));for(r=2;r<arguments.length;r++)i=Math.max(i,Math.abs(arguments[r]));if(1e100<i||1e-100>i){var o=(e/=i)*e+(t/=i)*t;for(r=2;r<arguments.length;r++){var s=Number(arguments[r])/i;o+=s*s}return Math.sqrt(o)*i}for(o=e*e+t*t,r=2;r<arguments.length;r++)s=Number(arguments[r]),o+=s*s;return Math.sqrt(o)}},"es6-impl","es3"),function(e){function t(){}function n(e){if(!e||"object"!=typeof e)return!1;var t=_(e)||ae;return/object|function/.test(typeof t.Element)?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName}function r(e){return e===ae||!(!e||!e.Window)&&e instanceof e.Window}function i(e){return o(e)&&!0&&s(e.splice)}function o(e){return!!e&&"object"==typeof e}function s(e){return"function"==typeof e}function a(e){return"number"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"string"==typeof e}function l(e){return!!c(e)&&(ue.querySelector(e),!0)}function h(e,t){for(var n in t)e[n]=t[n];return e}function f(e,t){for(var n in t){var r,i=!1;for(r in We)if(0===n.indexOf(r)&&We[r].test(n)){i=!0;break}i||(e[n]=t[n])}return e}function d(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp}function p(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=(new Date).getTime()-t.timeStamp,t=Math.max(e.timeStamp/1e3,.001),e.page.speed=ge(e.page.x,e.page.y)/t,e.page.vx=e.page.x/t,e.page.vy=e.page.y/t,e.client.speed=ge(e.client.x,e.page.y)/t,e.client.vx=e.client.x/t,e.client.vy=e.client.y/t}function g(e){return e instanceof ae.Event||Ce&&ae.Touch&&e instanceof ae.Touch}function m(e,t,n){return n=n||{},e=e||"page",n.x=t[e+"X"],n.y=t[e+"Y"],n}function v(e,t){return t=t||{},Me&&g(e)?(m("screen",e,t),t.x+=ae.scrollX,t.y+=ae.scrollY):m("page",e,t),t}function y(e,t){return t=t||{},Me&&g(e)?m("screen",e,t):m("client",e,t),t}function b(e){return a(e.pointerId)?e.pointerId:e.identifier}function w(e){return e instanceof fe?e.correspondingUseElement:e}function _(e){return r(e)?e:(e=e.ownerDocument||e).defaultView||e.parentWindow||ae}function x(e){return(e=e instanceof le?e.getBoundingClientRect():e.getClientRects()[0])&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function S(e){var t=x(e);if(!Be&&t){var n=(n=_(e))||ae;e=n.scrollX||n.document.documentElement.scrollLeft,n=n.scrollY||n.document.documentElement.scrollTop,t.left+=e,t.right+=e,t.top+=n,t.bottom+=n}return t}function C(e){var t=[];return i(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function k(e){for(var t,n={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},r=0;r<e.length;r++)for(t in n)n[t]+=e[r][t];for(t in n)n[t]/=e.length;return n}function E(e){if(e.length||e.touches&&1<e.touches.length){e=C(e);var t=Math.min(e[0].pageX,e[1].pageX),n=Math.min(e[0].pageY,e[1].pageY);return{x:t,y:n,left:t,top:n,width:Math.max(e[0].pageX,e[1].pageX)-t,height:Math.max(e[0].pageY,e[1].pageY)-n}}}function T(e,t){var n=(t=t||xe.deltaSource)+"X";return t+="Y",e=C(e),ge(e[0][n]-e[1][n],e[0][t]-e[1][t])}function A(e,t,n){var r=(n=n||xe.deltaSource)+"X";return n+="Y",e=C(e),r=180*Math.atan((e[0][n]-e[1][n])/(e[0][r]-e[1][r]))/Math.PI,a(t)&&(315<(t=(r-t)%360)?r-=360+r/360|0:135<t?r-=180+r/360|0:-315>t?r+=360+r/360|0:-135>t&&(r+=180+r/360|0)),r}function I(e,t){var r=e?e.options.origin:xe.origin;return"parent"===r?r=L(t):"self"===r?r=e.getRect(t):l(r)&&(r=O(t,r)||{x:0,y:0}),s(r)&&(r=r(e&&t)),n(r)&&(r=S(r)),r.x="x"in r?r.x:r.left,r.y="y"in r?r.y:r.top,r}function D(e,t,n,r){var i=1-e;return i*i*t+2*i*e*n+e*e*r}function z(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function O(e,t){for(e=L(e);n(e);){if(re(e,t))return e;e=L(e)}return null}function L(e){if((e=e.parentNode)&&e instanceof ce)for(;(e=e.host)&&e&&e instanceof ce;);return e}function N(e,t){return e._context===t.ownerDocument||z(e._context,t)}function M(e,t,r){return!(!(e=e.options.ignoreFrom)||!n(r))&&(c(e)?ie(r,e,t):!!n(e)&&z(e,r))}function B(e,t,r){return!(e=e.options.allowFrom)||!!n(r)&&(c(e)?ie(r,e,t):!!n(e)&&z(e,r))}function R(e,t){return!!t&&(t=t.options.drag.axis,"xy"===e||"xy"===t||t===e)}function j(e,t){return e=e.options,/^resize/.test(t)&&(t="resize"),e[t].snap&&e[t].snap.enabled}function F(e,t){return e=e.options,/^resize/.test(t)&&(t="resize"),e[t].restrict&&e[t].restrict.enabled}function P(e,t,n){for(var r=(i=e.options)[n.name].max,i=i[n.name].maxPerElement,o=0,s=0,a=0,u=0,c=be.length;u<c;u++){var l=be[u],h=l.prepared.name;if(l.interacting()&&(++o>=Ie||l.target===e&&((s+=h===n.name|0)>=r||l.element===t&&(a++,h!==n.name||a>=i))))return!1}return 0<Ie}function W(){if(this.prevDropElement=this.prevDropTarget=this.dropElement=this.dropTarget=this.element=this.target=null,this.prepared={name:null,axis:null,edges:null},this.matches=[],this.matchElements=[],this.inertiaStatus={active:!1,smoothEnd:!1,ending:!1,startEvent:null,upCoords:{},xe:0,ye:0,sx:0,sy:0,t0:0,vx0:0,vys:0,duration:0,resumeDx:0,resumeDy:0,lambda_v0:0,one_ve_v0:0,i:null},s(Function.prototype.bind))this.boundInertiaFrame=this.inertiaFrame.bind(this),this.boundSmoothEndFrame=this.smoothEndFrame.bind(this);else{var e=this;this.boundInertiaFrame=function(){return e.inertiaFrame()},this.boundSmoothEndFrame=function(){return e.smoothEndFrame()}}this.activeDrops={dropzones:[],elements:[],rects:[]},this.pointers=[],this.pointerIds=[],this.downTargets=[],this.downTimes=[],this.holdTimers=[],this.prevCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.curCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.startCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.pointerDelta={page:{x:0,y:0,vx:0,vy:0,speed:0},client:{x:0,y:0,vx:0,vy:0,speed:0},timeStamp:0},this.downEvent=null,this.downPointer={},this.prevEvent=this._curEventTarget=this._eventTarget=null,this.tapTime=0,this.prevTap=null,this.startOffset={left:0,right:0,top:0,bottom:0},this.restrictOffset={left:0,right:0,top:0,bottom:0},this.snapOffsets=[],this.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0},this.snapStatus={x:0,y:0,dx:0,dy:0,realX:0,realY:0,snappedX:0,snappedY:0,targets:[],locked:!1,changed:!1},this.restrictStatus={dx:0,dy:0,restrictedX:0,restrictedY:0,snap:null,restricted:!1,changed:!1},this.restrictStatus.snap=this.snapStatus,this.resizing=this.dragging=this.gesturing=this.pointerWasMoved=this.pointerIsDown=!1,this.resizeAxes="xy",this.mouse=!1,be.push(this)}function q(e,t,n){var r=be.length,i=/mouse/i.test(e.pointerType||t)||4===e.pointerType,o=b(e);if(/down|start/i.test(t))for(e=0;e<r;e++){var s=be[e],a=n;if(s.inertiaStatus.active&&s.target.options[s.prepared.name].inertia.allowResume&&s.mouse===i)for(;a;){if(a===s.element)return s;a=L(a)}}if(i||!Ce&&!ke){for(e=0;e<r;e++)if(be[e].mouse&&!be[e].inertiaStatus.active)return be[e];for(e=0;e<r;e++)if(be[e].mouse&&(!/down/.test(t)||!be[e].inertiaStatus.active))return s;return s=new W,s.mouse=!0,s}for(e=0;e<r;e++)if(-1!==ne(be[e].pointerIds,o))return be[e];if(/up|end|out/i.test(t))return null;for(e=0;e<r;e++)if(!((s=be[e]).prepared.name&&!s.target.options.gesture.enabled||s.interacting()||!i&&s.mouse))return s;return new W}function H(e){return function(t){var n,r,i=w(t.path?t.path[0]:t.target),o=w(t.currentTarget);if(Ce&&/touch/.test(t.type))for(Ae=(new Date).getTime(),r=0;r<t.changedTouches.length;r++){var s=t.changedTouches[r];(n=q(s,t.type,i))&&(n._updateEventTargets(i,o),n[e](s,t,i,o))}else{if(!ke&&/mouse/.test(t.type)){for(r=0;r<be.length;r++)if(!be[r].mouse&&be[r].pointerIsDown)return;if(500>(new Date).getTime()-Ae)return}(n=q(t,t.type,i))&&(n._updateEventTargets(i,o),n[e](t,t,i,o))}}}function Y(e,t,n,r,i,o){var s=e.target,a=e.snapStatus,u=e.restrictStatus,c=e.pointers,l=(s&&s.options||xe).deltaSource,f=l+"X",d=l+"Y",p=s?s.options:xe,g=I(s,i),m="start"===r,v="end"===r,y=m?e.startCoords:e.curCoords;i=i||e.element;var b=h({},y.page);y=h({},y.client),b.x-=g.x,b.y-=g.y,y.x-=g.x,y.y-=g.y;var w=p[n].snap&&p[n].snap.relativePoints;!j(s,n)||m&&w&&w.length||(this.snap={range:a.range,locked:a.locked,x:a.snappedX,y:a.snappedY,realX:a.realX,realY:a.realY,dx:a.dx,dy:a.dy},a.locked&&(b.x+=a.dx,b.y+=a.dy,y.x+=a.dx,y.y+=a.dy)),!F(s,n)||m&&p[n].restrict.elementRect||!u.restricted||(b.x+=u.dx,b.y+=u.dy,y.x+=u.dx,y.y+=u.dy,this.restrict={dx:u.dx,dy:u.dy}),this.pageX=b.x,this.pageY=b.y,this.clientX=y.x,this.clientY=y.y,this.x0=e.startCoords.page.x-g.x,this.y0=e.startCoords.page.y-g.y,this.clientX0=e.startCoords.client.x-g.x,this.clientY0=e.startCoords.client.y-g.y,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.button=t.button,this.buttons=t.buttons,this.target=i,this.t0=e.downTimes[0],this.type=n+(r||""),this.interaction=e,this.interactable=s,(i=e.inertiaStatus).active&&(this.detail="inertia"),o&&(this.relatedTarget=o),v?"client"===l?(this.dx=y.x-e.startCoords.client.x,this.dy=y.y-e.startCoords.client.y):(this.dx=b.x-e.startCoords.page.x,this.dy=b.y-e.startCoords.page.y):m?this.dy=this.dx=0:"inertiastart"===r?(this.dx=e.prevEvent.dx,this.dy=e.prevEvent.dy):"client"===l?(this.dx=y.x-e.prevEvent.clientX,this.dy=y.y-e.prevEvent.clientY):(this.dx=b.x-e.prevEvent.pageX,this.dy=b.y-e.prevEvent.pageY),e.prevEvent&&"inertia"===e.prevEvent.detail&&!i.active&&p[n].inertia&&p[n].inertia.zeroResumeDelta&&(i.resumeDx+=this.dx,i.resumeDy+=this.dy,this.dx=this.dy=0),"resize"===n&&e.resizeAxes?p.resize.square?("y"===e.resizeAxes?this.dx=this.dy:this.dy=this.dx,this.axes="xy"):(this.axes=e.resizeAxes,"x"===e.resizeAxes?this.dy=0:"y"===e.resizeAxes&&(this.dx=0)):"gesture"===n&&(this.touches=[c[0],c[1]],m?(this.distance=T(c,l),this.box=E(c),this.scale=1,this.ds=0,this.angle=A(c,void 0,l),this.da=0):v||t instanceof Y?(this.distance=e.prevEvent.distance,this.box=e.prevEvent.box,this.scale=e.prevEvent.scale,this.ds=this.scale-1,this.angle=e.prevEvent.angle,this.da=this.angle-e.gesture.startAngle):(this.distance=T(c,l),this.box=E(c),this.scale=this.distance/e.gesture.startDistance,this.angle=A(c,e.gesture.prevAngle,l),this.ds=this.scale-e.gesture.prevScale,this.da=this.angle-e.gesture.prevAngle)),m?(this.timeStamp=e.downTimes[0],this.velocityY=this.velocityX=this.speed=this.duration=this.dt=0):"inertiastart"===r?(this.timeStamp=e.prevEvent.timeStamp,this.dt=e.prevEvent.dt,this.duration=e.prevEvent.duration,this.speed=e.prevEvent.speed,this.velocityX=e.prevEvent.velocityX,this.velocityY=e.prevEvent.velocityY):(this.timeStamp=(new Date).getTime(),this.dt=this.timeStamp-e.prevEvent.timeStamp,this.duration=this.timeStamp-e.downTimes[0],t instanceof Y?(t=this[f]-e.prevEvent[f],d=this[d]-e.prevEvent[d],n=this.dt/1e3,this.speed=ge(t,d)/n,this.velocityX=t/n,this.velocityY=d/n):(this.speed=e.pointerDelta[l].speed,this.velocityX=e.pointerDelta[l].vx,this.velocityY=e.pointerDelta[l].vy)),(v||"inertiastart"===r)&&600<e.prevEvent.speed&&150>this.timeStamp-e.prevEvent.timeStamp&&(0>(r=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI)&&(r+=360),v=112.5<=r&&247.5>r,d=202.5<=r&&337.5>r,this.swipe={up:d,down:!d&&22.5<=r&&157.5>r,left:v,right:!v&&(292.5<=r||67.5>r),angle:r,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}})}function $(){this.originalEvent.preventDefault()}function U(e){t="";if("drag"===e.name&&(t=De.drag),"resize"===e.name)if(e.axis)t=De[e.name+e.axis];else if(e.edges){for(var t="resize",n=["top","bottom","left","right"],r=0;4>r;r++)e.edges[n[r]]&&(t+=n[r]);t=De[t]}return t}function X(e,t,r){var i=this.getRect(r),s=!1,u=null,c=h({},t.curCoords.page);if(e=this.options,!i)return null;if(ze.resize&&e.resize.enabled){var l={left:!1,right:!1,top:!1,bottom:!1};if(o((s=e.resize).edges)){for(var f in l){var d=l,p=f;e:{var g=f,m=s.edges[f],v=c,y=t._eventTarget,b=r,w=i,_=s.margin||Ee;if(m){if(!0===m){var x=a(w.width)?w.width:w.right-w.left,S=a(w.height)?w.height:w.bottom-w.top;if(0>x&&("left"===g?g="right":"right"===g&&(g="left")),0>S&&("top"===g?g="bottom":"bottom"===g&&(g="top")),"left"===g){g=v.x<(0<=x?w.left:w.right)+_;break e}if("top"===g){g=v.y<(0<=S?w.top:w.bottom)+_;break e}if("right"===g){g=v.x>(0<=x?w.right:w.left)-_;break e}if("bottom"===g){g=v.y>(0<=S?w.bottom:w.top)-_;break e}}g=!!n(y)&&(n(m)?m===y:ie(y,m,b))}else g=!1}d[p]=g}l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,s=l.left||l.right||l.top||l.bottom}else r="y"!==e.resize.axis&&c.x>i.right-Ee,i="x"!==e.resize.axis&&c.y>i.bottom-Ee,s=r||i,u=(r?"x":"")+(i?"y":"")}return e=s?"resize":ze.drag&&e.drag.enabled?"drag":null,ze.gesture&&2<=t.pointerIds.length&&!t.dragging&&!t.resizing&&(e="gesture"),e?{name:e,axis:u,edges:l}:null}function G(e,t){if(!o(e))return null;var n=e.name;return t=t.options,("resize"===n&&t.resize.enabled||"drag"===n&&t.drag.enabled||"gesture"===n&&t.gesture.enabled)&&ze[n]?e:null}function V(e,t){var r={},i=_e[e.type],o=w(e.path?e.path[0]:e.target),s=o;t=!!t;for(var a in e)r[a]=e[a];for(r.originalEvent=e,r.preventDefault=$;n(s);){for(e=0;e<i.selectors.length;e++)if(a=i.contexts[e],re(s,i.selectors[e])&&z(a,o)&&z(a,s)){a=i.listeners[e],r.currentTarget=s;for(var u=0;u<a.length;u++)a[u][1]===t&&a[u][0](r)}s=L(s)}}function Z(e){return V.call(this,e,!0)}function J(e,t){return ye.get(e,t)||new Q(e,t)}function Q(e,t){if(this._element=e,this._iEvents=this._iEvents||{},l(e)){this.selector=e;var r=(e=t&&t.context)?_(e):ae;e&&(r.Node?e instanceof r.Node:n(e)||e===r.document)&&(this._context=e)}else r=_(e),n(e,r)&&(ke?(Pe.add(this._element,oe.down,qe.pointerDown),Pe.add(this._element,oe.move,qe.pointerHover)):(Pe.add(this._element,"mousedown",qe.pointerDown),Pe.add(this._element,"mousemove",qe.pointerHover),Pe.add(this._element,"touchstart",qe.pointerDown),Pe.add(this._element,"touchmove",qe.pointerHover)));this._doc=r.document,-1===ne(ve,this._doc)&&te(this._doc),ye.push(this),this.set(t)}function K(e,t){var n=!1;return function(){return n||(ae.console.warn(t),n=!0),e.apply(this,arguments)}}function ee(e){for(var t=0;t<be.length;t++)be[t].pointerEnd(e,e)}function te(e){if(-1===ne(ve,e)){var t,n=e.defaultView||e.parentWindow;for(t in _e)Pe.add(e,t,V),Pe.add(e,t,Z,!0);ke?(oe=pe===n.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"},Pe.add(e,oe.down,qe.selectorDown),Pe.add(e,oe.move,qe.pointerMove),Pe.add(e,oe.over,qe.pointerOver),Pe.add(e,oe.out,qe.pointerOut),Pe.add(e,oe.up,qe.pointerUp),Pe.add(e,oe.cancel,qe.pointerCancel),Pe.add(e,oe.move,qe.autoScrollMove)):(Pe.add(e,"mousedown",qe.selectorDown),Pe.add(e,"mousemove",qe.pointerMove),Pe.add(e,"mouseup",qe.pointerUp),Pe.add(e,"mouseover",qe.pointerOver),Pe.add(e,"mouseout",qe.pointerOut),Pe.add(e,"touchstart",qe.selectorDown),Pe.add(e,"touchmove",qe.pointerMove),Pe.add(e,"touchend",qe.pointerUp),Pe.add(e,"touchcancel",qe.pointerCancel),Pe.add(e,"mousemove",qe.autoScrollMove),Pe.add(e,"touchmove",qe.autoScrollMove)),Pe.add(n,"blur",ee);try{if(n.frameElement){var r=n.frameElement.ownerDocument,i=r.defaultView;Pe.add(r,"mouseup",qe.pointerEnd),Pe.add(r,"touchend",qe.pointerEnd),Pe.add(r,"touchcancel",qe.pointerEnd),Pe.add(r,"pointerup",qe.pointerEnd),Pe.add(r,"MSPointerUp",qe.pointerEnd),Pe.add(i,"blur",ee)}}catch(e){J.windowParentError=e}Pe.add(e,"dragstart",function(e){for(var t=0;t<be.length;t++){var n=be[t];if(n.element&&(n.element===e.target||z(n.element,e.target))){n.checkAndPreventDefault(e,n.target,n.element);break}}}),Pe.useAttachEvent&&(Pe.add(e,"selectstart",function(e){var t=be[0];t.currentAction()&&t.checkAndPreventDefault(e)}),Pe.add(e,"dblclick",H("ie8Dblclick"))),ve.push(e)}}function ne(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(t,n,r){return se?se(t,n,r):(ae!==e&&(n=n.replace(/\/deep\//g," ")),t[Re](n))}function ie(e,t,r){for(;n(e);){if(re(e,t))return!0;if((e=L(e))===r)return re(e,t)}return!1}if(e){var oe,se,ae=function(){var t=e.document.createTextNode("");return t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t?e.wrap(e):e}(),ue=ae.document,ce=ae.DocumentFragment||t,le=ae.SVGElement||t,he=ae.SVGSVGElement||t,fe=ae.SVGElementInstance||t,de=ae.HTMLElement||ae.Element,pe=ae.PointerEvent||ae.MSPointerEvent,ge=Math.hypot||function(e,t){return Math.sqrt(e*e+t*t)},me={},ve=[],ye=[],be=[],we=!1,_e={},xe={base:{accept:null,actionChecker:null,styleCursor:!0,preventDefault:"auto",origin:{x:0,y:0},deltaSource:"page",allowFrom:null,ignoreFrom:null,_context:ue,dropChecker:null},drag:{enabled:!1,manualStart:!0,max:1/0,maxPerElement:1,snap:null,restrict:null,inertia:null,autoScroll:null,axis:"xy"},drop:{enabled:!1,accept:null,overlap:"pointer"},resize:{enabled:!1,manualStart:!1,max:1/0,maxPerElement:1,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},gesture:{manualStart:!1,enabled:!1,max:1/0,maxPerElement:1,restrict:null},perAction:{manualStart:!1,max:1/0,maxPerElement:1,snap:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null,relativePoints:null},restrict:{enabled:!1,endOnly:!1},autoScroll:{enabled:!1,container:null,margin:60,speed:300},inertia:{enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,zeroResumeDelta:!0,smoothEndDuration:300}},_holdDuration:600},Se={interaction:null,i:null,x:0,y:0,scroll:function(){var e=Se.interaction.target.options[Se.interaction.prepared.name].autoScroll,t=e.container||_(Se.interaction.element),n=(new Date).getTime(),i=(n-Se.prevTimeX)/1e3,o=(n-Se.prevTimeY)/1e3;if(e.velocity){var s=e.velocity.x;e=e.velocity.y}else s=e=e.speed;o*=e,(1<=(i*=s)||1<=o)&&(r(t)?t.scrollBy(Se.x*i,Se.y*o):t&&(t.scrollLeft+=Se.x*i,t.scrollTop+=Se.y*o),1<=i&&(Se.prevTimeX=n),1<=o&&(Se.prevTimeY=n)),Se.isScrolling&&(Fe(Se.i),Se.i=je(Se.scroll))},isScrolling:!1,prevTimeX:0,prevTimeY:0,start:function(e){Se.isScrolling=!0,Fe(Se.i),Se.interaction=e,Se.prevTimeX=(new Date).getTime(),Se.prevTimeY=(new Date).getTime(),Se.i=je(Se.scroll)},stop:function(){Se.isScrolling=!1,Fe(Se.i)}},Ce="ontouchstart"in ae||ae.DocumentTouch&&ue instanceof ae.DocumentTouch,ke=pe&&!/Chrome/.test(navigator.userAgent),Ee=Ce||ke?20:10,Te=1,Ae=0,Ie=1/0,De=ue.all&&!ae.atob?{drag:"move",resizex:"e-resize",resizey:"s-resize",resizexy:"se-resize",resizetop:"n-resize",resizeleft:"w-resize",resizebottom:"s-resize",resizeright:"e-resize",resizetopleft:"se-resize",resizebottomright:"se-resize",resizetopright:"ne-resize",resizebottomleft:"ne-resize",gesture:""}:{drag:"move",resizex:"ew-resize",resizey:"ns-resize",resizexy:"nwse-resize",resizetop:"ns-resize",resizeleft:"ew-resize",resizebottom:"ns-resize",resizeright:"ew-resize",resizetopleft:"nwse-resize",resizebottomright:"nwse-resize",resizetopright:"nesw-resize",resizebottomleft:"nesw-resize",gesture:""},ze={drag:!0,resize:!0,gesture:!0},Oe="onmousewheel"in ue?"mousewheel":"wheel",Le="dragstart dragmove draginertiastart dragend dragenter dragleave dropactivate dropdeactivate dropmove drop resizestart resizemove resizeinertiastart resizeend gesturestart gesturemove gestureinertiastart gestureend down move up cancel tap doubletap hold".split(" "),Ne={},Me="Opera"==navigator.appName&&Ce&&navigator.userAgent.match("Presto"),Be=/iP(hone|od|ad)/.test(navigator.platform)&&/OS 7[^\d]/.test(navigator.appVersion),Re="matches"in Element.prototype?"matches":"webkitMatchesSelector"in Element.prototype?"webkitMatchesSelector":"mozMatchesSelector"in Element.prototype?"mozMatchesSelector":"oMatchesSelector"in Element.prototype?"oMatchesSelector":"msMatchesSelector",je=e.requestAnimationFrame,Fe=e.cancelAnimationFrame,Pe=function(){function e(t,n,r,o){var h,f=ne(u,t),d=c[f],p=r;if(d&&d.events){if(i){var g=l[f],m=ne(g.supplied,r);p=g.wrapped[m]}if("all"===n)for(n in d.events)d.events.hasOwnProperty(n)&&e(t,n,"all");else{if(d.events[n]){var v=d.events[n].length;if("all"===r){for(h=0;h<v;h++)e(t,n,d.events[n][h],!!o);return}for(h=0;h<v;h++)if(d.events[n][h]===r){t[s](a+n,p,o||!1),d.events[n].splice(h,1),i&&g&&(g.useCount[m]--,0===g.useCount[m]&&(g.supplied.splice(m,1),g.wrapped.splice(m,1),g.useCount.splice(m,1)));break}d.events[n]&&0===d.events[n].length&&(d.events[n]=null,d.typeCount--)}d.typeCount||(c.splice(f,1),u.splice(f,1),l.splice(f,1))}}}function t(){this.returnValue=!1}function n(){this.cancelBubble=!0}function r(){this.immediatePropagationStopped=this.cancelBubble=!0}var i="attachEvent"in ae&&!("addEventListener"in ae),o=i?"attachEvent":"addEventListener",s=i?"detachEvent":"removeEventListener",a=i?"on":"",u=[],c=[],l=[];return{add:function(e,s,h,f){var d=ne(u,e),p=c[d];if(p||(p={events:{},typeCount:0},d=u.push(e)-1,c.push(p),l.push(i?{supplied:[],wrapped:[],useCount:[]}:null)),p.events[s]||(p.events[s]=[],p.typeCount++),-1===ne(p.events[s],h)){if(i){var g=ne((d=l[d]).supplied,h),m=d.wrapped[g]||function(i){i.immediatePropagationStopped||(i.target=i.srcElement,i.currentTarget=e,i.preventDefault=i.preventDefault||t,i.stopPropagation=i.stopPropagation||n,i.stopImmediatePropagation=i.stopImmediatePropagation||r,/mouse|click/.test(i.type)&&(i.pageX=i.clientX+_(e).document.documentElement.scrollLeft,i.pageY=i.clientY+_(e).document.documentElement.scrollTop),h(i))};f=e[o](a+s,m,!!f),-1===g?(d.supplied.push(h),d.wrapped.push(m),d.useCount.push(1)):d.useCount[g]++}else f=e[o](s,h,f||!1);return p.events[s].push(h),f}},remove:e,useAttachEvent:i,_elements:u,_targets:c,_attachedListeners:l}}(),We={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/};W.prototype={getPageXY:function(e,t){return v(e,t)},getClientXY:function(e,t){return y(e,t)},setEventXY:function(e,t){v(t=1<t.length?k(t):t[0],me),e.page.x=me.x,e.page.y=me.y,y(t,me),e.client.x=me.x,e.client.y=me.y,e.timeStamp=(new Date).getTime()},pointerOver:function(e,t,r){if(!this.prepared.name&&this.mouse){var i=[],o=[],s=this.element;this.addPointer(e),!this.target||!M(this.target,this.element,r)&&B(this.target,this.element,r)||(this.element=this.target=null,this.matches=[],this.matchElements=[]);var a=ye.get(r),u=a&&!M(a,r,r)&&B(a,r,r)&&G(a.getAction(e,t,this,r),a);u&&!P(a,r,u)&&(u=null),u?(this.target=a,this.element=r,this.matches=[],this.matchElements=[]):(ye.forEachSelector(function(e,t){e&&n(r)&&N(e,r)&&!M(e,r,r)&&B(e,r,r)&&re(r,t)&&(i.push(e),o.push(r))}),this.validateSelector(e,t,i,o)?(this.matches=i,this.matchElements=o,this.pointerHover(e,t,this.matches,this.matchElements),Pe.add(r,ke?oe.move:"mousemove",qe.pointerHover)):this.target&&(z(s,r)?(this.pointerHover(e,t,this.matches,this.matchElements),Pe.add(this.element,ke?oe.move:"mousemove",qe.pointerHover)):(this.element=this.target=null,this.matches=[],this.matchElements=[])))}},pointerHover:function(e,t,n,r,i,o){if(n=this.target,!this.prepared.name&&this.mouse){var s;this.setEventXY(this.curCoords,[e]),i?s=this.validateSelector(e,t,i,o):n&&(s=G(n.getAction(this.pointers[0],t,this,this.element),this.target)),n&&n.options.styleCursor&&(n._doc.documentElement.style.cursor=s?U(s):"")}else this.prepared.name&&this.checkAndPreventDefault(t,n,this.element)},pointerOut:function(e,t,n){this.prepared.name||(ye.get(n)||Pe.remove(n,ke?oe.move:"mousemove",qe.pointerHover),this.target&&this.target.options.styleCursor&&!this.interacting()&&(this.target._doc.documentElement.style.cursor=""))},selectorDown:function(e,t,r,i){var o=this,s=Pe.useAttachEvent?h({},t):t,a=r,u=this.addPointer(e);if(this.holdTimers[u]=setTimeout(function(){o.pointerHold(Pe.useAttachEvent?s:e,s,r,i)},xe._holdDuration),this.pointerIsDown=!0,this.inertiaStatus.active&&this.target.selector)for(;n(a);){if(a===this.element&&G(this.target.getAction(e,t,this,this.element),this.target).name===this.prepared.name)return Fe(this.inertiaStatus.i),this.inertiaStatus.active=!1,void this.collectEventTargets(e,t,r,"down");a=L(a)}if(!this.interacting()){for(this.setEventXY(this.curCoords,[e]),this.downEvent=t;n(a)&&!c;){this.matches=[],this.matchElements=[],ye.forEachSelector(function(e,t,n){n=se?n.querySelectorAll(t):void 0,N(e,a)&&!M(e,a,r)&&B(e,a,r)&&re(a,t,n)&&(o.matches.push(e),o.matchElements.push(a))});var c=this.validateSelector(e,t,this.matches,this.matchElements);a=L(a)}if(c)return this.prepared.name=c.name,this.prepared.axis=c.axis,this.prepared.edges=c.edges,this.collectEventTargets(e,t,r,"down"),this.pointerDown(e,t,r,i,c);this.downTimes[u]=(new Date).getTime(),this.downTargets[u]=r,f(this.downPointer,e),d(this.prevCoords,this.curCoords),this.pointerWasMoved=!1}this.collectEventTargets(e,t,r,"down")},pointerDown:function(e,t,n,r,i){if(!i&&!this.inertiaStatus.active&&this.pointerWasMoved&&this.prepared.name)this.checkAndPreventDefault(t,this.target,this.element);else{this.pointerIsDown=!0,this.downEvent=t;var o,s=this.addPointer(e);if(1<this.pointerIds.length&&this.target._element===this.element){var a=G(i||this.target.getAction(e,t,this,this.element),this.target);P(this.target,this.element,a)&&(o=a),this.prepared.name=null}else this.prepared.name||(a=ye.get(r))&&!M(a,r,n)&&B(a,r,n)&&(o=G(i||a.getAction(e,t,this,r),a))&&P(a,r,o)&&(this.target=a,this.element=r);var u=(a=this.target)&&a.options;!a||!i&&this.prepared.name?this.inertiaStatus.active&&r===this.element&&G(a.getAction(e,t,this,this.element),a).name===this.prepared.name&&(Fe(this.inertiaStatus.i),this.inertiaStatus.active=!1,this.checkAndPreventDefault(t,a,this.element)):(o=o||G(i||a.getAction(e,t,this,r),a,this.element),this.setEventXY(this.startCoords,this.pointers),o&&(u.styleCursor&&(a._doc.documentElement.style.cursor=U(o)),this.resizeAxes="resize"===o.name?o.axis:null,"gesture"===o&&2>this.pointerIds.length&&(o=null),this.prepared.name=o.name,this.prepared.axis=o.axis,this.prepared.edges=o.edges,this.snapStatus.snappedX=this.snapStatus.snappedY=this.restrictStatus.restrictedX=this.restrictStatus.restrictedY=NaN,this.downTimes[s]=(new Date).getTime(),this.downTargets[s]=n,f(this.downPointer,e),d(this.prevCoords,this.startCoords),this.pointerWasMoved=!1,this.checkAndPreventDefault(t,a,this.element)))}},setModifications:function(e,t){var n=this.target,r=!0,i=j(n,this.prepared.name)&&(!n.options[this.prepared.name].snap.endOnly||t);return t=F(n,this.prepared.name)&&(!n.options[this.prepared.name].restrict.endOnly||t),i?this.setSnapping(e):this.snapStatus.locked=!1,t?this.setRestriction(e):this.restrictStatus.restricted=!1,i&&this.snapStatus.locked&&!this.snapStatus.changed?r=t&&this.restrictStatus.restricted&&this.restrictStatus.changed:t&&this.restrictStatus.restricted&&!this.restrictStatus.changed&&(r=!1),r},setStartOffsets:function(e,t,n){e=t.getRect(n);var r=I(t,n);if(n=t.options[this.prepared.name].snap,t=t.options[this.prepared.name].restrict,e){this.startOffset.left=this.startCoords.page.x-e.left,this.startOffset.top=this.startCoords.page.y-e.top,this.startOffset.right=e.right-this.startCoords.page.x,this.startOffset.bottom=e.bottom-this.startCoords.page.y;var i="width"in e?e.width:e.right-e.left,o="height"in e?e.height:e.bottom-e.top}else this.startOffset.left=this.startOffset.top=this.startOffset.right=this.startOffset.bottom=0;if(this.snapOffsets.splice(0),r=n&&"startCoords"===n.offset?{x:this.startCoords.page.x-r.x,y:this.startCoords.page.y-r.y}:n&&n.offset||{x:0,y:0},e&&n&&n.relativePoints&&n.relativePoints.length)for(var s=0;s<n.relativePoints.length;s++)this.snapOffsets.push({x:this.startOffset.left-i*n.relativePoints[s].x+r.x,y:this.startOffset.top-o*n.relativePoints[s].y+r.y});else this.snapOffsets.push(r);e&&t.elementRect?(this.restrictOffset.left=this.startOffset.left-i*t.elementRect.left,this.restrictOffset.top=this.startOffset.top-o*t.elementRect.top,this.restrictOffset.right=this.startOffset.right-i*(1-t.elementRect.right),this.restrictOffset.bottom=this.startOffset.bottom-o*(1-t.elementRect.bottom)):this.restrictOffset.left=this.restrictOffset.top=this.restrictOffset.right=this.restrictOffset.bottom=0},start:function(e,t,n){this.interacting()||!this.pointerIsDown||this.pointerIds.length<("gesture"===e.name?2:1)||(-1===ne(be,this)&&be.push(this),this.prepared.name||this.setEventXY(this.startCoords,this.pointers),this.prepared.name=e.name,this.prepared.axis=e.axis,this.prepared.edges=e.edges,this.target=t,this.element=n,this.setStartOffsets(e.name,t,n),this.setModifications(this.startCoords.page),this.prevEvent=this[this.prepared.name+"Start"](this.downEvent))},pointerMove:function(e,t,r,i,o){if(this.inertiaStatus.active){i=this.inertiaStatus.upCoords.page;s=this.inertiaStatus.upCoords.client;this.setEventXY(this.curCoords,[{pageX:i.x+this.inertiaStatus.sx,pageY:i.y+this.inertiaStatus.sy,clientX:s.x+this.inertiaStatus.sx,clientY:s.y+this.inertiaStatus.sy}])}else this.recordPointer(e),this.setEventXY(this.curCoords,this.pointers);i=this.curCoords.page.x===this.prevCoords.page.x&&this.curCoords.page.y===this.prevCoords.page.y&&this.curCoords.client.x===this.prevCoords.client.x&&this.curCoords.client.y===this.prevCoords.client.y;var s=this.mouse?0:ne(this.pointerIds,b(e));if(this.pointerIsDown&&!this.pointerWasMoved){var a=this.curCoords.client.x-this.startCoords.client.x,u=this.curCoords.client.y-this.startCoords.client.y;this.pointerWasMoved=ge(a,u)>Te}if(i||this.pointerIsDown&&!this.pointerWasMoved||(this.pointerIsDown&&clearTimeout(this.holdTimers[s]),this.collectEventTargets(e,t,r,"move")),this.pointerIsDown)if(i&&this.pointerWasMoved&&!o)this.checkAndPreventDefault(t,this.target,this.element);else if(p(this.pointerDelta,this.prevCoords,this.curCoords),this.prepared.name){if(this.pointerWasMoved&&(!this.inertiaStatus.active||e instanceof Y&&/inertiastart/.test(e.type))){if(!this.interacting()&&(p(this.pointerDelta,this.prevCoords,this.curCoords),"drag"===this.prepared.name)){a=Math.abs(a),u=Math.abs(u),i=this.target.options.drag.axis;var c=a>u?"x":a<u?"y":"xy";if("xy"!==c&&"xy"!==i&&i!==c){this.prepared.name=null;for(var l=r;n(l);){if((u=ye.get(l))&&u!==this.target&&!u.options.drag.manualStart&&"drag"===u.getAction(this.downPointer,this.downEvent,this,l).name&&R(c,u)){this.prepared.name="drag",this.target=u,this.element=l;break}l=L(l)}if(!this.prepared.name){var h=this;for(u=function(e,t,n){if(n=se?n.querySelectorAll(t):void 0,e!==h.target&&N(e,r)&&!e.options.drag.manualStart&&!M(e,l,r)&&B(e,l,r)&&re(l,t,n)&&"drag"===e.getAction(h.downPointer,h.downEvent,h,l).name&&R(c,e)&&P(e,l,"drag"))return e},l=r;n(l);){if(a=ye.forEachSelector(u)){this.prepared.name="drag",this.target=a,this.element=l;break}l=L(l)}}}}if((u=!!this.prepared.name&&!this.interacting())&&(this.target.options[this.prepared.name].manualStart||!P(this.target,this.element,this.prepared)))return void this.stop(t);this.prepared.name&&this.target&&(u&&this.start(this.prepared,this.target,this.element),(this.setModifications(this.curCoords.page,o)||u)&&(this.prevEvent=this[this.prepared.name+"Move"](t)),this.checkAndPreventDefault(t,this.target,this.element))}d(this.prevCoords,this.curCoords),(this.dragging||this.resizing)&&this.autoScrollMove(e)}},dragStart:function(e){var t=new Y(this,e,"drag","start",this.element);return this.dragging=!0,this.target.fire(t),this.activeDrops.dropzones=[],this.activeDrops.elements=[],this.activeDrops.rects=[],this.dynamicDrop||this.setActiveDrops(this.element),(e=this.getDropEvents(e,t)).activate&&this.fireActiveDrops(e.activate),t},dragMove:function(e){var t=this.target,n=new Y(this,e,"drag","move",this.element),r=this.getDrop(n,e,this.element);return this.dropTarget=r.dropzone,this.dropElement=r.element,e=this.getDropEvents(e,n),t.fire(n),e.leave&&this.prevDropTarget.fire(e.leave),e.enter&&this.dropTarget.fire(e.enter),e.move&&this.dropTarget.fire(e.move),this.prevDropTarget=this.dropTarget,this.prevDropElement=this.dropElement,n},resizeStart:function(e){if(e=new Y(this,e,"resize","start",this.element),this.prepared.edges){var t=this.target.getRect(this.element);if(this.target.options.resize.square||this.target.options.resize.preserveAspectRatio){var n=h({},this.prepared.edges);n.top=n.top||n.left&&!n.bottom,n.left=n.left||n.top&&!n.right,n.bottom=n.bottom||n.right&&!n.top,n.right=n.right||n.bottom&&!n.left,this.prepared._linkedEdges=n}else this.prepared._linkedEdges=null;this.target.options.resize.preserveAspectRatio&&(this.resizeStartAspectRatio=t.width/t.height),this.resizeRects={start:t,current:h({},t),restricted:h({},t),previous:h({},t),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.rect=this.resizeRects.restricted,e.deltaRect=this.resizeRects.delta}return this.target.fire(e),this.resizing=!0,e},resizeMove:function(e){e=new Y(this,e,"resize","move",this.element);var t=this.prepared.edges,n=this.target.options.resize.invert,r="reposition"===n||"negate"===n;if(t){var i=e.dx,o=e.dy,s=this.resizeRects.start,a=this.resizeRects.current,u=this.resizeRects.restricted,c=this.resizeRects.delta,l=h(this.resizeRects.previous,u),f=t;if(this.target.options.resize.preserveAspectRatio){var d=this.resizeStartAspectRatio,t=this.prepared._linkedEdges;f.left&&f.bottom||f.right&&f.top?o=-i/d:f.left||f.right?o=i/d:(f.top||f.bottom)&&(i=o*d)}else this.target.options.resize.square&&(t=this.prepared._linkedEdges,f.left&&f.bottom||f.right&&f.top?o=-i:f.left||f.right?o=i:(f.top||f.bottom)&&(i=o));t.top&&(a.top+=o),t.bottom&&(a.bottom+=o),t.left&&(a.left+=i),t.right&&(a.right+=i),r?(h(u,a),"reposition"===n&&(u.top>u.bottom&&(t=u.top,u.top=u.bottom,u.bottom=t),u.left>u.right&&(t=u.left,u.left=u.right,u.right=t))):(u.top=Math.min(a.top,s.bottom),u.bottom=Math.max(a.bottom,s.top),u.left=Math.min(a.left,s.right),u.right=Math.max(a.right,s.left)),u.width=u.right-u.left,u.height=u.bottom-u.top;for(var p in u)c[p]=u[p]-l[p];e.edges=this.prepared.edges,e.rect=u,e.deltaRect=c}return this.target.fire(e),e},gestureStart:function(e){return e=new Y(this,e,"gesture","start",this.element),e.ds=0,this.gesture.startDistance=this.gesture.prevDistance=e.distance,this.gesture.startAngle=this.gesture.prevAngle=e.angle,this.gesture.scale=1,this.gesturing=!0,this.target.fire(e),e},gestureMove:function(e){return this.pointerIds.length?(e=new Y(this,e,"gesture","move",this.element),e.ds=e.scale-this.gesture.scale,this.target.fire(e),this.gesture.prevAngle=e.angle,this.gesture.prevDistance=e.distance,1/0===e.scale||null===e.scale||void 0===e.scale||isNaN(e.scale)||(this.gesture.scale=e.scale),e):this.prevEvent},pointerHold:function(e,t,n){this.collectEventTargets(e,t,n,"hold")},pointerUp:function(e,t,n,r){var i=this.mouse?0:ne(this.pointerIds,b(e));clearTimeout(this.holdTimers[i]),this.collectEventTargets(e,t,n,"up"),this.collectEventTargets(e,t,n,"tap"),this.pointerEnd(e,t,n,r),this.removePointer(e)},pointerCancel:function(e,t,n,r){var i=this.mouse?0:ne(this.pointerIds,b(e));clearTimeout(this.holdTimers[i]),this.collectEventTargets(e,t,n,"cancel"),this.pointerEnd(e,t,n,r),this.removePointer(e)},ie8Dblclick:function(e,t,n){this.prevTap&&t.clientX===this.prevTap.clientX&&t.clientY===this.prevTap.clientY&&n===this.prevTap.target&&(this.downTargets[0]=n,this.downTimes[0]=(new Date).getTime(),this.collectEventTargets(e,t,n,"tap"))},pointerEnd:function(e,t,n,r){var i=this.target,o=(m=i&&i.options)&&this.prepared.name&&m[this.prepared.name].inertia,s=this.inertiaStatus;if(this.interacting()){if(s.active&&!s.ending)return;var a,u=(new Date).getTime(),c=!1,l=j(i,this.prepared.name)&&m[this.prepared.name].snap.endOnly,f=F(i,this.prepared.name)&&m[this.prepared.name].restrict.endOnly,p=0,g=0,m=this.dragging?"x"===m.drag.axis?Math.abs(this.pointerDelta.client.vx):"y"===m.drag.axis?Math.abs(this.pointerDelta.client.vy):this.pointerDelta.client.speed:this.pointerDelta.client.speed,o=(a=o&&o.enabled&&"gesture"!==this.prepared.name&&t!==s.startEvent)&&50>u-this.curCoords.timeStamp&&m>o.minSpeed&&m>o.endSpeed;if(a&&!o&&(l||f)&&(a={},a.snap=a.restrict=a,l&&(this.setSnapping(this.curCoords.page,a),a.locked&&(p+=a.dx,g+=a.dy)),f&&(this.setRestriction(this.curCoords.page,a),a.restricted&&(p+=a.dx,g+=a.dy)),p||g)&&(c=!0),o||c)return d(s.upCoords,this.curCoords),this.pointers[0]=s.startEvent=new Y(this,t,this.prepared.name,"inertiastart",this.element),s.t0=u,i.fire(s.startEvent),o?(s.vx0=this.pointerDelta.client.vx,s.vy0=this.pointerDelta.client.vy,s.v0=m,this.calcInertia(s),t=h({},this.curCoords.page),i=I(i,this.element),t.x=t.x+s.xe-i.x,t.y=t.y+s.ye-i.y,i={useStatusXY:!0,x:t.x,y:t.y,dx:0,dy:0,snap:null},i.snap=i,p=g=0,l&&(t=this.setSnapping(this.curCoords.page,i)).locked&&(p+=t.dx,g+=t.dy),f&&(i=this.setRestriction(this.curCoords.page,i)).restricted&&(p+=i.dx,g+=i.dy),s.modifiedXe+=p,s.modifiedYe+=g,s.i=je(this.boundInertiaFrame)):(s.smoothEnd=!0,s.xe=p,s.ye=g,s.sx=s.sy=0,s.i=je(this.boundSmoothEndFrame)),void(s.active=!0);(l||f)&&this.pointerMove(e,t,n,r,!0)}this.dragging?(s=new Y(this,t,"drag","end",this.element),f=this.getDrop(s,t,this.element),this.dropTarget=f.dropzone,this.dropElement=f.element,(f=this.getDropEvents(t,s)).leave&&this.prevDropTarget.fire(f.leave),f.enter&&this.dropTarget.fire(f.enter),f.drop&&this.dropTarget.fire(f.drop),f.deactivate&&this.fireActiveDrops(f.deactivate),i.fire(s)):this.resizing?(s=new Y(this,t,"resize","end",this.element),i.fire(s)):this.gesturing&&(s=new Y(this,t,"gesture","end",this.element),i.fire(s)),this.stop(t)},collectDrops:function(e){var t,r=[],i=[];for(e=e||this.element,t=0;t<ye.length;t++)if(ye[t].options.drop.enabled){var o=ye[t];if(!(n(s=o.options.drop.accept)&&s!==e||c(s)&&!re(e,s)))for(var s=o.selector?o._context.querySelectorAll(o.selector):[o._element],a=0,u=s.length;a<u;a++){var l=s[a];l!==e&&(r.push(o),i.push(l))}}return{dropzones:r,elements:i}},fireActiveDrops:function(e){var t;for(t=0;t<this.activeDrops.dropzones.length;t++){var n=this.activeDrops.dropzones[t],r=this.activeDrops.elements[t];r!==i&&(e.target=r,n.fire(e));var i=r}},setActiveDrops:function(e){for(e=this.collectDrops(e,!0),this.activeDrops.dropzones=e.dropzones,this.activeDrops.elements=e.elements,this.activeDrops.rects=[],e=0;e<this.activeDrops.dropzones.length;e++)this.activeDrops.rects[e]=this.activeDrops.dropzones[e].getRect(this.activeDrops.elements[e])},getDrop:function(e,t,n){var r=[];we&&this.setActiveDrops(n);for(s=0;s<this.activeDrops.dropzones.length;s++){a=this.activeDrops.elements[s];r.push(this.activeDrops.dropzones[s].dropCheck(e,t,this.target,n,a,this.activeDrops.rects[s])?a:null)}n=(t=r[0])?0:-1;for(var i,o,s=[],a=1;a<r.length;a++)if((e=r[a])&&e!==t)if(t){if(e.parentNode!==e.ownerDocument)if(t.parentNode===e.ownerDocument)t=e,n=a;else{if(!s.length)for(i=t;i.parentNode&&i.parentNode!==i.ownerDocument;)s.unshift(i),i=i.parentNode;if(t instanceof de&&e instanceof le&&!(e instanceof he)){if(e===t.parentNode)continue;i=e.ownerSVGElement}else i=e;for(o=[];i.parentNode!==i.ownerDocument;)o.unshift(i),i=i.parentNode;for(i=0;o[i]&&o[i]===s[i];)i++;for(o=(i=[o[i-1],o[i],s[i]])[0].lastChild;o;){if(o===i[1]){t=e,n=a,s=[];break}if(o===i[2])break;o=o.previousSibling}}}else t=e,n=a;return r=n,{dropzone:this.activeDrops.dropzones[r]||null,element:this.activeDrops.elements[r]||null}},getDropEvents:function(e,t){return e={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null},this.dropElement!==this.prevDropElement&&(this.prevDropTarget&&(e.leave={target:this.prevDropElement,dropzone:this.prevDropTarget,relatedTarget:t.target,draggable:t.interactable,dragEvent:t,interaction:this,timeStamp:t.timeStamp,type:"dragleave"},t.dragLeave=this.prevDropElement,t.prevDropzone=this.prevDropTarget),this.dropTarget&&(e.enter={target:this.dropElement,dropzone:this.dropTarget,relatedTarget:t.target,draggable:t.interactable,dragEvent:t,interaction:this,timeStamp:t.timeStamp,type:"dragenter"},t.dragEnter=this.dropElement,t.dropzone=this.dropTarget)),"dragend"===t.type&&this.dropTarget&&(e.drop={target:this.dropElement,dropzone:this.dropTarget,relatedTarget:t.target,draggable:t.interactable,dragEvent:t,interaction:this,timeStamp:t.timeStamp,type:"drop"},t.dropzone=this.dropTarget),"dragstart"===t.type&&(e.activate={target:null,dropzone:null,relatedTarget:t.target,draggable:t.interactable,dragEvent:t,interaction:this,timeStamp:t.timeStamp,type:"dropactivate"}),"dragend"===t.type&&(e.deactivate={target:null,dropzone:null,relatedTarget:t.target,draggable:t.interactable,dragEvent:t,interaction:this,timeStamp:t.timeStamp,type:"dropdeactivate"}),"dragmove"===t.type&&this.dropTarget&&(e.move={target:this.dropElement,dropzone:this.dropTarget,relatedTarget:t.target,draggable:t.interactable,dragEvent:t,interaction:this,dragmove:t,timeStamp:t.timeStamp,type:"dropmove"},t.dropzone=this.dropTarget),e},currentAction:function(){return this.dragging&&"drag"||this.resizing&&"resize"||this.gesturing&&"gesture"||null},interacting:function(){return this.dragging||this.resizing||this.gesturing},clearTargets:function(){this.dropTarget=this.dropElement=this.prevDropTarget=this.prevDropElement=this.target=this.element=null},stop:function(e){if(this.interacting()){Se.stop(),this.matches=[],this.matchElements=[];var t=this.target;t.options.styleCursor&&(t._doc.documentElement.style.cursor=""),e&&s(e.preventDefault)&&this.checkAndPreventDefault(e,t,this.element),this.dragging&&(this.activeDrops.dropzones=this.activeDrops.elements=this.activeDrops.rects=null)}for(this.clearTargets(),this.pointerIsDown=this.snapStatus.locked=this.dragging=this.resizing=this.gesturing=!1,this.prepared.name=this.prevEvent=null,e=this.inertiaStatus.resumeDx=this.inertiaStatus.resumeDy=0;e<this.pointers.length;e++)-1===ne(this.pointerIds,b(this.pointers[e]))&&this.pointers.splice(e,1)},inertiaFrame:function(){var e=this.inertiaStatus,t=this.target.options[this.prepared.name].inertia.resistance,n=(new Date).getTime()/1e3-e.t0;if(n<e.te){if(n=1-(Math.exp(-t*n)-e.lambda_v0)/e.one_ve_v0,e.modifiedXe===e.xe&&e.modifiedYe===e.ye)e.sx=e.xe*n,e.sy=e.ye*n;else{var r=e.ye,i=e.modifiedYe;t=D(n,0,e.xe,e.modifiedXe),n=D(n,0,r,i),e.sx=t,e.sy=n}this.pointerMove(e.startEvent,e.startEvent),e.i=je(this.boundInertiaFrame)}else e.ending=!0,e.sx=e.modifiedXe,e.sy=e.modifiedYe,this.pointerMove(e.startEvent,e.startEvent),this.pointerEnd(e.startEvent,e.startEvent),e.active=e.ending=!1},smoothEndFrame:function(){var e=this.inertiaStatus,t=(new Date).getTime()-e.t0,n=this.target.options[this.prepared.name].inertia.smoothEndDuration;if(t<n){var r=t/n;e.sx=-e.xe*r*(r-2)+0,t/=n,e.sy=-e.ye*t*(t-2)+0,this.pointerMove(e.startEvent,e.startEvent),e.i=je(this.boundSmoothEndFrame)}else e.ending=!0,e.sx=e.xe,e.sy=e.ye,this.pointerMove(e.startEvent,e.startEvent),this.pointerEnd(e.startEvent,e.startEvent),e.smoothEnd=e.active=e.ending=!1},addPointer:function(e){var t=b(e),n=this.mouse?0:ne(this.pointerIds,t);return-1===n&&(n=this.pointerIds.length),this.pointerIds[n]=t,this.pointers[n]=e,n},removePointer:function(e){e=b(e),-1!==(e=this.mouse?0:ne(this.pointerIds,e))&&(this.pointers.splice(e,1),this.pointerIds.splice(e,1),this.downTargets.splice(e,1),this.downTimes.splice(e,1),this.holdTimers.splice(e,1))},recordPointer:function(e){var t=this.mouse?0:ne(this.pointerIds,b(e));-1!==t&&(this.pointers[t]=e)},collectEventTargets:function(e,t,r,i){var o=this.mouse?0:ne(this.pointerIds,b(e));if("tap"!==i||!this.pointerWasMoved&&this.downTargets[o]&&this.downTargets[o]===r){for(var s=[],a=[],u=r;u;)J.isSet(u)&&J(u)._iEvents[i]&&(s.push(J(u)),a.push(u)),ye.forEachSelector(function(e,t,o){o=se?o.querySelectorAll(t):void 0,e._iEvents[i]&&n(u)&&N(e,u)&&!M(e,u,r)&&B(e,u,r)&&re(u,t,o)&&(s.push(e),a.push(u))}),u=L(u);(s.length||"tap"===i)&&this.firePointers(e,t,r,s,a,i)}},firePointers:function(e,t,n,r,i,o){var s=this.mouse?0:ne(this.pointerIds,b(e)),a={};if("doubletap"===o?a=e:(f(a,t),t!==e&&f(a,e),a.preventDefault=$,a.stopPropagation=Y.prototype.stopPropagation,a.stopImmediatePropagation=Y.prototype.stopImmediatePropagation,a.interaction=this,a.timeStamp=(new Date).getTime(),a.originalEvent=t,a.originalPointer=e,a.type=o,a.pointerId=b(e),a.pointerType=this.mouse?"mouse":ke?c(e.pointerType)?e.pointerType:[,,"touch","pen","mouse"][e.pointerType]:"touch"),"tap"===o){a.dt=a.timeStamp-this.downTimes[s];var u=a.timeStamp-this.tapTime,l=!!(this.prevTap&&"doubletap"!==this.prevTap.type&&this.prevTap.target===a.target&&500>u);a.double=l,this.tapTime=a.timeStamp}for(e=0;e<r.length&&(a.currentTarget=i[e],a.interactable=r[e],r[e].fire(a),!(a.immediatePropagationStopped||a.propagationStopped&&i[e+1]!==a.currentTarget));e++);l?(r={},h(r,a),r.dt=u,r.type="doubletap",this.collectEventTargets(r,t,n,"doubletap"),this.prevTap=r):"tap"===o&&(this.prevTap=a)},validateSelector:function(e,t,n,r){for(var i=0,o=n.length;i<o;i++){var s=n[i],a=r[i],u=G(s.getAction(e,t,this,a),s);if(u&&P(s,a,u))return this.target=s,this.element=a,u}},setSnapping:function(e,t){var n,r=this.target.options[this.prepared.name].snap,i=[];if((t=t||this.snapStatus).useStatusXY)e={x:t.x,y:t.y};else{var o=I(this.target,this.element);(e=h({},e)).x-=o.x,e.y-=o.y}t.realX=e.x,t.realY=e.y,e.x-=this.inertiaStatus.resumeDx,e.y-=this.inertiaStatus.resumeDy;for(var u=r.targets?r.targets.length:0,c=0;c<this.snapOffsets.length;c++){var l=e.x-this.snapOffsets[c].x,f=e.y-this.snapOffsets[c].y;for(n=0;n<u;n++)(o=s(r.targets[n])?r.targets[n](l,f,this):r.targets[n])&&i.push({x:a(o.x)?o.x+this.snapOffsets[c].x:l,y:a(o.y)?o.y+this.snapOffsets[c].y:f,range:a(o.range)?o.range:r.range})}var r=null,c=!1,d=0,p=0;for(n=f=l=0,u=i.length;n<u;n++){var g=(o=i[n]).range,m=o.x-e.x,v=o.y-e.y,y=ge(m,v),b=y<=g;1/0===g&&c&&1/0!==p&&(b=!1),r&&!(b?c&&1/0!==g?y/g<d/p:1/0===g&&1/0!==p||y<d:!c&&y<d)||(1/0===g&&(b=!0),r=o,d=y,p=g,c=b,l=m,f=v,t.range=g)}return r?(i=t.snappedX!==r.x||t.snappedY!==r.y,t.snappedX=r.x,t.snappedY=r.y):(i=!0,t.snappedX=NaN,t.snappedY=NaN),t.dx=l,t.dy=f,t.changed=i||c&&!t.locked,t.locked=c,t},setRestriction:function(e,t){var r=this.target,i=r&&r.options[this.prepared.name].restrict,o=i&&i.restriction;return o?(t=t||this.restrictStatus,i=i=t.useStatusXY?{x:t.x,y:t.y}:h({},e),t.snap&&t.snap.locked&&(i.x+=t.snap.dx||0,i.y+=t.snap.dy||0),i.x-=this.inertiaStatus.resumeDx,i.y-=this.inertiaStatus.resumeDy,t.dx=0,t.dy=0,t.restricted=!1,c(o)&&!(o="parent"===o?L(this.element):"self"===o?r.getRect(this.element):O(this.element,o))?t:(s(o)&&(o=o(i.x,i.y,this.element)),n(o)&&(o=S(o)),(e=o)?"x"in o&&"y"in o?(r=Math.max(Math.min(e.x+e.width-this.restrictOffset.right,i.x),e.x+this.restrictOffset.left),e=Math.max(Math.min(e.y+e.height-this.restrictOffset.bottom,i.y),e.y+this.restrictOffset.top)):(r=Math.max(Math.min(e.right-this.restrictOffset.right,i.x),e.left+this.restrictOffset.left),e=Math.max(Math.min(e.bottom-this.restrictOffset.bottom,i.y),e.top+this.restrictOffset.top)):(r=i.x,e=i.y),t.dx=r-i.x,t.dy=e-i.y,t.changed=t.restrictedX!==r||t.restrictedY!==e,t.restricted=!(!t.dx&&!t.dy),t.restrictedX=r,t.restrictedY=e,t)):t},checkAndPreventDefault:function(e,t,n){if(t=t||this.target){var r=(t=t.options).preventDefault;"auto"===r&&n&&!/^(input|select|textarea)$/i.test(e.target.nodeName)?/down|start/i.test(e.type)&&"drag"===this.prepared.name&&"xy"!==t.drag.axis||t[this.prepared.name]&&t[this.prepared.name].manualStart&&!this.interacting()||e.preventDefault():"always"===r&&e.preventDefault()}},calcInertia:function(e){var t=this.target.options[this.prepared.name].inertia,n=t.resistance,r=-Math.log(t.endSpeed/e.v0)/n;e.x0=this.prevEvent.pageX,e.y0=this.prevEvent.pageY,e.t0=e.startEvent.timeStamp/1e3,e.sx=e.sy=0,e.modifiedXe=e.xe=(e.vx0-r)/n,e.modifiedYe=e.ye=(e.vy0-r)/n,e.te=r,e.lambda_v0=n/e.v0,e.one_ve_v0=1-t.endSpeed/e.v0},autoScrollMove:function(e){var t;if(t=this.interacting()){t=this.prepared.name;var n=this.target.options;/^resize/.test(t)&&(t="resize"),t=n[t].autoScroll&&n[t].autoScroll.enabled}if(t)if(this.inertiaStatus.active)Se.x=Se.y=0;else{var i=this.target.options[this.prepared.name].autoScroll,o=i.container||_(this.element);if(r(o)){var s=e.clientX<Se.margin;t=e.clientY<Se.margin,n=e.clientX>o.innerWidth-Se.margin,e=e.clientY>o.innerHeight-Se.margin}else o=x(o),s=e.clientX<o.left+Se.margin,t=e.clientY<o.top+Se.margin,n=e.clientX>o.right-Se.margin,e=e.clientY>o.bottom-Se.margin;Se.x=n?1:s?-1:0,Se.y=e?1:t?-1:0,Se.isScrolling||(Se.margin=i.margin,Se.speed=i.speed,Se.start(this))}},_updateEventTargets:function(e,t){this._eventTarget=e,this._curEventTarget=t}},Y.prototype={preventDefault:t,stopImmediatePropagation:function(){this.immediatePropagationStopped=this.propagationStopped=!0},stopPropagation:function(){this.propagationStopped=!0}};for(var qe={},He="dragStart dragMove resizeStart resizeMove gestureStart gestureMove pointerOver pointerOut pointerHover selectorDown pointerDown pointerMove pointerUp pointerCancel pointerEnd addPointer removePointer recordPointer autoScrollMove".split(" "),Ye=0,$e=He.length;Ye<$e;Ye++){var Ue=He[Ye];qe[Ue]=H(Ue)}ye.indexOfElement=function(e,t){t=t||ue;for(var n=0;n<this.length;n++){var r=this[n];if(r.selector===e&&r._context===t||!r.selector&&r._element===e)return n}return-1},ye.get=function(e,t){return this[this.indexOfElement(e,t&&t.context)]},ye.forEachSelector=function(e){for(var t=0;t<this.length;t++){var n=this[t];if(n.selector&&void 0!==(n=e(n,n.selector,n._context,t,this)))return n}},(Q.prototype={setOnEvents:function(e,t){return"drop"===e?(s(t.ondrop)&&(this.ondrop=t.ondrop),s(t.ondropactivate)&&(this.ondropactivate=t.ondropactivate),s(t.ondropdeactivate)&&(this.ondropdeactivate=t.ondropdeactivate),s(t.ondragenter)&&(this.ondragenter=t.ondragenter),s(t.ondragleave)&&(this.ondragleave=t.ondragleave),s(t.ondropmove)&&(this.ondropmove=t.ondropmove)):(e="on"+e,s(t.onstart)&&(this[e+"start"]=t.onstart),s(t.onmove)&&(this[e+"move"]=t.onmove),s(t.onend)&&(this[e+"end"]=t.onend),s(t.oninertiastart)&&(this[e+"inertiastart"]=t.oninertiastart)),this},draggable:function(e){return o(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^x$|^y$|^xy$/.test(e.axis)?this.options.drag.axis=e.axis:null===e.axis&&delete this.options.drag.axis,this):u(e)?(this.options.drag.enabled=e,this):this.options.drag},setPerAction:function(e,t){for(var n in t)n in xe[e]&&(o(t[n])?(this.options[e][n]=h(this.options[e][n]||{},t[n]),o(xe.perAction[n])&&"enabled"in xe.perAction[n]&&(this.options[e][n].enabled=!1!==t[n].enabled)):u(t[n])&&o(xe.perAction[n])?this.options[e][n].enabled=t[n]:void 0!==t[n]&&(this.options[e][n]=t[n]))},dropzone:function(e){return o(e)?(this.options.drop.enabled=!1!==e.enabled,this.setOnEvents("drop",e),/^(pointer|center)$/.test(e.overlap)?this.options.drop.overlap=e.overlap:a(e.overlap)&&(this.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(this.options.drop.accept=e.accept),"checker"in e&&(this.options.drop.checker=e.checker),this):u(e)?(this.options.drop.enabled=e,this):this.options.drop},dropCheck:function(e,t,n,r,i,o){c=!1;if(!(o=o||this.getRect(i)))return!!this.options.drop.checker&&this.options.drop.checker(e,t,c,this,i,n,r);var s=this.options.drop.overlap;if("pointer"===s){var u=v(e),c=I(n,r);u.x+=c.x,u.y+=c.y,c=u.x>o.left&&u.x<o.right,u=u.y>o.top&&u.y<o.bottom,c=c&&u}if(u=n.getRect(r),"center"===s)var c=u.left+u.width/2,l=u.top+u.height/2,c=c>=o.left&&c<=o.right&&l>=o.top&&l<=o.bottom;return a(s)&&(c=Math.max(0,Math.min(o.right,u.right)-Math.max(o.left,u.left))*Math.max(0,Math.min(o.bottom,u.bottom)-Math.max(o.top,u.top))/(u.width*u.height)>=s),this.options.drop.checker&&(c=this.options.drop.checker(e,t,c,this,i,n,r)),c},dropChecker:function(e){return s(e)?(this.options.drop.checker=e,this):null===e?(delete this.options.getRect,this):this.options.drop.checker},accept:function(e){return n(e)||l(e)?(this.options.drop.accept=e,this):null===e?(delete this.options.drop.accept,this):this.options.drop.accept},resizable:function(e){return o(e)?(this.options.resize.enabled=!1!==e.enabled,this.setPerAction("resize",e),this.setOnEvents("resize",e),/^x$|^y$|^xy$/.test(e.axis)?this.options.resize.axis=e.axis:null===e.axis&&(this.options.resize.axis=xe.resize.axis),u(e.preserveAspectRatio)?this.options.resize.preserveAspectRatio=e.preserveAspectRatio:u(e.square)&&(this.options.resize.square=e.square),this):u(e)?(this.options.resize.enabled=e,this):this.options.resize},squareResize:function(e){return u(e)?(this.options.resize.square=e,this):null===e?(delete this.options.resize.square,this):this.options.resize.square},gesturable:function(e){return o(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):u(e)?(this.options.gesture.enabled=e,this):this.options.gesture},autoScroll:function(e){return o(e)?e=h({actions:["drag","resize"]},e):u(e)&&(e={actions:["drag","resize"],enabled:e}),this.setOptions("autoScroll",e)},snap:function(e){return(e=this.setOptions("snap",e))===this?this:e.drag},setOptions:function(e,t){var n,r=t&&i(t.actions)?t.actions:["drag"];if(o(t)||u(t)){for(n=0;n<r.length;n++){var s=/resize/.test(r[n])?"resize":r[n];o(this.options[s])&&(s=this.options[s][e],o(t)?(h(s,t),s.enabled=!1!==t.enabled,"snap"===e&&("grid"===s.mode?s.targets=[J.createSnapGrid(h({offset:s.gridOffset||{x:0,y:0}},s.grid||{}))]:"anchor"===s.mode?s.targets=s.anchors:"path"===s.mode&&(s.targets=s.paths),"elementOrigin"in t&&(s.relativePoints=[t.elementOrigin]))):u(t)&&(s.enabled=t))}return this}for(t={},r=["drag","resize","gesture"],n=0;n<r.length;n++)e in xe[r[n]]&&(t[r[n]]=this.options[r[n]][e]);return t},inertia:function(e){return(e=this.setOptions("inertia",e))===this?this:e.drag},getAction:function(e,t,n,r){var i=this.defaultActionChecker(e,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,i,this,r,n):i},defaultActionChecker:X,actionChecker:function(e){return s(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker},getRect:function(e){return e=e||this._element,this.selector&&!n(e)&&(e=this._context.querySelector(this.selector)),S(e)},rectChecker:function(e){return s(e)?(this.getRect=e,this):null===e?(delete this.options.getRect,this):this.getRect},styleCursor:function(e){return u(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor},preventDefault:function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):u(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault},origin:function(e){return l(e)||o(e)?(this.options.origin=e,this):this.options.origin},deltaSource:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource},restrict:function(e){if(!o(e))return this.setOptions("restrict",e);for(var t,n=["drag","resize","gesture"],r=0;r<n.length;r++){var i=n[r];i in e&&(t=h({actions:[i],restriction:e[i]},e),t=this.setOptions("restrict",t))}return t},context:function(){return this._context},_context:ue,ignoreFrom:function(e){return l(e)||n(e)?(this.options.ignoreFrom=e,this):this.options.ignoreFrom},allowFrom:function(e){return l(e)||n(e)?(this.options.allowFrom=e,this):this.options.allowFrom},element:function(){return this._element},fire:function(e){if(!e||!e.type||-1===ne(Le,e.type))return this;var t,n="on"+e.type;if(e.type in this._iEvents){var r=this._iEvents[e.type],i=0;for(t=r.length;i<t&&!e.immediatePropagationStopped;i++)r[i](e)}if(s(this[n])&&this[n](e),e.type in Ne&&(r=Ne[e.type]))for(i=0,t=r.length;i<t&&!e.immediatePropagationStopped;i++)r[i](e);return this},on:function(e,t,n){var r;if(c(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i(e)){for(r=0;r<e.length;r++)this.on(e[r],t,n);return this}if(o(e)){for(r in e)this.on(r,e[r],t);return this}if("wheel"===e&&(e=Oe),n=!!n,-1!==ne(Le,e))e in this._iEvents?this._iEvents[e].push(t):this._iEvents[e]=[t];else if(this.selector){if(!_e[e])for(_e[e]={selectors:[],contexts:[],listeners:[]},r=0;r<ve.length;r++)Pe.add(ve[r],e,V),Pe.add(ve[r],e,Z,!0);for(r=(e=_e[e]).selectors.length-1;0<=r&&(e.selectors[r]!==this.selector||e.contexts[r]!==this._context);r--);-1===r&&(r=e.selectors.length,e.selectors.push(this.selector),e.contexts.push(this._context),e.listeners.push([])),e.listeners[r].push([t,n])}else Pe.add(this._element,e,t,n);return this},off:function(e,t,n){var r;if(c(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i(e)){for(r=0;r<e.length;r++)this.off(e[r],t,n);return this}if(o(e)){for(var s in e)this.off(s,e[s],t);return this}if(s=-1,n=!!n,"wheel"===e&&(e=Oe),-1!==ne(Le,e))(n=this._iEvents[e])&&-1!==(s=ne(n,t))&&this._iEvents[e].splice(s,1);else if(this.selector){var a=_e[e],u=!1;if(!a)return this;for(s=a.selectors.length-1;0<=s;s--)if(a.selectors[s]===this.selector&&a.contexts[s]===this._context){var l=a.listeners[s];for(r=l.length-1;0<=r;r--){var h=l[r][1];if(l[r][0]===t&&h===n){l.splice(r,1),l.length||(a.selectors.splice(s,1),a.contexts.splice(s,1),a.listeners.splice(s,1),Pe.remove(this._context,e,V),Pe.remove(this._context,e,Z,!0),a.selectors.length||(_e[e]=null)),u=!0;break}}if(u)break}}else Pe.remove(this._element,e,t,n);return this},set:function(e){o(e)||(e={}),this.options=h({},xe.base);var t,n=["drag","drop","resize","gesture"],r=["draggable","dropzone","resizable","gesturable"],i=h(h({},xe.perAction),e[s]||{});for(t=0;t<n.length;t++){var s=n[t];this.options[s]=h({},xe[s]),this.setPerAction(s,i),this[r[t]](e[s])}for(s="accept actionChecker allowFrom deltaSource dropChecker ignoreFrom origin preventDefault rectChecker styleCursor".split(" "),t=0,$e=s.length;t<$e;t++)n=s[t],this.options[n]=xe.base[n],n in e&&this[n](e[n]);return this},unset:function(){if(Pe.remove(this._element,"all"),c(this.selector))for(var e in _e)for(var t=_e[e];0<t.selectors.length;){t.selectors[0]===this.selector&&t.contexts[0]===this._context&&(t.selectors.splice(0,1),t.contexts.splice(0,1),t.listeners.splice(0,1),t.selectors.length||(_e[e]=null)),Pe.remove(this._context,e,V),Pe.remove(this._context,e,Z,!0);break}else Pe.remove(this,"all"),this.options.styleCursor&&(this._element.style.cursor="");return this.dropzone(!1),ye.splice(ne(ye,this),1),J}}).snap=K(Q.prototype.snap,"Interactable#snap is deprecated. See the new documentation for snapping at http://interactjs.io/docs/snapping"),Q.prototype.restrict=K(Q.prototype.restrict,"Interactable#restrict is deprecated. See the new documentation for resticting at http://interactjs.io/docs/restriction"),Q.prototype.inertia=K(Q.prototype.inertia,"Interactable#inertia is deprecated. See the new documentation for inertia at http://interactjs.io/docs/inertia"),Q.prototype.autoScroll=K(Q.prototype.autoScroll,"Interactable#autoScroll is deprecated. See the new documentation for autoScroll at http://interactjs.io/docs/#autoscroll"),Q.prototype.squareResize=K(Q.prototype.squareResize,"Interactable#squareResize is deprecated. See http://interactjs.io/docs/#resize-square"),Q.prototype.accept=K(Q.prototype.accept,"Interactable#accept is deprecated. use Interactable#dropzone({ accept: target }) instead"),Q.prototype.dropChecker=K(Q.prototype.dropChecker,"Interactable#dropChecker is deprecated. use Interactable#dropzone({ dropChecker: checkerFunction }) instead"),Q.prototype.context=K(Q.prototype.context,"Interactable#context as a method is deprecated. It will soon be a DOM Node instead"),J.isSet=function(e,t){return-1!==ye.indexOfElement(e,t&&t.context)},J.on=function(e,t,n){if(c(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i(e)){for(var r=0;r<e.length;r++)J.on(e[r],t,n);return J}if(o(e)){for(r in e)J.on(r,e[r],t);return J}return-1!==ne(Le,e)?Ne[e]?Ne[e].push(t):Ne[e]=[t]:Pe.add(ue,e,t,n),J},J.off=function(e,t,n){if(c(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i(e)){for(var r=0;r<e.length;r++)J.off(e[r],t,n);return J}if(o(e)){for(r in e)J.off(r,e[r],t);return J}if(-1===ne(Le,e))Pe.remove(ue,e,t,n);else{var s;e in Ne&&-1!==(s=ne(Ne[e],t))&&Ne[e].splice(s,1)}return J},J.enableDragging=K(function(e){return null!==e&&void 0!==e?(ze.drag=e,J):ze.drag},"interact.enableDragging is deprecated and will soon be removed."),J.enableResizing=K(function(e){return null!==e&&void 0!==e?(ze.resize=e,J):ze.resize},"interact.enableResizing is deprecated and will soon be removed."),J.enableGesturing=K(function(e){return null!==e&&void 0!==e?(ze.gesture=e,J):ze.gesture},"interact.enableGesturing is deprecated and will soon be removed."),J.eventTypes=Le,J.debug=function(){var e=be[0]||new W;return{interactions:be,target:e.target,dragging:e.dragging,resizing:e.resizing,gesturing:e.gesturing,prepared:e.prepared,matches:e.matches,matchElements:e.matchElements,prevCoords:e.prevCoords,startCoords:e.startCoords,pointerIds:e.pointerIds,pointers:e.pointers,addPointer:qe.addPointer,removePointer:qe.removePointer,recordPointer:qe.recordPointer,snap:e.snapStatus,restrict:e.restrictStatus,inertia:e.inertiaStatus,downTime:e.downTimes[0],downEvent:e.downEvent,downPointer:e.downPointer,prevEvent:e.prevEvent,Interactable:Q,interactables:ye,pointerIsDown:e.pointerIsDown,defaultOptions:xe,defaultActionChecker:X,actionCursors:De,dragMove:qe.dragMove,resizeMove:qe.resizeMove,gestureMove:qe.gestureMove,pointerUp:qe.pointerUp,pointerDown:qe.pointerDown,pointerMove:qe.pointerMove,pointerHover:qe.pointerHover,eventTypes:Le,events:Pe,globalEvents:Ne,delegatedEvents:_e,prefixedPropREs:We}},J.getPointerAverage=k,J.getTouchBBox=E,J.getTouchDistance=T,J.getTouchAngle=A,J.getElementRect=S,J.getElementClientRect=x,J.matchesSelector=re,J.closest=O,J.margin=K(function(e){return a(e)?(Ee=e,J):Ee},"interact.margin is deprecated. Use interact(target).resizable({ margin: number }); instead."),J.supportsTouch=function(){return Ce},J.supportsPointerEvent=function(){return ke},J.stop=function(e){for(var t=be.length-1;0<=t;t--)be[t].stop(e);return J},J.dynamicDrop=function(e){return u(e)?(we=e,J):we},J.pointerMoveTolerance=function(e){return a(e)?(Te=e,this):Te},J.maxInteractions=function(e){return a(e)?(Ie=e,this):Ie},J.createSnapGrid=function(e){return function(t,n){var r=0,i=0;return o(e.offset)&&(r=e.offset.x,i=e.offset.y),{x:Math.round((t-r)/e.x)*e.x+r,y:Math.round((n-i)/e.y)*e.y+i,range:e.range}}},te(ue),Re in Element.prototype&&s(Element.prototype[Re])||(se=function(e,t,n){n=n||e.parentNode.querySelectorAll(t),t=0;for(var r=n.length;t<r;t++)if(n[t]===e)return!0;return!1}),function(){for(var t=0,n=["ms","moz","webkit","o"],r=0;r<n.length&&!e.requestAnimationFrame;++r)je=e[n[r]+"RequestAnimationFrame"],Fe=e[n[r]+"CancelAnimationFrame"]||e[n[r]+"CancelRequestAnimationFrame"];je||(je=function(e){var n=(new Date).getTime(),r=Math.max(0,16-(n-t)),i=setTimeout(function(){e(n+r)},r);return t=n+r,i}),Fe||(Fe=function(e){clearTimeout(e)})}(),"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=J),exports.interact=J):"function"==typeof define&&define.amd?define("interact",function(){return J}):e.interact=J}}("undefined"==typeof window?void 0:window);var saveAs=saveAs||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},n=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,i=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},o=/constructor/i.test(e.HTMLElement),s=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},a=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},u=function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var i=e["on"+t[r]];if("function"==typeof i)try{i.call(e,n||e)}catch(e){s(e)}}},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},l=function(s,l,h){h||(s=c(s));var f,d=this,p="application/octet-stream"===s.type,g=function(){u(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return f=t().createObjectURL(s),void setTimeout(function(){n.href=f,n.download=l,i(n),g(),a(f),d.readyState=d.DONE});!function(){if(p&&o&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=n.result;e.location.href="data:attachment/file"+t.slice(t.search(/[,;]/)),d.readyState=d.DONE,g()},n.readAsDataURL(s),void(d.readyState=d.INIT)}f||(f=t().createObjectURL(s)),p?e.location.href=f:e.open(f,"_blank")||(e.location.href=f),d.readyState=d.DONE,g(),a(f)}()},h=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=c(e)),navigator.msSaveOrOpenBlob(e,t)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(e,t,n){return new l(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define([],function(){return saveAs}),background=null;var oddball={refresh:!1,hidememes:!1,ref:0,holiday:!1,esColor:0},payload={toggles:{SSSC_Enable:!1,SSSC_Long:!1,SSSC_Long_Minus70:!1,SSSC_Rezied:!1,AWSC_Enable:!0,AWSC_Long:!0,AWSC_Long_Minus70:!1,AWSC_Resized:!1,WSSC_Enable:!1},cropInfo:{order:{AWSC:1,SSSC:2,WSSW:3},customHeight:{AWSC:null,SSSC:null}},background:null,esColor:0},loadedBack=null,currentBGInfo=null,bgSaveInfo={url:null,images:[]},gAds=['<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6718897784778373" data-ad-slot="7589608163" data-ad-format="auto"></ins>','<ins class="adsbygoogle" style="display:inline-block;width:930px;height:180px" data-ad-client="ca-pub-6718897784778373" data-ad-slot="3019807768"></ins>','<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6718897784778373" data-ad-slot="4177836562"></ins>'],version="450",backgroundsList=["http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGBp7RJxO94PvF90-StAl5z5OYSUWTjFxbU02aQe-apwlFmMZUsfRmhkpsZu94EC595SOKo4TzXhQ","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhlssMAiXk4kwJ_MbbiZTIzc12VVfgOBKdipgm4D3E2vZA6Vo7m8bpffg6-vYLPLepsZ4si3kth","http://cdn.steamcommunity.com/economy/image/tlNaNU_g3XH6RFG0zV3r-w4fkIQLkNMxLoqCrim7o1x_WG3OFvybY1qdTUrrPaVxAwqJl17SkSklh5-2KLiiW3Jcfo4I9IhhW8ABTPJ3u3ZJWdXMA4zMc3zWjqk2rbMJLlYulAf_3TNY1hoX5SLlNQNfhsNQiM49edff9zD84FwwX23G","http://cdn.steamcommunity.com/economy/image/VIUbvgoMQo2PJ7q9EJSHpOzJ0Q9OfEzNW-lpp_RyzwOdjixFUxAEny_-pkM29Mku4dzIHBs-DtVQ5HS_9XHOBJCKPwVNGBedLqPqRS--1ymrj5RHRmBTjwzrMaPvMd0FytpsExZCFMMv5PcVOeOIY-CEwUdGYVaQB-w1o75iiwDSiSxN","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGAprVJxe94baMhhbP9Cl53v-NAXDzjSkON1D-cfLr3kQVgNZF_ckurx5tMuoxSXJ95SOK8Ro2GBQ","http://cdn.steamcommunity.com/economy/image/-L4j3a-QwWvDV8NCunNMtUDy6Wzr4M8rF5kQWF6VBBIxtRQm9oyHeWOO37ycEwI_Tefwf76ijTMclA1AX5YFFTyxB2bohJR7YtOTuoVZHDgHtKUv5_fQaUfESA1A0EcUYe5Tcbjalyk2loXgxVpALRq0qiSyq9Z_QstNAUbXQhN-shQu","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGBpLZBwO94bqZ81OmsWQso7bJOUWbqGxOF3mTBebr6wFBtYJ0tJEz0wpwe7dkGWJ95SOK5GoWH9w","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGBpbZIwO94OaYh0bOkDQ8oueUSV2bjSUaM3mWWfL36kQZhYMEucUjww55K6doGUZ95SOLfgjg9EA","http://cdn.steamcommunity.com/economy/image/Zp_2ZGvfczsLttxIS01TA97TPNUvr31733gPUq-rG6SvlMGfMsM1KatvwLZtLR2J08YlxnrtP2PUdRJKrqgao6KQ0t8syyYrqjKMsHRnA46ZlXmdJ7NiOYokVQK2vQqgr86Gxn2WcH7_J5TrNzEIm9PCK512tWtwin8AVrjrC_ngk8GX","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGBr7RNwu94b6kh1rL6XF9w7e5DAjG2FkeH1jSQKb37nVE0NpwqdRmmlptM5o8BCp95SOLQrFOUKA","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGApbZLxO94aKQo1-asX1kp6uZPUjzrHkeHgTDBfe-rxlljYJQqdkrxyMwb7Y0CDJ95SOIWw5bAzQ","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGApLZNyO94b6h_hej9DFQmu-ZHAjDlGEHW0TLHK-arklBlPZx8JkrxxJhI7t5eUJ95SOKYaskhXw","http://cdn.steamcommunity.com/economy/image/dIYw9S9LGCpyDKnFVrgkrMzK-kRrOxZqpsJ637JebAu9jQcOdldeONLVtTtw2Gomwd_jVz55VHKtz2fHs11tDLCJFE5oX00604j5PWmSdCGLjL8MYycJKPbFdY_9SyAKv4URADFTGGmDy7MxKJF8ZsHdugUyIwxloJ52iP5OLwjyigcG","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGApLZNyO94ZPIqg-f_CFwov7USBjSwFxLT1zeXfeuqwAQ3MZwnJ06gxpwfv4xUWp95SOIxq0nqrw","http://cdn.steamcommunity.com/economy/image/uzXhRtM1Nd4Zk79t4hni5AN5K_eXRTuezV1sdwb_qkNyPta9iilzzLlKo5PEeaxuDmwy5MIHeYbGUHFvB_yrRH86xf2UIWDOuBfvld0zsmlEP26_n1kk3JEMNCYe779HcWuf5cwqY8q5UPDNnmW-flNoZrDLXS3FmQFmd0m-7kU9Oda1","http://cdn.steamcommunity.com/economy/image/MtXlHWF55M17HMMx2SfBJ4qZL6wlCeqNr9IQKz3BiYD73tLmOGWi39vF38__R4-th4w2v3BLqJWk3w0zPMKIh_bawaYmbbHd2piTyeYNkarN32PkLBH1z_qBGnwrhsjcooXDvncztILd3ISSpA7I7drbPu4nFfTZ_I5BcyXTzNS02dLu","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhgvMAHiXlukAQqbbTsNjQ_K13EAqNbBaQ88lHuCCVku8Y3DI7ipOJTKwvq59eULepsZx-Fpjs_","http://cdn.steamcommunity.com/economy/image/rQ7gZXEkjBGjsMg5Or1BcBVCKtQ1VIJRd34bI95bCddkBdeeKDjKAwNp1Mcc3Q_6GFczx2AWwEl8cwY731gI0GkBxN42MNkBAjSYwQWXEf1SBG-SPkidEyN_R3bATEWAY1uWwWpliVJWdoOdFZQZv05SZpw6SM5ZI3xCIclNS4ArAteW","http://cdn.steamcommunity.com/economy/image/sfR45LDLPdnSVqFMYlp9cQm4slX0uzOZBphyVoa8NdZ4_08f6dd7y3KPvbJEOjP7BK2rRqH5cYENlW9Oh7800XX7XF_332jJc9LxtF1wLfxO_vUW-6Us2weZLlXJ_iOFLqBbEvvUO8sjwOa5T3ch7lT7ohWtoHiWUZkuAM33cII3-E8X","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1Ihts8gNiXk-xlYsNbO2Y241JFXGU6EIXqxipgvoWSVnscI2V4WzpO0CeF_ns4qTLepsZ5Tim8WM","http://cdn.steamcommunity.com/economy/image/egvugw4EkL-or6YqpmdFWcJHJDJKdJ7_fGF1MEKBDf6zANl4VxjWrQh2utSABwvTz1I9IR823Od3bGgoQ4IM-b4EyjhJEMWvCSv20plNFdSFAWB0RG-BvS41LDBUxUGq5QvLIxNIxfpZbb-I1EtOnpIAZHcUb9TzLWYoNVnFGq_8B9lw","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhgvMAHiXk6lAR9YrPjNDVlK1HDVvRfXvY58FjuDXZjscQ1VY7lo7kFe126vIbHLepsZ2INpctV","http://cdn.steamcommunity.com/economy/image/t86yq5cpAaCwRYDLpsptCA-CeBrTWQ_gZItT0UIsJa9-xYVQzjVHshCcnDWAqiOCApdhCYYbTfhvhk7JQy8kqHPBlhDQPVSwEcHQM5ngPYVIxDRT3UIQojjZDIAOazL-esvABoFmV7YRi55p37ZilQbAaAvbRBDpMN1ZhltvN_kxwoVY","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1Ihhs8kBiXk5yFh9ZbHtYTIxI1PHB_NdWa0-o1i5UCZkvMM1DILj875SeAW-ttaVLepsZ16V6HJk","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGApbVNxu94aaB6guT5WAsl6eYSUzS2GUnR0TfHKeiplgJsPZN_dUyrx8kbutpUXJ95SOI5AtY8rw","http://cdn.steamcommunity.com/economy/image/nIVT_Trkt6lru8Y-XYMADyTJmUx-lLnpv3UVJLllSKhVjmQGY_jxu8ti2sB7406FKdyAXyvW-_G0eAg8uGZJr1iKd0Z98OK5yj-WxmKpUIJjj94Nd4imq7sgHiSnclivA4B3DHek5biZKoCbdfkMlXSL1Ap92q6y4ihOffJ0D_saiWQO","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhjscMHiXlqkAUpN7rnY242dFOXBfhfDqBopVjtUSRluJ82AtPmp-5QK1-5ttCQLepsZ2Js7cg7","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhgtMEAiXk8kgMiMrXhNTJlJF2UWfcKBKM-plvtW3Fgu5U7UYK3pLlVKgvts4DBLepsZ5UWXj2j","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGBr7ZMx-94O_Ys17P4CFwivrRGXTblSxOA1z6Qcb37xVM2N8Undhrxw5lN7dhVUZ95SOKr6GN5Nw","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhntMUBiXk7wAUvbbezYGFlJVXAWfFYCKdvow3tCyMwvcI1V4S38b9ffAXntdPALepsZ5iNQ86u","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGAp7ZNwe94ZfMv2Of5CF8n7bMVVTDjH0eA1jSSLr73xwVtZpR4cBuqxZcc6NdeWp95SOKzz5hkZg","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhttccBiXk-lwd_NrvmZDUyK1ORWPNbDq1irFq-XHFm65A6VtLvorpTKA_utdPOLepsZylT2C2c","http://cdn.steamcommunity.com/economy/image/dJuUMJnFLLZMajdZDGbv28zXXoHdtSL2mKTkQ-iAp3y9kKPLwNlqpOyzK6cqBqFRwcJHkoj3YO6Tqflb6YOme7CUsIve0Xmm7e5noTNMv1aLmhvD16oiosT16UCnleIhusjgwIDee6KwpCmscEiwQJPCSMnU-G-qzfLvEqXD4jeWrZQ=","http://cdn.steamcommunity.com/economy/image/YUW2gparb2KJ3RQroMNoDdkJfDPS22EiXRPHMUQlIKqoToF5z7cpcCkECNWGoyaH1BxlIIeZIzpWHtopRSYhraVKkjnRvzpyKFlE05_pOICeTzx22MF-YA8Wm2ZbZDH_qBbDd4u0bnN1GQ-O3u00ldUYPHbRzCh_CESeNlIzYv_nSYFx","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1Ihhs8kBiXk4xlMuY7rhNTVmc1WSUKUGWK1ioA6-WXVisZ5mUoWzpuwDfwXpsYPCLepsZ3N1ARHC","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IhsvMgMiXk-yVgjZOLiY29jI1yUBfcLWqM49wvvXSM3up8xANWw9u5ecA3tsIqSLepsZxGYyNE_","http://cdn.steamcommunity.com/economy/image/4pqc9ZWgcwNGJ1N3QsQXNFrWVkTR0H1DkumAbaYiX5MrkasOzLw1Eeb-T4lkpFm-V8NPV4SSP1uZ5J11pyFelCaVuE7StCYT56MDj33uR7kdkBYB28piAcbo3W_tY02TKc7uUoK9chbk4h7Sa7kfrgaaQ1fdzjQbzrvcaL1iHpBklqsG","http://cdn.steamcommunity.com/economy/image/fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywUlj3Hz8JQD_k62zmnzAEbeQUdVBitsTVCj831QvuYDe0T1IllsMAAiXluwAJ9YbC3NGcyIAGXVfEMDaFqowm7XSVh6sNlB47n8-JVcVrrtdOTLepsZwltQqgs","http://cdn.steamcommunity.com/economy/image/UQntbeGsl5e7PBNvSM7QDulFJ9yl3JnXb_LAdawomKmYAtqWuLDRhRvlD5Furp6E5FA-z_Ce289k_91trSuZrpUGydamuMKHGrhDl3fkgIOuA2acqMeGlTmnkXa3aNqvz1ydnPrjlIVL_VnINeKJxeVVMM-uxdeLPvCaJbZqj_TXBdqe","http://cdn.steamcommunity.com/economy/image/8YYJSqNZlPbeDuryEvukYUnKw_vnKZq2CsA56PYd7MY4jT6x-kXS5H7X9gw0m-rrRN_a6LJr2K4BzSTw9x7twTWJLfHkTcHmf4q6Ci3R9OwOhoK77SmB7AzHNrrvV67Aa9B67b4SlLYpnKZSbtau-xGI1bPlYNfrXZJivblZtskphw==","http://cdn.steamcommunity.com/economy/image/U8721VM9p9C2v1o6cKJ4qEnGqnE7IoTQgZI-VTdwyTBeimAcIoxXpgK8bPeslY9pPJIvB5IWW2-452kaM8heLSRgleGApbNPwO94PqMp1rKsD14mvOUTVj2yF0DQgWWVe-b6lFI2ZpZ_IBnzkcsb79hSDJ95SOLwP2SMpQ"],donators=["76561198055336237","76561198369942542","76561198048498731","76561198028933492","76561198015966799","76561198120160633","76561198354093369","76561198111211059","76561198071282886","76561198083625927","76561198078940441","76561198047151845"],banners=[["donations.jpg","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YUNGXPRNGZPNL"],["noads.jpg","https://i.imgur.com/g9C38bN.gif"],["song.jpg","https://www.youtube.com/watch?v=r50JFfofHes"],["git.jpg","https://www.github.com/SAPIC/SAPIC"]],leftOffset={0:508,1:648,2:188,3:545},getCurDate=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1,r=e.getFullYear();return t<10&&(t="0"+t),n<10&&(n="0"+n),r+"-"+n+"-"+t+"_0000"},curDate=getCurDate(),ImagesNames={0:["#avatar","Avatar.png"],10:["#big1","Artwork_Middle.png"],11:["#r11","Artwork_Right_Top.png"],12:["#r12","Artwork_Right_Middle.png"],13:["#r13","Artwork_Right_Bottom.png"],20:["#big2","Screenshot_Middle.jpg"],21:["#r21","Screenshot_Right_Top.jpg"],22:["#r22","Screenshot_Right_Middle.jpg"],23:["#r23","Screenshot_Right_Bottom.jpg"],30:["#w1","Workshop_Left.png"],31:["#w1","Workshop_Middle_Left.png"],32:["#w1","Workshop_Middle_Right.png"],33:["#w1","Workshop_Right.png"]},randomBackground=function(){var e=backgroundsList[Math.floor(Math.random()*backgroundsList.length)];return"string"!=typeof e?(currentBGInfo=e,console.log(e.hls),e.steamUrl.replace("http://cdn.akamai.steamstatic.com/","https://steamcdn-a.akamaihd.net/")||"https://steam.design/image/"+e.url+".jpg"):(currentBGInfo=null,e)},randomBanner=function(){return banners[Math.floor(Math.random()*banners.length)]},rAdsCount=0;$(function(){"sapic.github.io"==window.location.hostname&&(window.location="https://steam.design/"+location.hash),isNaN(version)||$("#cache_text_val").val()!=version||$(".cache_text").hide(),null!==getParameterByName("base64")&&(payload=JSON.parse(atob(getParameterByName("base64"))),store.set("shared",!0),loadb64()),"undefined"!=typeof shareinfo&&(payload=JSON.parse(atob(shareinfo)),store.set("shared",!0),loadb64()),$("#customizeButton").click(function(){toggleCustomize()}),$("#customizeClose").click(function(){closeCustomize()}),$("#community_close").click(function(){closeCommunity()});var e=0;1==store.get("hide")&&(e=180,oddball.hidememes=!0,$("#hideBacksList").rotate({animateTo:180})),$("#hideBacksList").click(function(){oddball.hidememes=!oddball.hidememes,store.set("hide",oddball.hidememes),e+=180,$("#backsList").toggleClass("backsListHide"),$(this).rotate({animateTo:e})}),$("#refreshInventory").rotate({bind:{mouseover:function(){var e=0;oddball.ref=setInterval(function(){e+=3,$("#refreshInventory").rotate(e)},15)},click:function(){oddball.refresh=!0,refreshInventory()},mouseout:function(){!0!==oddball.refresh&&(clearInterval(oddball.ref),$("#refreshInventory").rotate({animateTo:0}))}}});var t=store.get("bgs");if(t)backgroundsList=t;else{var n=(new Date).getTime()+864e5;$.ajax("https://steam.design/bg.json").done(function(e){store.set("bgs",e,n),backgroundsList=e})}addArrows(),loginFunc(),setTimeout(function(){"undefined"==typeof fuckAdBlock&&noAds()},10);var r=null;null!==(r=window.localStorage.getItem("SteamId"))?($("#steamAuth").append('<a href="#logout"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJoAAAAXCAIAAAB8s8FGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACb5JREFUaN7tWolXU3cWfv9GZ6osAQyICgJqO60WhRqhQQIkRBBQDAQCRMIewirIMkgYQUAWlVVICgmbGAlbAZsAKg5Qp8hmQazkuNCiDuppmfvyksciY6shtHPGd+65597v993vd08+X4BzRBAEcaQ4pWec+RD/0wEmIkovKWl/zyhsZQv7E94e1b3x5d284pbw/CbOufrgvEZOwdXQkg5ulSxO0Jfwm+MfQnsB9oGJYCWSkpZ+viUwtmH324NXtys457NLgjR5X/v42MjwcH+N6CIzkuR12pR9wYxbYxVbv/s3Rf6PY4+2rwATwUokOSX1spwbU7cbgifeFSPehWW0qENryNG1Vtxzh39UTC8uLj598lje983o6J1fXr98PveEn82jRRoH5O+IFFris7xl478BasDRnvJ6brgxa9TtAhPBSoTLiyntCueCYbW7IEejoSpwJIC/++f5ude/vOLnJlC8LVx8LSkMc0bIwbGx7xaezcUk+LpEGgUWoo5G1ygVarBxq+XtmqBGHO0pr9+GG7MGFKiJvBgk4dSp4q7ACIFlpNAqEstCS1UhQJGwSssKURa8l2fzkw57m9U3VzyYmbp16zqDbUf3/+Tpox9n7k3QfXd7njYOKbNAB/EQWq5o1wTXi6M9ZQ05G7OG0BJMBCuR2PiEXCkjrNIivNIiDI/L6nzZIqrE+ofpUYXiAZXxWfs3Ta9eLcw+vP/0seL5/JMjjL25xckv5udSM046RxgGnDdDRS5bYlmlqW7XBDXhaE95HTfcmDWgABPBSoQXE8u/4h5SupOzMkKUAUVo7v6Fly9aOuq9gkgvFxampyYf3J+amb4HjqZlRARFubx8Nl9Syiez9f2yt61S4Kwlqw2O9pTfidNyuwK+xnKaA3BwY9aAAkwEK5EobnSKiMIuNoNfUJXZnF1sjhbKCCrcwS+MeP3rr+2dV1199s3OPpwYvzs+OgJZoZiNivGJiPMCX/MKTn8VpM/IMsUH1VJmq2MVuF4c7Sm/C6foWjT6U6mBtQSu9xXXbpY/nVes5lwwBxPBSiQ8MjL2Mol1fgf8dhqA5XxVzcrbwUmzn5t/dm96enJqinpsX3i896xidmJyYmp6qlXaRHY3k7TUjt8dYYdSHU4STvBNA5bpoJrLZdcCNeJoT/l9OUnVdLATMr5hZInt8D35ovJ58GgyS+yP0aAG5Mm8YvzBcP9IK4xL+ssx2r9fPhf15ME4fgQjAAIB8EX1kyXyx++FAkwEK5GQsLDQor3M7G1+2duZOduZaN6GFjnbvRK3D94ZuDsxOTA4OPT9yBVJg62LiQfLJvlMeAjX095tW0Ja0OTEZGPD14fciVSuESNzmx86qMqgsLxdE9SEoz3l9+YklqN2QsY3HJsZnnk0GVZkA4S+f7WCK1APTcgh4LRMmvrkZwUwr/aWQ5H5tT+AtV25IJLfyAUQRvzUOtBip2MzQ6vuhSK0eC9YiZzkcHwzLD1OET2SjY+nb2XwTeElg3wszSSnOOnu5L3r8t5umRxC1tff0iZlsl2pxz/3YpFKKvJuDw11dHQ4e+z5KlD/6CnjE5mmjExUQZX5K9s1QU042lN+X07cRRo4ARkD4y6hLSdvP054sfCsRJI6OC4fHJdBW3I1BSXkHwAvAcc1gdBxS3zl27LeO60YOHZ/CFooIMPp6jX4pqxsK7ASCQpiX6jM5iTQScf0KaEEeoyRWyLRPZ7I4jkMj05Iu3paOrsl7Z3N0raGZknTNWlbR3ePvK+3/1Zbe2dJSTGZbmHnr0uP3XIs1eR42lb4R7AU6SYr2jXB9eJoT/ldOLxCKtgDGQOxln3WGmeCnRebUnhF1PuKCew7s6mnDJiPf1IAjtMGR2XtN8TyYSkEhoxOD6HMNBPIOLi0RrqJV+pWsBJhsQIGvvv+5uBwfXMjO9LzIJ0YEEktKM2W3xyQdsvEzS21jRIIYV1TdY1YUFsnamhKz0wOCPZwZ9rYeuo5nNSnRRu5JxI9kohHk409kow9konqTFzZrglqwNGe8vtyzgoiwCFuHhXf8P7sBEQA/wsgyAalYBt2BL6eLvHFx9v6xI9/mkWRZGJ1yzmliEtDVymAwAFZ4EMLp5BB8I01iG6JW8BKhMn0k3Zfb++RtfXIO2T9Hdd7e/oH8opyXT2/5HD9BQ2ScqGoQii6VCUsF4orBDX046Qv6JvtA/ScQgguUYauPCO3OOKR+C1H4t6I3wOuF0d7yu/CyaqMWFz21HeWRuQ4Tz9UvYh3fxiKyHYGWtIFH7AHkNsjsla5CBuHGqMBH3QABDI2C3l6dgII6GyxDza4Yo34La6xRmAlwvDxaW7rbOnskbR31UnaappaBPAi1l05fSbZmrzVy9+poqahqKwKvEzJSLOhmBzw3OTA1nOJNKBFG1KjjWhcI3g7aVjBNYSCqkTQjBdvATXgaE95PTd844iRvA/8yCwPhzaxwOfR3Gxde6mma3CNXKIMwErkuLd3S5cMHAUvRaiXzdXiJjCvUtRYWF5hQzE7cy67oKzCN8jjU/LHtt6bHdj6lDADpzBDp3AD53BDZzRjBVo7rcxOvwN8b472lNd3wzfBgTsy/A0emRwMznDSfA3HUAJYiXh5eQVGeVSJRWCq+FqbsEECdpYJRBcqBdV1Eid3mxR+qjeLtsfhIxvvTfAbrCNH/zCHANmRQzgcTEAz2hIcg/XVQVBnwsp2TVATjvaU13HDjVmDQGbrg5UIjeZq50sgeRFOsJ06Zf3wlQs/PpuknY1tncL6xi8pOyuF1XauVp/T/nqIqUMO0l+KQD1ykJ6yVuZAtHBQ4ljGi7eAmnC0p7yOG27MGhD2fgZgJeLm5naQoWPP0j3I0BWIq4TiKmbQ0XMFZ9OzUg+QzcNj/ESNNZ+QN1sf3WTH1LX31wMm/GVi76/MLD07QNSFslYjylrJVwaOsHSVrZ7dClBV22E4eoVKDRNXjaCX6imvXroFG1k7/rh97HGcpfrQ7PFxnIluqLtsJWwZXbuVNHv8apyGiS/VaGvL2AxWInQ6HapDvjqHfHXtvUy/vdGVmsmjHt1PObLvzD8S+270Wh82/pvzX2yOAUcXCxJTl4QWOiTlFIpgBRM9WqJhBYYwdZYK1ZGOstZZwVdxVFeQ0Ct0MQ6KMHVIvsv0cSmmzn+JP3If9Gr1LSSmKg4pg6S8C1Vbtp6Kqf48lUc66s9WR/2Zqy9VXa2DK4OJYCWyc+dOGo0GDYTNic22bgYpWdyBob4b/+yNPhW019HgU+ePrD0+Ro8YH+LPG2AiWIn+7y9zc3MX9ePs7EyhUMhksr3ygQJaAF0+PH/uB0wEK/8DnOd2wTc99poAAAAASUVORK5CYII="></a>'),createInventory(r)):$("#steamAuth").append('<a href="https://steamcommunity.com/openid/login?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=checkid_setup&openid.return_to=http%3A%2F%2Fsteam.design%2Findex.html%23login&openid.realm=http%3A%2F%2Fsteam.design&openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select" class="name"><img src="https://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_01.png" width="129" height="25"></a>'),reloadImages(),$(window).bind("hashchange",function(){loginFunc(),reloadImages()}),$("#filterIn").bind("change paste keyup",function(){$(".itemHolder:not(.arrow)").css("display","none"),Enumerable.From($(".itemHolder:not(.arrow)")).Where(function(e){return-1!=e.attributes.alt.value.indexOf($("#filterIn").val().toLowerCase())}).Select().ToArray().forEach(function(e){$(e).css("display","block")})}),$("#goUrl").click(function(){var e=$("#urlIn").val();e.length>0?-1==e.indexOf("http")&&(currentBGInfo=null,e="https://"+e):e=randomBackground(),trackClick("goURLButton",e),window.location.href="#"+e}),interact(".resizable-awsc").resizable({axis:"y"}).on("resizemove",function(e){var t=e.target,n=parseFloat(t.style.height)+e.dy,r=n+75,i=$("#bgImgEl").height();if($("#cSize").css("height",r),payload.toggles.AWSC_Long)if(1==payload.toggles.AWSC_Long_Minus70){var o=n-70;$(".r1").css("height",o)}else $(".r1").css("height",n);n>=284&&n<=i-272&&(t.style.height=n+"px"),payload.cropInfo.customHeight.AWSC=n}).on("resizeend",function(){payload.toggles.AWSC_Resized=!0,$("#autoResize_AWSC").show(),$("#autoResize_AWSC").click(function(){$(".showcase_1").css("height",""),autoCropHeight_2(1),$("#autoResize_AWSC").hide(),closeCustomize()}),payload.toggles.SSSC_Long?autoCropHeight(2):CropImages()}),interact(".resizable-sssc").resizable({axis:"y"}).on("resizemove",function(e){var t=e.target,n=parseFloat(t.style.height)+e.dy,r=n+75,i=$("#bgImgEl").height();if($("#sssc").css("height",r),payload.toggles.SSSC_Long)if(1==payload.toggles.SSSC_Long_Minus70){var o=n-70;$(".r2").css("height",o)}else $(".r2").css("height",n);n>=284&&n<=i-272&&(t.style.height=n+"px"),payload.cropInfo.customHeight.SSSC=n}).on("resizeend",function(){payload.toggles.SSSC_Resized=!0,$("#autoResize_SSSC").show(),$("#autoResize_SSSC").click(function(){$(".showcase_2").css("height",""),autoCropHeight_2(2),$("#autoResize_SSSC").hide(),closeCustomize()}),payload.toggles.AWSC_Long?autoCropHeight(1):CropImages()}),$("#slFSize").on("change",function(){$("#hBig1").css("height",this.value),reloadImages()}),$("#slSSize").on("change",function(){$("#hBig2").css("height",this.value),reloadImages()}),$("#randomBG").click(function(){trackClick("randomBGButton"),window.location.href="#"+randomBackground()}),$("#getBg").click(function(){var e=currentBGInfo&¤tBGInfo.url?"https://steamcommunity.com/market/listings/"+currentBGInfo.url:"https://images.google.com/searchbyimage?image_url="+background;trackClick("getBGButton",e),window.open(e,"_newtab")}),$(".saveButton").click(function(){trackClick("getZIPButton",$(this).attr("href"))}),$("#version").html("Version #"+version),$("#openCustomizeButton").click(function(){trackClick("openCustomizeButton")}),new Clipboard(".copy-btn").on("success",function(e){var t=$("#copiedNotification");t.fadeIn("fast",function(){t.fadeOut("slow")}),e.clearSelection()})}),function($){for(var supportedCSS,supportedCSSOrigin,styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform MozTransform".split(" "),a=0;a<toCheck.length;a++)void 0!==styles[toCheck[a]]&&(supportedCSS=toCheck[a]);supportedCSS&&"T"==(supportedCSSOrigin=supportedCSS.replace(/[tT]ransform/,"TransformOrigin"))[0]&&(supportedCSSOrigin[0]="t"),eval('IE = "v"=="\v"'),jQuery.fn.extend({rotate:function(e){if(0!==this.length&&void 0!==e){"number"==typeof e&&(e={angle:e});for(var t=[],n=0,r=this.length;n<r;n++){var i=this.get(n);if(i.Wilq32&&i.Wilq32.PhotoEffect)i.Wilq32.PhotoEffect._handleRotation(e);else{var o=$.extend(!0,{},e),s=new Wilq32.PhotoEffect(i,o)._rootObj;t.push($(s))}}return t}},getRotateAngle:function(){for(var e=[0],t=0,n=this.length;t<n;t++){var r=this.get(t);r.Wilq32&&r.Wilq32.PhotoEffect&&(e[t]=r.Wilq32.PhotoEffect._angle)}return e},stopRotate:function(){for(var e=0,t=this.length;e<t;e++){var n=this.get(e);n.Wilq32&&n.Wilq32.PhotoEffect&&clearTimeout(n.Wilq32.PhotoEffect._timer)}}}),Wilq32=window.Wilq32||{},Wilq32.PhotoEffect=supportedCSS?function(e,t){e.Wilq32={PhotoEffect:this},this._img=this._rootObj=this._eventObj=e,this._handleRotation(t)}:function(e,t){if(this._img=e,this._onLoadDelegate=[t],this._rootObj=document.createElement("span"),this._rootObj.style.display="inline-block",this._rootObj.Wilq32={PhotoEffect:this},e.parentNode.insertBefore(this._rootObj,e),e.complete)this._Loader();else{var n=this;jQuery(this._img).bind("load",function(){n._Loader()})}},Wilq32.PhotoEffect.prototype={_setupParameters:function(e){this._parameters=this._parameters||{},"number"!=typeof this._angle&&(this._angle=0),"number"==typeof e.angle&&(this._angle=e.angle),this._parameters.animateTo="number"==typeof e.animateTo?e.animateTo:this._angle,this._parameters.step=e.step||this._parameters.step||null,this._parameters.easing=e.easing||this._parameters.easing||this._defaultEasing,this._parameters.duration="duration"in e?e.duration:e.duration||this._parameters.duration||1e3,this._parameters.callback=e.callback||this._parameters.callback||this._emptyFunction,this._parameters.center=e.center||this._parameters.center||["50%","50%"],"string"==typeof this._parameters.center[0]?this._rotationCenterX=parseInt(this._parameters.center[0],10)/100*this._imgWidth*this._aspectW:this._rotationCenterX=this._parameters.center[0],"string"==typeof this._parameters.center[1]?this._rotationCenterY=parseInt(this._parameters.center[1],10)/100*this._imgHeight*this._aspectH:this._rotationCenterY=this._parameters.center[1],e.bind&&e.bind!=this._parameters.bind&&this._BindEvents(e.bind)},_emptyFunction:function(){},_defaultEasing:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},_handleRotation:function(e,t){supportedCSS||this._img.complete||t?(this._setupParameters(e),this._angle==this._parameters.animateTo?this._rotate(this._angle):this._animateStart()):this._onLoadDelegate.push(e)},_BindEvents:function(e){if(e&&this._eventObj){if(this._parameters.bind){var t=this._parameters.bind;for(var n in t)t.hasOwnProperty(n)&&jQuery(this._eventObj).unbind(n,t[n])}this._parameters.bind=e;for(var n in e)e.hasOwnProperty(n)&&jQuery(this._eventObj).bind(n,e[n])}},_Loader:IE?function(){var e=this._img.width,t=this._img.height;this._imgWidth=e,this._imgHeight=t,this._img.parentNode.removeChild(this._img),this._vimage=this.createVMLNode("image"),this._vimage.src=this._img.src,this._vimage.style.height=t+"px",this._vimage.style.width=e+"px",this._vimage.style.position="absolute",this._vimage.style.top="0px",this._vimage.style.left="0px",this._aspectW=this._aspectH=1,this._container=this.createVMLNode("group"),this._container.style.width=e,this._container.style.height=t,this._container.style.position="absolute",this._container.style.top="0px",this._container.style.left="0px",this._container.setAttribute("coordsize",e-1+","+(t-1)),this._container.appendChild(this._vimage),this._rootObj.appendChild(this._container),this._rootObj.style.position="relative",this._rootObj.style.width=e+"px",this._rootObj.style.height=t+"px",this._rootObj.setAttribute("id",this._img.getAttribute("id")),this._rootObj.className=this._img.className,this._eventObj=this._rootObj;for(var n;n=this._onLoadDelegate.shift();)this._handleRotation(n,!0)}:function(){this._rootObj.setAttribute("id",this._img.getAttribute("id")),this._rootObj.className=this._img.className,this._imgWidth=this._img.naturalWidth,this._imgHeight=this._img.naturalHeight;var e=Math.sqrt(this._imgHeight*this._imgHeight+this._imgWidth*this._imgWidth);this._width=3*e,this._height=3*e,this._aspectW=this._img.offsetWidth/this._img.naturalWidth,this._aspectH=this._img.offsetHeight/this._img.naturalHeight,this._img.parentNode.removeChild(this._img),this._canvas=document.createElement("canvas"),this._canvas.setAttribute("width",this._width),this._canvas.style.position="relative",this._canvas.style.left=-this._img.height*this._aspectW+"px",this._canvas.style.top=-this._img.width*this._aspectH+"px",this._canvas.Wilq32=this._rootObj.Wilq32,this._rootObj.appendChild(this._canvas),this._rootObj.style.width=this._img.width*this._aspectW+"px",this._rootObj.style.height=this._img.height*this._aspectH+"px",this._eventObj=this._canvas,this._cnv=this._canvas.getContext("2d");for(var t;t=this._onLoadDelegate.shift();)this._handleRotation(t,!0)},_animateStart:function(){this._timer&&clearTimeout(this._timer),this._animateStartTime=+new Date,this._animateStartAngle=this._angle,this._animate()},_animate:function(){var e=+new Date,t=e-this._animateStartTime>this._parameters.duration;if(t&&!this._parameters.animatedGif)clearTimeout(this._timer);else{if(this._canvas||this._vimage||this._img){var n=this._parameters.easing(0,e-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration);this._rotate(~~(10*n)/10)}this._parameters.step&&this._parameters.step(this._angle);var r=this;this._timer=setTimeout(function(){r._animate.call(r)},10)}this._parameters.callback&&t&&(this._angle=this._parameters.animateTo,this._rotate(this._angle),this._parameters.callback.call(this._rootObj))},_rotate:function(){var e=Math.PI/180;return IE?function(e){this._angle=e,this._container.style.rotation=e%360+"deg",this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px",this._vimage.style.left=-(this._rotationCenterX-this._imgWidth/2)+"px",this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px",this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"}:supportedCSS?function(e){this._angle=e,this._img.style[supportedCSS]="rotate("+e%360+"deg)",this._img.style[supportedCSSOrigin]=this._parameters.center.join(" ")}:function(t){this._angle=t,t=t%360*e,this._canvas.width=this._width,this._canvas.height=this._height,this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH),this._cnv.translate(this._rotationCenterX,this._rotationCenterY),this._cnv.rotate(t),this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY),this._cnv.scale(this._aspectW,this._aspectH),this._cnv.drawImage(this._img,0,0)}}()},IE&&(Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{return!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<rvml:"+e+' class="rvml">')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}())}(jQuery),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Clipboard=e()}}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=function(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},{}],2:[function(e,t,n){function r(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=e("./closest");t.exports=function(e,t,n,i,o){var s=r.apply(this,arguments);return e.addEventListener(n,s,o),{destroy:function(){e.removeEventListener(n,s,o)}}}},{"./closest":1}],3:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],4:[function(e,t,n){function r(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return a(document.body,e,t,n)}var s=e("./is"),a=e("delegate");t.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return r(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(e,t,n){t.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},{}],6:[function(e,t,n){function r(){}r.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){i.off(e,r),t.apply(n,arguments)}var i=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,s=r.length;o<s;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},t.exports=r},{}],7:[function(e,t,n){!function(r,i){if(void 0!==n)i(t,e("select"));else{var o={exports:{}};i(o,r.select),r.clipboardAction=o.exports}}(this,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s})},{select:5}],8:[function(e,t,n){!function(r,i){if(void 0!==n)i(t,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var o={exports:{}};i(o,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=o.exports}}(this,function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var c=i(t),l=i(n),h=i(r),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(e,n){o(this,t);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return a(t,l.default),d(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,h.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();e.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});