(function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.Qs=n()}})(function(){return function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(n,t){"use strict";var r=String.prototype.replace,u=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={"default":i.RFC3986,formatters:{RFC1738:function(n){return r.call(n,u,"+")},RFC3986:function(n){return String(n)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},{}],2:[function(n,t){"use strict";var i=n("./stringify"),r=n("./parse"),u=n("./formats");t.exports={formats:u,parse:r,stringify:i}},{"./formats":1,"./parse":3,"./stringify":4}],3:[function(n,t){"use strict";var r=n("./utils"),u=Object.prototype.hasOwnProperty,e=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(n){return n.replace(/&#(\d+);/g,function(n,t){return String.fromCharCode(parseInt(t,10))})},f=function(n,t){return n&&typeof n=="string"&&t.comma&&n.indexOf(",")>-1?n.split(","):n},s="utf8=%26%2310003%3B",h="utf8=%E2%9C%93",c=function(n,t){var w={},g=t.ignoreQueryPrefix?n.replace(/^\?/,""):n,nt=t.parameterLimit===Infinity?undefined:t.parameterLimit,a=g.split(t.delimiter,nt),k=-1,c,v=t.charset;if(t.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===h?v="utf-8":a[c]===s&&(v="iso-8859-1"),k=c,c=a.length);for(c=0;c<a.length;++c)if(c!==k){var y=a[c],d=y.indexOf("]="),b=d===-1?y.indexOf("="):d+1,p,l;b===-1?(p=t.decoder(y,i.decoder,v,"key"),l=t.strictNullHandling?null:""):(p=t.decoder(y.slice(0,b),i.decoder,v,"key"),l=r.maybeMap(f(y.slice(b+1),t),function(n){return t.decoder(n,i.decoder,v,"value")}));l&&t.interpretNumericEntities&&v==="iso-8859-1"&&(l=o(l));y.indexOf("[]=")>-1&&(l=e(l)?[l]:l);w[p]=u.call(w,p)?r.combine(w[p],l):l}return w},l=function(n,t,i,r){for(var e,u,o,s,h=r?t:f(t,i),c=n.length-1;c>=0;--c)u=n[c],u==="[]"&&i.parseArrays?e=[].concat(h):(e=i.plainObjects?Object.create(null):{},o=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,s=parseInt(o,10),i.parseArrays||o!==""?!isNaN(s)&&u!==o&&String(s)===o&&s>=0&&i.parseArrays&&s<=i.arrayLimit?(e=[],e[s]=h):e[o]=h:e={0:h}),h=e;return h},a=function(n,t,i,r){var s;if(n){var e=i.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,c=/(\[[^[\]]*])/g,f=i.depth>0&&/(\[[^[\]]*])/.exec(e),h=f?e.slice(0,f.index):e,o=[];if(h){if(!i.plainObjects&&u.call(Object.prototype,h)&&!i.allowPrototypes)return;o.push(h)}for(s=0;i.depth>0&&(f=c.exec(e))!==null&&s<i.depth;){if(s+=1,!i.plainObjects&&u.call(Object.prototype,f[1].slice(1,-1))&&!i.allowPrototypes)return;o.push(f[1])}return f&&o.push("["+e.slice(f.index)+"]"),l(o,t,i,r)}},v=function(n){if(!n)return i;if(n.decoder!==null&&n.decoder!==undefined&&typeof n.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof n.charset!="undefined"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof n.charset=="undefined"?i.charset:n.charset;return{allowDots:typeof n.allowDots=="undefined"?i.allowDots:!!n.allowDots,allowPrototypes:typeof n.allowPrototypes=="boolean"?n.allowPrototypes:i.allowPrototypes,allowSparse:typeof n.allowSparse=="boolean"?n.allowSparse:i.allowSparse,arrayLimit:typeof n.arrayLimit=="number"?n.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:i.charsetSentinel,comma:typeof n.comma=="boolean"?n.comma:i.comma,decoder:typeof n.decoder=="function"?n.decoder:i.decoder,delimiter:typeof n.delimiter=="string"||r.isRegExp(n.delimiter)?n.delimiter:i.delimiter,depth:typeof n.depth=="number"||n.depth===!1?+n.depth:i.depth,ignoreQueryPrefix:n.ignoreQueryPrefix===!0,interpretNumericEntities:typeof n.interpretNumericEntities=="boolean"?n.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof n.parameterLimit=="number"?n.parameterLimit:i.parameterLimit,parseArrays:n.parseArrays!==!1,plainObjects:typeof n.plainObjects=="boolean"?n.plainObjects:i.plainObjects,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:i.strictNullHandling}};t.exports=function(n,t){var i=v(t),u,e,o;if(n===""||n===null||typeof n=="undefined")return i.plainObjects?Object.create(null):{};var s=typeof n=="string"?c(n,i):n,f=i.plainObjects?Object.create(null):{},h=Object.keys(s);for(u=0;u<h.length;++u)e=h[u],o=a(e,s[e],i,typeof n=="string"),f=r.merge(f,o,i);return i.allowSparse===!0?f:r.compact(f)}},{"./utils":5}],4:[function(n,t){"use strict";var c=n("side-channel"),f=n("./utils"),u=n("./formats"),l=Object.prototype.hasOwnProperty,e={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,t){return n+"["+t+"]"},repeat:function(n){return n}},r=Array.isArray,a=Array.prototype.push,o=function(n,t){a.apply(n,r(t)?t:[t])},v=Date.prototype.toISOString,s=u["default"],i={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:f.encode,encodeValuesOnly:!1,format:s,formatter:u.formatters[s],indices:!1,serializeDate:function(n){return v.call(n)},skipNulls:!1,strictNullHandling:!1},y=function(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="symbol"||typeof n=="bigint"},h=function h(n,t,u,e,s,c,l,a,v,p,w,b,k,d,g){var nt=n,ot,rt,it,ft,ut,tt,et,st;if(g.has(n))throw new RangeError("Cyclic object value");if(typeof l=="function"?nt=l(t,nt):nt instanceof Date?nt=p(nt):u==="comma"&&r(nt)&&(nt=f.maybeMap(nt,function(n){return n instanceof Date?p(n):n})),nt===null){if(e)return c&&!k?c(t,i.encoder,d,"key",w):t;nt=""}if(y(nt)||f.isBuffer(nt))return c?(ot=k?t:c(t,i.encoder,d,"key",w),[b(ot)+"="+b(c(nt,i.encoder,d,"value",w))]):[b(t)+"="+b(String(nt))];if(rt=[],typeof nt=="undefined")return rt;for(u==="comma"&&r(nt)?it=[{value:nt.length>0?nt.join(",")||null:undefined}]:r(l)?it=l:(ft=Object.keys(nt),it=a?ft.sort(a):ft),ut=0;ut<it.length;++ut)(tt=it[ut],et=typeof tt=="object"&&tt.value!==undefined?tt.value:nt[tt],s&&et===null)||(st=r(nt)?typeof u=="function"?u(t,tt):t:t+(v?"."+tt:"["+tt+"]"),g.set(n,!0),o(rt,h(et,st,u,e,s,c,l,a,v,p,w,b,k,d,g)));return rt},p=function(n){var e,t,o,f;if(!n)return i;if(n.encoder!==null&&n.encoder!==undefined&&typeof n.encoder!="function")throw new TypeError("Encoder has to be a function.");if(e=n.charset||i.charset,typeof n.charset!="undefined"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(t=u["default"],typeof n.format!="undefined"){if(!l.call(u.formatters,n.format))throw new TypeError("Unknown format option provided.");t=n.format}return o=u.formatters[t],f=i.filter,(typeof n.filter=="function"||r(n.filter))&&(f=n.filter),{addQueryPrefix:typeof n.addQueryPrefix=="boolean"?n.addQueryPrefix:i.addQueryPrefix,allowDots:typeof n.allowDots=="undefined"?i.allowDots:!!n.allowDots,charset:e,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:i.charsetSentinel,delimiter:typeof n.delimiter=="undefined"?i.delimiter:n.delimiter,encode:typeof n.encode=="boolean"?n.encode:i.encode,encoder:typeof n.encoder=="function"?n.encoder:i.encoder,encodeValuesOnly:typeof n.encodeValuesOnly=="boolean"?n.encodeValuesOnly:i.encodeValuesOnly,filter:f,format:t,formatter:o,serializeDate:typeof n.serializeDate=="function"?n.serializeDate:i.serializeDate,skipNulls:typeof n.skipNulls=="boolean"?n.skipNulls:i.skipNulls,sort:typeof n.sort=="function"?n.sort:null,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:i.strictNullHandling}};t.exports=function(n,t){var u=n,i=p(t),f,s,v,b,k,d,l,a,y,w;if(typeof i.filter=="function"?(s=i.filter,u=s("",u)):r(i.filter)&&(s=i.filter,f=s),v=[],typeof u!="object"||u===null)return"";for(b=t&&(t.arrayFormat in e)?t.arrayFormat:t&&("indices"in t)?t.indices?"indices":"repeat":"indices",k=e[b],f||(f=Object.keys(u)),i.sort&&f.sort(i.sort),d=c(),l=0;l<f.length;++l)(a=f[l],i.skipNulls&&u[a]===null)||o(v,h(u[a],a,k,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,d));return y=v.join(i.delimiter),w=i.addQueryPrefix===!0?"?":"",i.charsetSentinel&&(w+=i.charset==="iso-8859-1"?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),y.length>0?w+y:""}},{"./formats":1,"./utils":5,"side-channel":16}],5:[function(n,t){"use strict";var o=n("./formats"),u=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var t=[],n=0;n<256;++n)t.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return t}(),s=function(n){for(var t,i,f,u;n.length>1;)if(t=n.pop(),i=t.obj[t.prop],r(i)){for(f=[],u=0;u<i.length;++u)typeof i[u]!="undefined"&&f.push(i[u]);t.obj[t.prop]=f}},e=function(n,t){for(var r=t&&t.plainObjects?Object.create(null):{},i=0;i<n.length;++i)typeof n[i]!="undefined"&&(r[i]=n[i]);return r},f=function f(n,t,i){if(!t)return n;if(typeof t!="object"){if(r(n))n.push(t);else if(n&&typeof n=="object")(i&&(i.plainObjects||i.allowPrototypes)||!u.call(Object.prototype,t))&&(n[t]=!0);else return[n,t];return n}if(!n||typeof n!="object")return[n].concat(t);var o=n;return(r(n)&&!r(t)&&(o=e(n,i)),r(n)&&r(t))?(t.forEach(function(t,r){if(u.call(n,r)){var e=n[r];e&&typeof e=="object"&&t&&typeof t=="object"?n[r]=f(e,t,i):n.push(t)}else n[r]=t}),n):Object.keys(t).reduce(function(n,r){var e=t[r];return n[r]=u.call(n,r)?f(n[r],e,i):e,n},o)},h=function(n,t){return Object.keys(t).reduce(function(n,i){return n[i]=t[i],n},n)},c=function(n,t,i){var r=n.replace(/\+/g," ");if(i==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(u){return r}},l=function(n,t,r,u,f){var h,s,c,e;if(n.length===0)return n;if(h=n,typeof n=="symbol"?h=Symbol.prototype.toString.call(n):typeof n!="string"&&(h=String(n)),r==="iso-8859-1")return escape(h).replace(/%u[0-9a-f]{4}/gi,function(n){return"%26%23"+parseInt(n.slice(2),16)+"%3B"});for(s="",c=0;c<h.length;++c){if(e=h.charCodeAt(c),e===45||e===46||e===95||e===126||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||f===o.RFC1738&&(e===40||e===41)){s+=h.charAt(c);continue}if(e<128){s=s+i[e];continue}if(e<2048){s=s+(i[192|e>>6]+i[128|e&63]);continue}if(e<55296||e>=57344){s=s+(i[224|e>>12]+i[128|e>>6&63]+i[128|e&63]);continue}c+=1;e=65536+((e&1023)<<10|h.charCodeAt(c)&1023);s+=i[240|e>>18]+i[128|e>>12&63]+i[128|e>>6&63]+i[128|e&63]}return s},a=function(n){for(var i,u,t,r=[{obj:{o:n},prop:"o"}],o=[],f=0;f<r.length;++f){var h=r[f],e=h.obj[h.prop],c=Object.keys(e);for(i=0;i<c.length;++i)u=c[i],t=e[u],typeof t=="object"&&t!==null&&o.indexOf(t)===-1&&(r.push({obj:e,prop:u}),o.push(t))}return s(r),n},v=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},y=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},p=function(n,t){return[].concat(n,t)},w=function(n,t){var u,i;if(r(n)){for(u=[],i=0;i<n.length;i+=1)u.push(t(n[i]));return u}return t(n)};t.exports={arrayToObject:e,assign:h,combine:p,compact:a,decode:c,encode:l,isBuffer:y,isRegExp:v,maybeMap:w,merge:f}},{"./formats":1}],6:[function(){},{}],7:[function(n,t){"use strict";var i=n("get-intrinsic"),r=n("./"),u=r(i("String.prototype.indexOf"));t.exports=function(n,t){var f=i(n,!!t);return typeof f=="function"&&u(n,".prototype.")>-1?r(f):f}},{"./":8,"get-intrinsic":11}],8:[function(n,t){"use strict";var u=n("function-bind"),r=n("get-intrinsic"),e=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||u.call(o,e),h=r("%Object.getOwnPropertyDescriptor%",!0),i=r("%Object.defineProperty%",!0),c=r("%Math.max%"),f;if(i)try{i({},"a",{value:1})}catch(l){i=null}t.exports=function(n){var t=s(u,o,arguments),r;return h&&i&&(r=h(t,"length"),r.configurable&&i(t,"length",{value:1+c(0,n.length-(arguments.length-1))})),t};f=function(){return s(u,e,arguments)};i?i(t.exports,"apply",{value:f}):t.exports.apply=f},{"function-bind":10,"get-intrinsic":11}],9:[function(n,t){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,f="[object Function]";t.exports=function(n){var t=this,e,o;if(typeof t!="function"||u.call(t)!==f)throw new TypeError(r+t);var h=i.call(arguments,1),s,l=function(){if(this instanceof s){var r=t.apply(this,h.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,h.concat(i.call(arguments)))},a=Math.max(0,t.length-h.length),c=[];for(e=0;e<a;e++)c.push("$"+e);return s=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype&&(o=function(){},o.prototype=t.prototype,s.prototype=new o,o.prototype=null),s}},{}],10:[function(n,t){"use strict";var i=n("./implementation");t.exports=Function.prototype.bind||i},{"./implementation":9}],11:[function(n,t){"use strict";var i,h=SyntaxError,w=Function,f=TypeError,v=function(n){try{return w('"use strict"; return ('+n+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(et){u=null}var y=function(){throw new f;},d=u?function(){try{return arguments.callee,y}catch(n){try{return u(arguments,"callee").get}catch(t){return y}}}():y,e=n("has-symbols")(),r=Object.getPrototypeOf||function(n){return n.__proto__},o={},g=typeof Uint8Array=="undefined"?i:r(Uint8Array),s={"%AggregateError%":typeof AggregateError=="undefined"?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?i:ArrayBuffer,"%ArrayIteratorPrototype%":e?r([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":o,"%AsyncGenerator%":o,"%AsyncGeneratorFunction%":o,"%AsyncIteratorPrototype%":o,"%Atomics%":typeof Atomics=="undefined"?i:Atomics,"%BigInt%":typeof BigInt=="undefined"?i:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?i:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?i:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?i:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":o,"%Int8Array%":typeof Int8Array=="undefined"?i:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?i:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":e?r(r([][Symbol.iterator]())):i,"%JSON%":typeof JSON=="object"?JSON:i,"%Map%":typeof Map=="undefined"?i:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!e?i:r((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?i:Promise,"%Proxy%":typeof Proxy=="undefined"?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?i:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?i:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!e?i:r((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":e?r(""[Symbol.iterator]()):i,"%Symbol%":e?Symbol:i,"%SyntaxError%":h,"%ThrowTypeError%":d,"%TypedArray%":g,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array=="undefined"?i:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?i:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?i:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?i:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?i:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?i:WeakSet},p=function p(n){var t,i,u;return n==="%AsyncFunction%"?t=v("async function () {}"):n==="%GeneratorFunction%"?t=v("function* () {}"):n==="%AsyncGeneratorFunction%"?t=v("async function* () {}"):n==="%AsyncGenerator%"?(i=p("%AsyncGeneratorFunction%"),i&&(t=i.prototype)):n==="%AsyncIteratorPrototype%"&&(u=p("%AsyncGenerator%"),u&&(t=r(u.prototype))),s[n]=t,t},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=n("function-bind"),l=n("has"),nt=c.call(Function.call,Array.prototype.concat),tt=c.call(Function.apply,Array.prototype.splice),k=c.call(Function.call,String.prototype.replace),a=c.call(Function.call,String.prototype.slice),it=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rt=/\\(\\)?/g,ut=function(n){var i=a(n,0,1),r=a(n,-1),t;if(i==="%"&&r!=="%")throw new h("invalid intrinsic syntax, expected closing `%`");else if(r==="%"&&i!=="%")throw new h("invalid intrinsic syntax, expected opening `%`");return t=[],k(n,it,function(n,i,r,u){t[t.length]=r?k(u,rt,"$1"):i||n}),t},ft=function(n,t){var i=n,u,r;if(l(b,i)&&(u=b[i],i="%"+u[0]+"%"),l(s,i)){if(r=s[i],r===o&&(r=p(i)),typeof r=="undefined"&&!t)throw new f("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:u,name:i,value:r}}throw new h("intrinsic "+n+" does not exist!");};t.exports=function(n,t){var v,o,y;if(typeof n!="string"||n.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new f('"allowMissing" argument must be a boolean');var c=ut(n),p=c.length>0?c[0]:"",d=ft("%"+p+"%",t),w=d.name,r=d.value,it=!1,g=d.alias;for(g&&(p=g[0],tt(c,nt([0,1],g))),v=1,o=!0;v<c.length;v+=1){var e=c[v],b=a(e,0,1),k=a(e,-1);if((b==='"'||b==="'"||b==="`"||k==='"'||k==="'"||k==="`")&&b!==k)throw new h("property names with quotes must have matching quotes");if(e!=="constructor"&&o||(it=!0),p+="."+e,w="%"+p+"%",l(s,w))r=s[w];else if(r!=null){if(!(e in r)){if(!t)throw new f("base intrinsic for "+n+" exists, but the property is not available.");return void i}u&&v+1>=c.length?(y=u(r,e),o=!!y,r=o&&"get"in y&&!("originalValue"in y.get)?y.get:r[e]):(o=l(r,e),r=r[e]);o&&!it&&(s[w]=r)}}return r}},{"function-bind":10,has:14,"has-symbols":12}],12:[function(n,t){"use strict";var i=typeof Symbol!="undefined"&&Symbol,r=n("./shams");t.exports=function(){return typeof i!="function"?!1:typeof Symbol!="function"?!1:typeof i("foo")!="symbol"?!1:typeof Symbol("bar")!="symbol"?!1:r()}},{"./shams":13}],13:[function(n,t){"use strict";t.exports=function(){var i,r,u;if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),f=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(f)!=="[object Symbol]")return!1;i=42;t[n]=i;for(n in t)return!1;return typeof Object.keys=="function"&&Object.keys(t).length!==0?!1:typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0?!1:(r=Object.getOwnPropertySymbols(t),r.length!==1||r[0]!==n)?!1:Object.prototype.propertyIsEnumerable.call(t,n)?typeof Object.getOwnPropertyDescriptor=="function"&&(u=Object.getOwnPropertyDescriptor(t,n),u.value!==i||u.enumerable!==!0)?!1:!0:!1}},{}],14:[function(n,t){"use strict";var i=n("function-bind");t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":10}],15:[function(n,t){function k(n,t,i){var r=(i.quoteStyle||t)==="double"?'"':"'";return r+n+r}function et(n){return String(n).replace(/"/g,"&quot;")}function c(n){return i(n)==="[object Array]"}function ot(n){return i(n)==="[object Date]"}function st(n){return i(n)==="[object RegExp]"}function ht(n){return i(n)==="[object Error]"}function d(n){return i(n)==="[object Symbol]"}function ct(n){return i(n)==="[object String]"}function lt(n){return i(n)==="[object Number]"}function at(n){return i(n)==="[object BigInt]"}function vt(n){return i(n)==="[object Boolean]"}function r(n,t){return ut.call(n,t)}function i(n){return oi.call(n)}function yt(n){if(n.name)return n.name;var t=hi.call(si.call(n),/^function\s*([\w$]+)/);return t?t[1]:null}function g(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1}function pt(n){if(!s||!n||typeof n!="object")return!1;try{s.call(n);try{h.call(n)}catch(t){return!0}return n instanceof Map}catch(i){}return!1}function wt(n){if(!f||!n||typeof n!="object")return!1;try{f.call(n,f);try{e.call(n,e)}catch(t){return!0}return n instanceof WeakMap}catch(i){}return!1}function bt(n){if(!h||!n||typeof n!="object")return!1;try{h.call(n);try{s.call(n)}catch(t){return!0}return n instanceof Set}catch(i){}return!1}function kt(n){if(!e||!n||typeof n!="object")return!1;try{e.call(n,e);try{f.call(n,f)}catch(t){return!0}return n instanceof WeakSet}catch(i){}return!1}function dt(n){return!n||typeof n!="object"?!1:typeof HTMLElement!="undefined"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function nt(n,t){var i,r,u;return n.length>t.maxStringLength?(i=n.length-t.maxStringLength,r="... "+i+" more character"+(i>1?"s":""),nt(n.slice(0,t.maxStringLength),t)+r):(u=n.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,gt),k(u,"single",t))}function gt(n){var t=n.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return i?"\\"+i:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function u(n){return"Object("+n+")"}function tt(n){return n+" { ? }"}function it(n,t,i,r){var u=r?l(i,r):i.join(", ");return n+" ("+t+") {"+u+"}"}function ni(n){for(var t=0;t<n.length;t++)if(g(n[t],"\n")>=0)return!1;return!0}function ti(n,t){var i;if(n.indent==="\t")i="\t";else if(typeof n.indent=="number"&&n.indent>0)i=Array(n.indent+1).join(" ");else return null;return{base:i,prev:Array(t+1).join(i)}}function l(n,t){if(n.length===0)return"";var i="\n"+t.prev+t.base;return i+n.join(","+i)+"\n"+t.prev}function o(n,t){var s=c(n),u=[],f,i,o,e;if(s)for(u.length=n.length,f=0;f<n.length;f++)u[f]=r(n,f)?t(n[f],n):"";for(i in n)r(n,i)&&(s&&String(Number(i))===i&&i<n.length||(/[^\w$]/.test(i)?u.push(t(i,n)+": "+t(n[i],n)):u.push(i+": "+t(n[i],n))));if(typeof rt=="function")for(o=rt(n),e=0;e<o.length;e++)ai.call(n,o[e])&&u.push("["+t(o[e])+"]: "+t(n[o[e]],n));return u}var a=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=a&&v&&typeof v.get=="function"?v.get:null,ii=a&&Map.prototype.forEach,y=typeof Set=="function"&&Set.prototype,p=Object.getOwnPropertyDescriptor&&y?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=y&&p&&typeof p.get=="function"?p.get:null,ri=y&&Set.prototype.forEach,ui=typeof WeakMap=="function"&&WeakMap.prototype,f=ui?WeakMap.prototype.has:null,fi=typeof WeakSet=="function"&&WeakSet.prototype,e=fi?WeakSet.prototype.has:null,ei=Boolean.prototype.valueOf,oi=Object.prototype.toString,si=Function.prototype.toString,hi=String.prototype.match,ci=typeof BigInt=="function"?BigInt.prototype.valueOf:null,rt=Object.getOwnPropertySymbols,li=typeof Symbol=="function"?Symbol.prototype.toString:null,ai=Object.prototype.propertyIsEnumerable,w=n("./util.inspect").custom,b=w&&d(w)?w:null,ut;t.exports=function ft(n,t,i,f){function a(n,t,u){if(t&&(f=f.slice(),f.push(t)),u){var o={depth:e.depth};return r(e,"quoteStyle")&&(o.quoteStyle=e.quoteStyle),ft(n,o,i+1,f)}return ft(n,e,i+1,f)}var e=t||{},gt,ui,v,fi,oi,si,y,w,p,rt,hi,ai,vi,ut;if(r(e,"quoteStyle")&&e.quoteStyle!=="single"&&e.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(r(e,"maxStringLength")&&(typeof e.maxStringLength=="number"?e.maxStringLength<0&&e.maxStringLength!==Infinity:e.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');if(gt=r(e,"customInspect")?e.customInspect:!0,typeof gt!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(r(e,"indent")&&e.indent!==null&&e.indent!=="\t"&&!(parseInt(e.indent,10)===e.indent&&e.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof n=="undefined")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return nt(n,e);if(typeof n=="number")return n===0?Infinity/n>0?"0":"-0":String(n);if(typeof n=="bigint")return String(n)+"n";if(ui=typeof e.depth=="undefined"?5:e.depth,typeof i=="undefined"&&(i=0),i>=ui&&ui>0&&typeof n=="object")return c(n)?"[Array]":"[Object]";if(v=ti(e,i),typeof f=="undefined")f=[];else if(g(f,n)>=0)return"[Circular]";if(typeof n=="function")return fi=yt(n),oi=o(n,a),"[Function"+(fi?": "+fi:" (anonymous)")+"]"+(oi.length>0?" { "+oi.join(", ")+" }":"");if(d(n))return si=li.call(n),typeof n=="object"?u(si):si;if(dt(n)){for(y="<"+String(n.nodeName).toLowerCase(),w=n.attributes||[],p=0;p<w.length;p++)y+=" "+w[p].name+"="+k(et(w[p].value),"double",e);return y+=">",n.childNodes&&n.childNodes.length&&(y+="..."),y+("<\/"+String(n.nodeName).toLowerCase()+">")}if(c(n))return n.length===0?"[]":(rt=o(n,a),v&&!ni(rt))?"["+l(rt,v)+"]":"[ "+rt.join(", ")+" ]";if(ht(n))return(hi=o(n,a),hi.length===0)?"["+String(n)+"]":"{ ["+String(n)+"] "+hi.join(", ")+" }";if(typeof n=="object"&&gt){if(b&&typeof n[b]=="function")return n[b]();if(typeof n.inspect=="function")return n.inspect()}return pt(n)?(ai=[],ii.call(n,function(t,i){ai.push(a(i,n,!0)+" => "+a(t,n))}),it("Map",s.call(n),ai,v)):bt(n)?(vi=[],ri.call(n,function(t){vi.push(a(t,n))}),it("Set",h.call(n),vi,v)):wt(n)?tt("WeakMap"):kt(n)?tt("WeakSet"):lt(n)?u(a(Number(n))):at(n)?u(a(ci.call(n))):vt(n)?u(ei.call(n)):ct(n)?u(a(String(n))):!ot(n)&&!st(n)?(ut=o(n,a),ut.length===0)?"{}":v?"{"+l(ut,v)+"}":"{ "+ut.join(", ")+" }":String(n)};ut=Object.prototype.hasOwnProperty||function(n){return n in this}},{"./util.inspect":6}],16:[function(n,t){"use strict";var f=n("get-intrinsic"),i=n("call-bind/callBound"),o=n("object-inspect"),s=f("%TypeError%"),r=f("%WeakMap%",!0),u=f("%Map%",!0),h=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),a=i("Map.prototype.get",!0),v=i("Map.prototype.set",!0),y=i("Map.prototype.has",!0),e=function(n,t){for(var r=n,i;(i=r.next)!==null;r=i)if(i.key===t)return r.next=i.next,i.next=n.next,n.next=i,i},p=function(n,t){var i=e(n,t);return i&&i.value},w=function(n,t,i){var r=e(n,t);r?r.value=i:n.next={key:t,next:n.next,value:i}},b=function(n,t){return!!e(n,t)};t.exports=function(){var n,t,i,f={assert:function(n){if(!f.has(n))throw new s("Side channel does not contain "+o(n));},get:function(f){if(r&&f&&(typeof f=="object"||typeof f=="function")){if(n)return h(n,f)}else if(u){if(t)return a(t,f)}else if(i)return p(i,f)},has:function(f){if(r&&f&&(typeof f=="object"||typeof f=="function")){if(n)return l(n,f)}else if(u){if(t)return y(t,f)}else if(i)return b(i,f);return!1},set:function(f,e){r&&f&&(typeof f=="object"||typeof f=="function")?(n||(n=new r),c(n,f,e)):u?(t||(t=new u),v(t,f,e)):(i||(i={key:{},next:null}),w(i,f,e))}};return f}},{"call-bind/callBound":7,"get-intrinsic":11,"object-inspect":15}]},{},[2])(2)});!function(n,t){var i;n&&(i=function(r){t(n.lazySizes,r);n.removeEventListener("lazyunveilread",i,!0)},t=t.bind(null,n,n.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):n.lazySizes?i():n.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(n,t,i,r){"use strict";function h(n,r){function h(){var t=n.currentSrc||n.src;t&&v!==t&&(v=t,s.backgroundImage="url("+(a.test(t)?JSON.stringify(t):t)+")",l||(l=!0,i.rC(f,e.loadingClass),i.aC(f,e.loadedClass)))}function c(){i.rAF(h)}var l,v,f,s,e=i.cfg;n._lazysizesParentFit=r.fit;n.addEventListener("lazyloaded",c,!0);n.addEventListener("load",c,!0);i.rAF(function(){var v,l,y,c=n,a=n.parentNode;"PICTURE"==a.nodeName.toUpperCase()&&(a=(c=a).parentNode);(l=(v=c).previousElementSibling)&&i.hC(l,u)&&(l.parentNode.removeChild(l),v.style.position=l.getAttribute("data-position")||"",v.style.visibility=l.getAttribute("data-visibility")||"");u||u||(y=t.createElement("style"),u=i.cfg.objectFitClass||"lazysizes-display-clone",t.querySelector("head").appendChild(y));f=n.cloneNode(!1);s=f.style;f.addEventListener("load",function(){var n=f.currentSrc||f.src;n&&n!=o&&(f.src=o,f.srcset="")});i.rC(f,e.loadedClass);i.rC(f,e.lazyClass);i.rC(f,e.autosizesClass);i.aC(f,e.loadingClass);i.aC(f,u);["data-parent-fit","data-parent-container","data-object-fit-polyfilled",e.srcsetAttr,e.srcAttr].forEach(function(n){f.removeAttribute(n)});f.src=o;f.srcset="";s.backgroundRepeat="no-repeat";s.backgroundPosition=r.position;s.backgroundSize=r.fit;f.setAttribute("data-position",c.style.position);f.setAttribute("data-visibility",c.style.visibility);c.style.visibility="hidden";c.style.position="absolute";n.setAttribute("data-parent-fit",r.fit);n.setAttribute("data-parent-container","prev");n.setAttribute("data-object-fit-polyfilled","");n._objectFitPolyfilledDisplay=f;a.insertBefore(f,c);n._lazysizesParentFit&&delete n._lazysizesParentFit;n.complete&&h()})}var u,f,s=t.createElement("a").style,e="objectFit"in s,c=/object-fit["']*\s*:\s*["']*(contain|cover)/,l=/object-position["']*\s*:\s*["']*(.+?)(?=($|,|'|"|;))/,o="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",a=/\(|\)|'/,v={center:"center","50% 50%":"center"};e&&e&&"objectPosition"in s||(f=function(n){if(n.detail.instance==i){var u,r,t,o=n.target,f=(u=(getComputedStyle(o,null)||{}).fontFamily||"",r=u.match(c)||"",t=(t=r&&u.match(l)||"")&&t[1],{fit:r&&r[1]||"",position:v[t]||t||"center"});return!(!f.fit||e&&"center"==f.position)&&(h(o,f),!0)}},n.addEventListener("lazybeforesizes",function(n){var t;n.detail.instance==i&&(null==(t=n.target).getAttribute("data-object-fit-polyfilled")||t._objectFitPolyfilledDisplay||f(n)||i.rAF(function(){t.removeAttribute("data-object-fit-polyfilled")}))}),n.addEventListener("lazyunveilread",f,!0),r&&r.detail&&f(r))});!function(n){var t=function(n,t,i){"use strict";var e,r;if(function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};r=n.lazySizesConfig||n.lazysizesConfig||{};for(t in i)t in r||(r[t]=i[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var s=t.documentElement,ot=n.HTMLPictureElement,h="addEventListener",u="getAttribute",o=n[h].bind(n),f=n.setTimeout,it=n.requestAnimationFrame||f,k=n.requestIdleCallback,rt=/^picture$/i,st=["load","error","lazyincluded","_lazyloaded"],p={},ht=Array.prototype.forEach,c=function(n,t){return p[t]||(p[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),p[t].test(n[u]("class")||"")&&p[t]},l=function(n,t){c(n,t)||n.setAttribute("class",(n[u]("class")||"").trim()+" "+t)},d=function(n,t){var i;(i=c(n,t))&&n.setAttribute("class",(n[u]("class")||"").replace(i," "))},g=function(n,t,i){var r=i?h:"removeEventListener";i&&g(n,t);st.forEach(function(i){n[r](i,t)})},a=function(n,i,r,u,f){var o=t.createEvent("Event");return r||(r={}),r.instance=e,o.initEvent(i,!u,!f),o.detail=r,n.dispatchEvent(o),o},nt=function(t,i){var f;!ot&&(f=n.picturefill||r.pf)?(i&&i.src&&!t[u]("srcset")&&t.setAttribute("srcset",i.src),f({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},v=function(n,t){return(getComputedStyle(n,null)||{})[t]},ut=function(n,t,i){for(i=i||n.offsetWidth;i<r.minSize&&t&&!n._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},y=function(){var n,i,r=[],s=[],u=r,e=function(){var t=u;for(u=r.length?s:r,n=!0,i=!1;t.length;)t.shift()();n=!1},o=function(r,o){n&&!o?r.apply(this,arguments):(u.push(r),i||(i=!0,(t.hidden?f:it)(e)))};return o._lsFlush=e,o}(),w=function(n,t){return t?function(){y(n)}:function(){var t=this,i=arguments;y(function(){n.apply(t,i)})}},ct=function(n){var u,e=0,h=r.throttleDelay,t=r.ricTimeout,o=function(){u=!1;e=i.now();n()},s=k&&t>49?function(){k(o,{timeout:t});t!==r.ricTimeout&&(t=r.ricTimeout)}:w(function(){f(o)},!0);return function(n){var r;((n=n===!0)&&(t=33),u)||(u=!0,r=h-(i.now()-e),r<0&&(r=0),n||r<9?s():f(s,r))}},ft=function(n){var t,u,r=99,e=function(){t=null;n()},o=function(){var n=i.now()-u;n<r?f(o,r-n):(k||e)(e)};return function(){u=i.now();t||(t=f(o,r))}},et=function(){var yt,ut,kt,et,dt,gt,ni,ot,st,lt,at,pt,oi=/^img$/i,si=/^iframe$/i,hi="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),ci=0,wt=0,b=0,k=-1,ti=function(n){b--;(!n||b<0||!n.target)&&(b=0)},ii=function(n){return pt==null&&(pt=v(t.body,"visibility")=="hidden"),pt||!(v(n.parentNode,"visibility")=="hidden"&&v(n,"visibility")=="hidden")},li=function(n,i){var u,r=n,f=ii(n);for(ot-=i,at+=i,st-=i,lt+=i;f&&(r=r.offsetParent)&&r!=t.body&&r!=s;)f=(v(r,"opacity")||1)>0,f&&v(r,"overflow")!="visible"&&(u=r.getBoundingClientRect(),f=lt>u.left&&st<u.right&&at>u.top-1&&ot<u.bottom+1);return f},ri=function(){var w,n,o,c,a,f,v,l,d,h,y,p,i=e.elements;if((et=r.loadMode)&&b<8&&(w=i.length)){for(n=0,k++;n<w;n++)if(i[n]&&!i[n]._lazyRace){if(!hi||e.prematureUnveil&&e.prematureUnveil(i[n])){vt(i[n]);continue}if((l=i[n][u]("data-expand"))&&(f=l*1)||(f=wt),h||(h=!r.expand||r.expand<1?s.clientHeight>500&&s.clientWidth>500?500:370:r.expand,e._defEx=h,y=h*r.expFactor,p=r.hFac,pt=null,wt<y&&b<1&&k>2&&et>2&&!t.hidden?(wt=y,k=0):wt=et>1&&k>1&&b<6?h:ci),d!==f&&(gt=innerWidth+f*p,ni=innerHeight+f,v=f*-1,d=f),o=i[n].getBoundingClientRect(),(at=o.bottom)>=v&&(ot=o.top)<=ni&&(lt=o.right)>=v*p&&(st=o.left)<=gt&&(at||lt||st||ot)&&(r.loadHidden||ii(i[n]))&&(ut&&b<3&&!l&&(et<3||k<4)||li(i[n],f))){if(vt(i[n]),a=!0,b>9)break}else!a&&ut&&!c&&b<4&&k<4&&et>2&&(yt[0]||r.preloadAfterLoad)&&(yt[0]||!l&&(at||lt||st||ot||i[n][u](r.sizesAttr)!="auto"))&&(c=yt[0]||i[n])}c&&!a&&vt(c)}},p=ct(ri),ui=function(n){var t=n.target;if(t._lazyCache){delete t._lazyCache;return}ti(n);l(t,r.loadedClass);d(t,r.loadingClass);g(t,fi);a(t,"lazyloaded")},ai=w(ui),fi=function(n){ai({target:n.target})},vi=function(n,t){var i=n.getAttribute("data-load-mode")||r.iframeLoadMode;i==0?n.contentWindow.location.replace(t):i==1&&(n.src=t)},yi=function(n){var t,i=n[u](r.srcsetAttr);(t=r.customMedia[n[u]("data-media")||n[u]("media")])&&n.setAttribute("media",t);i&&n.setAttribute("srcset",i)},pi=w(function(n,t,i,e,o){var s,h,v,c,p,w;(p=a(n,"lazybeforeunveil",t)).defaultPrevented||(e&&(i?l(n,r.autosizesClass):n.setAttribute("sizes",e)),h=n[u](r.srcsetAttr),s=n[u](r.srcAttr),o&&(v=n.parentNode,c=v&&rt.test(v.nodeName||"")),w=t.firesLoad||"src"in n&&(h||s||c),p={target:n},l(n,r.loadingClass),w&&(clearTimeout(kt),kt=f(ti,2500),g(n,fi,!0)),c&&ht.call(v.getElementsByTagName("source"),yi),h?n.setAttribute("srcset",h):s&&!c&&(si.test(n.nodeName)?vi(n,s):n.src=s),o&&(h||c)&&nt(n,{src:s}));n._lazyRace&&delete n._lazyRace;d(n,r.lazyClass);y(function(){var t=n.complete&&n.naturalWidth>1;(!w||t)&&(t&&l(n,r.fastLoadedClass),ui(p),n._lazyCache=!0,f(function(){"_lazyCache"in n&&delete n._lazyCache},9));n.loading=="lazy"&&b--},!0)}),vt=function(n){if(!n._lazyRace){var f,t=oi.test(n.nodeName),e=t&&(n[u](r.sizesAttr)||n[u]("sizes")),i=e=="auto";(i||!ut)&&t&&(n[u]("src")||n.srcset)&&!n.complete&&!c(n,r.errorClass)&&c(n,r.lazyClass)||(f=a(n,"lazyunveilread").detail,i&&tt.updateElem(n,!0,n.offsetWidth),n._lazyRace=!0,b++,pi(n,f,i,e,t))}},wi=ft(function(){r.loadMode=3;p()}),ei=function(){r.loadMode==3&&(r.loadMode=2);wi()},bt=function(){if(!ut){if(i.now()-dt<999){f(bt,999);return}ut=!0;r.loadMode=3;p();o("scroll",ei,!0)}};return{_:function(){dt=i.now();e.elements=t.getElementsByClassName(r.lazyClass);yt=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass);o("scroll",p,!0);o("resize",p,!0);o("pageshow",function(n){if(n.persisted){var i=t.querySelectorAll("."+r.loadingClass);i.length&&i.forEach&&it(function(){i.forEach(function(n){n.complete&&vt(n)})})}});n.MutationObserver?new MutationObserver(p).observe(s,{childList:!0,subtree:!0,attributes:!0}):(s[h]("DOMNodeInserted",p,!0),s[h]("DOMAttrModified",p,!0),setInterval(p,999));o("hashchange",p,!0);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(n){t[h](n,p,!0)});/d$|^c/.test(t.readyState)?bt():(o("load",bt),t[h]("DOMContentLoaded",p),f(bt,2e4));e.elements.length?(ri(),y._lsFlush()):p()},checkElems:p,unveil:vt,_aLSL:ei}}(),tt=function(){var n,f=w(function(n,t,i,r){var f,u,e;if(n._lazysizesWidth=r,r+="px",n.setAttribute("sizes",r),rt.test(t.nodeName||""))for(f=t.getElementsByTagName("source"),u=0,e=f.length;u<e;u++)f[u].setAttribute("sizes",r);i.detail.dataAttr||nt(n,i.detail)}),i=function(n,t,i){var r,u=n.parentNode;u&&(i=ut(n,u,i),r=a(n,"lazybeforesizes",{width:i,dataAttr:!!t}),r.defaultPrevented||(i=r.detail.width,i&&i!==n._lazysizesWidth&&f(n,u,r,i)))},e=function(){var t,r=n.length;if(r)for(t=0;t<r;t++)i(n[t])},u=ft(e);return{_:function(){n=t.getElementsByClassName(r.autosizesClass);o("resize",u)},checkElems:u,updateElem:i}}(),b=function(){!b.i&&t.getElementsByClassName&&(b.i=!0,tt._(),et._())};return f(function(){r.init&&b()}),e={cfg:r,autoSizer:tt,loader:et,init:b,uP:nt,aC:l,rC:d,hC:c,fire:a,gW:ut,rAF:y}}(n,n.document,Date);n.lazySizes=t;"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{});!function(){"use strict";function i(n){return angular.isUndefined(n)||null===n}var n={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){var i=t.which;switch(i){case n.COMMAND:case n.SHIFT:case n.CTRL:case n.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(n){return n=n.which?n.which:n,n>=112&&n<=123},isVerticalMovement:function(t){return~[n.UP,n.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[n.LEFT,n.RIGHT,n.BACKSPACE,n.DELETE].indexOf(t)},toSeparator:function(t){var i={ENTER:"\n",TAB:"\t",SPACE:" "}[t];return i?i:n[t]?void 0:t}},r,t;void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(n){return angular.element(this[0].querySelectorAll(n))});void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(n){for(var t=this[0],i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(i.bind(t)(n))return t;t=t.parentElement}return!1});r=0;t=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return r++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon glyphicon-refresh ui-select-spin",backspaceReset:!0}).service("uiSelectMinErr",function(){var n=angular.$$minErr("ui.select");return function(){var t=n.apply(this,arguments),i=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(i)}}).directive("uisTranscludeAppend",function(){return{link:function(n,t,i,r,u){u(n,function(n){t.append(n)})}}}).filter("highlight",function(){function n(n){return(""+n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i&&t?(""+t).replace(new RegExp(n(i),"gi"),'<span class="ui-select-highlight">$&<\/span>'):t}}).factory("uisOffset",["$document","$window",function(n,t){return function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}}}]);t.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(n,t,i,r,u){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-choices");var i=t.parent().attr("theme")||n.theme;return i+"/choices.tpl.html"},compile:function(r,f){var s,l,h,c,e,o,a;if(!f.repeat)throw i("repeat","Expected 'repeat' expression.");if(s=f.groupBy,l=f.groupFilter,s){if(h=r.querySelectorAll(".ui-select-choices-group"),1!==h.length)throw i("rows","Expected 1 .ui-select-choices-group but got '{0}'.",h.length);h.attr("ng-repeat",t.getGroupNgRepeatExpression())}if(c=t.parse(f.repeat),e=r.querySelectorAll(".ui-select-choices-row"),1!==e.length)throw i("rows","Expected 1 .ui-select-choices-row but got '{0}'.",e.length);if(e.attr("ng-repeat",c.repeatExpression(s)).attr("ng-if","$select.open"),o=r.querySelectorAll(".ui-select-choices-row-inner"),1!==o.length)throw i("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",o.length);return o.attr("uis-transclude-append",""),a=u.document.addEventListener?e:o,a.attr("ng-click","$select.select("+c.itemName+",$select.skipFocusser,$event)"),function(t,i,u,f){f.parseRepeatAttr(u.repeat,s,l);f.disableChoiceExpression=u.uiDisableChoice;f.onHighlightCallback=u.onHighlight;f.minimumInputLength=parseInt(u.minimumInputLength)||0;f.dropdownPosition=u.position?u.position.toLowerCase():n.dropdownPosition;t.$watch("$select.search",function(n){n&&!f.open&&f.multiple&&f.activate(!1,!0);f.activeIndex=f.tagging.isActivated?-1:0;!u.minimumInputLength||f.search.length>=u.minimumInputLength?f.refresh(u.refresh):f.items=[]});u.$observe("refreshDelay",function(){var i=t.$eval(u.refreshDelay);f.refreshDelay=void 0!==i?i:n.refreshDelay});t.$watch("$select.open",function(n){n?(r.attr("role","listbox"),f.refresh(u.refresh)):i.removeAttr("role")})}}}}]);t.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(t,r,u,f,e,o,s,h,c,l,a){function rt(n,t,i){if(n.findIndex)return n.findIndex(t,i);for(var f,u=Object(n),e=u.length>>>0,r=0;r<e;r++)if(f=u[r],t.call(i,f,r,u))return r;return-1}function w(){v.resetSearchInput&&(v.search=k,v.selected&&v.items.length&&!v.multiple&&(v.activeIndex=rt(v.items,function(n){return angular.equals(this,n)},v.selected)))}function ut(n,t){for(var i,u=[],r=0;r<t.length;r++)for(i=0;i<n.length;i++)n[i].name==[t[r]]&&u.push(n[i]);return u}function ft(n,t){var i=y.indexOf(n);t&&i===-1&&y.push(n);!t&&i>-1&&y.splice(i,1)}function b(n){return y.indexOf(n)>-1}function et(n){function i(n,i){var r=t.indexOf(n);i&&r===-1&&t.push(n);!i&&r>-1&&t.splice(r,1)}function r(n){return t.indexOf(n)>-1}if(n){var t=[];v.isLocked=function(n,t){var u=!1,f=v.selected[t];return f&&(n?(u=!!n.$eval(v.lockChoiceExpression),i(f,u)):u=r(f)),u}}}function ot(t){var f=!0,i,u,r;switch(t){case n.DOWN:if(!v.open&&v.multiple)v.activate(!1,!0);else if(v.activeIndex<v.items.length-1)for(i=++v.activeIndex;b(v.items[i])&&i<v.items.length;)v.activeIndex=++i;break;case n.UP:if(u=0===v.search.length&&v.tagging.isActivated?-1:0,!v.open&&v.multiple)v.activate(!1,!0);else if(v.activeIndex>u)for(r=--v.activeIndex;b(v.items[r])&&r>u;)v.activeIndex=--r;break;case n.TAB:v.multiple&&!v.open||v.select(v.items[v.activeIndex],!0);break;case n.ENTER:v.open&&(v.tagging.isActivated||v.activeIndex>=0)?v.select(v.items[v.activeIndex],v.skipFocusser):v.activate(!1,!0);break;case n.ESC:v.close();break;default:f=!1}return f}function it(){var n=r.querySelectorAll(".ui-select-choices-content"),u=n.querySelectorAll(".ui-select-choices-row");if(u.length<1)throw s("choices","Expected multiple .ui-select-choices-row but got '{0}'.",u.length);if(!(v.activeIndex<0)){var t=u[v.activeIndex],i=t.offsetTop+t.clientHeight-n[0].scrollTop,f=n[0].offsetHeight;i>f?n[0].scrollTop+=i-f:i<t.clientHeight&&(v.isGrouped&&0===v.activeIndex?n[0].scrollTop=0:n[0].scrollTop-=t.clientHeight-i)}}var v=this,k="",g,nt,y,p,d,tt;if(v.placeholder=h.placeholder,v.searchEnabled=h.searchEnabled,v.sortable=h.sortable,v.refreshDelay=h.refreshDelay,v.paste=h.paste,v.resetSearchInput=h.resetSearchInput,v.refreshing=!1,v.spinnerEnabled=h.spinnerEnabled,v.spinnerClass=h.spinnerClass,v.removeSelected=h.removeSelected,v.closeOnSelect=!0,v.skipFocusser=!1,v.search=k,v.activeIndex=0,v.items=[],v.open=!1,v.focus=!1,v.disabled=!1,v.selected=void 0,v.dropdownPosition="auto",v.focusser=void 0,v.multiple=void 0,v.disableChoiceExpression=void 0,v.tagging={isActivated:!1,fct:void 0},v.taggingTokens={isActivated:!1,tokens:void 0},v.lockChoiceExpression=void 0,v.clickTriggeredSelect=!1,v.$filter=f,v.$element=r,v.$animate=function(){try{return l.get("$animate")}catch(n){return null}}(),v.searchInput=r.querySelectorAll("input.ui-select-search"),1!==v.searchInput.length)throw s("searchInput","Expected 1 input.ui-select-search but got '{0}'.",v.searchInput.length);v.isEmpty=function(){return i(v.selected)||""===v.selected||v.multiple&&0===v.selected.length};v.activate=function(n,i){var e,o,f;v.disabled||v.open?v.open&&!v.searchEnabled&&v.close():(i||w(),t.$broadcast("uis:activate"),v.open=!0,v.activeIndex=v.activeIndex>=v.items.length?0:v.activeIndex,v.activeIndex===-1&&v.taggingLabel!==!1&&(v.activeIndex=0),e=r.querySelectorAll(".ui-select-choices-content"),o=r.querySelectorAll(".ui-select-search"),v.$animate&&v.$animate.on&&v.$animate.enabled(e[0])?(f=function(t,i){"start"===i&&0===v.items.length?(v.$animate.off("removeClass",o[0],f),u(function(){v.focusSearchInput(n)})):"close"===i&&(v.$animate.off("enter",e[0],f),u(function(){v.focusSearchInput(n)}))},v.items.length>0?v.$animate.on("enter",e[0],f):v.$animate.on("removeClass",o[0],f)):u(function(){v.focusSearchInput(n);!v.tagging.isActivated&&v.items.length>1&&it()}))};v.focusSearchInput=function(n){v.search=n||v.search;v.searchInput[0].focus()};v.findGroupByName=function(n){return v.groups&&v.groups.filter(function(t){return t.name===n})[0]};v.parseRepeatAttr=function(n,i,r){function e(n){var f=t.$eval(i),u;(v.groups=[],angular.forEach(n,function(n){var t=angular.isFunction(f)?f(n):n[f],i=v.findGroupByName(t);i?i.items.push(n):v.groups.push({name:t,items:[n]})}),r)&&(u=t.$eval(r),angular.isFunction(u)?v.groups=u(v.groups):angular.isArray(u)&&(v.groups=ut(v.groups,u)));v.items=[];v.groups.forEach(function(n){v.items=v.items.concat(n.items)})}function h(n){v.items=n||[]}v.setItemsFn=i?e:h;v.parserResult=o.parse(n);v.isGrouped=!!i;v.itemProperty=v.parserResult.itemName;var u=v.parserResult.source,f=function(){var n=u(t);t.$uisSource=Object.keys(n).map(function(t){var i={};return i[v.parserResult.keyName]=t,i.value=n[t],i})};v.parserResult.keyName&&(f(),v.parserResult.source=c("$uisSource"+v.parserResult.filters),t.$watch(u,function(n,t){n!==t&&f()},!0));v.refreshItems=function(n){var i,r;n=n||v.parserResult.source(t);i=v.selected;!v.isEmpty()&&(!angular.isArray(i)||i.length)&&v.multiple&&v.removeSelected?void 0!==n&&null!==n&&(r=n.filter(function(n){return angular.isArray(i)?i.every(function(t){return!angular.equals(n,t)}):!angular.equals(n,i)}),v.setItemsFn(r)):v.setItemsFn(n);"auto"!==v.dropdownPosition&&"up"!==v.dropdownPosition||t.calculateDropdownPos();t.$broadcast("uis:refresh")};t.$watchCollection(v.parserResult.source,function(n){if(void 0===n||null===n)v.items=[];else{if(!angular.isArray(n))throw s("items","Expected an array but got '{0}'.",n);v.refreshItems(n);angular.isDefined(v.ngModel.$modelValue)&&(v.ngModel.$modelValue=null)}})};v.refresh=function(n){void 0!==n&&(g&&u.cancel(g),g=u(function(){if(t.$select.search.length>=t.$select.minimumInputLength){var i=t.$eval(n);i&&angular.isFunction(i.then)&&!v.refreshing&&(v.refreshing=!0,i["finally"](function(){v.refreshing=!1}))}},v.refreshDelay))};v.isActive=function(n){if(!v.open)return!1;var i=v.items.indexOf(n[v.itemProperty]),t=i==v.activeIndex;return!(!t||i<0)&&(t&&!angular.isUndefined(v.onHighlightCallback)&&n.$eval(v.onHighlightCallback),t)};nt=function(n){return v.selected&&angular.isArray(v.selected)&&v.selected.filter(function(t){return angular.equals(t,n)}).length>0};y=[];v.isDisabled=function(n){if(v.open){var i=n[v.itemProperty],r=v.items.indexOf(i),t=!1;if(r>=0&&(angular.isDefined(v.disableChoiceExpression)||v.multiple)){if(i.isTag)return!1;v.multiple&&(t=nt(i));!t&&angular.isDefined(v.disableChoiceExpression)&&(t=!!n.$eval(v.disableChoiceExpression));ft(i,t)}return t}};v.select=function(n,r,u){if(i(n)||!b(n)){if(!v.items&&!v.search&&!v.tagging.isActivated)return;if(!n||!b(n)){if(v.clickTriggeredSelect=!1,u&&("click"===u.type||"touchend"===u.type)&&n&&(v.clickTriggeredSelect=!0),v.tagging.isActivated&&v.clickTriggeredSelect===!1){if(v.taggingLabel===!1)if(v.activeIndex<0){if(void 0===n&&(n=void 0!==v.tagging.fct?v.tagging.fct(v.search):v.search),!n||angular.equals(v.items[0],n))return}else n=v.items[v.activeIndex];else if(0===v.activeIndex){if(void 0===n)return;if(void 0!==v.tagging.fct&&"string"==typeof n){if(n=v.tagging.fct(n),!n)return}else"string"==typeof n&&(n=n.replace(v.taggingLabel,"").trim())}if(nt(n))return void v.close(r)}w();t.$broadcast("uis:select",n);v.closeOnSelect&&v.close(r)}}};v.close=function(n){v.open&&(v.ngModel&&v.ngModel.$setTouched&&v.ngModel.$setTouched(),v.open=!1,w(),t.$broadcast("uis:close",n))};v.setFocus=function(){v.focus||v.focusInput[0].focus()};v.clear=function(n){v.select(null);n.stopPropagation();u(function(){v.focusser[0].focus()},0,!1)};v.toggle=function(n){v.open?(v.close(),n.preventDefault(),n.stopPropagation()):v.activate()};v.isLocked=function(){return!1};t.$watch(function(){return angular.isDefined(v.lockChoiceExpression)&&""!==v.lockChoiceExpression},et);p=null;d=!1;v.sizeSearchInput=function(){var n=v.searchInput[0],f=v.$element[0],i=function(){return f.clientWidth*!!n.offsetParent},r=function(t){if(0===t)return!1;var i=t-n.offsetLeft;return i<50&&(i=t),v.searchInput.css("width",i+"px"),!0};v.searchInput.css("width","10px");u(function(){null!==p||r(i())||(p=t.$watch(function(){d||(d=!0,t.$$postDigest(function(){d=!1;r(i())&&(p(),p=null)}))},angular.noop))})};v.searchInput.on("keydown",function(i){var r=i.which;~[n.ENTER,n.ESC].indexOf(r)&&(i.preventDefault(),i.stopPropagation());t.$apply(function(){var f=!1,t;if((v.items.length>0||v.tagging.isActivated)&&(ot(r)||v.searchEnabled||(i.preventDefault(),i.stopPropagation()),v.taggingTokens.isActivated)){for(t=0;t<v.taggingTokens.tokens.length;t++)v.taggingTokens.tokens[t]===n.MAP[i.keyCode]&&v.search.length>0&&(f=!0);f&&u(function(){v.searchInput.triggerHandler("tagged");var t=v.search.replace(n.MAP[i.keyCode],"").trim();v.tagging.fct&&(t=v.tagging.fct(t));t&&v.select(t,!0)})}});n.isVerticalMovement(r)&&v.items.length>0&&it();r!==n.ENTER&&r!==n.ESC||(i.preventDefault(),i.stopPropagation())});v.searchInput.on("paste",function(t){var i,r,u,f,e;if(i=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),i=v.search+i,i&&i.length>0)if(v.taggingTokens.isActivated){for(r=[],u=0;u<v.taggingTokens.tokens.length;u++)if(f=n.toSeparator(v.taggingTokens.tokens[u])||v.taggingTokens.tokens[u],i.indexOf(f)>-1){r=i.split(f);break}0===r.length&&(r=[i]);e=v.search;angular.forEach(r,function(n){var t=v.tagging.fct?v.tagging.fct(n):n;t&&v.select(t,!0)});v.search=e||k;t.preventDefault();t.stopPropagation()}else v.paste&&(v.paste(i),v.search=k,t.preventDefault(),t.stopPropagation())});v.searchInput.on("tagged",function(){u(function(){w()})});tt=e(function(){v.sizeSearchInput()},50);angular.element(a).bind("resize",tt);t.$on("$destroy",function(){v.searchInput.off("keyup keydown tagged blur paste");angular.element(a).off("resize",tt)});t.$watch("$select.activeIndex",function(n){n&&r.find("input").attr("aria-activedescendant","ui-select-choices-row-"+v.generatedId+"-"+n)});t.$watch("$select.open",function(n){n||r.find("input").removeAttr("aria-activedescendant")})}]);t.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(n,t,i,r,u,f,e){return{restrict:"EA",templateUrl:function(n,i){var r=i.theme||t.theme;return r+(angular.isDefined(i.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(u,o){var s=/{(.*)}\s*{(.*)}/.exec(o.ngClass),h;return s&&(h="{"+s[1]+", "+s[2]+"}",o.ngClass=h,u.attr("ng-class",h)),angular.isDefined(o.multiple)?u.append("<ui-select-multiple/>").removeAttr("multiple"):u.append("<ui-select-single/>"),o.inputId&&(u.querySelectorAll("input.ui-select-search")[0].id=o.inputId),function(u,o,s,h,c){function w(n){var i,t,f,r;l.open&&(i=!1,(i=window.jQuery?window.jQuery.contains(o[0],n.target):o[0].contains(n.target),i||l.clickTriggeredSelect)||(l.skipFocusser?t=!0:(f=["input","button","textarea","select"],r=angular.element(n.target).controller("uiSelect"),t=r&&r!==l,t||(t=~f.indexOf(n.target.tagName.toLowerCase()))),l.close(t),u.$digest()),l.clickTriggeredSelect=!1)}function tt(){var t=r(o);v=angular.element('<div class="ui-select-placeholder"><\/div>');v[0].style.width=t.width+"px";v[0].style.height=t.height+"px";o.after(v);k=o[0].style.width;n.find("body").append(o);o[0].style.position="absolute";o[0].style.left=t.left+"px";o[0].style.top=t.top+"px";o[0].style.width=t.width+"px"}function b(){null!==v&&(v.replaceWith(o),v=null,o[0].style.position="",o[0].style.left="",o[0].style.top="",o[0].style.width=k,l.setFocus())}var l=h[0],it=h[1],p;l.generatedId=t.generateId();l.baseTitle=s.title||"Select box";l.focusserTitle=l.baseTitle+" focus";l.focusserId="focusser-"+l.generatedId;l.closeOnSelect=function(){return angular.isDefined(s.closeOnSelect)?f(s.closeOnSelect)():t.closeOnSelect}();u.$watch("skipFocusser",function(){var n=u.$eval(s.skipFocusser);l.skipFocusser=void 0!==n?n:t.skipFocusser});l.onSelectCallback=f(s.onSelect);l.onRemoveCallback=f(s.onRemove);l.ngModel=it;l.choiceGrouped=function(n){return l.isGrouped&&n&&n.name};s.tabindex&&s.$observe("tabindex",function(n){l.focusInput.attr("tabindex",n);o.removeAttr("tabindex")});u.$watch(function(){return u.$eval(s.searchEnabled)},function(n){l.searchEnabled=void 0!==n?n:t.searchEnabled});u.$watch("sortable",function(){var n=u.$eval(s.sortable);l.sortable=void 0!==n?n:t.sortable});s.$observe("backspaceReset",function(){var n=u.$eval(s.backspaceReset);l.backspaceReset=void 0===n||n});s.$observe("limit",function(){l.limit=angular.isDefined(s.limit)?parseInt(s.limit,10):void 0});u.$watch("removeSelected",function(){var n=u.$eval(s.removeSelected);l.removeSelected=void 0!==n?n:t.removeSelected});s.$observe("disabled",function(){l.disabled=void 0!==s.disabled&&s.disabled});s.$observe("resetSearchInput",function(){var n=u.$eval(s.resetSearchInput);l.resetSearchInput=void 0===n||n});s.$observe("paste",function(){l.paste=u.$eval(s.paste)});s.$observe("tagging",function(){if(void 0!==s.tagging){var n=u.$eval(s.tagging);l.tagging={isActivated:!0,fct:n!==!0?n:void 0}}else l.tagging={isActivated:!1,fct:void 0}});s.$observe("taggingLabel",function(){void 0!==s.tagging&&(l.taggingLabel="false"===s.taggingLabel?!1:void 0!==s.taggingLabel?s.taggingLabel:"(new)")});s.$observe("taggingTokens",function(){if(void 0!==s.tagging){var n=void 0!==s.taggingTokens?s.taggingTokens.split("|"):[",","ENTER"];l.taggingTokens={isActivated:!0,tokens:n}}});s.$observe("spinnerEnabled",function(){var n=u.$eval(s.spinnerEnabled);l.spinnerEnabled=void 0!==n?n:t.spinnerEnabled});s.$observe("spinnerClass",function(){var n=s.spinnerClass;l.spinnerClass=void 0!==n?s.spinnerClass:t.spinnerClass});angular.isDefined(s.autofocus)&&e(function(){l.setFocus()});angular.isDefined(s.focusOn)&&u.$on(s.focusOn,function(){e(function(){l.setFocus()})});n.on("click",w);u.$on("$destroy",function(){n.off("click",w)});c(u,function(n){var f=angular.element("<div>").append(n),r=f.querySelectorAll(".ui-select-match"),t,u;if(r.removeAttr("ui-select-match"),r.removeAttr("data-ui-select-match"),1!==r.length)throw i("transcluded","Expected 1 .ui-select-match but got '{0}'.",r.length);if(o.querySelectorAll(".ui-select-match").replaceWith(r),t=f.querySelectorAll(".ui-select-choices"),t.removeAttr("ui-select-choices"),t.removeAttr("data-ui-select-choices"),1!==t.length)throw i("transcluded","Expected 1 .ui-select-choices but got '{0}'.",t.length);o.querySelectorAll(".ui-select-choices").replaceWith(t);u=f.querySelectorAll(".ui-select-no-choice");u.removeAttr("ui-select-no-choice");u.removeAttr("data-ui-select-no-choice");1==u.length&&o.querySelectorAll(".ui-select-no-choice").replaceWith(u)});p=u.$eval(s.appendToBody);(void 0!==p?p:t.appendToBody)&&(u.$watch("$select.open",function(n){n?tt():b()}),u.$on("$destroy",function(){b()}));var v=null,k="",a=null,y="direction-up";u.$watch("$select.open",function(){"auto"!==l.dropdownPosition&&"up"!==l.dropdownPosition||u.calculateDropdownPos()});var d=function(n,t){n=n||r(o);t=t||r(a);a[0].style.position="absolute";a[0].style.top=t.height*-1+"px";o.addClass(y)},rt=function(n,t){o.removeClass(y);n=n||r(o);t=t||r(a);a[0].style.position="";a[0].style.top=""},g=function(){e(function(){if("up"===l.dropdownPosition)d();else{o.removeClass(y);var t=r(o),i=r(a),u=n[0].documentElement.scrollTop||n[0].body.scrollTop;t.top+t.height+i.height>u+n[0].documentElement.clientHeight?d(t,i):rt(t,i)}a[0].style.opacity=1})},nt=!1;u.calculateDropdownPos=function(){if(l.open){if(a=angular.element(o).querySelectorAll(".ui-select-dropdown"),0===a.length)return;if(""!==l.search||nt||(a[0].style.opacity=0,nt=!0),!r(a).height&&l.$animate&&l.$animate.on&&l.$animate.enabled(a)){var n=!0;l.$animate.on("enter",a,function(t,i){"close"===i&&n&&(g(),n=!1)})}else g()}else{if(null===a||0===a.length)return;a[0].style.opacity=0;a[0].style.position="";a[0].style.top="";o.removeClass(y)}}}}}}]);t.directive("uiSelectMatch",["uiSelectConfig",function(n){function t(n,t){return n[0].hasAttribute(t)?n.attr(t):n[0].hasAttribute("data-"+t)?n.attr("data-"+t):n[0].hasAttribute("x-"+t)?n.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(i){i.addClass("ui-select-match");var r=i.parent(),u=t(r,"theme")||n.theme,f=angular.isDefined(t(r,"multiple"));return u+(f?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,i,r,u){function f(n){u.allowClear=!!angular.isDefined(n)&&(""===n||"true"===n.toLowerCase())}u.lockChoiceExpression=r.uiLockChoice;r.$observe("placeholder",function(t){u.placeholder=void 0!==t?t:n.placeholder});r.$observe("allowClear",f);f(r.allowClear);u.multiple&&u.sizeSearchInput()}}}]);t.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(n,t){var u,r=this,i=n.$select;angular.isUndefined(i.selected)&&(i.selected=[]);n.$evalAsync(function(){u=n.ngModel});r.activeMatchIndex=-1;r.updateModel=function(){u.$setViewValue(Date.now());r.refreshComponent()};r.refreshComponent=function(){i.refreshItems&&i.refreshItems();i.sizeSearchInput&&i.sizeSearchInput()};r.removeChoice=function(u){if(i.isLocked(null,u))return!1;var f=i.selected[u],e={};return e[i.parserResult.itemName]=f,i.selected.splice(u,1),r.activeMatchIndex=-1,i.sizeSearchInput(),t(function(){i.onRemoveCallback(n,{$item:f,$model:i.parserResult.modelMapper(n,e)})}),r.updateModel(),!0};r.getPlaceholder=function(){if(!i.selected||!i.selected.length)return i.placeholder}}],controllerAs:"$selectMultiple",link:function(u,f,e,o){function v(n){return angular.isNumber(n.selectionStart)?n.selectionStart:n.value.length}function y(t){function e(){switch(t){case n.LEFT:return~h.activeMatchIndex?f:r;case n.RIGHT:return~h.activeMatchIndex&&i!==r?l:(s.activate(),!1);case n.BACKSPACE:return~h.activeMatchIndex?h.removeChoice(i)?f:i:r;case n.DELETE:return!!~h.activeMatchIndex&&(h.removeChoice(h.activeMatchIndex),i)}}var o=v(s.searchInput[0]),c=s.selected.length,r=c-1,i=h.activeMatchIndex,l=h.activeMatchIndex+1,f=h.activeMatchIndex-1,u=i;return!(o>0||s.search.length&&t==n.RIGHT)&&(s.close(),u=e(),h.activeMatchIndex=s.selected.length&&u!==!1?Math.min(r,Math.max(0,u)):-1,!0)}function l(n){return void 0===n||void 0===s.search?!1:n.filter(function(n){return void 0!==s.search.toUpperCase()&&void 0!==n&&n.toUpperCase()===s.search.toUpperCase()}).length>0}function a(n,t){var f=-1,r,i,u;if(angular.isArray(n))for(r=angular.copy(n),i=0;i<r.length;i++)void 0===s.tagging.fct?r[i]+" "+s.taggingLabel===t&&(f=i):(u=r[i],angular.isObject(u)&&(u.isTag=!0),angular.equals(u,t)&&(f=i));return f}var s=o[0],c=u.ngModel=o[1],h=u.$selectMultiple;s.multiple=!0;s.focusInput=s.searchInput;c.$isEmpty=function(n){return!n||0===n.length};c.$parsers.unshift(function(){for(var i,n={},r=[],t=s.selected.length-1;t>=0;t--)n={},n[s.parserResult.itemName]=s.selected[t],i=s.parserResult.modelMapper(u,n),r.unshift(i);return r});c.$formatters.unshift(function(n){var r,e=s.parserResult&&s.parserResult.source(u,{$select:{search:""}}),o={},i,f,t;if(!e)return n;if(i=[],f=function(n,t){var f,h,e;if(n&&n.length){for(f=n.length-1;f>=0;f--)if((o[s.parserResult.itemName]=n[f],r=s.parserResult.modelMapper(u,o),s.parserResult.trackByExp)&&(h=/(\w*)\./.exec(s.parserResult.trackByExp),e=/\.([^\s]+)/.exec(s.parserResult.trackByExp),h&&h.length>0&&h[1]==s.parserResult.itemName&&e&&e.length>0&&r[e[1]]==t[e[1]])||angular.equals(r,t))return i.unshift(n[f]),!0;return!1}},!n)return i;for(t=n.length-1;t>=0;t--)f(s.selected,n[t])||f(e,n[t])||i.unshift(n[t]);return i});u.$watchCollection(function(){return c.$modelValue},function(n,t){t!=n&&(angular.isDefined(c.$modelValue)&&(c.$modelValue=null),h.refreshComponent())});c.$render=function(){if(!angular.isArray(c.$viewValue)){if(!i(c.$viewValue))throw t("multiarr","Expected model value to be array but got '{0}'",c.$viewValue);c.$viewValue=[]}s.selected=c.$viewValue;h.refreshComponent();u.$evalAsync()};u.$on("uis:select",function(n,t){if(!(s.selected.length>=s.limit)){s.selected.push(t);var i={};i[s.parserResult.itemName]=t;r(function(){s.onSelectCallback(u,{$item:t,$model:s.parserResult.modelMapper(u,i)})});h.updateModel()}});u.$on("uis:activate",function(){h.activeMatchIndex=-1});u.$watch("$select.disabled",function(n,t){t&&!n&&s.sizeSearchInput()});s.searchInput.on("keydown",function(t){var i=t.which;u.$apply(function(){var r=!1;n.isHorizontalMovement(i)&&(r=y(i));r&&i!=n.TAB&&(t.preventDefault(),t.stopPropagation())})});s.searchInput.on("keyup",function(t){if(n.isVerticalMovement(t.which)||u.$evalAsync(function(){s.activeIndex=s.taggingLabel===!1?-1:0}),s.tagging.isActivated&&s.search.length>0){if(t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||n.isVerticalMovement(t.which))return;if(s.activeIndex=s.taggingLabel===!1?-1:0,s.taggingLabel===!1)return;var r,v,e,h,i=angular.copy(s.items),f=angular.copy(s.items),o=!1,c=-1;if(void 0!==s.tagging.fct){if(e=s.$filter("filter")(i,{isTag:!0}),e.length>0&&(h=e[0]),i.length>0&&h&&(o=!0,i=i.slice(1,i.length),f=f.slice(1,f.length)),r=s.tagging.fct(s.search),f.some(function(n){return angular.equals(n,r)})||s.selected.some(function(n){return angular.equals(n,r)}))return void u.$evalAsync(function(){s.activeIndex=0;s.items=i});r&&(r.isTag=!0)}else{if(e=s.$filter("filter")(i,function(n){return n.match(s.taggingLabel)}),e.length>0&&(h=e[0]),v=i[0],void 0!==v&&i.length>0&&h&&(o=!0,i=i.slice(1,i.length),f=f.slice(1,f.length)),r=s.search+" "+s.taggingLabel,a(s.selected,s.search)>-1)return;if(l(f.concat(s.selected)))return void(o&&(i=f,u.$evalAsync(function(){s.activeIndex=0;s.items=i})));if(l(f))return void(o&&(s.items=f.slice(1,f.length)))}o&&(c=a(s.selected,r));c>-1?i=i.slice(c+1,i.length-1):(i=[],r&&i.push(r),i=i.concat(f));u.$evalAsync(function(){if(s.activeIndex=0,s.items=i,s.isGrouped){var n=r?i.slice(1):i;s.setItemsFn(n);r&&(s.items.unshift(r),s.groups.unshift({name:"",items:[r],tagging:!0}))}})}});s.searchInput.on("blur",function(){r(function(){h.activeMatchIndex=-1})})}}}]);t.directive("uiSelectNoChoice",["uiSelectConfig",function(n){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-no-choice");var i=t.parent().attr("theme")||n.theme;return i+"/no-choice.tpl.html"}}}]);t.directive("uiSelectSingle",["$timeout","$compile",function(t,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(u,f,e,o){var s=o[0],c=o[1],h;c.$parsers.unshift(function(n){if(i(n))return n;var r,t={};return t[s.parserResult.itemName]=n,r=s.parserResult.modelMapper(u,t)});c.$formatters.unshift(function(n){var o,t,f,e,r;if(i(n))return n;if(t=s.parserResult&&s.parserResult.source(u,{$select:{search:""}}),f={},t){if(e=function(t){return f[s.parserResult.itemName]=t,o=s.parserResult.modelMapper(u,f),o===n},s.selected&&e(s.selected))return s.selected;for(r=t.length-1;r>=0;r--)if(e(t[r]))return t[r]}return n});u.$watch("$select.selected",function(n){c.$viewValue!==n&&c.$setViewValue(n)});c.$render=function(){s.selected=c.$viewValue};u.$on("uis:select",function(n,r){s.selected=r;var f={};f[s.parserResult.itemName]=r;t(function(){s.onSelectCallback(u,{$item:r,$model:i(r)?r:s.parserResult.modelMapper(u,f)})})});u.$on("uis:close",function(n,i){t(function(){s.focusser.prop("disabled",!1);i||s.focusser[0].focus()},0,!1)});u.$on("uis:activate",function(){h.prop("disabled",!0)});h=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");r(h)(u);s.focusser=h;s.focusInput=h;f.parent().append(h);h.bind("focus",function(){u.$evalAsync(function(){s.focus=!0})});h.bind("blur",function(){u.$evalAsync(function(){s.focus=!1})});h.bind("keydown",function(t){return t.which===n.BACKSPACE&&s.backspaceReset!==!1?(t.preventDefault(),t.stopPropagation(),s.select(void 0),void u.$apply()):void(t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||(t.which!=n.DOWN&&t.which!=n.UP&&t.which!=n.ENTER&&t.which!=n.SPACE||(t.preventDefault(),t.stopPropagation(),s.activate()),u.$digest()))});h.bind("keyup input",function(t){t.which===n.TAB||n.isControl(t)||n.isFunctionKey(t)||t.which===n.ESC||t.which==n.ENTER||t.which===n.BACKSPACE||(s.activate(h.val()),h.val(""),u.$digest())})}}}]);t.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(n,t,i){return{require:["^^uiSelect","^ngModel"],link:function(t,r,u,f){if(null===t[u.uiSelectSort])throw i("sort","Expected a list to sort");var a=f[0],w=f[1],b=angular.extend({axis:"horizontal"},t.$eval(u.uiSelectSortOptions)),v=b.axis,h="dragging",c="dropping",o="dropping-before",s="dropping-after";t.$watch(function(){return a.sortable},function(n){n?r.attr("draggable",!0):r.removeAttr("draggable")});r.on("dragstart",function(n){r.addClass(h);(n.dataTransfer||n.originalEvent.dataTransfer).setData("text",t.$index.toString())});r.on("dragend",function(){e(h)});var y,k=function(n,t){this.splice(t,0,this.splice(n,1)[0])},e=function(n){angular.forEach(a.$element.querySelectorAll("."+n),function(t){angular.element(t).removeClass(n)})},p=function(n){n.preventDefault();var t="vertical"===v?n.offsetY||n.layerY||(n.originalEvent?n.originalEvent.offsetY:0):n.offsetX||n.layerX||(n.originalEvent?n.originalEvent.offsetX:0);t<this["vertical"===v?"offsetHeight":"offsetWidth"]/2?(e(s),r.addClass(o)):(e(o),r.addClass(s))},l=function(t){t.preventDefault();var i=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);n.cancel(y);y=n(function(){d(i)},20)},d=function(n){var i=t.$eval(u.uiSelectSort),h=i[n],f=null;f=r.hasClass(o)?n<t.$index?t.$index-1:t.$index:n<t.$index?t.$index:t.$index+1;k.apply(i,[n,f]);w.$setViewValue(Date.now());t.$apply(function(){t.$emit("uiSelectSort:change",{array:i,item:h,from:n,to:f})});e(c);e(o);e(s);r.off("drop",l)};r.on("dragenter",function(){r.hasClass(h)||(r.addClass(c),r.on("dragover",p),r.on("drop",l))});r.on("dragleave",function(n){n.target==r&&(e(c),e(o),e(s),r.off("dragover",p),r.off("drop",l))})}}}]);t.factory("$$uisDebounce",["$timeout",function(n){return function(t,i){var r;return function(){var u=this,f=Array.prototype.slice.call(arguments);r&&n.cancel(r);r=n(function(){t.apply(u,f)},i)}}}]);t.directive("uisOpenClose",["$parse","$timeout",function(n,t){return{restrict:"A",require:"uiSelect",link:function(i,r,u,f){f.onOpenCloseCallback=n(u.uisOpenClose);i.$watch("$select.open",function(n,r){n!==r&&t(function(){f.onOpenCloseCallback(i,{isOpen:n})})})}}}]);t.service("uisRepeatParser",["uiSelectMinErr","$parse",function(n,t){var i=this;i.parse=function(i){var r,u,f,e;if(r=i.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),!r)throw n("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",i);return u=r[5],f="",r[3]&&(u=r[5].replace(/(^\()|(\)$)/g,""),e=r[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/),e&&e[1].trim()&&(f=e[1],u=u.replace(f,""))),{itemName:r[4]||r[2],keyName:r[3],source:t(u),filters:f,trackByExp:r[6],modelMapper:t(r[1]||r[4]||r[2]),repeatExpression:function(n){var t=this.itemName+" in "+(n?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}};i.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}();angular.module("ui.select").run(["$templateCache",function(n){n.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"><\/div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"><\/div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"><\/span><\/div><\/li><\/ul>');n.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;<\/span> <span uis-transclude-append=""><\/span><\/span><\/span><\/span>');n.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""><\/span> <i class="caret pull-right" ng-click="$select.toggle($event)"><\/i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"><\/i><\/a><\/span><\/div>');n.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""><\/li><\/ul>');n.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"><\/div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>');n.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"><\/div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"><\/span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>');n.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"><\/div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"><\/div><\/li><\/ul><\/li><\/ul>');n.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""><\/span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"><\/a><\/li><\/span>');n.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""><\/span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"><\/abbr> <span class="select2-arrow ui-select-toggle"><b><\/b><\/span><\/a>');n.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""><\/div><\/div><\/div>');n.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"><\/span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"><\/li><\/ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"><\/div><\/div><\/div>');n.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"><\/div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div><\/div>');n.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"><\/div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""><\/div><\/div><\/div><\/div><\/div>');n.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""><\/span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&times;<\/span><\/span><\/div>');n.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}<\/span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""><\/span><\/div>');n.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""><\/div><\/div><\/div>');n.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"><\/div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>');n.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"><\/div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"><\/div><div class="ui-select-choices"><\/div><div class="ui-select-no-choice"><\/div><\/div>')}]);!function(n,t){var i;n&&(i=function(){t(n.lazySizes);n.removeEventListener("lazyunveilread",i,!0)},t=t.bind(null,n,n.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):n.lazySizes?i():n.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(n,t,i){"use strict";function w(n,t,i,r,u,f,e,s){o.push({c:t,u:i,w:+("w"==s?e:r)})}function b(n,t){return n.w-t.w}function h(n,t){var r={srcset:n.getAttribute(i.cfg.srcsetAttr)||""},u=e(r.srcset);return Object.defineProperty(n,t,{value:r,writable:!0}),r.cands=u,r.index=0,r.dirty=!1,u[0]&&u[0].w?(u.sort(b),r.cSrcset=[u[r.index].c]):(r.cSrcset=r.srcset?[r.srcset]:[],r.cands=[]),r}function c(n,t,i,r,u){var e,f=n[u];f&&(e=f.index,y[u](f,t,i),f.dirty&&e==f.index||(f.cSrcset.join(", "),n.setAttribute(r,f.cSrcset.join(", ")),f.dirty=!0))}var r,l,f,e,o,a,v,y,p,s,u;n.addEventListener&&(l=/^picture$/i,f=t.documentElement,a=/(([^,\s].[^\s]+)\s+(\d+)(w|h)(\s+(\d+)(w|h))?)/g,e=function(n){return o=[],n.replace(a,w),o},v=function(n,t){var u,i,f,r;if(!n[t]&&(r=n.parentNode||{},n[t]=h(n,t),n[t].isImg=!0,l.test(r.nodeName||"")))for(n[t].picture=!0,i=0,f=(u=r.getElementsByTagName("source")).length;i<f;i++)h(u[i],t).isImg=!1;return n[t]},y={_lazyOptimumx:function(n,t,i){for(var e,r,h,o,u,s,f=0;f<n.cands.length;f++)if((e=n.cands[f]).d=(e.w||1)/t,!(n.index>=f)){if(!(e.d<=i)&&(r=n.cands[f-1],h=e.d,o=i,s=u=void 0,r&&r.d&&(s=.7<o?.6:.4,r.d>=o||((u=Math.pow(r.d-s,1.6)||.1)<.1?u=.1:3<u&&(u=3),!(r.d+(h-o)*u<o)))))break;n.cSrcset.push(e.c);n.index=f}}},p=function(n,t,i,r,u){var e,o,s,f,h=n[u];if(h.width=t,h.picture&&(o=n.parentNode))for(f=0,s=(e=o.getElementsByTagName("source")).length;f<s;f++)c(e[f],t,i,r,u);c(n,t,i,r,u)},s=function(n){var t=n.getAttribute("data-optimumx")||n.getAttribute("data-maxdpr");return!t&&r.constrainPixelDensity&&(t="auto"),t=t&&("auto"==t?r.getOptimumX(n):parseFloat(t,10))},u=function(){i&&!i.getOptimumX&&(i.getX=s,i.pWS=e,f.removeEventListener("lazybeforeunveil",u))},f.addEventListener("lazybeforeunveil",u),setTimeout(u),"function"!=typeof(r=i&&i.cfg).getOptimumX&&(r.getOptimumX=function(){var t=n.devicePixelRatio||1;return 2.6<t?t*=.6:1.9<t?t*=.8:t-=.01,Math.min(Math.round(100*t)/100,2)}),n.devicePixelRatio&&addEventListener("lazybeforesizes",function(n){var u,h,f,c,t,e,o;n.detail.instance==i&&(t=n.target,o=(e=n.detail).dataAttr,n.defaultPrevented||!(u=s(t))||u>=devicePixelRatio||(!o||!t._lazyOptimumx||e.reloaded||r.unloadedClass&&i.hC(t,r.unloadedClass)||(t._lazyOptimumx=null),h=v(t,"_lazyOptimumx"),(f=e.width)&&(h.width||0)<f&&(c=o?i.cfg.srcsetAttr:"srcset",i.rAF(function(){p(t,f,u,c,"_lazyOptimumx")}))))}))});!function(n,t){var i;n&&(i=function(){t(n.lazySizes);n.removeEventListener("lazyunveilread",i,!0)},t=t.bind(null,n,n.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):n.lazySizes?i():n.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(n,t,i){"use strict";var e,o,s,u,f,r;n.addEventListener&&(e=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,o=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,s=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,u=/^picture$/i,f=i.cfg,r={getParent:function(t,i){var f=t,r=t.parentNode;return i&&"prev"!=i||!r||!u.test(r.nodeName||"")||(r=r.parentNode),"self"!=i&&(f="prev"==i?t.previousElementSibling:i&&(r.closest||n.jQuery)&&(r.closest?r.closest(i):jQuery(r).closest(i)[0])||r),f},getFit:function(n){var i,f,e=getComputedStyle(n,null)||{},u=e.content||e.fontFamily,t={fit:n._lazysizesParentFit||n.getAttribute("data-parent-fit")};return!t.fit&&u&&(i=u.match(o))&&(t.fit=i[1]),t.fit?(!(f=n._lazysizesParentContainer||n.getAttribute("data-parent-container"))&&u&&(i=u.match(s))&&(f=i[1]),t.parent=r.getParent(n,f)):t.fit=e.objectFit,t},getImageRatio:function(t){for(var s,i,h,r,o,a,c=t.parentNode,v=c&&u.test(c.nodeName||"")?c.querySelectorAll("source, img"):[t],l=0;l<v.length;l++)if(s=(t=v[l]).getAttribute(f.srcsetAttr)||t.getAttribute("srcset")||t.getAttribute("data-pfsrcset")||t.getAttribute("data-risrcset")||"",i=t._lsMedia||t.getAttribute("media"),i=f.customMedia[t.getAttribute("data-media")||i]||i,s&&(!i||(n.matchMedia&&matchMedia(i)||{}).matches)){(h=parseFloat(t.getAttribute("data-aspectratio")))||(a=(r=s.match(e))?"w"==r[2]?(o=r[1],r[3]):(o=r[3],r[1]):(o=t.getAttribute("width"),t.getAttribute("height")),h=o/a);break}return h},calculateSize:function(n,t){var r,u,f,o=this.getFit(n),i=o.fit,e=o.parent;return"width"==i||("contain"==i||"cover"==i)&&(u=this.getImageRatio(n))?(e?t=e.clientWidth:e=n,f=t,"width"==i?f=t:(r=t/e.clientHeight)&&("cover"==i&&r<u||"contain"==i&&u<r)&&(f=t*(u/r)),f):t}},i.parentFit=r,t.addEventListener("lazybeforesizes",function(n){var t;n.defaultPrevented||n.detail.instance!=i||(t=n.target,n.detail.width=r.calculateSize(t,n.detail.width))}))});!function(n,t){var i=function(){t(n.lazySizes);n.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,n,n.document);"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):n.lazySizes?i():n.addEventListener("lazyunveilread",i,!0)}(window,function(n,t,i){"use strict";function s(t,i,u){var h,f,e,o,s,c=n.getComputedStyle(t);if(u){for(o in s={},u)s[o]=u[o];u=s}else f=t.parentNode,u={isPicture:!(!f||!tt.test(f.nodeName||""))};for(h in e=function(n,i){var e,f=t.getAttribute("data-"+n);if(f||(e=c.getPropertyValue("--ls-"+n))&&(f=e.trim()),f){if("true"==f)f=!0;else if("false"==f)f=!1;else if(nt.test(f))f=parseFloat(f);else if("function"==typeof r[n])f=r[n](t,f);else if(rt.test(f))try{f=JSON.parse(f)}catch(n){}u[n]=f}else n in r&&"function"!=typeof r[n]&&!u[n]?u[n]=r[n]:i&&"function"==typeof r[n]&&(u[n]=r[n](t,f))},r)e(h);return i.replace(a,function(n,t){t in u||e(t,!0)}),u}function h(n,i,e){var h,s,p,c=0,l=0,y=e;if(n){if("container"===i.ratio){for(c=y.scrollWidth,l=y.scrollHeight;!(c&&l||y===t);)c=(y=y.parentNode).scrollWidth,l=y.scrollHeight;c&&l&&(i.ratio=i.traditionalRatio?l/c:c/l)}h=n;s=i;(p=[]).srcset=[];s.absUrl&&(v.setAttribute("href",h),h=v.href);h=((s.prefix||"")+h+(s.postfix||"")).replace(a,function(n,t){return g[typeof s[t]]?s[t]:n});s.widths.forEach(function(n){var u=s.widthmap[n]||n,t=s.aspectratio||s.ratio,e=!s.aspectratio&&r.traditionalRatio,i={u:h.replace(f,u).replace(it,t?e?Math.round(n*t):Math.round(n/t):""),w:n};p.push(i);p.srcset.push(i.c=i.u+" "+n+"w")});(n=p).isPicture=i.isPicture;o&&"IMG"==e.nodeName.toUpperCase()?e.removeAttribute(u.srcsetAttr):e.setAttribute(u.srcsetAttr,n.srcset.join(", "));Object.defineProperty(e,"_lazyrias",{value:n,writable:!0})}}function c(n){return n.getAttribute(n.getAttribute("data-srcattr")||r.srcAttr)||n.getAttribute(u.srcsetAttr)||n.getAttribute(u.srcAttr)||n.getAttribute("data-pfsrcset")||""}function b(n,t){return n.w-t.w}function l(n,t){var r;return!n._lazyrias&&i.pWS&&(r=i.pWS(n.getAttribute(u.srcsetAttr||""))).length&&(Object.defineProperty(n,"_lazyrias",{value:r,writable:!0}),t&&n.parentNode&&(r.isPicture="PICTURE"==n.parentNode.nodeName.toUpperCase())),n._lazyrias}function k(t,r){var e,u,s,h,c,a,o,v,f=t._lazyrias;if(f.isPicture&&n.matchMedia)for(u=0,s=(e=t.parentNode.getElementsByTagName("source")).length;u<s;u++)if(l(e[u])&&!e[u].getAttribute("type")&&(!(h=e[u].getAttribute("media"))||(matchMedia(h)||{}).matches)){f=e[u]._lazyrias;break}return(!f.w||f.w<r)&&(f.w=r,f.d=(a=t,o=n.devicePixelRatio||1,v=i.getX&&i.getX(a),Math.min(v||o,2.4,o)),c=function(n){for(var t,u,f=n.length,i=n[f-1],r=0;r<f;r++)if((i=n[r]).d=i.w/n.w,i.d>=n.d){!i.cached&&(t=n[r-1])&&t.d>n.d-.13*Math.pow(n.d,2.2)&&(u=Math.pow(t.d-.6,1.6),t.cached&&(t.d+=.15*u),t.d+(i.d-n.d)*u>n.d&&(i=t));break}return i}(f.sort(b))),c}var u,r,d=i.cfg,g={string:1,number:1},nt=/^\-*\+*\d+\.*\d*$/,tt=/^picture$/i,f=/\s*\{\s*width\s*\}\s*/i,it=/\s*\{\s*height\s*\}\s*/i,a=/\s*\{\s*([a-z0-9]+)\s*\}\s*/gi,rt=/^\[.*\]|\{.*\}$/,ut=/^(?:auto|\d+(px)?)$/,v=t.createElement("a"),y=t.createElement("img"),o="srcset"in y&&!("sizes"in y),p=!!n.HTMLPictureElement&&!o,e,w;!function(){var n,t={prefix:"",postfix:"",srcAttr:"data-src",absUrl:!1,modifyOptions:function(){},widthmap:{},ratio:!1,traditionalRatio:!1,aspectratio:!1};for(n in(u=i&&i.cfg).supportsType||(u.supportsType=function(n){return!n}),u.rias||(u.rias={}),"widths"in(r=u.rias)||(r.widths=[],function(n){for(var t,i=0;!t||t<3e3;)30<(i+=5)&&(i+=1),t=36*i,n.push(t)}(r.widths)),t)n in r||(r[n]=t[n])}();addEventListener("lazybeforesizes",function(n){var e,tt,a,o,it,d,v,rt,g,y,nt,t,b,l,k;if(n.detail.instance==i&&(t=n.target,n.detail.dataAttr&&!n.defaultPrevented&&!r.disabled&&(v=t.getAttribute(u.sizesAttr)||t.getAttribute("sizes"))&&ut.test(v))){if(k=c(t),l=s(b=t,k),r.modifyOptions.call(b,{target:b,details:l,detail:l}),i.fire(b,"lazyriasmodifyoptions",l),e=l,g=f.test(e.prefix)||f.test(e.postfix),e.isPicture&&(tt=t.parentNode))for(o=0,it=(a=tt.getElementsByTagName("source")).length;o<it;o++)(g||f.test(d=c(a[o])))&&(h(d,s(a[o],d,e),a[o]),y=!0);g||f.test(k)?(h(k,e,t),y=!0):y&&((nt=[]).srcset=[],nt.isPicture=!0,Object.defineProperty(t,"_lazyrias",{value:nt,writable:!0}));y&&(p?t.removeAttribute(u.srcAttr):"auto"!=v&&(rt={width:parseInt(v,10)},w({target:t,detail:rt})))}},!0);w=(e=function(r){var s,f;r.detail.instance==i&&(f=r.target,o||!(n.respimage||n.picturefill||d.pf)?("_lazyrias"in f||r.detail.dataAttr&&l(f,!0))&&(s=k(f,r.detail.width))&&s.u&&f._lazyrias.cur!=s.u&&(f._lazyrias.cur=s.u,s.cached=!0,i.rAF(function(){f.setAttribute(u.srcAttr,s.u);f.setAttribute("src",s.u)})):t.removeEventListener("lazybeforesizes",e))},p?e=function(){}:addEventListener("lazybeforesizes",e),e)});!function(n){function d(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function e(n,t,i){n.addEventListener(t,i,!1)}function pt(n,t,i){n.removeEventListener(t,i,!1)}function wt(n){return s+"["+(i="Host page: "+(t=n),window.top!==window.self&&(i=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),i)+"]";var t,i}function g(n){return t[n]?t[n].log:vt}function i(n,t){c("log",n,t,g(n))}function nt(n,t){c("info",n,t,g(n))}function u(n,t){c("warn",n,t,!0)}function c(n,t,i,r){!0===r&&"object"==typeof console&&console[n](wt(t),i)}function bt(n){function d(){g("Height");g("Width");ot(function(){et(h);rt(o);y("onResized",h)},h,"init")}function g(n){var f=Number(t[o]["max"+n]),e=Number(t[o]["min"+n]),r=n.toLowerCase(),u=Number(h[r]);i(o,"Checking "+r+" is in range "+e+"-"+f);u<e&&(u=e,i(o,"Set "+r+" to min value"));f<u&&(u=f,i(o,"Set "+r+" to max value"));h[r]=""+u}function tt(n){return c.substr(c.indexOf(":")+dt+n)}function ht(n,t){var r,u,i;r=function(){var r,i;f("Send Page Info","pageInfo:"+(r=document.body.getBoundingClientRect(),i=h.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-r.top,10),offsetLeft:parseInt(i.left-r.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),n,t)};u=32;k[i=t]||(k[i]=setTimeout(function(){k[i]=null;r()},u))}function ct(n){var t=n.getBoundingClientRect();return it(o),{x:Math.floor(Number(t.left)+Number(r.x)),y:Math.floor(Number(t.top)+Number(r.y))}}function lt(n){var t=n?ct(h.iframe):{x:0,y:0},f={x:Number(h.width)+t.x,y:Number(h.height)+t.y};i(o,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")");window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(n?"Offset":"")](f.x,f.y):u(o,"Unable to scroll to requested position, window.parentIFrame not found"):(r=f,at(),i(o,"--"))}function at(){!1!==y("onScroll",r)?rt(o):ut()}function y(n,t){return l(o,n,t)}var p,vt,b,yt,v,c=n.data,h={},o=null;"[iFrameResizerChild]Ready"===c?function(){for(var n in t)f("iFrame requested init",st(n),document.getElementById(n),n)}():s===(""+c).substr(0,w)&&c.substr(w).split(":")[0]in t?(v=c.substr(w).split(":"),h={iframe:t[v[0]]&&t[v[0]].iframe,id:v[0],height:v[1],width:v[2],type:v[3]},o=h.id,t[o]&&(t[o].loaded=!0),(yt=h.type in{"true":1,"false":1,undefined:1})&&i(o,"Ignoring init message from meta parent page"),!yt&&(b=!0,t[vt=o]||(b=!1,u(h.type+" No settings for "+vt+". Message was: "+c)),b)&&(i(o,"Received: "+c),p=!0,null===h.iframe&&(u(o,"IFrame ("+h.id+") not found"),p=!1),p&&function(){var f,u=n.origin,r=t[o]&&t[o].checkOrigin;if(r&&""+u!="null"&&!(r.constructor===Array?function(){var n=0,t=!1;for(i(o,"Checking connection is from allowed list of origins: "+r);n<r.length;n++)if(r[n]===u){t=!0;break}return t}():(f=t[o]&&t[o].remoteHost,i(o,"Checking connection is from: "+f),u===f)))throw new Error("Unexpected message received from: "+u+" for "+h.iframe.id+". Message was: "+n.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(t[o]&&t[o].firstRun&&t[o]&&(t[o].firstRun=!1),h.type){case"close":t[o].closeRequeston?l(o,"onCloseRequest",t[o].iframe):a(h.iframe);break;case"message":s=tt(6);i(o,"onMessage passed: {iframe: "+h.iframe.id+", message: "+s+"}");y("onMessage",{iframe:h.iframe,message:JSON.parse(s)});i(o,"--");break;case"scrollTo":lt(!1);break;case"scrollToOffset":lt(!0);break;case"pageInfo":ht(t[o]&&t[o].iframe,o),function(){function r(r,f){function e(){t[n]?ht(t[n].iframe,n):u()}["scroll","resize"].forEach(function(t){i(n,r+t+" listener for sendPageInfo");f(window,t,e)})}function u(){r("Remove ",pt)}var n=o;r("Add ",e);t[n]&&(t[n].stopPageInfo=u)}();break;case"pageInfoStop":t[o]&&t[o].stopPageInfo&&(t[o].stopPageInfo(),delete t[o].stopPageInfo);break;case"inPageLink":c=tt(9);n=c.split("#")[1]||"";f=decodeURIComponent(n);(v=document.getElementById(f)||document.getElementsByName(f)[0])?(u=ct(v),i(o,"Moving to in page link (#"+n+") at x: "+u.x+" y: "+u.y),r={x:u.x,y:u.y},at(),i(o,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):i(o,"In page link #"+n+" not found and window.parentIFrame not found"):i(o,"In page link #"+n+" not found");break;case"reset":ft(h);break;case"init":d();y("onInit",h.iframe);break;default:d()}var c,u,n,f,v,s}())):nt(o,"Ignored: "+c)}function l(n,i,r){var u=null,f=null;if(t[n]){if("function"!=typeof(u=t[n][i]))throw new TypeError(i+" on iFrame["+n+"] is not a function");f=u(r)}return f}function tt(n){var i=n.id;delete t[i]}function a(n){var t=n.id;i(t,"Removing iFrame: "+t);try{n.parentNode&&n.parentNode.removeChild(n)}catch(n){u(n)}l(t,"onClosed",t);i(t,"--");tt(n)}function it(t){null===r&&i(t,"Get page position: "+(r={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop}).x+","+r.y)}function rt(n){null!==r&&(window.scrollTo(r.x,r.y),i(n,"Set page position: "+r.x+","+r.y),ut())}function ut(){r=null}function ft(n){i(n.id,"Size reset requested by "+("init"===n.type?"host page":"iFrame"));it(n.id);ot(function(){et(n);f("reset","reset",n.iframe,n.id)},n,"reset")}function et(n){function e(u){yt||"0"!==n[u]||(yt=!0,i(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(t).forEach(function(n){!function(n){function i(i){return"0px"===(t[n]&&t[n].iframe.style[i])}t[n]&&(r=t[n].iframe,null!==r.offsetParent)&&(i("height")||i("width"))&&f("Visibility change","resize",t[n].iframe,n);var r}(t[n])})}function o(n){i("window","Mutation observed: "+n[0].target+" "+n[0].type);v(e,16)}var n=d(),r,u;n&&(r=document.querySelector("body"),u={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},new n(o).observe(r,u))}())}function u(t){var u;u=t;n.id?(n.iframe.style[u]=n[u]+"px",i(n.id,"IFrame ("+r+") "+u+" set to "+n[u]+"px")):i("undefined","messageData id not set");e(t)}var r=n.iframe.id;t[r]&&(t[r].sizeHeight&&u("height"),t[r].sizeWidth&&u("width"))}function ot(n,t,r){r!==t.type&&o?(i(t.id,"Requesting animation frame"),o(n)):n()}function f(n,r,f,e,o){var h,c=!1;e=e||f.id;t[e]&&(f&&"contentWindow"in f&&null!==f.contentWindow?(h=t[e]&&t[e].targetOrigin,i(e,"["+n+"] Sending msg to iframe["+e+"] ("+r+") targetOrigin: "+h),f.contentWindow.postMessage(s+r,h)):u(e,"["+n+"] IFrame("+e+") not found"),o&&t[e]&&t[e].warningTimeout&&(t[e].msgTimeout=setTimeout(function(){!t[e]||t[e].loaded||c||(c=!0,u(e,"IFrame has not responded within "+t[e].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},t[e].warningTimeout)))}function st(n){return n+":"+t[n].bodyMarginV1+":"+t[n].sizeWidth+":"+t[n].log+":"+t[n].interval+":"+t[n].enablePublicMethods+":"+t[n].autoResize+":"+t[n].bodyMargin+":"+t[n].heightCalculationMethod+":"+t[n].bodyBackground+":"+t[n].bodyPadding+":"+t[n].tolerance+":"+t[n].inPageLinks+":"+t[n].resizeFrom+":"+t[n].widthCalculationMethod}function ht(r,o){function k(n){var t=n.split("Callback"),i;2===t.length&&(i="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1),this[i]=this[n],delete this[n],u(s,"Deprecated: '"+n+"' has been renamed '"+i+"'. The old method will be removed in the next major version."))}var l,v,y,w,b,c,p,s=(""===(l=r.id)&&(r.id=(v=o&&o.id||h.id+at++,null!==document.getElementById(v)&&(v+=at++),l=v),vt=(o||{}).log,i(l,"Added missing iframe ID: "+l+" ("+r.src+")")),l);s in t&&"iFrameResizer"in r?u(s,"Ignored iFrame, already setup."):(c=(c=o)||{},t[s]={firstRun:!0,iframe:r,remoteHost:r.src.split("/").slice(0,3).join("/")},function(n){if("object"!=typeof n)throw new TypeError("Options is not an object");}(c),Object.keys(c).forEach(k,c),function(n){for(var i in h)Object.prototype.hasOwnProperty.call(h,i)&&(t[s][i]=Object.prototype.hasOwnProperty.call(n,i)?n[i]:h[i])}(c),t[s]&&(t[s].targetOrigin=!0===t[s].checkOrigin?""===(p=t[s].remoteHost)||"file://"===p?"*":p:"*"),function(){switch(i(s,"IFrame scrolling "+(t[s]&&t[s].scrolling?"enabled":"disabled")+" for "+s),r.style.overflow=!1===(t[s]&&t[s].scrolling)?"hidden":"auto",t[s]&&t[s].scrolling){case"omit":break;case!0:r.scrolling="yes";break;case!1:r.scrolling="no";break;default:r.scrolling=t[s]?t[s].scrolling:"no"}}(),function(){function n(n){1/0!==t[s][n]&&0!==t[s][n]&&(r.style[n]=t[s][n]+"px",i(s,"Set "+n+" = "+t[s][n]+"px"))}function u(n){if(t[s]["min"+n]>t[s]["max"+n])throw new Error("Value for min"+n+" can not be greater than max"+n);}u("Height");u("Width");n("maxHeight");n("minHeight");n("maxWidth");n("minWidth")}(),"number"!=typeof(t[s]&&t[s].bodyMargin)&&"0"!==(t[s]&&t[s].bodyMargin)||(t[s].bodyMarginV1=t[s].bodyMargin,t[s].bodyMargin=t[s].bodyMargin+"px"),y=st(s),(b=d())&&(w=b,r.parentNode&&new w(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===r&&a(r)})})}).observe(r.parentNode,{childList:!0})),e(r,"load",function(){var i,u;f("iFrame.onload",y,r,n,!0);i=t[s]&&t[s].firstRun;u=t[s]&&t[s].heightCalculationMethod in gt;!i&&u&&ft({iframe:r,height:0,width:0,type:"init"})}),f("init",y,r,n,!0),t[s]&&(t[s].iframe.iFrameResizer={close:a.bind(null,t[s].iframe),removeListeners:tt.bind(null,t[s].iframe),resize:f.bind(null,"Window resize","resize",t[s].iframe),moveToAnchor:function(n){f("Move to anchor","moveToAnchor:"+n,t[s].iframe,s)},sendMessage:function(n){f("Send Message","message:"+(n=JSON.stringify(n)),t[s].iframe,s)}}))}function v(n,t){null===b&&(b=setTimeout(function(){b=null;n()},t))}function ct(){"hidden"!==document.visibilityState&&(i("document","Trigger event: Visiblity change"),v(function(){lt("Tab Visable","resize")},16))}function lt(n,i){Object.keys(t).forEach(function(r){var u;t[u=r]&&"parent"===t[u].resizeFrom&&t[u].autoResize&&!t[u].firstRun&&f(n,i,document.getElementById(r),r)})}function kt(){e(window,"message",bt);e(window,"resize",function(){var n;i("window","Trigger event: "+(n="resize"));v(function(){lt("Window "+n,"resize")},16)});e(document,"visibilitychange",ct);e(document,"-webkit-visibilitychange",ct)}function y(){function r(n,i){i&&(!function(){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">");}(),ht(i,n),t.push(i))}var t;return function(){for(var t=["moz","webkit","o","ms"],n=0;n<t.length&&!o;n+=1)o=window[t[n]+"RequestAnimationFrame"];o||i("setup","RequestAnimationFrame not supported")}(),kt(),function(i,f){var e;switch(t=[],(e=i)&&e.enablePublicMethods&&u("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof f){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(f||"iframe"),r.bind(n,i));break;case"object":r(i,f);break;default:throw new TypeError("Unexpected data type ("+typeof f+")");}return t}}if("undefined"!=typeof window){var p,at=0,vt=!1,yt=!1,dt=7,s="[iFrameSizer]",w=s.length,r=null,o=window.requestAnimationFrame,gt={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},t={},b=null,h={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClosed:function(){},onInit:function(){},onMessage:function(){u("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},k={};window.jQuery&&((p=window.jQuery).fn?p.fn.iFrameResize||(p.fn.iFrameResize=function(n){return this.filter("iframe").each(function(t,i){ht(i,n)}).end()}):nt("","Unable to bind to jQuery, it is not fully loaded."));"function"==typeof define&&define.amd?define([],y):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=y());window.iFrameResize=window.iFrameResize||y()}}();!function(n,t){if("function"==typeof define&&define.amd)define(["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var i={};t(i);n.bodyScrollLock=i}}(this,function(n){"use strict";function c(n){return t.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(n))})}function e(n){var t=n||window.event;return!!c(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function l(){void 0!==f&&(document.body.style.paddingRight=f,f=void 0);void 0!==u&&(document.body.style.overflow=u,u=void 0)}var r,o;Object.defineProperty(n,"__esModule",{value:!0});r=!1;"undefined"!=typeof window&&(o={get passive(){r=!0}},window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o));var s="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),t=[],i=!1,h=-1,u=void 0,f=void 0;n.disableBodyScroll=function(n,o){if(n){if(!t.some(function(t){return t.targetElement===n})){var l={targetElement:n,options:o||{}};t=[].concat(function(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}(t),[l]);s?(n.ontouchstart=function(n){1===n.targetTouches.length&&(h=n.targetTouches[0].clientY)},n.ontouchmove=function(t){var i,r,u,f;1===t.targetTouches.length&&(r=n,f=(i=t).targetTouches[0].clientY-h,c(i.target)||(r&&0===r.scrollTop&&0<f||(u=r)&&u.scrollHeight-u.scrollTop<=u.clientHeight&&f<0?e(i):i.stopPropagation()))},i||(document.addEventListener("touchmove",e,r?{passive:!1}:void 0),i=!0)):function(n){if(void 0===f){var i=!!n&&!0===n.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;i&&0<t&&(f=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")}(o)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")};n.clearAllBodyScrollLocks=function(){s?(t.forEach(function(n){n.targetElement.ontouchstart=null;n.targetElement.ontouchmove=null}),i&&(document.removeEventListener("touchmove",e,r?{passive:!1}:void 0),i=!1),h=-1):l();t=[]};n.enableBodyScroll=function(n){n?(t=t.filter(function(t){return t.targetElement!==n}),s?(n.ontouchstart=null,n.ontouchmove=null,i&&0===t.length&&(document.removeEventListener("touchmove",e,r?{passive:!1}:void 0),i=!1)):t.length||l()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}})