PageSourceSearch

https://www.cameralux.ee/templates/cameralux_slim/english/scripts/cache_models-last.3dc27407925d0eb6.js

js cameralux.ee collected 2026-10-06 04:18:53 UTC 455,356 bytes, 137 lines download raw bytes

1/*! URI.js v1.16.1 http://medialize.github.io/URI.js/ */
2function LiveVideoFeed(e,t){var n=e.extend({},t);function i(e,t,n,i){var o=n;void 0===o&&(o=(o=t.replace("rtmp://",location.protocol+"//")).substring(0,o.substring(8).search(/(:\d)|\//)+8)+"/templates/galleries/");var s=e.substring(5);return s.length>3&&(s=s.substring(0,3)+"/"+s),o.endsWith(s)||(o+=s),o+="/"+i}function o(e,t,n,i,o){var r=e.find(t.link_rsel),a=e.find(t.thumbnail_rsel),l=e.data("identity"),c=e.data("servuri")||location.protocol+"//"+document.location.host+":1935/webvideo/"+l,u=e.data("galleryContext"),h=0!=r.length?r[0].href:document.location.href;s(a,l,c,e,t,h,n,i,o,u),t.handler_rsel&&e.find(t.handler_rsel).on("mouseleave",function(){a.trigger("mouseleave.LiveVideoFeed")})}function s(t,n,o,s,a,l,c,u,h,d){if(!(t.find("#lvfContainer").length>0)){if(c){var p=a.leavecontainer_rsel?s.find(a.leavecontainer_rsel):t;t.off("mouseleave.LiveVideoFeed"),t.on("mouseleave.LiveVideoFeed",function(){var n=arguments.callee;e(document).on("mousemove.LiveVideoFeed",function(i){var o=p.offset(),s=p.innerWidth(),a=p.innerHeight();(i.pageX<o.left||i.pageX>=o.left+s||i.pageY<o.top||i.pageY>=o.top+a)&&(t.off("mouseleave.LiveVideoFeed",n),e(document).off("mousemove.LiveVideoFeed",arguments.callee),r(t.find("#lvfContainer")))})})}var f=e('<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; pointer-events: none" id="lvfContainer"></div>').appendTo(t);-1!=o.indexOf("vidclients.proxinity.net")?function(t,n,i){jQuery.ajax({type:"GET",url:"//m.camplace.com/stream/prev.php?previewToken="+n,xhrFields:{withCredentials:!1},crossDomain:!0,dataType:"json"}).success(function(o){o.Success&&(t.css({"background-color":"#000",display:"flex"}),e('<img src="'+o.PreviewLocation+".jpg?t="+Date.now()+'" style="display:block;margin:auto;max-width:100%;max-height:100%" />').appendTo(t).data("img-base",o.PreviewLocation+".jpg").on("click",function(){document.location.href=i}).on("load",function(){e(this).attr("src",e(this).data("img-base")+"?t="+Date.now())}),t.data("camplace",n))})}(f,n,l):(f.css({"background-image":'url("'+i(n,o,d,"-1_"+f.width()+"x"+f.height()+".jpg?nc="+(new Date).getTime())+'"), '+f.css("background-image"),"background-size":"100% 100%, "+f.css("background-size"),"background-repeat":"no-repeat, "+f.css("background-repeat")}),function(t,n,i,o,s){!function n(){var a=e('<video preload="auto" muted="muted" autoplay="autoplay" style="width: 100%; height: 100%; cursor: pointer; display: none; background-color: #000"></video>').appendTo(t);a.on("ended",function(){(new Date).getTime()-this.src.match(/\?nc=(.*)$/)[1]>3e3?n():this.play()}).on("error",function(){r(t),"function"==typeof s&&s()}).on("play",function(){e(this).css("display","block"),t.find("video").not(this).remove()}).on("contextmenu",function(){return!1}).on("click",function(){document.location.href=o}).on("canplay",function(){this.play()}),a[0].src=i+"?nc="+(new Date).getTime(),a[0].load()}()}(f,0,i(n,o,d,"-1.mp4"),l,h))}}function r(e){e.remove()}this.hideVideoFeed=r,this.showVideoFeed=s,this.showVideoFeedBox=o,this.run=function(t){(t=e.extend({},n,t)).autoStartCount||n.autoStartCount,t.autoStartDuration||n.autoStartDuration;var i=void 0===t.streamType?2:t.streamType;e(t.boxes_sel||n.boxes_sel).filter("[data-identity]").each(function(){var s=e(this),r=null;s.find(t.handler_rsel||t.thumbnail_rsel||n.thumbnail_rsel).on("mouseenter",function(){clearTimeout(r),r=setTimeout(function(){o(s,t,!0,i,void 0)},300)}).on("mouseleave.showVideoFeed_throttle",function(){clearTimeout(r),r=null})})}}function changeTextFieldFromSelect(e,t){var n=e.options[e.selectedIndex].value;t.value="#"==n?"":n}function changeSelectFromTextField(e,t){for(var n=0;n<t.options.length;n++)if(t.options[n].value.toLowerCase()==e.value.toLowerCase())return void(t.selectedIndex=n);t.selectedIndex=0,0==e.value.length&&(e.value=t.options[t.selectedIndex].value)}function updateValuesByFieldName(e,t,n){for(var i=0;i<e.elements.length;i++)0==e.elements[i].name.indexOf(n)&&(e.elements[i].value=t)}function onWithdrawTypeChanged(e,t){var n,i=document.getElementsByName(t),o=e.options[e.selectedIndex].value;for(n=0;n<i.length;n++){var s=i[n].getAttribute("withdraw");null!=s&&(i[n].style.display=s==o?"":"none")}}function showNextUploadFile(e,t){var n=document.getElementById(e),i=document.getElementById(t);n.style.display="",i.style.visibility="hidden"}function setBits(e,t){return e|t}function clearBits(e,t){return e&~t}function allBitsSet(e,t){return(e&t)==t}function anyBitsSet(e,t){return(e&t)>0}
2function setupCheckboxBits(e,t,n){t.checked?e.value=setBits(e.value,n):e.value=clearBits(e.value,n)}!function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.IPv6=t(e)}(this,function(e){var t=e&&e.IPv6;return{best:function(e){var t,n=(e=e.toLowerCase().split(":")).length,i=8;for(""===e[0]&&""===e[1]&&""===e[2]?(e.shift(),e.shift()):""===e[0]&&""===e[1]?e.shift():""===e[n-1]&&""===e[n-2]&&e.pop(),-1!==e[(n=e.length)-1].indexOf(".")&&(i=7),t=0;t<n&&""!==e[t];t++);if(t<i)for(e.splice(t,1,"0000");e.length<i;)e.splice(t,0,"0000");for(t=0;t<i;t++){n=e[t].split("");for(var o=0;3>o&&("0"===n[0]&&1<n.length);o++)n.splice(0,1);e[t]=n.join("")}n=-1;var s=o=0,r=-1,a=!1;for(t=0;t<i;t++)a?"0"===e[t]?s+=1:(a=!1,s>o&&(n=r,o=s)):"0"===e[t]&&(a=!0,r=t,s=1);for(s>o&&(n=r,o=s),1<o&&e.splice(n,o,""),n=e.length,i="",""===e[0]&&(i=":"),t=0;t<n&&(i+=e[t],t!==n-1);t++)i+=":";return""===e[n-1]&&(i+=":"),i},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}),function(e){function t(e){throw RangeError(y[e])}function n(e,t){for(var n=e.length;n--;)e[n]=t(e[n]);return e}function i(e,t){return n(e.split(v),t).join(".")}function o(e){for(var t,n,i=[],o=0,s=e.length;o<s;)55296<=(t=e.charCodeAt(o++))&&56319>=t&&o<s?56320==(64512&(n=e.charCodeAt(o++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--):i.push(t);return i}function s(e){return n(e,function(e){var t="";return 65535<e&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+w(e)}).join("")}function r(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function a(e,t,n){var i=0;for(e=n?b(e/700):e>>1,e+=b(e/t);455<e;i+=36)e=b(e/35);return b(i+36*e/(e+38))}function l(e){var n,i,o,r,l,c,u=[],h=e.length,d=0,p=128,f=72;for(0>(i=e.lastIndexOf("-"))&&(i=0),o=0;o<i;++o)128<=e.charCodeAt(o)&&t("not-basic"),u.push(e.charCodeAt(o));for(i=0<i?i+1:0;i<h;){for(o=d,n=1,r=36;i>=h&&t("invalid-input"),(36<=(l=10>(l=e.charCodeAt(i++))-48?l-22:26>l-65?l-65:26>l-97?l-97:36)||l>b((2147483647-d)/n))&&t("overflow"),d+=l*n,!(l<(c=r<=f?1:r>=f+26?26:r-f));r+=36)n>b(2147483647/(l=36-c))&&t("overflow"),n*=l;f=a(d-o,n=u.length+1,0==o),b(d/n)>2147483647-p&&t("overflow"),p+=b(d/n),d%=n,u.splice(d++,0,p)}return s(u)}function c(e){var n,i,s,l,c,u,h,d,p,f,g,m,v=[];for(f=(e=o(e)).length,n=128,i=0,c=72,u=0;u<f;++u)128>(p=e[u])&&v.push(w(p));for((s=l=v.length)&&v.push("-");s<f;){for(h=2147483647,u=0;u<f;++u)(p=e[u])>=n&&p<h&&(h=p);for(h-n>b((2147483647-i)/(g=s+1))&&t("overflow"),i+=(h-n)*g,n=h,u=0;u<f;++u)if((p=e[u])<n&&2147483647<++i&&t("overflow"),p==n){for(d=i,h=36;!(d<(p=h<=c?1:h>=c+26?26:h-c));h+=36)m=d-p,d=36-p,v.push(w(r(p+m%d,0))),d=b(m/d);v.push(w(r(d,0))),c=a(i,g,s==l),i=0,++s}++i,++n}return v.join("")}var u="object"==typeof exports&&exports,h="object"==typeof module&&module&&module.exports==u&&module,d="object"==typeof global&&global;d.global!==d&&d.window!==d||(e=d);var p,f,g=/^xn--/,m=/[^ -~]/,v=/\x2E|\u3002|\uFF0E|\uFF61/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=Math.floor,w=String.fromCharCode;if(p={version:"1.2.3",ucs2:{decode:o,encode:s},decode:l,encode:c,toASCII:function(e){return i(e,function(e){return m.test(e)?"xn--"+c(e):e})},toUnicode:function(e){return i(e,function(e){return g.test(e)?l(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return p});else if(u&&!u.nodeType)if(h)h.exports=p;else for(f in p)p.hasOwnProperty(f)&&(u[f]=p[f]);else e.punycode=p}(this),function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.SecondLevelDomains=t(e)}(this,function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" c
2om edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk d
2p edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch "},has:function(e){var t=e.lastIndexOf(".");if(0>=t||t>=e.length-1)return!1;var i=e.lastIndexOf(".",t-1);if(0>=i||i>=t-1)return!1;var o=n.list[e.slice(t+1)];return!!o&&0<=o.indexOf(" "+e.slice(i+1,t)+" ")},is:function(e){var t=e.lastIndexOf(".");if(0>=t||t>=e.length-1||0<=e.lastIndexOf(".",t-1))return!1;var i=n.list[e.slice(t+1)];return!!i&&0<=i.indexOf(" "+e.slice(0,t)+" ")},get:function(e){var t=e.lastIndexOf(".");if(0>=t||t>=e.length-1)return null;var i=e.lastIndexOf(".",t-1);if(0>=i||i>=t-1)return null;var o=n.list[e.slice(t+1)];return!o||0>o.indexOf(" "+e.slice(i+1,t)+" ")?null:e.slice(i+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}),function(e,t){"object"==typeof exports?module.exports=t(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)}(this,function(e,t,n,i){function o(e,t){var n=1<=arguments.length;if(!(this instanceof o))return n?2<=arguments.length?new o(e,t):new o(e):new o;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}return this.href(e),void 0!==t?this.absoluteTo(t):this}function s(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function r(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function a(e){return"Array"===r(e)}function l(e,t){var n,i,o={};if("RegExp"===r(t))o=null;else if(a(t))for(n=0,i=t.length;n<i;n++)o[t[n]]=!0;else o[t]=!0;for(n=0,i=e.length;n<i;n++)(o&&void 0!==o[e[n]]||!o&&t.test(e[n]))&&(e.splice(n,1),i--,n--);return e}function c(e,t){var n,i;if(a(t)){for(n=0,i=t.length;n<i;n++)if(!c(e,t[n]))return!1;return!0}var o=r(t);for(n=0,i=e.length;n<i;n++)if("RegExp"===o){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function u(e,t){if(!a(e)||!a(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return escape(e)}function d(e){return encodeURIComponent(e).replace(/[!'()*]/g,h).replace(/\*/g,"%2A")}function p(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function f(e,t){return function(n,i){return void 0===n?this._parts[e]||"":(null!==n&&((n+="").charAt(0)===t&&(n=n.substring(1))),this._parts[e]=n,this.build(!i),this)}}var g=i&&i.URI;o.version="1.16.1";var m=o.prototype,v=Object.prototype.hasOwnProperty;o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\.-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();return"input"===t&&"image"!==e.type?void 0:o.domAttributes[t]}},o.encode=d,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=d,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var n=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var y,b={encode:"encode",decode:"decode"},w=function(e,t){return function(n){try{return o[t](n+"").replace(o.characters[e][t].expression,function(n){return o.characters[e][t].map[n]})}catch(e){return n}}};for(y in b)o[y+"PathSegment"]=w("pathname",b[y]),o[y+"UrnPathSegment"]=w("ur
2npath",b[y]);b=function(e,t,n){return function(i){var s;s=n?function(e){return o[t](o[n](e))}:o[t];for(var r=0,a=(i=(i+"").split(e)).length;r<a;r++)i[r]=s(i[r]);return i.join(e)}},o.decodePath=b("/","decodePathSegment"),o.decodeUrnPath=b(":","decodeUrnPathSegment"),o.recodePath=b("/","encodePathSegment","decode"),o.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),o.encodeReserved=w("reserved","encode"),o.parse=function(e,t){var n;return t||(t={}),-1<(n=e.indexOf("#"))&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),-1<(n=e.indexOf("?"))&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):-1<(n=e.indexOf(":"))&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3)?(e=e.substring(n+3),e=o.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){var n,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,i)||null,"/"===t.port&&(t.port=null);else{var o=e.indexOf(":");n=e.indexOf("/"),-1!==(o=e.indexOf(":",o+1))&&(-1===n||o<n)?(t.hostname=e.substring(0,i)||null,t.port=null):(n=e.substring(0,i).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),e.substring(i)||"/"},o.parseAuthority=function(e,t){return e=o.parseUserinfo(e,t),o.parseHost(e,t)},o.parseUserinfo=function(e,t){var n=e.indexOf("/"),i=e.lastIndexOf("@",-1<n?n:e.length-1);return-1<i&&(-1===n||i<n)?(n=e.substring(0,i).split(":"),t.username=n[0]?o.decode(n[0]):null,n.shift(),t.password=n[0]?o.decode(n.join(":")):null,e=e.substring(i+1)):(t.username=null,t.password=null),e},o.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,i,s={},r=e.split("&"),a=r.length,l=0;l<a;l++)n=r[l].split("="),i=o.decodeQuery(n.shift(),t),n=n.length?o.decodeQuery(n.join("="),t):null,v.call(s,i)?("string"!=typeof s[i]&&null!==s[i]||(s[i]=[s[i]]),s[i].push(n)):s[i]=n;return s},o.build=function(e){var t="";return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//"),t+=o.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&"string"==typeof e.hostname&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},o.buildHost=function(e){var t="";return e.hostname?(t=o.ip6_expression.test(e.hostname)?t+"["+e.hostname+"]":t+e.hostname,e.port&&(t+=":"+e.port),t):""},o.buildAuthority=function(e){return o.buildUserinfo(e)+o.buildHost(e)},o.buildUserinfo=function(e){var t="";return e.username&&(t+=o.encode(e.username),e.password&&(t+=":"+o.encode(e.password)),t+="@"),t},o.buildQuery=function(e,t,n){var i,s,r,l,c="";for(s in e)if(v.call(e,s)&&s)if(a(e[s]))for(i={},r=0,l=e[s].length;r<l;r++)void 0!==e[s][r]&&void 0===i[e[s][r]+""]&&(c+="&"+o.buildQueryParameter(s,e[s][r],n),!0!==t&&(i[e[s][r]+""]=!0));else void 0!==e[s]&&(c+="&"+o.buildQueryParameter(s,e[s],n));return c.substring(1)},o.buildQueryParameter=function(e,t,n){return o.encodeQuery(e,n)+(null!==t?"="+o.encodeQuery(t,n):"")},o.addQuery=function(e,t,n){if("object"==typeof t)for(var i in t)v.call(t,i)&&o.addQuery(e,i,t[i]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");void 0===e[t]?e[t]=n:("string"==typeof e[t]&&(e[t]=[e[t]]),a(n)||(n=[n]),e[t]=(e[t]||[]).concat(n))}},o.removeQuery=function(e,t,n){var i;if(a(t))for(n=0,i=t.length;n<i;n++)e[t[n]]=void 0;else if("RegExp"===r(t))for(i in e)t.test(i)&&(e[i]=void 0);else if("object"==typeof t)for(i in t)v.call(t,i)&&o.removeQuery(e,i,t[i]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===r(n)?!a(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=l(e[t],n):e[t]===n?e[t]=void 0:a(e[t])&&(e[t]=l(e[t],n)):e[t]=void 0}},o.hasQuery=function(e,t,n,i){if("object"==typeof t){for(var s in t)if(v.call(t,s)&&!o.hasQuery(e,s,t[s]))return!1;return!0}if("string"!=typeof t)throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(r(n)){case"Undefined":return t in e;case"Boolean":return n===(e=Boolean(a(e[t])?e[t].length:e[t]));
2case"Function":return!!n(e[t],t,e);case"Array":return!!a(e[t])&&(i?c:u)(e[t],n);case"RegExp":return a(e[t])?!!i&&c(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return a(e[t])?!!i&&c(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.commonPath=function(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return 1>n?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},o.withinString=function(e,t,n){n||(n={});var i=n.start||o.findUri.start,s=n.end||o.findUri.end,r=n.trim||o.findUri.trim,a=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var l=i.exec(e);if(!l)break;if(l=l.index,n.ignoreHtml)if((c=e.slice(Math.max(l-3,0),l))&&a.test(c))continue;var c=l+e.slice(l).search(s),u=e.slice(l,c).replace(r,"");n.ignore&&n.ignore.test(u)||(u=t(u,l,c=l+u.length,e),e=e.slice(0,l)+u+e.slice(c),i.lastIndex=l+u.length)}return i.lastIndex=0,e},o.ensureValidHostname=function(t){if(t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]')}},o.noConflict=function(e){return e?(e={URI:this.noConflict()},i.URITemplate&&"function"==typeof i.URITemplate.noConflict&&(e.URITemplate=i.URITemplate.noConflict()),i.IPv6&&"function"==typeof i.IPv6.noConflict&&(e.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&"function"==typeof i.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=i.SecondLevelDomains.noConflict()),e):(i.URI===this&&(i.URI=g),this)},m.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},m.clone=function(){return new o(this)},m.valueOf=m.toString=function(){return this.build(!1)._string},m.protocol=p("protocol"),m.username=p("username"),m.password=p("password"),m.hostname=p("hostname"),m.port=p("port"),m.query=f("query","?"),m.fragment=f("fragment","#"),m.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},m.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},m.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.path=this._parts.urn?e?o.recodeUrnPath(e):"":e?o.recodePath(e):"/",this.build(!t),this},m.path=m.pathname,m.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var i=e instanceof o,s="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[s=o.getDomAttribute(e)]||"",s=!1),!i&&s&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!i&&!s)throw new TypeError("invalid input");for(n in i=i?e._parts:e)v.call(this._parts,n)&&(this._parts[n]=i[n])}return this.build(!t),this},m.is=function(e){var t=!1,i=!1,s=!1,r=!1,a=!1,l=!1,c=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,i=o.ip4_expression.test(this._parts.hostname),s=o.ip6_expression.test(this._parts.hostname),a=(r=!(t=i||s))&&n&&n.has(this._parts.hostname),l=r&&o.idn_expression.test(this._parts.hostname),c=r&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return r;case"sld":return a;case"ip":return t;case"ip4":case"ipv4":case"inet4":return i;case"ip6":case"ipv6":case"inet6":return s;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var _=m.protocol,k=m.port,x=m.hostname;m.protocol=function(e,t){if(void 0!==e&&e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return _.call(this,e,t)},m.scheme=m.protocol,m.port=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),e.match(/[^0-9]/))))throw new TypeError('Port "'+e+'" contains characters other than [0-9]');return k.call(this,e,t)},m.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={};if("/"!==o.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname}return x.call(this,e,t)},m.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},m.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},m.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.username)return"";var n=o.buildUserinfo(this._parts);return n.substring(0,n.length-1)}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},m.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=o.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},m.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}return n=this._parts.hostname.length-this.domain().length,n=this._parts.hostname.substring(0,n),n=new RegExp("^"+s(n)),e&&"."!==e.charAt(e.length-1)&&(e+="."),e&&o.ensureValidHostname(e),this._parts.hostname=this._parts.hostname.replace(n,e),this.build(!t),this},m.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);return n&&2>n.length?this._parts.hostname:(n=this._parts.hostname.length-this.tld(t).length-1,n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||"")}if(!e)throw new TypeError("cannot set domain empty");return o.ensureValidHostname(e),!this._parts.hostname||this.is("IP")?this._parts.hostname=e:(n=new RegExp(s(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(n,e)),this.build(!t),this},m.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.lastIndexOf(".");i=this._parts.hostname.substring(i+1);return!0!==t&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');
2i=new RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},m.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1;n=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?o.decodePath(n):n}return n=this._parts.path.length-this.filename().length,n=this._parts.path.substring(0,n),n=new RegExp("^"+s(n)),this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(n,e),this.build(!t),this},m.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/");n=this._parts.path.substring(n+1);return e?o.decodePathSegment(n):n}n=!1,"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(n=!0);var i=new RegExp(s(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(i,e),n?this.normalizePath(t):this.build(!t),this},m.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this.filename(),i=n.lastIndexOf(".");return-1===i?"":(n=n.substring(i+1),n=/^[a-z0-9%]+$/i.test(n)?n:"",e?o.decodePathSegment(n):n)}if("."===e.charAt(0)&&(e=e.substring(1)),n=this.suffix())i=e?new RegExp(s(n)+"$"):new RegExp(s("."+n)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return i&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(i,e)),this.build(!t),this},m.segment=function(e,t,n){var i=this._parts.urn?":":"/",o="/"===(s=this.path()).substring(0,1),s=s.split(i);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw Error('Bad segment "'+e+'", must be 0-based integer');if(o&&s.shift(),0>e&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(a(t)){s=[],e=0;for(var r=t.length;e<r;e++)(t[e].length||s.length&&s[s.length-1].length)&&(s.length&&!s[s.length-1].length&&s.pop(),s.push(t[e]))}else(t||"string"==typeof t)&&(""===s[s.length-1]?s[s.length-1]=t:s.push(t));else t?s[e]=t:s.splice(e,1);return o&&s.unshift(""),this.path(s.join(i),n)},m.segmentCoded=function(e,t,n){var i,s;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(a(e=this.segment(e,t,n)))for(i=0,s=e.length;i<s;i++)e[i]=o.decode(e[i]);else e=void 0!==e?o.decode(e):void 0;return e}if(a(t))for(i=0,s=t.length;i<s;i++)t[i]=o.encode(t[i]);else t="string"==typeof t||t instanceof String?o.encode(t):t;return this.segment(e,t,n)};var C=m.query;return m.query=function(e,t){if(!0===e)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=e.call(this,n);return this._parts.query=o.buildQuery(i||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=o.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):C.call(this,e,t)},m.setQuery=function(e,t,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)i[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var s in e)v.call(e,s)&&(i[s]=e[s])}return this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},m.addQuery=function(e,t,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(i,e,void 0===t?null:t),this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},m.removeQuery=function(e,t,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(i,e,t),this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},m.hasQuery=function(e,t,n){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(i,e,t,n)},m.setSearch=m.setQuery,m.addSearch=m.addQuery,m.removeSearch=m.removeQuery,m.hasSearch=m.hasQuery,m.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},m.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},m.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},m.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},m.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var n,i,s,r="";for("/"!==t.charAt(0)&&(n=!0,t="/"+t),"/.."!==t.slice(-3)&&"/."!==t.slice(-2)||(t+="/"),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),n&&(r=t.substring(1).match(/^(\.\.\/)+/)||"")&&(r=r[0]);-1!==(i=t.indexOf("/.."));)0!==i?(-1===(s=t.substring(0,i).lastIndexOf("/"))&&(s=i),t=t.substring(0,s)+t.substring(i+3)):t=t.substring(3);return n&&this.is("relative")&&(t=r+t.substring(1)),t=o.recodePath(t),this._parts.path=t,this.build(!e),this},m.normalizePathname=m.normalizePath,m.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},m.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},m.normalizeSearch=m.normalizeQuery,m.normalizeHash=m.normalizeFragment,m.iso8859=function(){var e=o.encode,t=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},m.unicode=function(){var e=o.encode,t=o.decode;o.encode=d,o.decode=unescape;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},m.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.
2charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var i="",s=0,r=t._parts.query.split("&"),a=r.length;s<a;s++){var l=(r[s]||"").split("=");i=i+"&"+o.decodeQuery(l[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");void 0!==l[1]&&(i+="="+o.decodeQuery(l[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+i.substring(1)}return n+o.decodeQuery(t.hash(),!0)},m.absoluteTo=function(e){var t,n,i=this.clone(),s=["protocol","username","password","hostname","port"];if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(e instanceof o||(e=new o(e)),i._parts.protocol||(i._parts.protocol=e._parts.protocol),this._parts.hostname)return i;for(t=0;n=s[t];t++)i._parts[n]=e._parts[n];return i._parts.path?".."===i._parts.path.substring(-2)&&(i._parts.path+="/"):(i._parts.path=e._parts.path,i._parts.query||(i._parts.query=e._parts.query)),"/"!==i.path().charAt(0)&&(s=(s=e.directory())?s:0===e.path().indexOf("/")?"/":"",i._parts.path=(s?s+"/":"")+i._parts.path,i.normalizePath()),i.build(),i},m.relativeTo=function(e){var t,n,i,s=this.clone().normalize();if(s._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(e=new o(e).normalize(),t=s._parts,n=e._parts,i=s.path(),e=e.path(),"/"!==i.charAt(0))throw Error("URI is already relative");if("/"!==e.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");return t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password||null!==t.protocol||null!==t.username||null!==t.password||t.hostname!==n.hostname||t.port!==n.port?s.build():(t.hostname=null,t.port=null,i===e?(t.path="",s.build()):(i=o.commonPath(i,e))?(n=n.path.substring(i.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../"),t.path=n+t.path.substring(i.length)||"./",s.build()):s.build())},m.equals=function(e){var t=this.clone();e=new o(e);var n,i={},s={},r={};if(t.normalize(),e.normalize(),t.toString()===e.toString())return!0;if(i=t.query(),s=e.query(),t.query(""),e.query(""),t.toString()!==e.toString()||i.length!==s.length)return!1;for(n in i=o.parseQuery(i,this._parts.escapeQuerySpace),s=o.parseQuery(s,this._parts.escapeQuerySpace),i)if(v.call(i,n)){if(a(i[n])){if(!u(i[n],s[n]))return!1}else if(i[n]!==s[n])return!1;r[n]=!0}for(n in s)if(v.call(s,n)&&!r[n])return!1;return!0},m.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},m.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},o}),function(e,t){"object"==typeof exports?module.exports=t(require("./URI")):"function"==typeof define&&define.amd?define(["./URI"],t):e.URITemplate=t(e.URI,e)}(this,function(e,t){function n(e){return n._cache[e]?n._cache[e]:this instanceof n?(this.expression=e,n._cache[e]=this,this):new n(e)}function i(e){this.data=e,this.cache={}}var o=t&&t.URITemplate,s=Object.prototype.hasOwnProperty,r=n.prototype,a={"":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encode"},"+":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},"#":{prefix:"#",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},".":{prefix:".",separator:".",named:!1,empty_name_separator:!1,encode:"encode"},"/":{prefix:"/",separator:"/",named:!1,empty_name_separator:!1,encode:"encode"},";":{prefix:";",separator:";",named:!0,empty_name_separator:!1,encode:"encode"},"?":{prefix:"?",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"},"&":{prefix:"&",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"}};return n._cache={},n.EXPRESSION_PATTERN=/\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g,n.VARIABLE_PATTERN=/^([^*:]+)((\*)|:(\d+))?$/,n.VARIABLE_NAME_PATTERN=/[^a-zA-Z0-9%_]/,n.expand=function(e,t){var i,o,s,r=a[e.operator],l=r.named?"Named":"Unnamed",c=e.variables,u=[];for(s=0;o=c[s];s++)(i=t.get(o.name)).val.length?u.push(n["expand"+l](i,r,o.explode,o.explode&&r.separator||",",o.maxlength,o.name)):i.type&&u.push("");return u.length?r.prefix+u.join(r.separator):""},n.expandNamed=function(t,n,i,o,s,r){var a="",l=n.encode;n=n.empty_name_separator;var c,u,h,d=!t[l].length,p=2===t.type?"":e[l](r);for(u=0,h=t.val.length;u<h;u++)s?(c=e[l](t.val[u][1].substring(0,s)),2===t.type&&(p=e[l](t.val[u][0].substring(0,s)))):d?(c=e[l](t.val[u][1]),2===t.type?(p=e[l](t.val[u][0]),t[l].push([p,c])):t[l].push([void 0,c])):(c=t[l][u][1],2===t.type&&(p=t[l][u][0])),a&&(a+=o),i?a+=p+(n||c?"=":"")+c:(u||(a+=e[l](r)+(n||c?"=":"")),2===t.type&&(a+=p+","),a+=c);return a},n.expandUnnamed=function(t,n,i,o,s){var r="",a=n.encode;n=n.empty_name_separator;var l,c,u,h=!t[a].length;for(c=0,u=t.val.length;c<u;c++)s?l=e[a](t.val[c][1].substring(0,s)):h?(l=e[a](t.val[c][1]),t[a].push([2===t.type?e[a](t.val[c][0]):void 0,l])):l=t[a][c][1],r&&(r+=o),2===t.type&&(r+=s?e[a](t.val[c][0].substring(0,s)):t[a][c][0],r=i?r+(n||l?"=":""):r+","),r+=l;return r},n.noConflict=function(){return t.URITemplate===n&&(t.URITemplate=o),n},r.expand=function(e){var t="";this.parts&&this.parts.length||this.parse(),e instanceof i||(e=new i(e));for(var o=0,s=this.parts.length;o<s;o++)t+="string"==typeof this.parts[o]?this.parts[o]:n.expand(this.parts[o],e);return t},r.parse=function(){var e,t,i,o=this.expression,s=n.EXPRESSION_PATTERN,r=n.VARIABLE_PATTERN,l=n.VARIABLE_NAME_PATTERN,c=[],u=0;for(s.lastIndex=0;;){if(null===(t=s.exec(o))){c.push(o.substring(u));break}if(c.push(o.substring(u,t.index)),u=t.index+t[0].length,!a[t[1]])throw Error('Unknown Operator "'+t[1]+'" in "'+t[0]+'"');if(!t[3])throw Error('Unclosed Expression "'+t[0]+'"');for(var h=0,d=(e=t[2].split(",")).length;h<d;h++){if(null===(i=e[h].match(r)))throw Error('Invalid Variable "'+e[h]+'" in "'+t[0]+'"');if(i[1].match(l))throw Error('Invalid Variable Name "'+i[1]+'" in "'+t[0]+'"');e[h]={name:i[1],explode:!!i[3],maxlength:i[4]&&parseInt(i[4],10)}}if(!e.length)throw Error('Expression Missing Variable(s) "'+t[0]+'"');c.push({expression:t[0],operator:t[1],variables:e})}return c.length||c.push(o),this.parts=c,this},i.prototype.get=function(e){var t,n=this.data,i={type:0,val:[],encode:[],encodeReserved:[]};if(void 0!==this.cache[e])return this.cache[e];if(this.cache[e]=i,null!=(n="[object Function]"===String(Object.prototype.toString.call(n))?n(e):"[object Function]"===String(Object.prototype.toString.call(n[e]))?n[e](e):n[e]))if("[object Array]"===String(Object.prototype.toString.call(n))){for(t=0,e=n.length;t<e;t++)void 0!==n[t]&&null!==n[t]&&i.val.push([void 0,String(n[t])]);i.val.length&&(i.type=3)}else if("[object Object]"===String(Object.prototype.toString.call(n))){for(t in n)s.call(n,t)&&void 0!==n[t]&&null!==n[t]&&i.val.push([t,String(n[t])]);i.val.length&&(i.type=2)}else i.type=1,i.val.push([void 0,String(n)]);return i},e.expand=function(t,i){var o=new n(t).expand(i);return new e(o)},n}),LiveVideoFeed.getInstance=function(e){return LiveVideoFeed.instance||(LiveVideoFeed.instance=new LiveVideoFeed(jQuery,e)),LiveVideoFeed.instance},
3/*! jQuery UI - v1.13.0 - 2021-12-14
4* http://jqueryui.com
5* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/resizable.js, widgets/datepicker.js, widgets/mouse.js, widgets/slider.js
6* Copyright jQuery Foundation and other contributors; Licensed MIT */
7function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";e.ui=e.ui||{};e.ui.version="1.13.0";
8/*!
9 * jQuery UI Widget 1.13.0
10 * http://jqueryui.com
11 *
12 * Copyright jQuery Foundation and other contributors
13 * Released under the MIT license.
14 * http://jquery.org/license
15 */var t,n=0,i=Array.prototype.hasOwnProperty,o=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,s;for(s=0;null!=(o=n[s]);s++)(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove");t(n)}),e.widget=function(t,n,i){var o,s,r,a={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);
vendor: 12,357 bytes, lines 15-25
15return i||(i=n,n=e.Widget),Array.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},o=e[l][t],s=e[l][t]=function(e,t){if(!this._createWidget)return new s(e,t);arguments.length&&this._createWidget(e,t)},e.extend(s,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(r=new n).options=e.widget.extend({},r.options),e.each(i,function(e,t){a[e]="function"==typeof t?function(){function i(){return n.prototype[e].apply(this,arguments)}function o(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,s=this._superApply;return this._super=i,this._superApply=o,e=t.apply(this,arguments),this._super=n,this._superApply=s,e}}():t}),s.prototype=e.widget.extend(r,{widgetEventPrefix:o&&r.widgetEventPrefix||t},a,{constructor:s,namespace:l,widgetName:t,widgetFullName:c}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,s,n._proto)}),delete o._childConstructors):n._childConstructors.push(s),e.widget.bridge(t,s),s},e.widget.extend=function(t){for(var n,s,r=o.call(arguments,1),a=0,l=r.length;a<l;a++)for(n in r[a])s=r[a][n],i.call(r[a],n)&&void 0!==s&&(e.isPlainObject(s)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],s):e.widget.extend({},s):t[n]=s);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(s){var r="string"==typeof s,a=o.call(arguments,1),l=this;return r?this.length||"instance"!==s?this.each(function(){var n,o=e.data(this,i);return"instance"===s?(l=o,!1):o?"function"!=typeof o[s]||"_"===s.charAt(0)?e.error("no such method '"+s+"' for "+t+" widget instance"):(n=o[s].apply(o,a))!==o&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(a.length&&(s=e.widget.extend.apply(null,[s].concat(a))),this.each(function(){var t=e.data(this,i);t?(t.option(s||{}),t._init&&t._init()):e.data(this,i,new n(s,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,s,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},i=t.split("."),t=i.shift(),i.length){for(o=r[t]=e.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)o[i[s]]=o[i[s]]||{},o=o[i[s]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=n}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(){t.element.each(function(t,n){e.map(i.classesElementLookup,function(e){return e}).some(function(e){return e.is(n)})||i._on(e(n),{remove:"_untrackClassesElement"})})}function s(s,r){var a,l;for(l=0;l<s.length;l++)a=i.classesElementLookup[s[l]]||e(),t.add?(o(),a=e(e.uniqueSort(a.get().concat(t.element.get())))):a=e(a.not(t.element).get()),i.classesElementLookup[s[l]]=a,n.push(s[l]),r&&t.classes[s[l]]&&n.push(t.classes[s[l]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&s(t.keys.match(/\S+/g)||[],!0),t.extra&&s(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,s={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return s.element.toggleClass(this._classes(s),i),this},_on:function(t,n,i){var o,s=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,r){function a(){if(t||!0!==s.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?s[r]:r).apply(s,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+s.eventNamespace,u=l[2];u?o.on(c,u,a):n.on(c,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,s,r=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],s=n.originalEvent)for(o in s)o in n||(n[o]=s[o]);return this.element.trigger(n,i),!("function"==typeof r&&!1===r.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,s){var r;"string"==typeof o&&(o={effect:o});var a=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})?o={duration:o}:!0===o&&(o={}),r=!e.isEmptyObject(o),o.complete=s,o.delay&&i.delay(o.delay),r&&e.effects&&e.effects.effect[a]?i[t](o):a!==t&&i[a]?i[a](o.duration,o.easing,s):i.queue(function(n){e(this)[t](),s&&s.call(i[0]),n()})}});e.widget;
16/*!
17 * jQuery UI Position 1.13.0
18 * http://jqueryui.com
19 *
20 * Copyright jQuery Foundation and other contributors
21 * Released under the MIT license.
22 * http://jquery.org/license
23 *
24 * http://api.jqueryui.com/position/
25 */!function(){var t,n=Math.max,i=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=e.fn.position;function u(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function h(t,n){return parseInt(e.css(t,n),10)||0}function d(e){return null!=e&&e===e.window}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,i,o=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),s=o.children()[0];return e("body").append(o),n=s.offsetWidth,o.css("overflow","scroll"),n===(i=s.offsetWidth)&&(i=o[0].clientWidth),o.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=d(n[0]),o=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:o,offset:!i&&!o?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);var l,p,f,g,m,v,y,b,w="string"==typeof(t=e.extend({},t)).of?e(document).find(t.of):e(t.of),_=e.position.getWithinInfo(t.within),k=e.position.getScrollInfo(_),x=(t.collision||"flip").split(" "),C={};return v=9===(b=(y=w)[0]).nodeType?{width:y.width(),height:y.height(),offset:{top:0,left:0}}:d(b)?{width:y.width(),height:y.height(),offset:{top:y.scrollTop(),left:y.scrollLeft()}}:b.preventDefault?{width:0,height:0,offset:{top:b.pageY,left:b.pageX}}:{width:y.outerWidth(),height:y.outerHeight(),offset:y.offset()},w[0].preventDefault&&(t.at="left top"),p=v.width,f=v.height,g=v.offset,m=e.extend({},g),e.each(["my","at"],function(){var e,n,i=(t[this]||"").split(" ");1===i.length&&(i=o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]),i[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",e=r.exec(i[0]),n=r.exec(i[1]),C[this]=[e?e[0]:0,n?n[0]:0],t[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===t.at[0]?m.left+=p:"center"===t.at[0]&&(m.left+=p/2),"bottom"===t.at[1]?m.top+=f:"center"===t.at[1]&&(m.top+=f/2),l=u(C.at,p,f),m.left+=l[0],m.top+=l[1],this.each(function(){var o,s,r=e(this),a=r.outerWidth(),c=r.outerHeight(),d=h(this,"marginLeft"),v=h(this,"marginTop"),y=a+d+h(this,"marginRight")+k.width,b=c+v+h(this,"marginBottom")+k.height,S=e.extend({},m),D=u(C.my,r.outerWidth(),r.outerHeight());"right"===t.my[0]?S.left-=a:"center"===t.my[0]&&(S.left-=a/2),"bottom"===t.my[1]?S.top-=c:"center"===t.my[1]&&(S.top-=c/2),S.left+=D[0],S.top+=D[1],o={marginLeft:d,marginTop:v},e.each(["left","top"],function(n,i){e.ui.position[x[n]]&&e.ui.position[x[n]][i](S,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:c,collisionPosition:o,collisionWidth:y,collisionHeight:b,offset:[l[0]+D[0],l[1]+D[1]],my:t.my,at:t.at,within:_,elem:r})}),t.using&&(s=function(e){var o=g.left-S.left,s=o+p-a,l=g.top-S.top,u=l+f-c,h={target:{element:w,left:g.left,top:g.top,width:p,height:f},element:{element:r,left:S.left,top:S.top,width:a,height:c},horizontal:s<0?"left":o>0?"right":"center",vertical:u<0?"top":l>0?"bottom":"middle"};p<a&&i(o+s)<p&&(h.horizontal="center"),f<c&&i(l+u)<f&&(h.vertical="middle"),n(i(o),i(s))>n(i(l),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),r.offset(e.extend(S,{using:s}))})},e.ui.position={fit:{left:function(e,t){var i,o=t.within,s=o.isWindow?o.scrollLeft:o.offset.left,r=o.width,a=e.left-t.collisionPosition.marginLeft,l=s-a,c=a+t.collisionWidth-r-s;t.collisionWidth>r?l>0&&c<=0?(i=e.left+l+t.collisionWidth-r-s,e.left+=l-i):e.left=c>0&&l<=0?s:l>c?s+r-t.collisionWidth:s:l>0?e.left+=l:c>0?e.left-=c:e.left=n(e.left-a,e.left)},top:function(e,t){var i,o=t.within,s=o.isWindow?o.scrollTop:o.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=s-a,c=a+t.collisionHeight-r-s;t.collisionHeight>r?l>
vendor: 4,224 bytes, lines 25-52
250&&c<=0?(i=e.top+l+t.collisionHeight-r-s,e.top+=l-i):e.top=c>0&&l<=0?s:l>c?s+r-t.collisionHeight:s:l>0?e.top+=l:c>0?e.top-=c:e.top=n(e.top-a,e.top)}},flip:{left:function(e,t){var n,o,s=t.within,r=s.offset.left+s.scrollLeft,a=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,h=c+t.collisionWidth-a-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];u<0?((n=e.left+d+p+f+t.collisionWidth-a-r)<0||n<i(u))&&(e.left+=d+p+f):h>0&&((o=e.left-t.collisionPosition.marginLeft+d+p+f-l)>0||i(o)<h)&&(e.left+=d+p+f)},top:function(e,t){var n,o,s=t.within,r=s.offset.top+s.scrollTop,a=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,h=c+t.collisionHeight-a-l,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];u<0?((o=e.top+d+p+f+t.collisionHeight-a-r)<0||o<i(u))&&(e.top+=d+p+f):h>0&&((n=e.top-t.collisionPosition.marginTop+d+p+f-l)>0||i(n)<h)&&(e.top+=d+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}();var s;
26/*!
27 * jQuery UI :data 1.13.0
28 * http://jqueryui.com
29 *
30 * Copyright jQuery Foundation and other contributors
31 * Released under the MIT license.
32 * http://jquery.org/license
33 */e.ui.position,e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.extend({disableSelection:(s="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(s+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});
34/*!
35 * jQuery UI Focusable 1.13.0
36 * http://jqueryui.com
37 *
38 * Copyright jQuery Foundation and other contributors
39 * Released under the MIT license.
40 * http://jquery.org/license
41 */
42e.ui.focusable=function(t,n){var i,o,s,r,a,l=t.nodeName.toLowerCase();return"area"===l?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&((s=e("img[usemap='#"+o+"']")).length>0&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled)&&(a=e(t).closest("fieldset")[0])&&(r=!a.disabled):r="a"===l&&t.href||n,r&&e(t).is(":visible")&&function(e){var t=e.css("visibility");for(;"inherit"===t;)t=(e=e.parent()).css("visibility");return"visible"===t}(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}});e.ui.focusable,e.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var n=t.data("ui-form-reset-instances");e.each(n,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element._form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};if(
43/*!
44 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.0
45 * http://jqueryui.com
46 *
47 * Copyright jQuery Foundation and other contributors
48 * Released under the MIT license.
49 * http://jquery.org/license
50 *
51 */
52e.expr.pseudos||(e.expr.pseudos=e.expr[":"]),e.uniqueSort||(e.uniqueSort=e.unique),!e.escapeSelector){var r=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,a=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};e.escapeSelector=function(e){return(e+"").replace(r,a)}}e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0}
vendor: 10,259 bytes, lines 52-78
52)},odd:function(){return this.filter(function(e){return e%2==1})}});
53/*!
54 * jQuery UI Keycode 1.13.0
55 * http://jqueryui.com
56 *
57 * Copyright jQuery Foundation and other contributors
58 * Released under the MIT license.
59 * http://jquery.org/license
60 */
61e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.labels=function(){var t,n,i,o,s;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(o=this.eq(0).parents("label"),(i=this.attr("id"))&&(s=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),n="label[for='"+e.escapeSelector(i)+"']",o=o.add(s.find(n).addBack(n))),this.pushStack(o)):this.pushStack([])},e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&s.length?s:e(this[0].ownerDocument||document)},e.extend(e.expr.pseudos,{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||n>=0)&&e.ui.focusable(t,i)}}),e.fn.extend({uniqueId:(l=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++l)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
62/*!
63 * jQuery UI Labels 1.13.0
64 * http://jqueryui.com
65 *
66 * Copyright jQuery Foundation and other contributors
67 * Released under the MIT license.
68 * http://jquery.org/license
69 */var l,c=!1;e(document).on("mouseup",function(){c=!1});e.widget("ui.mouse",{version:"1.13.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!c){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,o=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),c=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,c=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var o,s=e.ui[t].prototype;for(o in i)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,s=e.plugins[t];if(s&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)e.options[s[o][0]]&&s[o][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};
70/*!
71 * jQuery UI Draggable 1.13.0
72 * http://jqueryui.com
73 *
74 * Copyright jQuery Foundation and other contributors
75 * Released under the MIT license.
76 * http://jquery.org/license
77 */
78e.widget("ui.draggable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i="function"==typeof n.helper,o=i?e
vendor: 1,293 bytes, line 78
78(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRo
vendor: 4,335 bytes, line 78
78otNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,s=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(s).width()-this.helperProportions.width-this.margins.left,(e(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,s,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-r.grid[1]:o+r.grid[1]:o,s=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=n?s-this.offset.click.left>=n[0]||s-this.offset.click.left>n[2]?s:s-this.offset.click.left>=n[0]?s-r.grid[0]:s+r.grid[0]:s),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left
vendor: 5,325 bytes, line 78
78:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,s=this;s.positionAbs=i.positionAbs,s.helperProportions=i.helperProportions,s.offset.click=i.offset.click,s._intersectsWith(s.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==s&&this._intersectsWith(this.containerCache)&&e.contains(s.element[0],this.element[0])&&(o=!1),o})),o?(s.isOver||(s.isOver=1,i._parent=n.helper.parent(),s.currentItem=n.helper.appendTo(s.element).data("ui-sortable-item",!0),s.options._helper=s.options.helper,s.options.helper=function(){return n.helper[0]},t.target=s.currentItem[0],s._mouseCapture(t,!0),s._mouseStart(t,!0,!0),s.offset.click.top=i.offset.click.top,s.offset.click.left=i.offset.click.left,s.offset.parent.left-=i.offset.parent.left-s.offset.parent.left,s.offset.parent.top-=i.offset.parent.top-s.offset.parent.top,i._trigger("toSortable",t),i.dropped=s.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,s.fromOutside=i),s.currentItem&&(s._mouseDrag(t),n.position=s.position)):s.isOver&&(s.isOver=0,s.cancelHelperRemoval=!0,s.options._revert=s.options.revert,s.options.revert=!1,s._trigger("out",t,s._uiHash(s)),s._mouseStop(t,!0),s.options.revert=s.options._revert,s.options.helper=s.options._helper,s.placeholder&&s.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),s=i.options;o.css("cursor")&&(s._cursor=o.css("cursor")),o.css("cursor",s.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),s=i.options;o.css("opacity")&&(s._opacity=o.css("opacity")),o.css("opacity",s.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,s=!1,r=i.scrollParentNotHidden[0],a=i.document[0];r!==a&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-t.pageY<o.scrollSensitivity?r.scrollTop=s=r.scrollTop+o.scrollSpeed:t.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=s=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-t.pageX<o.scrollSensitivity?r.scrollLeft=s=r.scrollLeft+o.scrollSpeed:t.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=s=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(a).scrollTop()<o.scrollSensitivity?s=e(a).scrollTop(e(a).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<o.scrollSensitivity&&(s=e(a).scrollTop(e(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(a).scrollLeft()<o.scrollSensitivity?s=e(a).scrollLeft(e(a).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<o.scrollSensitivity&&(s=e(a).scrollLeft(e(a).scrollLeft()+o.scrollSpeed)))),!1!==s&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var o=i.options;i.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left
vendor: 6,738 bytes, lines 78-86
78:n.left})})},drag:function(t,n,i){var o,s,r,a,l,c,u,h,d,p,f=i.options,g=f.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(d=i.snapElements.length-1;d>=0;d--)c=(l=i.snapElements[d].left-i.margins.left)+i.snapElements[d].width,h=(u=i.snapElements[d].top-i.margins.top)+i.snapElements[d].height,v<l-g||m>c+g||b<u-g||y>h+g||!e.contains(i.snapElements[d].item.ownerDocument,i.snapElements[d].item)?(i.snapElements[d].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[d].item})),i.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(o=Math.abs(u-b)<=g,s=Math.abs(h-y)<=g,r=Math.abs(l-v)<=g,a=Math.abs(c-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),s&&(n.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),r&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),p=o||s||r||a,"outer"!==f.snapMode&&(o=Math.abs(u-y)<=g,s=Math.abs(h-b)<=g,r=Math.abs(l-m)<=g,a=Math.abs(c-v)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),s&&(n.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),r&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[d].snapping&&(o||s||r||a||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[d].item})),i.snapElements[d].snapping=o||s||r||a||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,s=i.options,r=e.makeArray(e(s.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});r.length&&(o=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),s=i.options;o.css("zIndex")&&(s._zIndex=o.css("zIndex")),o.css("zIndex",s.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}});e.ui.draggable;
79/*!
80 * jQuery UI Resizable 1.13.0
81 * http://jqueryui.com
82 *
83 * Copyright jQuery Foundation and other contributors
84 * Released under the MIT license.
85 * http://jquery.org/license
86 */e.widget("ui.resizable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop",o=!1;if(t[i]>0)return!0;try{t[i]=1,o=t[i]>0,t[i]=0}catch(e){}return o},_create:function(){var t,n=this.options,i=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,n,i,o,s,r=this.options,a=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)o="ui-resizable-"+(t=String.prototype.trim.call(i[n])),s=e("<div>"),this._addClass(s,"ui-resizable-handle "+o),s.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(s),this._addedHandles=this._addedHandles.add(s));this._renderAxis=function(t){var n,i,o,s;for(n in t=t||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=e(this.handles[n],this.element),s=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),o=["padding",/ne|nw|n
vendor: 4,361 bytes, line 86
86/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(o,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=s&&s[1]?s[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var n,i,o=!1;for(n in this.handles)((i=e(this.handles[n])[0])===t.target||e.contains(i,t.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(t){var n,i,o,s=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(n+=e(s.containment).scrollLeft()||0,i+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===o?this.axis+"-resize":o),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,i,o=this.originalMousePosition,s=this.axis,r=t.pageX-o.left||0,a=t.pageY-o.top||0,l=this._change[s];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[t,r,a]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var n,i,o,s,r,a,l,c=this.options,u=this;return this._helper&&(o=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:u.sizeDiff.height,s=i?0:u.sizeDiff.width,r={width:u.helper.width()-s,height:u.helper.height()-o},a=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,l=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(e.extend(r,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,i,o,s,r=this.options;s={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,o=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),i>s.minHeight&&(s.minHeight=i),n<s.maxWidth&&(s.maxWidth=n),o<s.maxHeight&&(s.maxHeight=o)),this._vBoundaries=s},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left
vendor: 5,125 bytes, line 86
86=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===i&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===i&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,o=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,s=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return s&&(e.width=t.minWidth),r&&(e.height=t.minHeight),i&&(e.width=t.maxWidth),o&&(e.height=t.maxHeight),s&&c&&(e.left=a-t.minWidth),i&&c&&(e.left=a-t.maxWidth),r&&u&&(e.top=l-t.minHeight),o&&u&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],i=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(i[t])||0,n[t]+=parseFloat(o[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},sw:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,i]))},ne:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},nw:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,i]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),i=n.options,o=n._proportionallyResizeElements,s=o.length&&/textarea/i.test(o[0].nodeName),r=s&&n._hasScroll(o[0],"left")?0:n.sizeDiff.height,a=s?0:n.sizeDiff.width,l={width:n.size.width-a,height:n.size.height-r},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,u=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};o&&o.length&&e(o[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,i,o,s,r,a,l=e(this).resizable("instance"),c=l.options,u=l.element,h=c.containment,d=h instanceof e?h.get(0):/parent/.test(h)?u.parent().get(0):h;d&&(l.containerElement=e(d),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(d),n=[],e(["Top","Right","Left","Bottom"]).each(function(e,i){n[e]=l._num(t.css("padding"+i))}),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHe
vendor: 4,405 bytes, line 86
86ight()-n[3],width:t.innerWidth()-n[1]},i=l.containerOffset,o=l.containerSize.height,s=l.containerSize.width,r=l._hasScroll(d,"left")?d.scrollWidth:s,a=l._hasScroll(d)?d.scrollHeight:o,l.parentData={element:d,left:i.left,top:i.top,width:r,height:a}))},resize:function(t){var n,i,o,s,r=e(this).resizable("instance"),a=r.options,l=r.containerOffset,c=r.position,u=r._aspectRatio||t.shiftKey,h={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-h.left),u&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),o=r.containerElement.get(0)===r.element.parent().get(0),s=/relative|absolute/.test(r.containerElement.css("position")),o&&s?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),n=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-h.left:r.offset.left-l.left)),i=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-h.top:r.offset.top-l.top)),n+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-n,u&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),i+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-i,u&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,i=t.containerOffset,o=t.containerPosition,s=t.containerElement,r=e(t.helper),a=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(s.css("position"))&&e(this).css({left:a.left-o.left-i.left,width:l,height:c}),t._helper&&!n.animate&&/static/.test(s.css("position"))&&e(this).css({left:a.left-o.left-i.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var i=e(this).resizable("instance"),o=i.options,s=i.originalSize,r=i.originalPosition,a={height:i.size.height-s.height||0,width:i.size.width-s.width||0,top:i.position.top-r.top||0,left:i.position.left-r.left||0};e(o.alsoResize).each(function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),o={},s=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(s,function(e,t){var n=(i[t]||0)+(a[t]||0);n&&n>=0&&(o[t]=n||null)}),t.css(o)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),i=n.options,o=n.size,s=n.originalSize,r=n.originalPosition,a=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,u=l[1]||1,h=Math.round((o.width-s.width)/c)*c,d=Math.round((o.height-s.height)/u)*u,p=s.width+h,f=s.height+d,g=i.maxWidth&&i.maxWidth<p,m=i.maxHeight&&i.maxHeight<f,v=i.minWidth&&i.minWidth>p,y=i.minHeight&&i.minHeight>f;i.grid=l,v&&(p+=c),y&&(f+=u),g&&(p-=c),m&&(f-=u),/^(se|s|e)$/.test(a)?(n.size.width=p,n.size.height=f):/^(ne)$/.test(a)?(n.size.width=p,n.size.height=f,n.position.top=r.top-d):/^(sw)$/.test(a)?(n.size.width=p,n.size.height=f,n.position.left
vendor: 6,674 bytes, lines 86-94
86=r.left-h):((f-u<=0||p-c<=0)&&(t=n._getPaddingPlusBorderDimensions(this)),f-u>0?(n.size.height=f,n.position.top=r.top-d):(f=u-t.height,n.size.height=f,n.position.top=r.top+s.height-f),p-c>0?(n.size.width=p,n.position.left=r.left-h):(p=c-t.width,n.size.width=p,n.position.left=r.left+s.width-p))}});var u;
87/*!
88 * jQuery UI Datepicker 1.13.0
89 * http://jqueryui.com
90 *
91 * Copyright jQuery Foundation and other contributors
92 * Released under the MIT license.
93 * http://jquery.org/license
94 */e.ui.resizable;function h(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=d(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function d(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,p)}function p(){e.datepicker._isDisabledDatepicker(u.inline?u.dpDiv.parent()[0]:u.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function f(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}e.extend(e.ui,{datepicker:{version:"1.13.0"}}),e.extend(h.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return f(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,o,s;o="div"===(i=t.nodeName.toLowerCase())||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(s=this._newInst(e(t),o)).settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,s):o&&this._inlineDatepicker(t,s)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?d(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,o,s,r=this._get(n,"appendText"),a=this._get(n,"isRTL");n.append&&n.append.remove(),r&&(n.append=e("<span>").addClass(this._appendClass).text(r),t[a?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(o=this._get(n,"buttonText"),s=this._get(n,"buttonImage"),this._get(n,"buttonImageOnly")?n.trigger=e("<img>").addClass(this._triggerClass).attr({src:s,alt:o,title:o}):(n.trigger=e("<button type='button'>").addClass(this._triggerClass),s?n.trigger.html(e("<img>").attr({src:s,alt:o,title:o})):n.trigger.text(o)),t[a?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,o,s=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(n=0,i=0,o=0;o<e.length;o++)e[o].length>n&&(n=e[o].length,i=o);return i},s.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),e.input.attr("size",this._formatDate(e,s).length)}},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,o,s){var r,a,l,c,u,h=this._dialogInst;return h||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>
94"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),f(h.settings,o||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+c,l/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(t){var n,i=e(t),o=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(o.append.remove(),o.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||i.removeClass(this.markerClassName).empty(),u===o&&(u=null,this._curInst=null))},_enableDatepicker:function(t){var n,i,o=e(t),s=e.data(t,"datepicker");o.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var n,i,o=e(t),s=e.data(t,"datepicker");o.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,i){var o,s,r,a,l=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):l?"all"===n?e.extend({},l.settings):this._get(l,n):null;o=n||{},"string"==typeof n&&((o={})[n]=i),l&&(this._curInst===l&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(l,"min"),a=this._getMinMaxDate(l,"max"),f(l.settings,o),null!==r&&void 0!==o.dateFormat&&void 0===o.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==a&&void 0!==o.dateFormat&&void 0===o.maxDate&&(l.settings.maxDate=this._formatDate(l,a)),"disabled"in o&&(o.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,s),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,i,o,s=e.datepicker._getInst(t.target),r=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(o=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",s.dpDiv))[0]&&e.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,o[0]),(n=e.datepicker._get(s,"onSelect"))?(i=e.datepicker._formatDate(s),n.apply(s.input?s.input[0]:null,[
vendor: 8,625 bytes, line 94
94i,s])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(s,"stepBigMonths"):-e.datepicker._get(s,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(s,"stepBigMonths"):+e.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(s,"stepBigMonths"):-e.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(s,"stepBigMonths"):+e.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,i,o=e.datepicker._getInst(t.target);if(e.datepicker._get(o,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(o,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!n||n.indexOf(i)>-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var n,i,o,s,r,a,l;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(o=(i=e.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(f(n.settings,o),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),s=!1,e(t).parents().each(function(){return!(s|="fixed"===e(this).css("position"))}),r={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),r=e.datepicker._checkOffset(n,r,s),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),n.inline||(a=e.datepicker._get(n,"showAnim"),l=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[a]?n.dpDiv.show(a,e.datepicker._get(n,"showOptions"),l):n.dpDiv[a||"show"](a?l:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,u=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),o=i[1],s=t.dpDiv.find("."+this._dayOverClass+" a"),r=e.datepicker._get(t,"onUpdateDatepicker");s.length>0&&p.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),n=t.yearshtml=null},0)),r&&r.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var o=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?o-r:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+a?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+o>l&&l>o?Math.abs(n.left+o-l):0),n.top-=Math.min(n.top,n.top+s>c&&c>s?Math.abs(s+a):0),n},_findPos:function(t){for(var n,i=this._getInst(t),o=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[o?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,o,s,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(r,"showAnim"),i=this._get(r,"duration"),o=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[n]||e.effects[n])?r.dpDiv.hide(n,e.datepicker._get(r,"showOptions"),i,o):r.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,o),n||o(),this._datepickerShowing=!1,(s=this._get(r,"onClose"))&&s.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===i)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var o=e(t),s=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(s,n,i),this._updateDatepicker(s))},_gotoToday:function(t){var n,i=e(t),o=this._getInst(i[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(n=new Date,o.selectedDay=n.getDate(),o.drawMonth=o.selectedMonth=n.getMonth(),o.drawYear=o.selectedYear=n.getFullYear()),this._notifyChange(o),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var o=e(t),s=this._getInst(o[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(o)},_selectDay:function(t,n,i,o){var s,r=e(t);e(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((s=this._getInst(r[0])).selectedDay=s.currentDay=parseInt(e("a",o).attr("data-date")),s.selectedMonth=s.currentMonth=n,s.selectedYear=s.currentYear=i,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,o=e(t),s=this._getInst(o[0]);n=null!=n?n:this._formatDate(s),s.input&&s.input.val(n),this._updateAlternate(s),(i=this._get(s,"onSelect"))?i.apply(s.input?s.input[0]:null,[n,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,o,s=this._get(t,"altField");s&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),o=this.formatDate(n,i,this._getFormatConfig(t)),e(document).find(s).val(o))}
vendor: 4,554 bytes, line 94
94,noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var o,s,r,a,l=0,c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,d=(i?i.dayNames:null)||this._defaults.dayNames,p=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,f=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,b=!1,w=function(e){var n=o+1<t.length&&t.charAt(o+1)===e;return n&&o++,n},_=function(e){var t=w(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,o=new RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),s=n.substring(l).match(o);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},k=function(t,i,o){var s=-1,r=e.map(w(t)?o:i,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var i=t[1];if(n.substr(l,i.length).toLowerCase()===i.toLowerCase())return s=t[0],l+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+l},x=function(){if(n.charAt(l)!==t.charAt(o))throw"Unexpected literal at position "+l;l++};for(o=0;o<t.length;o++)if(b)"'"!==t.charAt(o)||w("'")?x():b=!1;else switch(t.charAt(o)){case"d":v=_("d");break;case"D":k("D",h,d);break;case"o":y=_("o");break;case"m":m=_("m");break;case"M":m=k("M",p,f);break;case"y":g=_("y");break;case"@":g=(a=new Date(_("@"))).getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"!":g=(a=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"'":w("'")?x():b=!0;break;default:x()}if(l<n.length&&(r=n.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),y>-1)for(m=1,v=y;;){if(v<=(s=this._getDaysInMonth(g,m-1)))break;m++,v-=s}if((a=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==v)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var i,o=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,s=(n?n.dayNames:null)||this._defaults.dayNames,r=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,a=(n?n.monthNames:null)||this._defaults.monthNames,l=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},c=function(e,t,n){var i=""+t;if(l(e))for(;i.length<n;)i="0"+i;return i},u=function(e,t,n,i){return l(e)?i[t]:n[t]},h="",d=!1;if(t)for(i=0;i<e.length;i++)if(d)"'"!==e.charAt(i)||l("'")?h+=e.charAt(i):d=!1;else switch(e.charAt(i)){case"d":h+=c("d",t.getDate(),2);break;case"D":h+=u("D",t.getDay(),o,s);break;case"o":h+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",t.getMonth()+1,2);break;case"M":h+=u("M",t.getMonth(),r,a);break;case"y":h+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=e.charAt(i)}return h},_possibleChars:function(e){var t,n="",i=!1,o=function(n){var i=t+1<e.length&&e.charAt(t+1)===n;return i&&t++,i};for(t=0;t<e.length;t++)if(i)"'"!==e.charAt(t)||o("'")?n+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":o("'")?n+="'":i=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,o=this._getDefaultDate(e),s=o,r=this._getFormatConfig(e);try{s=this.parseDate(n,i,r)||o}catch(e){i=t?"":i}e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),e.currentDay=i?
vendor: 9,183 bytes, line 94
94s.getDate():0,e.currentMonth=i?s.getMonth():0,e.currentYear=i?s.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,i){var o=null==n||""===n?i:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,o=i.getFullYear(),s=i.getMonth(),r=i.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(n);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(o,s));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(o,s))}l=a.exec(n)}return new Date(o,s,r)}(n):"number"==typeof n?isNaN(n)?i:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(n):new Date(n.getTime());return(o=o&&"Invalid Date"===o.toString()?i:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,o=e.selectedMonth,s=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),o===e.selectedMonth&&s===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var n,i,o,s,r,a,l,c,u,h,d,p,f,g,m,v,y,b,w,_,k,x,C,S,D,T,A,I,E,M,P,O,$,j,z,N,L,R,H,F=new Date,W=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),B=this._get(t,"isRTL"),q=this._get(t,"showButtonPanel"),U=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),V=this._getNumberOfMonths(t),Q=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),K=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),ee=t.drawMonth-Q,te=t.drawYear;if(ee<0&&(ee+=12,te--),J)for(n=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-V[0]*V[1]+1,J.getDate())),n=Z&&n<Z?Z:n;this._daylightSavingAdjust(new Date(te,ee,1))>n;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,i=this._get(t,"prevText"),i=Y?this.formatDate(i,this._daylightSavingAdjust(new Date(te,ee-G,1)),this._getFormatConfig(t)):i,o=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:i}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"e":"w")).text(i))[0].outerHTML:U?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:i}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"e":"w")).text(i))[0].outerHTML,s=this._get(t,"nextText"),s=Y?this.formatDate(s,this._daylightSavingAdjust(new Date(te,ee+G,1)),this._getFormatConfig(t)):s,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:s}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"w":"e")).text(s))[0].outerHTML:U?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:s}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(B?"w":"e")).text(s))[0].outerHTML,a=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?X:W,a=Y?this.formatDate(a,l,this._getFormatConfig(t)):a,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),u="",q&&(u=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(B?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(a):"").append(B?"":c)[0].outerHTML),h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,d=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),w=this._getDefaultDate(t),_="",x=0;x<V[0];x++){for(C="",this.maxRows=4,S=0;S<V[1];S++){if(D=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),T=" ui-corner-all",A="",K){if(A+="<div class='ui-datepicker-group",V[1]>1)switch(S){case 0:A+=" ui-datepicker-group-first",T=" ui-corner-"+(B?"right":"left");break;case V[1]-1:A+=" ui-datepicker-group-last",T=" ui-corner-"+(B?"left":"right");break;default:A+=" ui-datepicker-group-middle",T=""}A+="'>"}for(A+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===x?B?r:o:"")+(/all|right/.test(T)&&0===x?B?o:r:"")+this._generateMonthYearHeader(t,ee,te,Z,J,x>0||S>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",k=0;k<7;k++)I+="<th scope='col'"+((k+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[E=(k+h)%7]+"'>"+f[E]+"</span></th>";for(A+=I+"</tr></thead><tbody>",M=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),P=(this._getFirstDayOfMonth(te,ee)-h+7)%7,O=Math.ceil((P+M)/7),$=K&&this.maxRows>O?this.maxRows:O,this.maxRows=$,j=this._daylightSavingAdjust(new Date(te,ee,1-P)),z=0;z<$;z++){for(A+="<tr>",N=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(j)+"</td>":"",k=0;k<7;k++)L=v?v.apply(t.input?t.input[0]:null,[j]):[!0,""],H=(R=j.getMonth()!==ee)&&!b||!L[0]||Z&&j<Z||J&&j>J,N+="<td class='"+((k+h+6)%7>=5?" ui-datepicker-week-end":"")+(R?" ui-datepicker-other-month":"")+(j.getTime()===D.getTime()&&ee===t.selectedMonth&&t._keyEvent||w.getTime()===j.getTime()&&w.getTime()===D.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(R&&!y?"":" "+L[1]+(j.getTime()===X.getTime()?" "+this._currentClass:"")+(j.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(R&&!y||!L[2]?"":" title='"+L[2].replace(/'/g,"&#39;")+"'")+(H?"":" data-handler='selectDay' data-event='click' data-month='"+j.getMonth()+"' data-year='"+j.getFullYear()+"'")+">"+(R&&!y?"&#xa0;":H?"<span class='ui-state-default'>"+j.getDate()+"</span>":"<a class='ui-state-default"+(j.getTime()===W.getTime()?" ui-state-highlight":"")+(j.getTime()===X.getTime()?" ui-state-active":"")+(R?" ui-priority-secondary":"")+"' href='#' aria-current='"+(j.getTime()===X.getTime()?"true":"false")+"' data-date='"+j.getDate()+"'>"+j.getDate()+"</a>")+"</td>",j.setDate(j.getDate()+1),j=this._daylightSavingAdjust(j);A+=N+"</tr>"}++ee>11&&(ee=0,te++),C+=A+="</tbody></table>"+(K?"</div>"+(V[0]>0&&S===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=C}return _+=u,t._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,n,i,o,s,r,a){var l,c,u,h,d,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b=this._get(e,"selectMonthLabel"),w=this._get(e,"selectYearLabel"),_="<div class='ui-datepicker-title'>",k="";if(s||!m)k+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=i&&i.getFullYear()===n,c=o&&o.getFullYear()===n,k+="<select class='ui-datepicker-month' aria-label='"+b+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=i.getMonth())&&(!c||u<=o.getMonth())&&(k+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+a[u]+"</option>");k+="</select>"}if(y||(_+=k+(!s&&m&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",s||!v)_+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(h=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+p
vendor: 11,957 bytes, line 94
94arseInt(e,10):parseInt(e,10);return isNaN(t)?d:t},f=p(h[0]),g=Math.max(f,p(h[1]||"")),f=i?Math.max(f,i.getFullYear()):f,g=o?Math.min(g,o.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),y&&(_+=(!s&&m&&v?"":"&#xa0;")+k),_+="</div>"},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),o=e.selectedMonth+("M"===n?t:0),s=Math.min(e.selectedDay,this._getDaysInMonth(i,o))+("D"===n?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,o,s)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),o=n&&t<n?n:t;return i&&o>i?i:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var o=this._getNumberOfMonths(e),s=this._daylightSavingAdjust(new Date(n,i+(t<0?t:o[0]*o[1]),1));return t<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(e,s)},_isInRange:function(e,t){var n,i,o=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,a=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),r=parseInt(n[0],10),a=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(r+=i),n[1].match(/[+\-].*/)&&(a+=i)),(!o||t.getTime()>=o.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!a||t.getFullYear()<=a)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new h,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.0";e.datepicker,e.widget("ui.slider",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,i=this.options,o=this.element.find(".ui-slider-handle"),s=[];for(n=i.values&&i.values.length||1,o.length>n&&(o.slice(n).remove(),o=o.slice(0,n)),t=o.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=o.add(e(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,o,s,r,a,l,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(n),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(i-c.values(t));(o>n||o===n&&(t===c._lastChangedValue||c.values(t)===u.min))&&(o=n,s=e(this),r=t)}),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),a=s.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-a.left-s.width()/2,top:t.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,o,s;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=n/t)>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),o=this._valueMax()-this._valueMin(),s=this._valueMin()+i*o,this._trimAlignValue(s)},_uiHash:function(e,t,n){var i={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==t?t:this.values(e),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var i,o=this.value(),s=this.values();this._hasMultipleValues()&&(i=this.values(t?0:1),o=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(i,n):Math.max(i,n)),s[t]=n),n!==o&&!1!==this._trigger("slide",e,this._uiHash(t,n,s))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var n,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(n=this.options.values,i=arguments[0],o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,t){var n,i=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=i-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,n,i;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;return 2*Math.abs(n)>=t&&(i+=n>0?t:-t),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,i,o,s,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,u={};this._hasMultipleValues()?this.handles.each(function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[c?"animate":"css"](u,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,
941)[c?"animate":"css"]({left:n+"%"},a.animate),1===i&&l.range[c?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:a.animate})):(0===i&&l.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},a.animate),1===i&&l.range[c?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:a.animate}))),t=n}):(i=this.value(),o=this._valueMin(),s=this._valueMax(),n=s!==o?(i-o)/(s-o)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},a.animate))},_handleEvents:{keydown:function(t){var n,i,o,s=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,s)))return}switch(o=this.options.step,n=i=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case e.ui.keyCode.HOME:i=this._valueMin();break;case e.ui.keyCode.END:i=this._valueMax();break;case e.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-o)}this._slide(t,s,i)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}});
95/*!
96 * jQuery UI Slider 1.13.0
97 * http://jqueryui.com
98 *
99 * Copyright jQuery Foundation and other contributors
100 * Released under the MIT license.
101 * http://jquery.org/license
102 */}),function(e){function t(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}}if(e.support.touch="ontouchend"in document,e.support.touch){var n,i=e.ui.mouse.prototype,o=i._mouseInit,s=i._mouseDestroy;i._touchStart=function(e){!n&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(n=!0,this._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown"))},i._touchMove=function(e){n&&(this._touchMoved=!0,t(e,"mousemove"))},i._touchEnd=function(e){n&&(t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),n=!1)},i._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),o.call(t)},i._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),s.call(t)}}}(jQuery),function(){var e;jQuery.format=(e={date:{format:"MMM dd, yyyy h:mm:ss a",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],daysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortDateFormat:"M/d/yyyy h:mm a",longDateFormat:"EEEE, MMMM dd, yyyy h:mm:ss a"},number:{format:"#,##0.0#",groupingSeparator:",",decimalSeparator:"."}},{locale:function(t){if(a={a:6},t)for(var n in t)for(var i in t[n])e[n][i]=t[n][i];return e},date:function(t,n){var i,o,s=0,r=0,a=0;if(a=r="","string"==typeof t){var l=function(e,t,n,i){for(;i>=n;i--){var o=e.substring(t,t+i);if(o.length>=n&&new RegExp(/^\d+$/).test(o))return o}return null};void 0===n&&(n=e.date.format);var c=0,u=new Date,h=u.getYear(),d=u.getMonth()+1,p=1,f=u.getHours(),g=u.getMinutes(),m=u.getSeconds();u=u.getMilliseconds();for(var v,y="";s<n.length;){for(a="",r=n.charAt(s);n.charAt(s)==r&&s<n.length;)a+=n.charAt(s++);if(a.indexOf("MMMM")>-1&&a.length>4&&(a="MMMM"),a.indexOf("EEEE")>-1&&a.length>4&&(a="EEEE"),"yyyy"==a||"yy"==a||"y"==a){if("yyyy"==a&&(o=i=4),"yy"==a&&(o=i=2),"y"==a&&(i=2,o=4),null===(h=l(t,c,i,o)))return 0;
102c+=h.length,2==h.length&&(h=(h=parseInt(h,10))>70?1900+h:2e3+h)}else if("MMMM"==a){for(r=d=0,a=e.date.monthsFull.length;r<a;r++)if(v=e.date.monthsFull[r],t.substring(c,c+v.length).toLowerCase()==v.toLowerCase()){d=r+1,c+=v.length;break}if(d<1||d>12)return 0}else if("MMM"==a){for(r=d=0,a=e.date.monthsShort.length;r<a;r++)if(v=e.date.monthsShort[r],t.substring(c,c+v.length).toLowerCase()==v.toLowerCase()){d=r+1,c+=v.length;break}if(d<1||d>12)return 0}else if("EEEE"==a){for(r=0,a=e.date.daysFull.length;r<a;r++)if(v=e.date.daysFull[r],t.substring(c,c+v.length).toLowerCase()==v.toLowerCase()){c+=v.length;break}}else if("EEE"==a){for(r=0,a=e.date.daysShort.length;r<a;r++)if(v=e.date.daysShort[r],t.substring(c,c+v.length).toLowerCase()==v.toLowerCase()){c+=v.length;break}}else if("MM"==a||"M"==a){if(null===(d=l(t,c,1,2))||d<1||d>12)return 0;c+=d.length}else if("dd"==a||"d"==a){if(null===(p=l(t,c,1,2))||p<1||p>31)return 0;c+=p.length}else if("hh"==a||"h"==a){if(null===(f=l(t,c,1,2))||f<1||f>12)return 0;c+=f.length}else if("HH"==a||"H"==a){if(null===(f=l(t,c,1,2))||f<0||f>23)return 0;c+=f.length}else if("KK"==a||"K"==a){if(null===(f=l(t,c,1,2))||f<0||f>11)return 0;c+=f.length}else if("kk"==a||"k"==a){if(null===(f=l(t,c,1,2))||f<1||f>24)return 0;c+=f.length,f--}else if("mm"==a||"m"==a){if(null===(g=l(t,c,1,2))||g<0||g>59)return 0;c+=g.length}else if("ss"==a||"s"==a){if(null===(m=l(t,c,1,2))||m<0||m>59)return 0;c+=m.length}else if("SSS"==a||"SS"==a||"S"==a){if(null===(u=l(t,c,1,3))||u<0||u>999)return 0;c+=u.length}else if("a"==a){if("am"==(y=t.substring(c,c+2).toLowerCase()))y="AM";else{if("pm"!=y)return 0;y="PM"}c+=2}else{if(a!=t.substring(c,c+a.length))return 0;c+=a.length}}if(c!=t.length)return 0;if(2==d)if(h%4==0&&h%100!=0||h%400==0){if(p>29)return 0}else if(p>28)return 0;return(4==d||6==d||9==d||11==d)&&p>30?0:(f<12&&"PM"==y?f=f-0+12:f>11&&"AM"==y&&(f-=12),new Date(h,d-1,p,f,g,m,u))}for(s=function(e,t){return void 0===t||2==t?(e>=0&&e<10?"0":"")+e:e>=0&&e<10?"00"+e:e>=10&&e<100?"0"+e:e},void 0===n&&(n=e.date.format),(o=t.getYear())<1e3&&(o=String(o+1900)),l=t.getMonth()+1,c=t.getDate(),h=t.getDay(),d=t.getHours(),p=t.getMinutes(),i=t.getSeconds(),f=t.getMilliseconds(),(t={y:o,yyyy:o,yy:String(o).substring(2,4),M:l,MM:s(l),MMM:e.date.monthsShort[l-1],MMMM:e.date.monthsFull[l-1],d:c,dd:s(c),EEE:e.date.daysShort[h],EEEE:e.date.daysFull[h],H:d,HH:s(d)}).h=0===d?12:d>12?d-12:d,t.hh=s(t.h),t.k=0!==d?d:24,t.kk=s(t.k),t.K=d>11?d-12:d,t.KK=s(t.K),t.a=d>11?"PM":"AM",t.m=p,t.mm=s(p),t.s=i,t.ss=s(i),t.S=f,t.SS=s(f),t.SSS=s(f,3),o="",s=0,a=r="",i=!1;s<n.length;)if(a="","'"==(r=n.charAt(s)))s++,n.charAt(s)==r?(o+=r,s++):i=!i;else{for(;n.charAt(s)==r;)a+=n.charAt(s++);-1!=a.indexOf("MMMM")&&a.length>4&&(a="MMMM"),-1!=a.indexOf("EEEE")&&a.length>4&&(a="EEEE"),o+=void 0===t[a]||i?a:t[a]}return o},number:function(t,n){var i,o,s,r,a;if("string"==typeof t)return i=e.number.groupingSeparator,s=e.number.decimalSeparator,a=1,-1!=(r=t.indexOf(s))&&(a=Math.pow(10,t.length-r-1)),t=(t=t.replace(new RegExp("["+i+"]","g"),"")).replace(new RegExp("["+s+"]"),"."),Math.round(t*a)/a;(void 0===n||n.length<1)&&(n=e.number.format),i=",",o=n.lastIndexOf(i),s=".",r=n.indexOf(s);var l=i="";s=t<0;var c=n.substr(r+1).replace(/#/g,"").length,u=n.substr(r+1).length,h=10;if(t=Math.abs(t),-1!=r){if(l=e.number.decimalSeparator,u>0){a=1e3,h=Math.pow(h,u);var d=Math.round(parseInt(t*h*a-Math.round(t)*h*a,10)/a);d=String(d<0?Math.round(parseInt(t*h*a-parseInt(t,10)*h*a,10)/a):d);var p=t.toString().split(".");if(void 0!==p[1])for(a=0;a<u&&"0"==p[1].substr(a,1)&&a<u-1&&(d.length!=u||"0"==d.substr(0,1));a++)d="0"+d;for(a=0;a<u-l.length;a++)d+="0";for(p="",a=0;a<d.length&&(u=d.substr(a,1),!(a>=c&&"0"==u&&/^0*$/.test(d.substr(a+1))));a++)p+=u;l+=p}l==e.number.decimalSeparator&&(l="")}if(0!==r){if(i=String(""!=l?parseInt(Math.round(t*h)/h,10):Math.round(t)),t=e.number.groupingSeparator,c=0,-1!=o&&(c=-1!=r?r-o:n.length-o,c--),c>0){for(o=0,h="",a=i.length;a--;)0!==o&&o%c===0&&(h=t+h),h=i.substr(a,1)+h,o++;i=h}for(n=-1!=r?n.substr(0,r).replace(new RegExp("#|"+t,"g"),"").length:n.replace(new RegExp("#|"+t,"g"),"").length,a=i.length;a<n;a++)i="0"+i}return(s?"-":"")+(n=i+l)}})}(),$(function(){var e=jQuery.datepicker._defaults;jQuery.format.locale({date:{monthsFull:e.monthNames,monthsShort:e.monthNamesShort,daysFull:e.dayNames,daysShort:e.dayNamesShort}}
vendor: 5,292 bytes, line 102
102)}),function(e,t,n){!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.qtip&&e(jQuery)}(function(i){"use strict";function o(e,t,n,o){this.id=n,this.target=e,this.tooltip=I,this.elements={target:e},this._id=F+"-"+n,this.timers={img:{}},this.options=t,this.plugins={},this.cache={event:{},target:i(),disabled:A,attr:o,onTooltip:A,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=A}function s(e){return e===I||"object"!==i.type(e)}function r(e){return!(i.isFunction(e)||e&&e.attr||e.length||"object"===i.type(e)&&(e.jquery||e.then))}function a(e){var t,n,o,a;return s(e)?A:(s(e.metadata)&&(e.metadata={type:e.metadata}),"content"in e&&(s(t=e.content)||t.jquery||t.done?t=e.content={text:n=r(t)?A:t}:n=t.text,"ajax"in t&&(o=t.ajax,a=o&&o.once!==A,delete t.ajax,t.text=function(e,t){var s=n||i(this).attr(t.options.content.attr)||"Loading...",r=i.ajax(i.extend({},o,{context:t})).then(o.success,I,o.error).then(function(e){return e&&a&&t.set("content.text",e),e},function(e,n,i){t.destroyed||0===e.status||t.set("content.text",n+": "+i)});return a?s:(t.set("content.text",s),r)}),"title"in t&&(i.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),r(t.title||A)&&(t.title=A))),"position"in e&&s(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&s(e.show)&&(e.show=e.show.jquery?{target:e.show}:e.show===T?{ready:T}:{event:e.show}),"hide"in e&&s(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide}),"style"in e&&s(e.style)&&(e.style={classes:e.style}),i.each(H,function(){this.sanitize&&this.sanitize(e)}),e)}function l(e,t){for(var n,i=0,o=e,s=t.split(".");o=o[s[i++]];)i<s.length&&(n=o);return[n||e,s.pop()]}function c(e,t){var n,i,o;for(n in this.checks)for(i in this.checks[n])(o=new RegExp(i,"i").exec(e))&&(t.push(o),("builtin"===n||this.plugins[n])&&this.checks[n][i].apply(this.plugins[n]||this,t))}function u(e){return q.concat("").join(e?"-"+e+" ":" ")}function h(e,t){return t>0?setTimeout(i.proxy(e,this),t):void e.call(this)}function d(e){this.tooltip.hasClass(X)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=h.call(this,function(){this.toggle(T,e)},this.options.show.delay))}function p(e){if(!this.tooltip.hasClass(X)&&!this.destroyed){var t=i(e.relatedTarget),n=t.closest(U)[0]===this.tooltip[0],o=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&"mouse"===this.options.position.target&&n||this.options.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||o))try{e.preventDefault(),e.stopImmediatePropagation()}catch(e){}else this.timers.hide=h.call(this,function(){this.toggle(A,e)},this.options.hide.delay,this)}}function f(e){!this.tooltip.hasClass(X)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=h.call(this,function(){this.hide(e)},this.options.hide.inactive))}function g(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function m(e,n,o){i(t.body).delegate(e,(n.split?n:n.join("."+F+" "))+"."+F,function(){var e=k.api[i.attr(this,B)];e&&!e.disabled&&o.apply(e,arguments)})}function v(e,n,s){var r,l,c,u,h,d=i(t.body),p=e[0]===t?d:e,f=e.metadata?e.metadata(s.metadata):I,g="html5"===s.metadata.type&&f?f[s.metadata.name]:I,m=e.data(s.metadata.name||"qtipopts");try{m="string"==typeof m?i.parseJSON(m):m}catch(e){}if(l=(u=i.extend(T,{},k.defaults,s,"object"==typeof m?a(m):I,a(g||f))).position,u.id=n,"boolean"==typeof u.content.text){if(c=e.attr(u.content.attr),u.content.attr===A||!c)return A;u.content.text=c}if(l.container.length||(l.container=d),l.target===A&&(l.target=p),u.show.target===A&&(u.show.target=p),u.show.solo===T&&(u.show.solo=l.container.closest("body")),u.hide.target===A&&(u.hide.target=p),u.position.viewport===T&&(u.position.viewport=l.container),l.container=l.container.eq(0),l.at=new C(l.at,T),l.my=new C(l.my),e.data(F))if(u.overwrite)e.qtip("destroy",!0);else if(u.overwrite===A)return A;return e.attr(W,n),u.suppress&&(h=e.attr("title"))&&e.removeAttr("title").attr(J,h).attr("title",""),r=new o(e,u,n,!!c),e.data(F,r),r}function y(e){return e.charAt(0).toUpperCase()+e.slice(1)}function b(e,t){return Math.ceil(parseFloat(function(e,t){var i,o,s=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+fe.join(s+" ")+s).split(" "),a=0;if(pe[t])return e.css(pe[t]);for(;i=r[a++];)if((o=e.css(i))!==n)return pe[t]=i,o}(e,t)))}function w(e,t){this._ns="tip",this.options=t,this.offset=t.offset,this.size=[t.width,t.height],this.init(this.qtip=e)}function _(e,t){this.options=t,this._ns="-modal",this.init(this.qtip=e)}var k,x,C,S,D,T=!0,A=!1,I=null,E="x",M="y",P="width",O="height",$="top",j="left",z="bottom",N="right",L="center",R="shift",H={},F="qtip",W="data-hasqtip",B="data-qtip-id",q=["ui-widget","ui-tooltip"],U="."+F,Y="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),V=F+"-fixed",Q=F+"-default",G=F+"-focus",K=F+"-hover",X=F+"-disabled",Z="_replacedByqTip",J="oldtitle",ee={ie:function(){for(var e=4,n=t.createElement("div");(n.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e")&&n.getElementsByTagName("i")[0];e+=1);return e>4?e:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5}
vendor: 8,859 bytes, line 102
102)|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||A};(x=o.prototype)._when=function(e){return i.when.apply(i,e)},x.render=function(e){if(this.rendered||this.destroyed)return this;var t=this,n=this.options,o=this.cache,s=this.elements,r=n.content.text,a=n.content.title,l=n.content.button,c=n.position,u=(this._id,[]);return i.attr(this.target[0],"aria-describedby",this._id),o.posClass=this._createPosClass((this.position={my:c.my,at:c.at}).my),this.tooltip=s.tooltip=i("<div/>",{id:this._id,class:[F,Q,n.style.classes,o.posClass].join(" "),width:n.style.width||"",height:n.style.height||"",tracking:"mouse"===c.target&&c.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":A,"aria-describedby":this._id+"-content","aria-hidden":T}).toggleClass(X,this.disabled).attr(B,this.id).data(F,this).appendTo(c.container).append(s.content=i("<div />",{class:F+"-content",id:this._id+"-content","aria-atomic":T})),this.rendered=-1,this.positioning=T,a&&(this._createTitle(),i.isFunction(a)||u.push(this._updateTitle(a,A))),l&&this._createButton(),i.isFunction(r)||u.push(this._updateContent(r,A)),this.rendered=T,this._setWidget(),i.each(H,function(e){var n;"render"===this.initialize&&(n=this(t))&&(t.plugins[e]=n)}),this._unassignEvents(),this._assignEvents(),this._when(u).then(function(){t._trigger("render"),t.positioning=A,t.hiddenDuringWait||!n.show.ready&&!e||t.toggle(T,o.event,A),t.hiddenDuringWait=A}),k.api[this.id]=this,this},x.destroy=function(e){function t(){if(!this.destroyed){this.destroyed=T;var e,t=this.target,n=t.attr(J);for(e in this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),i.each(this.plugins,function(){this.destroy&&this.destroy()}),this.timers)clearTimeout(this.timers[e]);t.removeData(F).removeAttr(B).removeAttr(W).removeAttr("aria-describedby"),this.options.suppress&&n&&t.attr("title",n).removeAttr(J),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=I,delete k.api[this.id]}}return this.destroyed||(e===T&&"hide"!==this.triggering||!this.rendered?t.call(this):(this.tooltip.one("tooltiphidden",i.proxy(t,this)),!this.triggering&&this.hide())),this.target},S=x.checks={builtin:{"^id$":function(e,t,n,o){var s=n===T?k.nextid:n,r=F+"-"+s;s!==A&&s.length>0&&!i("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):e[t]=o},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(e,t,n){this._updateContent(n)},"^content.attr$":function(e,t,n,i){this.options.content.text===this.target.attr(i)&&this._updateContent(this.target.attr(n))},"^content.title$":function(e,t,n){return n?(n&&!this.elements.title&&this._createTitle(),void this._updateTitle(n)):this._removeTitle()},"^content.button$":function(e,t,n){this._updateButton(n)},"^content.title.(text|button)$":function(e,t,n){this.set("content."+t,n)},"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new C(n,"at"===t))},"^position.container$":function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.ready$":function(e,t,n){n&&(!this.rendered&&this.render(T)||this.toggle(T))},"^style.classes$":function(e,t,n,i){this.rendered&&this.tooltip.removeClass(i).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(Q,!!n)},"^events.(render|show|move|hide|focus|blur)$":function(e,t,n){this.rendered&&this.tooltip[(i.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var e=this.options.position;this.tooltip.attr("tracking","mouse"===e.target&&e.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},x.get=function(e){if(this.destroyed)return this;var t=l(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var te=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,ne=/^prerender|show\.ready/i;x.set=function(e,t){if(this.destroyed)return this;var n,o=this.rendered,s=A,r=this.options;return this.checks,"string"==typeof e?(n=e,(e={})[n]=t):e=i.extend({},e),i.each(e,function(t,n){if(o&&ne.test(t))delete e[t];else{var a,c=l(r,t.toLowerCase());a=c[0][c[1]],c[0][c[1]]=n&&n.nodeType?i(n):n,s=te.test(t)||s,e[t]=[c[0],c[1],n,a]}}),a(r),this.positioning=T,i.each(e,i.proxy(c,this)),this.positioning=A,this.rendered&&this.tooltip[0].offsetWidth>0&&s&&this.reposition("mouse"===r.position.target?I:this.cache.event),this},x._update=function(e,t){var n=this,o=this.cache;return this.rendered&&e?(i.isFunction(e)&&(e=e.call(this.elements.target,o.event,this)||""),i.isFunction(e.then)?(o.waiting=T,e.then(function(e){return o.waiting=A,n._update(e,t)},I,function(e){return n._update(e,t)})):e===A||!e&&""!==e?A:(e.jquery&&e.length>0?t.empty().append(e.css({display:"block",visibility:"visible"})):t.html(e),this._waitForContent(t).then(function(e){n.rendered&&n.tooltip[0].offsetWidth>0&&n.reposition(o.event,!e.length)}))):A},x._waitForContent=function(e){var t=this.cache;return t.waiting=T,(i.fn.imagesLoaded?e.imagesLoaded():i.Deferred().resolve([])).done(function(){t.waiting=A}).promise()},x._updateContent=function(e,t){this._update(e,this.elements.content,t)},x._updateTitle=function(e,t){this._update(e,this.elements.title,t)===A&&this._removeTitle(A)},x._createTitle=function(){var e=this.elements,t=this._id+"-title";e.titlebar&&this._removeTitle(),e.titlebar=i("<div />",{class:F+"-titlebar "+(this.options.style.widget?u("header"):"")}).append(e.title=i("<div />",{id:t,class:F+"-title","aria-atomic":T})).insertBefore(e.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(e){i(this).toggleClass("ui-state-active ui-state-focus","down"===e.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(e){i(this).toggleClass("ui-state-hover","mouseover"===e.type)}),this.options.content.button&&this._createButton()},x._removeTitle=function(e){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=I,e!==A&&this.reposition())},x._createPosClass=function(e){return F+"-pos-"+(e||this.options.position.my).abbrev()},x.reposition=function(n,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=T;var s,r,a,l,c=this.cache,u=this.tooltip,h=this.options.position,d=h.target,p=h.my,f=h.at,g=h.viewport,m=h.container,v=h.adjust,y=v.method.split(" "),b=u.outerWidth(A),w=u.outerHeight(A),_=0,k=0,x=u.css("position"),C={left:0,top:0},S=u[0].offsetWidth>0,D=n&&"scroll"===n.type,I=i(e),E=m[0].ownerDocument,M=this.mouse;if(i.isArray(d)&&2===d.length)f={x:j,y:$},C={left:d[0],top:d[1]};else if("mouse"===d)f={x:j,y:$},(!v.mouse||this.options.hide.distance)&&c.origin&&c.origin.pageX?n=c.origin:!n||n&&("resize"===n.type||"scroll"===n.type)?n=c.event:M&&M.pageX&&(n=M),"static"!==x&&(C=m.offset()),E.body.offsetWidth!==(e.innerWidth||E.documentElement.clientWidth)&&(r=i(t.body).offset()),C={left:n.pageX-C.left+(r&&r.left||0),top:n.pageY-C.top+(r&&r.top||0)},v.mouse&&D&&M&&(C.left-=(M.scrollX||0)-I.scrollLeft(),C.top-=(M.scrollY||0)-I.scrollTop());else{if("event"===d?n&&n.target&&"scroll"!==n.type&&"resize"!==n.type?c.target=i(n.target):n.target||(c.target=this.elements.target):"event"!==d&&(c.target=i(d.jquery?d:this.elements.target)),d=c.target,0===(d=i(d).eq(0)).length)return this;d[0]===t||d[0]===e?(_=ee.iOS?e.innerWidth:d.width(),k=ee.iOS?e.innerHeight:d.height(),d[0]===e&&(C={top:(g||d).scrollTop(),left:(g||d).scrollLeft()})):H.imagemap&&d.is("area")?s=H.imagemap(this,d,f,H.viewport?y:A):H.svg&&d&&d[0].ownerSVGElement?s=H.svg(this,d,f,H.viewport?y:A):(_=d.outerWidth(A),k=d.outerHeight(A),C=d.offset()),s&&(_=s.width,k=s.height,r=s.offset,C=s.position),C=this.reposition.offset(d,C,m),(ee.iOS>3.1&&ee.iOS<4.1||ee.iOS>=4.3&&ee.iOS<4.33||!ee.iOS&&"fixed"===x)&&(C.left-=I.scrollLeft(),C.top-=I.scrollTop()),(!s||s&&s.adjustable!==A)&&(C.left+=f.x===N?_:f.x===L?_/2:0,C.top+=f.y===z?k:f.y===L?k/2:0)}return C.left+=v.x+(p.x===N?-b:p.x===L?-b/2:0),C.top+=v.y+(p.y===z?-w:p.y===L?-w/2:0),H.viewport?(a=C.adjusted=H.viewport(this,C,h,_,k,b,w),r&&a.left&&(C.left+=r.left),r&&a.top&&(C.top+=r.top),a.my&&(this.position.my=a.my)):C.adjusted={left:0,top:0},c.posClass!==(l=this._createPosClass(this.position.my))&&u.removeClass(c.posClass).addClass(c.posClass=l),this._trigger("move",[C,g.elem||g],n)?(delete C.adjusted,o===A||!S||isNaN(C.left)||isNaN(C.top)||"mouse"===d||!i.isFunction(h.effect)?u.css(C):i.isFunction(h.effect)&&(h.effect.call(u,this,i.extend({}
vendor: 4,718 bytes, line 102
102,C)),u.queue(function(e){i(this).css({opacity:"",height:""}),ee.ie&&this.style.removeAttribute("filter"),e()})),this.positioning=A,this):this},x.reposition.offset=function(e,n,o){function s(e,t){n.left+=t*e.scrollLeft(),n.top+=t*e.scrollTop()}if(!o[0])return n;var r,a,l,c,u=i(e[0].ownerDocument),h=!!ee.ie&&"CSS1Compat"!==t.compatMode,d=o[0];do{"static"!==(a=i.css(d,"position"))&&("fixed"===a?(l=d.getBoundingClientRect(),s(u,-1)):((l=i(d).position()).left+=parseFloat(i.css(d,"borderLeftWidth"))||0,l.top+=parseFloat(i.css(d,"borderTopWidth"))||0),n.left-=l.left+(parseFloat(i.css(d,"marginLeft"))||0),n.top-=l.top+(parseFloat(i.css(d,"marginTop"))||0),r||"hidden"===(c=i.css(d,"overflow"))||"visible"===c||(r=i(d)))}while(d=d.offsetParent);return r&&(r[0]!==u[0]||h)&&s(r,1),n};var ie=(C=x.reposition.Corner=function(e,t){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,L).toLowerCase(),this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!t;var n=e.charAt(0);this.precedance="t"===n||"b"===n?M:E}).prototype;ie.invert=function(e,t){this[e]=this[e]===j?N:this[e]===N?j:t||this[e]},ie.string=function(e){var t=this.x,n=this.y,i=t!==n?"center"===t||"center"!==n&&(this.precedance===M||this.forceY)?[n,t]:[t,n]:[t];return!1!==e?i.join(" "):i},ie.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")},ie.clone=function(){return new C(this.string(),this.forceY)},x.toggle=function(e,n){var o=this.cache,s=this.options,r=this.tooltip;if(n){if(/over|enter/.test(n.type)&&o.event&&/out|leave/.test(o.event.type)&&s.show.target.add(n.target).length===s.show.target.length&&r.has(n.relatedTarget).length)return this;o.event=i.event.fix(n)}if(this.waiting&&!e&&(this.hiddenDuringWait=T),!this.rendered)return e?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,l,c,u=e?"show":"hide",h=this.options[u],d=(this.options[e?"hide":"show"],this.options.position),p=this.options.content,f=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=e||1===h.target.length,v=!n||h.target.length<2||o.target[0]===n.target;return(typeof e).search("boolean|number")&&(e=!g),l=(a=!r.is(":animated")&&g===e&&v)?I:!!this._trigger(u,[90]),this.destroyed||(l!==A&&e&&this.focus(n),!l||a||(i.attr(r[0],"aria-hidden",!e),e?(this.mouse&&(o.origin=i.event.fix(this.mouse)),i.isFunction(p.text)&&this._updateContent(p.text,A),i.isFunction(p.title)&&this._updateTitle(p.title,A),!D&&"mouse"===d.target&&d.adjust.mouse&&(i(t).bind("mousemove."+F,this._storeMouse),D=T),f||r.css("width",r.outerWidth(A)),this.reposition(n,arguments[2]),f||r.css("width",""),h.solo&&("string"==typeof h.solo?i(h.solo):i(U,h.solo)).not(r).not(h.target).qtip("hide",i.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,D&&!i(U+'[tracking="true"]:visible',h.solo).not(r).length&&(i(t).unbind("mousemove."+F),D=A),this.blur(n)),c=i.proxy(function(){e?(ee.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof h.autofocus&&i(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(e?"visible":"hidden")},this),h.effect===A||m===A?(r[u](),c()):i.isFunction(h.effect)?(r.stop(1,1),h.effect.call(r,this),r.queue("fx",function(e){c(),e()})):r.fadeTo(90,e?1:0,c),e&&h.target.trigger("qtip-"+this.id+"-inactive"))),this},x.show=function(e){return this.toggle(T,e)},x.hide=function(e){return this.toggle(A,e)},x.focus=function(e){if(!this.rendered||this.destroyed)return this;var t=i(U),n=this.tooltip,o=parseInt(n[0].style.zIndex,10),s=k.zindex+t.length;return n.hasClass(G)||this._trigger("focus",[s],e)&&(o!==s&&(t.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+G).qtip("blur",e)),n.addClass(G)[0].style.zIndex=s),this},x.blur=function(e){return!this.rendered||this.destroyed||(this.tooltip.removeClass(G),this._trigger("blur",[this.tooltip.css("zIndex")],e)),this},x.disable=function(e){return this.destroyed||("toggle"===e?e=!(this.rendered?this.tooltip.hasClass(X):this.disabled):"boolean"!=typeof e&&(e=T),this.rendered&&this.tooltip.toggleClass(X,e).attr("aria-disabled",e),this.disabled=!!e),this},x.enable=function(){return this.disable(A)},x._createButton=function(){var e=this,t=this.elements,n=t.tooltip,o=this.options.content.button,s="string"==typeof o?o:"Close tooltip";t.button&&t.button.remove(),t.button=o.jquery?o:i("<a />",{class:"qtip-close "+(this.options.style.widget?"":F+"-icon"),title:s,"aria-label":s}).prepend(i("<span />",{class:"ui-icon ui-icon-close",html:"&times;"}
vendor: 4,252 bytes, line 102
102)),t.button.appendTo(t.titlebar||n).attr("role","button").click(function(t){return n.hasClass(X)||e.hide(t),A})},x._updateButton=function(e){if(!this.rendered)return A;var t=this.elements.button;e?this._createButton():t.remove()},x._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,i=n.hasClass(X);n.removeClass(X),X=e?"ui-state-disabled":"qtip-disabled",n.toggleClass(X,i),n.toggleClass("ui-helper-reset "+u(),e).toggleClass(Q,this.options.style.def&&!e),t.content&&t.content.toggleClass(u("content"),e),t.titlebar&&t.titlebar.toggleClass(u("header"),e),t.button&&t.button.toggleClass(F+"-icon",!e)},x._storeMouse=function(e){return(this.mouse=i.event.fix(e)).type="mousemove",this},x._bind=function(e,t,n,o,s){if(e&&n&&t.length){var r="."+this._id+(o?"-"+o:"");return i(e).bind((t.split?t:t.join(r+" "))+r,i.proxy(n,s||this)),this}},x._unbind=function(e,t){return e&&i(e).unbind("."+this._id+(t?"-"+t:"")),this},x._trigger=function(e,t,n){var o=i.Event("tooltip"+e);return o.originalEvent=n&&i.extend({},n)||this.cache.event||I,this.triggering=e,this.tooltip.trigger(o,[this].concat(t||[])),this.triggering=A,!o.isDefaultPrevented()},x._bindEvents=function(e,t,n,o,s,r){var a=n.filter(o).add(o.filter(n)),l=[];a.length&&(i.each(t,function(t,n){var o=i.inArray(n,e);o>-1&&l.push(e.splice(o,1)[0])}),l.length&&(this._bind(a,l,function(e){(!!this.rendered&&this.tooltip[0].offsetWidth>0?r:s).call(this,e)}),n=n.not(a),o=o.not(a))),this._bind(n,e,s),this._bind(o,t,r)},x._assignInitialEvents=function(e){function t(e){return this.disabled||this.destroyed?A:(this.cache.event=e&&i.event.fix(e),this.cache.target=e&&i(e.target),clearTimeout(this.timers.show),void(this.timers.show=h.call(this,function(){this.render("object"==typeof e||n.show.ready)},n.prerender?0:n.show.delay)))}var n=this.options,o=n.show.target,s=n.hide.target,r=n.show.event?i.trim(""+n.show.event).split(" "):[],a=n.hide.event?i.trim(""+n.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(n.show.event)&&!/mouse(out|leave)/i.test(n.hide.event)&&a.push("mouseleave"),this._bind(o,"mousemove",function(e){this._storeMouse(e),this.cache.onTarget=T}),this._bindEvents(r,a,o,s,t,function(){return this.timers?void clearTimeout(this.timers.show):A}),(n.show.ready||n.prerender)&&t.call(this,e)},x._assignEvents=function(){var n=this,o=this.options,s=o.position,r=this.tooltip,a=o.show.target,l=o.hide.target,c=s.container,u=s.viewport,h=i(t),m=(i(t.body),i(e)),v=o.show.event?i.trim(""+o.show.event).split(" "):[],y=o.hide.event?i.trim(""+o.hide.event).split(" "):[];i.each(o.events,function(e,t){n._bind(r,"toggle"===e?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,r)}),/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(h,["mouseout","blur"],function(e){/select|option/.test(e.target.nodeName)||e.relatedTarget||this.hide(e)}),o.hide.fixed?l=l.add(r.addClass(V)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(l,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(c.closest("html"),["mousedown","touchstart"],function(e){var t=i(e.target),n=this.rendered&&!this.tooltip.hasClass(X)&&this.tooltip[0].offsetWidth>0,o=t.parents(U).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||o||this.target.has(t[0]).length||!n||this.hide(e)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",f,"inactive"),this._bind(l.add(r),k.inactiveEvents,f)),this._bindEvents(v,y,a,l,d,p),this._bind(a.add(r),"mousemove",function(e){if("number"==typeof o.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,i=Math.abs;(i(e.pageX-t.pageX)>=n||i(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)}),"mouse"===s.target&&s.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(e){return this.cache?void(this.cache.onTarget="mouseenter"===e.type):A}),this._bind(h,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(X)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})),(s.adjust.resize||u.length)&&this._bind(i.event.special.resize?u:m,"resize",g),s.adju
vendor: 6,561 bytes, line 102
102st.scroll&&this._bind(m.add(s.container),"scroll",g)},x._unassignEvents=function(){var n=this.options,o=n.show.target,s=n.hide.target,r=i.grep([this.elements.target[0],this.rendered&&this.tooltip[0],n.position.container[0],n.position.viewport[0],n.position.container.closest("html")[0],e,t],function(e){return"object"==typeof e});o&&o.toArray&&(r=r.concat(o.toArray())),s&&s.toArray&&(r=r.concat(s.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},i(function(){m(U,["mouseenter","mouseleave"],function(e){var t="mouseenter"===e.type,n=i(e.currentTarget),o=i(e.relatedTarget||e.target),s=this.options;t?(this.focus(e),n.hasClass(V)&&!n.hasClass(X)&&clearTimeout(this.timers.hide)):"mouse"===s.position.target&&s.position.adjust.mouse&&s.hide.event&&s.show.target&&!o.closest(s.show.target[0]).length&&this.hide(e),n.toggleClass(K,t)}),m("["+B+"]",Y,f)}),k=i.fn.qtip=function(e,t,o){var s=(""+e).toLowerCase(),r=I,l=i.makeArray(arguments).slice(1),c=l[l.length-1],u=this[0]?i.data(this[0],F):I;return!arguments.length&&u||"api"===s?u:"string"==typeof e?(this.each(function(){var e=i.data(this,F);if(!e)return T;if(c&&c.timeStamp&&(e.cache.event=c),!t||"option"!==s&&"options"!==s)e[s]&&e[s].apply(e,l);else{if(o===n&&!i.isPlainObject(t))return r=e.get(t),A;e.set(t,o)}}),r!==I?r:this):"object"!=typeof e&&arguments.length?void 0:(u=a(i.extend(T,{},e)),this.each(function(e){var t,n;return n=!(n=i.isArray(u.id)?u.id[e]:u.id)||n===A||n.length<1||k.api[n]?k.nextid++:n,(t=v(i(this),n,u))===A?T:(k.api[n]=t,i.each(H,function(){"initialize"===this.initialize&&this(t)}),void t._assignInitialEvents(c))}))},i.qtip=o,k.api={},i.each({attr:function(e,t){if(this.length){var n=this[0],o="title",s=i.data(n,"qtip");if(e===o&&s&&"object"==typeof s&&s.options.suppress)return arguments.length<2?i.attr(n,J):(s&&s.options.content.attr===o&&s.cache.attr&&s.set("content.text",t),this.attr(J,t))}return i.fn["attr"+Z].apply(this,arguments)},clone:function(e){var t=(i([]),i.fn["clone"+Z].apply(this,arguments));return e||t.filter("["+J+"]").attr("title",function(){return i.attr(this,J)}).removeAttr(J),t}},function(e,t){if(!t||i.fn[e+Z])return T;var n=i.fn[e+Z]=i.fn[e];i.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),i.ui||(i["cleanData"+Z]=i.cleanData,i.cleanData=function(e){for(var t,n=0;(t=i(e[n])).length;n++)if(t.attr(W))try{t.triggerHandler("removeqtip")}catch(e){}i["cleanData"+Z].apply(this,arguments)}),k.version="2.2.1",k.nextid=0,k.inactiveEvents=Y,k.zindex=15e3,k.defaults={prerender:A,id:A,overwrite:T,suppress:T,content:{text:T,attr:"title",title:A,button:A},position:{my:"top left",at:"bottom right",target:A,container:A,viewport:A,adjust:{x:0,y:0,mouse:T,scroll:T,resize:T,method:"flipinvert flipinvert"},effect:function(e,t){i(this).animate(t,{duration:200,queue:A})}},show:{target:A,event:"mouseenter",effect:T,delay:90,solo:A,ready:A,autofocus:A},hide:{target:A,event:"mouseleave",effect:T,delay:0,fixed:A,inactive:A,leave:"window",distance:A},style:{classes:"",widget:A,width:A,height:A,def:T},events:{render:I,move:I,show:I,hide:I,toggle:I,visible:I,hidden:I,focus:I,blur:I}};var oe,se="margin",re="border",ae="color",le="background-color",ce="transparent",ue=" !important",he=!!t.createElement("canvas").getContext,de=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,pe={},fe=["Webkit","O","Moz","ms"];if(he)var ge=e.devicePixelRatio||1,me=function(){var e=t.createElement("canvas").getContext("2d");return e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1}(),ve=ge/me;else var ye=function(e,t,n){return"<qtipvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'};i.extend(w.prototype,{init:function(e){var t,n;n=this.element=e.elements.tip=i("<div />",{class:F+"-tip"}).prependTo(e.tooltip),he?((t=i("<canvas />").appendTo(this.element)[0].getContext("2d")).lineJoin="miter",t.miterLimit=1e5,t.save()):(t=ye("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),e._bind(i("*",n).add(n),["click","mousedown"],function(e){e.stopPropagation()},this._ns)),e._bind(e.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(e){var t=this.qtip.elements.titlebar;return t&&(e.y===$||e.y===L&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(T))},_parseCorner:function(e){var t=this.qtip.options.position.my;return e===A||t===A?e=A:e===T?e=new C(t.string()):e.string||((e=new C(e)).fixed=T),e},_parseWidth:function(e,t,n){var i=this.qtip.elements,o=re+y(t)+"Width";return(n?b(n,o):b(i.content,o)||b(this._useTitle(e)&&i.titlebar||i.content,o)||b(i.tooltip,o))||0},_parseRadius:function(e){var t=this.qtip.elements,n=re+y(e.y)+y(e.x)+"Radius";return ee.ie<9?0:b(this._useTitle(e)&&t.titlebar||t.content,n)||b(t.tooltip,n)||0},_invalidColour:function(e,t,n){var i=e.css(t);return!i||n&&i===e.css(n)||de.test(i)?A:i},_parseColours:function(e){var t=this.qtip.elements,n=this.element.css("cssText",""),o=re+y(e[e.precedance])+y(ae),s=this._useTitle(e)&&t.titlebar||t.content,r=this._invalidColour,a=[];return a[0]=r(n,le)||r(s,le)||r(t.content,le)||r(t.tooltip,le)||n.css(le),a[1]=r(n,o,ae)||r(s,o,ae)||r(t.content,o,ae)||r(t.tooltip,o,ae)||t.tooltip.css(o),i("*",n).add(n).css("cssText",le+":"+ce+ue+";"+re+":0"+ue+";"),a},_calculateSize:function(e){var t,n,i=e.precedance===M,o=this.options.width,s=this.options.height,r="c"===e.abbrev(),a=(i?o:s)*(r?.5:1),l=Math.pow,c=Math.round,u=Math.sqrt(l(a,2)+l(s,2)),h=[this.border/a*u,this.border/s*u];return h[2]=Math.sqrt(l(h[0],2)-l(this.border,2)),h[3]=Math.sqrt(l(h[1],2)-l(this.border,2)),n=[c((t=(u+h[2]+h[3]+(r?0:h[0]))/u)*o),c(t*s)],i?n:n.reverse()},_calculateTip:function(e,t,n){n=n||1;var i=(t=t||this.size)[0]*n,o=t[1]*n,s=Math.ceil(i/2),r=Math.ceil(o/2),a={br:[0,0,i,o,i,0],bl:[0,0,i,0,0,o],tr:[0,o,i,0,i,o],tl:[0,0,0,o,i,o],tc:[0,o,s,0,i,o],bc:[0,0,i,0,s,o],rc:[0,0,i,r,0,o],lc:[i,0,i,o,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[e.abbrev()]},_drawCoords:function(e,t){e.beginPath(),e.moveTo(t[0],t[1]),e.lineTo(t[2],t[3]),e.lineTo(t[4],t[5]),e.closePath()},create:function(){var e=this.corner=(he||ee.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&
vendor: 5,088 bytes, line 102
102(this.qtip.cache.corner=e.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,n){if(!this.enabled)return this;var o,s,r,a,l,c,u,h,d=this.qtip.elements,p=this.element,f=p.children(),g=this.options,m=this.size,v=g.mimic,y=Math.round;t||(t=this.qtip.cache.corner||this.corner),v===A?v=t:((v=new C(v)).precedance=t.precedance,"inherit"===v.x?v.x=t.x:"inherit"===v.y?v.y=t.y:v.x===v.y&&(v[t.precedance]=t[t.precedance])),s=v.precedance,t.precedance===E?this._swapDimensions():this._resetDimensions(),(o=this.color=this._parseColours(t))[1]!==ce?(h=this.border=this._parseWidth(t,t[t.precedance]),g.border&&1>h&&!de.test(o[1])&&(o[0]=o[1]),this.border=h=g.border!==T?g.border:h):this.border=h=0,u=this.size=this._calculateSize(t),p.css({width:u[0],height:u[1],lineHeight:u[1]+"px"}),c=t.precedance===M?[y(v.x===j?h:v.x===N?u[0]-m[0]-h:(u[0]-m[0])/2),y(v.y===$?u[1]-m[1]:0)]:[y(v.x===j?u[0]-m[0]:0),y(v.y===$?h:v.y===z?u[1]-m[1]-h:(u[1]-m[1])/2)],he?((r=f[0].getContext("2d")).restore(),r.save(),r.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,ve),l=this._calculateTip(v,this.size,ve),f.attr(P,u[0]*ve).attr(O,u[1]*ve),f.css(P,u[0]).css(O,u[1]),this._drawCoords(r,l),r.fillStyle=o[1],r.fill(),r.translate(c[0]*ve,c[1]*ve),this._drawCoords(r,a),r.fillStyle=o[0],r.fill()):(a="m"+(a=this._calculateTip(v))[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",c[2]=h&&/^(r|b)/i.test(t.string())?8===ee.ie?2:1:0,f.css({coordsize:u[0]+h+" "+(u[1]+h),antialias:""+(v.string().indexOf(L)>-1),left:c[0]-c[2]*Number(s===E),top:c[1]-c[2]*Number(s===M),width:u[0]+h,height:u[1]+h}).each(function(e){var t=i(this);t[t.prop?"prop":"attr"]({coordsize:u[0]+h+" "+(u[1]+h),path:a,fillcolor:o[0],filled:!!e,stroked:!e}).toggle(!(!h&&!e)),!e&&t.html(ye("stroke",'weight="'+2*h+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),e.opera&&setTimeout(function(){d.tip.css({display:"inline-block",visibility:"visible"})},1),n!==A&&this.calculate(t,u)},calculate:function(e,t){if(!this.enabled)return A;var n,o,s=this,r=this.qtip.elements,a=this.element,l=this.options.offset,c=(r.tooltip.hasClass("ui-widget"),{});return e=e||this.corner,n=e.precedance,t=t||this._calculateSize(e),o=[e.x,e.y],n===E&&o.reverse(),i.each(o,function(i,o){var a,u,h;o===L?(c[a=n===M?j:$]="50%",c[se+"-"+a]=-Math.round(t[n===M?0:1]/2)+l):(a=s._parseWidth(e,o,r.tooltip),u=s._parseWidth(e,o,r.content),h=s._parseRadius(e),c[o]=Math.max(-s.border,i?u:l+(h>a?h:-a)))}),c[e[n]]-=t[n===E?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(c),c},reposition:function(e,t,i){function o(e,t,n,i,o){e===R&&c.precedance===t&&u[i]&&c[n]!==L?c.precedance=c.precedance===E?M:E:e!==R&&u[i]&&(c[t]=c[t]===L?u[i]>0?i:o:c[t]===i?o:i)}function s(e,t,o){c[e]===L?g[se+"-"+t]=f[e]=r[se+"-"+t]-u[t]:(a=r[o]!==n?[u[t],-r[t]]:[-u[t],r[t]],(f[e]=Math.max(a[0],a[1]))>a[0]&&(i[t]-=u[t],f[t]=A),g[r[o]!==n?o:t]=f[e])}if(this.enabled){var r,a,l=t.cache,c=this.corner.clone(),u=i.adjusted,h=t.options.position.adjust.method.split(" "),d=h[0],p=h[1]||h[0],f={left:A,top:A,x:0,y:0},g={};this.corner.fixed!==T&&(o(d,E,M,j,N),o(p,M,E,$,z),(c.string()!==l.corner.string()||l.cornerTop!==u.top||l.cornerLeft!==u.left)&&this.update(c,A)),(r=this.calculate(c)).right!==n&&(r.left=-r.right),r.bottom!==n&&(r.top=-r.bottom),r.user=this.offset,(f.left=d===R&&!!u.left)&&s(E,j,N),(f.top=p===R&&!!u.top)&&s(M,$,z),this.element.css(g).toggle(!(f.x&&f.y||c.x===L&&f.y||c.y===L&&f.x)),i.left-=r.left.charAt?r.user:d!==R||f.top||!f.left&&!f.top?r.left+this.border:0,i.top-=r.top.charAt?r.user:p!==R||f.left||!f.left&&!f.top?r.top+this.border:0,l.cornerLeft=u.left,l.cornerTop=u.top,l.corner=c.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),oe=H.tip=function(e){return new w(e,e.options.style.tip)},oe.initialize="render",oe.sanitize=function(e){if(e.style&&"tip"in e.style){var t=e.style.tip;"object"!=typeof t&&(t=e.style.tip={corner:t}),/string|boolean/i.test(typeof t.corner)||(t.corner=T)}},S.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(e){this.size=[e.width,e.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},i.extend(T,k.defaults,{style:{tip:{corner:T,mimic:A,width:6,height:6,border:T,offset:0}}}),H.viewport=function(n,i,o,s,r,a,l){function c(e,t,n,o,s,r,a,l,c){var u=i[s],y=w[e],b=_[e],k=n===R,x=y===s?c:y===r?-c:-c/2,C=b===s?l:b===r?-l:-l/2,S=m[s]+v[s]-(p?0:d[s]),D=S-u,T=u+c-(a===P?f:g)-S,A=x-(w.precedance===e||y===w[t]?C:0)-(b===L?l/2:0);return k?(A=(y===s?1:-1)*x,i[s]+=D>0?D:T>0?-T:0,i[s]=Math.max(-d[s]+v[s],u-A,Math.min(Math.max(-d[s]+v[s]+(a===P?f:g),u+A),i[s],"center"===y?u-x:1e9))):(o*="flipinvert"===n?2:0,D>0&&(y!==s||T>0)?(i[s]-=A+o,h.invert(e,s)):T>0&&(y!==r||D>0)&&(i[s]-=(y===L?-A:A)+o,h.invert(e,r)),i[s]<m&&-i[s]>T&&(i[s]=u,h=w.clone())),i[s]-u}var u,h,d,p,f,g,m,v,y=o.target,b=n.elements.tooltip,w=o.my,_=o.at,k=o.adju
vendor: 6,376 bytes, line 102
102st,x=k.method.split(" "),C=x[0],S=x[1]||x[0],D=o.viewport,T=o.container,I=(n.cache,{left:0,top:0});return D.jquery&&y[0]!==e&&y[0]!==t.body&&"none"!==k.method?(d=T.offset()||I,p="static"===T.css("position"),u="fixed"===b.css("position"),f=D[0]===e?D.width():D.outerWidth(A),g=D[0]===e?D.height():D.outerHeight(A),m={left:u?0:D.scrollLeft(),top:u?0:D.scrollTop()},v=D.offset()||I,("shift"!==C||"shift"!==S)&&(h=w.clone()),I={left:"none"!==C?c(E,M,C,k.x,j,N,P,s,a):0,top:"none"!==S?c(M,E,S,k.y,$,z,O,r,l):0,my:h}):I},H.polys={polygon:function(e,t){var n,i,o,s={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:A},r=0,a=[],l=1,c=1,u=0,h=0;for(r=e.length;r--;)(n=[parseInt(e[--r],10),parseInt(e[r+1],10)])[0]>s.position.right&&(s.position.right=n[0]),n[0]<s.position.left&&(s.position.left=n[0]),n[1]>s.position.bottom&&(s.position.bottom=n[1]),n[1]<s.position.top&&(s.position.top=n[1]),a.push(n);if(i=s.width=Math.abs(s.position.right-s.position.left),o=s.height=Math.abs(s.position.bottom-s.position.top),"c"===t.abbrev())s.position={left:s.position.left+s.width/2,top:s.position.top+s.height/2};else{for(;i>0&&o>0&&l>0&&c>0;)for(i=Math.floor(i/2),o=Math.floor(o/2),t.x===j?l=i:t.x===N?l=s.width-i:l+=Math.floor(i/2),t.y===$?c=o:t.y===z?c=s.height-o:c+=Math.floor(o/2),r=a.length;r--&&!(a.length<2);)u=a[r][0]-s.position.left,h=a[r][1]-s.position.top,(t.x===j&&u>=l||t.x===N&&l>=u||t.x===L&&(l>u||u>s.width-l)||t.y===$&&h>=c||t.y===z&&c>=h||t.y===L&&(c>h||h>s.height-c))&&a.splice(r,1);s.position={left:a[0][0],top:a[0][1]}}return s},rect:function(e,t,n,i){return{width:Math.abs(n-e),height:Math.abs(i-t),position:{left:Math.min(e,n),top:Math.min(t,i)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(e,t,n,i,o){var s=H.polys._angles[o.abbrev()],r=0===s?0:n*Math.cos(s*Math.PI),a=i*Math.sin(s*Math.PI);return{width:2*n-Math.abs(r),height:2*i-Math.abs(a),position:{left:e+r,top:t+a},adjustable:A}},circle:function(e,t,n,i){return H.polys.ellipse(e,t,n,n,i)}},H.imagemap=function(e,t,n){t.jquery||(t=i(t));var o,s,r,a,l,c=(t.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),u=i('img[usemap="#'+t.parent("map").attr("name")+'"]'),h=i.trim(t.attr("coords")).replace(/,$/,"").split(",");if(!u.length)return A;if("polygon"===c)a=H.polys.polygon(h,n);else{if(!H.polys[c])return A;for(r=-1,l=h.length,s=[];++r<l;)s.push(parseInt(h[r],10));a=H.polys[c].apply(this,s.concat(n))}return(o=u.offset()).left+=Math.ceil((u.outerWidth(A)-u.width())/2),o.top+=Math.ceil((u.outerHeight(A)-u.height())/2),a.position.left+=o.left,a.position.top+=o.top,a};var be,we,_e="qtip-modal",ke="."+_e;we=function(){function e(e){l.length<1&&e.length?e.not("body").blur():l.first().focus()}function n(t){if(r.is(":visible")){var n=i(t.target),s=o.tooltip,a=n.closest(U);(a.length<1?A:parseInt(a[0].style.zIndex,10)>parseInt(s[0].style.zIndex,10))||n.closest(U)[0]===s[0]||e(n),t.target===l[l.length-1]}}var o,s,r,a=this,l={};i.extend(a,{init:function(){return r=a.elem=i("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return A}}).hide(),i(t.body).bind("focusin"+ke,n),i(t).bind("keydown"+ke,function(e){o&&o.options.show.modal.escape&&27===e.keyCode&&o.hide(e)}),r.bind("click"+ke,function(e){o&&o.options.show.modal.blur&&o.hide(e)}),a},update:function(e){o=e,l=e.options.show.modal.stealfocus!==A?e.tooltip.find("*").filter(function(){return function(e){if(i.expr[":"].focusable)return i.expr[":"].focusable;var t,n,o,s=!isNaN(i.attr(e,"tabindex")),r=e.nodeName&&e.nodeName.toLowerCase();return"area"===r?(n=(t=e.parentNode).name,!(!e.href||!n||"map"!==t.nodeName.toLowerCase())&&!!(o=i("img[usemap=#"+n+"]")[0])&&o.is(":visible")):/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r&&e.href||s}(this)}):[]},toggle:function(n,l,c){var u=(i(t.body),n.tooltip),h=n.options.show.modal,d=h.effect,p=l?"show":"hide",f=r.is(":visible"),g=i(ke).filter(":visible:not(:animated)").not(u);return a.update(n),l&&h.stealfocus!==A&&e(i(":focus")),r.toggleClass("blurs",h.blur),l&&r.appendTo(t.body),r.is(":animated")&&f===l&&s!==A||!l&&g.length||(r.stop(T,A),i.isFunction(d)?d.call(r,l):d===A?r[p]():r.fadeTo(parseInt(c,10)||90,l?1:0,function(){l||r.hide()}),l||r.queue(function(e){r.css({left:"",top:""}),i(ke).length||r.detach(),e()}),s=l,o.destroyed&&(o=I)),a}}),a.init()},we=new we,i.extend(_.prototype,{init:function(e){var t=e.tooltip;return this.options.on?(e.elements.overlay=we.elem,t.addClass(_e).css("z-index",k.modal_zindex+i(ke).length),e._bind(t,["tooltipshow","tooltiphide"],function(e,n,o){var s=e.originalEvent;if(e.target===t[0])if(s&&"tooltiphide"===e.type&&/mouse(leave|enter)/.test(s.type)&&i(s.relatedTarget).closest(we.elem[0]).length)try{e.preventDefault()}catch(e){}else(!s||s&&"tooltipsolo"!==s.type)&&this.toggle(e,"tooltipshow"===e.type,o)},this._ns,this),e._bind(t,"tooltipfocus",function(e,n){if(!e.isDefaultPrevented()&&e.target===t[0]){var o=i(ke),s=k.modal_zindex+o.length,r=parseInt(t[0].style.zIndex,10);we.elem[0].style.zIndex=s-1,o.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),o.filter("."+G).qtip("blur",e.originalEvent),t.addClass(G)[0].style.zIndex=s,we.update(n);try{e.preventDefault()}catch(e){}}},this._ns,this),void e._bind(t,"tooltiphide",function(e){e.target===t[0]&&i(ke).filter(":visible").not(t).last().qtip("focus",e)},this._ns,this)):this},toggle:function(e,t,n){return e&&e.isDefaultPrevented()?this:void we.toggle(this.qtip,!!t,n)},destroy:function(){this.qtip.tooltip.removeClass(_e),this.qtip._unbind(this.qtip.tooltip,this._ns),we.toggle(this.qtip,A),delete this.qtip.elements.overlay}}),be=H.modal=function(e){return new _(e,e.options.show.modal)},be.sanitize=function(e){e.show&&("object"!=typeof e.show.modal?e.show.modal={on:!!e.show.modal}:void 0===e.show.modal.on&&(e.show.modal.on=T))},k.modal_zindex=k.zindex-200,be.initialize="render",S.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},i.extend(T,k.defaults,{show:{modal:{on:A,effect:T,blur:T,stealfocus:T,escape:T}}})})}(window,document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";var e={title:"",titleText:"",text:"",html:"",type:null,toast:!1,
102customClass:"",target:"body",backdrop:!0,animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onBeforeOpen:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},t=["useRejections","expectRejections"],n=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},i=n(["container","shown","iosfix","popup","modal","no-backdrop","toast","toast-shown","overlay","fade","show","hide","noanimation","close","title","content","contentwrapper","buttonswrapper","confirm","cancel","icon","image","input","has-input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-left","top-right","center","center-left","center-right","bottom","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),o=n(["success","warning","info","question","error"]),s=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var n="#",i=0;i<3;i++){var o=parseInt(e.substr(2*i,2),16);n+=("00"+(o=Math.round(Math.min(Math.max(0,o+o*t),255)).toString(16))).substr(o.length)}return n},r=function(e){return void 0!==e},a=function(e){console.warn("SweetAlert2: "+e)},l=function(e){console.error("SweetAlert2: "+e)},c=[],u=function(e){-1===c.indexOf(e)&&(c.push(e),a(e))},h="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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},p=d({},e),f=[],g=void 0,m=void 0;r(Promise)||l("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/limonte/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");var v=function(e){for(var t in e)w.isValidParameter(t)||a('Unknown parameter "'+t+'"'),w.isDeprecatedParameter(t)&&u('The parameter "'+t+'" is deprecated and will be removed in the next major release.')},y=function(t){("string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(a('Target parameter is not valid, defaulting to "body"'),t.target="body");var n=void 0,s=S(),r="string"==typeof t.target?document.querySelector(t.target):t.target;n=s&&r&&s.parentNode!==r.parentNode?k(t):s||k(t);var c=t.width===e.width&&t.toast?"auto":t.width;n.style.width="number"==typeof c?c+"px":c;var u=t.padding===e.padding&&t.toast?"inherit":t.padding;n.style.padding="number"==typeof u?u+"px":u,n.style.background=t.background;for(var d=n.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),p=0;p<d.length;p++)d[p].style.background=t.background;var f=C(),g=A(),m=I(),v=j(),y=O(),b=$(),_=z();if(t.titleText?g.innerText=t.titleText:g.innerHTML=t.title.split("\n").join("<br />"),t.backdrop||W(document.body,i["no-backdrop"]),t.text||t.html){if("object"===h(t.html))if(m.innerHTML="",0 in t.html)for(var x=0;x in t.html;x++)m.appendChild(t.html[x].cloneNode(!0));else m.appendChild(t.html.cloneNode(!0));else t.html?m.innerHTML=t.html:t.text&&(m.textContent=t.text);U(m)}else Y(m);if(t.position in i&&W(f,i[t.position]),t.grow&&"string"==typeof t.grow){var T="grow-"+t.grow;T in i&&W(f,i[T])}
102t.showCloseButton?(_.setAttribute("aria-label",t.closeButtonAriaLabel),U(_)):Y(_),n.className=i.popup,t.toast?(W(document.body,i["toast-shown"]),W(n,i.toast)):W(n,i.modal),t.customClass&&W(n,t.customClass);var P=M(),N=parseInt(null===t.currentProgressStep?w.getQueueStep():t.currentProgressStep,10);t.progressSteps.length?(U(P),V(P),N>=t.progressSteps.length&&a("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(e,n){var o=document.createElement("li");if(W(o,i.progresscircle),o.innerHTML=e,n===N&&W(o,i.activeprogressstep),P.appendChild(o),n!==t.progressSteps.length-1){var s=document.createElement("li");W(s,i.progressline),s.style.width=t.progressStepsDistance,P.appendChild(s)}})):Y(P);for(var L=D(),R=0;R<L.length;R++)Y(L[R]);if(t.type){var H=!1;for(var F in o)if(t.type===F){H=!0;break}if(!H)return l("Unknown alert type: "+t.type),!1;var q=n.querySelector("."+i.icon+"."+o[t.type]);if(U(q),t.animation)switch(t.type){case"success":W(q,"swal2-animate-success-icon"),W(q.querySelector(".swal2-success-line-tip"),"swal2-animate-success-line-tip"),W(q.querySelector(".swal2-success-line-long"),"swal2-animate-success-line-long");break;case"error":W(q,"swal2-animate-error-icon"),W(q.querySelector(".swal2-x-mark"),"swal2-animate-x-mark")}}var Q=E();t.imageUrl?(Q.setAttribute("src",t.imageUrl),Q.setAttribute("alt",t.imageAlt),U(Q),t.imageWidth?Q.setAttribute("width",t.imageWidth):Q.removeAttribute("width"),t.imageHeight?Q.setAttribute("height",t.imageHeight):Q.removeAttribute("height"),Q.className=i.image,t.imageClass&&W(Q,t.imageClass)):Y(Q),t.showCancelButton?b.style.display="inline-block":Y(b),t.showConfirmButton?G(y,"display"):Y(y),t.showConfirmButton||t.showCancelButton?U(v):Y(v),y.innerHTML=t.confirmButtonText,b.innerHTML=t.cancelButtonText,y.setAttribute("aria-label",t.confirmButtonAriaLabel),b.setAttribute("aria-label",t.cancelButtonAriaLabel),t.buttonsStyling&&(y.style.backgroundColor=t.confirmButtonColor,b.style.backgroundColor=t.cancelButtonColor),y.className=i.confirm,W(y,t.confirmButtonClass),b.className=i.cancel,W(b,t.cancelButtonClass),t.buttonsStyling?(W(y,i.styled),W(b,i.styled)):(B(y,i.styled),B(b,i.styled),y.style.backgroundColor=y.style.borderLeftColor=y.style.borderRightColor="",b.style.backgroundColor=b.style.borderLeftColor=b.style.borderRightColor=""),!0===t.animation?B(n,i.noanimation):W(n,i.noanimation),t.showLoaderOnConfirm&&!t.preConfirm&&a("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://limonte.github.io/sweetalert2/#ajax-request")},b=function(){null===_.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(_.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=Z()+"px")},w=function e(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];if(r(window)){if(!r(n[0]))return l("SweetAlert2 expects at least 1 attribute!"),!1;var a=d({},p);switch(h(n[0])){case"string":a.title=n[0],a.html=n[1],a.type=n[2];break;case"object":if(v(n[0]),d(a,n[0]),a.extraParams=n[0].extraParams,"email"===a.input&&null===a.inputValidator){var c=function(e){return new Promise(function(t,n){/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?t():n("Invalid email address")})};a.inputValidator=a.expectRejections?c:e.adaptInputValidator(c)}if("url"===a.input&&null===a.inputValidator){var u=function(e){return new Promise(function(t,n){/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?t():n("Invalid URL")})};a.inputValidator=a.expectRejections?u:e.adaptInputValidator(u)}break;default:return l('Unexpected type of argument! Expected "string" or "object", got '+h(n[0])),!1}y(a);var f=C(),w=S();return new Promise(function(t,n){var o=function(n){e.closePopup(a.onClose),t(a.useRejections?n:{value:n})},r=function(i){e.closePopup(a.onClose),a.useRejections?n(i):t({dismiss:i})},c=function(t){e.closePopup(a.onClose),n(t)};a.timer&&(w.timeout=setTimeout(function(){return r("timer")},a.timer));var u=function(e){if(!(e=e||a.input))return null;switch(e){case"select":case"textarea":case"file":return q(w,i[e]);case"checkbox":return w.querySelector("."+i.checkbox+" input");case"radio":return w.querySelector("."+i.radio+" input:checked")||w.querySelector("."+i.radio+" input:first-child");case"range":return w.querySelector("."+i.range+" input");default:return q(w,i.input)}};a.input&&setTimeout(function(){var e=u();e&&F(e)},0);for(var d=function(t){if(a.showLoaderOnConfirm&&e.showLoading(),a.preConfirm){var n=Promise.resolve().then(function(){return a.preConfirm(t,a.extraParams)});a.expectRejections?n.then(function(e){return o(e||t)}
102,function(t){e.hideLoading(),t&&e.showValidationError(t)}):n.then(function(n){Q(P())?e.hideLoading():o(n||t)},function(e){return c(e)})}else o(t)},p=function(t){var n=t||window.event,i=n.target||n.srcElement,o=O(),l=$(),h=o&&(o===i||o.contains(i)),p=l&&(l===i||l.contains(i));switch(n.type){case"mouseover":case"mouseup":a.buttonsStyling&&(h?o.style.backgroundColor=s(a.confirmButtonColor,-.1):p&&(l.style.backgroundColor=s(a.cancelButtonColor,-.1)));break;case"mouseout":a.buttonsStyling&&(h?o.style.backgroundColor=a.confirmButtonColor:p&&(l.style.backgroundColor=a.cancelButtonColor));break;case"mousedown":a.buttonsStyling&&(h?o.style.backgroundColor=s(a.confirmButtonColor,-.2):p&&(l.style.backgroundColor=s(a.cancelButtonColor,-.2)));break;case"click":if(h&&e.isVisible())if(e.disableButtons(),a.input){var f=function(){var e=u();if(!e)return null;switch(a.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return a.inputAutoTrim?e.value.trim():e.value}}();if(a.inputValidator){e.disableInput();var g=Promise.resolve().then(function(){return a.inputValidator(f,a.extraParams)});a.expectRejections?g.then(function(){e.enableButtons(),e.enableInput(),d(f)},function(t){e.enableButtons(),e.enableInput(),t&&e.showValidationError(t)}):g.then(function(t){e.enableButtons(),e.enableInput(),t?e.showValidationError(t):d(f)},function(e){return c(e)})}else d(f)}else d(!0);else p&&e.isVisible()&&(e.disableButtons(),r("cancel"))}},v=w.querySelectorAll("button"),k=0;k<v.length;k++)v[k].onclick=p,v[k].onmouseover=p,v[k].onmouseout=p,v[k].onmousedown=p;z().onclick=function(){r("close")},a.toast?w.onclick=function(t){t.target!==w||a.showConfirmButton||a.showCancelButton||a.allowOutsideClick&&(e.closePopup(a.onClose),r("overlay"))}:f.onclick=function(e){e.target===f&&a.allowOutsideClick&&r("overlay")};var x=j(),D=O(),T=$();a.reverseButtons?D.parentNode.insertBefore(T,D):D.parentNode.insertBefore(D,T);var R=function(e,t){for(var n=N(a.focusCancel),i=0;i<n.length;i++){(e+=t)===n.length?e=0:-1===e&&(e=n.length-1);var o=n[e];if(Q(o))return o.focus()}};m||(g=window.onkeydown,m=!0,window.onkeydown=function(t){var n=t||window.event;if("Enter"!==n.key||n.isComposing)if("Tab"===n.key){for(var i=n.target||n.srcElement,o=N(a.focusCancel),s=-1,l=0;l<o.length;l++)if(i===o[l]){s=l;break}n.shiftKey?R(s,-1):R(s,1),n.stopPropagation(),n.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(n.key)?document.activeElement===D&&Q(T)?T.focus():document.activeElement===T&&Q(D)&&D.focus():"Escape"!==n.key&&"Esc"!==n.key||!0!==a.allowEscapeKey||r("esc");else if(n.target===u()){if("textarea"===n.target.tagName.toLowerCase())return;e.clickConfirm(),n.preventDefault()}}),a.buttonsStyling&&(D.style.borderLeftColor=a.confirmButtonColor,D.style.borderRightColor=a.confirmButtonColor),e.hideLoading=e.disableLoading=function(){a.showConfirmButton||(Y(D),a.showCancelButton||Y(j())),B(x,i.loading),B(w,i.loading),w.removeAttribute("aria-busy"),D.disabled=!1,T.disabled=!1},e.getTitle=function(){return A()},e.getContent=function(){return I()},e.getInput=function(){return u()},e.getImage=function(){return E()},e.getButtonsWrapper=function(){return j()},e.getConfirmButton=function(){return O()},e.getCancelButton=function(){return $()},e.enableButtons=function(){D.disabled=!1,T.disabled=!1},e.disableButtons=function(){D.disabled=!0,T.disabled=!0},e.enableConfirmButton=function(){D.disabled=!1},e.disableConfirmButton=function(){D.disabled=!0},e.enableInput=function(){var e=u();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},e.disableInput=function(){var e=u();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},e.showValidationError=function(e){var t=P();t.innerHTML=e,U(t);var n=u();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedBy",i.validationerror),F(n),W(n,i.inputerror))},e.resetValidationError=function(){var e=P();Y(e);var t=u();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),B(t,i.inputerror))},e.getProgressSteps=function(){return a.progressSteps},e.setProgressSteps=function(e){a.progressSteps=e,y(a)},e.showProgressSteps=function(){U(M())},e.hideProgressSteps=function(){Y(M())},e.enableButtons(),e.hideLoading(),e.resetValidationError(),a.input&&W(document.body,i["has-input"]);for(var V=["input","file","range","select","radio","checkbox","textarea"],G=void 0,X=0;X<V.length;X++){var Z=i[V[X]],J=q(w,Z);if(G=u(V[X])){for(var ee in G.attributes)if(G.attributes.hasOwnProperty(ee)){var te=G.attributes[ee].name;"type"!==te&&"value"!==te&&G.removeAttribute(te)}for(var ne in a.inputAttributes)G.setAttribute(ne,a.inputAttributes[ne])}J.className=Z,a.inputClass&&W(J,a.inputClass),Y(J)}var ie=void 0;switch(a.input){case"text":case"email":case"password":case"number":case"tel":case"url":(G=q(w,i.input)).value=a.inputValue,G.placeholder=a.inputPlaceholder,G.type=a.input,U(G);break;case"file":(G=q(w,i.file)).placeholder=a.inputPlaceholder,G.type=a.input,U(G);break;case"range":var oe=q(w,i.range),se=oe.querySelector("input"),re=oe.querySelector("output");se.value=a.inputValue,se.type=a.input,re.value=a.inputValue,U(oe);break;case"select":var ae=q(w,i.select);if(ae.innerHTML="",a.inputPlaceholder){var le=document.createElement("option");le.innerHTML=a.inputPlaceholder,le.value="",le.disabled=!0,le.selected=!0,ae.appendChild(le)}ie=function(e){for(var t in e){var n=document.createElement("option");n.value=t,n.innerHTML=e[t],a.inputValue.toString()===t&&(n.selected=!0),ae.appendChild(n)}U(ae),ae.focus()};break;case"radio":var ce=q(w,i.radio);ce.innerHTML="",ie=function(e){for(var t in e){var n=document.createElement("input"),o=document.createElement("label"),s=document.createElement("span");n.type="radio",n.name=i.radio,n.value=t,a.inputValue.toString()===t&&(n.checked=!0),s.innerHTML=e[t],o.appendChild(n),o.appendChild(s),o.for=n.id,ce.appendChild(o)}U(ce);var r=ce.querySelectorAll("input");r.length&&r[0].focus()};break;case"checkbox":var ue=q(w,i.checkbox),he=u("checkbox");he.type="checkbox",he.value=1,he.id=i.checkbox,he.checked=Boolean(a.inputValue);var de=ue.getElementsByTagName("span");de.length&&ue.removeChild(de[0]),(de=document.createElement("span")).innerHTML=a.inputPlaceholder,ue.appendChild(de),U(ue);break;case"textarea":var pe=q(w,i.textarea);pe.value=a.inputValue,pe.placeholder=a.inputPlaceholder,U(pe);break;case null:break;default:l('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+a.input+'"')}"select"!==a.input&&"radio"!==a.input||(a.inputOptions instanceof Promise?(e.showLoading(),a.inputOptions.then(function(t){e.hideL
102oading(),ie(t)})):"object"===h(a.inputOptions)?ie(a.inputOptions):l("Unexpected type of inputOptions! Expected object or Promise, got "+h(a.inputOptions))),function(e,t,n){var o=C(),s=S();null!==t&&"function"==typeof t&&t(s),e?(W(s,i.show),W(o,i.fade),B(s,i.hide)):B(s,i.fade),U(s),o.style.overflowY="hidden",K&&!H(s,i.noanimation)?s.addEventListener(K,function e(){s.removeEventListener(K,e),o.style.overflowY="auto"}):o.style.overflowY="auto",W(document.documentElement,i.shown),W(document.body,i.shown),W(o,i.shown),L()&&(b(),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!H(document.body,i.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",W(document.body,i.iosfix)}}()),_.previousActiveElement=document.activeElement,null!==n&&"function"==typeof n&&setTimeout(function(){n(s)})}(a.animation,a.onBeforeOpen,a.onOpen),a.toast||(a.allowEnterKey?a.focusCancel&&Q(T)?T.focus():a.focusConfirm&&Q(D)?D.focus():R(-1,1):document.activeElement&&document.activeElement.blur()),C().scrollTop=0})}};w.isVisible=function(){return!!S()},w.queue=function(e){f=e;var t=function(){f=[],document.body.removeAttribute("data-swal2-queue-step")},n=[];return new Promise(function(e,i){!function i(o,s){o<f.length?(document.body.setAttribute("data-swal2-queue-step",o),w(f[o]).then(function(a){r(a.value)?(n.push(a.value),i(o+1,s)):(t(),e({dismiss:a.dismiss}))})):(t(),e({value:n}))}(0)})},w.getQueueStep=function(){return document.body.getAttribute("data-swal2-queue-step")},w.insertQueueStep=function(e,t){return t&&t<f.length?f.splice(t,0,e):f.push(e)},w.deleteQueueStep=function(e){r(f[e])&&f.splice(e,1)},w.close=w.closePopup=w.closeModal=w.closeToast=function(e){var t=C(),n=S();if(n){B(n,i.show),W(n,i.hide),clearTimeout(n.timeout),R()||(X(),window.onkeydown=g,m=!1);var o=function(){t.parentNode&&t.parentNode.removeChild(t),B(document.documentElement,i.shown),B(document.body,i.shown),B(document.body,i["no-backdrop"]),B(document.body,i["has-input"]),B(document.body,i["toast-shown"]),L()&&(null!==_.previousBodyPadding&&(document.body.style.paddingRight=_.previousBodyPadding,_.previousBodyPadding=null),function(){if(H(document.body,i.iosfix)){var e=parseInt(document.body.style.top,10);B(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}())};K&&!H(n,i.noanimation)?n.addEventListener(K,function e(){n.removeEventListener(K,e),H(n,i.hide)&&o()}):o(),null!==e&&"function"==typeof e&&setTimeout(function(){e(n)})}},w.clickConfirm=function(){return O().click()},w.clickCancel=function(){return $().click()},w.showLoading=w.enableLoading=function(){var e=S();e||w(""),e=S();var t=j(),n=O(),o=$();U(t),U(n,"inline-block"),W(t,i.loading),W(e,i.loading),n.disabled=!0,o.disabled=!0,e.setAttribute("aria-busy",!0),e.focus()},w.isValidParameter=function(t){return e.hasOwnProperty(t)||"extraParams"===t},w.isDeprecatedParameter=function(e){return-1!==t.indexOf(e)},w.setDefaults=function(e){if(!e||"object"!==(void 0===e?"undefined":h(e)))return l("the argument for setDefaults() is required and has to be a object");for(var t in v(e),e)w.isValidParameter(t)&&(p[t]=e[t])},w.resetDefaults=function(){p=d({},e)},w.adaptInputValidator=function(e){return function(t,n){return e.call(this,t,n).then(function(){},function(e){return e})}},w.noop=function(){},w.version="7.0.6",w.default=w;var _={previousActiveElement:null,previousBodyPadding:null},k=function(e){var t=C();if(t&&(t.parentNode.removeChild(t),B(document.body,i["no-backdrop"]),B(document.body,i["has-input"]),B(document.body,i["toast-shown"])),r(document)){var n=document.createElement("div");n.className=i.container,n.innerHTML=x,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var o=S(),s=q(o,i.input),a=q(o,i.file),c=o.querySelector("."+i.range+" input"),u=o.querySelector("."+i.range+" output"),h=q(o,i.select),d=o.querySelector("."+i.checkbox+" input"),p=q(o,i.textarea);o.setAttribute("aria-live",e.toast?"polite":"assertive");var f=function(){w.isVisible()&&w.resetValidationError()};return s.oninput=f,a.onchange=f,h.onchange=f,d.onchange=f,p.oninput=f,c.oninput=function(){f(),u.value=c.value},c.onchange=function(){f(),c.previousSibling.value=c.value},o}l("SweetAlert2 requires document to initialize")},x=('\n <div role="dialog" aria-modal="true" aria-labelledby="'+i.title+'" aria-describedby="'+i.content+'" class="'+i.popup+'" tabindex="-1">\n   <ul class="'+i.progresssteps+'"></ul>\n   <div class="'+i.icon+" "+o.error+'">\n     <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n   </div>\n   <div class="'+i.icon+" "+o.question+'">?</div>\n   <div class="'+i.icon+" "+o.warning+'">!</div>\n   <div class="'+i.icon+" "+o.info+'">i</div>\n   <div class="'+i.icon+" "+o.success+'">\n     <div class="swal2-success-circular-line-left"></div>\n     <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n     <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n     <div class="swal2-success-circular-line-right"></div>\n   </div>\n   <img class="'+i.image+'" />\n   <div class="'+i.contentwrapper+'">\n   <h2 class="'+i.title+'" id="'+i.title+'"></h2>\n   <div id="'+i.content+'" class="'+i.content+'"></div>\n   </div>\n   <input class="'+i.input+'" />\n   <input type="file" class="'+i.file+'" />\n   <div class="'+i.range+'">\n     <output></output>\n     <input type="range" />\n   </div>\n   <select class="'+i.select+'"></select>\n   <div class="'+i.radio+'"></div>\n   <label for="'+i.checkbox+'" class="'+i.checkbox+'">\n     <input type="checkbox" />\n   </label>\n   <textarea class="'+i.textarea+'"></textarea>\n   <div class="'+i.validationerror+'" id="'+i.validationerror+'"></div>\n   <div class="'+i.buttonswrapper+'">\n     <button type="button" class="'+i.confirm+'">OK</button>\n     <button type="button" class="'+i.cancel+'">Cancel</button>\n   </div>\n   <button type="button" class="'+i.close+'">×</button>\n </div>\n').replace(/(^|\n)\s*/g,""),C=function(){return document.body.querySelector("."+i.container)},S=function(){return C()?C().querySelector("."+i.popup):null},D=function(){return S().querySelectorAll("."+i.icon)},T=function(e){return C()?C().querySelector("."+e):null},A=function(){return T(i.title)},I=function(){return T(i.content)},E=function(){return T(i.image)},M=function(){return T(i.progresssteps)},P=function(){return T(i.validationerror)},O=function(){return T(i.confirm)},$=function(){return T(i.cancel)},j=function(){return T(i.buttonswrapper)},z=function(){return T(i.close)},N=function(){var e=Array.from(S().querySelectorAll('[tabindex]:not
102([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0}),t=Array.prototype.slice.call(S().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, [tabindex="0"]'));return function(e){var t=[];for(var n in e)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t))},L=function(){return!document.body.classList.contains(i["toast-shown"])},R=function(){return document.body.classList.contains(i["toast-shown"])},H=function(e,t){return!!e.classList&&e.classList.contains(t)},F=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},W=function(e,t){e&&t&&t.split(/\s+/).filter(Boolean).forEach(function(t){e.classList.add(t)})},B=function(e,t){e&&t&&t.split(/\s+/).filter(Boolean).forEach(function(t){e.classList.remove(t)})},q=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(H(e.childNodes[n],t))return e.childNodes[n]},U=function(e,t){t||(t=e===S()||e===j()?"flex":"block"),e.style.opacity="",e.style.display=t},Y=function(e){e.style.opacity="",e.style.display="none"},V=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},Q=function(e){return e.offsetWidth||e.offsetHeight||e.getClientRects().length},G=function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},K=function(){if(!r(document))return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&r(e.style[n]))return t[n];return!1}(),X=function(){if(_.previousActiveElement&&_.previousActiveElement.focus){var e=window.scrollX,t=window.scrollY;_.previousActiveElement.focus(),r(e)&&r(t)&&window.scrollTo(e,t)}},Z=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!r(document))return!1;var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {\n  overflow-y: hidden; }\n\nbody.swal2-toast-shown {\n  overflow-y: auto; }\n  body.swal2-toast-shown.swal2-has-input > .swal2-container > .swal2-toast {\n    -webkit-box-orient: vertical;\n    -webkit-box-direction: normal;\n        -ms-flex-direction: column;\n            flex-direction: column; }\n    body.swal2-toast-shown.swal2-has-input > .swal2-container > .swal2-toast .swal2-icon {\n      margin: 0 0 15px; }\n    body.swal2-toast-shown.swal2-has-input > .swal2-container > .swal2-toast .swal2-buttonswrapper {\n      -webkit-box-flex: 1;\n          -ms-flex: 1;\n              flex: 1;\n      -ms-flex-item-align: stretch;\n          align-self: stretch;\n      -webkit-box-pack: end;\n          -ms-flex-pack: end;\n              justify-content: flex-end; }\n    body.swal2-toast-shown.swal2-has-input > .swal2-container > .swal2-toast .swal2-loading {\n      -webkit-box-pack: center;\n          -ms-flex-pack: center;\n              justify-content: center; }\n    body.swal2-toast-shown.swal2-has-input > .swal2-container > .swal2-toast .swal2-input {\n      height: 32px;\n      font-size: 14px;\n      margin: 5px auto; }\n  body.swal2-toast-shown > .swal2-container {\n    position: fixed;\n    background-color: transparent; }\n    body.swal2-toast-shown > .swal2-container.swal2-shown {\n      background-color: transparent; }\n    body.swal2-toast-shown > .swal2-container.swal2-top {\n      top: 0;\n      left: 50%;\n      bottom: auto;\n      right: auto;\n      -webkit-transform: translateX(-50%);\n              transform: translateX(-50%); }\n    body.swal2-toast-shown > .swal2-container.swal2-top-right {\n      top: 0;\n      left: auto;\n      bottom: auto;\n      right: 0; }\n    body.swal2-toast-shown > .swal2-container.swal2-top-left {\n      top: 0;\n      left: 0;\n      bottom: auto;\n      right: auto; }\n    body.swal2-toast-shown > .swal2-container.swal2-center-left {\n      top: 50%;\n      left: 0;\n      bottom: auto;\n      right: auto;\n      -webkit-transform: translateY(-50%);\n              transform: translateY(-50%); }\n    body.swal2-toast-shown > .swal2-container.swal2-center {\n      top: 50%;\n      left: 50%;\n      bottom: auto;\n      right: auto;\n      -webkit-transform: translate(-50%, -50%);\n              transform: translate(-50%, -50%); }\n    body.swal2-toast-shown > .swal2-container.swal2-center-right {\n      top: 50%;\n      left: auto;\n      bottom: auto;\n      right: 0;\n      -webkit-transform: translateY(-50%);\n              transform: translateY(-50%); }\n    body.swal2-toast-shown > .swal2-container.swal2-bottom-left {\n      top: auto;\n      left: 0;\n      bottom: 0;\n      right: auto; }\n    body.swal2-toast-shown > .swal2-container.swal2-bottom {\n      top: auto;\n      left: 50%;\n      bottom: 0;\n      right: auto;\n      -webkit-transform: translateX(-50%);\n              transform: translateX(-50%); }\n    body.swal2-toast-shown > .swal2-container.swal2-bottom-right {\n      top: auto;\n      left: auto;\n      bottom: 0;\n      right: 0; }\n\nbody.swal2-iosfix {\n  position: fixed;\n  left: 0;\n  right: 0; }\n\nbody.swal2-no-backdrop > .swal2-shown {\n  top: auto;\n  bottom: auto;\n  left: auto;\n  right: auto;\n  background-color: transparent; }\n  body.swal2-no-backdrop > .swal2-shown > .swal2-modal {\n    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);\n            box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); }\n  body.swal2-no-backdrop > .swal2-shown.swal2-top {\n    top: 0;\n    left: 50%;\n    -webkit-transform: translateX(-50%);\n            transform: translateX(-50%); }\n  body.swal2-no-backdrop > .swal2-shown.swal2-top-left {\n    top: 0;\n    left: 0; }\n  body.swal2-no-backdrop > .swal2-shown.swal2-top-right {\n    top: 0;\n    right: 0; }\n  body.swal2-no-backdrop > .swal2-shown.swal2-center {\n    top: 50%;\n    left: 50%;\n    -webkit-transform: translate(-50%, -50%);\n            transform: translate(-50%, -50%); }\n  body.swal2-no-backdrop > .swal2-shown.swal2-center-left {\n    top: 50%;\n    left: 0;\n    -webkit-transform: translateY(-50%);\n            transform: translateY(-50%); }\n  body.swal2-no-backdrop > .swal2-shown.swal2-center-right {\n    top: 50%;\n    right: 0;\n    -webkit-transform: translateY(-50%);\n            transform: translateY(-50%); }\n  body.swal2-no-backdrop > .swal2-shown.swal2-bottom {\n    bottom: 0;\n    left: 50%;\n    -webkit-transform: translateX(-50%);\n            transform: translateX(-50%); }\n  body.swal2-no-backdrop > .swal2-shown.swal2-bottom-left {\n    bottom: 0;\n    left: 0; }\n  body.swal2-no-backdrop > .swal2-shown.swal2-bottom-right {\n    bottom: 0;\n    right: 0; }\n\n.swal2-container {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: row;\n          flex-direction: row;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  position: fixed;\n  padding: 10px;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background-color: transparent;\n  z-index: 1060; }\n  .swal2-container.swal2-top {\n    -webkit-box-align: start;\n        -ms-flex-align: start;\n            align-items: flex-start; }\n  .swal2-container.swal2-top-left {\n    -webkit-box-align: start;\n        -ms-flex-align: start;\n            align-items: flex-start;\n    -webkit-box-pack: start;\n        -ms-flex-pack: start;\n            justify-content: flex-start; }\n  .swal2-container.swal2-top-right {\n    -webkit-box-align: start;\n        -ms-flex-align: start;\n            align-items: flex-start;\n    -webkit-box-pack: end;\n        -ms-flex-pack: end;\n            justify-content: flex-end; }\n  .swal2-container.swal2-center {\n    -webkit-box-align: center;\n        -ms-flex-align: center;\n            align-items: center; }\n  .swal2-container.swal2-center-left {\n    -webkit-box-align: center;\n        -ms-flex-align: center;\n            align-items: center;\n    -webkit-box-pack: start;\n        -ms-flex-pack: start;\n            justify-content: flex-start; }\n  .swal2-container.swal2-center-right {\n    -webkit-box-align: center;\n        -ms-flex-align: center;\n            align-items: center;\n    -webkit-box-pack: end;\n        -ms-flex-pack: end;\n            justify-content: flex-end; }\n  .swal2-container.swal2-bottom {\n    -webkit-box-align: end;\n        -ms-flex-align: end;\n            align-items: flex-end; }\n  .swal2-container.swal2-bottom-left {\n    -webkit-box-align: end;\n        -ms-flex-align: end;\n            align-items: flex-end;\n    -webkit-box-pack: start;\n        -ms-flex-pack: start;\n            justify-content: flex-start; }\n  .swal2-container.swal2-bottom-right {\n    -webkit-box-align: end;\n        -ms-flex-align: end;\n            align-items: flex-end;\n    -webkit-box-pack: end;\n        -ms-flex-pack: end;\n            justify-content: flex-end; }\n  .swal2-container.swal2-grow-fullscreen > .swal2-modal {\n    display: -webkit-box !important;\n    display: -ms-flexbox !important;\n    display: flex !important;\n    -webkit-box-flex: 1;\n        -ms-flex: 1;\n            flex: 1;\n    -ms-flex-item-align: stretch;\n        align-self: stretch;\n    -webkit-box-pack: center;\n        -ms-flex-pack: center;\n            justify-content: center; }\n  .swal2-container.swal2-grow-row > .swal2-modal {\n    display: -webkit-box !important;\n    display: -ms-flexbox !important;\n    display: flex !important;\n    -webkit-box-flex: 1;\n        -ms-flex: 1;\n            flex: 1;\n    -ms-flex-line-pack: center;\n        align-content: center;\n    -webkit-box-pack: center;\n        -ms-flex-pack: center;\n            justify-content: center; }\n  .swal2-container.swal2-grow-column {\n    -webkit-box-flex: 1;\n        -ms-flex: 1;\n            flex: 1;\n    -webkit-box-orient: vertical;\n    -webkit-box-direction: normal;\n        -ms-flex-direction: column;\n            flex-direction: column; }\n    .swal2-container.swal2-grow-column.swal2-top, .swal2-container.swal2-grow-column.swal2-center, .swal2-container.swal2-grow-column.swal2-bottom {\n      -webkit-box-align: center;\n          -ms-flex-align: center;\n              align-items: center; }\n    .swal2-container.swal2-grow-column.swal2-top-left, .swal2-container.swal2-grow-column.swal2-center-left, .swal2-container.swal2-grow-column.swal2-bottom-left {\n      -webkit-box-align: start;\n          -ms-flex-align: start;\n              align-items: flex-start; }\n    .swal2-container.swal2-grow-column.swal2-top-right, .swal2-container.swal2-grow-column.swal2-center-right, .swal2-container.swal2-grow-column.swal2-bottom-right {\n      -webkit-box-align: end;\n          -ms-flex-align: end;\n              align-items: flex-end; }\n    .swal2-container.swal2-grow-column > .swal2-modal {\n      display: -webkit-box !important;\n      display: -ms-flexbox !important;\n      display: flex !important;\n      -webkit-box-flex: 1;\n          -ms-flex: 1;\n              flex: 1;\n      -ms-flex-line-pack: center;\n          align-content: center;\n      -webkit-box-pack: center;\n          -ms-flex-pack: center;\n              justify-content: center; }\n  .swal2-container:not(.swal2-top):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-left):not(.swal2-bottom-right) > .swal2-modal {\n    margin: auto; }\n  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n    .swal2-container .swal2-modal {\n      margin: 0 !important; } }\n  .swal2-container.swal2-fade {\n    -webkit-transition: background-color .1s;\n    transition: background-color .1s; }\n  .swal2-container.swal2-shown {\n    background-color: rgba(0, 0, 0, 0.4); }\n\n.swal2-popup {\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  background-color: #fff;\n  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n  border-radius: 5px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  text-align: center;\n  overflow-x: hidden;\n  overflow-y: auto;\n  display: none;\n  position: relative;\n  max-width: 100%; }\n  .swal2-popup.swal2-toast {\n    width: 300px;\n    padding: 0 15px;\n    -webkit-box-orient: horizontal;\n    -webkit-box-direction: normal;\n        -ms-flex-direction: row;\n            flex-direction: row;\n    -webkit-box-align: center;\n        -ms-flex-align: center;\n            align-items: center;\n    overflow-y: hidden;\n    -webkit-box-shadow: 0 0 10px #d9d9d9;\n            box-shadow: 0 0 10px #d9d9d9; }\n    .swal2-popup.swal2-toast .swal2-title {\n      max-width: 300px;\n      font-size: 16px;\n      text-align: left; }\n    .swal2-popup.swal2-toast .swal2-content {\n      font-size: 14px;\n      text-align: left; }\n    .swal2-popup.swal2-toast .swal2-icon {\n      width: 32px;\n      height: 32px;\n      margin: 0 15px 0 0; }\n      .swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {\n        width: 32px;\n        height: 32px; }\n      .swal2-popup.swal2-toast .swal2-icon.swal2-info, .swal2-popup.swal2-toast .swal2-icon.swal2-warning, .swal2-popup.swal2-toast .swal2-icon.swal2-question {\n        font-size: 26px;\n        line-height: 32px; }\n      .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {\n        top: 14px;\n        width: 22px; }\n        .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='left'] {\n          left: 5px; }\n        .swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='right'] {\n          right: 5px; }\n    .swal2-popup.swal2-toast .swal2-buttonswrapper {\n      margin: 0 0 0 5px; }\n    .swal2-popup.swal2-toast .swal2-styled {\n      margin: 0 0 0 5px;\n      padding: 5px 10px; }\n      .swal2-popup.swal2-toast .swal2-styled:focus {\n        -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(50, 100, 150, 0.4);\n                box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(50, 100, 150, 0.4); }\n    .swal2-popup.swal2-toast .swal2-validationerror {\n      width: 100%;
102\n      margin: 5px -20px; }\n    .swal2-popup.swal2-toast .swal2-success {\n      border-color: #a5dc86; }\n      .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-circular-line'] {\n        border-radius: 50%;\n        position: absolute;\n        width: 32px;\n        height: 64px;\n        -webkit-transform: rotate(45deg);\n                transform: rotate(45deg); }\n        .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-circular-line'][class$='left'] {\n          border-radius: 64px 0 0 64px;\n          top: -4px;\n          left: -15px;\n          -webkit-transform: rotate(-45deg);\n                  transform: rotate(-45deg);\n          -webkit-transform-origin: 32px 32px;\n                  transform-origin: 32px 32px; }\n        .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-circular-line'][class$='right'] {\n          border-radius: 0 64px 64px 0;\n          top: -5px;\n          left: 14px;\n          -webkit-transform-origin: 0 32px;\n                  transform-origin: 0 32px; }\n      .swal2-popup.swal2-toast .swal2-success .swal2-success-ring {\n        width: 32px;\n        height: 32px; }\n      .swal2-popup.swal2-toast .swal2-success .swal2-success-fix {\n        width: 7px;\n        height: 90px;\n        left: 28px;\n        top: 8px; }\n      .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-line'] {\n        height: 5px; }\n        .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-line'][class$='tip'] {\n          width: 12px;\n          left: 3px;\n          top: 18px; }\n        .swal2-popup.swal2-toast .swal2-success [class^='swal2-success-line'][class$='long'] {\n          width: 22px;\n          right: 3px;\n          top: 15px; }\n    .swal2-popup.swal2-toast .swal2-animate-success-line-tip {\n      -webkit-animation: animate-toast-success-tip .75s;\n              animation: animate-toast-success-tip .75s; }\n    .swal2-popup.swal2-toast .swal2-animate-success-line-long {\n      -webkit-animation: animate-toast-success-long .75s;\n              animation: animate-toast-success-long .75s; }\n  .swal2-popup:focus {\n    outline: none; }\n  .swal2-popup.swal2-loading {\n    overflow-y: hidden; }\n  .swal2-popup .swal2-title {\n    color: #595959;\n    font-size: 30px;\n    text-align: center;\n    font-weight: 600;\n    text-transform: none;\n    position: relative;\n    margin: 0 0 .4em;\n    padding: 0;\n    display: block;\n    word-wrap: break-word; }\n  .swal2-popup .swal2-buttonswrapper {\n    -webkit-box-align: center;\n        -ms-flex-align: center;\n            align-items: center;\n    -webkit-box-pack: center;\n        -ms-flex-pack: center;\n            justify-content: center;\n    margin-top: 15px; }\n    .swal2-popup .swal2-buttonswrapper:not(.swal2-loading) .swal2-styled[disabled] {\n      opacity: .4;\n      cursor: no-drop; }\n    .swal2-popup .swal2-buttonswrapper.swal2-loading .swal2-styled.swal2-confirm {\n      -webkit-box-sizing: border-box;\n              box-sizing: border-box;\n      border: 4px solid transparent;\n      border-color: transparent;\n      width: 40px;\n      height: 40px;\n      padding: 0;\n      margin: 7.5px;\n      vertical-align: top;\n      background-color: transparent !important;\n      color: transparent;\n      cursor: default;\n      border-radius: 100%;\n      -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;\n              animation: rotate-loading 1.5s linear 0s infinite normal;\n      -webkit-user-select: none;\n         -moz-user-select: none;\n          -ms-user-select: none;\n              user-select: none; }\n    .swal2-popup .swal2-buttonswrapper.swal2-loading .swal2-styled.swal2-cancel {\n      margin-left: 30px;\n      margin-right: 30px; }\n    .swal2-popup .swal2-buttonswrapper.swal2-loading :not(.swal2-styled).swal2-confirm::after {\n      display: inline-block;\n      content: '';\n      margin-left: 5px;\n      vertical-align: -1px;\n      height: 15px;\n      width: 15px;\n      border: 3px solid #999999;\n      -webkit-box-shadow: 1px 1px 1px #fff;\n              box-shadow: 1px 1px 1px #fff;\n      border-right-color: transparent;\n      border-radius: 50%;\n      -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;\n              animation: rotate-loading 1.5s linear 0s infinite normal; }\n  .swal2-popup .swal2-styled {\n    border: 0;\n    border-radius: 3px;\n    -webkit-box-shadow: none;\n            box-shadow: none;\n    color: #fff;\n    cursor: pointer;\n    font-size: 17px;\n    font-weight: 500;\n    margin: 15px 5px 0;\n    padding: 10px 32px; }\n    .swal2-popup .swal2-styled:focus {\n      outline: none;\n      -webkit-box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, 0.4);\n              box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, 0.4); }\n  .swal2-popup .swal2-image {\n    margin: 20px auto;\n    max-width: 100%; }\n  .swal2-popup .swal2-close {\n    background: transparent;\n    border: 0;\n    margin: 0;\n    padding: 0;\n    width: 38px;\n    height: 40px;\n    font-size: 36px;\n    line-height: 40px;\n    font-family: serif;\n    position: absolute;\n    top: 5px;\n    right: 8px;\n    cursor: pointer;\n    color: #cccccc;\n    -webkit-transition: color .1s ease;\n    transition: color .1s ease; }\n    .swal2-popup .swal2-close:hover {\n      color: #d55; }\n  .swal2-popup > .swal2-input,\n  .swal2-popup > .swal2-file,\n  .swal2-popup > .swal2-textarea,\n  .swal2-popup > .swal2-select,\n  .swal2-popup > .swal2-radio,\n  .swal2-popup > .swal2-checkbox {\n    display: none; }\n  .swal2-popup .swal2-content {\n    font-size: 18px;\n    text-align: center;\n    font-weight: 300;\n    position: relative;\n    float: none;\n    margin: 0;\n    padding: 0;\n    line-height: normal;\n    color: #545454;\n    word-wrap: break-word; }\n  .swal2-popup .swal2-input,\n  .swal2-popup .swal2-file,\n  .swal2-popup .swal2-textarea,\n  .swal2-popup .swal2-select,\n  .swal2-popup .swal2-radio,\n  .swal2-popup .swal2-checkbox {\n    margin: 20px auto; }\n  .swal2-popup .swal2-input,\n  .swal2-popup .swal2-file,\n  .swal2-popup .swal2-textarea {\n    width: 100%;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n    font-size: 18px;\n    border-radius: 3px;\n    border: 1px solid #d9d9d9;\n    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);\n            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);\n    -webkit-transition: border-color .3s, -webkit-box-shadow .3s;\n    transition: border-color .3s, -webkit-box-shadow .3s;\n    transition: border-color .3s, box-shadow .3s;\n    transition: border-color .3s, box-shadow .3s, -webkit-box-shadow .3s; }\n    .swal2-popup .swal2-input.swal2-inputerror,\n    .swal2-popup .swal2-file.swal2-inputerror,\n    .swal2-popup .swal2-textarea.swal2-inputerror {\n      border-color: #f27474 !important;\n      -webkit-box-shadow: 0 0 2px #f27474 !important;\n              box-shadow: 0 0 2px #f27474 !important; }\n    .swal2-popup .swal2-input:focus,\n    .swal2-popup .swal2-file:focus,\n    .swal2-popup .swal2-textarea:focus {\n      outline: none;\n      border: 1px solid #b4dbed;\n      -webkit-box-shadow: 0 0 3px #c4e6f5;\n              box-shadow: 0 0 3px #c4e6f5; }\n    .swal2-popup .swal2-input::-webkit-input-placeholder,\n    .swal2-popup .swal2-file::-webkit-input-placeholder,\n    .swal2-popup .swal2-textarea::-webkit-input-placeholder {\n      color: #cccccc; }\n    .swal2-popup .swal2-input:-ms-input-placeholder,\n    .swal2-popup .swal2-file:-ms-input-placeholder,\n    .swal2-popup .swal2-textarea:-ms-input-placeholder {\n      color: #cccccc; }\n    .swal2-popup .swal2-input::-ms-input-placeholder,\n    .swal2-popup .swal2-file::-ms-input-placeholder,\n    .swal2-popup .swal2-textarea::-ms-input-placeholder {\n      color: #cccccc; }\n    .swal2-popup .swal2-input::placeholder,\n    .swal2-popup .swal2-file::placeholder,\n    .swal2-popup .swal2-textarea::placeholder {\n      color: #cccccc; }\n  .swal2-popup .swal2-range input {\n    float: left;\n    width: 80%; }\n  .swal2-popup .swal2-range output {\n    float: right;\n    width: 20%;\n    font-size: 20px;\n    font-weight: 600;\n    text-align: center; }\n  .swal2-popup .swal2-range input,\n  .swal2-popup .swal2-range output {\n    height: 43px;\n    line-height: 43px;\n    vertical-align: middle;\n    margin: 20px auto;\n    padding: 0; }\n  .swal2-popup .swal2-input {\n    height: 43px;\n    padding: 0 12px; }\n    .swal2-popup .swal2-input[type='number'] {\n      max-width: 150px; }\n  .swal2-popup .swal2-file {\n    font-size: 20px; }\n  .swal2-popup .swal2-textarea {\n    height: 108px;\n    padding: 12px; }\n  .swal2-popup .swal2-select {\n    color: #545454;\n    font-size: inherit;\n    padding: 5px 10px;\n    min-width: 40%;\n    max-width: 100%; }\n  .swal2-popup .swal2-radio {\n    border: 0; }\n    .swal2-popup .swal2-radio label:not(:first-child) {\n      margin-left: 20px; }\n    .swal2-popup .swal2-radio input,\n    .swal2-popup .swal2-radio span {\n      vertical-align: middle; }\n    .swal2-popup .swal2-radio input {\n      margin: 0 3px 0 0; }\n  .swal2-popup .swal2-checkbox {\n    color: #545454; }\n    .swal2-popup .swal2-checkbox input,\n    .swal2-popup .swal2-checkbox span {\n      vertical-align: middle; }\n  .swal2-popup .swal2-validationerror {\n    background-color: #f0f0f0;\n    margin: 0 -20px;\n    overflow: hidden;\n    padding: 10px;\n    color: gray;\n    font-size: 16px;\n    font-weight: 300;\n    display: none; }\n    .swal2-popup .swal2-validationerror::before {\n      content: '!';\n      display: inline-block;\n      width: 24px;\n      height: 24px;\n      border-radius: 50%;\n      background-color: #ea7d7d;\n      color: #fff;\n      line-height: 24px;\n      text-align: center;\n      margin-right: 10px; }\n\n@supports (-ms-accelerator: true) {\n  .swal2-range input {\n    width: 100% !important; }\n  .swal2-range output {\n    display: none; } }\n\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  .swal2-range input {\n    width: 100% !important; }\n  .swal2-range output {\n    display: none; } }\n\n.swal2-icon {\n  width: 80px;\n  height: 80px;\n  border: 4px solid transparent;\n  border-radius: 50%;\n  margin: 20px auto 30px;\n  padding: 0;\n  position: relative;\n  -webkit-box-sizing: content-box;\n          box-sizing: content-box;\n  cursor: default;\n  -webkit-user-select: none;\n     -moz-user-select: none;
102\n      -ms-user-select: none;\n          user-select: none; }\n  .swal2-icon.swal2-error {\n    border-color: #f27474; }\n    .swal2-icon.swal2-error .swal2-x-mark {\n      position: relative;\n      display: block; }\n    .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {\n      position: absolute;\n      height: 5px;\n      width: 47px;\n      background-color: #f27474;\n      display: block;\n      top: 37px;\n      border-radius: 2px; }\n      .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='left'] {\n        -webkit-transform: rotate(45deg);\n                transform: rotate(45deg);\n        left: 17px; }\n      .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='right'] {\n        -webkit-transform: rotate(-45deg);\n                transform: rotate(-45deg);\n        right: 16px; }\n  .swal2-icon.swal2-warning {\n    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n    color: #f8bb86;\n    border-color: #facea8;\n    font-size: 60px;\n    line-height: 80px;\n    text-align: center; }\n  .swal2-icon.swal2-info {\n    font-family: 'Open Sans', sans-serif;\n    color: #3fc3ee;\n    border-color: #9de0f6;\n    font-size: 60px;\n    line-height: 80px;\n    text-align: center; }\n  .swal2-icon.swal2-question {\n    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n    color: #87adbd;\n    border-color: #c9dae1;\n    font-size: 60px;\n    line-height: 80px;\n    text-align: center; }\n  .swal2-icon.swal2-success {\n    border-color: #a5dc86; }\n    .swal2-icon.swal2-success [class^='swal2-success-circular-line'] {\n      border-radius: 50%;\n      position: absolute;\n      width: 60px;\n      height: 120px;\n      -webkit-transform: rotate(45deg);\n              transform: rotate(45deg); }\n      .swal2-icon.swal2-success [class^='swal2-success-circular-line'][class$='left'] {\n        border-radius: 120px 0 0 120px;\n        top: -7px;\n        left: -33px;\n        -webkit-transform: rotate(-45deg);\n                transform: rotate(-45deg);\n        -webkit-transform-origin: 60px 60px;\n                transform-origin: 60px 60px; }\n      .swal2-icon.swal2-success [class^='swal2-success-circular-line'][class$='right'] {\n        border-radius: 0 120px 120px 0;\n        top: -11px;\n        left: 30px;\n        -webkit-transform: rotate(-45deg);\n                transform: rotate(-45deg);\n        -webkit-transform-origin: 0 60px;\n                transform-origin: 0 60px; }\n    .swal2-icon.swal2-success .swal2-success-ring {\n      width: 80px;\n      height: 80px;
102\n      border: 4px solid rgba(165, 220, 134, 0.2);\n      border-radius: 50%;\n      -webkit-box-sizing: content-box;\n              box-sizing: content-box;\n      position: absolute;\n      left: -4px;\n      top: -4px;\n      z-index: 2; }\n    .swal2-icon.swal2-success .swal2-success-fix {\n      width: 7px;\n      height: 90px;\n      position: absolute;\n      left: 28px;\n      top: 8px;\n      z-index: 1;\n      -webkit-transform: rotate(-45deg);\n              transform: rotate(-45deg); }\n    .swal2-icon.swal2-success [class^='swal2-success-line'] {\n      height: 5px;\n      background-color: #a5dc86;\n      display: block;\n      border-radius: 2px;\n      position: absolute;\n      z-index: 2; }\n      .swal2-icon.swal2-success [class^='swal2-success-line'][class$='tip'] {\n        width: 25px;\n        left: 14px;\n        top: 46px;\n        -webkit-transform: rotate(45deg);\n                transform: rotate(45deg); }\n      .swal2-icon.swal2-success [class^='swal2-success-line'][class$='long'] {\n        width: 47px;\n        right: 8px;\n        top: 38px;\n        -webkit-transform: rotate(-45deg);\n                transform: rotate(-45deg); }\n\n.swal2-progresssteps {\n  font-weight: 600;\n  margin: 0 0 20px;\n  padding: 0; }\n  .swal2-progresssteps li {\n    display: inline-block;\n    position: relative; }\n  .swal2-progresssteps .swal2-progresscircle {\n    background: #3085d6;\n    border-radius: 2em;\n    color: #fff;\n    height: 2em;\n    line-height: 2em;\n    text-align: center;\n    width: 2em;\n    z-index: 20; }\n    .swal2-progresssteps .swal2-progresscircle:first-child {\n      margin-left: 0; }\n    .swal2-progresssteps .swal2-progresscircle:last-child {\n      margin-right: 0; }\n    .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep {\n      background: #3085d6; }\n      .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep ~ .swal2-progresscircle {\n        background: #add8e6; }\n      .swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep ~ .swal2-progressline {\n        background: #add8e6; }\n  .swal2-progresssteps .swal2-progressline {\n    background: #3085d6;\n    height: .4em;\n    margin: 0 -1px;\n    z-index: 10; }\n\n[class^='swal2'] {\n  -webkit-tap-highlight-color: transparent; }\n\n@-webkit-keyframes showSweetToast {\n  0% {\n    -webkit-transform: translateY(-10px) rotateZ(2deg);\n            transform: translateY(-10px) rotateZ(2deg);\n    opacity: 0; }\n  33% {\n    -webkit-transform: translateY(0) rotateZ(-2deg);\n            transform: translateY(0) rotateZ(-2deg);\n    opacity: .5; }\n  66% {\n    -webkit-transform: translateY(5px) rotateZ(2deg);\n            transform: translateY(5px) rotateZ(2deg);\n    opacity: .7; }\n  100% {\n    -webkit-transform: translateY(0) rotateZ(0);\n            transform: translateY(0) rotateZ(0);\n    opacity: 1; } }\n\n@keyframes showSweetToast {\n  0% {\n    -webkit-transform: translateY(-10px) rotateZ(2deg);\n            transform: translateY(-10px) rotateZ(2deg);\n    opacity: 0; }\n  33% {\n    -webkit-transform: translateY(0) rotateZ(-2deg);\n            transform: translateY(0) rotateZ(-2deg);\n    opacity: .5; }\n  66% {\n    -webkit-transform: translateY(5px) rotateZ(2deg);\n            transform: translateY(5px) rotateZ(2deg);\n    opacity: .7; }\n  100% {\n    -webkit-transform: translateY(0) rotateZ(0);\n            transform: translateY(0) rotateZ(0);\n    opacity: 1; } }\n\n@-webkit-keyframes hideSweetToast {\n  0% {\n    opacity: 1; }\n  33% {\n    opacity: .5; }\n  100% {\n    -webkit-transform: rotateZ(1deg);\n            transform: rotateZ(1deg);\n    opacity: 0; } }\n\n@keyframes hideSweetToast {\n  0% {\n    opacity: 1; }\n  33% {\n    opacity: .5; }\n  100% {\n    -webkit-transform: rotateZ(1deg);\n            transform: rotateZ(1deg);\n    opacity: 0; } }\n\n@-webkit-keyframes showSweetAlert {\n  0% {\n    -webkit-transform: scale(0.7);\n            transform: scale(0.7); }\n  45% {\n    -webkit-transform: scale(1.05);\n            transform: scale(1.05); }\n  80% {\n    -webkit-transform: scale(0.95);\n            transform: scale(0.95); }\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1); } }\n\n@keyframes showSweetAlert {\n  0% {\n    -webkit-transform: scale(0.7);\n            transform: scale(0.7); }\n  45% {\n    -webkit-transform: scale(1.05);\n            transform: scale(1.05); }\n  80% {\n    -webkit-transform: scale(0.95);\n            transform: scale(0.95); }\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1); } }\n\n@-webkit-keyframes hideSweetAlert {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1; }\n  100% {\n    -webkit-transform: scale(0.5);\n            transform: scale(0.5);\n    opacity: 0; } }\n\n@keyframes hideSweetAlert {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1; }\n  100% {\n    -webkit-transform: scale(0.5);\n            transform: scale(0.5);\n    opacity: 0; } }\n\n.swal2-show {\n  -webkit-animation: showSweetAlert .3s;\n          animation: showSweetAlert .3s; }\n  .swal2-show.swal2-toast {\n    -webkit-animation: showSweetToast .5s;\n            animation: showSweetToast .5s; }\n  .swal2-show.swal2-noanimation {\n    -webkit-animation: none;\n            animation: none; }\n\n.swal2-hide {\n  -webkit-animation: hideSweetAlert .15s forwards;\n          animation: hideSweetAlert .15s forwards; }\n  .swal2-hide.swal2-toast {\n    -webkit-animation: hideSweetToast .2s forwards;\n            animation: hideSweetToast .2s forwards; }\n  .swal2-hide.swal2-noanimation {\n    -webkit-animation: none;\n            animation: none; }\n\n@-webkit-keyframes animate-success-tip {\n  0% {\n    width: 0;\n    left: 1px;\n    top: 19px; }\n  54% {\n    width: 0;\n    left: 1px;\n    top: 19px; }\n  70% {\n    width: 50px;\n    left: -8px;\n    top: 37px; }\n  84% {\n    width: 17px;\n    left: 21px;\n    top: 48px; }\n  100% {\n    width: 25px;\n    left: 14px;\n    top: 45px; } }\n\n@keyframes animate-success-tip {\n  0% {\n    width: 0;\n    left: 1px;\n    top: 19px; }\n  54% {\n    width: 0;\n    left: 1px;\n    top: 19px; }\n  70% {\n    width: 50px;\n    left: -8px;\n    top: 37px; }\n  84% {\n    width: 17px;\n    left: 21px;\n    top: 48px; }\n  100% {\n    width: 25px;\n    left: 14px;\n    top: 45px; } }\n\n@-webkit-keyframes animate-success-long {\n  0% {\n    width: 0;\n    right: 46px;\n    top: 54px; }\n  65% {\n    width: 0;\n    right: 46px;\n    top: 54px; }\n  84% {\n    width: 55px;\n    right: 0;\n    top: 35px; }\n  100% {\n    width: 47px;\n    right: 8px;\n    top: 38px; } }\n\n@keyframes animate-success-long {\n  0% {\n    width: 0;\n    right: 46px;\n    top: 54px; }\n  65% {\n    width: 0;\n    right: 46px;\n    top: 54px; }\n  84% {\n    width: 55px;\n    right: 0;\n    top: 35px; }\n  100% {\n    width: 47px;\n    right: 8px;\n    top: 38px; } }\n\n@-webkit-keyframes animate-toast-success-tip {\n  0% {\n    width: 0;\n    left: 1px;\n    top: 9px; }\n  54% {\n    width: 0;\n    left: 1px;\n    top: 9px; }\n  70% {\n    width: 24px;\n    left: -4px;
102\n    top: 17px; }\n  84% {\n    width: 8px;\n    left: 10px;\n    top: 20px; }\n  100% {\n    width: 12px;\n    left: 3px;\n    top: 18px; } }\n\n@keyframes animate-toast-success-tip {\n  0% {\n    width: 0;\n    left: 1px;\n    top: 9px; }\n  54% {\n    width: 0;\n    left: 1px;\n    top: 9px; }\n  70% {\n    width: 24px;\n    left: -4px;\n    top: 17px; }\n  84% {\n    width: 8px;\n    left: 10px;\n    top: 20px; }\n  100% {\n    width: 12px;\n    left: 3px;\n    top: 18px; } }\n\n@-webkit-keyframes animate-toast-success-long {\n  0% {\n    width: 0;\n    right: 22px;\n    top: 26px; }\n  65% {\n    width: 0;\n    right: 22px;\n    top: 26px; }\n  84% {\n    width: 26px;\n    right: 0;\n    top: 15px; }\n  100% {\n    width: 22px;\n    right: 3px;\n    top: 15px; } }\n\n@keyframes animate-toast-success-long {\n  0% {\n    width: 0;\n    right: 22px;\n    top: 26px; }\n  65% {\n    width: 0;\n    right: 22px;\n    top: 26px; }\n  84% {\n    width: 26px;\n    right: 0;\n    top: 15px; }\n  100% {\n    width: 22px;\n    right: 3px;\n    top: 15px; } }\n\n@-webkit-keyframes rotatePlaceholder {\n  0% {\n    -webkit-transform: rotate(-45deg);\n            transform: rotate(-45deg); }\n  5% {\n    -webkit-transform: rotate(-45deg);\n            transform: rotate(-45deg); }\n  12% {\n    -webkit-transform: rotate(-405deg);\n            transform: rotate(-405deg); }\n  100% {\n    -webkit-transform: rotate(-405deg);\n            transform: rotate(-405deg); } }\n\n@keyframes rotatePlaceholder {\n  0% {\n    -webkit-transform: rotate(-45deg);\n            transform: rotate(-45deg); }\n  5% {\n    -webkit-transform: rotate(-45deg);\n            transform: rotate(-45deg); }\n  12% {\n    -webkit-transform: rotate(-405deg);\n            transform: rotate(-405deg); }\n  100% {\n    -webkit-transform: rotate(-405deg);\n            transform: rotate(-405deg); } }\n\n.swal2-animate-success-line-tip {\n  -webkit-animation: animate-success-tip .75s;\n          animation: animate-success-tip .75s; }\n\n.swal2-animate-success-line-long {\n  -webkit-animation: animate-success-long .75s;\n          animation: animate-success-long .75s; }\n\n.swal2-success.swal2-animate-success-icon .swal2-success-circular-line-right {\n  -webkit-animation: rotatePlaceholder 4.25s ease-in;\n          animation: rotatePlaceholder 4.25s ease-in; }\n\n@-webkit-keyframes animate-error-icon {\n  0% {\n    -webkit-transform: rotateX(100deg);\n            transform: rotateX(100deg);\n    opacity: 0; }\n  100% {\n    -webkit-transform: rotateX(0deg);\n            transform: rotateX(0deg);\n    opacity: 1; } }\n\n@keyframes animate-error-icon {\n  0% {\n    -webkit-transform: rotateX(100deg);\n            transform: rotateX(100deg);\n    opacity: 0; }\n  100% {\n    -webkit-transform: rotateX(0deg);\n            transform: rotateX(0deg);\n    opacity: 1; } }\n\n.swal2-animate-error-icon {\n  -webkit-animation: animate-error-icon .5s;\n          animation: animate-error-icon .5s; }\n\n@-webkit-keyframes animate-x-mark {\n  0% {\n    -webkit-transform: scale(0.4);\n            transform: scale(0.4);\n    margin-top: 26px;\n    opacity: 0; }\n  50% {\n    -webkit-transform: scale(0.4);\n            transform: scale(0.4);\n    margin-top: 26px;\n    opacity: 0; }\n  80% {\n    -webkit-transform: scale(1.15);\n            transform: scale(1.15);\n    margin-top: -6px; }\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    margin-top: 0;\n    opacity: 1; } }\n\n@keyframes animate-x-mark {\n  0% {\n    -webkit-transform: scale(0.4);\n            transform: scale(0.4);\n    margin-top: 26px;\n    opacity: 0; }\n  50% {\n    -webkit-transform: scale(0.4);\n            transform: scale(0.4);\n    margin-top: 26px;\n    opacity: 0; }\n  80% {\n    -webkit-transform: scale(1.15);\n            transform: scale(1.15);\n    margin-top: -6px; }\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    margin-top: 0;\n    opacity: 1; } }\n\n.swal2-animate-x-mark {\n  -webkit-animation: animate-x-mark .5s;\n          animation: animate-x-mark .5s; }\n\n@-webkit-keyframes rotate-loading {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@keyframes rotate-loading {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n"),w}),"undefined"!=typeof window&&window.Sweetalert2&&(window.sweetAlert=window.swal=window.Sweetalert2),
103/*!
vendor: 4,575 bytes, lines 104-113
104 * jQuery UI Position 1.11.0
105 * http://jqueryui.com
106 *
107 * Copyright 2014 jQuery Foundation and other contributors
108 * Released under the MIT license.
109 * http://jquery.org/license
110 *
111 * http://api.jqueryui.com/position/
112 */
113function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){return function(){e.ui=e.ui||{};var t,n,i=Math.max,o=Math.abs,s=Math.round,r=/left|center|right/,a=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,h=e.fn.position;function d(e,t,n){return[parseFloat(e[0])*(u.test(e[0])?t/100:1),parseFloat(e[1])*(u.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,i,o=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=o.children()[0];return e("body").append(o),n=s.offsetWidth,o.css("overflow","scroll"),n===(i=s.offsetWidth)&&(i=o[0].clientWidth),o.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=e.isWindow(n[0]);return{element:n,isWindow:i,isDocument:!!n[0]&&9===n[0].nodeType,offset:n.offset()||{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:i?n.width():n.outerWidth(),height:i?n.height():n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return h.apply(this,arguments);t=e.extend({},t);var u,f,g,m,v,y,b=e(t.of),w=e.position.getWithinInfo(t.within),_=e.position.getScrollInfo(w),k=(t.collision||"flip").split(" "),x={};return y=function(t){var n=t[0];return 9===n.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(n)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}(b),b[0].preventDefault&&(t.at="left top"),f=y.width,g=y.height,m=y.offset,v=e.extend({},m),e.each(["my","at"],function(){var e,n,i=(t[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=l.exec(i[0]),n=l.exec(i[1]),x[this]=[e?e[0]:0,n?n[0]:0],t[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===t.at[0]?v.left+=f:"center"===t.at[0]&&(v.left+=f/2),"bottom"===t.at[1]?v.top+=g:"center"===t.at[1]&&(v.top+=g/2),u=d(x.at,f,g),v.left+=u[0],v.top+=u[1],this.each(function(){var r,a,l=e(this),c=l.outerWidth(),h=l.outerHeight(),y=p(this,"marginLeft"),C=p(this,"marginTop"),S=c+y+p(this,"marginRight")+_.width,D=h+C+p(this,"marginBottom")+_.height,T=e.extend({},v),A=d(x.my,l.outerWidth(),l.outerHeight());"right"===t.my[0]?T.left-=c:"center"===t.my[0]&&(T.left-=c/2),"bottom"===t.my[1]?T.top-=h:"center"===t.my[1]&&(T.top-=h/2),T.left+=A[0],T.top+=A[1],n||(T.left=s(T.left),T.top=s(T.top)),r={marginLeft:y,marginTop:C},e.each(["left","top"],function(n,i){e.ui.position[k[n]]&&e.ui.position[k[n]][i](T,{targetWidth:f,targetHeight:g,elemWidth:c,elemHeight:h,collisionPosition:r,collisionWidth:S,collisionHeight:D,offset:[u[0]+A[0],u[1]+A[1]],my:t.my,at:t.at,within:w,elem:l})}),t.using&&(a=function(e){var n=m.left-T.left,s=n+f-c,r=m.top-T.top,a=r+g-h,u={target:{element:b,left:m.left,top:m.top,width:f,height:g},element:{element:l,left:T.left,top:T.top,width:c,height:h},horizontal:s<0?"left":n>0?"right":"center",vertical:a<0?"top":r>0?"bottom":"middle"};f<c&&o(n+s)<f&&(u.horizontal="center"),g<h&&o(r+a)<g&&(u.vertical="middle"),i(o(n),o(s))>i(o(r),o(a))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),l.offset(e.extend(T,{using:a}))})},e.ui.position={fit:{left:function(e,t){var n,o=t.within,s=o.isWindow?o.scrollLeft:o.offset.left,r=o.width,a=e.left-t.collisionPosition.marginLeft,l=s-a,c=a+t.collisionWidth-r-s;t.collisionWidth>r?l>0&&c<=0?(n=e.left+l+t.collisionWidth-r-s,e.left+=l-n):e.left=c>0&&l<=0?s:l>c?s+r-t.collisionWidth:s:l>0?e.left+=l:c>0?e.left-=c:e.left=i(e.left-a,e.left)},top:function(e,t){var n,o=t.within,s=o.isWindow?o.scrollTop:o.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=s-a,c=a+t.collisionHeight-r-s;t.collisionHeight>r?l>
vendor: 9,450 bytes, lines 113-124
1130&&c<=0?(n=e.top+l+t.collisionHeight-r-s,e.top+=l-n):e.top=c>0&&l<=0?s:l>c?s+r-t.collisionHeight:s:l>0?e.top+=l:c>0?e.top-=c:e.top=i(e.top-a,e.top)}},flip:{left:function(e,t){var n,i,s=t.within,r=s.offset.left+s.scrollLeft,a=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,h=c+t.collisionWidth-a-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];u<0?((n=e.left+d+p+f+t.collisionWidth-a-r)<0||n<o(u))&&(e.left+=d+p+f):h>0&&((i=e.left-t.collisionPosition.marginLeft+d+p+f-l)>0||o(i)<h)&&(e.left+=d+p+f)},top:function(e,t){var n,i,s=t.within,r=s.offset.top+s.scrollTop,a=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,h=c+t.collisionHeight-a-l,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];u<0?(i=e.top+d+p+f+t.collisionHeight-a-r,e.top+d+p+f>u&&(i<0||i<o(u))&&(e.top+=d+p+f)):h>0&&(n=e.top-t.collisionPosition.marginTop+d+p+f-l,e.top+d+p+f>h&&(n>0||o(n)<h)&&(e.top+=d+p+f))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,o,s,r,a=document.getElementsByTagName("body")[0],l=document.createElement("div");for(r in t=document.createElement(a?"div":"body"),o={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&e.extend(o,{position:"absolute",left:"-1000px",top:"-1000px"}),o)t.style[r]=o[r];t.appendChild(l),(i=a||document.documentElement).insertBefore(t,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",s=e(l).offset().left,n=s>10&&s<11,t.innerHTML="",i.removeChild(t)}()}(),e.ui.position}),
114/*!
115 * jQuery UI Menu 1.11.0
116 * http://jqueryui.com
117 *
118 * Copyright 2014 jQuery Foundation and other contributors
119 * Released under the MIT license.
120 * http://jquery.org/license
121 *
122 * http://api.jqueryui.com/menu/
123 */
124function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./widget","./position"],e):e(jQuery)}(function(e){return e.widget("ui.menu",{version:"1.11.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var n=e(t.target);!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&e(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var n=e(t.currentTarget);n.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(t,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){var n,i,o,s,r,a=!0;function l(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:a=!1,i=this.previousFilter||"",o=String.fromCharCode(t.keyCode),s=!1,clearTimeout(this.filterTimer),o===i?s=!0:o=i+o,r=new RegExp("^"+l(o),"i"),n=this.activeMenu.find(this.options.items).filter(function(){return r.test(e(this).text())}),(n=s&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(o=String.fromCharCode(t.keyCode),r=new RegExp("^"+l(o),"i"),n=this.activeMenu.find(this.options.items).filter(function(){return r.test(e(this).text())})),n.length?(this.focus(t,n),n.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}a&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var t,n=this,i=this.options.icons.submenu,o=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),o.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.parent(),o=e("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(o),t.attr("aria-labelledby",n.attr("id"))}),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);n._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")}),t.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var n,i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,i,o,s,r,a;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,o=t.offset().top-this.activeMenu.offset().top-n-i,s=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=t.outerHeight(),o<0?this.activeMenu.scrollTop(s+o):o+a>r&&this.activeMenu.scrollTop(s+o-r+a))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(t),this.activeMenu=i},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
124se").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var i;this.active&&(i="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[t]()),this.focus(n,i)},nextPage:function(t){var n,i,o;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i-o<0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var n,i,o;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i+o>0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)}})}),
125/*!
126 * jQuery UI Autocomplete 1.11.0
127 * http://jqueryui.com
128 *
129 * Copyright 2014 jQuery Foundation and other contributors
130 * Released under the MIT license.
131 * http://jquery.org/license
132 *
133 * http://api.jqueryui.com/autocomplete/
134 */
135function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./widget","./position","./menu"],e):e(jQuery)}(function(e){return e.widget("ui.autocomplete",{version:"1.11.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,i,o=this.element[0].nodeName.toLowerCase(),s="textarea"===o,r="input"===o;this.isMultiLine=!!s||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[s||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return t=!0,i=!0,void(n=!0);t=!1,i=!1,n=!1;var s=e.ui.keyCode;switch(o.keyCode){case s.PAGE_UP:t=!0,this._move("previousPage",o);break;case s.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case s.UP:t=!0,this._keyEvent("previous",o);break;case s.DOWN:t=!0,this._keyEvent("next",o);break;case s.ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case s.TAB:this.menu.active&&this.menu.select(o);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o)}},keypress:function(i){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var o=e.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(e){if(i)return i=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 6,414 bytes, line 135
135)},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=e("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(i){i.target===t.element[0]||i.target===n||e.contains(n,i.target)||t.close()})})},menufocus:function(t,n){var i,o;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});o=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:o})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(o.value),(i=n.item.attr("aria-label")||o.value)&&jQuery.trim(i).length&&(this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(e,t){var n=t.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=e("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,i=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,i){i(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,o){i.xhr&&i.xhr.abort(),i.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){o(e)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||n||i)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var i=this;e.each(n,function(e,n){i._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").text(n.label).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var i=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return i.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion))}}),e.ui.autocomplete}),onWindowLoad(function(){var e=!1;$("body").hasClass("role-manager")||$("#sidebar").sidebar({onHide:function(){setTimeout(function(){e=!1},500)}}),$(".launch-sidebar").click(function(){($("body").hasClass("role-admin")||$("body").hasClass("role-manager")||!e)&&($("#sidebar").sidebar("toggle"),e=!0)})});
135var cssListUI=["/libs/vendor/jquery/ui-1.11.0/themes/base/core.min.css","/libs/vendor/jquery/ui-1.11.0/themes/base/datepicker.min.css","/libs/vendor/jquery/ui-1.11.0/themes/base/slider.min.css","/libs/vendor/jquery/ui-1.11.0/themes/base/autocomplete.min.css","/libs/vendor/jquery/ui-1.11.0/themes/base/menu.min.css","/libs/vendor/jquery/ui-1.11.0/themes/base/resizable.min.css","/libs/vendor/jquery/ui-1.11.0/themes/base/theme.min.css","/libs/vendor/jquery/ui-1.11.0/themes/ui-darkness/theme.min.css"];function loadStyle(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3;return new Promise(function(n,i){if(document.querySelector('link[href="'.concat(e,'"]')))return n();var o=document.createElement("link"),s=function(){try{var e,t;return!(null===(e=o.relList)||void 0===e||null===(t=e.supports)||void 0===t||!t.call(e,"preload"))}catch(e){return!1}}();o.href=e,s?(o.rel="preload",o.as="style",o.onload=function(){o.rel="stylesheet",n()}):(o.rel="stylesheet",o.media="print",o.onload=function(){o.media="all",n()}),o.onerror=function(){o.remove(),i(new Error("CSS failed: "+e))},document.head.appendChild(o),t>0&&setTimeout(function(){"stylesheet"!==o.rel&&(o.rel="stylesheet"),"print"===o.media&&(o.media="all")},t)})}Promise.all(cssListUI.map(loadStyle)).catch(console.warn);var languageISOCode=Config.languageISOCode;function getDatepickerLocaleUrl(e){if("pt"==(e=e||"en"))e="pt-BR";else if("zh"==e)e="zh-CN";else if("tl"==e)e="fil";else{if("en"==e||0==e.indexOf("en"))return null;e.indexOf("-")>0&&(e=e.substring(0,2))}return"/libs/vendor/jquery/ui-1.11.0/minified/i18n/datepicker-"+e+".min.js"}function loadDatepickerLocale(e){var t=getDatepickerLocaleUrl(e);if(t){jQuery.holdReady(!0);var n=!1,i=function(){n||(n=!0,jQuery.holdReady(!1))},o=document.createElement("script");o.src=t,o.onload=i,o.onerror=i,document.head.appendChild(o)}}function patchDatepickerDayCellsTwoDigits(){if(window.jQuery&&jQuery.datepicker&&!jQuery.datepicker.__patchedDayCellsTwoDigits&&"function"==typeof jQuery.datepicker._generateHTML){var e=jQuery.datepicker._generateHTML;jQuery.datepicker._generateHTML=function(t){var n=e.call(this,t);return t&&t.settings&&t.settings.dayTwoDigits?n=n.replace(/(<(a|span)[^>]*class=["'][^"']*ui-state-default[^"']*["'][^>]*>)([1-9])(<\/\2>)/g,function(e,t,n,i,o){return t+"0"+i+o}):n},jQuery.datepicker.__patchedDayCellsTwoDigits=!0}}function normalizeDatepickerDayNamesMinTo3Letters(){if(window.jQuery&&jQuery.datepicker&&!jQuery.datepicker.__normalizedDayNamesMinTo3Letters){var e=jQuery.datepicker._defaults.dayNamesShort||[];e&&e.length&&(jQuery.datepicker.setDefaults({dayNamesMin:e.map(function(e){var t=String(null==e?"":e);return(t=t.replace(/\./g,"").trim()).substring(0,3)})}),jQuery.datepicker.__normalizedDayNamesMinTo3Letters=!0)}}function patchDatepickerMonthSelectFullNames(){if(window.jQuery&&jQuery.datepicker&&!jQuery.datepicker.__patchedMonthSelectFullNames&&"function"==typeof jQuery.datepicker._generateMonthYearHeader){var e=jQuery.datepicker._generateMonthYearHeader;jQuery.datepicker._generateMonthYearHeader=function(t,n,i,o,s,r,a,l){return e.call(this,t,n,i,o,s,r,a,a)},jQuery.datepicker.__patchedMonthSelectFullNames=!0}}function datepickerInit(e){var t=Config.dateFormat.toLowerCase(),n=parseInt((new Date).getFullYear()),i=$("body").is(".role-manager, .role-webmaster, .role-performer, .role-admin");$(e||document).find("input.calendar-input").attr("autocomplete","off").datepicker({dateFormat:t.replace("yyyy","yy"),changeMonth:!0,changeYear:!0,dayTwoDigits:!0,showOtherMonths:!0,selectOtherMonths:!0,yearRange:n-85+":"+(n+1),showOn:"focus"}
135).each(function(){var e=$(this),t=e.attr("data-maxDate"),n=e.attr("data-disable-native-date")||e.hasClass("calendar-filter-input")||i;if(t&&e.datepicker("option","maxDate",t),n)e.prop("disabled")&&e.datepicker("option","disabled",!0);else{var o=$("<input type='date' autocomplete='off' name='calendar-"+e.attr("name")+"' class='screen-small "+e.attr("class").replace(/calendar-input/,"")+"' />");if(e.addClass("screen-large screen-medium"),t)if(e.datepicker("option","maxDate",t),-1!=t.indexOf("y")){var s=new Date;s.setFullYear(s.getFullYear()+parseInt(t.replace(/y/,""))),o.attr("max",s.toISOString().substring(0,10))}else e.attr("max",t);var r=new Date(e.val());try{o.val(r.getFullYear()+"-"+(r.getMonth()<9?"0":"")+(r.getMonth()+1)+"-"+(r.getDate()<9?"0":"")+r.getDate())}catch(e){}o.on("change",function(t){e.datepicker("setDate",new Date(this.value))}),o.on("input",function(){var e=this.value.split("-");3===e.length&&e[0].length>4&&(e[0]=e[0].substring(0,4),this.value=e.join("-"))}),e.after(o),e.prop("disabled")&&e.datepicker("option","disabled",!0)}})}function _typeof(e){return _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},_typeof(e)}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function s(n,i,o,s){var l=i&&i.prototype instanceof a?i:a,c=Object.create(l.prototype);return _regeneratorDefine2(c,"_invoke",function(n,i,o){var s,a,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return s=t,a=0,l=e,d.n=n,r}};function p(n,i){for(a=n,l=i,t=0;!h&&c&&!o&&t<u.length;t++){var o,s=u[t],p=d.p,f=s[2];n>3?(o=f===i)&&(l=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=p&&((o=n<2&&p<s[1])?(a=0,d.v=i,d.n=s[1]):p<f&&(o=n<3||s[0]>i||i>f)&&(s[4]=n,s[5]=i,d.n=f,a=0))}if(o||n>1)return r;throw h=!0,i}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&p(u,f),a=u,l=f;(t=a<2?e:l)||!h;){s||(a?a<3?(a>1&&(d.n=-1),p(a,l)):d.n=l:d.v=l);try{if(c=2,s){if(a||(o="next"),t=s[o]){if(!(t=t.call(s,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=s.return)&&t.call(s),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);s=e}else if((t=(h=d.n<0)?l:n.call(i,d))!==r)break}catch(t){s=e,a=1,l=t}finally{c=1}}return{value:t,done:h}}}(n,o,s),!0),c}var r={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(_regeneratorDefine2(t={},i,function(){return this}),t),h=c.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=c,_regeneratorDefine2(h,"constructor",c),_regeneratorDefine2(c,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(c,o,"GeneratorFunction"),_regeneratorDefine2(h),_regeneratorDefine2(h,o,"Generator"),_regeneratorDefine2(h,i,function(){return this}),_regeneratorDefine2(h,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:s,m:d}})()}function _regeneratorDefine2(e,t,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,t,n,i){function s(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},_regeneratorDefine2(e,t,n,i)}function asyncGeneratorStep(e,t,n,i,o,s,r){try{var a=e[s](r),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var s=e.apply(t,n);function r(e){asyncGeneratorStep(s,i,o,r,a,"next",e)}function a(e){asyncGeneratorStep(s,i,o,r,a,"throw",e)}r(void 0)})}}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
135if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){a=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(a)throw s}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function AddFundsPage(){}function DisplayOptionsControl(){}function SortingOptions(){}function onCountriesFilter(e){var t=$(e).val().toLowerCase();
135$(".js-sidebar-country-block li").each(function(){var e=$(this),n=e.text().toLowerCase();e.toggle(n.includes(t))})}loadDatepickerLocale(languageISOCode),$(function(){patchDatepickerDayCellsTwoDigits(),normalizeDatepickerDayNamesMinTo3Letters(),patchDatepickerMonthSelectFullNames(),datepickerInit()}),_onload_functions[_onload_functions.length]=function(){jQuery(".show-tooltip").qtip({style:{classes:"qtip-bootstrap"},hide:{fixed:!0,delay:500}})},_onload_functions[_onload_functions.length]=function(){$(".show_hide").on("click",function(){return!1}),jQuery(".show_hide").each(function(){$(this).qtip({style:"searchpopup",content:jQuery(".search_panel"),position:{my:"top left",at:"bottom left",adjust:{y:30}},show:{event:"click",solo:!0},hide:{event:"unfocus"}})}).click(function(){return!1}),$("#search_form_reset").on("click",function(){$("#search_form_data :checkbox").removeAttr("checked")})},$(function(){var e=TimeUtils.getTzNameByLocation(Config.location,Config.defaultTimezone);jQuery.cookie("Timezone",e,{useLocalStorage:!1,expires:new Date(2100,1,1,1,1,1),path:"/"})}),$(function(){$("[data-utcdatetime]").each(function(e,t){var n="YYYY-MM-DDThh:mm:ss",i="YYYY-MM-DD h:mm a";null!=$(this).data("utcformat")&&(n=$(this).data("utcformat")),null!=$(this).data("localformat")&&(i=$(this).data("localformat")),$(t).html(moment.utc($(t).data("utcdatetime"),n).local().format(i))})}),$(function(){$("[data-bootstrap-table]").each(function(e,t){$(t).bootstrapTable({formatNoMatches:function(){return $(t).data("formatnomatches")?$(t).data("formatnomatches"):I18n.t("No data found")}})})}),$(function(){$(window).scroll(function(){var e=window.mobileSidebarScrollPosition;(document.body.classList.contains("mobile-sidebar-scroll-locked")&&e?e.top:$(this).scrollTop())>=150?$("#return-to-top").fadeIn(200):$("#return-to-top").fadeOut(200)}),$("#return-to-top").click(function(){$("body,html").animate({scrollTop:0},500)})}),$(window).on("load",function(){$(".canvasBgBlur").each(function(){var e=$
135(this),t=new Image,n=e.css("background-image");if(n&&"none"!==n&&!/^(linear-gradient|radial-gradient)/i.test(n)){var i=n.replace(/^url\(["']?/,"").replace(/["']?\)$/,"");i&&"none"!==i&&"undefined"!==i&&(t.onerror=function(){},t.src=i,t.onload=function(){var n=document.createElement("canvas"),i=n.getContext("2d");n.width=t.width,n.height=t.height,i.drawImage(t,0,0),i.filter="blur(15px)",i.clearRect(0,0,n.width,n.height),i.drawImage(t,0,0);var o=n.toDataURL();e.css("background-image","url("+o+")")})}})}),$(function(){$(".page-content").removeClass("loading")}),$(function(){if($(".ui.container").find("#welcome-menu").length){var e=function(e){(e<=t||n)&&(n=!n,$("#welcome-menu:not(.welcome-manager)").toggleClass("js-accordion"),$("#welcome-menu:not(.welcome-manager)").find("h3.header").map(function(e,t){$(t).toggleClass("js-title"),$(t).toggleClass("arrow"),$(t).next().toggleClass("js-content")})),$(".js-accordion").accordion({selector:{accordion:".js-accordion",trigger:".js-title",title:".js-title",content:".js-content"},animateChildren:!1})};$(".ui.container").addClass("page-welcome");var t=425,n=!1;e(window.innerWidth),screen.orientation.onchange=function(){e(window.innerHeight)}}}),$(function(){$("a").filter(function(){return-1!=StringUtils.NVL($(this).attr("href"),"").indexOf(Config.performer+"/broadcast")}).each(function(){$(this).attr("target","_blank")})}),$(function(){$("a[href=#]").each(function(){this.href="/"})}),$(function(){jQuery("#flogin-menu a.flogin").each(function(){var e=$
135(this);e.qtip({style:"flogin",content:jQuery("#"+e.attr("data-qtip2-content")),position:{my:"bottom center",at:"top center"},show:{event:"mouseover",solo:!0},hide:{event:"unfocus"}})}).click(function(){return!1})}),$(function(){document.getElementsByClassName("js-country-geodata").length>0&&(null==document.getElementById("countryId")&&$("body").append('<select id="countryId" class="countries order-alpha" style="display: none;" required><option value="">Select Country</option></select>'),$("input[list]").on("focus",function(e){var t=$(this).one("mouseup.mouseupSelect",function(){return t.select(),!1}).one("mousedown",function(){t.off("mouseup.mouseupSelect")}).select()}))}),$(function(){jQuery(".js-change-theme").on("click",function(){var e=new URI;return e.removeSearch("theme").addSearch("theme",$(this).attr("data-theme")),document.location.href=e.toString(),!1})}),$(function(){$(".js-toggle-category").click(function(e){e.preventDefault(),$("body").toggleClass("categories-visible")})}),$(function(){$(".js-search-submit").click(function(){$(this).parents("form").trigger("submit")}),$(".js-toggle-search_panel").on("click",function(){if(!mqlMobile.matches)return $(".search_panel").slideToggle(),!1})}
135),$(window).on("load",function(){var e=$(".models-thumbnails li.model-thumbnail:last-of-type");SiteUtils.addMinHeightInLastLi(e);var t=function(){var e=Array.from(document.querySelectorAll(".models-thumbnails"));if(e.length){var t,n=(t=!1,function(){if(!t){t=!0;var n=function(){e.forEach(function(e){if(!$(e).hasClass("checkout-block")){var t=$(e).find("li.model-thumbnail:last-of-type");t.length&&SiteUtils.addMinHeightInLastLi(t)}}),t=!1};"requestIdleCallback"in window?requestIdleCallback(function(){return setTimeout(n,0)},{timeout:1500}):setTimeout(n,150)}}),i=new MutationObserver(function(e){var t,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if("childList"===o.type&&o.addedNodes&&o.addedNodes.length){n();break}}}catch(e){i.e(e)}finally{i.f()}});e.forEach(function(e){return i.observe(e,{childList:!0})}),setTimeout(function(){return i.disconnect()},15e3)}};"requestIdleCallback"in window?requestIdleCallback(t,{timeout:2e3}):setTimeout(t,2e3),$(".mm-join .mm-item, .mm-join-model .mm-item").on("click",function(e){e.preventDefault(),$(this).popup()})}),AddFundsPage.handleCoupon=function(e,t){var n=$("#"+t),i=$.trim(e.elements.coupon_code.value),o=$.trim(e.elements.package_id.value);0!=i.length&&$.ajax({dataType:"json",type:"GET",cache:!1,url:Config.exec+"/postback/addfunds_page.jsp",data:{command:"coupon-handle",coupon_code:i,package_id:o},success:function(e){e.res?(n.html('<span class="note">'+e.msg+"</span>"),e.accountBalance&&SiteUtils.updateAccountBalance(e.accountBalance)):n.html('<span class="warning">'+e.msg+"</span>")},error:function(){n.html('<span class="error">'+I18n.t("Connection timed out. Please try again later.")+"</span>")}})},AddFundsPage.validateCoupon=function(e,t){var n=$("#"+t),i=$.trim(e.elements.coupon_code.value),o=$(e).find("input[name=package_id]:checked").val();0!=i.length&&$.ajax({dataType:"json",type:"GET",cache:!1,url:Config.exec+"/postback/addfunds_page.jsp",data:{command:"coupon-validate",coupon_code:i,package_id:o},success:function(e){e.res?n.html('<span class="note">'+e.msg+"</span>"):n.html('<span class="warning">'+e.msg+"</span>")},error:function(){n.html('<span class="error">'+I18n.t("Connection timed out. Please try again later.")+"</span>")}})},AddFundsPage.submitTrialCouponForm=function(e,t){var n=$("#"+t);return $.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/addfunds_page.jsp",cache:!1,data:{command:"trialCoupon-activate",coupon_code:$.trim(e.elements.coupon_code.value)},success:function(e){e.res?(n.html('<p style="margin-top:0;" class="note">'+e.msg+"</p>"),SiteUtils.updateAccountBalance(e.accountBalance)):n.html('<p style="margin-top:0;" class="warning">'+e.msg+"</p>")},error:function(){n.html('<p style="margin-top:0;" class="error">'+I18n.t("Connection timed out. Please try again later.")+"</p>")}}),!1},AddFundsPage.applyCoupon=function(e,t){return $.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/addfunds_page.jsp",cache:!1,data:{command:"apply-coupon",coupon_code:e},success:function(e){t(null!=e&&e.res?"success":"warning",I18n.t(null!=e&&e.res?"Success":"Warning"),null==e?void 0:e.msg),null!=e&&e.res&&SiteUtils.updateAccountBalance(null==e?void 0:e.accountBalance)},error:function(){t("error",I18n.t("Error"),I18n.t("Connection timed out. Please try again later."))}}),!1},DisplayOptionsControl.changeDisplaySize=function(e,t){$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/sorting_options.jsp",cache:!1,data:{cmd:"display-size",size:e,switchToMode:t},success:function(){location.reload()},error:function(e){console.error(e)}})},DisplayOptionsControl.changeProfilePhotoMode=function(e){$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/sorting_options.jsp",cache:!1,data:{cmd:"profile-photo-mode",mode:e},success:function(){location.reload()},error:function(e){console.error(e)}})},SortingOptions.toggleSortByModel=function(e){$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/sorting_options.jsp",cache:!1,data:{cmd:"sort-by-model",sort:e},success:function(){location.reload()},error:function(e){console.error(e)}})},$(function(){if(WebPushNotificationsService.init(),window.jQuery&&jQuery.datepicker&&!jQuery.datepicker.__normalizedDayNamesMinTo3
135Letters){var e=jQuery.datepicker._defaults.dayNamesShort||[];e&&e.length&&(jQuery.datepicker.setDefaults({dayNamesMin:e.map(function(e){var t=String(null==e?"":e);return(t=t.replace(/\./g,"").trim()).substring(0,3)})}),jQuery.datepicker.__normalizedDayNamesMinTo3Letters=!0)}if(window.jQuery&&jQuery.datepicker&&!jQuery.datepicker.__patchedMonthSelectFullNames&&"function"==typeof jQuery.datepicker._generateMonthYearHeader){var t=jQuery.datepicker._generateMonthYearHeader;jQuery.datepicker._generateMonthYearHeader=function(e,n,i,o,s,r,a,l){return t.call(this,e,n,i,o,s,r,a,a)},jQuery.datepicker.__patchedMonthSelectFullNames=!0}var n=(Config&&Config.dateFormat?String(Config.dateFormat):"").toLowerCase();function i(e){var t=e.find("option:not(:disabled)");return!!t.length&&t.filter(":selected").length===t.length}function o(e,t){var n=i(e),o=e.data("toggleSelectText")||I18n.t("Select all"),s=e.data("toggleUnselectText")||I18n.t("Unselect all");t.find(".select2-toggle-all").text(n?s:o)}n&&(n=n.replace("yyyy","yy")),$(".custom-datepicker, .calendar-filter-input").attr("autocomplete","off"),$(".custom-datepicker").datepicker({dateFormat:n||"mm/dd/yy",changeMonth:!0,changeYear:!0,dayTwoDigits:!0,showOtherMonths:!0,selectOtherMonths:!0,defaultDate:new Date($(this).val())}
135).each(function(){var e=$(this),t=e.attr("data-maxDate");t&&e.datepicker("option","maxDate",t)}),$(document).on("focus.calendarFilterInput",".calendar-filter-input",function(){var e=$(this);e.hasClass("hasDatepicker")||e.datepicker({dateFormat:n||"mm/dd/yy",changeMonth:!0,changeYear:!0,dayTwoDigits:!0,showOtherMonths:!0,selectOtherMonths:!0}),e.datepicker("show")}),$(".select2").on("select2:select select2:unselect",function(e){var t;null!==(t=e.params.originalEvent)&&void 0!==t&&t.metaKey&&$(e.target).select2("open")}),$("select[multiple].select2").on("select2:selecting",function(e){$(e.currentTarget).data("scrollTop",$(".select2-results__options").scrollTop())}).on("select2:select select2:unselect",function(e){$(".select2-results__options").scrollTop($(e.currentTarget).data("scrollTop"))}),$(document).on("select2:open",function(e){var t=$(e.target);if(t.prop("multiple")){var n=t.data("select2"),s=n&&n.options&&n.options.get&&n.options.get("maximumSelectionLength")||t.data("maximumSelectionLength")||0,r=t.find("option:not(:disabled)").length;if(!(+s>0||r<5)){var a=n&&n.$dropdown||$(".select2-container--open .select2-dropdown"),l=a.find(".select2-results");if(!l.find(".select2-actions").length){var c=$('<div class="select2-actions" style="padding:6px 8px;border-bottom:1px solid #e5e7eb;display:flex;gap:8px;align-items:center;"></div>'),u=$('<button type="button" class="select2-toggle-all" style="font:inherit;padding:4px 8px;border:1px solid #d1d5db;border-radius:6px;background:#f3f4f6;cursor:pointer;"></button>');c.append(u),l.prepend(c)}
135o(t,a),a.off("click.select2-toggle-all").on("click.select2-toggle-all",".select2-toggle-all",function(e){e.preventDefault(),i(t)?t.val(null).trigger("change"):(t.find("option:not(:disabled)").prop("selected",!0),t.trigger("change")),o(t,a),t.select2("close")})}}}),$(document).on("change","select.select2",function(){var e=$(this);if(e.prop("multiple")){var t=e.data("select2");if(t){var n=t.$dropdown||$(".select2-container--open .select2-dropdown");n&&n.length&&o(e,n)}}})});var AdvancedSearchPageCounter=function(){return _createClass(function e(t,n){_classCallCheck(this,e),this.$container=$(t),this.$insertContainer=$(n),this.counter=0,this.initListeners()},[{key:"initListeners",value:function(){var e=this;this.$container.find("select").on("change",function(t){e.calculate()}),this.$container.find("input[type='checkbox']").on("change",function(t){e.calculate()})}},{key:"calculate",value:function(){var e=this;e.counter=0,this.$container.find("option").each(function(){$(this).prop("selected")&&e.counter++}),this.$container.find("input[type='checkbox']").each(function(){$(this).prop("checked")&&e.counter++}),this.updateInsertContainer()}},{key:"updateInsertContainer",value:function(){this.$insertContainer.html(this.get())}},{key:"get",value:function(){return this.counter}}])}();function FanpageSubscription(){}function SocialNetworkSubscription(){}jQuery(document).ready(function(){var e={};function t(e){var t=e.scrollWidth-e.clientWidth;0!==t?e.scrollLeft<0||e.scrollLeft>t||(0===e.scrollLeft?$(e).addClass("arrow-right").removeClass("arrow-left arrow-both"):e.scrollLeft>0&&Math.abs(e.scrollLeft-t)>20?$(e).removeClass("arrow-left arrow-right").addClass("arrow-both"):Math.abs(e.scrollLeft-t)<=20&&$(e).removeClass("arrow-right arrow-both").addClass("arrow-left")):$(e).removeClass("arrow-left arrow-both arrow-right")}$(".js-search-select2").length>0&&window.initSelect2Elements($(".adv-search-select2"),$("#adv-search-select2-dropdown-container")),$(".js-search-select2").length>0&&$(".js-search-select2").select2({theme:"base-select2",closeOnSelect:!1,templateResult:function(t){if(t.loading)return t.text;var n=e.term||"",i=function(e,t){var n=e.toUpperCase().indexOf(t.toUpperCase()),i=$("<span></span>");if(n<0)return i.text(e);i.text(e.substring(0,n));var o=$("<u></u>");return o.text(e.substring(n,n+t.length)),i.append(o),i.append(e.substring(n+t.length)),i}(t.text,n);return i},language:{searching:function(t){return e=t,Config.languageISOCode}},dropdownParent:$("#adv-search-select2-dropdown-container")}),document.querySelectorAll(".horizontal-scroll-arrow").forEach(function(e){var n=e.querySelector(".active");if(n)try{var i=parseFloat(window.getComputedStyle(n.firstElementChild).paddingLeft);e.scrollLeft=n.offsetLeft-i-30}catch(e){console.error(e)}e.addEventListener("scroll",function(){t(e)}),$(window).on("resize",function(){debounce(function(){t(e)},100)()}),$(e).find(".arrow-icon-left, .arrow-icon-right").click(function(n){n.target.parentNode.clientWidth-n.clientX>n.target.parentNode.clientWidth/2?e.scrollLeft-=e.scrollWidth-e.clientWidth>30?30:0:n.target.parentNode.clientWidth-n.clientX<n.target.parentNode.clientWidth/2&&(e.scrollLeft+=30),t(e)}),t(e)}),$(document).on("click",".js-hidden-trigger",function(e){$($(e.currentTarget).data("element")).toggleClass("hidden")});try{initGiftsEvents()}catch(e){}$(document).on("click",".visibility-trigger",function(e){e.preventDefault();var t=$(this).data("element"),n=$(this).hasClass("screen-medium")?"screen-medium":"screen-small";if(""!=t){var i=$(t);i.hasClass("mobile-panel")||i.addClass("mobile-panel"),$(".mobile-panel:not("+t+")").removeClass(n).addClass("screen-large"),i.hasClass(n)?(i.removeClass(n),i.addClass("screen-large")):(i.addClass(n),i.removeClass("screen-large"))}else $(".mobile-panel").removeClass(n).addClass("screen-large"),$("body").removeClass("mobile-menu-opened")}).on("click",".dropdownmenu-trigger",function(e){e.preventDefault();var t=$(this).data("element"),n=$(this).hasClass("screen-medium")?"screen-medium":"screen-small";if($(".mobile-panel").removeClass(n).addClass("screen-large"),$("body").removeClass("mobile-menu-opened"),""!=t){var i=$(t);if(i.hasClass("mobile-dropdown")||i.addClass("mobile-dropdown"),i.hasClass("open"))i.removeClass("open").find(".dropdown-toggle").attr("aria-expanded",!1),i.find(".dropdown-menu").removeClass(n);else{var o=$(".mobile-dropdown:not("+t+")").removeClass("open");o.find(".dropdown-toggle").attr("aria-expanded",!1),o.find(".dropdown-menu").removeClass(n),i.addClass("open").find(".dropdown-toggle").attr("aria-expanded",!1),i.find(".dropdown-menu").addClass(n)}}return!1}).on("click",".navbar-menu",function(e){console.dir(e),$(e.target).hasClass("navbar-menu")&&$(".visibility-trigger[data-element='.navbar-menu']").click()}),$(".js-change-language-filter").on("change",function(e){window.location.href=e.target.value}),SiteUtils.sidebarHandler(),MainPageLoader.loadInfo.isBurgerMenuLoaded?initBurgerMenuHandlers():$("body").on(MainPageLoader.BURGER_MENU_LOADED,initBurgerMenuHandlers),$(".js-search-select2").on("change.select2",function(e){var t=$(e.target),n=$(t.data("choice-container-selector")),i=t.data("placeholder");$(e.target).next().find("input").attr("placeholder",i);var o=t.select2("data"),s=$("<span class='link-btn clear-all-btn'>"+I18n.t("Clear All")+"</span>");s.on("click",function(e){t.val([]).trigger("change")}),n.html(""),o.length>
1350&&(o.forEach(function(e){var i=$('<span class="badge">'+e.text+' <span data-select2-id="'+e.id+'" class="select2-selection__choice__remove">×</span></span>');i.find(".select2-selection__choice__remove").on("click",function(){$(this).parent().remove();var e=$(this).data("select2-id");o=o.filter(function(t){return t.id!=e}),t.val(o.map(function(e){return e.id})).trigger("change")}),n.append(i)}),n.append(s))}),$("#gender.adv-search-select2").on("change.select2",function(e,t){SiteUtils.setCategoriesByGender(t)}),$(".js-upload-cf-checkbox").on("click",function(e){SiteUtils.updateCustomField(e.target.name,1*e.target.checked)})}),$(function(){try{var e=function(){var t=$("#message-recipient-picker");t.messageRecipientPicker({delay:1e3,appendTo:".users-select-autocomplete",source:function(e,t){e.term.length>=3&&$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/privatemessages_area.jsp",data:{command:"user-search",userName:e.term},success:function(e){t(e.users)}})},select:function(t,n){var i=n.item,o=$("#private-message");return o.find("input[name=message_recipient_id]").val(i.id),o.find("input[name=message_recipient_type]").val(i.type),o.find("input[name=message_recipient_picker]").val(i.screenName),o.find("#recipient-avatar").attr("src",i.avatarSrc).removeClass("hidden"),$(this).messageRecipientPicker("destroy"),e(),!1}}),t.on("focusin",function(){$(this).val()?$(this).messageRecipientPicker("search"):$(this).messageRecipientPicker("search"," ")})};$.widget("custom.catcomplete",$.ui.autocomplete,{_create:function(){this._super(),this.widget().menu("option","items","> :not(.ui-autocomplete-category)")},_renderMenu:function(e,t){var n=this;e.addClass("items");var i="";$.each(t,function(t,o){o.contentCategory!==i&&(0!=t&&e.append("<hr>"),e.append("<li class='ui-autocomplete-category item title'><span class='text'>"+o.contentCategory+"</span><span class='count'>"+o.totalCategoryContent.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+"</span></li>"),i=o.contentCategory),n._renderItemData(e,o)})}}),$.widget("custom.modelsearch",$.ui.autocomplete,{_create:function(){this._super(),this.widget().menu("option","items","> :not(.ui-autocomplete-category)")},_renderMenu:function(e,t){var n=this;e.addClass("header-autocomplete-search"),$.each(t,function(t,i){n._renderItemData(e,i)})},_renderItem:function(e,t){var n="<img class='avatar' src='"+t.avatarUrl+"'/>";return $("<li>").append("<div>"+n+t.screenName+"</div>").appendTo(e)}}),$.widget("custom.messageRecipientPicker",$.ui.autocomplete,{_create:function(){this._super(),this.widget().menu("option","items","> :not(.ui-autocomplete-category)")},_renderMenu:function(e,t){var n=this;e.addClass("users");var i="";$.each(t,function(t,o){if(o.type!==i){var s=1===o.type?"Customer":"Model";0!==t&&e.append("<hr>"),e.append("<li class='ui-autocomplete-usertype item title'><span class='text'>"+s+"</span><span class='count'>("+o.totalUsersInType.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+")</span></li>"),i=o.type}n._renderItemData(e,o)})},_renderItem:function(e,t){var n="<img class='avatar' src='"+t.avatarSrc+"'/>";return $("<li class='user'>").append("<div class='user-info'>"+n+t.screenName+"</div>").appendTo(e)}}),$("#search-model-autocomplete").modelsearch({delay:500,appendTo:".search-result",source:function(e,t){e.term.length<5||$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/customer_area.jsp",data:{cmd:"models-search",performer_name:e.term},success:function(e){t(e.performers)}})},select:function(e,t){var n=t.item,i="<div class='delete-preview'><img class='avatar' src='"+n.avatarUrl+"'></img><span>"+n.screenName+"</span></div>";return $.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/customer_area.jsp",data:{cmd:"find-active-subscriptions",performer_id:n.id},success:function(e){var t=e.res,o=e.subscriptions;if(t&&o.length>0){i+="<p class='a-left mt-5'><b>"+I18n.t("Subscriptions that will be canceled")+":</b></p>";for(var s=0;s<o.length;s++)i+="<div class='mt-1 a-left'><span class='p-1'><b>"+o[s].name+":</b></span><span class='p-1'>"+StringUtils.formatDouble(o[s].price,2)+"<span class='p-1'>"+I18n.t("Tokens")+"</span></span><span class='p-1'>"+I18n.t("Expired")+": "+o[s].expired+"</span></div><hr>"}swal({title:I18n.t("Are you sure you want to block this model?"),showCancelButton:!0,confirmButtonText:I18n.t("Yes"),cancelButtonText:I18n.t("Cancel"),reverseButtons:!0,type:"warning",html:"<div class='bootstrap-iso'>"+i+"</div>"}).then(function(e){var t;e.value&&(t=n.id,$.ajax(Config.exec+"/postback/customer_area.jsp",{data:{cmd:"block-performer",performer_id:t},type:"GET",dataType:"json",success:function(e){e.res?document.location.reload():alert(e.msg)}}))})}}),!1}}),$("#adv-autocomplete").catcomplete({delay:1e3,appendTo:".search-bar-container",source:function(e,t){var n=[],i=[];function o(){var e=n.concat(i);t(e)}$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/models-advanced-search.jsp",data:{cmd:"adv-search",contentName:e.term,section:"main"},success:function(e){"true"===e.customer,n=Array.isArray(e.content)?e.content:[],o()}}),$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/models-advanced-search.jsp",data:{cmd:"adv-search",contentName:e.term,section:"tagsStories"},success:function(e){"true"===e.customer&&!0,i=Array.isArray(e.content)?e.content:[],o()}})},select:function(e,t){if(t.item.contentType>-1&&t.item.contentId>-1&&t.item.performerId>-1)ModelsContent.openContentModal(null,t.item.contentType,t.item.contentId,t.item.isSet,t.item.performerId,!1,t.item.isAgeRestricted);else{var n=t.item.contentLink;$("body").hasClass("page-chat")?window.open(n,"_blank"):location.href=n}return!1},open:function(e,t){$(".search-arrow").css({transform:"rotate(180deg)"})},close:function(e,t){$(".search-arrow").css({transform:"rotate(0)"})}}).catcomplete("instance")._renderItem=function(e,t){var n,i="",o=!1;"Galleries"!==t.contentCategory||t.isSet?t.isSet||"Models"===t.contentCategory||"Videos"===t.contentCategory?(n=t.previewSrc,i=t.isAgeRestricted?"blurred":""):"Tags Camgirls"===t.contentCategory||"Tags Camboys"===t.contentCategory||"Tags Transsex"===t.contentCategory?(n="images/icons/hashtag.svg",i="icon"):"Erotic Story"===t.contentCategory?(n="images/icons/regular_message.svg",i="icon"):"Audio Story"===t.contentCategory?(n="images/icons/audiotrack.svg",i="icon"):o=!0:(n=t.contentLink,i=t.isAgeRestricted?"blurred":"");var s="<img class='"+i+"'src='"+n+"' style=''></img>";return o&&(s=""),$("<li class='item basic'>").append("<div class='img'>"+s+"</div><div class='text'>
135"+(t.label.trim()||I18n.t("No Name"))+"</div>").appendTo(e)},e()}catch(e){}}),$(function(){var e=$(".search-main-container__icons"),t=$(".search-arrow"),n=$("#adv-autocomplete");n.on("focusin",function(){$(".items").is(":visible")||(e.hide(),t.css("transform","rotate(180deg)"),t.css("pointer-events","initial"),n.catcomplete("search",n.val()?n.val():" "))}).on("focusout",function(i){e.show(),n.catcomplete("close"),t.css("pointer-events","none")}),$(".btn-arrow").on("click",function(e){$(e.target).find(".js-arrow").toggleClass("arrow__up").toggleClass("arrow__down")})}),FanpageSubscription.TYPE_ONE_TIME=1,FanpageSubscription.TYPE_RECURRING=2,FanpageSubscription.DURATION_TYPE_DAY_OF_YEAR=6,FanpageSubscription.DURATION_TYPE_WEEK_OF_YEAR=3,FanpageSubscription.DURATION_TYPE_MONTH=2,FanpageSubscription.DURATION_TYPE_YEAR=1,FanpageSubscription.DURATION_TYPE_NAMES=_defineProperty(_defineProperty(_defineProperty(_defineProperty({},FanpageSubscription.DURATION_TYPE_DAY_OF_YEAR,I18n.t("Days")),FanpageSubscription.DURATION_TYPE_WEEK_OF_YEAR,I18n.t("Weeks")),FanpageSubscription.DURATION_TYPE_MONTH,I18n.t("Months")),FanpageSubscription.DURATION_TYPE_YEAR,I18n.t("Years")),FanpageSubscription.getOptionHTML=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=FanpageSubscription.DURATION_TYPE_NAMES[e.durationType]||I18n.t("Error"),i=t?I18n.t("R$"):I18n.t("Tokens"),o=e.durationType===FanpageSubscription.DURATION_TYPE_DAY_OF_YEAR;return'\n  <div class="card form">\n    <input class="hidden" name="fanpage-payment-package-id" value="'.concat(e.id,'"/>\n    <input class="hidden" name="package-id-').concat(e.id,'" value="').concat(e.packageId,'"/>\n    <div class="card-body d-flex flex-column gap-4">\n      <div class="row">\n        <div class="col-6">\n          <label class="title align-items-start">').concat(I18n.t("Value ({1})",[i]),'</label>\n            <input class="read-only" name="price-').concat(e.id,'" value="').concat(StringUtils.formatDouble(parseFloat(e.price),2),'" readonly/>\n          </div>\n          <div class="col-6">\n            <label class="title">').concat(I18n.t("Duration ({1})",[n]),'</label>\n            <input class="read-only" name="duration-').concat(e.id,'" value="').concat(e.duration,'" readonly/>\n        </div>\n      </div>\n      <div class="row">\n        <div class="col-6">\n            <label class="title">').concat(I18n.t("Discount (%)"),'</label>\n            <input name="discount-').concat(e.id,'" type="number" step="0.01" min="0" max="99.99" value="').concat(parseFloat(e.discountPercentage).toFixed(2),'"/>\n        </div>\n        <div class="col-6 d-flex flex-column">\n          <label class="title">').concat(I18n.t("Subscription"),'</label>\n            <select name="type-').concat(e.id,'" class="select2">\n              ').concat((!t||o)&&'<option value="'.concat(FanpageSubscription.TYPE_ONE_TIME,'" ').concat(e.type==FanpageSubscription.TYPE_ONE_TIME?"selected":"",">").concat(I18n.t("One-time"),"</option>"),"\n              ").concat((!t||!o)&&'<option value="'.concat(FanpageSubscription.TYPE_RECURRING,'" ').concat(e.type==FanpageSubscription.TYPE_RECURRING?"selected":"",">").concat(I18n.t("Recurring"),"</option>"),'\n            </select>\n          </div>\n        </div>\n        <div class="row">\n          <div class="col-12">\n            <button id="delete-subscr-option-').concat(e.id,'" class="btn btn-primary" data-fanpage-package-id="').concat(e.id,'">').concat(I18n.t("Delete"),"</button>\n          </div>\n        </div>\n      </div>\n    </div>")},FanpageSubscription.unsubscribe=function(e,t,n,i,o,s){swal({html:"".concat(I18n.t("Do you want to unsubscribe from Model's Fanclub? All benefits will be available until the paid period ends.")," ").concat(e?I18n.t("You have {1} days until {2} {3} recurring payment.",[t,StringUtils.formatDouble(n,2),s?I18n.t("BRL"):I18n.t("Tokens")]):I18n.t("You have {1} days left.",[t])),showCancelButton:!0,confirmButtonText:I18n.t("Unsubscribe"),cancelButtonText:I18n.t("Cancel"),reverseButtons:!0}).then(function(e){e.value&&$.ajax({dataType:"json",type:"POST",url:Config.exec+"/postback/fanpage_subscription.jsp",cache:!1,data:{command:"unsubscribe",performer_id:o,customer_id:i,isPix:s},success:function(e){swal({text:e.result.message,confirmButtonText:I18n.t("Close"),background:""}).then(function(){window.location.reload()})},error:function(){SiteUtils.showErrorSwal().then(function(){window.location.reload()})}})})},FanpageSubscription.getDaysLeftInfo=function(e){swal({html:I18n.t("You have {
1351} days left.",[e])+" "+I18n.t("Then you can subscribe to Model's Fanclub again."),confirmButtonText:I18n.t("Close"),background:""})},SocialNetworkSubscription.unsubscribe=function(e,t,n,i,o,s){swal({html:"".concat(I18n.t("Do you want to unsubscribe from Model's {1}? All benefits will be available until the paid period ends.",[i])," ").concat(e?I18n.t("You have {1} days until {2} {3} recurring payment.",[t,StringUtils.formatDouble(n,2),o?I18n.t("BRL"):I18n.t("Tokens")]):I18n.t("You have {1} days left.",[t])),showCancelButton:!0,confirmButtonText:I18n.t("Unsubscribe"),cancelButtonText:I18n.t("Cancel"),reverseButtons:!0}).then(function(e){e.value&&$.ajax({dataType:"json",type:"POST",url:s,cache:!1,success:function(e){e.pending?BaseSwal.show(BaseSwal.TYPE_INFO,e.message):e.success?BaseSwal.show(BaseSwal.TYPE_SUCCESS,e.message,null,3e3,3e3):BaseSwal.show(BaseSwal.TYPE_ERROR,e.message||I18n.t("Internal error. Please try later."))},error:function(e){var t=e.responseJSON||{};BaseSwal.show(BaseSwal.TYPE_ERROR,I18n.t("Error"),t.debugMessage||t.message||I18n.t("Internal error. Please try later."))}})})},SocialNetworkSubscription.getDaysLeftInfo=function(e,t){BaseSwal.show(BaseSwal.TYPE_INFO,I18n.t("You have {1} days left.",[e])+"\n"+I18n.t("Then you can subscribe to Model's {1} again.",[t]))};var renderProfilePreviewPictures=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,i,o,s){var r,a,l,c,u;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=null,e.n=1,$.get(Config.exec+"/postback/performer_profile_page.jsp",{command:"get-profile-preview-pictures",performer_id:t,is_age_restricted:s}).then(function(e){r=e});case 1:(a=r.every(function(e){return 0===e.pictureId}))||(r=r.filter(function(e){return 0!==e.pictureId}),!i&&$(window).width()<700&&(l=Math.floor(Math.random()*r.length),r=[r[l]])),n.find(".picture").remove(),a?(c=$("<div>").addClass("picture").addClass("profile_picture_1"),u=Config.exec+"/postback/getavatar.jsp?&id=host-"+t+"&width=500&height=500",c.append('<img src="'.concat(u,'"/>')),n.append(c)):r.forEach(function(e){if(!(0===e.pictureId)){var t=$("<div>").addClass("picture").addClass("profile_picture_"+e.id);i?(t.append('<span data-picture-id="'.concat(e.id,'" class="js-change-picture change on-hover">').concat(I18n.t("Change Picture"),"</span>")),t.append('<span data-picture-id="'.concat(e.id,'" class="js-upload-percent-counter upload-percent-counter"></span>'))):o&&t.append('<a class="change on-hover" href="'.concat(Config.performer,'/profile/-3">').concat(I18n.t("Change Picture"),"</a>")),t.append('\n      <a href="'.concat(e.src,'" class="js-img-maxsize ').concat(s?"blurred":"",'" onclick="').concat(s?"":"showMaximized(this, ".concat(e.width,", ").concat(e.height,"); SiteUtils.incrementPpViews(").concat(e.pictureId,");"),' return false;">\n        <span class="search on-hover"><i class="fa fa-lg fa-search"></i></span>\n        <img src="').concat(e.src,'"/>\n      </a>\n    ')),n.append(t)}});case 2:return e.a(2)}},e)}));return function(t,n,i,o,s){return e.apply(this,arguments)}}(),privateMessagesHandleAction=function(e,t,n){var i,o=new FormData(e),s=o.get("command"),r=$(e).attr("action");return!(n&&o.getAll("message_thread_id").length<1||!n&&o.getAll("message_id").length<1)&&("move-to-archive"===s?i=I18n.t("Sure to move selected messages to archive?"):"move-to-trash"===s?i=I18n.t("Sure to move selected messages to trash?"):"restore"===s?i=I18n.t("Sure to restore selected messages?"):"delete-for-owner"===s?i=I18n.t("Sure to delete selected messages?"):"delete"===s&&(i=I18n.t("Sure to delete selected messages for everyone?"),r=t),!!confirm(i)&&($.ajax({url:r,data:o,cache:!1,processData:!1,contentType:!1,type:"POST",success:function(e){window.location.reload()},error:function(){swal({title:I18n.t("Something went wrong, try again later."),type:"error",showConfirmButton:!0})}}),!1))},showFraudSwal=function(){swal({title:I18n.t("Access restricted due to Fraud status check."),text:I18n.t("You cannot use these features until the administrator has finished reviewing your profile."),type:"error",showConfirmButton:!0})},submitNotificationForm=function(e,t,n,i){var o=$(e),s=o.find('input[name="want"]:checked').val(),r=o.find('textarea[name="optional"]').val();if(s||r){s=r?(s?s+"\n":"")+r:s;var a=new FormData;a.append("person_name",t),a.append("contact_topic",i),a.append("contact_message",s),a.append("person_email",n),$.ajax({url:Config.exec+"/postback/recaptcha_proxy.jsp",cache:!1,type:"POST",data:a,processData:!1,contentType:!1})}};function BaseSwal(){}function TopScrollbar(){}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function s(n,i,o,s){var l=i&&i.prototype instanceof a?i:a,c=Object.create(l.prototype);return _regeneratorDefine2(c,"_invoke",function(n,i,o){var s,a,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return s=t,a=0,l=e,d.n=n,r}};function p(n,i){for(a=n,l=i,t=0;!h&&c&&!o&&t<u.length;t++){var o,s=u[t],p=d.p,f=s[2];n>3?(o=f===i)&&(l=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=p&&((o=n<2&&p<s[1])?(a=0,d.v=i,d.n=s[1]):p<f&&(o=n<3||s[0]>i||i>f)&&(s[4]=n,s[5]=i,d.n=f,a=0))}if(o||n>1)return r;throw h=!0,i}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&p(u,f),a=u,l=f;(t=a<2?e:l)||!h;){s||(a?a<3?(a>1&&(d.n=-1),p(a,l)):d.n=l:d.v=l);try{if(c=2,s){if(a||(o="next"),t=s[o]){if(!(t=t.call(s,l)))throw TypeError("iterator result is not an object");
135if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=s.return)&&t.call(s),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);s=e}else if((t=(h=d.n<0)?l:n.call(i,d))!==r)break}catch(t){s=e,a=1,l=t}finally{c=1}}return{value:t,done:h}}}(n,o,s),!0),c}var r={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(_regeneratorDefine2(t={},i,function(){return this}),t),h=c.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=c,_regeneratorDefine2(h,"constructor",c),_regeneratorDefine2(c,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(c,o,"GeneratorFunction"),_regeneratorDefine2(h),_regeneratorDefine2(h,o,"Generator"),_regeneratorDefine2(h,i,function(){return this}),_regeneratorDefine2(h,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:s,m:d}})()}function _regeneratorDefine2(e,t,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,t,n,i){function s(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},_regeneratorDefine2(e,t,n,i)}function asyncGeneratorStep(e,t,n,i,o,s,r){try{var a=e[s](r),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var s=e.apply(t,n);function r(e){asyncGeneratorStep(s,i,o,r,a,"next",e)}function a(e){asyncGeneratorStep(s,i,o,r,a,"throw",e)}r(void 0)})}}BaseSwal.TYPE_SUCCESS="success",BaseSwal.TYPE_ERROR="error",BaseSwal.TYPE_WARNING="warning",BaseSwal.TYPE_INFO="info",BaseSwal.TYPE_QUESTION="question",BaseSwal.TYPE_LOADER="loader",BaseSwal.loaderSwal=null,BaseSwal.show=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;BaseSwal.loaderSwal=null,e===BaseSwal.TYPE_LOADER?BaseSwal.loaderSwal=swal({html:"<div style='height: 250px'><span class='base-loader __l'></span></div>",allowOutsideClick:!1,showCancelButton:!1,showConfirmButton:!1}):swal({type:e,title:t,text:n||void 0,showCancelButton:s,showConfirmButton:0===i,timer:i||void 0}).then(function(e){"function"==typeof r&&r(e)}),o>0&&setTimeout(function(){location.reload()},1e3)},BaseSwal.showLoader=function(){BaseSwal.show(BaseSwal.TYPE_LOADER)},BaseSwal.hideLoader=function(){null!=BaseSwal.loaderSwal&&swal.close(),BaseSwal.loaderSwal=null},document.addEventListener("DOMContentLoaded",function(){!MainPageLoader.loadInfo.burgerMenuLoadOnModelsPage&&MainPageLoader.loadBurgerMenu()}),TopScrollbar.attach=function(e){if(e&&e.length&&!e.data("top-scrollbar-attached")){e.data("top-scrollbar-attached",!0);var t=$("<div class='top-scrollbar base-scrollbar __scroll-visible__green __scroll-size__l'><div class='top-scrollbar__inner'></div></div>"),n=parseFloat(e.css("margin-top"))||0;n>0&&(t.css("margin-top",n+"px"),e.css("margin-top","0"));var i=e.parent(),o=parseFloat(i.css("row-gap"))||0||parseFloat(i.css("gap"))||0;o&&t.css("margin-bottom",8-o+"px"),e.before(t),e.on("scroll",function(){t.scrollLeft(e.scrollLeft())}),t.on("scroll",function(){e.scrollLeft(t.scrollLeft())}),s(),$(window).on("resize",function(){s()})}function s(){var n=e.get(0);n.scrollWidth>n.clientWidth+1?(t.removeClass("top-scrollbar__hidden"),t.find(".top-scrollbar__inner").width(n.scrollWidth),t.scrollLeft(e.scrollLeft())):t.addClass("top-scrollbar__hidden")}},onWindowLoad(function(){$(".js-top-scroll-target").each(function(){TopScrollbar.attach($(this))})});var PixSubscriptionCheckouts=function(){var e="/api-cameralux/wepayments/pix/checkouts";function t(e){switch(e.state){case"READY":return I18n.t("A PIX checkout already exists. Continue with the same payment.");case"ACTIVE":return I18n.t("Your PIX subscription is active.");case"PAYMENT_FAILED":return I18n.t("The initial payment failed. Cancel automatic payments before trying again.");case"CANCEL_PENDING":return I18n.t("Cancellation requested. We are waiting for confirmation. Your paid access remains available.");case"CANCELED":return e.replacementAllowed?I18n.t("Automatic payments stopped. You can choose a new subscription."):I18n.t("Automatic payments stopped. The initial payment is still being reconciled. Please do not start another checkout yet.");default:return I18n.t("We are confirming your existing checkout. A second order will not be created.")}}function n(e){return["RESOLVING","READY","ACTIVE","PAYMENT_FAILED"].includes(e.state)}function i(e,t){return e.performerId===Number(t.dataset.performerId)&&(!Number(t.dataset.paymentId)||e.paymentDataId===Number(t.dataset.paymentId))}function o(e){return s.apply(this,arguments)}function s(){return s=_asyncToGenerator(_regenerator().m(function e(t){var n,i,o,s,r=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},i=new AbortController,o=window.setTimeout(function(){return i.abort()},15e3),e.p=1,e.n=2,fetch(t,Object.assign({credentials:"same-origin",cache:"no-store",signal:i.signal},n));case 2:if((s=e.v).ok){e.n=3;break}throw new Error("PIX checkout request failed");case 3:return e.n=4,s.json();case 4:return e.a(2,e.v);case 5:return e.p=5,window.clearTimeout(o),e.f(5);case 6:return e.a(2)}},e,null,[[1,,5,6]])})),s.apply(this,arguments)}function r(e){document.querySelectorAll("[data-pix-payment-instructions]").forEach(function(t){t.hidden=e})}function a(e,i){var o=e.root.querySelector("[data-pix-checkouts-list]");
135o.textContent="",e.root.hidden=0===i.length,i.forEach(function(i){var s=document.createElement("div"),r=document.createElement("h3");r.textContent=1===i.subscriptionType?I18n.t("Fanclub"):{1:"Snapchat",2:"Instagram",3:"Whatsapp",4:"Twitter (X)",5:"Kik"}[i.socialNetworkId]||I18n.t("Social Media");var a=document.createElement("p");if(a.textContent=t(i),s.append(r,a),i.receiptCode&&["READY","ACTIVE","PAYMENT_FAILED"].includes(i.state)){var l=document.createElement("a");l.className="base-button",l.textContent="READY"===i.state?I18n.t("Continue payment"):I18n.t("View receipt"),l.href=e.root.dataset.receiptBase+encodeURIComponent(i.receiptCode),s.append(l)}if(n(i)){var c=document.createElement("button");c.type="button",c.className="base-button",c.textContent=I18n.t("Stop automatic payments"),c.addEventListener("click",function(){return u(e,i)}),s.append(c)}o.append(s)}),Number(e.root.dataset.paymentId)&&r(i.some(function(e){return["CANCEL_PENDING","CANCELED"].includes(e.state)}))}function l(e){return c.apply(this,arguments)}function c(){return(c=_asyncToGenerator(_regenerator().m(function t(n){var s,l,c;return _regenerator().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!n.busy){t.n=1;break}return t.a(2);case 1:return n.busy=!0,s=n.root.querySelector("[data-pix-checkouts-error]"),t.p=2,l=Number(n.root.dataset.paymentId),t.n=3,o(e+(l?"?paymentId="+encodeURIComponent(l):"?performerId="+encodeURIComponent(n.root.dataset.performerId)));case 3:if((c=t.v)&&Array.isArray(c.checkouts)&&c.csrfToken){t.n=4;break}throw new Error("Invalid PIX checkout status");case 4:n.token=c.csrfToken,s.hidden=!0,a(n,c.checkouts.filter(function(e){return i(e,n.root)})),t.n=6;break;case 5:t.p=5,t.v,Number(n.root.dataset.paymentId)&&r(!0),n.root.hidden=!1,s.hidden=!1,s.textContent=I18n.t("Unable to confirm PIX status. Refresh the status before starting another payment.");case 6:return t.p=6,n.busy=!1,t.f(6);case 7:return t.a(2)}},t,null,[[2,5,6,7]])}))).apply(this,arguments)}function u(e,t){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regenerator().m(function i(s,a){var c;return _regenerator().w(function(i){for(;;)switch(i.p=i.n){case 0:if(!s.busy&&s.token&&n(a)){i.n=1;break}return i.a(2);case 1:return s.busy=!0,i.n=2,swal({text:I18n.t("Stop future automatic payments? Your paid period remains available. This does not refund or cancel an initial payment already sent to your bank."),showCancelButton:!0,confirmButtonText:I18n.t("Stop automatic payments"),cancelButtonText:I18n.t("Keep subscription"),reverseButtons:!0});case 2:if(i.v.value){i.n=3;break}return s.busy=!1,i.a(2);case 3:return Number(s.root.dataset.paymentId)&&r(!0),i.p=4,i.n=5,o(e+"/"+encodeURIComponent(a.id)+"/cancel",{method:"POST",headers:{"X-CSRF-TOKEN":s.token}});case 5:c=i.v,BaseSwal.show(BaseSwal.TYPE_INFO,t(c)),i.n=7;break;case 6:i.p=6,i.v,BaseSwal.show(BaseSwal.TYPE_ERROR,I18n.t("Unable to confirm cancellation. Refresh the status; do not create another checkout yet."));case 7:return i.p=7,s.busy=!1,i.n=8,l(s);case 8:return i.f(7);case 9:return i.a(2)}},i,null,[[4,6,7,9]])}))).apply(this,arguments)}function d(e){var t={root:e,token:null,busy:!1};e.querySelector("[data-pix-checkouts-refresh]").addEventListener("click",function(){return l(t)}),l(t);var n=window.setInterval(function(){document.hidden||l(t)},15e3);window.addEventListener("pagehide",function(){return window.clearInterval(n)},{once:!0})}return onDOMReady(function(){return document.querySelectorAll("[data-pix-checkouts]").forEach(d)}),{message:t,canCancel:n,matches:i,cancel:u}}();function WebPushNotificationsService(){}function NotificationsAPI(){}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _superPropGet(e,t,n,i){var o=_get(_getPrototypeOf(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=_superPropBase(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_get.apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function s(n,i,o,s){var l=i&&i.prototype instanceof a?i:a,c=Object.create(l.prototype);return _regeneratorDefine2(c,"_invoke",function(n,i,o){var s,a,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return s=t,a=0,l=e,d.n=n,r}};function p(n,i){for(a=n,l=i,t=0;!h&&c&&!o&&t<u.length;t++){var o,s=u[t],p=d.p,f=s[2];n>3?(o=f===i)&&(l=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=p&&((o=n<2&&p<s[1])?(a=0,d.v=i,d.n=s[1]):p<f&&(o=n<3||s[0]>i||i>f)&&(s[4]=n,s[5]=i,d.n=f,a=0))}if(o||n>1)return r;throw h=!0,i}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&p(u,f),a=u,l=f;(t=a<2?e:l)||!h;){s||(a?a<3?(a>1&&(d.n=-1),p(a,l)):d.n=l:d.v=l);try{if(c=2,s){if(a||(o="next"),t=s[o]){if(!(t=t.call(s,l)))throw TypeError("iterator result is not an object");
vendor: 5,324 bytes, lines 135-136
135if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=s.return)&&t.call(s),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);s=e}else if((t=(h=d.n<0)?l:n.call(i,d))!==r)break}catch(t){s=e,a=1,l=t}finally{c=1}}return{value:t,done:h}}}(n,o,s),!0),c}var r={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(_regeneratorDefine2(t={},i,function(){return this}),t),h=c.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=c,_regeneratorDefine2(h,"constructor",c),_regeneratorDefine2(c,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(c,o,"GeneratorFunction"),_regeneratorDefine2(h),_regeneratorDefine2(h,o,"Generator"),_regeneratorDefine2(h,i,function(){return this}),_regeneratorDefine2(h,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:s,m:d}})()}function _regeneratorDefine2(e,t,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,t,n,i){function s(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},_regeneratorDefine2(e,t,n,i)}function asyncGeneratorStep(e,t,n,i,o,s,r){try{var a=e[s](r),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var s=e.apply(t,n);function r(e){asyncGeneratorStep(s,i,o,r,a,"next",e)}function a(e){asyncGeneratorStep(s,i,o,r,a,"throw",e)}r(void 0)})}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,s,r,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){a=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(a)throw s}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _typeof(e){return _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},_typeof(e)}function _typeof(e){return _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},_typeof(e)
136/*! Select2 4.0.6-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */}$.fn.popup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n="dumb-popup",i=$("."+n).length,o="#".concat(n,"-").concat(i),s=$("<div>",{class:"overlay-popup"}),r=$("<div>
136",{class:"dumb-popup",id:o.slice(1)});t.data("popup-class")&&r.addClass(t.data("popup-class"));var a=$("<div>",{class:"dumb-popup__content"}),l=e.content||"",c=!!e.preventActionSubstition,u=!1!==e.showCloseButton,h=!0===e.route,d=!!e.gotoLinkOnMobileDevices,p=$(t).attr("href"),f=location.href,g=f;return new Promise(function(e,n){if($(o).length>0)return n("There is already "+o),!1;if($(".overlay-popup").remove(),a.appendTo(r),r.appendTo(s),s.prependTo($("body")),u){var i=$("<button>",{class:"dumb-popup__close"});i.html("&times;"),i.prependTo(r),i.on("click",function(){t.close()})}return l?(a.html(l),e(!1),n(),!1):(p&&(g=p),e(!0),!0)}).then(function(e){if(s.on("click",function(e){this===e.target&&t.close()}),$(document).on("keyup",function(e){"Escape"===e.key&&t.close()}),$("body").on("click",".close-popup",function(e){e.preventDefault(),t.close()}),e){if($(window).width()<=1e3&&d)return void(location.href=p);new Promise(function(e,t){$.ajax({url:g,cache:!1,data:{ajax:!0},success:function(t){a.html(t),e()},error:function(){t("error")}})}).then(function(){var e;e=g,c||(h&&history.pushState({},"",g),$(o).on("submit","form",function(t){return!!$(this).attr("action")||!$(this).data("presubmitted")&&(t.preventDefault(),$(this).attr("action",e),$(this).data("presubmitted",!0),$(this).submit(),!0)}))}).catch(function(e){return console.log("content load exception",e)})}}).catch(function(e){return console.log("render exception",e)}),this.close=function(){$(o).parent(".overlay-popup").remove(),$(o).remove(),!1?$("body").addClass("fixed"):$("body").removeClass("fixed"),h&&history.pushState({},null,f)},this},$.fn.customPopup=$.fn.popup,$(document).on("click",".popup-link",function(e){e.preventDefault(),$(this).customPopup()}),WebPushNotificationsService.loadFirebaseScripts=function(){return new Promise(function(e,t){try{if(window.firebase&&"function"==typeof window.firebase.messaging)return void e();var n=function(e,t){return new Promise(function(n,i){if(t&&document.getElementById(t))return n();var o=document.createElement("script");o.src=e,o.async=!0,o.defer=!0,t&&(o.id=t),o.onload=function(){return n()},o.onerror=function(){return i(new Error("Failed to load "+e))},document.head.appendChild(o)})};n("https://www.gstatic.com/firebasejs/8.2.7/firebase-app.js","firebase-app").then(function(){return n("https://www.gstatic.com/firebasejs/8.2.7/firebase-messaging.js","firebase-messaging")}).then(e).catch(t)}catch(e){t(e)}})},WebPushNotificationsService.init=function(){this.firebaseConfig={apiKey:"AIzaSyCXanF-_CT2JnayKRTo05-SKW1M6u0KnVE",authDomain:"cameralux-daccf.firebaseapp.com",projectId:"cameralux-daccf",storageBucket:"cameralux-daccf.appspot.com",messagingSenderId:"136998541546",appId:"1:136998541546:web:777d9b6784a69006f7df93"},this.vapidKey="BA1wgTvcoSLuuh92_WddWxQvk7CO--_87Qc7OS1ELkglrko8AAmAhCrkyhvbXUHCC98hG7SegnQdMNe8-Q2yZw8","Notification"in window&&"granted"===Notification.permission&&WebPushNotificationsService.loadFirebaseScripts().then(function(){var e=WebPushNotificationsService.getInstance();WebPushNotificationsService.getToken(),e.onMessage(function(e){try{new Notification(e.notification.title,e.notification)}catch(e){}})}).catch(function(){})},WebPushNotificationsService.getInstance=function(){return void 0!==WebPushNotificationsService.messaging||(firebase.initializeApp(this.firebaseConfig),WebPushNotificationsService.messaging=firebase.messaging()),WebPushNotificationsService.messaging},WebPushNotificationsService.getToken=function(){var e=WebPushNotificationsService.getInstance(),t=localStorage.getItem("webToken"),n=localStorage.getItem("webTokenExpiredDate"),i=new Date;if(null!=t&&null!=n&&new Date(parseInt(n))>i&&"granted"===Notification.permission)return t;e.getToken({vapidKey:this.vapidKey}).then(function(e){e&&NotificationsAPI.registerWebToken(e,function(t){"Ok"==t.result&&(localStorage.setItem("webToken",e),localStorage.setItem("webTokenExpiredDate",i.setHours(i.getHours()+24)))})}).catch(function(e){})},NotificationsAPI.ajaxCall=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;$.ajax({url:"/api-cameralux/notifications/"+e,method:t,contentType:"application/json",dataType:"json",data:n?JSON.stringify(n):null,success:function(e){"function"==typeof i&&i(e)},error:function(e){"function"==typeof o&&o(e)}})},NotificationsAPI.create=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={subject:e.subject||"",message:e.message||"",recipientId:e.recipientId||[],recipientType:e.recipientType||"",transport:e.transport||[],sendDatetime:e.sendDatetime||"",additionalData:e.additionalData||{}};this.ajaxCall("create","POST",i,t,n)},NotificationsAPI.registerWebToken=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={webToken:e||""};this.ajaxCall("register-web-token","POST",i,t,n)},function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).StompJs={})}(this,function(e){"use strict";var t,n,i,o,s="\n",r=function(){function e(t){_classCallCheck(this,e);var n=t.command,i=t.headers,o=t.body,s=t.binaryBody,r=t.escapeHeaderValues,a=t.skipContentLengthHeader;this.command=n,this.headers=Object.assign({},i||{}),s?(this._binaryBody=s,this.isBinaryBody=!0):(this._body=o||"",this.isBinaryBody=!1),this.escapeHeaderValues=r||!1,this.skipContentLengthHeader=a||!1}return _createClass(e,[{key:"body",get:function(){return!this._body&&this.isBinaryBody&&(this._body=(new TextDecoder).decode(this._binaryBody)),this._body||""}},{key:"binaryBody",get:function(){return this._binaryBody||this.isBinaryBody||(this._binaryBody=(new TextEncoder).encode(this._body)),this._binaryBody}},{key:"toString",value:function(){return this.serializeCmdAndHeaders()}},{key:"serialize",value:function(){var t=this.serializeCmdAndHeaders();return this.isBinaryBody?e.toUnit8Array(t,this._binaryBody).buffer:t+this._body+"\0"}},{key:"serializeCmdAndHeaders",value:function(){var t=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(var n=0,i=Object.keys(this.headers||{});n<i.length;n++){var o=i[n],r=this.headers[o];this.escapeHeaderValues&&"CONNECT"!==this.command&&"CONNECTED"!==this.command?t.push("".concat(o,":").concat(e.hdrValueEscape("".concat(r)))):t.push("".concat(o,":").concat(r))}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&t.push("content-length:".concat(this.bodyLength())),t.join(s)+s+s}},{key:"isBodyEmpty",value:function(){return 0===this.bodyLength()}},{key:"bodyLength",value:function(){var e=this.binaryBody;return e?e.length:0}}],[{key:"fromRawFrame",value:function(t,n){var i,o={},s=function(e){return e.replace(/^\s+|\s+$/g,"")},r=_createForOfIteratorHelper(t.headers.reverse());try{for(r.s();!(i=r.n()).done;){var a=i.value;a.indexOf(":");var l=s(a[0]),c=s(a[1]);n&&"CONNECT"!==t.command&&"CONNECTED"!==t.command&&(c=e.hdrValueUnEscape(c)),o[l]=c}}catch(e){r.e(e)}finally{r.f()}return new e({command:t.command,headers:o,binaryBody:t.binaryBody,escapeHeaderValues:n})}},{key:"sizeOfUTF8",value:function(e){return e?(new TextEncoder).encode(e).length:0}},{key:"toUnit8Array",value:function(e,t){var n=(new TextEncoder).encode(e),i=new Uint8Array([0]),o=new Uint8Array(n.length+t.length+i.length);return o.set(n),o.set(t,n.length),o.set(i,n.length+t.length),o}}
136,{key:"marshall",value:function(t){return new e(t).serialize()}},{key:"hdrValueEscape",value:function(e){return e.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}},{key:"hdrValueUnEscape",value:function(e){return e.replace(/\\r/g,"\r").replace(/\\n/g,"\n").replace(/\\c/g,":").replace(/\\\\/g,"\\")}}])}(),a=function(){return _createClass(function e(t,n){_classCallCheck(this,e),this.onFrame=t,this.onIncomingPing=n,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()},[{key:"parseChunk",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t="string"==typeof e?this._encoder.encode(e):new Uint8Array(e),n&&0!==t[t.length-1]){var i=new Uint8Array(t.length+1);i.set(t,0),i[t.length]=0,t=i}for(var o=0;o<t.length;o++){var s=t[o];this._onByte(s)}}},{key:"_collectFrame",value:function(e){0!==e&&13!==e&&(10!==e?(this._onByte=this._collectCommand,this._reinjectByte(e)):this.onIncomingPing())}},{key:"_collectCommand",value:function(e){if(13!==e)return 10===e?(this._results.command=this._consumeTokenAsUTF8(),void(this._onByte=this._collectHeaders)):void this._consumeByte(e)}},{key:"_collectHeaders",value:function(e){13!==e&&(10!==e?(this._onByte=this._collectHeaderKey,this._reinjectByte(e)):this._setupCollectBody())}},{key:"_reinjectByte",value:function(e){this._onByte(e)}},{key:"_collectHeaderKey",value:function(e){if(58===e)return this._headerKey=this._consumeTokenAsUTF8(),void(this._onByte=this._collectHeaderValue);this._consumeByte(e)}},{key:"_collectHeaderValue",value:function(e){if(13!==e)return 10===e?(this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,void(this._onByte=this._collectHeaders)):void this._consumeByte(e)}},{key:"_setupCollectBody",value:function(){var e=this._results.headers.filter(function(e){return"content-length"===e[0]})[0];e?(this._bodyBytesRemaining=parseInt(e[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}},{key:"_collectBodyNullTerminated",value:function(e){0!==e?this._consumeByte(e):this._retrievedBody()}},{key:"_collectBodyFixedSize",value:function(e){0!=this._bodyBytesRemaining--?this._consumeByte(e):this._retrievedBody()}},{key:"_retrievedBody",value:function(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(e){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",e)}this._initState()}},{key:"_consumeByte",value:function(e){this._token.push(e)}},{key:"_consumeTokenAsUTF8",value:function(){return this._decoder.decode(this._consumeTokenAsRaw())}},{key:"_consumeTokenAsRaw",value:function(){var e=new Uint8Array(this._token);return this._token=[],e}},{key:"_initState",value:function(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}])}();e.StompSocketState=void 0,(t=e.StompSocketState||(e.StompSocketState={}))[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSING=2]="CLOSING",t[t.CLOSED=3]="CLOSED",e.ActivationState=void 0,(n=e.ActivationState||(e.ActivationState={}))[n.ACTIVE=0]="ACTIVE",n[n.DEACTIVATING=1]="DEACTIVATING",n[n.INACTIVE=2]="INACTIVE",e.ReconnectionTimeMode=void 0,(i=e.ReconnectionTimeMode||(e.ReconnectionTimeMode={}))[i.LINEAR=0]="LINEAR",i[i.EXPONENTIAL=1]="EXPONENTIAL",e.TickerStrategy=void 0,(o=e.TickerStrategy||(e.TickerStrategy={})).Interval="interval",o.Worker="worker";var l=function(){return _createClass(function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.TickerStrategy.Interval,o=arguments.length>2?arguments[2]:void 0;_classCallCheck(this,t),this._interval=n,this._strategy=i,this._debug=o,this._workerScript="\n    var startTime = Date.now();\n    setInterval(function() {\n        self.postMessage(Date.now() - startTime);\n    }, ".concat(this._interval,");\n  ")},[{key:"start",value:function(e){this.stop(),this.shouldUseWorker()?this.runWorker(e):this.runInterval(e)}},{key:"stop",value:function(){this.disposeWorker(),this.disposeInterval()}},{key:"shouldUseWorker",value:function(){return"undefined"!=typeof Worker&&this._strategy===e.TickerStrategy.Worker}},{key:"runWorker",value:function(e){this._debug("Using runWorker for outgoing pings"),this._worker||(this._worker=new Worker(URL.createObjectURL(new Blob([this._workerScript],{type:"text/javascript"}))),this._worker.onmessage=function(t){return e(t.data)})}},{key:"runInterval",value:function(e){if(this._debug("Using runInterval for outgoing pings"),!this._timer){var t=Date.now();this._timer=setInterval(function(){e(Date.now()-t)},this._interval)}}},{key:"disposeWorker",value:function(){this._worker&&(this._worker.terminate(),delete this._worker,this._debug("Outgoing ping disposeWorker"))}},{key:"disposeInterval",value:function(){this._timer&&(clearInterval(this._timer),delete this._timer,this._debug("Outgoing ping disposeInterval"))}}])}(),c=function(){return _createClass(function e(t){_classCallCheck(this,e),this.versions=t},[{key:"supportedVersions",value:function(){return this.versions.join(",")}},{key:"protocolVersions",value:function(){return this.versions.map(function(e){return"v".concat(e.replace(".",""),".stomp")})}}])}();c.V1_0="1.0",c.V1_1="1.1",c.V1_2="1.2",c.default=new c([c.V1_2,c.V1_1,c.V1_0]);var u=function(){return _createClass(function e(t,n,i){var o=this;_classCallCheck(this,e),this._client=t,this._webSocket=n,this._connected=!1,this._serverFrameHandlers={CONNECTED:function(e){o.debug("connected to server ".concat(e.headers.server)),o._connected=!0,o._connectedVersion=e.headers.version,o._connectedVersion===c.V1_2&&(
136o._escapeHeaderValues=!0),o._setupHeartbeat(e.headers),o.onConnect(e)},MESSAGE:function(e){var t=e.headers.subscription,n=o._subscriptions[t]||o.onUnhandledMessage,i=e,s=o,r=o._connectedVersion===c.V1_2?i.headers.ack:i.headers["message-id"];i.ack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.ack(r,t,e)},i.nack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.nack(r,t,e)},n(i)},RECEIPT:function(e){var t=o._receiptWatchers[e.headers["receipt-id"]];t?(t(e),delete o._receiptWatchers[e.headers["receipt-id"]]):o.onUnhandledReceipt(e)},ERROR:function(e){o.onStompError(e)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=i.debug,this.stompVersions=i.stompVersions,this.connectHeaders=i.connectHeaders,this.disconnectHeaders=i.disconnectHeaders,this.heartbeatIncoming=i.heartbeatIncoming,this.heartbeatOutgoing=i.heartbeatOutgoing,this.splitLargeFrames=i.splitLargeFrames,this.maxWebSocketChunkSize=i.maxWebSocketChunkSize,this.forceBinaryWSFrames=i.forceBinaryWSFrames,this.logRawCommunication=i.logRawCommunication,this.appendMissingNULLonIncoming=i.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=i.discardWebsocketOnCommFailure,this.onConnect=i.onConnect,this.onDisconnect=i.onDisconnect,this.onStompError=i.onStompError,this.onWebSocketClose=i.onWebSocketClose,this.onWebSocketError=i.onWebSocketError,this.onUnhandledMessage=i.onUnhandledMessage,this.onUnhandledReceipt=i.onUnhandledReceipt,this.onUnhandledFrame=i.onUnhandledFrame},[{key:"connectedVersion",get:function(){return this._connectedVersion}},{key:"connected",get:function(){return this._connected}},{key:"start",value:function(){var e=this,t=new a(function(t){var n=r.fromRawFrame(t,e._escapeHeaderValues);e.logRawCommunication||e.debug("<<< ".concat(n)),(e._serverFrameHandlers[n.command]||e.onUnhandledFrame)(n)},function(){e.debug("<<< PONG")});this._webSocket.onmessage=function(n){if(e.debug("Received data"),e._lastServerActivityTS=Date.now(),e.logRawCommunication){var i=n.data instanceof ArrayBuffer?(new TextDecoder).decode(n.data):n.data;e.debug("<<< ".concat(i))}t.parseChunk(n.data,e.appendMissingNULLonIncoming)},this._webSocket.onclose=function(t){e.debug("Connection closed to ".concat(e._webSocket.url)),e._cleanUp(),e.onWebSocketClose(t)},this._webSocket.onerror=function(t){e.onWebSocketError(t)},this._webSocket.onopen=function(){var t=Object.assign({},e.connectHeaders);e.debug("Web Socket Opened..."),t["accept-version"]=e.stompVersions.supportedVersions(),t["heart-beat"]=[e.heartbeatOutgoing,e.heartbeatIncoming].join(","),e._transmit({command:"CONNECT",headers:t})}}},{key:"_setupHeartbeat",value:function(t){var n=this;if((t.version===c.V1_1||t.version===c.V1_2)&&t["heart-beat"]){var i=t["heart-beat"].split(",").map(function(e){return parseInt(e,10)}),o=_slicedToArray(i,2),r=o[0],a=o[1];if(0!==this.heartbeatOutgoing&&0!==a){var u=Math.max(this.heartbeatOutgoing,a);this.debug("send PING every ".concat(u,"ms")),this._pinger=new l(u,this._client.heartbeatStrategy,this.debug),this._pinger.start(function(){n._webSocket.readyState===e.StompSocketState.OPEN&&(n._webSocket.send(s),n.debug(">>> PING"))})}if(0!==this.heartbeatIncoming&&0!==r){var h=Math.max(this.heartbeatIncoming,r);this.debug("check PONG every ".concat(h,"ms")),this._ponger=setInterval(function(){var e=Date.now()-n._lastServerActivityTS;e>2*h&&(n.debug("did not receive server activity for the last ".concat(e,"ms")),n._closeOrDiscardWebsocket())},h)}}}},{key:"_closeOrDiscardWebsocket",value:function(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}},{key:"forceDisconnect",value:function(){this._webSocket&&(this._webSocket.readyState!==e.StompSocketState.CONNECTING&&this._webSocket.readyState!==e.StompSocketState.OPEN||this._closeOrDiscardWebsocket())}},{key:"_closeWebsocket",value:function(){this._webSocket.onmessage=function(){},this._webSocket.close()}},{key:"discardWebsocket",value:function(){var e,t,n=this;"function"!=typeof this._webSocket.terminate&&(e=this._webSocket,t=function(e){return n.debug(e)},e.terminate=function(){var n=function(){};this.onerror=n,this.onmessage=n,this.onopen=n;var i=new Date,o=Math.random().toString().substring(2,8),s=this.onclose;
136this.onclose=function(e){var n=(new Date).getTime()-i.getTime();t("Discarded socket (#".concat(o,")  closed after ").concat(n,"ms, with code/reason: ").concat(e.code,"/").concat(e.reason))},this.close(),null==s||s.call(e,{code:4001,reason:"Quick discarding socket (#".concat(o,") without waiting for the shutdown sequence."),wasClean:!1})}),this._webSocket.terminate()}},{key:"_transmit",value:function(e){var t=e.command,n=e.headers,i=e.body,o=e.binaryBody,s=e.skipContentLengthHeader,a=new r({command:t,headers:n,body:i,binaryBody:o,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:s}),l=a.serialize();if(this.logRawCommunication?this.debug(">>> ".concat(l)):this.debug(">>> ".concat(a)),this.forceBinaryWSFrames&&"string"==typeof l&&(l=(new TextEncoder).encode(l)),"string"==typeof l&&this.splitLargeFrames)for(var c=l;c.length>0;){var u=c.substring(0,this.maxWebSocketChunkSize);c=c.substring(this.maxWebSocketChunkSize),this._webSocket.send(u),this.debug("chunk sent = ".concat(u.length,", remaining = ").concat(c.length))}else this._webSocket.send(l)}},{key:"dispose",value:function(){var t=this;if(this.connected)try{var n=Object.assign({},this.disconnectHeaders);n.receipt||(n.receipt="close-"+this._counter++),this.watchForReceipt(n.receipt,function(e){t._closeWebsocket(),t._cleanUp(),t.onDisconnect(e)}),this._transmit({command:"DISCONNECT",headers:n})}catch(e){this.debug("Ignoring error during disconnect ".concat(e))}else this._webSocket.readyState!==e.StompSocketState.CONNECTING&&this._webSocket.readyState!==e.StompSocketState.OPEN||this._closeWebsocket()}},{key:"_cleanUp",value:function(){this._connected=!1,this._pinger&&(this._pinger.stop(),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}},{key:"publish",value:function(e){var t=e.destination,n=e.headers,i=e.body,o=e.binaryBody,s=e.skipContentLengthHeader,r=Object.assign({destination:t},n);this._transmit({command:"SEND",headers:r,body:i,binaryBody:o,skipContentLengthHeader:s})}},{key:"watchForReceipt",value:function(e,t){this._receiptWatchers[e]=t}},{key:"subscribe",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(n=Object.assign({},n)).id||(n.id="sub-"+this._counter++),n.destination=e,this._subscriptions[n.id]=t,this._transmit({command:"SUBSCRIBE",headers:n});var i=this;return{id:n.id,unsubscribe:function(e){return i.unsubscribe(n.id,e)}}}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},t),delete this._subscriptions[e],t.id=e,this._transmit({command:"UNSUBSCRIBE",headers:t})}},{key:"begin",value:function(e){var t=e||"tx-"+this._counter++;this._transmit({command:"BEGIN",headers:{transaction:t}});var n=this;return{id:t,commit:function(){n.commit(t)},abort:function(){n.abort(t)}}}},{key:"commit",value:function(e){this._transmit({command:"COMMIT",headers:{transaction:e}})}},{key:"abort",value:function(e){this._transmit({command:"ABORT",headers:{transaction:e}})}},{key:"ack",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({},n),this._connectedVersion===c.V1_2?n.id=e:n["message-id"]=e,n.subscription=t,this._transmit({command:"ACK",headers:n})}},{key:"nack",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=Object.assign({},n),this._connectedVersion===c.V1_2?n.id=e:n["message-id"]=e,n.subscription=t,this._transmit({command:"NACK",headers:n})}}])}(),h=function(){return _createClass(function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.stompVersions=c.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this._nextReconnectDelay=0,this.maxReconnectDelay=9e5,this.reconnectTimeMode=e.ReconnectionTimeMode.LINEAR,this.heartbeatIncoming=1e4,this.heartbeatOutgoing=1e4,this.heartbeatStrategy=e.TickerStrategy.Interval,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8192,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=e.ActivationState.INACTIVE;var i=function(){};this.debug=i,this.beforeConnect=i,this.onConnect=i,this.onDisconnect=i,this.onUnhandledMessage=i,this.onUnhandledReceipt=i,this.onUnhandledFrame=i,this.onStompError=i,this.onWeb
136SocketClose=i,this.onWebSocketError=i,this.logRawCommunication=!1,this.onChangeState=i,this.connectHeaders={},this._disconnectHeaders={},this.configure(n)},[{key:"webSocket",get:function(){var e;return null===(e=this._stompHandler)||void 0===e?void 0:e._webSocket}},{key:"disconnectHeaders",get:function(){return this._disconnectHeaders},set:function(e){this._disconnectHeaders=e,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}},{key:"connected",get:function(){return!!this._stompHandler&&this._stompHandler.connected}},{key:"connectedVersion",get:function(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}},{key:"active",get:function(){return this.state===e.ActivationState.ACTIVE}},{key:"_changeState",value:function(e){this.state=e,this.onChangeState(e)}},{key:"configure",value:function(e){Object.assign(this,e),this.maxReconnectDelay>0&&this.maxReconnectDelay<this.reconnectDelay&&(this.debug("Warning: maxReconnectDelay (".concat(this.maxReconnectDelay,"ms) is less than reconnectDelay (").concat(this.reconnectDelay,"ms). Using reconnectDelay as the maxReconnectDelay delay.")),this.maxReconnectDelay=this.reconnectDelay)}},{key:"activate",value:function(){var t=this,n=function(){t.active?t.debug("Already ACTIVE, ignoring request to activate"):(t._changeState(e.ActivationState.ACTIVE),t._nextReconnectDelay=t.reconnectDelay,t._connect())};this.state===e.ActivationState.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(function(){n()})):n()}},{key:"_connect",value:(n=_asyncToGenerator(_regenerator().m(function t(){var n,i=this;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,this.beforeConnect(this);case 1:if(!this._stompHandler){t.n=2;break}return t.a(2,void this.debug("There is already a stompHandler, skipping the call to connect"));case 2:if(this.active){t.n=3;break}return t.a(2,void this.debug("Client has been marked inactive, will not attempt to connect"));case 3:this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(function(){i.connected||(i.debug("Connection not established in ".concat(i.connectionTimeout,"ms, closing socket")),i.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket..."),n=this._createWebSocket(),this._stompHandler=new u(this,n,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatOutgoing:this.heartbeatOutgoing,heartbeatStrategy:this.heartbeatStrategy,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:function(e){if(i._c
136onnectionWatcher&&(clearTimeout(i._connectionWatcher),i._connectionWatcher=void 0),!i.active)return i.debug("STOMP got connected while deactivate was issued, will disconnect now"),void i._disposeStompHandler();i.onConnect(e)},onDisconnect:function(e){i.onDisconnect(e)},onStompError:function(e){i.onStompError(e)},onWebSocketClose:function(t){i._stompHandler=void 0,i.state===e.ActivationState.DEACTIVATING&&i._changeState(e.ActivationState.INACTIVE),i.onWebSocketClose(t),i.active&&i._schedule_reconnect()},onWebSocketError:function(e){i.onWebSocketError(e)},onUnhandledMessage:function(e){i.onUnhandledMessage(e)},onUnhandledReceipt:function(e){i.onUnhandledReceipt(e)},onUnhandledFrame:function(e){i.onUnhandledFrame(e)}}),this._stompHandler.start();case 4:return t.a(2)}},t,this)})),function(){return n.apply(this,arguments)})},{key:"_createWebSocket",value:function(){var e;if(this.webSocketFactory)e=this.webSocketFactory();else{if(!this.brokerURL)throw new Error("Either brokerURL or webSocketFactory must be provided");e=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions())}return e.binaryType="arraybuffer",e}},{key:"_schedule_reconnect",value:function(){var t=this;this._nextReconnectDelay>0&&(this.debug("STOMP: scheduling reconnection in ".concat(this._nextReconnectDelay,"ms")),this._reconnector=setTimeout(function(){t.reconnectTimeMode===e.ReconnectionTimeMode.EXPONENTIAL&&(t._nextReconnectDelay=2*t._nextReconnectDelay,0!==t.maxReconnectDelay&&(t._nextReconnectDelay=Math.min(t._nextReconnectDelay,t.maxReconnectDelay))),t._connect()},this._nextReconnectDelay))}},{key:"deactivate",value:(t=_asyncToGenerator(_regenerator().m(function t(){var n,i,o,s,r,a=this,l=arguments;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:if(i=(l.length>0&&void 0!==l[0]?l[0]:{}).force||!1,o=this.active,this.state!==e.ActivationState.INACTIVE){t.n=1;break}return t.a(2,(this.debug("Already INACTIVE, nothing more to do"),Promise.resolve()));case 1:if(this._changeState(e.ActivationState.DEACTIVATING),this._nextReconnectDelay=0,this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==e.StompSocketState.CLOSED){t.n=2;break}return t.a(2,(this._changeState(e.ActivationState.INACTIVE),Promise.resolve()));case 2:return r=this._stompHandler.onWebSocketClose,s=new Promise(function(e,t){a._stompHandler.onWebSocketClose=function(t){r(t),e()}}),t.a(2,(i?null===(n=this._stompHandler)||void 0===n||n.discardWebsocket():o&&this._disposeStompHandler(),s))}},t,this)})),function(){return t.apply(this,arguments)})},{key:"forceDisconnect",value:function(){this._stompHandler&&this._stompHandler.forceDisconnect()}},{key:"_disposeStompHandler",value:function(){this._stompHandler&&this._stompHandler.dispose()}},{key:"publish",value:function(e){this._checkConnection(),this._stompHandler.publish(e)}},{key:"_checkConnection",value:function(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}},{key:"watchForReceipt",value:function(e,t){this._checkConnection(),this._stompHandler.watchForReceipt(e,t)}},{key:"subscribe",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._checkConnection(),this._stompHandler.subscribe(e,t,n)}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkConnection(),this._stompHandler.unsubscribe(e,t)}},{key:"begin",value:function(e){return this._checkConnection(),this._stompHandler.begin(e)}},{key:"commit",value:function(e){this._checkConnection(),this._stompHandler.commit(e)}},{key:"abort",value:function(e){this._checkConnection(),this._stompHandler.abort(e)}},{key:"ack",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkConnection(),this._stompHandler.ack(e,t,n)}},{key:"nack",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkConnection(),this._stompHandler.nack(e,t,n)}}]);var t,n}(),d=function(){return _createClass(function e(t){_classCallCheck(this,e),this.client=t},[{key:"outgoing",get:function(){return this.client.heartbeatOutgoing},set:function(e){this.client.heartbeatOutgoing=e}},{key:"incoming",get:function(){return this.client.heartbeatIncoming},set:function(e){this.client.heartbeatIncoming=e}}])}(),p=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_callSuper(this,t)).maxWebSocketFrameSize=16384,n._heartbeatInfo=new d(_assertThisInitialized(n)),n.reconnect_delay=0,n.webSocketFactory=e,n.debug=function(){var e;
136(e=console).log.apply(e,arguments)},n}return _inherits(t,e),_createClass(t,[{key:"_parseConnect",value:function(){for(var e,t,n,i={},o=arguments.length,s=new Array(o),r=0;r<o;r++)s[r]=arguments[r];if(s.length<2)throw new Error("Connect requires at least 2 arguments");return"function"==typeof s[1]?(i=s[0],t=s[1],n=s[2],e=s[3]):6===s.length?(i.login=s[0],i.passcode=s[1],t=s[2],n=s[3],e=s[4],i.host=s[5]):(i.login=s[0],i.passcode=s[1],t=s[2],n=s[3],e=s[4]),[i,t,n,e]}},{key:"connect",value:function(){var e=this._parseConnect.apply(this,arguments);e[0]&&(this.connectHeaders=e[0]),e[1]&&(this.onConnect=e[1]),e[2]&&(this.onStompError=e[2]),e[3]&&(this.onWebSocketClose=e[3]),_superPropGet(t,"activate",this,3)([])}},{key:"disconnect",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(this.onDisconnect=e),this.disconnectHeaders=n,_superPropGet(t,"deactivate",this,3)([])}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!1===(t=Object.assign({},t))["content-length"];i&&delete t["content-length"],this.publish({destination:e,headers:t,body:n,skipContentLengthHeader:i})}},{key:"reconnect_delay",set:function(e){this.reconnectDelay=e}},{key:"ws",get:function(){return this.webSocket}},{key:"version",get:function(){return this.connectedVersion}},{key:"onreceive",get:function(){return this.onUnhandledMessage},set:function(e){this.onUnhandledMessage=e}},{key:"onreceipt",get:function(){return this.onUnhandledReceipt},set:function(e){this.onUnhandledReceipt=e}},{key:"heartbeat",get:function(){return this._heartbeatInfo},set:function(e){this.heartbeatIncoming=e.incoming,this.heartbeatOutgoing=e.outgoing}}])}(h),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"client",value:function(t,n){return null==n&&(n=c.default.protocolVersions()),new p(function(){return new(e.WebSocketClass||WebSocket)(t,n)})}},{key:"over",value:function(e){var t;return"function"==typeof e?t=e:(console.warn("Stomp.over did not receive a factory, auto reconnect will not work. Please see https://stomp-js.github.io/api-docs/latest/classes/Stomp.html#over"),t=function(){return e}),new p(t)}}])}();f.WebSocketClass=null,e.Client=h,e.CompatClient=p,e.FrameImpl=r,e.Parser=a,e.Stomp=f,e.StompConfig=_createClass(function e(){_classCallCheck(this,e)}),e.StompHeaders=_createClass(function e(){_classCallCheck(this,e)}),e.Versions=c}),WebSocketNotifications=function(){},WebSocketNotifications.init=function(e,t,n){var i=this,o="".concat("https:"===location.protocol?"wss":"ws","://").concat(location.host,"/websocket/"),s=new(0,window.StompJs.Client)({brokerURL:o,reconnectDelay:2e3,heartbeatIncoming:1e4,heartbeatOutgoing:1e4,debug:function(){}});this.stompClient=s,this.alerts=new Set,this.storageTitle=n,n&&(this.checkOldAlerts(),$(window).on("focus",function(){if(0!==i.alerts.size){var e=localStorage.getItem(n);e=e?JSON.parse(e):[],Array.from(i.alerts).map(function(t){e.includes(t)||(i.alerts.delete(t),$("#"+t).remove())})}}));var r=new Promise(function(n,i){s.onConnect=function(){s.subscribe(e,t),n()},s.onWebSocketError=function(e){return i(e)},s.onStompError=function(e){return console.error("STOMP error",e)}});return s.activate(),r},WebSocketNotifications.disconnect=function(){this.stompClient&&this.stompClient.deactivate()},WebSocketNotifications.sendMessage=function(e){this.stompClient&&this.stompClient.active&&this.stompClient.publish({destination:"/backend/send-websocket",body:JSON.stringify(e)})},WebSocketNotifications.declineCallback=function(){},WebSocketNotifications.createAlert=function(e,t,n,i,o,s,r,a){var l=this;if(!this.alerts.has(e)){var c=localStorage.getItem(this.storageTitle);(c=c?JSON.parse(c):[]).push(e),localStorage.setItem(this.storageTitle,JSON.stringify(c)),this.alerts.add(e);var u=!1,h=["alert"];h.push("alert-"+o.toLowerCase()),s&&h.push("alert-dismissible");var d=$("<i />",{class:{info:"fa fa-info-circle",success:"fa fa-thumbs-up",warning:"fa fa-exclamation-triangle",danger:"fa ffa fa-exclamation-circle"}[o]}),p=$("<div />",{class:h.join(" "),id:e});if(t){var f=$("<h4 />",{html:t}).appendTo(p);
136u||(f.prepend(d),u=!0)}if(n){var g=$("<strong />",{html:n}).appendTo(p);u||(g.prepend(d),u=!0)}if(i){var m=$("<p />",{html:i}).appendTo(p);u||(m.prepend(d),u=!0)}s&&$("<span />",{class:"close","data-dismiss":"alert",html:"<i class='fa fa-times-circle'></i>"}).appendTo(p),$("#"+a).prepend(p),r&&setTimeout(function(){l.alerts.delete(e),l.deleteAlert(e),p.remove(),l.declineCallback(e,n)},1e3*r)}},WebSocketNotifications.checkOldAlerts=function(){var e=localStorage.getItem(this.storageTitle),t=(e=e?JSON.parse(e):[]).filter(function(e){return Math.ceil(Math.abs(Date.now()-parseInt(e))/6e4)<10});localStorage.setItem(this.storageTitle,JSON.stringify(t))},WebSocketNotifications.deleteAlert=function(e){var t=localStorage.getItem(this.storageTitle);t=t?JSON.parse(t):[],localStorage.setItem(this.storageTitle,JSON.stringify(t.filter(function(t){return t!=e})))},function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){function o(e,t){return w.call(e,t)}function s(e,t){var n,i,o,s,r,a,l,c,u,h,d,p=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(r=(e=e.split("/")).length-1,y.nodeIdCompat&&k.test(e[r])&&(e[r]=e[r].replace(k,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),u=0;u<e.length;u++)if("."===(d=e[u]))e.splice(u,1),u-=1;else if(".."===d){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((p||g)&&f){for(u=(n=e.split("/")).length;u>0;u-=1){if(i=n.slice(0,u).join("/"),p)for(h=p.length;h>0;h-=1)if((o=f[p.slice(0,h).join("/")])&&(o=o[i])){s=o,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function r(e,n){return function(){var i=_.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),p.apply(t,i.concat([e,n]))}}function a(e){return function(t){m[e]=t}}function l(e){if(o(v,e)){var n=v[e];delete v[e],b[e]=!0,d.apply(t,n)}if(!o(m,e)&&!o(b,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function u(e){return e?c(e):[]}function h(e){return function(){return y&&y.config&&y.config[e]||{}}}var d,p,f,g,m={},v={},y={},b={},w=Object.prototype.hasOwnProperty,_=[].slice,k=/\.js$/;f=function(e,t){var n,i=c(e),o=i[0],r=t[1];return e=i[1],o&&(n=l(o=s(o,r))),o?e=n&&n.normalize?n.normalize(e,function(e){return function(t){return s(t,e)}}(r)):s(e,r):(o=(i=c(e=s(e,r)))[0],e=i[1],o&&(n=l(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return r(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:h(e)}}},d=function(e,n,i,s){var c,h,d,p,y,w,_,k=[],x=_typeof(i);if(w=u(s=s||e),"undefined"===x||"function"===x){for(n=!n.length&&i.length?["require","exports","module"]:n,y=0;y<n.length;y+=1)if(p=f(n[y],w),"require"===(h=p.f))k[y]=g.require(e);else if("exports"===h)k[y]=g.exports(e),_=!0;else if("module"===h)c=k[y]=g.module(e);else if(o(m,h)||o(v,h)||o(b,h))k[y]=l(h);else{if(!p.p)throw new Error(e+" missing "+h);p.p.load(p.n,r(s,!0),a(h),{}),k[y]=m[h]}d=i?i.apply(m[e],k):void 0,e&&(c&&c.exports!==t&&c.exports!==m[e]?m[e]=c.exports:d===t&&_||(m[e]=d))}else e&&(m[e]=i)},e=n=p=function(e,n,i,o,s){if("string"==typeof e)return g[e]?g[e](n):l(f(e,u(n)).f);if(!e.splice){if((y=e).deps&&p(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=o,o=s),o?d(t,e,n,i):setTimeout(function(){d(t,e,n,i)},4),p},p.config=function(e){return p(e)},e._defined=m,i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),o(m,e)||o(v,e)||(v[e]=[e,t,n])},i.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i)}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}var n={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,o=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}var o=t(n),s=t(e);n.displayName=e.displayName,i.prototype=new function(){this.constructor=i};for(var r=0;r<s.length;r++){var a=s[r];i.prototype[a]=e.prototype[a]}for(var l=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var o=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),o.apply(this,arguments)}},c=0;c<o.length;c++){var u=o[c];i.prototype[u]=l(u)}return i}},i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
136);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var s=n[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),o==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,s=n.style.overflowY;return(o!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===o||"scroll"===s||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n.__cache={};var o=0;return n.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++o),t=o.toString())),t},n.StoreData=function(e,t,i){var o=n.GetUniqueElementId(e);n.__cache[o]||(n.__cache[o]={}),n.__cache[o][t]=i},n.GetData=function(t,i){var o=n.GetUniqueElementId(t);return i?n.__cache[o]&&null!=n.__cache[o][i]?n.__cache[o][i]:e(t).data(i):n.__cache[o]},n.RemoveData=function(e){var t=n.GetUniqueElementId(e);null!=n.__cache[t]&&delete n.__cache[t]},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var o=e.map(i,function(e){return e.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=e(this),i=t.GetData(this,"data"),s=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(s,o)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var o={role:"treeitem","aria-selected":"false"};for(var s in n.disabled&&(delete o["aria-selected"],o["aria-disabled"]="true"),null==n.id&&delete o["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,delete o["aria-selected"]),o){var r=o[s];i.setAttribute(s,r)}if(n.children){var a=e(i),l=document.createElement("strong");l.className="select2-results__group",e(l),this.template(n,l);for(var c=[],u=0;u<n.children.length;u++){var h=n.children[u],d=this.option(h);c.push(d)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(c),a.append(l),a.append(p)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var o=this,s=n.id+"-results";this.$results.attr("id",s),n.on("results:all",function(e){o.clear(),o.append(e.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("results:append",function(e){o.append(e.data),n.isOpen()&&o.setClasses()}),n.on("query",function(e){o.hideMessages(),o.showLoading(e)}
vendor: 4,755 bytes, line 136
136),n.on("select",function(){n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),n.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),n.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=o.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var s=t.eq(i);s.trigger("mouseenter");var r=o.$results.offset().top,a=s.offset().top,l=o.$results.scrollTop()+(a-r);0===i?o.$results.scrollTop(0):a-r<0&&o.$results.scrollTop(l)}}),n.on("results:next",function(){var e=o.getHighlightedResults(),t=o.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var s=o.$results.offset().top+o.$results.outerHeight(!1),r=i.offset().top+i.outerHeight(!1),a=o.$results.scrollTop()+r-s;0===n?o.$results.scrollTop(0):r>s&&o.$results.scrollTop(a)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){o.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&n<=o.$results.height();i?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=e(this),s=t.GetData(this,"data");"true"!==i.attr("aria-selected")?o.trigger("select",{originalEvent:n,data:s}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:s}):o.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=t.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:i,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),s=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),s=i(t,n);null==s?n.style.display="none":"string"==typeof s?n.innerHTML=o(s):e(n).append(s)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,o=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","fal
136se"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),window.setTimeout(function(){i.$selection.focus()},0),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){e(this),this!=i[0]&&t.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.attr("title",t.title||t.text)}else this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,o){var s=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){s.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!s.options.get("disabled")){var i=e(this).parent(),o=n.GetData(i[0],"data");s.trigger("unselect",{originalEvent:t,data:o})}})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],s=this.selectionContainer(),r=this.display(o,s);s.append(r),s.attr("title",o.title||o.text),n.StoreData(s[0],"data",o),t.push(s)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}
136),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var o=n.GetData(i[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var r={data:o};if(this.trigger("clear",r),r.prevented)return void this.$element.val(s);for(var a=0;a<o.length;a++)if(r={data:o[a]},this.trigger("unselect",r),r.prevented)return void this.$element.val(s);this.$element.trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var o=e('<span class="select2-selection__clear">&times;</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,i,o){var s=this;e.call(this,i,o),i.on("open",function(){s.$search.trigger("focus")}),i.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),i.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),i.on("disable",function(){s.$search.prop("disabled",!0)}),i.on("focus",function(e){s.$search.trigger("focus")}),i.on("results:focus",function(e){s.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===s.$search.val()){var i=s.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var o=t.GetData(i[0],"data");s.searchRemoveChoice(o),e.preventDefault()}}});var r=document.documentMode,a=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&s.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&(this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus())},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,s)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,r)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={}
136,n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"
136c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)}
vendor: 13,188 bytes, line 136
136,i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var s=0;s<e.length;s++){var r=e[s].id;-1===n.inArray(r,o)&&o.push(r)}t.$element.val(o),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var o=[],s=0;s<i.length;s++){var r=i[s].id;r!==e.id&&-1===n.inArray(r,o)&&o.push(r)}t.$element.val(o),t.$element.trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var s=o.item(t),r=o.matches(e,s);null!==r&&i.push(r)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var o=n(i),s=this._normalizeItem(e);return s.element=i,t.StoreData(i,"data",s),o},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;if(e.is("option"))i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var o=e.children("option"),s=[],r=0;r<o.length;r++){var a=n(o[r]),l=this.item(a);s.push(l)}i.children=s}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){function i(e){return function(){return n(this).val()==e.id}}for(var o=this,s=this.$element.find("option"),r=s.map(function(){return o.item(n(this)).id}).get(),a=[],l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=s.filter(i(c)),h=this.item(u),d=n.extend(!0,{},c,h),p=this.option(d);u.replaceWith(p)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}a.push(f)}}return a},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=s.transport(s,function(i){var s=o.processResults(i,e);o.options.get("debug")&&window.console&&console.error&&(s&&s.results&&n.isArray(s.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(s)},function(){"status"in i&&(0===i.status||"0"===i.status)||o.trigger("results:message",{message:"errorLoading"})});o._request=i}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var s=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof s.url&&(s.url=s.url.call(this.$element,e)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),s=i.get("createTag");void 0!==s&&(this.createTag=s);var r=i.get("insertTag");if(void 0!==r&&(this.insertTag=r),t.call(this,n,i),e.isArray(o))for(var a=0;a<o.length;a++){var l=o[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(o,s){for(var r=o.results,a=0;a<r.length;a++){var l=r[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!s&&(o.data=r,void n(o))}if(s)return!0;var u=i.createTag(t);if(null!=u){var h=i.option(u);h.attr("data-select2-tag",!0),i.addOptions([h]),i.insertTag(r,u)}o.results=r,n(o)}):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag,this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;n.term=n.term||"";var s=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}!function(e){o.trigger("select",{data:e})}(n)});s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),n.term=s.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var s=i.get("tokenSeparators")||[],r=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<r.length;){var c=r[a];if(-1!==e.inArray(c,s)){var u=r.substr(0,a),h=l(e.extend({},n,{term:u}));null!=h?(o(h),r=r.substr(a+1)||"",a=0):a++}else a++}return{term:r}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var s=null!=o?o.length:0;i.maximumSelectionLength>0&&s>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val(""),o.$search.blur()}),n.on("focus",function(){n.isOpen()||o.$search.focus()}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,s="scroll.
136select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(s,function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(s+" "+r+" "+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,s="resize.select2."+i.id,r="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+s+" "+r)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=s.top,r.bottom=s.top+r.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<s.top-a,h=c>s.bottom+a,d={left:s.left,top:r.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f=p.offset();d.top-=f.top,d.left-=f.left,n||i||(o="below"),h||!u||n?!u&&h&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=r.top-f.top-a),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var s=e.GetData(o[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,o,s,r,a,l,c,u,h,d,p,f,g,m,v,y,b,w,_,k,x,C,S,D,T,A){function I(){this.reset()}return I.prototype.apply=function(h){if(null==(h=e.extend(!0,{},this.defaults,h)).dataAdapter){if(null!=h.ajax?h.dataAdapter=f:null!=h.data?h.dataAdapter=p:h.dataAdapter=d,h.minimumInputLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,v)),h.maximumInputLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,y)),h.maximumSelectionLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,b)),h.tags&&(h.dataAdapter=c.Decorate(h.dataAdapter,g)),null==h.tokenSeparators&&null==h.tokenizer||(h.dataAdapter=c.Decorate(h.dataAdapter,m)),null!=h.query
vendor: 2,177 bytes, line 136
136){var A=t(h.amdBase+"compat/query");h.dataAdapter=c.Decorate(h.dataAdapter,A)}if(null!=h.initSelection){var I=t(h.amdBase+"compat/initSelection");h.dataAdapter=c.Decorate(h.dataAdapter,I)}}if(null==h.resultsAdapter&&(h.resultsAdapter=n,null!=h.ajax&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,x)),null!=h.placeholder&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,k)),h.selectOnClose&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,D))),null==h.dropdownAdapter){if(h.multiple)h.dropdownAdapter=w;else{var E=c.Decorate(w,_);h.dropdownAdapter=E}if(0!==h.minimumResultsForSearch&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,S)),h.closeOnSelect&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,T)),null!=h.dropdownCssClass||null!=h.dropdownCss||null!=h.adaptDropdownCssClass){var M=t(h.amdBase+"compat/dropdownCss");h.dropdownAdapter=c.Decorate(h.dropdownAdapter,M)}h.dropdownAdapter=c.Decorate(h.dropdownAdapter,C)}if(null==h.selectionAdapter){if(h.multiple?h.selectionAdapter=o:h.selectionAdapter=i,null!=h.placeholder&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,s)),h.allowClear&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,r)),h.multiple&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,a)),null!=h.containerCssClass||null!=h.containerCss||null!=h.adaptContainerCssClass){var P=t(h.amdBase+"compat/containerCss");h.selectionAdapter=c.Decorate(h.selectionAdapter,P)}h.selectionAdapter=c.Decorate(h.selectionAdapter,l)}if("string"==typeof h.language)if(h.language.indexOf("-")>0){var O=h.language.split("-")[0];h.language=[h.language,O]}else h.language=[h.language];if(e.isArray(h.language)){var $=new u;h.language.push("en");for(var j=h.language,z=0;z<j.length;z++){var N=j[z],L={};try{L=u.loadPath(N)}catch(e){try{N=this.defaults.amdLanguageBase+N,L=u.loadPath(N)}catch(e){h.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+N+'" could not be automatically loaded. A fallback will be used instead.');continue}}$.extend(L)}h.translations=$}else{var R=u.loadPath(this.defaults.amdLanguageBase+"en"),H=new u(h.language);H.extend(R),h.translations=H}return h},I.prototype.reset=function(){function t(e){return e.replace(/[^\u
vendor: 7,699 bytes, line 136
1360000-\u007E]/g,function(e){return h[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:A,matcher:function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var s=e.extend(!0,{},o),r=o.children.length-1;r>=0;r--)null==n(i,o.children[r])&&s.children.splice(r,1);return s.children.length>0?s:n(i,s)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},I.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(!0,this.defaults,o)},new I}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var s=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,s)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var o;o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,i.GetData(e[0])):i.GetData(e[0]);var s=t.extend(!0,{},o);for(var r in s=i._convertData(s))t.inArray(r,n)>-1||(t.isPlainObject(this.options[r])?t.extend(this.options[r],s[r]):this.options[r]=s[r]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var s=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",s),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var h=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){h.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var r=s.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}
vendor: 5,263 bytes, lines 136-137
136),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var s=i[e],r={prevented:!1,name:e,args:t};if(n.call(this,s,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},o}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,o){if(null==e.fn.select2){var s=["open","close","destroy"];e.fn.select2=function(t){if("object"==_typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,r)}),e.inArray(t,s)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n});
137//# sourceMappingURL=cache_models-last.js.map

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