!function(){"use strict";var t,e,n,r,o={356:function(t,e,n){var r=n(8095),o=n(4581),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},7050:function(t,e,n){var r=n(7659),o=n(4581),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a constructor")}},992:function(t,e,n){var r=n(4059),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},3523:function(t,e,n){var r=n(533),o=n(7998),i=n(343).f,a=r("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},8033:function(t,e,n){var r=n(8635),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},3817:function(t,e,n){var r=n(6116),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},7146:function(t,e,n){var r=n(2565);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},4751:function(t,e,n){var r=n(9787),o=n(3180),i=n(5124),a=function(t){return function(e,n,a){var u=r(e),c=i(u);if(0===c)return!t&&-1;var l,s=o(a,c);if(t&&n!=n){for(;c>s;)if((l=u[s++])!=l)return!0}else for(;c>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},6287:function(t,e,n){var r=n(6230),o=n(2374),i=n(3973),a=n(1607),u=n(5124),c=n(9635),l=o([].push),s=function(t){var e=1===t,n=2===t,o=3===t,s=4===t,f=6===t,d=7===t,p=5===t||f;return function(h,v,m,g){for(var y,b,w=a(h),S=i(w),A=u(S),E=r(v,m),x=0,O=g||c,k=e?O(h,A):n||d?O(h,0):void 0;A>x;x++)if((p||x in S)&&(b=E(y=S[x],x,w),t))if(e)k[x]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return x;case 2:l(k,y)}else switch(t){case 4:return!1;case 7:l(k,y)}return f?-1:o||s?s:k}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},3014:function(t,e,n){var r=n(2374);t.exports=r([].slice)},4915:function(t,e,n){var r=n(6894),o=n(7659),i=n(6116),a=n(533)("species"),u=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===u||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?u:e}},9635:function(t,e,n){var r=n(4915);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3990:function(t,e,n){var r=n(533)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},8898:function(t,e,n){var r=n(2374),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},8549:function(t,e,n){var r=n(7366),o=n(8095),i=n(8898),a=n(533)("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),a))?n:c?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r}},6491:function(t,e,n){var r=n(2374),o=n(5653),i=n(1725).getWeakData,a=n(8033),u=n(3817),c=n(2579),l=n(6116),s=n(9598),f=n(6287),d=n(3519),p=n(2991),h=p.set,v=p.getterFor,m=f.find,g=f.findIndex,y=r([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new S)},S=function(){this.entries=[]},A=function(t,e){return m(t.entries,(function(t){return t[0]===e}))};S.prototype={get:function(t){var e=A(this,t);if(e)return e[1]},has:function(t){return!!A(this,t)},set:function(t,e){var n=A(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,o){a(t,p),h(t,{type:e,id:b++,frozen:null}),c(o)||s(o,t[r],{that:t,AS_ENTRIES:n})})),p=f.prototype,m=v(e),g=function(t,e,n){var r=m(t),o=i(u(e),!0);return!0===o?w(r).set(e,n):o[r.id]=n,t};return o(p,{delete:function(t){var e=m(this);if(!l(t))return!1;var n=i(t);return!0===n?w(e).delete(t):n&&d(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!l(t))return!1;var n=i(t);return!0===n?w(e).has(t):n&&d(n,e.id)}}),o(p,n?{get:function(t){var e=m(this);if(l(t)){var n=i(t);if(!0===n)return w(e).get(t);if(n)return n[e.id]}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),f}}},242:function(t,e,n){var r=n(7568),o=n(2646),i=n(2374),a=n(78),u=n(9454),c=n(1725),l=n(9598),s=n(8033),f=n(8095),d=n(2579),p=n(6116),h=n(2565),v=n(3990),m=n(1889),g=n(1993);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=y?"set":"add",S=o[t],A=S&&S.prototype,E=S,x={},O=function(t){var e=i(A[t]);u(A,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(S)||!(b||A.forEach&&!h((function(){(new S).entries().next()})))))E=n.getConstructor(e,t,y,w),c.enable();else if(a(t,!0)){var k=new E,T=k[w](b?{}:-0,1)!==k,j=h((function(){k.has(1)})),C=v((function(t){new S(t)})),M=!b&&h((function(){for(var t=new S,e=5;e--;)t[w](e,e);return!t.has(-0)}));C||((E=e((function(t,e){s(t,A);var n=g(new S,t,E);return d(e)||l(e,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=A,A.constructor=E),(j||M)&&(O("delete"),O("has"),y&&O("get")),(M||T)&&O(w),b&&A.clear&&delete A.clear}return x[t]=E,r({global:!0,constructor:!0,forced:E!==S},x),m(E,t),b||n.setStrong(E,t,y),E}},3802:function(t,e,n){var r=n(3519),o=n(6757),i=n(325),a=n(343);t.exports=function(t,e,n){for(var u=o(e),c=a.f,l=i.f,s=0;s<u.length;s++){var f=u[s];r(t,f)||n&&r(n,f)||c(t,f,l(e,f))}}},9389:function(t,e,n){var r=n(2565);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7011:function(t){t.exports=function(t,e){return{value:t,done:e}}},6729:function(t,e,n){var r=n(970),o=n(343),i=n(6494);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6494:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1276:function(t,e,n){var r=n(3861),o=n(343);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},9454:function(t,e,n){var r=n(8095),o=n(343),i=n(3861),a=n(5155);t.exports=function(t,e,n,u){u||(u={});var c=u.enumerable,l=void 0!==u.name?u.name:e;if(r(n)&&i(n,l,u),u.global)c?t[e]=n:a(e,n);else{try{u.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},5653:function(t,e,n){var r=n(9454);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},5155:function(t,e,n){var r=n(2646),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},970:function(t,e,n){var r=n(2565);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1021:function(t,e,n){var r=n(2646),o=n(6116),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},8137:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4363:function(t,e,n){var r=n(8289);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},38:function(t,e,n){var r=n(8289);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},3083:function(t,e,n){var r=n(6717);t.exports="NODE"===r},5242:function(t,e,n){var r=n(8289);t.exports=/web0s(?!.*chrome)/i.test(r)},8289:function(t,e,n){var r=n(2646).navigator,o=r&&r.userAgent;t.exports=o?String(o):""},8497:function(t,e,n){var r,o,i=n(2646),a=n(8289),u=i.process,c=i.Deno,l=u&&u.versions||c&&c.version,s=l&&l.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},6717:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(2646),i=n(8289),a=n(8898),u=function(t){return i.slice(0,t.length)===t};t.exports=u("Bun/")?"BUN":u("Cloudflare-Workers")?"CLOUDFLARE":u("Deno/")?"DENO":u("Node.js/")?"NODE":o.Bun&&"string"==typeof Bun.version?"BUN":o.Deno&&"object"==r(Deno.version)?"DENO":"process"===a(o.process)?"NODE":o.window&&o.document?"BROWSER":"REST"},7568:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(2646),i=n(325).f,a=n(6729),u=n(9454),c=n(5155),l=n(3802),s=n(78);t.exports=function(t,e){var n,f,d,p,h,v=t.target,m=t.global,g=t.stat;if(n=m?o:g?o[v]||c(v,{}):o[v]&&o[v].prototype)for(f in e){if(p=e[f],d=t.dontCallGetSet?(h=i(n,f))&&h.value:n[f],!s(m?f:v+(g?".":"#")+f,t.forced)&&void 0!==d){if(r(p)==r(d))continue;l(p,d)}(t.sham||d&&d.sham)&&a(p,"sham",!0),u(n,f,p,t)}}},2565:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3502:function(t,e,n){var r=n(2565);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},127:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(2166),i=Function.prototype,a=i.apply,u=i.call;t.exports="object"==("undefined"==typeof Reflect?"undefined":r(Reflect))&&Reflect.apply||(o?u.bind(a):function(){return u.apply(a,arguments)})},6230:function(t,e,n){var r=n(3390),o=n(356),i=n(2166),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},2166:function(t,e,n){var r=n(2565);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3155:function(t,e,n){var r=n(2166),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},4252:function(t,e,n){var r=n(970),o=n(3519),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,l=u&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:l}},4772:function(t,e,n){var r=n(2374),o=n(356);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},3390:function(t,e,n){var r=n(8898),o=n(2374);t.exports=function(t){if("Function"===r(t))return o(t)}},2374:function(t,e,n){var r=n(2166),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},1901:function(t,e,n){var r=n(2646),o=n(8095);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},5077:function(t,e,n){var r=n(8549),o=n(8720),i=n(2579),a=n(4995),u=n(533)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[r(t)]}},827:function(t,e,n){var r=n(3155),o=n(356),i=n(3817),a=n(4581),u=n(5077),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return i(r(n,t));throw new c(a(t)+" is not iterable")}},8720:function(t,e,n){var r=n(356),o=n(2579);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},2646:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=function(t){return t&&t.Math===Math&&t};t.exports=o("object"==("undefined"==typeof globalThis?"undefined":r(globalThis))&&globalThis)||o("object"==("undefined"==typeof window?"undefined":r(window))&&window)||o("object"==("undefined"==typeof self?"undefined":r(self))&&self)||o("object"==(void 0===n.g?"undefined":r(n.g))&&n.g)||o("object"==r(this)&&this)||function(){return this}()||Function("return this")()},3519:function(t,e,n){var r=n(2374),o=n(1607),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},9663:function(t){t.exports={}},2183:function(t){t.exports=function(t,e){}},5831:function(t,e,n){var r=n(1901);t.exports=r("document","documentElement")},9747:function(t,e,n){var r=n(970),o=n(2565),i=n(1021);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3973:function(t,e,n){var r=n(2374),o=n(2565),i=n(8898),a=Object,u=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):a(t)}:a},1993:function(t,e,n){var r=n(8095),o=n(6116),i=n(6325);t.exports=function(t,e,n){var a,u;return i&&r(a=e.constructor)&&a!==n&&o(u=a.prototype)&&u!==n.prototype&&i(t,u),t}},1024:function(t,e,n){var r=n(2374),o=n(8095),i=n(3819),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},1725:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(7568),i=n(2374),a=n(9663),u=n(6116),c=n(3519),l=n(343).f,s=n(8746),f=n(368),d=n(814),p=n(3414),h=n(3502),v=!1,m=p("meta"),g=0,y=function(t){l(t,m,{value:{objectID:"O"+g++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},v=!0;var t=s.f,e=i([].splice),n={};n[m]=1,t(n).length&&(s.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===m){e(r,o,1);break}return r},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==r(t)?t:("string"==typeof t?"S":"P")+t;if(!c(t,m)){if(!d(t))return"F";if(!e)return"E";y(t)}return t[m].objectID},getWeakData:function(t,e){if(!c(t,m)){if(!d(t))return!0;if(!e)return!1;y(t)}return t[m].weakData},onFreeze:function(t){return h&&v&&d(t)&&!c(t,m)&&y(t),t}};a[m]=!0},2991:function(t,e,n){var r,o,i,a=n(3648),u=n(2646),c=n(6116),l=n(6729),s=n(3519),f=n(3819),d=n(1701),p=n(9663),h="Object already initialized",v=u.TypeError,m=u.WeakMap;if(a||f.state){var g=f.state||(f.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new v(h);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var y=d("state");p[y]=!0,r=function(t,e){if(s(t,y))throw new v(h);return e.facade=t,l(t,y,e),e},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},6199:function(t,e,n){var r=n(533),o=n(4995),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},6894:function(t,e,n){var r=n(8898);t.exports=Array.isArray||function(t){return"Array"===r(t)}},8095:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var n="object"==("undefined"==typeof document?"undefined":e(document))&&document.all;t.exports=void 0===n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},7659:function(t,e,n){var r=n(2374),o=n(2565),i=n(8095),a=n(8549),u=n(1901),c=n(1024),l=function(){},s=u("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(l),h=function(t){if(!i(t))return!1;try{return s(l,[],t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!s||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?v:h},78:function(t,e,n){var r=n(2565),o=n(8095),i=/#|\.prototype\./,a=function(t,e){var n=c[u(t)];return n===s||n!==l&&(o(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",s=a.POLYFILL="P";t.exports=a},2579:function(t){t.exports=function(t){return null==t}},6116:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(8095);t.exports=function(t){return"object"==r(t)?null!==t:o(t)}},4059:function(t,e,n){var r=n(6116);t.exports=function(t){return r(t)||null===t}},9385:function(t){t.exports=!1},4875:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(1901),i=n(8095),a=n(8635),u=n(2170),c=Object;t.exports=u?function(t){return"symbol"==r(t)}:function(t){var e=o("Symbol");return i(e)&&a(e.prototype,c(t))}},9598:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(6230),i=n(3155),a=n(3817),u=n(4581),c=n(6199),l=n(5124),s=n(8635),f=n(827),d=n(5077),p=n(4933),h=TypeError,v=function(t,e){this.stopped=t,this.result=e},m=v.prototype;t.exports=function(t,e,n){var g,y,b,w,S,A,E,x=n&&n.that,O=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),C=o(e,x),M=function(t){return g&&p(g,"normal",t),new v(!0,t)},P=function(t){return O?(a(t),j?C(t[0],t[1],M):C(t[0],t[1])):j?C(t,M):C(t)};if(k)g=t.iterator;else if(T)g=t;else{if(!(y=d(t)))throw new h(u(t)+" is not iterable");if(c(y)){for(b=0,w=l(t);w>b;b++)if((S=P(t[b]))&&s(m,S))return S;return new v(!1)}g=f(t,y)}for(A=k?t.next:g.next;!(E=i(A,g)).done;){try{S=P(E.value)}catch(t){p(g,"throw",t)}if("object"==r(S)&&S&&s(m,S))return S}return new v(!1)}},4933:function(t,e,n){var r=n(3155),o=n(3817),i=n(8720);t.exports=function(t,e,n){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw n;if(u)throw a;return o(a),n}},2356:function(t,e,n){var r=n(7143).IteratorPrototype,o=n(7998),i=n(6494),a=n(1889),u=n(4995),c=function(){return this};t.exports=function(t,e,n,l){var s=e+" Iterator";return t.prototype=o(r,{next:i(+!l,n)}),a(t,s,!1,!0),u[s]=c,t}},2490:function(t,e,n){var r=n(7568),o=n(3155),i=n(9385),a=n(4252),u=n(8095),c=n(2356),l=n(5321),s=n(6325),f=n(1889),d=n(6729),p=n(9454),h=n(533),v=n(4995),m=n(7143),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,S=h("iterator"),A="keys",E="values",x="entries",O=function(){return this};t.exports=function(t,e,n,a,h,m,k){c(n,e,a);var T,j,C,M=function(t){if(t===h&&B)return B;if(!w&&t&&t in D)return D[t];switch(t){case A:case E:case x:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",N=!1,D=t.prototype,L=D[S]||D["@@iterator"]||h&&D[h],B=!w&&L||M(h),R="Array"===e&&D.entries||L;if(R&&(T=l(R.call(new t)))!==Object.prototype&&T.next&&(i||l(T)===b||(s?s(T,b):u(T[S])||p(T,S,O)),f(T,P,!0,!0),i&&(v[P]=O)),g&&h===E&&L&&L.name!==E&&(!i&&y?d(D,"name",E):(N=!0,B=function(){return o(L,this)})),h)if(j={values:M(E),keys:m?B:M(A),entries:M(x)},k)for(C in j)(w||N||!(C in D))&&p(D,C,j[C]);else r({target:e,proto:!0,forced:w||N},j);return i&&!k||D[S]===B||p(D,S,B,{name:h}),v[e]=B,j}},7143:function(t,e,n){var r,o,i,a=n(2565),u=n(8095),c=n(6116),l=n(7998),s=n(5321),f=n(9454),d=n(533),p=n(9385),h=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var t={};return r[h].call(t)!==t}))?r={}:p&&(r=l(r)),u(r[h])||f(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},4995:function(t){t.exports={}},5124:function(t,e,n){var r=n(6464);t.exports=function(t){return r(t.length)}},3861:function(t,e,n){var r=n(2374),o=n(2565),i=n(8095),a=n(3519),u=n(970),c=n(4252).CONFIGURABLE,l=n(1024),s=n(2991),f=s.enforce,d=s.get,p=String,h=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),y=u&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(u?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?u&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&d(this).source||l(this)}),"toString")},1723:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},1101:function(t,e,n){var r,o,i,a,u,c=n(2646),l=n(3495),s=n(6230),f=n(1899).set,d=n(3647),p=n(38),h=n(4363),v=n(5242),m=n(3083),g=c.MutationObserver||c.WebKitMutationObserver,y=c.document,b=c.process,w=c.Promise,S=l("queueMicrotask");if(!S){var A=new d,E=function(){var t,e;for(m&&(t=b.domain)&&t.exit();e=A.get();)try{e()}catch(t){throw A.head&&r(),t}t&&t.enter()};p||m||v||!g||!y?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,u=s(a.then,a),r=function(){u(E)}):m?r=function(){b.nextTick(E)}:(f=s(f,c),r=function(){f(E)}):(o=!0,i=y.createTextNode(""),new g(E).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),S=function(t){A.head||r(),A.add(t)}}t.exports=S},7305:function(t,e,n){var r=n(356),o=TypeError,i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},7998:function(t,e,n){var r,o=n(3817),i=n(1803),a=n(8137),u=n(9663),c=n(5831),l=n(1021),s=n(1701),f="prototype",d="script",p=s("IE_PROTO"),h=function(){},v=function(t){return"<"+d+">"+t+"</"+d+">"},m=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&r?m(r):(e=l("iframe"),n="java"+d+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):m(r);for(var o=a.length;o--;)delete g[f][a[o]];return g()};u[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=o(t),n=new h,h[f]=null,n[p]=t):n=g(),void 0===e?n:i.f(n,e)}},1803:function(t,e,n){var r=n(970),o=n(4612),i=n(343),a=n(3817),u=n(9787),c=n(6046);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=u(e),o=c(e),l=o.length,s=0;l>s;)i.f(t,n=o[s++],r[n]);return t}},343:function(t,e,n){var r=n(970),o=n(9747),i=n(4612),a=n(3817),u=n(5011),c=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=r?i?function(t,e,n){if(a(t),e=u(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=s(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=u(e),a(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},325:function(t,e,n){var r=n(970),o=n(3155),i=n(6695),a=n(6494),u=n(9787),c=n(5011),l=n(3519),s=n(9747),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=c(e),s)try{return f(t,e)}catch(t){}if(l(t,e))return a(!o(i.f,t,e),t[e])}},368:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(8898),i=n(9787),a=n(8746).f,u=n(3014),c="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"===o(t)?function(t){try{return a(t)}catch(t){return u(c)}}(t):a(i(t))}},8746:function(t,e,n){var r=n(3506),o=n(8137).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},7407:function(t,e){e.f=Object.getOwnPropertySymbols},5321:function(t,e,n){var r=n(3519),o=n(8095),i=n(1607),a=n(1701),u=n(9389),c=a("IE_PROTO"),l=Object,s=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?s:null}},814:function(t,e,n){var r=n(2565),o=n(6116),i=n(8898),a=n(7146),u=Object.isExtensible,c=r((function(){u(1)}));t.exports=c||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!==i(t))&&(!u||u(t)))}:u},8635:function(t,e,n){var r=n(2374);t.exports=r({}.isPrototypeOf)},3506:function(t,e,n){var r=n(2374),o=n(3519),i=n(9787),a=n(4751).indexOf,u=n(9663),c=r([].push);t.exports=function(t,e){var n,r=i(t),l=0,s=[];for(n in r)!o(u,n)&&o(r,n)&&c(s,n);for(;e.length>l;)o(r,n=e[l++])&&(~a(s,n)||c(s,n));return s}},6046:function(t,e,n){var r=n(3506),o=n(8137);t.exports=Object.keys||function(t){return r(t,o)}},6695:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},6325:function(t,e,n){var r=n(4772),o=n(6116),i=n(3972),a=n(992);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),o(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},5241:function(t,e,n){var r=n(7366),o=n(8549);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},1312:function(t,e,n){var r=n(3155),o=n(8095),i=n(6116),a=TypeError;t.exports=function(t,e){var n,u;if("string"===e&&o(n=t.toString)&&!i(u=r(n,t)))return u;if(o(n=t.valueOf)&&!i(u=r(n,t)))return u;if("string"!==e&&o(n=t.toString)&&!i(u=r(n,t)))return u;throw new a("Can't convert object to primitive value")}},6757:function(t,e,n){var r=n(1901),o=n(2374),i=n(8746),a=n(7407),u=n(3817),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=a.f;return n?c(e,n(t)):e}},3261:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},4346:function(t,e,n){var r=n(2646),o=n(3676),i=n(8095),a=n(78),u=n(1024),c=n(533),l=n(6717),s=n(9385),f=n(8497),d=o&&o.prototype,p=c("species"),h=!1,v=i(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=u(o),e=t!==String(o);if(!e&&66===f)return!0;if(s&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(h=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==l&&"DENO"!==l||v)}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:h}},3676:function(t,e,n){var r=n(2646);t.exports=r.Promise},5248:function(t,e,n){var r=n(3817),o=n(6116),i=n(7305);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},7811:function(t,e,n){var r=n(3676),o=n(3990),i=n(4346).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},3647:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},3972:function(t,e,n){var r=n(2579),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},3495:function(t,e,n){var r=n(2646),o=n(970),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return r[t];var e=i(r,t);return e&&e.value}},2967:function(t,e,n){var r=n(1901),o=n(1276),i=n(533),a=n(970),u=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[u]&&o(e,u,{configurable:!0,get:function(){return this}})}},1889:function(t,e,n){var r=n(343).f,o=n(3519),i=n(533)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},1701:function(t,e,n){var r=n(715),o=n(3414),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3819:function(t,e,n){var r=n(9385),o=n(2646),i=n(5155),a="__core-js_shared__",u=t.exports=o[a]||i(a,{});(u.versions||(u.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},715:function(t,e,n){var r=n(3819);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},7303:function(t,e,n){var r=n(3817),o=n(7050),i=n(2579),a=n(533)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||i(n=r(u)[a])?e:o(n)}},4129:function(t,e,n){var r=n(8497),o=n(2565),i=n(2646).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1899:function(t,e,n){var r,o,i,a,u=n(2646),c=n(127),l=n(6230),s=n(8095),f=n(3519),d=n(2565),p=n(5831),h=n(3014),v=n(1021),m=n(6638),g=n(38),y=n(3083),b=u.setImmediate,w=u.clearImmediate,S=u.process,A=u.Dispatch,E=u.Function,x=u.MessageChannel,O=u.String,k=0,T={},j="onreadystatechange";d((function(){r=u.location}));var C=function(t){if(f(T,t)){var e=T[t];delete T[t],e()}},M=function(t){return function(){C(t)}},P=function(t){C(t.data)},N=function(t){u.postMessage(O(t),r.protocol+"//"+r.host)};b&&w||(b=function(t){m(arguments.length,1);var e=s(t)?t:E(t),n=h(arguments,1);return T[++k]=function(){c(e,void 0,n)},o(k),k},w=function(t){delete T[t]},y?o=function(t){S.nextTick(M(t))}:A&&A.now?o=function(t){A.now(M(t))}:x&&!g?(a=(i=new x).port2,i.port1.onmessage=P,o=l(a.postMessage,a)):u.addEventListener&&s(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!d(N)?(o=N,u.addEventListener("message",P,!1)):o=j in v("script")?function(t){p.appendChild(v("script"))[j]=function(){p.removeChild(this),C(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:b,clear:w}},3180:function(t,e,n){var r=n(4905),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},9787:function(t,e,n){var r=n(3973),o=n(3972);t.exports=function(t){return r(o(t))}},4905:function(t,e,n){var r=n(1723);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},6464:function(t,e,n){var r=n(4905),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},1607:function(t,e,n){var r=n(3972),o=Object;t.exports=function(t){return o(r(t))}},6079:function(t,e,n){var r=n(3155),o=n(6116),i=n(4875),a=n(8720),u=n(1312),c=n(533),l=TypeError,s=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,s);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},5011:function(t,e,n){var r=n(6079),o=n(4875);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},7366:function(t,e,n){var r={};r[n(533)("toStringTag")]="z",t.exports="[object z]"===String(r)},4581:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3414:function(t,e,n){var r=n(2374),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},2170:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(4129);t.exports=o&&!Symbol.sham&&"symbol"==r(Symbol.iterator)},4612:function(t,e,n){var r=n(970),o=n(2565);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6638:function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},3648:function(t,e,n){var r=n(2646),o=n(8095),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},533:function(t,e,n){var r=n(2646),o=n(715),i=n(3519),a=n(3414),u=n(4129),c=n(2170),l=r.Symbol,s=o("wks"),f=c?l.for||l:l&&l.withoutSetter||a;t.exports=function(t){return i(s,t)||(s[t]=u&&i(l,t)?l[t]:f("Symbol."+t)),s[t]}},1950:function(t,e,n){var r=n(9787),o=n(3523),i=n(4995),a=n(2991),u=n(343).f,c=n(2490),l=n(7011),s=n(9385),f=n(970),d="Array Iterator",p=a.set,h=a.getterFor(d);t.exports=c(Array,"Array",(function(t,e){p(this,{type:d,target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,l(void 0,!0);switch(t.kind){case"keys":return l(n,!1);case"values":return l(e[n],!1)}return l([n,e[n]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(t){}},8113:function(t,e,n){var r=n(7366),o=n(9454),i=n(5241);r||o(Object.prototype,"toString",i,{unsafe:!0})},1301:function(t,e,n){var r=n(7568),o=n(3155),i=n(356),a=n(7305),u=n(3261),c=n(9598);r({target:"Promise",stat:!0,forced:n(7811)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,s=u((function(){var n=i(e.resolve),a=[],u=0,s=1;c(t,(function(t){var i=u++,c=!1;s++,o(n,e,t).then((function(t){c||(c=!0,a[i]=t,--s||r(a))}),l)})),--s||r(a)}));return s.error&&l(s.value),n.promise}})},6893:function(t,e,n){var r=n(7568),o=n(9385),i=n(4346).CONSTRUCTOR,a=n(3676),u=n(1901),c=n(8095),l=n(9454),s=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&c(a)){var f=u("Promise").prototype.catch;s.catch!==f&&l(s,"catch",f,{unsafe:!0})}},5934:function(t,e,n){var r,o,i,a=n(7568),u=n(9385),c=n(3083),l=n(2646),s=n(3155),f=n(9454),d=n(6325),p=n(1889),h=n(2967),v=n(356),m=n(8095),g=n(6116),y=n(8033),b=n(7303),w=n(1899).set,S=n(1101),A=n(2183),E=n(3261),x=n(3647),O=n(2991),k=n(3676),T=n(4346),j=n(7305),C="Promise",M=T.CONSTRUCTOR,P=T.REJECTION_EVENT,N=T.SUBCLASSING,D=O.getterFor(C),L=O.set,B=k&&k.prototype,R=k,z=B,I=l.TypeError,U=l.document,H=l.process,q=j.f,F=q,J=!!(U&&U.createEvent&&l.dispatchEvent),W="unhandledrejection",V=function(t){var e;return!(!g(t)||!m(e=t.then))&&e},Q=function(t,e){var n,r,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,c=t.resolve,l=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&Y(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?l(new I("Promise-chain cycle")):(r=V(n))?s(r,n,c,l):c(n)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},_=function(t,e){t.notified||(t.notified=!0,S((function(){for(var n,r=t.reactions;n=r.get();)Q(n,t);t.notified=!1,e&&!t.rejection&&$(t)})))},X=function(t,e,n){var r,o;J?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!P&&(o=l["on"+t])?o(r):t===W&&A("Unhandled promise rejection",n)},$=function(t){s(w,l,(function(){var e,n=t.facade,r=t.value;if(G(t)&&(e=E((function(){c?H.emit("unhandledRejection",r,n):X(W,n,r)})),t.rejection=c||G(t)?2:1,e.error))throw e.value}))},G=function(t){return 1!==t.rejection&&!t.parent},Y=function(t){s(w,l,(function(){var e=t.facade;c?H.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},K=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,_(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new I("Promise can't be resolved itself");var r=V(e);r?S((function(){var n={done:!1};try{s(r,e,K(tt,n,t),K(Z,n,t))}catch(e){Z(n,e,t)}})):(t.value=e,t.state=1,_(t,!1))}catch(e){Z({done:!1},e,t)}}};if(M&&(z=(R=function(t){y(this,z),v(t),s(r,this);var e=D(this);try{t(K(tt,e),K(Z,e))}catch(t){Z(e,t)}}).prototype,(r=function(t){L(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=f(z,"then",(function(t,e){var n=D(this),r=q(b(this,R));return n.parent=!0,r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=c?H.domain:void 0,0===n.state?n.reactions.add(r):S((function(){Q(r,n)})),r.promise})),o=function(){var t=new r,e=D(t);this.promise=t,this.resolve=K(tt,e),this.reject=K(Z,e)},j.f=q=function(t){return t===R||undefined===t?new o(t):F(t)},!u&&m(k)&&B!==Object.prototype)){i=B.then,N||f(B,"then",(function(t,e){var n=this;return new R((function(t,e){s(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete B.constructor}catch(t){}d&&d(B,z)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:R}),p(R,C,!1,!0),h(C)},5888:function(t,e,n){n(5934),n(1301),n(6893),n(5693),n(3163),n(8962)},5693:function(t,e,n){var r=n(7568),o=n(3155),i=n(356),a=n(7305),u=n(3261),c=n(9598);r({target:"Promise",stat:!0,forced:n(7811)},{race:function(t){var e=this,n=a.f(e),r=n.reject,l=u((function(){var a=i(e.resolve);c(t,(function(t){o(a,e,t).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},3163:function(t,e,n){var r=n(7568),o=n(7305);r({target:"Promise",stat:!0,forced:n(4346).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},8962:function(t,e,n){var r=n(7568),o=n(1901),i=n(9385),a=n(3676),u=n(4346).CONSTRUCTOR,c=n(5248),l=o("Promise"),s=i&&!u;r({target:"Promise",stat:!0,forced:i||u},{resolve:function(t){return c(s&&this===l?a:this,t)}})},1951:function(t,e,n){var r=n(7568),o=n(2374),i=n(3180),a=RangeError,u=String.fromCharCode,c=String.fromCodePoint,l=o([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,o=0;r>o;){if(e=+arguments[o++],i(e,1114111)!==e)throw new a(e+" is not a valid code point");n[o]=e<65536?u(e):u(55296+((e-=65536)>>10),e%1024+56320)}return l(n,"")}})},3068:function(t,e,n){var r,o=n(3502),i=n(2646),a=n(2374),u=n(5653),c=n(1725),l=n(242),s=n(6491),f=n(6116),d=n(2991).enforce,p=n(2565),h=n(3648),v=Object,m=Array.isArray,g=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,S=v.seal,A=!i.ActiveXObject&&"ActiveXObject"in i,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},x=l("WeakMap",E,s),O=x.prototype,k=a(O.set);if(h)if(A){r=s.getConstructor(E,"WeakMap",!0),c.enable();var T=a(O.delete),j=a(O.has),C=a(O.get);u(O,{delete:function(t){if(f(t)&&!g(t)){var e=d(this);return e.frozen||(e.frozen=new r),T(this,t)||e.frozen.delete(t)}return T(this,t)},has:function(t){if(f(t)&&!g(t)){var e=d(this);return e.frozen||(e.frozen=new r),j(this,t)||e.frozen.has(t)}return j(this,t)},get:function(t){if(f(t)&&!g(t)){var e=d(this);return e.frozen||(e.frozen=new r),j(this,t)?C(this,t):e.frozen.get(t)}return C(this,t)},set:function(t,e){if(f(t)&&!g(t)){var n=d(this);n.frozen||(n.frozen=new r),j(this,t)?k(this,t,e):n.frozen.set(t,e)}else k(this,t,e);return this}})}else o&&p((function(){var t=w([]);return k(new x,t,1),!y(t)}))&&u(O,{set:function(t,e){var n;return m(t)&&(y(t)?n=w:b(t)&&(n=S)),k(this,t,e),n&&n(t),this}})},2970:function(t,e,n){n(3068)}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,loaded:!1,exports:{}};return o[t].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.amdO={},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var u=2&r&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){i[t]=function(){return n[t]}}));return i.default=function(){return n},a.d(o,i),o},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,n){return a.f[n](t,e),e}),[]))},a.u=function(t){return{135:"hlsjs",673:"device",888:"mediasoup"}[t]+"."+{135:"c7ce6252894a7f62",673:"a232ce4a61e8f585",888:"43c611af7371ebb4"}[t]+".js"},a.miniCssF=function(t){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n={},r="assets:",a.l=function(t,e,o,i){if(n[t])n[t].push(e);else{var u,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){u=f;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.setAttribute("data-webpack",r+o),u.src=t),n[t]=[e];var d=function(e,r){u.onerror=u.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(t){return t(r)})),e)return e(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),c&&document.head.appendChild(u)}},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},a.p="/assets/",function(){var t={792:0};a.f.j=function(e,n){var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=t[e]=[n,o]}));n.push(r[2]=o);var i=a.p+a.u(e),u=new Error;a.l(i,(function(n){if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,r[1](u)}}),"chunk-"+e,e)}};var e=function(e,n){var r,o,i=n[0],u=n[1],c=n[2],l=0;if(i.some((function(e){return 0!==t[e]}))){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(c)c(a)}for(e&&e(n);l<i.length;l++)o=i[l],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunkassets=self.webpackChunkassets||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}(),function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function n(t,e,n){var r;return function(){if(r){if(!n)return;clearTimeout(r)}var o=this,i=arguments;r=setTimeout((function(){r=null,t.apply(o,i)}),e)}}function r(t,e){var n=0;return function(){var r=Date.now();r>=n+e&&(t.apply(this,arguments),n=r)}}function o(){if("crypto"in window){if("randomUUID"in window.crypto)return window.crypto.randomUUID();if("getRandomValues"in window.crypto)return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}var t=function(t,e){return("0000000000000000"+t).slice(-e)},e=function(){return t((~~(4096*Math.random())).toString(16),3)},n=new Date,r=t((1e4*(+new Date(n.getTime()-6e4*n.getTimezoneOffset())+122192928e5)).toString(16),16);return r.slice(8,16)+"-"+r.slice(4,8)+"-1"+r.slice(1,4)+"-8"+e()+"-"+e()+e()+e()+e()}var i=[];function u(t,e){i.push([t,e])}function c(t,e){var n="function"==typeof t?t:function(){var n=t||document.body;S(document.documentElement,n)&&i.forEach((function(t){var r=t[0];E(n,r).forEach((function(n){var o="init:"+r;h(n,o)||(v(n,o,!0),t[1](n,!!e))}))}))};"loading"!=document.readyState?n():l(document,"DOMContentLoaded",n)}function l(t,e,n,r){(Array.isArray(e)?e:[e]).forEach((function(e){var o=!!r;if("touchstart"==e||"touchmove"==e||"touchend"==e||"wheel"==e)try{var i=Object.defineProperty({},"passive",{get:function(){o={capture:!!r,passive:!0}}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(t){}t.addEventListener(e,n,o)}))}function s(t,e,n,r){(Array.isArray(e)?e:[e]).forEach((function(e){var o=!!r;t.removeEventListener(e,n,o)}))}function f(t,e){var n;"function"==typeof Event?n=new Event(e,{bubbles:!1,cancelable:!0}):(n=document.createEvent("Event")).initEvent(e,!1,!0),t.dispatchEvent(n)}function d(t){t.stopPropagation(),t.preventDefault()}var p=new WeakMap;function h(t,e){if(!p.has(t))return null;var n=p.get(t);return e in n?n[e]:null}function v(t,n,r){p.has(t)?p.get(t)[n]=r:p.set(t,e({},n,r))}function m(t,e,n){function r(){if(window.performance){if(performance.now)return performance.now();if(performance.webkitNow)return performance.webkitNow();if(performance.mozNow)return performance.mozNow();if(performance.msNow)return performance.msNow()}return Date.now()}var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout((function(){t(r())}),1e3/60)};function i(t){return t<.5?function(t){return Math.pow(t,2)}(2*t)/2:function(t){return 1-Math.abs(Math.pow(t-1,2))}(2*t-1)/2+.5}var a=r();o((function r(u){var c=(u-a)/t;if(c>=1)n();else{var l=i(c);e(l),o(r)}}))}function g(t,e){return t.classList.contains(e)}function y(t,e,n){var r=n?t.querySelector(n):t;r&&r.classList.add(e)}function b(t,e){t.classList.remove(e)}function w(t,e){for(var n in e){var r=e[n];t.style[n]=r,r||t.style.removeProperty(n)}}function S(t,e,n){for(var r=n?e.parentNode:e;r;){if(r===t)return!0;r=r.parentNode}return!1}function A(t,e){var n=t.getBoundingClientRect(),r=document.documentElement.clientWidth||window.innerWidth,o=(document.documentElement.clientHeight||window.innerHeight)*(e||1),i=n.top<=o&&n.top+n.height>=0,a=n.left<=r&&n.left+n.width>=0;return i&&a}function E(t,e){var n=[];t.matches(e)&&n.unshift(t);for(var r=t.querySelectorAll(e),o=0;o<r.length;++o)n.push(r[o]);return n}function x(t,e){for(var n=[],r=0;r<t.children.length;++r){var o=t.children[r];e&&!o.matches(e)||n.push(o)}return n}function O(t,e){for(var n=t.nextElementSibling;null!==n;){if(!e||n.matches(e))return n;n=n.nextElementSibling}return null}function k(t,e){for(var n=t.previousElementSibling;null!==n;){if(!e||n.matches(e))return n;n=n.previousElementSibling}return null}function T(t,e){(Array.isArray(e)?e:[e]).forEach((function(e){e&&t.appendChild(e)}))}function j(t,e,n){var r=document.createElement(t);if(e)for(var o in e)r.setAttribute(o,e[o]);return n&&("string"==typeof n?r.innerHTML=n:T(r,n)),r}function C(t){return document.createTextNode(t)}function M(t){try{var e=new DOMParser;if(e){var n=e.parseFromString(t,"text/html");if(n)return n}}catch(t){}var r=document.implementation.createHTMLDocument("");return r.documentElement.innerHTML=t,r}function P(t){(Array.isArray(t)?t:[t]).forEach((function(t){var e=t.parentNode;e&&e.removeChild(t)}))}function N(t,e){for(var n=[],r=t.firstChild;null!==r;r=r.nextSibling)e&&!r.matches(e)||n.push(r);return P(n),n}a(1950),a(8113),a(1951),a(5888),a(2970);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){R(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=D(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==D(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return I(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}if(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e;){if(e.matches(t))return e;e=e.parentElement}return null}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.NodeList&&!NodeList.prototype.filter&&(NodeList.prototype.filter=Array.prototype.filter),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var t=this;return{add:function(e){var n=(t.getAttribute("class")+" "+e).trim();return t.setAttribute("class",n)}}}}),!window.URL&&window.webkitURL&&(window.URL=window.webkitURL),"function"!=typeof window.URL&&(window.URL=function(t){var e=j("a");return e.href=t,{protocol:e.protocol,host:e.host,hostname:e.hostname,port:e.port,pathname:("/"!=e.pathname.charAt(0)?"/":"")+e.pathname,hash:e.hash,search:e.search,origin:e.origin,searchParams:new URLSearchParams(0===e.search.indexOf("?")?e.search.substr(1):e.search)}}),!(window.URLSearchParams&&URLSearchParams.prototype.forEach&&URLSearchParams.prototype.toString&&"searchParams"in new window.URL("http://example.com/")&&""==new URLSearchParams({}).toString())){window.URLSearchParams=function(t){var e;return e="string"==typeof t?t.split("&").map((function(t){return t.split("=")})).reduce((function(t,e){var n=z(e.map(decodeURIComponent),2),r=n[0],o=n[1];return B(B({},t),{},R({},r,o))}),{}):B({},t),{forEach:function(t){return Object.keys(e).forEach((function(n){return t(e[n],n)}))},toString:function(){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}}};var U=window.URL;window.URL=function(t){var e=new U(t);return"searchParams"in e&&e.searchParams&&"function"==typeof e.searchParams.forEach?e:{protocol:e.protocol,hostname:e.hostname,username:e.username,host:e.host,port:e.port,password:e.password,hash:e.hash,pathname:e.pathname,href:e.href,origin:e.origin,search:e.search,searchParams:new URLSearchParams(0===e.search.indexOf("?")?e.search.substr(1):e.search)}}}function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach((function(e){J(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=H(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}("ActiveXObject"in window||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537)&&u("svg",(function(t){var e=t.querySelector("use");if(e){var n=j("img",{src:"/icon/"+e.getAttribute("xlink:href").replace(/.*#/,""),width:"24",height:"24",class:t.getAttribute("class")});t.parentNode.replaceChild(n,t)}})),"chrome"in window&&!("wakeLock"in navigator)&&u("use",(function(t,e){e&&t.parentNode.replaceChild(t.cloneNode(),t)}));var W="/";function V(t,e,n,r){return et(!1,null,null,t,e,n,null,r)}function Q(){var t=null;return function(e,n,r,o){return t&&t(),t=V(e,n,r,o),function(){t&&t(),t=null}}}function _(t,e,n,r){return et(!0,null,null,t,e,n,null,r)}function X(t,e,n,r,o){return et(!0,t,null,e,n,r,null,o)}var $=null,G=!1;function Y(t,e){return $||($={language:null,websocket:null,i18n:{datetime:null,wysiwyg:null,chat:null},user:null,session:null,synchronizer:null},E(document.documentElement,'script[type="application/json"]').forEach((function(t){var e=JSON.parse(t.textContent);e&&($=F(F({},$),e))}))),t&&(e?G=!0:G&&delete t.language,$=F(F({},$),t)),$}function K(t){return t&&"rtl"==(t.dir||"").toLowerCase()}function Z(t){var e=F({},t);return!("language"in e)&&Y().language&&(e.language=Y().language),0==Object.keys(e).length?W:"/?"+new URLSearchParams(e).toString()}function tt(t){var e=new URL(t),n=(e.pathname||W)+e.search;return n.match(/^\/language\/[0-9A-Za-z]{25}$/i)?"/":n}function et(t,e,n,r,o,i,a,u){var c=t?"POST":"GET",l=e||W,s=null,f=null;if(n){(s=new FormData(n)).has&&s.delete&&E(n,"input[data-file],textarea[data-file]").forEach((function(t){var e=t.getAttribute("name");if(e&&s.has(e)){var n=t.value;if(n&&!(n.length<1048576)){s.delete(e);var r=new Blob([n],{type:"text/html"});s.append(e,r,"document.html")}}}));var d=F({},r);if(Y().language&&(d.language=Y().language),!("synchronizer"in d)&&Y().synchronizer&&(d.synchronizer=Y().synchronizer),!("session"in d)&&window.localStorage){var p=window.localStorage.getItem("session");p&&(d.session=p)}for(var h in d){(s.has?s.has(h):n.querySelector("[name='"+h+"']"))&&"synchronizer"==h||s.append(h,d[h])}if(!t){var v=!1;if(s.has&&!s.has("synchronizer")&&!s.has("session")){var m="/?"+new URLSearchParams(s).toString();m.length<2048&&(l=m,s=void 0,v=!0)}v||(c="POST")}}else if(t){var g=F({},r);if(!e&&(Y().language&&(g.language=Y().language),!("synchronizer"in g)&&Y().synchronizer&&(g.synchronizer=Y().synchronizer),!("session"in g)&&window.localStorage)){var y=window.localStorage.getItem("session");y&&(g.session=y)}s=new URLSearchParams(g).toString(),f="application/x-www-form-urlencoded"}else if("string"==typeof r)l=r;else{var b=F({},r);"language"in b&&Y({language:b.language},!0);var w=(l=Z(b)).length>=2048,S=null;if(window.localStorage){var A=window.localStorage.getItem("session");A&&(S=A)}if(w||Y().synchronizer||S){w&&(l=Z());var O=w?F({},r):{};Y().synchronizer&&(O.synchronizer=Y().synchronizer),S&&(O.session=S),c="POST",s=new URLSearchParams(O).toString(),f="application/x-www-form-urlencoded"}}var k=new XMLHttpRequest;return k.open(c,l,!0),k.responseType="application/json"==u?"json":"text",k.setRequestHeader("Accept",u||"text/html,*/*;q=0.9"),f&&k.setRequestHeader("Content-type",f),k.onload=function(){if(u)200==k.status?o&&o(k.response):i&&i();else{var t=M(k.response);if(t&&t.head&&t.body){200==k.status&&E(t.head,'script[type="application/json"]').forEach((function(t){var e=JSON.parse(t.textContent);if(e&&(Y(e),window.localStorage&&e.session))try{window.localStorage.setItem("session",e.session)}catch(t){}}));var e=null;E(t.head,"link[rel=canonical]").forEach((function(t){if(!e){var n=t.getAttribute("href");n&&(e=tt(n))}}));var n=t.body,r=E(n,"header"),a=E(n,"main"),c=E(n,".content aside"),l=n.querySelector(".nav-back"),s=n.querySelector(".nav-next"),f=function(t){if(0==t.length)return null;var e=x(t[0]);return 0==e.length?null:e},d={status:k.status,document:t,rtl:K(t.documentElement),title:t.title||null,canonical:e||null,body:n,header:f(r),main:f(a),aside:f(c),back:l,next:s};200==k.status?o&&o(d):i&&i(d)}else i&&i()}},k.onerror=function(t){i&&i()},t||(k.timeout=3e4),k.ontimeout=function(t){i&&i()},k.withCredentials=!e,k.upload&&a&&(k.upload.onprogress=function(t){a(t.loaded,t.total)}),k.send(s),function(){k.abort()}}function nt(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return rt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ot(t,e,n,r){var o=Array.isArray(n)?n:[n];"prepend"!=e&&"after"!=e||o.reverse(),o.forEach((function(n){switch(e){case"before":t.parentNode.insertBefore(n,t);break;case"prepend":t.insertBefore(n,t.firstChild);break;case"append":t.appendChild(n);break;case"after":t.parentNode.insertBefore(n,t.nextSibling)}c(n,!0),r&&(y(n,"fade-in"),window.setTimeout((function(){b(n,"fade-in")}),1e3))}))}var it=n((function(){E(document.documentElement,"a[data-pagination],button[data-pagination],label[data-pagination]").forEach((function(t){ct(t,2)}))}),1,!0);function at(t,e){if(!e.hasAttribute("data-notify"))return!1;var n=JSON.parse(e.getAttribute("data-notify")),r=!1;return E(t,"[data-notify]").forEach((function(t){var e=JSON.parse(t.getAttribute("data-notify"));e.kind==n.kind&&e.id==n.id&&(r=!0)})),r}function ut(t,e,n,r,o){E(document.documentElement,"[data-notify]").forEach((function(i){var a=JSON.parse(i.getAttribute("data-notify"));if(a&&(a.kind==t&&a.id==e||-1!=(o||[]).indexOf(i))&&!i.closest(".grid-1,.grid-2,.grid-3,.grid-4,.grid-5,.grid-6,.grid-8")&&!i.closest(".overlay.dialog")){var u=[];if(n.forEach((function(n){var r=JSON.parse(n.getAttribute("data-notify"));r&&(r.kind==t&&r.id==e?u.push(n.cloneNode(!0)):E(n,"[data-notify]").forEach((function(n){var r=JSON.parse(n.getAttribute("data-notify"));r&&r.kind==t&&r.id==e&&u.push(n.cloneNode(!0))})))})),0!=u.length){if("post"==t||"track"==t||"share"==t||"posting"==t||"texting"==t){var c=function(n){var r=E(n,"[data-like]").filter((function(n){return JSON.parse(n.getAttribute("data-like"))[t]==e}));if(0==r.length)return null;var o=r[0].closest(".iconnav");return o?{button:k(o,"button"),buttons:x(o,"li")}:null},l=c(i),s=c(u[0]);if(l&&s){var f=E(l.button,".icon,.iconcounter"),d=E(s.button,".icon,.iconcounter");ot(l.button,"prepend",d.map((function(t){return t.cloneNode(!0)}))),P(f);for(var p=0;p<s.buttons.length;++p){var h=l.buttons[p];g(s.buttons[p],"active")?y(h,"active"):b(h,"active")}}}if(!r&&!(i.closest(".chat")||i.closest("aside,.aside")||"post"!=t&&"track"!=t&&"share"!=t&&"posting"!=t&&"chat"!=t)){var v=u.filter((function(t){return t.matches(".card")})),m=u.filter((function(t){return t.matches(".tile")}));if(0==v.length&&0==m.length)return;var w=null;if(i.closest("section[data-glance]")){if(i.matches(".card")){var S=x(i,".tile").filter((function(t){var e=JSON.parse(t.getAttribute("data-notify")||"null");return!!e&&("share"==e.kind||"posting"==e.kind)})),A=0!=S.length?S[0]:i.querySelector("[data-patch]"),O=x(v[0]).filter((function(t){var e=JSON.parse(t.getAttribute("data-notify"));return!!e&&("share"==e.kind||"posting"==e.kind)})),T=O.slice(0,3).filter((function(t){return!at(A.parentNode,t)}));ot(A,"before",T,!0),w=v[0];var j=S.length+Math.min(T.length,3);if(j>3)P(S.slice(3-j))}}else if("post"==t||"track"==t||"chat"==t){var C=[];n.forEach((function(t){if(t.hasAttribute("data-notify")){var e=JSON.parse(t.getAttribute("data-notify"));"share"!=e.kind&&"posting"!=e.kind&&"texting"!=e.kind||C.push(t.cloneNode(!0))}}));var M=C.filter((function(t){return!at(i.parentNode,t)}));ot(i,"after",M,!0),w=v[0]}else if("share"==t||"posting"==t){var N=[];x(m[0]).forEach((function(t){E(t,"section").forEach((function(t){var e=JSON.parse(t.getAttribute("data-notify"));e&&"posting"==e.kind&&N.push(t)}))}));var D=i.querySelector("[data-patch]");if(D){var L=N.filter((function(t){return!at(D.parentNode,t)}));ot(D,"before",L,!0)}w=m[0]}var B=i.querySelector("form[data-patch] input[name=pagination]");if(B){var R=w.querySelector("form[data-patch] input[name=pagination]");R&&(B.value=R.value)}else{var z=i.querySelector("[data-patch]");if(z){var I=w.querySelector("[data-patch]");I&&z.setAttribute("data-patch",I.getAttribute("data-patch"))}}}}}}))}function ct(t,e){var n=t.closest("[data-scroll]");if(A(n||t,e)){if(n){var r=t.offsetTop-n.scrollTop-(t.offsetParent===n.offsetParent?n.offsetTop:0),o=t.offsetHeight,i=n.offsetHeight,a=1*i/3;if(r+o+a<0)return;if(r>i+a)return;if("scroll"==getComputedStyle(n).overflowX){var u=t.offsetLeft-n.scrollLeft-(t.offsetParent===n.offsetParent?n.offsetLeft:0),c=t.offsetWidth,l=n.offsetWidth,s=1*l/3;if(u+c+s<0)return;if(u>l+s)return}}if(!h(t,"unveil"))v(t,"unveil",!0),V(JSON.parse(t.getAttribute("data-pagination")),(function(e){if(S(document.documentElement,t)){var r=null;if(n&&!t.previousElementSibling){r=n.scrollTop;var o=getComputedStyle(t);r-=t.offsetHeight+parseInt(o.marginTop)+parseInt(o.marginBottom)}var i=[];if(t.closest("aside,.aside")&&(e.header||e.aside)){var a=[];e.header&&e.header.forEach((function(t){return a.push.apply(a,nt(E(t,"aside,.aside")))})),e.aside&&a.push.apply(a,nt(e.aside)),a.forEach((function(t){if(0==i.length){var e=x(t,"ol");e.length&&(i=x(e[0]))}}))}else if(t.closest(".grid-2,.grid-3,.grid-4,.grid-5,.grid-6,.grid-8")){var u=(e.header||e.main).filter((function(t){return t.matches(".grid-2,.grid-3,.grid-4,.grid-5,.grid-6,.grid-8")}));i=x(u[0])}else if(0==e.main.length);else if(t.closest("ol")){var c=e.main.filter((function(t){return t.matches("ol")}));c.length&&(i=x(c[0]))}else if(t.closest("[data-notify]")){var l=t.closest("[data-notify]"),s=JSON.parse(l.getAttribute("data-notify")),f=e.main.filter((function(t){if(!t.matches(".card")){var e=JSON.parse(t.getAttribute("data-notify"));return e.kind==s.kind&&e.id==s.id}}));0!=f.length&&E(f[0],"[data-patch]").forEach((function(e){var n,r=x(e.parentNode);(n=i).push.apply(n,nt(r.filter((function(t){return!t.matches("div,[data-patch]")}))));var o=O(t,"[data-patch]");if(o){var a=o.querySelector("input[name=pagination]");if(a){var u=e.querySelector("input[name=pagination]");u&&(a.value=u.value)}}}))}else{for(var d=[],p=k(t);null!==p;p=k(p))d.unshift(p);var h=null;e.main[0].hasAttribute("data-notify")&&(h=JSON.parse(e.main[0].getAttribute("data-notify"))),i=h&&("post"==h.kind||"track"==h.kind||"share"==h.kind||"chat"==h.kind)&&(d.length>=1&&d[0].matches("section.card")&&d.slice(1).every((function(t){return t.matches(".tile")}))||d.length>=3&&d[0].matches("figure")&&d[1].matches("section.card")&&d.slice(2).every((function(t){return t.matches(".tile")})))&&e.main[0].matches("section.card")&&e.main.slice(1).every((function(t){return t.matches(".tile,.spinner")}))?e.main.filter((function(t){return!t.matches("section.card")})):d.length>2&&d[0].matches("div.card")&&d[0].querySelector("input[name=search-chronologic]")&&e.main[0].matches("div.card")&&e.main[0].querySelector("input[name=search-chronologic]")?e.main.slice(1):e.main}i&&ot(t,"before",i,!0),null!==r&&(i.forEach((function(t){var e=getComputedStyle(t);r+=t.offsetHeight+parseInt(e.marginTop)+parseInt(e.marginBottom)})),n.scrollTop=Math.max(r,0)),P(t)}}))}}function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function st(t,e,n,r){var o=t.getAttribute("method"),i=t.getAttribute("enctype")||"",a="POST"==o.toUpperCase(),u=null,c=null,l=null;function s(t){u?(P(u),u=null):l&&l(t)}a&&"multipart/form-data"==i.toLowerCase()?(c=j("progress",{max:"1.0",value:"0.0"}),T(t,u=j("div",{class:"cover"},c))):l=Dt(),function(t,e,n,r,o,i){et(t,null,e,n,r,o,i)}(a,t,e,(function(t){s(!0),n&&n(t)}),(function(t){s(),r&&r(t)}),(function(t,e){c&&c.setAttribute("value",t/e)}))}function ft(t,e){Tt(o(),t,e.canonical,e.rtl,e.title,"obsolete"),jt(e),window.scroll(0,0)}function dt(t){Bt(t,(function(e){ft(t,e)}))}function pt(t){var e=xt in Et?Et[xt].url:window.location.href;if(void 0!==t){var n="string"==typeof t?t:Z(t);window.history.replaceState(window.history.state||{},"",n)}return e}u("a[data-pagination],button[data-pagination],label[data-pagination]",(function(t){window.setTimeout((function(){ct(t)}),1e3)})),u("[data-scroll]",(function(t){x(t,".active").forEach((function(e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();"scroll"==getComputedStyle(t).overflowX?t.scrollLeft=r.left-n.left-Math.max((n.width-r.width)/2,0):t.scrollTop=r.top-n.top-Math.max((n.height-r.height)/2,0)})),l(t,["scroll","resize"],it)}));var ht=0;function vt(){(ht+=1)>1||(y(document.documentElement,"lock"),document.documentElement.offsetWidth)}function mt(){0!=ht&&0==(ht-=1)&&(b(document.documentElement,"lock"),w(document.body,{paddingLeft:null,paddingRight:null}))}function gt(t,e,n){var r=Rt(t,e,(function(){var t=kt.indexOf(r);-1!=t&&kt.splice(t,1),n&&n()}));if(!r)return null;kt.push(r);var o=j("button"),i=j("div",{class:"nav-close"},o);if(T(r.modal,i),"overlay success"==t||"overlay danger"==t||"overlay dialog"==t){var a=null;E(document.documentElement,"input#login+.modal .overlay label.button[for=login]").forEach((function(t){var e=j("button",{class:"button"},C(t.textContent));l(e,"click",(function(t){d(t),this.blur(),r.close()})),a=j("div",{class:"tile cols"},e),T(r.overlay,a)})),r.buttonarea=a}return r}function yt(t){var e=!1;if(E(document.documentElement,"input#login:checked,input#aside:checked").forEach((function(t){t.checked=null,e=!0,mt()})),e&&t)return[!0];var n=[];return kt.forEach((function(r){e&&t||(n.push(r.modal),r.close(),e=!0)})),kt=[],n}c((function(){var t=!1,e=function(){if(!t){t=!0;var e=window.innerWidth-Math.min(document.documentElement.offsetWidth,window.innerWidth);e&&document.documentElement.style.setProperty("--scrollbar",e+"px")}};l(document.documentElement.querySelector("link[rel=stylesheet]"),"load",e),l(window,"load",e)}));var bt=null;function wt(t,e,n){var r=j("div",{class:"spinner"},"<hr>"),o=gt("overlay dialog",r,(function(){o=null,bt=null}));if(o)return Bt(t,(function(t){if(o)if(t.header||t.main){if(t.main&&1==t.main.length&&!t.header&&!t.aside){var n=t.main.slice().shift();E(n,"form > .alert-success").forEach((function(t){b(t,"alert-success"),y(o.overlay,"success")})),E(n,"form > .alert-danger").forEach((function(t){b(t,"alert-danger"),y(o.overlay,"danger")}))}t.header&&y(o.overlay,"wide");var i=t.header||t.main;if(ot(r,"before",i,!1),P(r),o.buttonarea){var a=null,u=i.filter((function(t){return t.matches("form")}));1==u.length&&(a=u.shift().querySelector("button[type=submit]")),a&&(a.parentNode.insertBefore(o.buttonarea,a),T(o.buttonarea,a))}e&&e(t)}else o.close()}),(function(t){o&&(o.close(),n&&n(t))})),bt=o.close,o}var St=null;function At(t,e){if(Ot||!e){var n=null;Ot||(zt((function(){St&&St(),St=null})),n=j("div",{class:"spinner"},"<hr>"),T(Ot.overlay,n)),St=Bt(t,r,(function(t){!t||404!=t.status&&429!=t.status?Ot&&(Ot.close(),Ot=null):r(t)}))}else dt(t);function r(e){if(Ot){if(!e.header&&!e.main)return Ot.close(),void(Ot=null);n&&P(n),Tt(o(),t,e.canonical,e.rtl,e.title,n?"open":null);var r=Ot.overlay;if(e.header)ot(r,"append",j("div",{class:"header"},e.header),!1),y(r,"wide");if(e.main&&e.aside){var i=j("div",{class:"main"},e.main),a=j("div",{class:"aside"},e.aside);ot(r,"append",j("div",{class:"content"},[i,a]),!1),!e.header&&e.aside&&y(r,"wide")}else if(e.main){ot(r,"append",j("div",{class:"main"},e.main),!1)}e.back&&ot(r,"append",e.back,!1),e.next&&ot(r,"append",e.next,!1),Ot.modal.scrollTop=0,setTimeout((function(){Ot&&Ot.modal.focus()}))}}}u("input#login,input#aside",(function(t){l(t,"change",(function(e){t.checked?vt():mt()}))}));var Et={},xt="",Ot=null,kt=[];function Tt(t,e,n,r,o,i){var a=!!Ot,u=a?Ot.modal.scrollTop:window.pageYOffset,c=yt();function l(t){E(t,"video,audio").forEach((function(t){try{t.pause(),t.currentTime=0}catch(t){}}))}var s=x(document.body,":not(.nanoscope):not(.chat):not(.notification)"),f=[],d=null;s.forEach((function(t){if(f.push(t),a&&t===Ot.modal)(d=N(Ot.overlay,":not(.nav-close)")).forEach((function(t){l(t)}));else if(!a||"obsolete"==i){if(a&&t===Ot.modal)return;if(-1!=c.indexOf(t))return;P(t),l(t)}})),xt in Et||(Et[xt]={});var p=Et[xt];if(p.url||(p.url=tt(window.location.href)),p.rtl||(p.rtl=K(document.documentElement)),p.title||(p.title=document.title),p.elements=f,p.scroll=u,a&&"open"!=i&&(p.overlay=d),a&&"obsolete"==i&&(Ot&&Ot.close(!0),Ot=null),e){var h="object"==lt(e)?e:null,v=n||Z(h),m=o||"";t in Et||(Et[t]={});var g=Et[t];g.param||(g.param=h),g.url||(g.url=v),g.rtl||(g.rtl=r),g.title||(g.title=m),g.prev||(g.prev=xt),m&&(document.title=m);var y={key:t,param:h};window.history.pushState(y,m,v)}xt=t}function jt(t){for(var e=[],n=t.body.firstChild;null!==n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&e.unshift(n);e.forEach((function(t){ot(document.body,"prepend",t,!1)})),t.rtl?document.documentElement.setAttribute("dir","rtl"):document.documentElement.removeAttribute("dir")}"state"in window.history&&(xt=(window.history.state||{}).key||""),l(window,"popstate",(function(t){var e=t.state,n=null===e?"":e.key;if(n in Et){var r=Et[n];Tt(n,null,r.url,r.rtl,r.title,null),r.rtl?document.documentElement.setAttribute("dir","rtl"):document.documentElement.removeAttribute("dir"),document.title=r.title,Ot&&!("overlay"in r)&&(Ot&&Ot.close(!0),Ot=null),r.elements.slice().reverse().forEach((function(t){document.body.insertBefore(t,document.body.firstChild),c()})),"overlay"in r?(Ot||zt(),T(Ot.overlay,r.overlay),Ot.modal.scrollTop=r.scroll):window.scroll(0,r.scroll)}else{Bt(e&&"param"in e?e.param:(window.location.pathname||Z())+window.location.search,(function(t){Tt(n,null,t.canonical,t.rtl,t.title,null),jt(t),window.scroll(0,0)}))}}));var Ct,Mt,Pt=null,Nt=0;function Dt(){function t(){Pt&&(Ct+=(1-Ct)/11*Math.random(),Pt.offsetWidth,w(Pt,{transform:"translate3d("+-100*(1-Ct)+"%,0,0)",transition:"all 350ms"}))}Mt&&(clearTimeout(Mt),Mt=null),Pt||(w(Pt=j("div",{class:"nanoscope"}),{transform:"translate3d(-100%,0,0)",opacity:1}),T(document.body,Pt)),Ct=0,setTimeout(t),Mt=window.setInterval(t,200);var e=Nt+=1;return function(t){if(e==Nt&&(Mt&&(clearTimeout(Mt),Mt=null),Pt)){if(!t)return P(Pt),void(Pt=null);w(Pt,{transform:"translate3d(0%,0,0)",transition:"none",opacity:1}),Pt.offsetWidth,Mt=setTimeout((function(){e==Nt&&(w(Pt,{transition:"all 400ms",opacity:0}),Pt.offsetWidth,Mt=setTimeout((function(){e==Nt&&(P(Pt),Pt=null)}),400))}),200)}}}var Lt=Q();function Bt(t,e,n){bt&&bt();var r=Dt();var o=Lt(t,(function(t){r(!0),e&&e(t)}),(function(t){r(!1),n&&n(t)}));return function(){o(),r(!1)}}function Rt(t,e,n){var r=document.documentElement.querySelector("input#login");if(r){var o=j("div",{class:t},e),i=j("div",{class:"modal"},o);l(i,"click",(function(t){S(o,t.target)||u()})),ot(r,"before",i),vt(),i.offsetWidth,y(i,"open");var a=!1;return v(i,"close",(function(){u()})),l(i,["scroll","resize"],it),{modal:i,overlay:o,close:u}}function u(t){a||(a=!0,n&&n(t),mt(),b(i,"open"),setTimeout((function(){i&&(P(i),i=null)}),600))}}function zt(t){Ot=Rt("overlay",null,(function(e){if(t&&t(),!e){for(var n={},r=xt;r in Et&&(n=Et[r],r==xt||"overlay"in Et[r]);r=Et[r].prev);var i=n.param||!0;Tt(o(),i,n.url,n.rtl,n.title,"close")}Ot=null}));var e=j("button"),n=j("div",{class:"nav-close"},e);l(e,"click",(function(t){d(t),this.blur(),Ot&&Ot.close()})),T(Ot.overlay,n)}var It=["stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302"];function Ut(t){var e=t.nodeName;return"IMG"==e||"PICTURE"==e||"SVG"==e||"VIDEO"==e||"AUDIO"==e||"IFRAME"==e||"MAP"==e||"OBJECT"==e||"EMBED"==e}function Ht(t){var e=window.getSelection();return e.rangeCount>0?e.getRangeAt(0):null}function qt(t,e){if(e){var n=window.getSelection();n.removeAllRanges(),n.addRange(e)}}function Ft(t){return!!window.getSelection().isCollapsed}function Jt(){var t=window.getSelection();if(!t.isCollapsed)try{t.collapseToEnd()}catch(t){}}function Wt(t,e){var n=window.getSelection();if(S(t,n.anchorNode)&&S(t,n.focusNode))return!0;if(!e)return!1;var r=document.createRange();return r.selectNodeContents(t),r.collapse(!1),n.removeAllRanges(),n.addRange(r),!0}function Vt(t,e){var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0),o=document.createElement("div");o.innerHTML=e;for(var i,a,u=document.createDocumentFragment();i=o.firstChild;)a=u.appendChild(i);S(t,r.commonAncestorContainer)?(r.deleteContents(),r.insertNode(u)):t.appendChild(u),a&&((r=r.cloneRange()).setStartAfter(a),r.collapse(!0),n.removeAllRanges(),n.addRange(r))}}function Qt(t,e){var r,o=e.toolbar,i=e.buttons,a=e.selectionbuttons,u=e.suggester,c=e.interceptenter,p=!!e.hijackmenu,h=e.interceptpaste,v="string"==typeof t?document.querySelector(t):t,m=v.querySelector("textarea"),g={},w="top"==o,A="bottom"==o,E="demand"==o,x=v.querySelector("[contenteditable=true]");if(!x){(x=document.createElement("div")).setAttribute("contentEditable","true");var O=m.placeholder;O&&x.setAttribute("data-placeholder",O),v.insertBefore(x,v.firstChild)}var k=null;function T(){k&&clearTimeout(k),k=null,y(v,"focus"),E&&y(v,"focused")}function j(){k||document.activeElement==x||(k=setTimeout((function(){k=null,b(v,"focus")}),50))}function C(t,e){var n=document.createElement("input");n.placeholder="www.example.com",e&&(n.value=e.href),n.autofocus=!0,e&&l(n,"input",(function(t){var r=n.value.trim();r&&(e.href=r)})),l(n,"keydown",(function(t){if("Enter"==("key"in t?t.key:13==(t.which||t.keyCode)?"Enter":"")){d(t);var o=n.value.trim();if(e);else if(o){var i=o;if(/^[a-z0-9]+:\/\//.test(o)||(i="http://"+o),r.getSelectedHTML())r.insertLink(i);else{var a=function(t){return t.replace(/[&<>"]/g,(function(t){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"}[t]||t}))};r.insertHTML('<a href="'+a(i)+'">'+a(o)+"</a>")}}r.closePopup().collapseSelection(),x.focus()}})),y(t,"hyperlink"),t.appendChild(n),window.setTimeout((function(){n.focus(),T()}),1)}function M(t,e){function n(t,e,n){var r,o,i,a=Math.floor(6*t),u=6*t-a,c=n*(1-e),l=n*(1-u*e),s=n*(1-(1-u)*e);switch(a%6){case 0:r=n,o=s,i=c;break;case 1:r=l,o=n,i=c;break;case 2:r=c,o=n,i=s;break;case 3:r=c,o=l,i=n;break;case 4:r=s,o=c,i=n;break;case 5:r=n,o=c,i=l}var f=Math.floor(255*r).toString(16),d=Math.floor(255*o).toString(16),p=Math.floor(255*i).toString(16);return"#"+(f.length<2?"0":"")+f+(d.length<2?"0":"")+d+(p.length<2?"0":"")+p}var o=document.createElement("table");o.style.borderCollapse="collapse";for(var i=1;i<15;++i){for(var a=document.createElement("tr"),u=0;u<25;++u){var c=void 0;if(24==u){var s=Math.floor(255/13*(14-i)).toString(16),f=(s.length<2?"0":"")+s;c="#"+f+f+f}else{c=n(u/24,i<=8?i/8:1,i>8?(16-i)/8:1)}var p=document.createElement("td");p.style.backgroundColor=c,p.title=c,l(p,"click",(function(t){var n=this.title;e?r.forecolor(n).closePopup().collapseSelection():r.highlight(n).closePopup().collapseSelection(),d(t)})),a.appendChild(p)}o.appendChild(a)}y(t,"palette"),t.appendChild(o)}function P(t,e){if(t.size>67108864)e();else{var n=document.createElement("img");n.onload=function(){if(2==n.width&&3==n.height){var r=new FileReader;return r.onload=function(n){e(t.type,n.target.result)},r.onerror=function(t){e()},void r.readAsDataURL(t)}function o(n){var r=new FileReader;r.onload=function(r){if(!n||1==n||n>8)return e(t.type,r.target.result);var o=new Image;o.onload=function(){var t=o.naturalWidth||o.width,r=o.naturalHeight||o.height,i=document.createElement("canvas"),a=i.getContext("2d");switch(i.width=n>4?r:t,i.height=n>4?t:r,n){case 2:a.transform(-1,0,0,1,t,0);break;case 3:a.transform(-1,0,0,-1,t,r);break;case 4:a.transform(1,0,0,-1,0,r);break;case 5:a.transform(0,1,1,0,0,0);break;case 6:a.transform(0,1,-1,0,r,0);break;case 7:a.transform(0,-1,-1,0,r,t);break;case 8:a.transform(0,-1,1,0,0,t)}a.drawImage(o,0,0,t,r);var u=i.toDataURL("image/jpeg",.99);e("image/jpeg",u)},o.src=r.target.result},r.onerror=function(t){e()},r.readAsDataURL(t)}if(!window.DataView)return o();var i=new FileReader;i.onload=function(t){var e=t.target.result,n=new DataView(e);if(65496!=n.getUint16(0,!1))return o();for(var r=n.byteLength,i=2;i<r;){if(n.getUint16(i+2,!1)<=8)return o();var a=n.getUint16(i,!1);if(i+=2,65505==a){if(1165519206!=n.getUint32(i+=2,!1))return o();var u=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,u);var c=n.getUint16(i,u);i+=2;for(var l=0;l<c;++l){if(274==n.getUint16(i+12*l,u))return o(n.getUint16(i+12*l+8,u))}}else{if(65280&~a)break;i+=n.getUint16(i,!1)}}return o()},i.onerror=function(t){e()},i.readAsArrayBuffer(t)},n.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k="}}function N(t,e){for(var n=[],r=0,o=0;o<t.length;++o)!function(o){P(t[o],(function(i,a){for(n[o]=function(){a&&e(i,a)};r in n;)n[r](),r++;r==t.length&&(n=null)}))}(o)}function D(t,e,n){for(var r=v,o=r.offsetParent;r;){if("static"!=getComputedStyle(r).position)break;e+=r.offsetLeft,n+=r.offsetTop,o=r,r=r.offsetParent}o.appendChild(t);var i=o.getBoundingClientRect(),a=document.documentElement,u=Math.min(window.innerWidth,Math.max(a.offsetWidth,a.scrollWidth)),c=window.innerHeight,l=t.offsetWidth,s=t.offsetHeight;i.left+e<1?e=1-i.left:i.left+e+l>u-1&&(e=Math.max(1-i.left,u-1-i.left-l)),i.top+n<1?n=1-i.top:i.top+n+s>c-1&&(n=Math.max(1-i.top,c-1-i.top-s)),t.style.left=Math.floor(e)+"px",t.style.top=Math.floor(n)+"px"}l(x,"focus",T),l(x,"blur",j),m&&m.form&&l(m.form,"reset",j);var L=null;function B(t,e,n,o){var i=r.activePopup();for(i&&L===e?(b(i,"animate-down"),b(i,"animate-up")):(y(i=r.openPopup(),"wysiwyg-popup"),y(i,t?"animate-down":"animate-up"),L=e);i.firstChild;)i.removeChild(i.firstChild);return n(i,o),i}function R(t,e,n,r){var o=B(!!w,e,n,r),i=v.getBoundingClientRect(),a=t.getBoundingClientRect(),u=a.left-i.left+Math.floor(t.offsetWidth/2)-Math.floor(o.offsetWidth/2),c=a.top-i.top;w?c+=t.offsetHeight:c-=o.offsetHeight,D(o,u,c)}function z(t,e){var n=v.getBoundingClientRect(),r=x.getBoundingClientRect();D(t,e.left+Math.floor(e.width/2)-Math.floor(t.offsetWidth/2)+r.left-n.left,e.top+e.height+r.top-n.top)}function I(t,e,n,r){z(B(!0,e,n,r),t)}var U=null,H=null;function q(t,e,n,o){n.forEach((function(n){if(n instanceof HTMLElement)return t.appendChild(n),l(n,"focus",T),void l(n,"blur",j);var i=document.createElement("button");if(y(i,"btn"),"icon"in n){var a=document.implementation.createHTMLDocument("");a.body.innerHTML=n.icon;for(var u=a.body.firstChild;null!==u;u=u.nextSibling)i.appendChild(u)}if("attr"in n)for(var c in n.attr)i.setAttribute(c,n.attr[c]);l(i,"focus",T),l(i,"blur",j);var s=null;"click"in n?s=function(){n.click(r,i)}:"popup"in n?s=function(){function t(t){n.popup(r,t,i)}e?I(e,t.toString(),t):R(i,t.toString(),t)}:"browse"in n||"dataurl"in n?s=function(){r.closePopup().collapseSelection();var t=document.createElement("input");t.type="file",t.multiple=!0,t.style.display="none",l(t,"change",(function(e){var o="dataurl"in n;if(e.target.files)if("browse"in n)for(var a=e.target.files,u=0;u<a.length;++u)n.browse(r,t,a[u],i);else N(e.target.files,(function(t,e){n.dataurl(r,t,e,i)}));else o=!0;o&&t.parentNode.removeChild(t),d(e)})),v.appendChild(t);var e=document.createEvent("MouseEvents");e.initEvent("click",!0,!1),t.dispatchEvent(e)}:"action"in n&&(s=function(){switch(n.action){case"link":e?I(e,"link",C,H):R(i,"link",C,H);break;case"bold":r.bold().closePopup().collapseSelection();break;case"italic":r.italic().closePopup().collapseSelection();break;case"underline":r.underline().closePopup().collapseSelection();break;case"strikethrough":r.strikethrough().closePopup().collapseSelection();break;case"colortext":e?I(e,"colortext",M,!0):R(i,"colortext",M,!0);break;case"colorfill":e?I(e,"colorfill",M,!1):R(i,"colorfill",M,!1);break;case"subscript":r.subscript().closePopup().collapseSelection();break;case"superscript":r.superscript().closePopup().collapseSelection();break;case"orderedlist":r.orderedList().closePopup().collapseSelection();break;case"unorderedlist":r.unorderedList().closePopup().collapseSelection();break;case"clearformat":r.removeFormat().closePopup().collapseSelection()}}),i.onclick=function(t){s&&s(),d(t)},t.appendChild(i),"hotkey"in n&&s&&o&&(o[n.hotkey.toLowerCase()]=s)}))}var F=null,J=1,W=null;function V(t){t&&r.expandSelection(F.length,0).insertHTML(t),F=null,W=null,J+=1,r.closePopup()}var Q=n((function(){if(F){var t=J;u(F,(function(e){U&&t==J&&(W=null,e?I(U,"suggestion",(function(t){e.forEach((function(e){var n=document.createElement("div");y(n,"suggestion"),n.innerHTML=e.label,l(n,"click",(function(t){V(e.insert),d(t)})),t.appendChild(n),null===W&&(W=e.insert)}))})):V())}))||V()}}),1,!0);function _(t,e,n,o){if(U=t?e||U:null,H=null,e){for(var i=0;i<n.length;++i){var u=n[i];if(u.nodeType==Node.TEXT_NODE&&(u=u.parentNode),u.closest&&(H=u.closest("a")))break}if(t&&null!==F){var c=r.activePopup();c&&(b(c,"animate-down"),b(c,"animate-up"),z(c,e))}else{var l=!0;o||(a?t?l=!1:n.forEach((function(t){Ut(t)&&(l=!1)})):l=!1),l?I(e,"selection",(function(t){var n=document.createElement("div");y(n,"toolbar"),t.appendChild(n),q(n,e,a)})):V()}}else V()}function X(){T()}function $(){V(),j()}var G,Y=null,K=null;if(m){!x.innerHTML&&m.value&&(x.innerHTML=m.value);var Z=x.innerHTML;if(Y=function(){var t=x.innerHTML;t.match(/^<br[/ ]*>$/i)&&(x.innerHTML="",t=""),t!=Z&&(m.value=t,Z=t,f(m,"input"))},l(x,"focus",(function(){f(m,"focus")})),l(x,"blur",(function(){Y(),f(m,"blur")})),K=n(Y,200,!0),l(x,["input","propertychange","textInput","paste","cut","drop"],K),window.MutationObserver)new MutationObserver(K).observe(x,{attributes:!0,childList:!0,characterData:!0,subtree:!0});var tt=m.form;tt&&l(tt,"reset",(function(){x.innerHTML="",K(),G(!0),b(v,"focused")}))}var et=null,nt=null;if(_){nt=n((function(t,e,n){var r=Ft(),o=function(t){var e=window.getSelection();if(!e.rangeCount)return[];for(var n=[],r=0;r<e.rangeCount;++r)for(var o=e.getRangeAt(r),i=o.startContainer,a=o.endContainer;i;){if(i!=t){var u=!1;if(e.containsNode)u=e.containsNode(i,!0);else{var c=document.createRange();c.selectNodeContents(i);for(var l=0;l<e.rangeCount;++l){var s=e.getRangeAt(l);if(s.compareBoundaryPoints(s.END_TO_START,c)>=0&&s.compareBoundaryPoints(s.START_TO_END,c)<=0){u=!0;break}}}u&&n.push(i)}i=function(t,e){if(t.firstChild)return t.firstChild;for(;t;){if(t==e)return null;if(t.nextSibling)return t.nextSibling;t=t.parentNode}return null}(i,i==a?a:t)}return 0==n.length&&S(t,e.focusNode)&&e.focusNode!=t&&n.push(e.focusNode),n}(x),i=null===t||null===e?null:{left:t,top:e,width:0,height:0},a=function(){var t=window.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).cloneRange(),n=e.getBoundingClientRect();if(n&&n.left&&n.top&&n.right&&n.bottom)return{left:Math.floor(n.left),top:Math.floor(n.top),width:Math.floor(n.right-n.left),height:Math.floor(n.bottom-n.top)};for(var r=e.getClientRects?e.getClientRects():[],o=0;o<r.length;++o){var i=r[o];if(i.left&&i.top&&i.right&&i.bottom)return{left:Math.floor(i.left),top:Math.floor(i.top),width:Math.floor(i.right-i.left),height:Math.floor(i.bottom-i.top)}}return!1}();if(a&&(i=a),i){var u=x.getBoundingClientRect();i.left-=Math.floor(u.left),i.top-=Math.floor(u.top),i.left<0&&(i.left=0),i.top<0&&(i.top=0),i.width>x.offsetWidth&&(i.width=x.offsetWidth),i.height>x.offsetHeight&&(i.height=x.offsetHeight)}else if(o.length)for(var c=0;c<o.length;++c){var l=o[c];if(l.nodeType==Node.ELEMENT_NODE){i={left:l.offsetLeft,top:l.offsetTop,width:l.offsetWidth,height:l.offsetHeight};break}}_(r,i,o,n)}),1,!0)}var rt=null;function ot(t){var e=t.target||t.srcElement;e.nodeType==Node.TEXT_NODE&&(e=e.parentNode),S(rt,e)||it()}function it(){rt&&(rt.parentNode&&rt.parentNode.removeChild(rt),rt=null,s(window,"mousedown",ot,!0),$&&$())}function at(t){if("key"in t){var e=t.key;switch(e){case"Spacebar":return" ";case"Left":return"ArrowLeft";case"Up":return"ArrowUp";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Esc":return"Escape"}return e}switch(t.which||t.keyCode){case 8:return"Backspace";case 13:return"Enter";case 27:return"Escape";case 33:return"PageUp";case 34:return"PageDown";case 35:return"End";case 36:return"Home";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown"}return String.fromCharCode(t.which||t.keyCode||t.charCode)}function ut(t,e){var n=null,r=null;t.clientX&&t.clientY?(n=t.clientX,r=t.clientY):t.pageX&&t.pageY&&(n=t.pageX-window.pageXOffset,r=t.pageY-window.pageYOffset),(t.which&&3==t.which||t.button&&2==t.button)&&(e=!0),s(window,"mouseup",ut),et&&(et=Ht()),!p&&e||nt&&nt(n,r,e)}l(x,"keydown",(function(t){var e=at(t),n=t.shiftKey||!1,o=t.altKey||!1,i=t.ctrlKey||!1,a=t.metaKey||!1;if(c&&"Enter"==e&&!n&&!o&&!i&&!a&&(r.sync(),c()))return r.closePopup(),void d(t);if(1==e.length&&!n&&!o&&i&&!a){var l=e.toLowerCase();if(g[l])return g[l](),void d(t)}!u||function(t){switch(t){case"Backspace":if(F&&(F=F.slice(0,-1)),!F)return V(),!0;break;case"Enter":if(W)return V(W),!1;case"Escape":case"PageUp":case"PageDown":case"End":case"Home":case"ArrowLeft":case"ArrowUp":case"ArrowRight":case"ArrowDown":if(F)return V(),!0}return Q(),!0}(e)?et&&(et=Ht()):d(t)})),l(x,"keypress",(function(t){var e=at(t);if(!u||function(t){return 1==t.length&&(F||(F=""),F+=t),Q(),!0}(e)){if(et&&(et=Ht()),nt&&nt(null,null,!1),K)switch(e){case"PageUp":case"PageDown":case"End":case"Home":case"ArrowLeft":case"ArrowUp":case"ArrowRight":case"ArrowDown":break;default:K()}}else d(t)})),l(x,"keyup",(function(t){et&&(et=Ht()),nt&&nt(null,null,!1)}));var ct=null;function lt(t,e,n){if(qt(0,et),x.focus(),!Wt(x,n))return!1;try{return!(document.queryCommandSupported&&!document.queryCommandSupported(t))&&document.execCommand(t,!1,e)}catch(t){}return!1}function st(t){if(!t)return!1;var e=[];if(t.items)for(var n=t.items,r=0;r<n.length;++r){var o=n[r];if("file"==o.kind&&o.type.match(/^image\//)){var i=o.getAsFile();e.push(i);break}}else if(t.files)for(var a=t.files,u=0;u<a.length;++u)e.push(a[u]);return!!e.length&&(N(e,(function(t,e){lt("insertImage",e)})),!0)}if(l(x,"mousedown",(function(t){s(window,"mouseup",ut),l(window,"mouseup",ut),ct=t.target})),l(x,"mouseup",(function(t){var e=t.target;if(e&&e.nodeType==Node.ELEMENT_NODE&&e===ct&&Ut(e)&&S(x,e,!0)){var n=window.getSelection(),r=document.createRange();r.setStartBefore(e),r.setEndAfter(e),n.removeAllRanges(),n.addRange(r)}ut(t),K&&K()})),l(x,["dblclick","selectionchange"],(function(t){ut(t)})),p&&l(x,"contextmenu",(function(t){ut(t,!0),d(t)})),l(x,"paste",(function(t){if(st(t.clipboardData))d(t);else if(h){var e=t.clipboardData.getData("text/html"),n=e&&h(e);if(!n)return;d(t),Vt(x,n)}})),l(x,"drop",(function(t){st(t.dataTransfer)&&d(t)})),G=function(t){K&&K(),t?(Jt(),et=null):et&&(et=Ht())},r={sync:function(){return Y&&Y(),this},getHTML:function(){return x.innerHTML},setHTML:function(t){return x.innerHTML=t||"",G(!0),this},getSelectedHTML:function(){return qt(0,et),Wt(x)?function(){if(Ft())return null;var t=window.getSelection();if(t.rangeCount){for(var e=document.createElement("div"),n=0;n<t.rangeCount;++n){var r=t.getRangeAt(n).cloneContents();e.appendChild(r)}return e.innerHTML}return null}():null},collapseSelection:function(){return Jt(),et=null,this},expandSelection:function(t,e){return qt(0,et),Wt(x)?(function(t,e,n){var r=window.getSelection();if(r.modify){for(var o=0;o<e;++o)r.modify("extend","backward","character");for(var i=0;i<n;++i)r.modify("extend","forward","character")}else{var a=r.getRangeAt(0);a.setStart(a.startContainer,a.startOffset-e),a.setEnd(a.endContainer,a.endOffset+n),r.removeAllRanges(),r.addRange(a)}}(0,t,e),et=Ht(),this):this},openPopup:function(){return et||(et=Ht()),function(){if(rt)return rt;l(window,"mousedown",ot,!0),rt=document.createElement("DIV");var t=x.parentNode,e=x.nextSibling;return e?t.insertBefore(rt,e):t.appendChild(rt),X&&X(),rt}()},activePopup:function(){return rt},closePopup:function(){return it(),this},removeFormat:function(){for(var t=0;t<4;++t)lt("removeFormat"),lt("unlink");return G(),this},bold:function(){return lt("bold"),G(),this},italic:function(){return lt("italic"),G(),this},underline:function(){return lt("underline"),G(),this},strikethrough:function(){return lt("strikeThrough"),G(),this},forecolor:function(t){return lt("foreColor",t),G(),this},highlight:function(t){return lt("hiliteColor",t)||lt("backColor",t),G(),this},fontName:function(t){return lt("fontName",t),G(),this},fontSize:function(t){return lt("fontSize",t),G(),this},subscript:function(){return lt("subscript"),G(),this},superscript:function(){return lt("superscript"),G(),this},insertLink:function(t){return lt("createLink",t),G(!0),this},insertImage:function(t){return lt("insertImage",t,!0),G(!0),this},insertHTML:function(t){return lt("insertHTML",t,!0)||(qt(0,et),Wt(x,!0),Vt(x,t)),G(!0),this},orderedList:function(){return lt("insertOrderedList"),G(),this},unorderedList:function(){return lt("insertUnorderedList"),G(),this}},i){var ft=document.createElement("div");if(y(ft,"toolbar"),w)y(ft,"toolbar-top"),v.insertBefore(ft,v.firstChild);else if(A)y(ft,"toolbar-bottom"),v.appendChild(ft);else{var dt=document.createElement("div");y(dt,"toolbar-auto"),v.appendChild(dt),dt.appendChild(ft)}q(ft,null,i,g)}return r}function _t(t){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_t(t)}function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xt(Object(n),!0).forEach((function(e){Gt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=_t(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_t(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yt(t,e){var o=$t($t({},{image:"Insert image",attach:"Attach files",smileys:"Smilies",link:"Insert link",bold:"Bold",italic:"Italic",underline:"Underline",striketrough:"Strikethrough",textcolor:"Text color",backcolor:"Background color",clear:"Clear format"}),Y().i18n.wysiwyg),i=t.closest("form");if(i){var a=t.querySelector("div[contenteditable=true]"),u="chat"==e?"bottom":"attachment"==e&&a?"demand":"top";""!=e&&"document"!=e||y(t,"document");var s=[],d=[];if("document"==e||"attachment"==e||"chat"==e){var p={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"/></svg>',dataurl:function(t,e,n,r){e.match(/^image/i)&&t.insertHTML(' <img src="'+n+'"> <br><br> ')},attr:{title:o.image}};s.push(p)}var h=null;if(("attachment"==e||"chat"==e)&&i.matches("[enctype='multipart/form-data']")){var v=null,m=1,g=[],A={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"/></svg>',browse:function(t,e,n,r){e.name="attachment-"+m++,g.push(e),r.style.position="relative",v?v.textContent=(parseInt(v.textContent)+1).toString():(w(v=j("div",void 0,C("1")),{position:"absolute",top:"0",right:"0",fontSize:"0.6em",padding:"1px 2px",color:"white",backgroundColor:"#fa3e3e",borderRadius:"2px"}),T(r,v))},attr:{title:o.attach}};s.push(A),h=function(){v&&P(v),v=null,g.forEach((function(t){P(t)})),g=[]}}var x={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"/></svg>',popup:function(e,n,r){var o=t.offsetWidth;w(n,{display:"inline-block",maxWidth:Math.floor(8*o/9)+"px",padding:"0.5rem",textAlign:"center",whiteSpace:"normal"}),n.unselectable=!0;[128522,128521,128519,128556,128514,129322,128525,128526,129303,129325,128523,128536,129395,129396,129297,129393,128564,129296,128562,128561,129402,128557,129323,129300,129317,128555,128548,128545,128567,129326,129298,129301,129397,129398,128079,128591].forEach((function(t,r){0!=r&&T(n,C(" "));var o=String.fromCodePoint(t),i="/emoji/"+encodeURIComponent(o).replace(/\%/g,""),a=j("img",{src:i,class:"emoji",width:64,height:64,alt:o,unselectable:!0});l(a,"click",(function(){var t=' <img class="emoji" src="'+Kt(i)+'" width="64" height="64" alt="'+o+'"> ';e.insertHTML(t)})),T(n,a)}))},attr:{title:o.smileys}};if(s.push(x),"title"!=e){var O={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',action:"link",attr:{title:o.link}};s.push(O),d.push(O)}var k={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"/></svg>',action:"bold",hotkey:"b",attr:{title:o.bold}};"chat"!=e&&s.push(k),d.push(k);var N={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4h-8z"/></svg>',action:"italic",hotkey:"i",attr:{title:o.italic}};"chat"!=e&&s.push(N),d.push(N);var D={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/></svg>',action:"underline",hotkey:"u",attr:{title:o.underline}};"chat"!=e&&s.push(D),d.push(D);var L={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 2.21.34.66.22 1.23.54 1.69.94.47.4.83.88 1.08 1.43s.38 1.15.38 1.81h-3.01c0-.31-.05-.59-.15-.85-.09-.27-.24-.49-.44-.68-.2-.19-.45-.33-.75-.44-.3-.1-.66-.16-1.06-.16-.39 0-.74.04-1.03.13s-.53.21-.72.36c-.19.16-.34.34-.44.55-.1.21-.15.43-.15.66 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.05-.08-.11-.17-.15-.25zM21 12v-2H3v2h9.62c.18.07.4.14.55.2.37.17.66.34.87.51s.35.36.43.57c.07.2.11.43.11.69 0 .23-.05.45-.14.66-.09.2-.23.38-.42.53-.19.15-.42.26-.71.35-.29.08-.63.13-1.01.13-.43 0-.83-.04-1.18-.13s-.66-.23-.91-.42c-.25-.19-.45-.44-.59-.75s-.25-.76-.25-1.21H6.4c0 .55.08 1.13.24 1.58s.37.85.65 1.21c.28.35.6.66.98.92.37.26.78.48 1.22.65.44.17.9.3 1.38.39.48.08.96.13 1.44.13.8 0 1.53-.09 2.18-.28s1.21-.45 1.67-.79c.46-.34.82-.77 1.07-1.27s.38-1.07.38-1.71c0-.6-.1-1.14-.31-1.61-.05-.11-.11-.23-.17-.33H21V12z"/></svg>',action:"strikethrough",hotkey:"s",attr:{title:o.striketrough}};"chat"!=e&&s.push(L),d.push(L);var B={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-opacity=".36" d="M0 20h24v4H0v-4z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/></svg>',action:"colortext",attr:{title:o.textcolor}};"chat"!=e&&s.push(B),d.push(B);var R={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5z"/><path fill-opacity=".36" d="M0 20h24v4H0v-4z"/></svg>',action:"colorfill",attr:{title:o.backcolor}};"chat"!=e&&s.push(R),d.push(R);var z={icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 8V5H6.39l3 3h1.83l-.55 1.28 2.09 2.1L14.21 8zM3.41 4.86L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21l1.41-1.41z"/></svg>',action:"clearformat",attr:{title:o.clear}};"chat"!=e&&s.push(z);var I=i.querySelector("button[type=submit][hidden]");I&&(I.removeAttribute("hidden"),s.push(I));var U=null,H=null,q=null;Y().user&&(H=r((function(){var e=t.closest("[data-notify]");if(e){var n=JSON.parse(e.getAttribute("data-notify")),r=Y().user;!function(t,e){if(!Xe||Xe.readyState!=window.WebSocket.OPEN)return!1;var n=JSON.parse(t.getAttribute("data-notify"));if(!n)return!1;var r=Ve(Ve({},n),{},{message:e}),o=JSON.stringify(r);Xe.send(o)}(e,{kind:"typing",user:{id:r.id,name:r.name}}),U=Gt({},n.kind,n.id)}}),1e3));var F=Q(),J=n((function(t,e){var n=U?$t($t({},U),{},{suggestion:t.substring(1)}):{suggestion:t.substring(1),users:""};F(n,(function(n){var r=n.main||[];if(0!=r.length){for(var o=[],i=0;i<5&&i<r.length;++i){var a=r[i],u=JSON.parse(a.getAttribute("data-identifier")||"null");if(u){var c=a.querySelector("cite");if(c){var l=c.querySelector("svg");l&&P(l);var s=c.textContent;if(s){var f=s,d=new RegExp("^("+t.substring(1).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")(.*)$","i");d.test(f)&&(f=f.replace(d,"$1<b>$2</b>")),f="<cite>"+f+(l?l.outerHTML:"")+"</cite>";var p=a.querySelector("figure>img,figure>svg");p&&(f='<span class="icon">'+p.outerHTML+"</span>"+f),o.push({label:f,insert:'&nbsp;<a href="/user/'+Kt(u.id)+'">@'+Kt(s)+"</a>&nbsp; "})}}}}e(o)}else e(null)}))}),200,!0),W=null,V=null;"chat"==e&&(W=function(){return f(i,"submit"),document.activeElement&&S(t,document.activeElement)&&(V=document.activeElement).blur(),!0});var _=Qt(t,{toolbar:u,buttons:s,selectionbuttons:d,interceptpaste:function(t){var e=M(t);if(e){var n=!1;if(E(e.body,"img[src][alt]").forEach((function(t){var e=t.getAttribute("alt");e&&/^(?:[#\*0-9\xA9\xAE\u200D\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\uFE0F]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDFF\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFF]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])+$/.test(e)&&(t.parentNode.replaceChild(C(" "+e+" "),t),n=!0)})),n)return e.body.innerHTML}},suggester:function(t,e){return H&&H(),q&&q(),"@"==t[0]&&(t.length<=2||J(t,e),!0)},interceptenter:W,hijackmenu:!1});return c(t,!0),l(i,"reset",(function(){V?V.focus():"chat"!=e&&document.activeElement&&S(t,document.activeElement)&&document.activeElement.blur(),h&&h()})),""!=e&&"title"!=e&&"document"!=e||E(t,"textarea[required]").forEach((function(n){if(n.setCustomValidity){var o=!0;l(n,"input",(function(e){n.setCustomValidity(""),o=!0,b(t,"invalid")})),q=r((function(){n.setCustomValidity(""),o=!0,b(t,"invalid")}),100),l(n,["blur","invalid"],(function(r){var i=null;if(n.hasAttribute("required")){var a=M(n.value);0!=(a.body&&a.body.textContent||"").replace(/\s+/g,"").length||a.body.querySelector("document"==e?"img":"img[src^=\\/emoji\\/][alt]")||(i=String.fromCharCode(160))}n.setCustomValidity(i||""),null!==i&&n.reportValidity&&o&&setTimeout((function(){n.reportValidity()})),o=!1,null!==i&&y(t,"invalid")}))}})),_}}function Kt(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Zt(t,e){ne(t,e)}function te(){var t=Math.floor(Math.min(window.innerWidth,window.innerHeight)/200);return Math.min(Math.max(t,2),5)}function ee(t,e){return t?1!=t.length?t:t.filter((function(t){if(t.matches(".alert-success")){if(t.hasAttribute("data-modify"),t.hasAttribute("data-remove")){var n=JSON.parse(t.getAttribute("data-remove")),r=!1;if(E(document.documentElement,"[data-notify]").forEach((function(t){var e=JSON.parse(t.getAttribute("data-notify"));e&&e.kind==n.kind&&e.id==n.id&&("post"!=n.kind&&"track"!=n.kind||t.matches("[data-glance]"))&&(P(t),r=!0)})),r)return!1}return b(t,"alert-success"),ne(t,null,"success",!0),!1}return!t.matches(".alert-danger")||(b(t,"alert-danger"),e?ne(t,null,"danger",!0):gt("overlay danger",t),!1)})):[]}function ne(t,e,n,r){var o=document.documentElement.querySelector(".notification");o||(o=j("div",{class:"notification"}),T(document.body,o));var i=j("div",null,t);"success"==n?y(i,"success"):"danger"==n&&y(i,"danger");var a=j("span",{class:"close"});T(i,a);for(var u=[],c=o.firstChild;null!==c;c=c.nextSibling)h(c,"timeout")||u.push(c);for(var s=te()-1;s<u.length;++s)f(u[s],"click");ot(o,"prepend",i,!0);var p=null;function m(){clearTimeout(p),i&&(y(i,"fade-out"),setTimeout((function(){i&&(P(i),i=null,e&&e())}),1e3))}l(i,"click",m),E(i,"a").forEach((function(t){l(t,"click",m)})),l(a,"click",(function(t){d(t),m()})),r&&(p=setTimeout(m,5e3),v(i,"timeout",!0),l(i,"mouseover",(function(){p&&(clearTimeout(p),p=null)})),l(i,["mouseout","mouseleave"],(function(t){t.target==i&&(p||(p=setTimeout(m,5e3)))})))}function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=re(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==re(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}u("[data-wysiwyg]",(function(t){var e=t.getAttribute("data-wysiwyg");window.setTimeout((function(){Yt(t,"title"==e?"title":"document"==e?"document":"posting"==e?"attachment":"")}))}));function ae(t,e){var n=Y().user,r=null;function o(){var t=window.AudioContext||window.webkitAudioContext||window.mozAudioContext;if(t){var e=new t,n=e.createOscillator(),o=e.createOscillator();n.frequency.value=400,o.frequency.value=450;var a=e.createGain();a.gain.value=0;var u=e.createBiquadFilter();u.type="lowpass",u.frequency.value=8e3,n.connect(a),o.connect(a),a.connect(u),u.connect(e.destination),n.start(0),o.start(0);for(var c=e.sampleRate,l=3*c,s=e.createBuffer(1,l,c),f=s.getChannelData(0),d=0;d<l;++d)(d/c>0&&d/c<.4||d/c>.6&&d/c<1)&&(f[d]=.75);var p=e.createBufferSource();p.buffer=s,p.loop=!0,p.connect(a.gain),p.start(0),i(),r=function(){n.stop(0),o.stop(0),p.stop(0)}}}function i(){r&&(r(),r=null)}var a=null,u=null,c={},s=!1,f=null,p=null,h=null;function v(){f&&f(),f=null,p=null,h=null}function m(){u||(u=gt("meeting",null,(function(){v()})));var e=u.overlay,n=e.clientWidth||e.offsetWidth,r=e.clientHeight||e.offsetHeight,o=null,i=null,m=!1,g=0;for(var y in c)g+=1;2==g&&"cam"in c&&(g=1,m=!0);for(var w=1;w<=g;++w){var S=Math.min(n/w,r/g*w/9*16);(!o||i<S)&&(o=w,i=S)}var A=[],E=[],x=function(){var t=c[O];if(m&&"cam"==O)return E.push(t.video),1;var e=j("figure",{style:"width:"+Math.floor(i/n*100)+"%;"},t.video);if("cam"==O)E.push(e);else{var r=a.user.filter((function(e){return e.id==t.user})),o=j("div",{class:"bottomleft shaded"});o.textContent=r[0].name,T(e,o),A.push(e)}};for(var O in c)x();for(;e.firstChild;)e.removeChild(e.firstChild);var k=[].concat(A,E);for(var C in k)T(e,k[C]);var M=t||s?null:j("button",{class:"answer muted"}),N=j("button",{class:"hangup muted"}),D=j("div",{class:s?"keypad":"keypad dialup"},[M,N]);T(e,D),M&&l(M,"click",(function(t){d(t),s=!0,p&&p(),p=null,h=null,M&&P(M),b(D,"dialup")})),l(N,"click",(function(t){d(t),h?h():f&&f(),f=null,p=null,h=null}))}function g(t,e,n,r,o){var i=j("video",{playsinline:!0,autoplay:!0});i.srcObject=t,e&&(i.muted=!0,i.style.transform="scaleX(-1)"),c[n]={video:i,user:r,params:o||{}},m();var a=i.play();void 0!==a&&a.then((function(){})).catch((function(t){e||(i.muted=!0,i.play().then((function(){})).catch((function(t){})))}))}var w=null;function S(t){if(t!==w){null!==w&&w in c&&b(c[w].video,"speaking");var e=0;for(var n in c)e+=1;e>=3&&t in c&&y(c[t].video,"speaking"),w=t}}f=ue((function(){return new Promise((function(t,r){function i(){var e=("http:"!=location.protocol||a.meeting.port?"wss://":"ws://")+a.meeting.host+(a.meeting.port?":"+a.meeting.port:"")+(a.meeting.path||"/")+a.id+"/"+n.id+"?name="+encodeURIComponent(n.name);t(e)}"function"==typeof e?e().then((function(t){o(),a=t,i()})).catch(r):(a=e,i())}))}),t?null:function(){return new Promise((function(t,e){s?t():(p=t,h=e)}))},(function(e){for(var n in t||i(),c)c[n].video.muted&&(c[n].video.muted=!1);g(e,!0,"cam")}),(function(e,r,a,u){if(t&&(i(),s=!0),t||o(),!t&&!s&&a&&n.id==a)return v();g(e,!1,r,a,u)}),(function(e,r,o){return e in c&&delete c[e],t||s||!r||n.id!=r?0==Object.keys(c).filter((function(t){return t&&"cam"!=t})).length?v():void m():v()}),(function(t,e){if(t.audio&&null!==t.audio.volume)S("cam");else for(var n in e){var r=e[n];"audio"in r&&(null!==r.audio.volume&&S(n))}}),(function(t){i(),u&&u.close(),t&&gt("overlay danger",C(t))}))}function ue(t,e,n,r,o,i,u){var c=!1,s=null,f=null,d=null,p={},h=null,v=null,m=null,g=null,y=null,b={};if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){a.e(888).then(a.t.bind(a,646,23)).then((function(a){if(!c){try{s=new a.Device}catch(t){return void u("Browser does not supported real time video")}e?t().then((function(t){var r=O(t);y&&e().then((function(){y&&E().then((function(t){f=t,y?(n(t),r(t)):x()})).catch((function(t){A()}))})).catch((function(){A()}))})).catch((function(t){u()})):E().then((function(e){f=e,c?x():(n(e),t().then(O).catch((function(t){x(),u()})))})).catch((function(t){u(t.message)}));var w=!1}function E(){var t={video:{width:{min:320,ideal:768,max:1280},height:{min:180,ideal:432,max:720}},audio:{}},e=navigator.mediaDevices.getSupportedConstraints();return e.aspectRatio&&(t.video.aspectRatio=16/9),e.frameRate&&(t.video.frameRate={max:30}),e.facingMode&&(t.video.facingMode="user"),e.channelCount&&(t.audio.channelCount=2),e.echoCancellation&&(t.audio.echoCancellation=!0),e.autoGainControl&&(t.audio.autoGainControl=!0),e.noiseSuppression&&(t.audio.noiseSuppression=!0),new Promise((function(e,n){navigator.mediaDevices.getUserMedia(t).then((function(t){0==t.getVideoTracks().length&&0==t.getAudioTracks().length?n():e(t)})).catch((function(t){n(t.message)}))}))}function x(){f&&(f.getTracks().forEach((function(t){t.stop()})),f=null)}function O(t){function e(t){var e=[];0!=t.getVideoTracks().length&&e.push("video"),0!=t.getAudioTracks().length&&e.push("audio"),S("transport",{record:1==e.length?e[0]:e}).then((function(e){var n={id:e.transport,iceParameters:e["ice-parameters"],iceCandidates:e["ice-candidates"],dtlsParameters:e["dtls-parameters"]};(h=s.createSendTransport(n)).on("connect",(function(t,e,r){S("connect",{transport:n.id,"dtls-parameters":t.dtlsParameters}).then((function(t){t.error?r():e()}))})),h.on("produce",(function(t,e,r){S("produce",{transport:n.id,kind:t.kind,"rtp-parameters":t.rtpParameters}).then((function(t){t.error?r():e({id:t.producer})}))})),h.on("connectionstatechange",(function(t){switch(t){case"new":case"connecting":case"connected":case"disconnected":default:break;case"closed":case"failed":A()}})),0!=t.getVideoTracks().length&&h.produce({track:t.getVideoTracks()[0]}).then((function(t){v=t})),0!=t.getAudioTracks().length&&h.produce({track:t.getAudioTracks()[0]}).then((function(t){m=t}))}))}var n=[],a=!1,c=[],E={};function O(t,e,i,u,l){function f(){n.forEach((function(t){var e=t.producer,n=t.peer,i=t.user,a=t.params;S("consume",{transport:g.id,producer:e,"rtp-capabilities":s.rtpCapabilities}).then((function(t){g.consume({producerId:e,id:t.consumer,kind:t.kind,rtpParameters:t["rtp-parameters"],type:t.type,producerPaused:t["producer-paused"]}).then((function(t){function u(){S("resume",{consumer:t.id}).then((function(e){t.resume(),n in E?E[n].addTrack(t.track):(E[n]=new MediaStream([t.track]),r(E[n],n,i,a))}))}t.on("trackended",(function(){n in E&&(delete E[n][e],0==Object.keys(E[n]).length&&delete E[n]),n in E||n in p||(p[n]=!0,o(n,i,a))})),"connected"!==g.connectionState?c.push(u):u()}))}))})),n=[]}t&&n.push({producer:t,kind:e,peer:i,user:u,params:l}),s.loaded&&0!=n.length&&(g?f():a||(a=!0,S("transport").then((function(t){var e={id:t.transport,iceParameters:t["ice-parameters"],iceCandidates:t["ice-candidates"],dtlsParameters:t["dtls-parameters"]};(g=s.createRecvTransport(e)).on("connect",(function(t,n,r){S("connect",{transport:e.id,"dtls-parameters":t.dtlsParameters}).then((function(t){t.error?r():n()}))})),g.on("connectionstatechange",(function(t){if("connected"===t){for(var e in c)c[e]();c=[]}else"closed"!==t&&"failed"!==t&&"disconnected"!==t||A()})),f()}))))}return l(y=new WebSocket(t),"open",(function(t){})),l(y,"close",(function(t){h&&h.close(),h=null,v=null,m=null,g&&g.close(),g=null,s=null,y=null,x(),u()})),l(y,"error",(function(t){y=null})),l(y,"message",(function(t){var n=JSON.parse(t.data);if(n.transaction){var r=b[n.transaction];if(!r)return;r.resolve(n)}else if(s)switch(n.request){case"setup":if(d=n.peer,n.user,!s.loaded){var a=n["rtp-capabilities"];a.headerExtensions=a.headerExtensions.filter((function(t){return"urn:3gpp:video-orientation"!==t.uri})),s.load({routerRtpCapabilities:a}).then((function(){f?e(f):w=!0,O()}))}break;case"hangup":n.peer in p||(p[n.peer]=!0,o(n.peer,n.user,n.params));break;case"associate":O(n.producer,n.kind,n.peer,n.user,n.params);break;case"dissociate":n.peer in E&&(delete E[n.peer][n.producer],0==Object.keys(E[n.peer]).length&&delete E[n.peer]),n.peer in E||n.peer in p||(p[n.peer]=!0,o(n.peer,n.user,n.params));break;case"stats":if(n.peers){var u={},c={};for(var l in n.peers){var h=n.peers[l];l==d||"video"in h&&v&&h.video.producer==v.id||"audio"in h&&m&&h.audio.producer==m.id?u=h:c[l]=h}i(u,c)}}})),function(t){w&&e(t)}}}));var w=0;return A}function S(t,e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(n),!0).forEach((function(e){ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({request:t},e);w+=1,n.transaction=w;var r=JSON.stringify(n);return y.send(r),new Promise((function(t,e){b[n.transaction]={resolve:t,reject:e,payload:n}}))}function A(){c=!0,y&&(h?S("disconnect",{transport:h.id}).then((function(t){t.error,y.close()})):y.close())}u("Browser does not supported real time video")}function ce(t){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(t)}function le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?le(Object(n),!0).forEach((function(e){fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fe(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ce(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ce(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function de(t){return function(t){if(Array.isArray(t))return pe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return pe(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}u("[data-record]",(function(t){var e=JSON.parse(t.getAttribute("data-record"));l(t,"click",(function(t){d(t),this.blur(),ae(!0,e)}))})),u("[data-chat]",(function(t){var e=JSON.parse(t.getAttribute("data-chat"));e&&l(t,"click",(function(t){d(t),this.blur(),yt(),Se(e.chat,e.name,e.user,e.caption,!0,e.notify)}))})),u("[data-videochat]",(function(t){var e=JSON.parse(t.getAttribute("data-videochat"));l(t,"click",(function(t){ae(!0,(function(){return new Promise((function(t,n){_(e,(function(e){var r=null;e.main.forEach((function(t){t.matches("data")&&(r=JSON.parse(t.getAttribute("value")))})),r?t(r):n()}),(function(){n()}))}))}))}))}));var he=null,ve=null,me=!1;function ge(t){t?(he||(he=document.title),me=!1,window.clearInterval(ve),ve=window.setInterval((function(){document.title=me?he:t,me=!me}),2e3)):(window.clearInterval(ve),me&&(document.title=he))}function ye(){var t=!1;return E(document.documentElement,"nav").forEach((function(e){"auto"!=getComputedStyle(e).bottom&&(t=!0)})),t}function be(t,e,n){if(n&&(t.loadmore=null),!e)return!1;var r=[];e.forEach((function(e){if(e.matches("[data-notify]")){var o=JSON.parse(e.getAttribute("data-notify"));if("chat"==o.kind){if(t.chat=o.id,t.win.hasAttribute("data-notify")||(t.win.setAttribute("data-notify",JSON.stringify(o)),tn()),t.pagination&&!n){var i=e.querySelector("form[data-patch] input[name=pagination]");i&&(t.pagination.value=i.value)}return}}else if(e.matches(".card"))return;if(e.matches("[data-pagination]")){var a=JSON.parse(e.getAttribute("data-pagination"));if(!a)return;t.loadmore=a}else if(!at(t.list,e)){var u=e.querySelector("h6");if(u){var c=u.closest(".cols");P(u);var l=O(c,".statement");l&&(b(l,"tight"),y(c,"tight"),l.parentNode.insertBefore(c,l.nextSibling));var s=e.querySelector(".col-spare");if(s)if(y(s,"panel"),!e.querySelector("ul>li>p,ul>li>label[for=login]")){b(s,"col-spare"),y(s,"panel-sender");var f=e.querySelector(".cols");f.parentNode.insertBefore(s,f),P(f)}}r.unshift(e)}}));var o=t.scroll.scrollTop;if(n){ot(n,"after",r,!0);var i=getComputedStyle(n);o-=n.offsetHeight+parseInt(i.marginTop)+parseInt(i.marginBottom)}else ot(t.list,"append",r,!0);return r.forEach((function(t){var e=getComputedStyle(t);o+=t.offsetHeight+parseInt(e.marginTop)+parseInt(e.marginBottom)})),t.scroll.scrollTop=Math.max(o,0),0!=r.length}var we={};function Se(t,e,r,o,i,a,u,c){if(ye())dt(t?{chat:t}:{chat:"",user:r});else{var p,m=function(){var n=we[A];if(n.chat==t);else if(e||n.name){if(e!=n.name)return 0}else if(!r||r!=n.user||n.name)return 0;if(!n.chat&&t&&(n.chat=t),!n.pagination)return{v:void 0};u&&y(n.title,"unread");return V({pagination:n.pagination.value,chatbox:""},(function(t){Q(n,t.main),be(n,t.main)&&u&&c&&ge("("+u+") "+c)})),{v:void 0}};for(var A in we)if(0!==(p=m())&&p)return p.v;var x=j("button",{class:"muted"},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.749 4.707l-1.415-1.414-7.292 7.293-7.293-7.293-1.415 1.414L10.627 12l-7.293 7.293 1.415 1.414 7.293-7.293 7.292 7.293 1.415-1.414L13.456 12z"/></svg>'),O=j("button",{class:"muted"},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 21.999h5a2 2 0 002-2v-5a2 2 0 00-2-2H4a2 2 0 00-2 2v5a2 2 0 002 2zm0-7h5l-.003 5H4v-5zM21 2.999h-7v2h3.586l-6.293 6.293 1.414 1.414L19 6.413v3.586h2z"/></svg>'),k=j("h6",{class:"col-spare"},e?'<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.001 13c.825 0 1.5.676 1.5 1.5s-.675 1.5-1.5 1.5-1.5-.676-1.5-1.5.675-1.5 1.5-1.5zM20.001 22h-4v-3a2 2 0 014 0v3zM12.001 13c.825 0 1.5.676 1.5 1.5s-.675 1.5-1.5 1.5-1.5-.676-1.5-1.5.675-1.5 1.5-1.5zM14.001 22h-4v-3a2 2 0 014 0v3zM6.001 13c.825 0 1.5.676 1.5 1.5s-.675 1.5-1.5 1.5-1.5-.676-1.5-1.5.675-1.5 1.5-1.5zM8.001 22h-4v-3a2 2 0 014 0v3zM21.376 11.781l-9.375-7.5-9.376 7.5-1.249-1.562 10.625-8.5 10.624 8.5z"/></svg>'+o:o),T=j("div",{class:"title cols"},[k,O,x]);u&&y(T,"unread");var C=j("a",{class:"spinner"},"<hr>"),M=j("div",{class:"history"},C),D=j("div",{class:"scrollbox"},M),L=j("div",{class:"chat"},[T,D]);a&&L.setAttribute("data-notify",JSON.stringify(a)),ot(document.body,"append",L,!1);var B=document.documentElement.clientHeight||window.innerHeight,R=L.offsetHeight,z=D.offsetHeight;R>B&&w(D,{maxHeight:Math.floor(B-(R-z))+"px"});var I=t?"c:"+t:e?"g:"+e:"u:"+r;if(I){we[I]={chat:t,user:r,name:e,loadmore:null,win:L,title:T,maximize:O,scroll:D,list:M,pagination:null,form:null,videochat:null,groupcreate:null,groupinvite:null,groupleave:null};var U=we[I];F(),i&&W(U),l(D,"wheel",(function(t){W(U)})),l(x,"click",(function(t){d(t),this.blur(),W(U),J(U)})),l(O,"click",(function(e){d(e),this.blur(),J(U),dt(t?{chat:t}:{chat:"",user:r})})),l(T,"mousedown",(function(t){if(t.preventDefault(),S(T,t.target)&&!t.target.closest("button")){v(L,"moved",!0);var e=L.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top,o=null;l(document.documentElement,["mousemove","touchmove"],i),l(document.documentElement,["mouseup","touchend"],(function t(e){s(document.documentElement,["mousemove","touchmove"],i),s(document.documentElement,["mouseup","touchend"],t)}))}function i(t){o||(o=setTimeout((function(){o=null;var e=document.documentElement.clientWidth||window.innerWidth,i=document.documentElement.clientHeight||window.innerHeight,a=L.offsetWidth,u=L.offsetHeight,c=e-a-Math.min(Math.max(Math.floor(t.clientX-n),0),e-a),l=i-u-Math.min(Math.max(Math.floor(t.clientY-r),0),i-u);w(L,{right:c+"px",bottom:l+"px"})}),50))}}));var H=!1;_(t?{chat:t,chatbox:""}:e?{chat:"",user:r,"chat-name":e,chatbox:""}:{chat:"",user:r,chatbox:""});var q=n((function(){if(U.loadmore){var t=C.offsetTop-D.scrollTop,e=C.offsetHeight,n=D.offsetHeight,r=1*n/3;if(!(t+e+r<0))if(!(t>n+r))_(se(se({},U.loadmore),{},{chatbox:""}))}}),1,!0);l(D,["scroll","resize"],q)}}function F(){var t=E(document.documentElement,".chat").filter((function(t){return!h(t,"moved")})),e=10;t.forEach((function(t){w(t,{right:e+"px",bottom:"10px"}),e+=t.offsetWidth+10}))}function J(t){P(t.win),delete we[I],tn(),F()}function W(t){(ge(),g(t.title,"unread"))&&(b(t.title,"unread"),V(t.chat?{chat:t.chat}:{chat:"",user:r}))}function Q(e,n){var o=null,i=null,a=null,u=null,c=null,s=null,p=null;if(n.forEach((function(n){if(n.matches(".card")){var r=JSON.parse(n.getAttribute("data-notify")||"null");r&&"chat"==r.kind&&(o=r.id,t=r.id,e.chat=r.id),i=n.querySelector("form[data-patch],a[data-patch]"),a=n.querySelector("button[data-alert]"),u=n.querySelector("[data-videochat]"),E(n,"[data-dialog]").forEach((function(t){var e=JSON.parse(t.getAttribute("data-dialog"));"group"==e.request?c=t:"invite"==e.request?s=t:"leave"==e.request&&(p=t)}))}})),i||a)if(i||!a){if(null===e.form){e.form=i,i.removeAttribute("data-patch"),e.pagination=i.querySelector("input[name=pagination]");var h=i.querySelector("[data-wysiwyg]");h&&h.removeAttribute("data-wysiwyg"),ot(e.win,"append",i,!1);var v=null;h&&(v=Yt(h,"chat"),l(h,["click","input","change"],(function(t){W(e)}))),l(i,"submit",(function(t){if(d(t),v){var n=document.implementation.createHTMLDocument("");if(n.body.innerHTML=v.getHTML(),0==(n.body.textContent||"").replace(/[\r\n ]/g,"").length&&!n.body.querySelector("a,figure,img,svg,picture,video,audio,iframe"))return}st(i,null,(function(t){f(i,"reset"),Q(e,t.main);var n=ee(t.main);be(e,n),q()}),(function(){f(i,"reset")}))}))}var m=null;u&&(m=j("button",{class:"muted","data-videochat":u.getAttribute("data-videochat"),title:u.textContent},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.526 8.149a1 1 0 00-.973-.044L17 9.382V8c0-1.103-.897-2-2-2H6c-1.103 0-2 .897-2 2v8c0 1.104.897 2 2 2h9c1.103 0 2-.896 2-2v-1.382l2.553 1.276a.992.992 0 00.973-.043c.294-.183.474-.504.474-.851V9c0-.347-.18-.668-.474-.851z"/></svg>'));var g=null;c&&l(g=j("button",{class:"muted",title:c.textContent},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.001 13c.825 0 1.5.676 1.5 1.5s-.675 1.5-1.5 1.5-1.5-.676-1.5-1.5.675-1.5 1.5-1.5zM20.001 22h-4v-3a2 2 0 014 0v3zM12.001 13c.825 0 1.5.676 1.5 1.5s-.675 1.5-1.5 1.5-1.5-.676-1.5-1.5.675-1.5 1.5-1.5zM14.001 22h-4v-3a2 2 0 014 0v3zM6.001 13c.825 0 1.5.676 1.5 1.5s-.675 1.5-1.5 1.5-1.5-.676-1.5-1.5.675-1.5 1.5-1.5zM8.001 22h-4v-3a2 2 0 014 0v3zM21.376 11.781l-9.375-7.5-9.376 7.5-1.249-1.562 10.625-8.5 10.624 8.5z"/></svg>'),"click",(function(e){d(e),this.blur();var n=wt(r?{chat:"",user:r,request:"group"}:{chat:t,request:"group"},(function(t){E(n.overlay,"[data-wysiwyg]").forEach((function(t){P(t)})),E(n.overlay,"form").forEach((function(t){t.removeAttribute("data-submit");var e=t.cloneNode(!1);e.append.apply(e,de(t.childNodes)),t.parentNode.replaceChild(e,t);var o=(t=e).querySelector("input[type=hidden][name=user]"),i=o&&o.value||r;l(t,"submit",(function(e){d(e);var r=t.querySelector("input[type=text][name=chat-name]");if(r){var o=r.value.trim();o&&(Se(null,o,i,o),n.close())}}))}))}))}));var y=null;s&&o&&l(y=j("button",{class:"muted",title:s.textContent},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.002 16.006c-2.205 0-4-1.795-4-4s1.795-4 4-4 4 1.795 4 4-1.794 4-4 4zm0-6a2 2 0 10.001 4.001 2 2 0 00-.001-4.001zM16.002 24.006h-16v-1c0-3.533 3.289-6 8-6s8 2.467 8 6v1zm-13.841-2h11.684c-.599-1.808-2.834-3-5.842-3s-5.244 1.192-5.842 3zM22.002 7.006h-3v-3h-2v3h-3v2h3v3h2v-3h3z"/></svg>'),"click",(function(t){d(t),this.blur(),wt({chat:o,request:"invite"})}));var b=null;if(p&&o&&l(b=j("button",{class:"muted",title:p.textContent},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 22H7c-1.103 0-2-.897-2-2v-3h2v3h11V4H7v3H5V4c0-1.102.897-2 2-2h11c1.103 0 2 .898 2 2v16c0 1.103-.897 2-2 2z"/><path d="M11.707 7.292l-1.414 1.416L12.59 11H4v2h8.582l-2.29 2.294 1.416 1.412 4.706-4.715z"/></svg>'),"click",(function(t){d(t),this.blur();var n=wt({chat:o,request:"leave"},(function(t){E(n.overlay,"form").forEach((function(t){l(t,"submit",(function(t){J(e)}))}))}))})),null===e.videochat!=(null===m)||null===e.groupcreate!=(null===g)||null===e.groupinvite!=(null===y)||null===e.groupleave!=(null===b)){P([e.videochat,e.groupcreate,e.groupinvite,e.groupleave].filter((function(t){return t})));var w=[m,g,y,b].filter((function(t){return t}));ot(e.maximize,"before",w,!1),e.videochat=m,e.groupcreate=g,e.groupinvite=y,e.groupleave=b}}else ot(e.win,"append",a,!1)}function _(t){H||(H=!0,V(t,(function(t){H=!1,Q(U,t.main);var e=be(U,t.main,C);q(),U.loadmore?N(C):(P(C),s(D,["scroll","resize"],q)),e&&u&&c&&ge("("+u+") "+c)}),(function(){H=!1,P(C)})))}}function Ae(t){return function(t){if(Array.isArray(t))return Ee(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ee(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xe(){return"MediaSource"in window&&"Blob"in window&&"crypto"in window&&"subtle"in window.crypto&&"indexedDB"in window&&"RTCPeerConnection"in window&&"RTCDataChannel"in window}var Oe=null,ke=null,Te=n((function(){var t;t=function(t){en(t)},ze((function(e){var n=[],r=e.openCursor();r.addEventListener("success",(function(e){var r=e.target.result;r?(n.push(r.key),r.continue()):t(n)})),r.addEventListener("error",(function(t){}))}))}),5e3,!0);function je(t){if(xe()&&!Oe)if(!1!==Oe){Oe=!0;var e=De();if(e){var n=e.createDataChannel("nat"),r={};e.onicecandidate=function(t){if(t.candidate){if(-1!==t.candidate.candidate.indexOf("srflx")){var o=t.candidate.candidate,i=o.substring(0===o.indexOf("a=candidate:")?12:10).split(" "),a=i[4],u=parseInt(i[5],10);!ke&&a&&(ke=a);for(var c=null,l=8;l<i.length;l+=2)if("rport"==i[l]){c=parseInt(i[l+1],10);break}c in r?r[c].push(u):r[c]=[u]}}else{if(n.close(),e.close(),1===Object.keys(r).length)return;Oe=!1,Te()}},e.createOffer().then((function(t){e.setLocalDescription(t)}))}}else Te()}var Ce={},Me={};function Pe(t){var e=[];return{load:function(n,r,i,a,u,c){var l=function(t){var e=new URL(t);if(!e)return null;if("http:"!=e.protocol&&"https:"!=e.protocol)return null;if(!e.hostname||!e.pathname)return null;var n=e.pathname.match(/^\/+[0-9A-Za-z]+\/+([0-9a-z]{39}(?:\.[0-9A-Za-z]+))?(?:\/+(.+)?)$/);if(!n)return null;var r=n[1],o=n[2],i=r;if(o)i+="/"+o;else if(e.searchParams){if(e.searchParams.has("crop")){var a=e.searchParams.get("crop").matches(/^(\d+)\.(\d+)(?:\.(\d+))?(?:\.(\d+))?$/);i+="/"+a[1],i+="/"+a[2],5==a.length&&(i+="/"+a[3],i+="/"+a[4])}e.searchParams.has("scale")&&(i+="/"+e.searchParams.get("scale")),e.searchParams.has("still")&&(i+="/still"),"webp"==e.searchParams.get("format")&&(i+="/webp")}return i}(n);function s(t,e){c(t,(function(t){e?Fe(l,t,r,e,(function(){return je()})):Ue(l,t,r,(function(){return je()}))}))}l?Ie(l,(function(n,c){if(n)a(n);else{if(i<=15e3)s();else{e.push(l),t in Ce||(Ce[t]={connections:[],files:[],unemployed:[],timeout:null});var f=Ce[t],d=f.files.length;f.files[d]={filename:l,contenttype:r,success:a,progress:u,filesize:null,sha256:null,slices:null,nextwindow:0,timeout:window.setTimeout((function(){var t=f.files[d];if(f.files[d]=null,t&&t.sha256){var e=h(t);e?s(e,t.sha256):s()}else s()}),i-15e3)},f.unemployed.forEach((function(t){return t&&t()}));var p=function(e){if(!(f.connections.filter((function(t){return!!t})).length>=15)&&(e<10&&(f.timeout=window.setTimeout((function(){p(e+1)}),200)),null!==f.files[d])){var n=De();if(n){var r=n.createDataChannel("file",{ordered:!0});r.binaryType="arraybuffer";var i=o(),a=l+"#"+i,u=f.connections.length;f.connections[u]={peerconnection:n,datachannel:r,uuid:i};var c=null,v=null,m=function(){window.clearTimeout(v),v=window.setTimeout((function(){A()}),6e4)};m();var g=[];Me[a]=function(t){if(n&&"failed"!=n.connectionState&&"closed"!=n.connectionState)if(t)if("answer"==t.type){var e=new RTCSessionDescription(t);n.setRemoteDescription(e).then((function(){g.forEach((function(t){n.addIceCandidate(t)})),g=null}))}else"candidate"==t.type&&(null===g?n.addIceCandidate(t.candidate):g.push(t.candidate));else A(),window.clearTimeout(f.timeout),f.timeout=null};var y=[];n.onicecandidate=function(t){if(n&&t.candidate){var e={type:"candidate",candidate:t.candidate};if(null===y)en(l,i,e);else y.push(e)}},n.onconnectionstatechange=function(t){"failed"!=n.connectionState&&"closed"!=n.connectionState||A()};var b=d,w=null;r.onmessage=function(e){var n=e.data;m();var o=Ce[t],i=o.files[b],a=Le(n,0);if(0xffffffffff==a){if(105==n.byteLength)return void E(!1);if(142!=n.byteLength)return;var u=new Uint8Array(n.slice(5,105)),c=u.indexOf(0),l=(-1!=c&&String.fromCharCode.apply(null,u.slice(0,c)),Le(n,105)),s=new Uint8Array(n.slice(110,142));i&&(null===i.filesize&&(i.filesize=l),null===i.sha256&&(i.sha256=[]),i.sha256.push(s),null===i.slices&&(i.slices=[]))}else{var f=n.slice(5);if(i&&(i.slices.push({offset:a,data:f}),i.progress&&i.progress(Math.min(i.slices.reduce((function(t,e){return t+e.data.byteLength}),0),i.filesize),i.filesize,h(i))),a+f.byteLength<w)return}if(i){var d=null,p=65308,v=Math.ceil(i.filesize/p);if(i.nextwindow<v)d=[i.nextwindow*p,p],i.nextwindow+=1;else{var g=0;i.slices.sort((function(t,e){return t.offset-e.offset})).forEach((function(t){null===d&&(g<t.offset&&(d=[g,Math.min(t.offset-g,p)]),g=Math.max(t.offset+t.data.byteLength,g))})),null===d&&g<i.filesize&&(d=[g,Math.min(i.filesize-g,p)])}if(d){var y=d[0],S=Math.min(d[0]+d[1],i.filesize);w=S;var A=new ArrayBuffer(110);return new Uint8Array(A).set(new Uint8Array(i.filename.split("").map((function(t){return t.charCodeAt(0)}))),0),Le(A,100,y),Le(A,105,S-y),void r.send(A)}}if(w=null,i){var x=h(i);i.success(x),window.clearTimeout(i.timeout),o.files[b]=null,Fe(i.filename,x,i.contenttype,i.sha256,(function(){return je()}))}E(!0)},n.createOffer().then((function(t){if(f.connections[u])return n.setLocalDescription(t)})).then((function(){f.connections[u]&&(en(l,i,n.localDescription,!0)?(y.forEach((function(t){en(l,i,t)})),y=null):A())})).catch((function(t){A()}))}else if(window.clearTimeout(f.timeout),f.timeout=null,1==e){var S=f.files[d];window.clearTimeout(S.timeout),f.files[d]=null,s()}}function A(){if(null!==n){delete Me[i],r&&r.close(),r=null,n&&n.close(),n=null;var e=Ce[t];e.connections[u]=null,null!==c&&(e.unemployed[c]=null,c=null),0==e.connections.filter((function(t){return!!t})).length&&0==e.files.filter((function(t){return!!t})).length&&0==e.unemployed.filter((function(t){return!!t})).length&&(window.clearTimeout(e.timeout),delete Ce[t])}}function E(e){var o=Ce[t],i=o.unemployed.length;o.unemployed[i]=function(){for(var t=0;t<o.files.length;++t)if(o.files[t]){if(!n||"open"!=r.readyState)return;o.unemployed[i]=null,0==o.unemployed.filter((function(t){return!!t})).length&&(o.unemployed=[]),c=null;var e=o.files[t],a=new ArrayBuffer(100);return new Uint8Array(a).set(new Uint8Array(e.filename.split("").map((function(t){return t.charCodeAt(0)}))),0),r.send(a),void(b=t)}},c=i,e&&o.unemployed[i]()}};p(1)}}function h(t){var e=new ArrayBuffer(t.filesize),n=0;return t.slices.sort((function(t,e){return t.offset-e.offset})).reduce((function(t,r){new Uint8Array(e).set(new Uint8Array(r.data),r.offset),n>=r.offset&&(n=Math.max(r.offset+r.data.byteLength,n))}),0),0==n?null:e.slice(0,n)}})):c()},abort:function(){if(t in Ce){var n=Ce[t];e.forEach((function(t){n.files.forEach((function(e,r){e&&e.filename==t&&(window.clearTimeout(e.timeout),n.files[r]=null)}))})),e.length=0,0==n.connections.filter((function(t){return!!t})).length&&0==n.files.filter((function(t){return!!t})).length&&0==n.unemployed.filter((function(t){return!!t})).length&&(window.clearTimeout(n.timeout),delete Ce[t])}}}}var Ne={};function De(){try{var t=Ae(It).sort((function(){return Math.random()>.5?1:-1})).slice(0,2),e=new RTCPeerConnection({iceServers:t.map((function(t){return{urls:"stun:"+t,url:"stun:"+t}}))});return e.createDataChannel?e:null}catch(t){}return null}function Le(t,e,n){var r=new Uint8Array(t);if(void 0===n)return 4294967296*r[e]+16777216*r[e+1]+65536*r[e+2]+256*r[e+3]+r[e+4];r[e]=255&Math.floor(n/4294967296),r[e+1]=n>>>24&255,r[e+2]=n>>>16&255,r[e+3]=n>>>8&255,r[e+4]=255&n}var Be=null,Re=null;function ze(t,e){if(null===Re){if(null===Be){try{Be=window.indexedDB.open("p2p",1)}catch(t){return Re=!1,void(e&&e())}Be.addEventListener("upgradeneeded",(function(t){var e=t.target.result;t.target.transaction,t.oldVersion;e.createObjectStore("file",{autoIncrement:!1}).createIndex("LRU",["type","timestamp"],{unique:!1,locale:null})})),Be.addEventListener("blocked",(function(){e&&e()}))}Be.addEventListener("success",(function(){var e=(Re=Be.result).transaction("file","readwrite").objectStore("file");t(e)})),Be.addEventListener("error",(function(){Re=!1,e&&e()}))}else{if(!1===Re)return void(e&&e());try{var n=Re.transaction("file","readwrite").objectStore("file");t(n)}catch(t){e&&e()}}}function Ie(t,e){var n=window.setTimeout((function(){n=null,e()}),1e3);function r(t,r){null!==n&&(window.clearTimeout(n),n=null,e(t,r))}ze((function(e){var n=e.get(t);n.addEventListener("success",(function(){if(void 0!==n.result){var o=n.result;if("arrayBuffer"in o.content)o.content.arrayBuffer().then((function(t){return r(t,o.content.type)}));else{var i=new FileReader;i.onload=function(t){return r(t.target.result,o.content.type)},i.readAsArrayBuffer(o.content)}o.timestamp=Date.now(),e.put(o,t)}else r()})),n.addEventListener("error",(function(){r()}))}),(function(){r()}))}function Ue(t,e,n,r){function o(){var t=!0;ze((function(e){var n=e.index("LRU").openCursor();n.addEventListener("success",(function(n){var r=n.target.result;if(r){var o=r.primaryKey;e.delete(o),t&&(r.continue(),t=!1)}})),n.addEventListener("error",(function(t){window.indexedDB.deleteDatabase("p2p")}))}))}ze((function(o){var i={content:new Blob([e],{type:n}),type:n,timestamp:Date.now()};try{var a=o.put(i,t);a.addEventListener("success",(function(){r()})),a.addEventListener("error",(function(t){}))}catch(t){}})),ze((function(t){var e=t.index("LRU"),r=IDBKeyRange.bound([n,0],[n,Date.now()]),i=e.count(r);i.addEventListener("success",(function(t){i.result>=2e3?o():"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then((function(t){2*t.usage>t.quota&&o()}))})),i.addEventListener("error",(function(t){window.indexedDB.deleteDatabase("p2p")}))}))}function He(t,e){window.crypto.subtle.digest("SHA-256",t).then((function(t){e(t)}))}function qe(t,e){Ie(t,(function(t,n){t?He(t,(function(r){r?e(t,n,r):e()})):e()}))}function Fe(t,e,n,r,o){He(e,(function(i){i&&(0!=r.filter((function(t){if(i.byteLength!=t.byteLength)return!1;for(var e=0;e<t.byteLength;++e)if(new Uint8Array(i)[e]!=t[e])return!1;return!0})).length&&Ue(t,e,n,o))}))}function Je(t){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Je(t)}function We(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ve(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?We(Object(n),!0).forEach((function(e){Qe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qe(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Je(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _e=n((function(t){cn(t)}),1e3),Xe=null,$e=null,Ge={};function Ye(){if(Y().websocket&&"WebSocket"in window&&2===window.WebSocket.CLOSING){var t=Y().websocket,e=("http:"!=location.protocol||t.port?"wss://":"ws://")+t.host+(t.port?":"+t.port:"")+(t.path||"/");Xe||(l(Xe=new WebSocket(e),"open",(function(t){tn(),je()})),l(Xe,"error",(function(t){Xe=null,clearTimeout($e),$e=null,Ge={},window.setTimeout(Ye,3e4)})),l(Xe,"close",(function(t){null!==Xe&&(Xe=null,clearTimeout($e),$e=null,Ge={},window.setTimeout(Ye,1e3))})),l(Xe,"message",(function(t){var e=JSON.parse(t.data);if(e)if("file"in e)!function(t,e,n){var r=t+"#"+e;if(r in Me)Me[r](n);else if(n)if("offer"==n.type){var o=De();if(!o)return void en(t,e,null);Ne[r]={peerconnection:o,icecandidates:[]};var i=function(){delete Ne[r],a&&a.close(),a=null,o&&o.close(),o=null},a=null,u=null,c=function(){window.clearTimeout(u),u=window.setTimeout((function(){a&&a.close(),a=null,o&&o.close(),o=null}),6e4)};c(),o.ondatachannel=function(e){(a=e.channel).binaryType="arraybuffer",qe(t,(function(e,n,r){var o=t,i=e||!1,u=r||!1,l=function(t,e){if(null!==a)if(void 0===t){var n=!1!==i&&!1!==u,r=new ArrayBuffer(105+(n?37:0));Le(r,0,0xffffffffff),new Uint8Array(r).set(new Uint8Array(o.split("").map((function(t){return t.charCodeAt(0)}))),5),n&&(Le(r,105,i.byteLength),new Uint8Array(r).set(new Uint8Array(u),110)),a.send(r)}else for(var c=t;c<t+e&&!(c>i.byteLength);c+=1126){var l=Math.min(1126,t+e-c),s=i.slice(c,c+l),f=new ArrayBuffer(5+l);Le(f,0,c),new Uint8Array(f).set(new Uint8Array(s),5),a.send(f)}};"open"==a.readyState?l():a.onopen=function(t){l()},a.onmessage=function(t){c();var e=t.data;if(110==e.byteLength||100==e.byteLength){var n=new Uint8Array(e.slice(0,100)),r=n.indexOf(0),a=-1!=r?String.fromCharCode.apply(null,n.slice(0,r)):null,s=110==e.byteLength?Le(e,100):-1,f=110==e.byteLength?Le(e,105):-1;if(a)if(o==a){if(s<0||f<=0)return;l(s,f)}else{if(-1!=s||-1!=f)return;o=null,i=null,u=null,qe(a,(function(t,e,n){o=a,i=t||!1,u=n||!1,l()}))}}}}))};var l=[];o.onicecandidate=function(n){if(n.candidate){var r={type:"candidate",candidate:n.candidate};null===l?en(t,e,r):l.push(r)}},o.onconnectionstatechange=function(t){"failed"!=o.connectionState&&"closed"!=o.connectionState||i()};var s=new RTCSessionDescription(n);o.setRemoteDescription(s).then((function(){return o.createAnswer()})).then((function(t){return o.setLocalDescription(t)})).then((function(){var n=Ne[r];n.icecandidates.forEach((function(t){o.addIceCandidate(t)})),n.icecandidates=null,en(t,e,o.localDescription)?(l.forEach((function(n){en(t,e,n)})),l=null):i()})).catch((function(t){i()}))}else if("candidate"==n.type){if(!(r in Ne))return;var f=Ne[r],d=f.icecandidates;null===d?f.peerconnection.addIceCandidate(n.candidate):d.push(n.candidate)}}(e.file,e.id,e.message);else{var n=e.message||{};switch(e.kind){case"user":"upload"==n.kind&&"meeting"in n?ae(!1,n):"texting"==n.kind?(on(n),ln(null,"chat",n.chat,n)):_e(n);break;case"post":case"track":case"share":case"posting":case"texting":case"chat":"typing"==n.kind?dn(e.kind,e.id,n):ln(null,e.kind,e.id,n)}}})))}}c(Ye),l(document,"visibilitychange",(function(){clearTimeout($e),$e=null,"hidden"==document.visibilityState?$e=window.setTimeout((function(){Xe&&(Xe.close(1e3,"quiesce"),Xe=null,$e=null,Ge={})}),144e5):Ye()}));var Ke=r((function(t,e,n){v(t,"notify",Date.now()),ln(t,e,n)}),100),Ze=r((function(){on()}),1e4),tn=n((function(){var t={};if(Y().user){var e=Y().user.id;t["user:"+e]=Y().user.notify}E(document.documentElement,"[data-notify]").forEach((function(e){if(!e.matches("fieldset"))if(e.matches(".chat"))Ze();else if(!e.closest("aside,.aside")&&A(e)){var n=JSON.parse(e.getAttribute("data-notify"));if(n){var r=n.kind+":"+n.id;t[r]=n;var o=h(e,"notify");o&&o+6e4>Date.now()||Ke(e,n.kind,n.id)}}})),Xe&&Xe.readyState==window.WebSocket.OPEN&&(Object.keys(Ge).forEach((function(e){if(!(e in t)){var n=Ve(Ve({},Ge[e]),{},{subscription:!1});delete Ge[e];var r=JSON.stringify(n);Xe.send(r)}})),Object.keys(t).forEach((function(e){if(!(Object.keys(Ge).length>=100||e in Ge)){var n=t[e],r=Ve(Ve({},n),{},{subscription:!0});Ge[e]=n;var o=JSON.stringify(r);Xe.send(o)}})))}),400,!0);function en(t,e,n,r){if(!Xe||Xe.readyState!=window.WebSocket.OPEN)return!1;var o=Ve(Ve(Ve({file:t},void 0!==e?{id:e}:{}),void 0!==n?{message:n}:{}),r?{subscription:!0}:{}),i=JSON.stringify(o);return Xe.send(i),!0}u("[data-notify]",(function(t){v(t,"notify",Date.now()),tn()})),u("nav>ul>li>a",(function(t){var e=t.closest("li");e.querySelector("small")&&l(t,"click",(function(){E(e,"small").forEach((function(t){P(t)}))}))}));var nn=Q(),rn=null;function on(t){var e=rn||{pagination:Y().user.chats};nn(e,(function(e){if(e.main){var n=e.main.filter((function(t){return t.matches("ol")}));if(0!=n.length){var r=JSON.parse(n[0].getAttribute("data-pagination"));r&&(rn=r),x(n[0]).slice(0,2).reverse().forEach((function(e){var n=x(e)[0],r=JSON.parse(n.getAttribute("data-chat"));if(r){var o=function(t,e){return!ye()&&(Se(t.chat,t.name,t.user,t.caption,!1,t.notify,t.unread,e),!0)}(r,t&&t.user.id!=Y().user?t.user.name:null);o||Zt(n)}}))}}}))}c((function(){Y().user&&on()}));var an=Q(),un=null;function cn(t){var e=un||{pagination:Y().user.notifications};an(e,(function(t){if(t.main){var e=t.main.filter((function(t){return t.matches("ol")}));if(0!=e.length){var n=JSON.parse(e[0].getAttribute("data-pagination"));n&&(un=n);for(var r=x(e[0]),o=["upload","log","mention","relation"],i=function(t){var e=null;return o.forEach((function(n){r.forEach((function(r,o){if(!(null!==e||o<t)){var i=JSON.parse(r.getAttribute("data-identifier")||"null");i&&i.kind==n&&(e=o)}}))})),null===e?0:e==t?1:void r.splice(t,0,r.splice(e,1)[0])},a=0;a<r.length&&a<te()/2&&0!==i(a);++a);r.slice(0,te()).reverse().forEach((function(t){Zt(x(t)[0],(function(){V({notifications:""})}))}))}}}))}function ln(t,e,n,r){var o=null;if(t){E(t,"form[data-patch] input[name=pagination]").forEach((function(t){o=t.value})),o||E(t,"[data-patch]").forEach((function(t){var e=JSON.parse(t.getAttribute("data-patch")||"null");e&&e.pagination&&!o&&(o=e.pagination)}));var i=t.parentNode.closest("[data-notify]");if(i&&i.matches(".card"))return}V(Qe(Qe({},e,n),"request","refresh"),(function(i){if(i.main){var a=t&&!o||r&&"like"==r.kind;ut(e,n,i.main,a),t&&E(t,"[data-notify]").forEach((function(e){if(e!=t){var n=JSON.parse(e.getAttribute("data-notify"));n&&ut(n.kind,n.id,i.main,!0)}}))}}))}c((function(){Y().user&&cn()}));var sn={},fn={};function dn(t,e,n,r){var o=n.user&&n.user.id;if(o)if(r){if(!Y().user||Y().user.id!=o){var i=[];if(E(document.documentElement,"[data-notify]").forEach((function(n){var r=JSON.parse(n.getAttribute("data-notify"));r&&r.kind==t&&r.id==e&&E(n,"[data-placeholder]").forEach((function(t){i.push({element:t,placeholder:t.getAttribute("data-placeholder")})}))})),i){var a=t+":"+e;if(a in sn){var u=sn[a];return u.name=r,u.recent=Date.now(),u.editors=u.editors.filter((function(t){var e=!1;return i.forEach((function(n){t.element==n.element&&(e=!0)})),e||t.element.setAttribute("data-placeholder",t.placeholder),e})),void i.forEach((function(t){var e=!1;u.editors.forEach((function(n){n.element==t.element&&(e=!0)})),e||u.editors.push(t)}))}var c={name:r,nameanim:r,recent:Date.now(),editors:i},l=0,s=function(){var t=[""," ."," .."," ..."," ..."];l%t.length==0&&(c.nameanim=c.name);var e=c.nameanim+t[l%t.length];l+=1,c.editors.forEach((function(t){t.element.setAttribute("data-placeholder",e)}))};s();var f=window.setInterval((function(){if(Date.now()-c.recent>1e4)return window.clearInterval(f),c.editors.forEach((function(t){t.element.setAttribute("data-placeholder",t.placeholder)})),void delete sn[a];s()}),200);sn[a]=c}}}else{if(o in fn){if(null===fn[o])return;var d=fn[o];return void dn(t,e,n,d)}fn[o]=null;V({user:o,request:"refresh"},(function(r){if(r.main&&1==r.main.length){var i=null;r.main.forEach((function(t){E(t,"h6 cite").forEach((function(t){for(;t.firstElementChild;)t.firstElementChild.remove()})),i=t.textContent.trim()})),i&&(fn[o]=i,dn(t,e,n,i))}}),(function(){delete fn[o]}))}}function pn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hn(t){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(t)}function vn(t){return function(t){if(Array.isArray(t))return gn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(t,e){if(t){if("string"==typeof t)return gn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gn(t,e):void 0}}function gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var yn=!1;try{var bn=j("canvas");if(bn.toDataURL&&0==bn.toDataURL("image/webp").indexOf("data:image/webp"))yn=!0;else{var wn=new Image;wn.onload=function(){yn=wn.width>0&&wn.height>0},wn.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}}catch(t){}function Sn(t,e,n,r){if(!yn&&!n&&void 0===e&&void 0===r)return t;var o=new URL(t),i=[];if(o.searchParams.forEach((function(t,o){"webp"!=o&&("scale"==o&&void 0!==e||"still"==o&&n||"decorator"==o&&void 0!==r||i.push(o+"="+t))})),e){var a=[64,128,256,512,768,1024,1536,2048,3072,4096].filter((function(t){return t>=Math.min(e,4096)}));i.push("scale="+a[0])}return r&&i.push("decorator="+r),yn?i.push("webp=on"):0==i.length&&i.push("scale=4096"),o.protocol+"//"+o.host+o.pathname+"?"+i.join("&")+o.hash}function An(t,e){"serviceWorker"in navigator&&"PushManager"in window?navigator.serviceWorker.register(a.p+"webpush.js",{scope:"/"}).then((function(e){t(e)})).catch((function(t){e&&e()})):e&&e()}function En(t){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(t)}function xn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=En(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=En(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==En(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function On(t){return function(t){if(Array.isArray(t))return kn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return kn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}u("[data-scale]",(function(t){setTimeout((function(){t.complete?w(t,{backgroundColor:null}):l(t,"load",(function(){w(t,{backgroundColor:null})}));for(var e=t.getAttribute("src"),n=parseInt(t.getAttribute("width")),r=0,o=t.parentNode;0==r&&o;o=o.parentNode)r=o.offsetWidth;if(r){var i=Math.floor(Math.max(window.devicePixelRatio||1,1)*r);t.src=Sn(e,n?Math.min(i,n):i)}}))})),u("[data-decorator]",(function(t){l(t,"input",(function(){for(var e=t;e;e=e.parentElement){var n=e.querySelector("figure");if(n){var r=n.querySelector("img[data-scale]");if(r){var o=r.getAttribute("src");r.src=Sn(o,void 0,void 0,t.value)}break}}}))})),u("[data-translate]",(function(t){var e=JSON.parse(t.getAttribute("data-translate")),n=t.closest("section[data-notify]"),r=n?JSON.parse(n.getAttribute("data-notify")):{},o=null,i=null;if(n){var a=n.querySelector("figure[data-media]");if(a){var u=JSON.parse(a.getAttribute("data-media"));if(u&&u.media){var c=u.media.filter((function(t){return"subtitle"==t.type}));0!=c.length&&(o=a,i=c[0].language.code)}}else{var s=null;if(!(s=k(n,"figure.video,figure.audio"))){var p=n.closest(".content");if(p){var y=k(p,"header,.header");y&&(x(y,"figure.video,figure.audio").forEach((function(t){s=t})),s||E(y,".album figure.video,.album figure.audio").forEach((function(t){s=t})))}}s&&x(s,"video[data-media],audio[data-media]").forEach((function(t){var e=t.querySelector("track[kind=subtitles]");e&&(o=t,i=e.getAttribute("srclang"))}))}}var b=null,S=!1;if(o)if(null!==e.target){(Array.isArray(e.target)?e.target:[e.target]).some((function(t){return t!=i}))&&(b=o)}else{var A=[],j=document.documentElement.getAttribute("lang");if(j){A.push(j);var C=j.replace(/-.*/,"");C!=j&&A.push(C)}else A.push.apply(A,vn(navigator.languages||[]).concat([navigator.language,navigator.userLanguage]));var M=[];A.forEach((function(t){t&&t.replace(/-.*/,"")!=i&&-1==M.indexOf(t)&&M.push(t)})),0!=M.length&&(e.target=1==M.length?M[0]:M,t.removeAttribute("hidden"),b=o,S=!0)}var P=null;l(t,"click",(function(o){if(d(o),this.blur(),b){var i=h(b,"translation");v(b,"translation",i?null:e),E(b,"video,audio").forEach((function(t){if(t.textTracks)for(var e=0;e<t.textTracks.length;++e)f(t.textTracks[e],"cuechange")}))}if(!S)if(null===P){P=[];var a=[];if("post"==e.kind||"track"==e.kind||"share"==e.kind&&"share"==r.kind&&t.closest("section.card")){var u=t.closest("div");if(!u)return;var c=k(u,"article");if(c){var l=c.querySelector("h1");if(l){var s=l.querySelector("a");a.push(s||l)}var p=c.querySelector("h1~div.statement");a.push(p)}else{var y=n.querySelector("blockquote");if(y){var A=k(y,"div.statement");a.push(A);var j=x(y,".statement:first-child");1==j.length&&a.push(j[0]);var C=null,M=null;E(y,"h2,h3").forEach((function(t){C=C||t.querySelector("a")||t,M=M||O(t,"div.statement")})),M||(M=y.querySelector("div.statement")),a.push(C),a.push(M)}else{var D=null,L=null;E(n,"h2,h3").forEach((function(t){D=D||t.querySelector("a")||t,L=L||O(t,"div.statement")}));var B=k(D||u,"div.statement");D||B||(B=n.querySelector("div.statement")),a.push(B),a.push(D),a.push(L)}}}else if("share"==e.kind)if("post"==r.kind||"track"==r.kind){var R=t.closest("div");if(!R)return;var z=O(R,"div.statement");a.push(z)}else{var I=n.querySelector("div.statement");a.push(I)}else if("posting"==e.kind)if("post"==r.kind||"track"==r.kind||"share"==r.kind){var U=t.closest("div");if(!U)return;var H=O(U,"div.statement");a.push(H)}else{var q=null,F=null;E(n,"div.statement").forEach((function(t){q=q||t,F=F||k(q,"h2,h3")})),a.push(q),a.push(F)}else if("texting"==e.kind){var J=n.querySelector("div.statement");a.push(J)}var W={},V=[],Q=[],_=0;if(a.forEach((function(t){if(t){for(var e=t.querySelector("details>summary+*")||t,n=[],r=e.childNodes,o=0,i=0;i<r.length;++i){var a=r[i];a.nodeType==Node.ELEMENT_NODE&&("DIV"!=a.nodeName&&"FIGURE"!=a.nodeName||(l(i),o=i+1,n.push(a)))}l(r.length);var u=!1,c=n.map((function(t){if("string"==typeof t){u=!0;var e=("00000"+_).substr(-5);return _+=1,W[e]=t,e}return t}));u&&(V.push({element:t,assemble:c}),Q.push(t))}function l(t){if(o!=t){for(;o<r.length;++o){var e=r[o];if("BR"!=e.nodeName)break;n.push(e)}for(var i=t;0!=i;--i){if("BR"!=r[i-1].nodeName)break}for(var a="",u=function(){var t=r[o],e=function(t){var n=function(t){return(t||"").replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};if("BR"==t.nodeName)return"<br>";if("A"==t.nodeName||"SPAN"==t.nodeName){if(g(t,"toggle"))return"";for(var r=t.childNodes,o="",i=0;i<r.length;++i)o+=e(r[i]);var a,u="",c=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=mn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(t.attributes);try{for(c.s();!(a=c.n()).done;){var l=a.value;u+=" "+n(l.name)+'="'+n(l.value)+'"'}}catch(t){c.e(t)}finally{c.f()}return"<"+t.nodeName.toLowerCase()+u+">"+o+"</"+t.nodeName.toLowerCase()+">"}return"IMG"==t.nodeName?n(t.getAttribute("alt")):n(t.textContent)};a+=e(t)};o<i;++o)u();for(""!=a&&n.push(a);o<t;++o){var c=r[o];n.push(c)}}}})),0!=Object.keys(W).length){Q.forEach((function(t){w(t,{opacity:.5})}));var $=pn(pn(pn({},e.kind,e.id),"source",e.source),"target",Array.isArray(e.target)?e.target.join(","):e.target);X(location.protocol+"//"+e.host+(e.port?":"+e.port:"")+(e.path||"/")+"?"+new URLSearchParams($).toString(),W,(function(t){V.forEach((function(e){var n=e.element,r=!1,o=[];e.assemble.forEach((function(e){if("string"==typeof e)if(e in t){var n=document.createRange().createContextualFragment(t[e]);o.push(n)}else r=!0;else o.push(e)})),r?w(n,{opacity:null}):(P.push({element:n,detached:N(n)}),T(n,o),m(1e3,(function(t){w(n,{opacity:1,backgroundColor:"rgba(0,0,0,"+function(t,e,n,r){var o=(1-n)*t+n*e;return r?o:Math.round(o)}(.05,0,t,!0)+")"})}),(function(){w(n,{opacity:null,backgroundColor:null})})))}))}),(function(){Q.forEach((function(t){w(t,{opacity:null})}))}),"application/json")}}else for(var G=0;G<P.length;++G){var Y=P[G].element,K=P[G].detached;P[G].detached=N(Y),T(Y,K)}}))})),u("[data-social]",(function(t){var e=JSON.parse(t.getAttribute("data-social")),n=[{name:"Facebook",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.375 12.96v8.185h3.977V13h2.718l.657-3.395h-3.344V7.117c0-.344.183-.804.738-.804h1.938V2.854h-3.614c-1.246 0-3.082 1.536-3.082 3.168v3.489h-2.09v3.437zm0 0"/></svg>',url:"https://www.facebook.com/sharer.php?u=[url]&t=[title]"},{name:"Twitter",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.145 6.328c-.676.297-1.395.5-2.157.594a3.765 3.765 0 001.649-2.078 7.498 7.498 0 01-2.38.91 3.758 3.758 0 00-2.741-1.184 3.751 3.751 0 00-3.653 4.606 10.64 10.64 0 01-7.73-3.918 3.747 3.747 0 001.16 5.008 3.72 3.72 0 01-1.7-.47v.048a3.759 3.759 0 003.009 3.68 3.84 3.84 0 01-1.695.063 3.759 3.759 0 003.507 2.604 7.522 7.522 0 01-4.66 1.606c-.3 0-.602-.016-.895-.05a10.624 10.624 0 005.75 1.683c6.903 0 10.676-5.715 10.676-10.672 0-.164-.004-.324-.012-.488a7.625 7.625 0 001.872-1.942"/></svg>',url:"https://twitter.com/intent/tweet?text=[title]&url=[url]&counturl=[url]&hashtags="},{name:"Reddit",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.57 13.355a1.357 1.357 0 102.716.005 1.357 1.357 0 00-2.716-.005zm8.145 0a1.357 1.357 0 102.714.005 1.357 1.357 0 00-2.714-.005zm.066 2.903a.802.802 0 011.13.133.807.807 0 01-.134 1.132c-.972.766-2.457 1.262-3.777 1.262-1.32 0-2.805-.496-3.777-1.262a.803.803 0 01-.133-1.132.802.802 0 011.129-.133c.562.441 1.672.918 2.781.918 1.11 0 2.219-.477 2.781-.918zm8.078-5.613c0-1.5-1.218-2.715-2.714-2.715-1.024 0-1.91.562-2.372 1.394-1.398-.761-3.097-1.254-4.949-1.37l1.621-3.638 3.098.895a2.04 2.04 0 001.922 1.36c1.125 0 2.035-.91 2.035-2.036 0-1.125-.91-2.035-2.035-2.035-.774 0-1.45.434-1.793 1.07l-3.453-.996a.805.805 0 00-.961.446l-2.2 4.94c-1.808.13-3.464.618-4.828 1.364a2.716 2.716 0 00-5.09 1.316c0 1.11.669 2.063 1.622 2.485a5.08 5.08 0 00-.262 1.59C2.5 18.46 6.754 21.5 12 21.5s9.5-3.04 9.5-6.785c0-.547-.09-1.082-.262-1.59a2.713 2.713 0 001.621-2.48zm-3.394-6.872a.764.764 0 11-.004 1.528.764.764 0 01.004-1.528zM2.5 10.645c0-.75.61-1.36 1.355-1.36.543 0 1.012.32 1.227.777-.707.54-1.297 1.16-1.73 1.84-.5-.199-.852-.691-.852-1.257zM12 19.89c-4.355 0-7.89-2.32-7.89-5.176 0-2.86 3.535-5.176 7.89-5.176 4.355 0 7.89 2.316 7.89 5.176 0 2.855-3.535 5.176-7.89 5.176zm8.648-7.989c-.433-.68-1.023-1.3-1.73-1.84a1.356 1.356 0 111.73 1.84zm0 0"/><path d="M9.285 13.355a1.357 1.357 0 11-2.714.005 1.357 1.357 0 012.714-.005zm0 0M14.781 16.258c-.562.441-1.672.918-2.781.918-1.11 0-2.219-.477-2.781-.918a.802.802 0 00-1.13.133.803.803 0 00.134 1.132c.972.766 2.457 1.262 3.777 1.262 1.32 0 2.805-.496 3.777-1.262a.807.807 0 00.133-1.132.802.802 0 00-1.129-.133zm0 0M17.43 13.355a1.357 1.357 0 11-2.716.005 1.357 1.357 0 012.716-.005zm0 0"/><path d="M22.86 10.645c0-1.5-1.22-2.715-2.715-2.715-1.024 0-1.91.562-2.372 1.394-1.398-.761-3.097-1.254-4.949-1.37l1.621-3.638 3.098.895a2.04 2.04 0 001.922 1.36c1.125 0 2.035-.91 2.035-2.036 0-1.125-.91-2.035-2.035-2.035-.774 0-1.45.434-1.793 1.07l-3.453-.996a.805.805 0 00-.961.446l-2.2 4.94c-1.808.13-3.464.618-4.828 1.364a2.715 2.715 0 00-5.085 1.317c0 1.109.664 2.062 1.617 2.484a5.08 5.08 0 00-.262 1.59C2.5 18.46 6.754 21.5 12 21.5s9.5-3.04 9.5-6.785c0-.547-.09-1.082-.262-1.59a2.713 2.713 0 001.621-2.48zm-3.395-6.872a.764.764 0 11-.004 1.528.764.764 0 01.004-1.528zM2.5 10.645c0-.75.61-1.36 1.355-1.36.543 0 1.012.32 1.227.777-.707.54-1.297 1.16-1.73 1.84-.5-.199-.852-.691-.852-1.257zM12 19.89c-4.355 0-7.89-2.32-7.89-5.176 0-2.86 3.535-5.176 7.89-5.176 4.355 0 7.89 2.316 7.89 5.176 0 2.855-3.535 5.176-7.89 5.176zm8.648-7.989c-.433-.68-1.023-1.3-1.73-1.84a1.356 1.356 0 111.73 1.84zm0 0"/></svg>',url:"https://www.reddit.com/submit?url=[url]&title=[title]"},{name:"VK",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.047 16.203a1.494 1.494 0 00-.063-.117c-.32-.57-.925-1.273-1.82-2.106l-.027-.027-.008-.012h-.012c-.406-.386-.664-.644-.773-.777-.196-.254-.239-.512-.133-.773.078-.196.363-.61.86-1.246.257-.336.464-.606.616-.81 1.098-1.46 1.575-2.394 1.43-2.8l-.058-.094c-.036-.058-.137-.109-.293-.16a1.523 1.523 0 00-.61-.023l-2.742.02a.398.398 0 00-.191.003l-.125.032-.047.023-.04.027a.413.413 0 00-.105.102.756.756 0 00-.093.168 15.26 15.26 0 01-1.02 2.14c-.234.395-.45.735-.645 1.024-.199.289-.363.5-.496.637a3.194 3.194 0 01-.363.328c-.105.082-.187.117-.246.105a1.604 1.604 0 01-.16-.039.583.583 0 01-.215-.23 1.04 1.04 0 01-.11-.371 4.277 4.277 0 01-.035-.387c-.003-.11 0-.262.004-.457.008-.195.012-.332.012-.403 0-.238.004-.5.016-.785.008-.28.015-.504.023-.672.004-.164.008-.335.008-.523a2.39 2.39 0 00-.031-.43 1.641 1.641 0 00-.102-.304.517.517 0 00-.195-.23 1.054 1.054 0 00-.32-.13 6.573 6.573 0 00-1.286-.125c-1.18-.011-1.937.067-2.273.23-.133.071-.254.165-.363.286-.114.14-.13.215-.047.23.379.055.648.192.808.407l.059.117c.043.082.086.226.133.437.043.207.07.442.086.696.03.46.03.859 0 1.187-.035.332-.063.59-.09.774a1.55 1.55 0 01-.133.445 1.51 1.51 0 01-.113.21.257.257 0 01-.047.048.718.718 0 01-.258.047c-.09 0-.195-.043-.32-.133a2.245 2.245 0 01-.399-.367 5.222 5.222 0 01-.46-.653c-.172-.277-.348-.61-.532-.988l-.152-.277c-.098-.176-.227-.438-.395-.778a15.984 15.984 0 01-.437-.984.63.63 0 00-.227-.305l-.047-.027a.836.836 0 00-.152-.082 1.4 1.4 0 00-.219-.063l-2.61.02c-.265 0-.448.062-.542.183l-.04.055a.386.386 0 00-.027.156c0 .07.02.157.06.258a32.996 32.996 0 002.41 4.598c.327.508.663.984 1.007 1.437.344.45.57.739.68.867.113.126.199.22.261.286l.239.226c.152.153.379.336.672.547.296.215.62.422.98.629.36.207.777.375 1.254.504.473.133.937.183 1.387.156h1.097c.223-.015.391-.086.504-.207l.04-.047a.942.942 0 00.105-.438 3.11 3.11 0 01.058-.738c.047-.218.102-.386.164-.496a1.3 1.3 0 01.204-.28.819.819 0 01.164-.138c.03-.015.054-.027.074-.035.152-.05.332 0 .539.149.207.148.398.332.582.554.18.22.394.465.652.735.254.273.473.476.664.61l.192.112c.125.079.293.149.492.211.203.063.383.078.535.047l2.438-.035c.242 0 .43-.039.562-.121.133-.078.211-.164.238-.262a.815.815 0 00.004-.324 1.578 1.578 0 00-.066-.254zm0 0"/></svg>',url:"https://vk.com/share.php?url=[url]"},{name:"Weibo",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.113 12.074c-.297-.09-.504-.152-.347-.554.34-.868.375-1.618.007-2.153-.691-1.004-2.578-.953-4.742-.027 0-.004-.68.3-.508-.246.336-1.09.282-2.004-.234-2.531-1.176-1.196-4.297.042-6.976 2.773-2.004 2.039-3.168 4.203-3.168 6.074 0 3.578 4.507 5.973 8.917 5.973 5.782 0 9.633-3.637 9.633-6.352 0-1.64-1.36-2.57-2.582-2.957zm-7.039 7.703c-3.52.352-6.558-1.25-6.785-3.574-.23-2.32 2.438-4.488 5.961-4.84 3.52-.351 6.559 1.25 6.785 3.575.227 2.324-2.437 4.492-5.96 4.84zm0 0M22.86 9.16a6.55 6.55 0 00-6.547-6.543.764.764 0 100 1.527 5.017 5.017 0 015.015 5.02c0 .422.344.762.766.762.422 0 .765-.34.765-.762V9.16zm0 0"/><path d="M19.82 9.047a4.367 4.367 0 00-3.394-3.395.762.762 0 00-.903.594.762.762 0 00.594.902 2.835 2.835 0 012.207 2.207.764.764 0 001.496-.308zm0 0M8.27 13.64c-1.418.286-2.375 1.473-2.137 2.657.238 1.18 1.578 1.906 2.996 1.621 1.418-.285 2.375-1.473 2.137-2.656-.239-1.18-1.579-1.907-2.996-1.621zm0 0"/></svg>',url:"https://service.weibo.com/share/share.php?url=[url]"},{name:"LinkedIn",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.996 4.938c0 1.082-.797 1.957-2.105 1.957-1.239 0-2.036-.875-2.036-1.957 0-1.106.825-1.954 2.086-1.954 1.258 0 2.032.848 2.055 1.954m-4.035 3.5h3.91v12.578h-3.91zm6.25 4.011c0-1.566-.055-2.879-.106-4.011H12.5l.18 1.75h.078c.515-.825 1.773-2.032 3.883-2.032 2.574 0 4.5 1.723 4.5 5.426v7.434h-3.907v-6.97c0-1.62-.566-2.73-1.98-2.73-1.082 0-1.723.746-2.008 1.47-.101.253-.129.616-.129.976v7.254h-3.91v-8.567zm0 0"/></svg>',url:"https://www.linkedin.com/shareArticle?mini=true&title=[title]&url=[url]"},{name:"Tumblr",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.14 10.86v4.18c0 1.058-.011 1.67.102 1.972.11.3.39.61.695.789.407.242.868.363 1.387.363.926 0 1.473-.121 2.387-.723v2.75c-.777.368-1.461.582-2.094.73a9.228 9.228 0 01-2.055.224 5.603 5.603 0 01-1.972-.317 4.823 4.823 0 01-1.64-.902c-.458-.395-.77-.809-.946-1.25-.176-.438-.262-1.078-.262-1.914v-6.41H6.29v-2.59c.715-.235 1.52-.57 2.031-1.004.512-.438.922-.961 1.235-1.57.308-.61.523-1.387.64-2.333h2.946V7.43h4.57v3.425zm0 0"/></svg>',url:"https://www.tumblr.com/share/link?url=[url]&title=[title]"},{name:"Pinterest",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.984 2.46C17.332.876 15.047 0 12.547 0 8.73 0 6.383 1.566 5.086 2.879 3.484 4.496 2.57 6.645 2.57 8.773c0 2.668 1.118 4.72 2.989 5.485.125.05.25.074.375.074.394 0 .707-.258.816-.672.063-.238.207-.824.273-1.078.137-.504.024-.746-.273-1.094-.54-.64-.793-1.398-.793-2.383 0-2.93 2.18-6.039 6.223-6.039 3.203 0 5.195 1.82 5.195 4.754 0 1.852-.398 3.567-1.125 4.828-.5.875-1.387 1.922-2.742 1.922-.59 0-1.117-.242-1.45-.664-.316-.398-.417-.91-.292-1.445.144-.606.34-1.238.527-1.848.344-1.113.668-2.164.668-3.004 0-1.437-.883-2.402-2.195-2.402-1.668 0-2.977 1.695-2.977 3.86 0 1.062.281 1.859.41 2.163-.21.891-1.46 6.188-1.699 7.188-.137.582-.96 5.187.406 5.555 1.535.414 2.907-4.075 3.047-4.578.113-.415.508-1.973.754-2.93.738.71 1.934 1.195 3.094 1.195 2.191 0 4.16-.984 5.547-2.773 1.343-1.735 2.082-4.157 2.082-6.813 0-2.074-.89-4.12-2.446-5.613zm0 0"/></svg>',url:"https://pinterest.com/pin/create/bookmarklet/?is_video=false&url=[url]&media=&description=[title]"}].map((function(t){var n=j("a",{href:t.url.replace(/\[url\]/g,encodeURIComponent(e.url)).replace(/\[title\]/g,encodeURIComponent(e.text)),target:"_blank"},t.icon+t.name);return E(n,"svg").forEach((function(t){y(t,"icon")})),j("li",void 0,n)})),r=j("ul",void 0,n);t.parentNode.insertBefore(r,t.nextSibling)})),c((function(){Y().user&&An((function(t){t.pushManager.getSubscription().then((function(t){if(t){var e=JSON.parse(JSON.stringify(t));_({notifications:"",request:"acquire","subscription-type":"web","subscription-identifier":e.endpoint,"subscription-data":JSON.stringify({p256dh:e.keys.p256dh,auth:e.keys.auth})})}}))}))})),u("[data-webpush]",(function(t){An((function(e){e.pushManager.getSubscription().then((function(n){if(n){var r=JSON.parse(JSON.stringify(n));_({notifications:"",request:"acquire","subscription-type":"web","subscription-identifier":r.endpoint,"subscription-data":JSON.stringify({p256dh:r.keys.p256dh,auth:r.keys.auth})},(function(e){t.setAttribute("checked","checked")}),(function(){}))}l(t,"input",(function(r){if(d(r),this.blur(),t.checked)Notification.requestPermission().then((function(r){if("granted"==r){var o="BHMysS6-D1gAsy66c7mn39S46fvOxkp0stmdnPWhF1BPpQORzV2unc1mFKkQ38sbQW5S1N1xiUge9_Aaky1aSTE",i=o.replace(/\-/g,"+").replace(/_/g,"/")+"=".repeat((4-o.length%4)%4),a={userVisibleOnly:!0,applicationServerKey:Uint8Array.from(window.atob(i),(function(t){return t.charCodeAt(0)}))};e.pushManager.subscribe(a).then((function(t){n=t;var e=JSON.parse(JSON.stringify(n));_({notifications:"",request:"subscribe","subscription-type":"web","subscription-identifier":e.endpoint,"subscription-data":JSON.stringify({p256dh:e.keys.p256dh,auth:e.keys.auth})})}))}else t.removeAttribute("checked")}));else{var o=JSON.parse(JSON.stringify(n));_({notifications:"",request:"unsubscribe","subscription-type":"web","subscription-identifier":o.endpoint,"subscription-data":JSON.stringify({p256dh:o.keys.p256dh,auth:o.keys.auth})})}}))})).catch((function(e){t.setAttribute("disabled","disabled")}))}),(function(){t.setAttribute("disabled","disabled")}))})),l(window,"beforeinstallprompt",(function(t){t.preventDefault()}));var Tn=function(){return a.e(135).then(a.bind(a,1421))},jn={},Cn={};u("video[data-media],audio[data-media]",(function(t){var e=JSON.parse(t.getAttribute("data-media"));e&&window.setTimeout((function(){!function(t,e,n,r,o){var i="AUDIO"!=t.nodeName;t.playsinline=!0,t.playsInline=!0,t.disablePictureInPicture=!0,t.crossOrigin="anonymous",t.controls=!1,t.controlsList&&(t.controlsList.add("nodownload"),t.controlsList.add("nofullscreen"),t.controlsList.add("noremoteplayback"));var a=null;E(t,"source").forEach((function(t){var e=t.getAttribute("type")||"",n=t.getAttribute("src");(e.match(/^application\/vnd.apple.mpegurl$/i)||e.match(/^application\/x-mpegURL$/i))&&(a||(a=n))}));var u=(n||[]).filter((function(t){return"spritesheet"==t.type})),c=[];if(0!=u.length){for(var s=u[0],f=s.length,p=1;p*p<f;)p++;for(var h=Math.ceil(f/p),v=Math.floor(s.width/p),m=Math.floor(s.height/h),g=0;g<f;++g){var A=v*(g%p),x=m*Math.floor(g/p);c.push({url:Sn(s.url),x:A,y:x,w:v,h:m})}}var O=t.closest("figure"),k=null,T=null,C=null,M=null,N=null,D=null,L=null,B=null,R=null,z=null,I=[],U=null;if(O){l(O,"click",(function(e){z?z():t.paused?t.play():t.pause()})),E(O,".topleft").forEach((function(t){k=t}));var H=null,q=null;if(t.textTracks){var F=function(n){I.push(n),"showing"==n.mode&&null===U&&(U=n),Bn(n),n.mode="disabled",l(n,"cuechange",(function(r){"showing"==n.mode&&(n.mode="disabled");var o=n.activeCues;if(!o||0==o.length)return H&&P(H),H=null,void(q=null);H||(q=j("div"),H=j("div",{class:"subtitle"},q),O.insertBefore(H,k||T)),In(t,e,q,n,t.currentTime)}))};if(0!=t.textTracks.length)for(var J=0;J<t.textTracks.length;++J)F(t.textTracks[J]);else l(t.textTracks,"addtrack",(function(t){F(t.track)}))}var W=[];[0,1,2,3,4,5].forEach((function(e){var n=j("span");l(n,"click",(function(n){d(n),z&&z(),t.muted=!1,t.volume=.2*e,R&&R()})),W.push(n)}));var Q=j("div",{class:"volume shaded"},W);R=function(){var e=t.muted?0:t.volume;W.forEach((function(t,n){e>=.1+.2*(0!=n?n-1:0)?y(t,"fill"):b(t,"fill")}))},R();var _=null;i&&window.HTMLCanvasElement&&"toBlob"in window.HTMLCanvasElement.prototype&&"createObjectURL"in window.URL&&(window.chrome||window.netscape)&&l(_=j("button",{class:"link shaded"},'<svg class="icon" viewBox="0 0 24 24"><path d="M12 7.999c-2.757 0-5 2.243-5 5 0 2.758 2.243 5 5 5s5-2.242 5-5-2.243-5-5-5zm0 8c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"></path><path d="M20 5.999h-3.465L15.129 3.89a1.996 1.996 0 00-1.664-.891h-2.93c-.67 0-1.292.333-1.664.891L7.465 5.999H4c-1.103 0-2 .897-2 2v11c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2v-11c0-1.103-.897-2-2-2zm-16 13v-11h4.535l2-3h2.93l2 3H20l.001 11H4z"></path></svg>'),"click",(function(e){d(e),z&&z();var n=j("canvas");n.width=t.videoWidth,n.height=t.videoHeight,n.getContext("2d").drawImage(t,0,0,n.width,n.height),n.toBlob((function(t){var e=null;try{e=window.URL.createObjectURL(t)}catch(t){return}var n=j("a");n.href=e,n.download="snapshot.jpg",n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e)}),"image/jpeg",.95)}));var X=null;if(i&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&l(X=j("button",{class:"link shaded"},'<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 21.999h5a2 2 0 002-2v-5a2 2 0 00-2-2H4a2 2 0 00-2 2v5a2 2 0 002 2zm0-7h5l-.003 5H4v-5zM21 2.999h-7v2h3.586l-6.293 6.293 1.414 1.414L19 6.413v3.586h2z"/></svg>'),"click",(function(t){d(t),z&&z(),document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():O.requestFullscreen?O.requestFullscreen():O.webkitRequestFullscreen?O.webkitRequestFullscreen():O.mozRequestFullScreen?O.mozRequestFullScreen():O.msRequestFullscreen&&O.msRequestFullscreen()})),T=j("div",{class:"topright cols"},[_,X,Q]),O.insertBefore(T,k&&k.nextSibling),0!=I.length){var $=I.map((function(t,e){if(!(e>=(i?3:1)&&e+1!=I.length)){var n=j("button",{class:"link shaded"},'<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 11v2c0 1.654 1.346 3 3 3h2v-2H9c-.551 0-1-.448-1-1v-2c0-.551.449-1 1-1h2V8H9c-1.654 0-3 1.346-3 3zM13 11v2c0 1.654 1.346 3 3 3h2v-2h-2c-.551 0-1-.448-1-1v-2c0-.551.449-1 1-1h2V8h-2c-1.654 0-3 1.346-3 3z"/><path d="M20 4H4c-1.103 0-2 .896-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.104-.897-2-2-2zM4 18V6h16l.001 12H4z"/></svg>'+t.label);return l(n,"click",(function(n){d(n),z&&z(),"disabled"!=t.mode?t.mode="disabled":I.forEach((function(t,n){t.mode=n==e?"hidden":"disabled"})),H&&P(H),H=null,q=null})),n}}));C=j("div",{class:"bottomleft"},$),O.insertBefore(C,T.nextSibling)}if(r){var G=j("a",{href:r,class:"icon",target:"_top"},'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="31.998" cy="34.891" r="21.365" fill="#fff"/><path d="M31.997 7.043c-6.209 0-12.052.347-16.462.983-5.736.827-7.97 1.885-7.97 3.771 0 1.887 2.234 2.944 7.97 3.771a74.76 74.76 0 002.976.362 21.55 21.55 0 014.51-2.518c-5.833-.36-9.696-1.034-11.56-1.615 2.696-.84 9.567-1.873 20.536-1.873 10.97 0 17.846 1.033 20.542 1.873-1.856.579-5.69 1.248-11.48 1.61a21.1 21.1 0 014.449 2.523 73.952 73.952 0 002.957-.362c5.736-.827 7.97-1.884 7.97-3.77 0-1.887-2.234-2.945-7.97-3.772-4.41-.636-10.259-.983-16.468-.983zM46.31 39.157c-.042-.032-.09-.078-.146-.126-.057-.046-.113-.11-.18-.168l-.203-.208c-.067-.077-.134-.157-.208-.236-.07-.087-.149-.192-.219-.272a1.98 1.98 0 01-.176-.278 2.184 2.184 0 01-.139-.306c-.037-.107-.078-.211-.104-.318a5.013 5.013 0 01-.073-.294c.15-.143.24-.254.274-.297a1.188 1.188 0 00-1.87-1.467l-.002-.002c-.024.026-.209.225-.605.419-.398.194-1.008.392-1.938.393-1.62 0-2.488-.283-2.903-.49a1.437 1.437 0 01-.345-.22l-.016-.016-.003.002a1.185 1.185 0 00-1.564-.336 1.192 1.192 0 00-.423 1.63c.053.091.17.261.38.456.312.295.83.643 1.615.907.788.264 1.84.448 3.26.449a7.234 7.234 0 002.08-.289c.04.057.082.114.125.169.09.102.172.175.254.26.184.167.367.301.535.394.17.094.319.154.427.182a.894.894 0 00.173.036s-.053-.036-.136-.106c-.043-.032-.091-.078-.147-.126-.057-.046-.113-.11-.18-.169l-.202-.207c-.068-.077-.134-.158-.21-.236-.07-.087-.148-.193-.218-.272l-.037-.053a5.73 5.73 0 00.54-.23 2.4 2.4 0 00.128.307c.066.12.145.23.229.335.09.103.172.175.255.261.183.167.367.301.535.394.168.094.318.153.427.182a.882.882 0 00.171.035s-.052-.035-.135-.106c-.043-.032-.09-.077-.147-.125-.057-.047-.113-.11-.18-.17-.063-.063-.13-.134-.203-.207-.067-.077-.133-.157-.208-.235-.07-.088-.149-.193-.22-.272a2.127 2.127 0 01-.175-.28 2.195 2.195 0 01-.139-.305c.202-.119.373-.238.515-.35.004.04.007.08.015.121.018.12.042.247.084.37.038.124.091.248.151.369.065.119.145.23.23.335.09.102.17.176.253.26.184.167.367.301.536.394.168.094.318.153.427.182a.858.858 0 00.171.036s-.052-.036-.136-.106m-19.735-4.173a1.187 1.187 0 00-1.646.202l-.002-.002c-.023.026-.209.225-.605.42-.397.193-1.008.391-1.937.392-1.62 0-2.489-.282-2.904-.488a1.44 1.44 0 01-.344-.222l-.016-.016-.003.003a1.186 1.186 0 00-1.987 1.294c.053.09.17.26.378.456l.013.011-.033.136c-.027.106-.068.211-.105.318a2.148 2.148 0 01-.14.306c-.05.1-.112.19-.175.278-.07.08-.148.185-.22.272-.074.08-.14.16-.207.236l-.202.207c-.068.06-.124.123-.181.17-.056.048-.104.093-.147.125-.083.07-.135.106-.135.106s.064-.005.172-.036c.108-.028.258-.088.426-.182a2.89 2.89 0 00.535-.393c.083-.086.164-.158.255-.261.083-.106.164-.216.229-.335.06-.121.112-.244.152-.369.037-.111.059-.223.077-.333.139.102.301.204.49.304-.029.066-.06.132-.094.195-.05.099-.111.19-.175.278-.07.079-.149.185-.22.272-.074.078-.14.16-.208.235l-.202.208c-.067.059-.123.123-.18.169-.057.048-.104.094-.147.126-.083.07-.136.106-.136.106s.065-.004.172-.036c.109-.029.258-.088.426-.183a2.82 2.82 0 00.536-.393c.083-.085.164-.158.255-.26a2.42 2.42 0 00.228-.336c.035-.07.067-.142.096-.213.143.062.295.122.462.178l.066.02c-.068.078-.143.179-.21.263-.076.08-.142.16-.21.236l-.201.207c-.067.059-.124.123-.18.169-.057.049-.105.094-.148.126-.083.07-.135.106-.135.106s.064-.005.172-.036c.108-.028.258-.088.427-.182.167-.093.351-.227.535-.393.082-.086.163-.158.254-.262.03-.038.06-.079.09-.12.725.19 1.638.315 2.8.315 1.453.002 2.542-.372 3.262-.783.722-.41 1.076-.843 1.152-.942a1.192 1.192 0 00-.225-1.669m.205 9.81h9.582s-.926 4.167-4.924 4.167c-3.57 0-4.658-4.167-4.658-4.167m5.24 8.193a18.11 18.11 0 01-7.082-1.43 18.272 18.272 0 01-8.007-6.602 18.129 18.129 0 01-3.106-10.182c0-.09.005-.177.007-.265 3.026-.483 8.775-1.733 11.969-4.554 2.907-2.57 4.615-5.36 5.616-7.876.975 2.516 2.64 5.307 5.473 7.876 3.91 3.544 11.75 4.607 13.324 4.788v.031c0 2.52-.51 4.91-1.43 7.09a18.284 18.284 0 01-6.594 8.014 18.087 18.087 0 01-10.17 3.11zm25.118-6.798c-2.815-2.33-1.49-9.713-3.687-17.069a21.953 21.953 0 00-1.015-2.982 22.25 22.25 0 00-8.026-9.759 22.047 22.047 0 00-12.39-3.79c-3.055 0-5.975.621-8.627 1.745a22.238 22.238 0 00-9.747 8.035 22.082 22.082 0 00-2.692 5.513c-2.763 7.75-1.12 15.846-4.09 18.307-2.008 1.66-6.864.765-6.864.765s-.006 3.429 4.314 5.612c8.677 4.388 14.905 2.266 16.697 1.463a22.052 22.052 0 0011.009 2.928c3.054 0 5.974-.62 8.626-1.744.814-.345 1.602-.74 2.362-1.175 1.815.809 8.03 2.903 16.679-1.47C64.006 50.383 64 46.954 64 46.954s-4.856.895-6.862-.765" fill="#000"/></svg>');w(G,{width:"2rem",opacity:.1});var Y=j("div",{class:"bottomright"},G);O.insertBefore(Y,(C||T).nextSibling)}if(0!=c.length){L=j("span",null,Ln(0)),w(D=j("div",{class:"spotlight"},L),{width:c[0].w+"px",height:c[0].h+"px",backgroundImage:"url("+c[0].url+")",backgroundPosition:"top left"});var K=c.reduce((function(t,e){return t+e.w}),0),Z=Math.max(O.offsetWidth,window.screen.width,window.screen.height);if(3*K>Z){for(var tt=Math.max(K/Z/25,1),et=[],nt=0;nt<c.length;nt+=tt){var rt=Math.min(Math.round(nt),c.length-1);et.push(c[rt])}var ot=et.map((function(t){var e=j("span");return w(e,{width:Math.floor(2*t.w/3)+"px",height:Math.floor(2*t.h/3)+"px",backgroundImage:"linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),url("+t.url+")",backgroundPosition:"top -"+Math.floor(t.y+t.h/6)+"px left -"+Math.floor(t.x+t.w/6)+"px"}),e}));B=j("div",{class:"carousel"},ot)}}l(N=j("input",{type:"range",min:0,max:1,step:1e-4,value:0,autocomplete:"off"}),"input",(function(e){!z||i?isFinite(t.duration)&&(t.currentTime=N.value*t.duration):d(e)})),l(N,"click",(function(t){(z||i)&&d(t),z&&z()})),l(N,["mousemove","touchmove"],(function(e){var n;if("clientX"in e)n=e.clientX;else{if(!e.changedTouches||0==e.changedTouches.length)return;n=e.changedTouches[0].clientX}var r=(n-N.getBoundingClientRect().left)/N.offsetWidth;if(D){var o=Math.max(Math.min(Math.round(r*c.length),c.length-1),0),i=c[o],a=O.offsetWidth,u=D.offsetWidth,l=a*r;l+u/2>a-1&&(l=a-u/2-1),l<u/2+1&&(l=u/2+1),w(D,{left:l.toFixed(3)+"px",backgroundPosition:"top -"+i.y+"px left -"+i.x+"px"}),isFinite(t.duration)&&(L.textContent=Ln(r*t.duration))}if(B){var s=B.offsetWidth,f=O.offsetWidth;w(B,{left:"-"+((s-f)*r).toFixed(3)+"px"})}})),M=j("div",{class:"scrubber"},[N,B,D]),i?O.appendChild(M):O.insertBefore(M,k||T);var it=null;l(O,["mousemove","touchmove"],(function(e){y(t,"hovered"),it&&window.clearTimeout(it),it=window.setTimeout((function(){b(t,"hovered"),it=null;var e=document.activeElement;e&&S(t,e)&&e.blur()}),2e3)}))}i&&!o||y(t,"playable");var at=!1;if(l(t,"play",(function(e){b(t,"paused"),b(t,"playable"),o&&!at&&(V(o),at=!0)})),l(t,"pause",(function(e){y(t,"paused")})),e in jn)t.readyState>=t.HAVE_METADATA?t.currentTime=jn[e]:l(t,"loadedmetadata",(function(){t.currentTime=jn[e]}));else if(!t.closest(".modal")){var ut=/^#(\d+)$/.exec(window.location.hash||"");ut&&(t.currentTime=parseInt(ut[1]))}l(t,"timeupdate",(function(n){if(N&&isFinite(t.duration)){var r=t.currentTime/t.duration;N.value=r}k&&(isFinite(t.duration)||t.currentTime>0)&&(k.textContent=Ln(isFinite(t.duration)?t.duration-t.currentTime:t.currentTime)),t.paused||t.ended||(jn[e]=t.currentTime)})),l(t,"ended",(function(n){delete jn[e],t.currentTime=0}));var ct=null,lt=function(){if(N&&t.buffered&&isFinite(t.duration)){for(var e=t.buffered,n="rgba(255,255,255,0.3)",r=i?"rgba(255,255,255,0.5)":"transparent",o="",a=0,u=0;u<e.length;++u){var c=e.start(u)/t.duration*100,l=e.end(u)/t.duration*100;a<c&&(o+=","+n+" "+a.toFixed(3)+"% "+c.toFixed(3)+"%"),o+=","+r+" "+c.toFixed(3)+"% "+l.toFixed(3)+"%",a=l}a<100&&(o+=","+n+" "+a.toFixed(3)+"% 100%"),N.style.setProperty("--background","linear-gradient(.25turn"+o+")")}ct&&window.clearTimeout(ct),ct=window.setTimeout((function(){lt(),ct=null}),500)};l(t,"progress",(function(t){lt()}));var st=function(){t.pause(),setTimeout((function(){if(S(document.documentElement,t)){var e=t.play();e&&e.then((function(t){})).catch((function(e){i&&null!==U?(null!==U&&(U.mode="hidden"),t.muted=!0,t.play(),y(t,"muted"),z=function(){t.muted=!1,z=null,R(),b(t,"muted")},R&&R()):(y(t,"paused"),z=function(){t.play(),z=null})}))}}))};a?Tn().then((function(e){var n=e.default;if(S(document.documentElement,t)){var r=Un(n,t,a);r&&(l(t,"play",(function(t){r.startLoad()})),l(t,"pause",(function(e){S(document.documentElement,t)||r.stopLoad()}))),o?i||(z=function(){t.play(),z=null}):st()}})):o||st()}(t,e.id,e.media,e.logo,e.viewing)}))})),u("figure.video>video,figure.photo>img",(function(t){if(window.self===window.top){var e=t.closest("figure"),n=t.closest(".modal"),r=parseInt(t.getAttribute("width"))/parseInt(t.getAttribute("height"));w(e,{maxWidth:"calc("+(100*r).toFixed(3)+"vh - "+(r*(n?6:4)).toFixed(3)+"rem)",margin:"0 auto"})}})),u("body>figure:first-child:last-child",(function(t){w(document.documentElement,{width:"100vw",height:"100vh",overflow:"hidden"}),w(t,{width:"100vw",height:"100vh"})}));var Mn=null,Pn=null;function Nn(t){if(Pn!==t&&(Pn=t,Mn&&Mn(),Mn=null,t)){var e=JSON.parse(t.getAttribute("data-glance"));if(0==ht){var n=null,r=null,o=null,i=t.querySelector("figure[data-media]");if(i){var a=JSON.parse(i.getAttribute("data-media"));if(!a)return;o=a.viewing;var u=[],c=null,f=null,d=null;if(a.media.forEach((function(t){if("video"==t.type||"audio"==t.type){if(t.mediatype.match(/^application\/vnd.apple.mpegurl$/i)||t.mediatype.match(/^application\/x-mpegURL$/i))return void(d=t.url);if(t.mediatype.match(/^application\/dash\+xml$/i))return;if("video"==t.type){var e=j("source",{src:t.url,type:t.mediatype});u.push(e),(null===c&&null===f||c*f<t.width*t.height)&&(c=t.width,f=t.height)}}else if("subtitle"==t.type){var n=j("track",{kind:"subtitles",src:t.url,srclang:t.language.code});u.push(n)}})),0!=u.length||d){i.querySelector("img");var p=E(i,"a").pop(),m=E(i,".play").pop(),g=E(i,".topleft").pop(),y=g?g.innerHTML:null,b=c&&f?j("video",{width:c,height:f},u):j("audio",{},u);b.playsinline=!0,b.playsInline=!0,b.disablePictureInPicture=!0,b.crossOrigin="anonymous",b.controls=!1,b.controlsList&&(b.controlsList.add("nodownload"),b.controlsList.add("nofullscreen"),b.controlsList.add("noremoteplayback")),b.muted=!0,b.loop=!0,w(b,{width:"100%",height:"100%",objectFit:"cover"}),window.CSS&&window.CSS.supports("object-fit","cover")||!c||!f||l(b,"playing",(function(t){var e=i.getBoundingClientRect(),n=e.width/e.height,r=c/f;w(b,r<n?{width:"100%",height:null,marginTop:"-"+50*(1/r-1/n)+"%",marginRight:null,marginBottom:"-"+50*(1/r-1/n)+"%",marginLeft:null}:{width:r/n*100+"%",height:null,marginTop:null,marginRight:"-"+50*(r/n-1)+"%",marginBottom:null,marginLeft:"-"+50*(r/n-1)+"%"})})),l(b,"contextmenu",(function(){return!1})),a.id in Cn&&(b.readyState>=b.HAVE_METADATA?b.currentTime=Cn[a.id]:l(b,"loadedmetadata",(function(){b.currentTime=Cn[a.id]}))),m?(m.parentNode.insertBefore(b,m.nextSibling),w(m,{display:"none"})):p.parentNode.insertBefore(b,p);var S=null,A=null,x=function(){S&&P(S),g&&(g.innerHTML=y),S=null,A=null};if(l(b,"timeupdate",(function(t){!1!==x&&(g&&(isFinite(b.duration)||b.currentTime>0)&&(g.textContent=Ln(isFinite(b.duration)?b.duration-b.currentTime:b.currentTime)),b.paused||b.ended||(Cn[a.id]=b.currentTime))})),b.textTracks){var O=function(t){Bn(t),t.mode="hidden",l(t,"cuechange",(function(e){var n=t.activeCues;if(!n||0==n.length)return S&&P(S),S=null,void(A=null);S||(A=j("div"),S=j("div",{class:"subtitle"},A),p.parentNode.insertBefore(S,p)),In(i,a.id,A,t,b.currentTime)}))};0!=b.textTracks.length?O(b.textTracks[0]):l(b.textTracks,"addtrack",(function(t){O(t.track)}))}var k=function(){b.pause(),setTimeout((function(){var t=b.play();t&&t.then((function(t){})).catch((function(t){n&&n(),n=null}))}))},C=null;n=function(){b.pause(),x&&x(),x=!1,C&&C.stopLoad(),P(b),w(m,{display:null})},d?Tn().then((function(t){var e=t.default;n&&((C=Un(e,b,d,!0))&&l(b,"play",(function(t){C.startLoad()})),k())})):k()}}else{var M=t.querySelector("blockquote>a[title]");if(M)r=function(){var t=j("iframe",{width:0,height:0,src:M.getAttribute("title"),sandbox:"",credentialless:"",style:"display:none"});"allow"in t&&(T(M.parentNode,t),setTimeout((function(){P(t)}),1e3))};else{var N=E(t,"figure");if(N.sort((function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return r.width*r.height-n.width*n.height})),N){var D=N.shift().querySelector("img[data-scale]");if(D){var L=JSON.parse(D.getAttribute("data-scale"));if(L&&L.frames){var B=D.src;D.src=Sn(B,void 0,!0),n=function(){D.src=B}}}}}}var R=setTimeout((function(){h(t,"viewing")||(v(t,"viewing",!0),V(o||e.viewing),r&&r(),r=null)}),function(){if("orientation"in window.screen){var t=window.screen.orientation;if(!(0==t.angle&&"landscape-primary"==t.type))return!0}var e=window.matchMedia||window.msMatchMedia;if(e){var n=e("(pointer:coarse)");if("(pointer:coarse)"==(null==n?void 0:n.media))return!!n.matches}return!1}()?1700:2500),z=E(t,"a[data-post],a[data-album]"),I=null;Mn=function(){n&&n(),n=null,clearTimeout(R),z.forEach((function(t){s(t,"click",Mn)})),I&&I.disconnect()},z.forEach((function(t){l(t,"click",Mn)})),window.MutationObserver&&(I=new MutationObserver((function(t){t.forEach((function(t){if("attributes"==t.type&&"class"==t.attributeName)return Mn()}))}))).observe(document.documentElement,{attributes:!0})}}}var Dn=n((function(){var t=[];E(document.documentElement,"section[data-glance]").forEach((function(e){if(A(e)){var n=E(e,"figure.tile,.col-third>figure"),r=E(e,"h1,h2,h3"),o=[].concat(On(n),On(r),[e]).shift().getBoundingClientRect(),i=document.documentElement.clientHeight||window.innerHeight,a=o.top<0||o.bottom>i,u=e.querySelector("figure[data-media]");t.push({element:e,rect:o,covers:a?Math.min(o.bottom,i)-Math.max(o.top,0):null,video:!!u})}})),0!=t.length?(t.sort((function(t,e){return null!==t.covers&&null!==e.covers?e.covers-t.covers:null!==t.covers||null!==e.covers?null===t.covers?-1:1:t.video!=e.video?t.video?-1:1:t.rect.top-e.rect.top})),Nn(t.shift().element)):Nn()}),200,!0);function Ln(t){var e=Math.floor(t/3600),n=Math.floor(t/60)%60,r=Math.floor(t)%60;return(0!=e?(e<10?"0"+e:e)+":":"")+(n<10?"0"+n:n)+":"+(r<10?"0"+r:r)}function Bn(t){if(window.VTTCue)if(null!==t.cues)n();else{var e=setTimeout((function(){null!==t.cues&&n()}),100);l(t,["load","loaded"],(function(t){clearTimeout(e),n()}))}function n(){for(var e=0;e<t.cues.length;++e){var n=t.cues[e];if(0==e)n.startTime=Math.max(n.startTime-1,0);else{var r=Math.min(n.startTime-t.cues[e-1].endTime,2);r>0&&(t.cues[e-1].endTime+=r/2,n.startTime-=r/2),e+1==t.cues.length&&(n.endTime+=1)}}}}u("section[data-glance]",Dn);var Rn={},zn=new WeakMap;function In(t,e,n,r,o){for(var i=[],a=0;a<r.activeCues.length;++a){var u=r.activeCues[a];u.startTime<=o&&o<=u.endTime&&i.push(u)}if(0!=i.length){var c=i[i.length-1],l=h(t,"translation");if(l){var s=Array.isArray(l.target)?l.target.join(","):l.target,d=e+":"+r.language+":"+s;d in Rn||(Rn[d]={});for(var p=Rn[d],v=[],m=[],g=0;g<r.cues.length;++g){var y=r.cues[g];if(!(y.endTime<c.endTime)&&(y.endTime<=c.endTime+30&&v.push(y),m.push(y),y.startTime>c.endTime+90))break}var b=v.every((function(t){return t.text in p}));if(!b){var w={},S=0,A={};m.forEach((function(t){if(!(t.text in p)){p[t.text]=null;var e=("00000"+S).substr(-5);S+=1,w[e]=t.text.replace(/<([0-9]{2})?:?([0-9]{2}):([0-9]{2})\.([0-9]{2,3})>/g,"").replace(/\n/g,"<br>"),A[e]=t.text}}));var E=xn(xn(xn({},l.kind,l.id),"source",r.language),"target",s);X(location.protocol+"//"+l.host+(l.port?":"+l.port:"")+"/?"+new URLSearchParams(E).toString(),w,(function(t){for(var e in w)if(e in t){var n=A[e];p[n]=t[e]}f(r,"cuechange")}),null,"application/json")}var x=p[c.text];if(x)return void(n.innerHTML=x)}for(var O=c.text.split(/<([0-9]{2})?:?([0-9]{2}):([0-9]{2})\.([0-9]{2,3})>/),k=[{time:null,text:O[0]}],T=1;T<O.length;T+=5){var j=60*parseInt(O[T]||0,10)*60+60*parseInt(O[T+1],10)+parseInt(O[T+2],10)+parseFloat("0."+O[T+3],10);k.push({time:j,text:O[T+4]})}if(k.length>1&&window.VTTCue){var C=k,M=k.map((function(t){return t.text})).join("");if(M.length>=60){for(var P=Math.ceil(M.length/40),D=C.reduce((function(t,e){return t[t.length-1].length>=C.length/P&&t.push([]),t[t.length-1].push(e),t}),[[]]),L=0;L<C.length;++L){for(var B,R=D.map((function(t,e){return{text:t.map((function(t){return t.text})).join(""),index:e}})).sort((function(t,e){return t.text.length!=e.text.length?e.text.length-t.text.length:t.index-e.index})),z=!1,I=function(){var t=R[U].index;if(1==D[t].length)return 0;var e=!1,n=!1;if(0!=t){var r=D[t-1].map((function(t){return t.text})).join(""),o=D[t].map((function(t,e){return 0!=e?t.text:""})).join(""),i=/\s$/.test(r)||/^\s/.test(D[t][0].text),a=/\s$/.test(D[t][0].text)||1==D[t].length||/^\s/.test(D[t][1].text);e=(i?2*r.length:r.length)<(a?2*o.length:o.length)}if(t+1!=D.length){var u=D[t].map((function(e,n){return n+1!=D[t].length?e.text:""})).join(""),c=D[t+1].map((function(t){return t.text})).join(""),l=/\s$/.test(u)||/^\s/.test(D[t][D[t].length-1].text),s=/\s$/.test(D[t][D[t].length-1].text)||/^\s/.test(c);n=(l?2*u.length:u.length)>(s?2*c.length:c.length)}return e&&(!n||D[t][0].length>=D[t][D[t].length-1].length)?(D[t-1].push(D[t].shift()),z=!0,1):n?(D[t+1].unshift(D[t].pop()),z=!0,1):void 0},U=0;U<R.length&&(0===(B=I())||1!==B);++U);if(!z)break}C=D.map((function(t,e){return{time:t[0].time,text:t.map((function(t){return t.text})).join("")}}))}else C=[{time:null,text:C.map((function(t){return t.text})).join("")}];if(!zn.has(c)&&C.length>=2){zn.set(c,null);for(var H=1;H<C.length;++H){var q=new VTTCue(C[H].time,H+1==C.length?c.endTime:C[H+1].time,c.text);r.addCue(q),zn.set(q,null)}c.endTime=C[1].time}for(var F=C.length;0!=F;--F)if(o>=(C[F-1].time||0)){var J=C[F-1].text;return void(n.innerHTML=J.trim())}}N(n),n.appendChild(c.getCueAsHTML())}else N(n)}function Un(t,e,n,r){var o=window.MediaSource;if(!o)return null;var i=o.isTypeSupported;if("function"!=typeof i)return null;for(var a=['video/mp4; codecs="avc1.42c01e,mp4a.40.5"','video/mp4; codecs="avc1.4d401f,mp4a.40.5"'],u=0;u<a.length;++u)if(!i(a[u]))return null;if(!t.isSupported())return null;var c={maxBufferSize:33554432,maxBufferLength:30,maxMaxBufferLength:120,maxLoadingDelay:4,capLevelToPlayerSize:!0};xe()&&(c.fLoader=function(r){var o=new t.DefaultConfig.loader(r),i=Pe(n);Object.defineProperties(this,{stats:{get:function(){return o.stats}},context:{get:function(){return o.context}}}),this.load=function(t,n,r){var a=o.stats;a.loading.start=performance.now();try{i.load(t.url,"video/mp2t",1e3*Math.max(t.frag.start-e.currentTime,0),(function(e){var n=null;t.rangeStart&&t.rangeEnd?(n=new ArrayBuffer(t.rangeEnd-t.rangeStart),new Uint8Array(n).set(new Uint8Array(e).slice(t.rangeStart,t.rangeEnd))):(n=new ArrayBuffer(e.byteLength),new Uint8Array(n).set(new Uint8Array(e)));var o={url:t.url,data:n};0===a.loading.first&&(a.loading.first=performance.now()),a.loading.end=Math.min(performance.now(),a.loading.first+.9*t.frag.duration),a.loaded=n.byteLength,a.total=n.byteLength,r.onSuccess(o,a,t)}),t.progressData&&function(e,n,o){0===a.loading.first&&(a.loading.first=performance.now()),a.loaded=e,a.total=n,r.onProgress(a,t,!0===t.progressData?o:void 0)},(function(e,i){var u=r.onSuccess;r.onSuccess=function(t,e,n,r){if(i){var o=new ArrayBuffer(t.data.byteLength);new Uint8Array(o).set(new Uint8Array(t.data)),i(o)}u(t,e,n,r)},a.loading.start=0,o.load(t,n,r)}))}catch(t){}},this.abort=function(){o.abort(),i.abort()},this.destroy=function(){o.destroy(),i.abort()}});var l=new t(c);return l.on(t.Events.MANIFEST_PARSED,(function(t,e){var n=null,o=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(o)if(o.downlink)n=Math.round(1024*o.downlink*1024);else if(o.effectiveType){var i=o.effectiveType;"slow-2g"==i||"2g"==i?n=40960:"3g"==i?n=716800:"4g"==i?n=157286400:"5g"==i&&(n=21474836480)}var a=null,u=null;l.levels.forEach((function(t,e){!("videoCodec"in t)&&"audioCodec"in t||"width"in t&&"height"in t&&"bitrate"in t&&(r&&(t.width>=1280||t.height>=1280||t.width*t.height>=917604)?l.removeLevel(e,t.urlId):t.bitrate<=(n||1048576)&&(null===u||u<t.bitrate)&&(a=e,u=t.bitrate))})),null!==a&&(l.startLevel=a)})),l.loadSource(n),l.attachMedia(e),l}function Hn(t){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(t)}function qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qn(Object(n),!0).forEach((function(e){Jn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Hn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}u("summary",(function(t){l(t,"click",(function(e){d(e),this.blur();var n=t.closest("details");if(n&&!n.hasAttribute("open")){var r=n.offsetHeight;n.setAttribute("open","open");var o=n.offsetHeight;if(r!=o)w(n,{height:r+"px",overflow:"hidden"}),m(2*r>=o?150:5*r>=o?300:450,(function(t){w(n,{height:(o-r)*t+r+"px"})}),(function(){w(n,{height:null,overflow:null})}))}}))})),l(document,"keydown",(function(t){var e=!1,n=document.activeElement;n&&(n.matches("input")||n.matches("textarea")||n.closest("form"))&&(e=!0);var r=E(document.documentElement,".dropdown.open");if(0!=r.length)if("Escape"==t.key)r.forEach((function(e){d(t),b(e,"open")}));else if(!e&&("ArrowDown"==t.key||"ArrowUp"==t.key)){d(t);var o=document.documentElement.querySelector(".dropdown :focus");if(!o)return;var i=o.closest("li");if(i?"ArrowDown"==t.key?i=O(i):"ArrowUp"==t.key&&(i=k(i)):i=r[0].querySelector("li"),!i)return;var a=i.querySelector("a");a&&a.focus()}"Escape"==t.key&&(0!=yt(!0).length&&d(t));var u=document.documentElement.querySelector(".paper");if(u&&!e){var c=h(u,"paper");c&&("ArrowLeft"==t.key?(d(t),c.back()):"ArrowRight"==t.key&&(d(t),c.next()))}})),l(document,["mousedown","touchstart"],(function(t){E(document.documentElement,".dropdown.open").forEach((function(e){S(e,t.target)||b(e,"open")}))})),u(".dropdown",(function(t){y(t,"lock"),function(t){l(t,"click",(function(){if(g(t,"open"))b(t,"open");else{var e=t.querySelector("ul");if(e&&(w(e,{display:"none",marginLeft:null,marginTop:null}),e.offsetHeight,w(e,{display:null}),e.offsetHeight),y(t,"open"),e&&e.offsetParent){var n=e.offsetParent.getBoundingClientRect(),r=n.left,o=n.top,i=t.closest(".scrollbox,[data-scroll]"),a=document.documentElement.clientWidth||window.innerWidth,u=document.documentElement.clientHeight||window.innerHeight;if(i){var c=i.getBoundingClientRect();r-=c.left,o-=c.top;var l=window.innerWidth-Math.min(document.documentElement.offsetWidth,window.innerWidth);a=c.width-l,u=c.height}var s=e.offsetWidth,f=e.offsetHeight,d=r+e.offsetLeft-s/2,p=o+e.offsetTop,h=d+s;(d<1||h>a-1)&&0!=window.getComputedStyle(e).transform.match(/-?\d+\.?\d*/g)[4]&&w(e,{marginLeft:(d<1?1-d:Math.max(1-d,a-1-h))+"px"});var v=p+f;v>u-1&&w(e,{marginTop:Math.max(1-p,u-1-v)+"px"})}}}),!0)}(t)}));var Wn=null;function Vn(t,e){var n=null,r=null,o=null;function i(){if(n){var t=n;n=null,r&&r(),r=null,o&&o(),o=null,b(t,"open"),setTimeout((function(){P(t)}),1e3),Wn==i&&(Wn=null)}}function a(a,f){r&&r(),r=null,o&&o(),o=null,r=V(e,(function(e){r=null,function(e){if(Wn&&Wn(),Wn=null,S(document.documentElement,t)){Wn=i;for(var r=t.closest(".scrollbox")||t.closest("h6")||t.closest("button")||t,o=r;o&&o!=document.documentElement&&!g(o,"modal");o=o.parentElement)"hidden"==window.getComputedStyle(o).overflow&&(r=o);var a=(r.offsetParent||document.body).getBoundingClientRect(),f=t.getBoundingClientRect(),d=f.left-a.left+f.width/2;l(n=j("div",{class:"popup",style:"left:"+d+"px;top:"+(f.top-a.top+f.height)+"px"},e),"mousemove",u),l(n,"mouseleave",s),r.parentNode.insertBefore(n,r.nextSibling),E(n,"[data-popup]").forEach((function(t){t.removeAttribute("data-popup")})),c(n,!0);var p=n.offsetWidth,h=n.offsetHeight,v=document.documentElement.clientWidth||window.innerWidth,m=document.documentElement.clientHeight||window.innerHeight;a.left+d+p/2>=v-5&&(d=v-5-(a.left+p/2),n.style.left=d+"px"),a.left+d<=p/2+5&&(d=p/2+5-a.left,n.style.left=d+"px"),f.top>h+5&&f.top+f.height+h>m-5&&(n.style.top="",n.style.bottom=a.bottom-f.bottom+f.height+"px",n.style.transformOrigin="bottom left"),n.offsetWidth,y(n,"open")}}(e.main)}),(function(){r=null,Wn=null})),Wn&&Wn(),Wn=r}function u(e){if(o&&o(),o=null,!n&&!t.closest("button:focus")){var i=setTimeout((function(){a(e.clientX,e.clientY)}),200);r&&r(),r=function(){clearTimeout(i)},Wn&&Wn(),Wn=r}}function s(t){r&&r(),r=null;var e=setTimeout(i,100);o&&o(),o=function(){clearTimeout(e)}}l(t,"mousemove",u),l(t,["mouseleave","click"],s)}u("[data-popup]",(function(t){var e=JSON.parse(t.getAttribute("data-popup"));e&&Vn(t,e)}));var Qn=Date.now();function _n(t){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(t)}function Xn(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $n(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gn(Object(n),!0).forEach((function(e){Kn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=_n(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}window.setInterval((function(){var t=Date.now();E(document.documentElement,"[data-datetime]").forEach((function(e){var n=e.getAttribute("datetime"),r=e.getAttribute("data-datetime");if(n){var o=h(e,"datetime"),i=t-(o||Qn),a=new Date(n),u=a.getTime(),c=60*a.getTimezoneOffset()*1e3,l=parseInt(r),s=function(t,e){var n=Fn(Fn({},{plural:"['one','other'][(n!=1)?1:0]",digits:null,"year-one":"{#} year ago","year-other":"{#} years ago","year+one":"in {#} year","year+other":"in {#} years","month-one":"{#} month ago","month-other":"{#} months ago","month+one":"in {#} month","month+other":"in {#} months","week-one":"{#} week ago","week-other":"{#} weeks ago","week+one":"in {#} week","week+other":"in {#} weeks","day-one":"{#} day ago","day-other":"{#} days ago","day+one":"in {#} day","day+other":"in {#} days","hour-one":"{#} hour ago","hour-other":"{#} hours ago","hour+one":"in {#} hour","hour+other":"in {#} hours","minute-one":"{#} minute ago","minute-other":"{#} minutes ago","minute+one":"in {#} minute","minute+other":"in {#} minutes","second-one":"{#} second ago","second-other":"{#} seconds ago","second+one":"in {#} second","second+other":"in {#} seconds"}),Y().i18n.datetime),r=t.getTime()<e.getTime(),o=Math.floor(Math.abs(t.getTime()-e.getTime())/1e3),i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),a=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),u=Math.floor(Math.abs(i-a)/864e5);function c(t,e){var o=Math.floor(e),i=t+(r&&0!=o?"+":"-")+o;return i in n?n[i]:null}function l(t,e){var o=Math.floor(e),i=null;try{var a=Function('"use strict";var n='+o+";return ("+n.plural+");")();i=t+(r&&0!=o?"+":"-")+a}catch(t){return}if(i in n){var u=n.digits?o.toString().replace(/[0-9]/g,(function(t){return n.digits[+t]})):o;return n[i].replace("{#}",u)}return null}function s(t,e){var n=c(t,e);return n||(l(t,e)||null)}if(o<60){var f=c("second",0);if(f)return f}if(o<3600)return s("minute",Math.max((o+20)/60,1));if(o<86400)return s("hour",Math.max((o+1200)/3600,1));if(u<6){var d=c("day",Math.max(u,1));if(d)return d;var p=null;switch(e.getUTCDay()){case 0:p="sunday";break;case 1:p="monday";break;case 2:p="tuesday";break;case 3:p="wednesday";break;case 4:p="thursday";break;case 5:p="friday";break;case 6:p="saturday"}var h=p+(r?"+1":"-1");return h in n?n[h]:l("day",Math.max(u,1))||null}return u<14||t.getUTCMonth()==e.getUTCMonth()&&u<28?s("week",Math.max(u/7,1)):u<360?s("month",Math.max(u/30,1)):s("year",Math.max(u/365,1))}(new Date(u+l+i-c),new Date(u-c));s&&e.textContent!=s&&(e.textContent=s)}}))}),3e4),u("[data-datetime]",(function(t,e){e&&v(t,"datetime",Date.now())}));function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(n),!0).forEach((function(e){nr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(t)}function or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?or(Object(n),!0).forEach((function(e){ar(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ar(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=rr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||lr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cr(t){return function(t){if(Array.isArray(t))return sr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||lr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lr(t,e){if(t){if("string"==typeof t)return sr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(t,e):void 0}}function sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}l(window,["scroll","resize","orientationchange"],(function(){it(),tn(),Dn(),Wn&&(Wn(),Wn=null)}),!0),u("[data-bootstrap]",(function(t){var e=JSON.parse(t.getAttribute("data-bootstrap"));function n(e){for(var n=t;n.parentNode&&n.parentNode!=document.body;)n=n.parentNode;for(var r=e.body.firstChild;null!==r;r=r.nextSibling)if(r.nodeType==Node.ELEMENT_NODE&&n.nodeName==r.nodeName&&n.className==r.className){N(n),ot(n,"append",x(r),!1);break}}e&&function(t,e,n){var r=Dt();V(t,(function(t){r(!0),e&&e(t)}),(function(t){r(!1),n&&n(t)}))}(e,n,(function(t){!t||404!=t.status&&429!=t.status||n(t)}))})),u("[data-load]",(function(t){var e=JSON.parse(t.getAttribute("data-load"));e&&l(t,"click",(function(t){d(t),this.blur(),dt(e)}))})),u("[data-post]",(function(t){var e=JSON.parse(t.getAttribute("data-post"));e&&l(t,"click",(function(t){d(t),this.blur(),At(e)}))})),u("[data-album]",(function(t){var e=JSON.parse(t.getAttribute("data-album"));e&&l(t,"click",(function(t){d(t),this.blur(),At(e,!0)}))})),u("[data-dialog]",(function(t){var e=JSON.parse(t.getAttribute("data-dialog"));e&&l(t,"click",(function(t){d(t),this.blur(),wt(e)}))})),u("[data-alert]",(function(t){var e=t.getAttribute("data-alert");l(t,"click",(function(n){d(n),this.blur(),t.matches("button.wysiwyg,label.wysiwyg[for=login]")?y(t,"invalid"):gt("overlay danger",e)}))})),u("[data-submit]",(function(t){l(t,"submit",(function(e){d(e),st(t,null,(function(e){if(f(t,"reset"),(t.closest(".overlay.dialog")||!t.querySelector("textarea,input[type=text],input[type=search],input[type=password],input[type=email],input[type=tel],input[type=url]"))&&0==ee(e.main,!0).length)return void yt();ft(!0,e)}),(function(){t.submit()}))}))})),u("input[type=hidden][name=logout]",(function(t){l(t.closest("form"),"submit",(function(t){An((function(t){t.pushManager.getSubscription().then((function(t){if(t){var e=JSON.parse(JSON.stringify(t));_({notifications:"",request:"quiesce","subscription-type":"web","subscription-identifier":e.endpoint,"subscription-data":JSON.stringify({p256dh:e.keys.p256dh,auth:e.keys.auth})})}}))}))}))})),u("form[data-patch]",(function(t){function e(e){f(t,"reset"),yt();var n=ee(e.main);if(0!=n.length){var r=JSON.parse(t.getAttribute("data-patch")||"null");if(!r){var o=t.closest("[data-notify]");if(!o){if(!(o=t.closest("section")))return;var i=n.filter((function(t){return t.matches("section[data-notify]")}));if(0==i.length)return;o.setAttribute("data-notify",i[0].getAttribute("data-notify"))}if(!o)return;if(!(r=JSON.parse(o.getAttribute("data-notify"))))return}var a=null;if(t.querySelector("input[type=hidden][name=request][value=share]")){var u=t.querySelector("input[type=hidden][name=share]");if(u){var c=u.getAttribute("value");a=[],E(document.documentElement,"[data-notify]").forEach((function(t){var e=JSON.parse(t.getAttribute("data-notify"));e&&"share"==e.kind&&e.id==c&&t.matches(".card")&&a.push(t)}))}}ut(r.kind,r.id,n,!1,a)}}function n(){f(t,"reset")}l(t,"submit",(function(r){d(r);var o=null;if(!t.querySelector("input[name=pagination]")){var i=JSON.parse(t.getAttribute("data-patch")||"null");if(i){var a=[];E(document.documentElement,"[data-notify]").forEach((function(t){var e=JSON.parse(t.getAttribute("data-notify"));e&&i.kind==e.kind&&i.id==e.id&&a.push(t)})),a.forEach((function(t){E(t,"form[data-patch] input[name=pagination]").forEach((function(t){o||(o={pagination:t.value})}))}))}}st(t,o,e,n)}))})),u("[data-like]",(function(t){function e(e){var n=ee(e.main);if(0!=n.length){var r=t.closest("[data-notify]");if(r){var o=JSON.parse(r.getAttribute("data-notify"));o&&ut(o.kind,o.id,n,!0)}}}function n(){}l(t,"click",(function(r){d(r),this.blur(),_(Yn({},JSON.parse(t.getAttribute("data-like"))),e,n)}))})),u("[data-relation]",(function(t){l(t,"submit",(function(e){d(e),st(t,null,(function(e){var n=!1;if(e.header){var r=t;r&&r.closest(".button-group")&&(r=r.closest(".button-group")),r&&r.closest("form")&&(r=r.closest("form"));var o=e.header[0].querySelector("[data-relation]");o&&o.closest(".button-group")&&(o=o.closest(".button-group")),o&&o.closest("form")&&(o=o.closest("form")),r&&o&&(g(o,"tile")&&b(o,"tile"),r.closest("aside")&&E(o,"[data-chat]").forEach((function(t){P(t)})),ot(r,"before",o,!1),P(r),n=!0)}n||ee(e.main)}),(function(){t.submit()}))}))})),u("input[type=file]",(function(t){var e=t.hasAttribute("multiple"),n=null;e&&(n=t.cloneNode()).removeAttribute("required");for(var r=t,o=t.closest(".placeholder"),i=t;!o&&i;i=i.parentNode.closest(".upload"))o=i.querySelector(".placeholder");var a=null;var u=null;if(l(t,"change",(function i(c){if(c.target.files){for(var s=c.target.files,f=!1,d=0;d<s.length;++d){if(0!=s[d].size){f=!0;break}}if(f){if(!o){var p=j("div",{class:"label upload"}),h=t.closest("label");h.parentNode.insertBefore(p,h),T(p,h),y(o=h,"placeholder"),b(o,"upload")}if(e){r.setAttribute("hidden","");var v=n.cloneNode();l(v,"change",i),u&&l(v,"click",u),r.parentNode.insertBefore(v,r.nextSibling),r=v}for(var m=[],g=0;g<s.length;++g){var S=s[g];m.push({type:S.type,name:S.name})}!function(t){if(0!=t.length){for(var n=o.firstChild;null!==n;){var r=n;if(n=n.nextSibling,r.nodeType==Node.ELEMENT_NODE){if(r.matches("input[type=file]"))continue;if(r.matches(".filelabel"))continue}P(r)}t.forEach((function(t){a&&!e&&P(a);var n=j("span",{class:"filelabel"},(t.type.match(/^image/i)?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.414 1.001H5c-1.103 0-2 .897-2 2v18c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5.587l-4.586-4.586zM5 21.001v-18h10v4h4l.001 14H5z"/><path d="M12 16.002l-2-2-3 4h10l-3-6z"/><circle cx="10" cy="11.002" r="2"/></svg>':t.type.match(/^video/i)?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 12.007H8v6h5v-2.25l3 2.25v-6l-3 2.25z"/><path d="M16.414 1.004H5c-1.103 0-2 .898-2 2v18c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5.59l-4.586-4.586zM5 21.004v-18h10v4h4l.001 14H5z"/></svg>':t.type.match(/^audio/i)?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.414 1.003H5c-1.103 0-2 .897-2 2v18c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5.589l-4.586-4.586zM5 21.003v-18h10v4h4l.001 14H5z"/><path d="M11 13.05a2.5 2.5 0 102 2.45v-5.112l2.632.877.633-1.898L11 7.612v5.438z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.414 2H6c-1.103 0-2 .898-2 2v16c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V6.586L15.414 2zm2.587 18H6V4h8v4h4l.001 12z"/></svg>')+t.name);w(n,{display:"inline-block",margin:"1px",maxWidth:"calc(50% - 2rem)",padding:".3rem .6rem",borderRadius:".2rem",color:"white",backgroundColor:"rgba(0,0,0,.7)",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:"1rem"}),E(n,"svg").forEach((function(t){y(t,"icon")})),T(o,C(" ")),T(o,n),a=n}))}}(m);for(var A=0;A<s.length;++A){var x=s[A];if(0!=x.size&&(!(x.size>16777216)&&x.type.match(/^image/i))){var O=new FileReader;O.onloadend=function(t){var e;e=t.target.result,w(o,{backgroundImage:"url("+e+")",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"})},O.readAsDataURL(x);break}}}else c.target.value=""}})),t.matches("[capture]"))if(void 0!==document.createElement("input").capture);else if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia&&window.File&&window.DataTransfer)u=function(t){d(t);navigator.mediaDevices.getUserMedia({video:{width:{min:640,ideal:3840,max:7680},height:{min:320,ideal:2160,max:4320}},audio:!1}).then((function(t){var e=j("video",{class:"open"}),n=j("canvas",{}),o=null,i=gt("gallery",[e,n],(function(){clearTimeout(o),t.getTracks().forEach((function(t){t.stop()}))}));i&&(w(i.overlay,{width:320/240*100+"vh",height:"75vw"}),e.srcObject=t,l(e,"loadedmetadata",(function(t){e.play()})),l(e,"playing",(function(t){var a=e.videoWidth,u=e.videoHeight;w(i.overlay,{width:a/u*100+"vh",height:u/a*100+"vw"}),o=window.setTimeout((function(){var t=n.getContext("2d");n.width=a,n.height=u,t.drawImage(e,0,0,a,u),n.toBlob((function(t){var e=new File([t],"snapshot.jpg",{type:"image/jpeg",lastModified:new Date}),n=new DataTransfer;n.items.add(e),r.files=n.files,f(r,"change")}),"image/jpeg",.95),i.close()}),1e3)})))})).catch((function(t){gt("overlay danger",C(t.message))}))},l(t,"click",u);else{var c=t.closest(".upload");c&&k(c,".placeholder")&&P(c||t)}})),u("[data-validate]",(function(t){if(t.setCustomValidity){var e=t.closest("form");if(e){var n=JSON.parse(t.getAttribute("data-validate")),r=t.getAttribute("name");if(r){var o=!0;l(t,"input",(function(e){t.setCustomValidity(""),o=!0})),l(t,"blur",(function(i){if(t.value){var a=Yn({},n),u=function(t){E(e,"[name="+t+"]").forEach((function(e){e.value&&(a[t]=e.value)}))};for(var c in a)u(c);a[r]=t.value,_(a,(function(e){var n=null;e.main&&e.main.forEach((function(t){t.matches(".alert-danger")&&(n=t.textContent)})),t.setCustomValidity(n||""),null!==n&&t.reportValidity&&o&&t.reportValidity(),o=!1}))}}))}}}})),u("[data-repeatpassword]",(function(t){var e=k(t,"input[type=password]");e&&l(e,"change",(function(){var n=e.value.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");t.setAttribute("pattern",n)}))})),u("[data-signup]",(function(t){var e=t.closest("form");if(e){var n=E(e,"input[name=user-namegiven],input[name=user-nameadditional],input[name=user-namefamily]"),r=E(e,"input[name=user-organization]"),o=E(e,"input[name=user-birth]"),i=E(e,"input[name=user-gender][value=neuter]");n.forEach((function(t){t&&l(t,"input",(function(t){r&&(P(r),o.forEach((function(t){t.setAttribute("required","required")})),n=null,r=null,o=null,i=null)}))})),r.forEach((function(t){t&&l(t,"input",(function(t){if(n&&o&&i){var e=n[0].parentNode,a=o[0].parentNode;P([].concat(Xn(n),[e,a])),i.forEach((function(t){var e=t.closest("label");e&&e.removeAttribute("hidden")})),n=null,r=null,i=null}}))}))}})),u("input[name=captcha-token] + input[name=captcha-key] + figure",(function(t){var e=null;a.e(673).then(a.bind(a,9239)).then((function(n){(0,n.default)((function(n){e?e.value=n.join(" "):(e=j("input",{type:"hidden",name:"device-fingerprint",value:n.join(" ")}),t.appendChild(e))}),Xn(It).sort((function(){return Math.random()>.5?1:-1})).slice(0,2))}))})),u("[data-story]",(function(t){var e=t.closest("form");if(e){var n=E(e,"input[name=upload-medium]"),r=E(e,"input[name=upload-link]"),o=E(e,"input[name=upload-title]"),i=E(e,"textarea[name=upload-document]"),a=E(e,"button[data-story]"),u=E(e,"button[data-live]"),c=E(e,"input[name=upload-date]"),s=E(e,"input[name=upload-disable-embed]"),p=[];n.forEach((function(t){var e=t.closest(".upload");-1==p.indexOf(e)&&p.push(e),l(t,"change",(function(t){var e=[].concat(Xn(r.map((function(t){return t.closest(".cols")}))),Xn(o.map((function(t){return t.closest(".cols")}))));P(e)}))}));var h=!1;r.forEach((function(t){l(t,"input",(function(e){if(!h){h=!0;var n=t.closest(".cols");n&&(n.parentNode.insertBefore(t,n),P(n)),t.focus(),t.setAttribute("required","required"),i.forEach((function(t){t.removeAttribute("required")}));var r=[].concat(p,Xn(o.map((function(t){return t.closest(".cols")}))),Xn(a),Xn(s.map((function(t){return t.closest("label")}))));P(r)}}))}));var v=!1;o.forEach((function(t){l(t,"input",(function(t){if(!v){v=!0,o.forEach((function(t){var e=t.closest(".cols");e&&(e.parentNode.insertBefore(t,e),P(e)),t.focus(),t.setAttribute("required","required"),t.pattern="^(?![A-Za-z0-9]+://).*"})),i.forEach((function(t){t.setAttribute("data-file","")}));var e=[].concat(p,Xn(r.map((function(t){return t.closest(".cols")}))),Xn(a),Xn(s.map((function(t){return t.closest("label")}))));P(e)}}))})),a.forEach((function(t){l(t,"click",(function(t){d(t),o.forEach((function(t){f(t,"input")}))}))})),u.forEach((function(t){navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?l(t,"click",(function(t){d(t);var n=[].concat(p,Xn(r.map((function(t){return t.closest(".cols")}))),Xn(o.map((function(t){return t.closest(".cols")}))),Xn(c.map((function(t){return t.closest("label")}))));P(n);var i=!1;E(e,"button[type=submit]").forEach((function(t){l(t,"click",(function(t){d(t),e.checkValidity&&e.checkValidity()&&(i||(i=!0,E(e,"input[type=hidden][name=upload]").forEach((function(t){t.setAttribute("value","live")})),function(t,e){var n=null,r=null;function o(){n&&n(),n=null,r&&r()}n=ue((function(){return new Promise((function(t,n){e().then((function(e){var n=("http:"!=location.protocol||e.meeting.port?"wss://":"ws://")+e.meeting.host+(e.meeting.port?":"+e.meeting.port:"")+(e.meeting.path||"/")+e.id;t(n)})).catch(n)}))}),null,(function(e){if(0!=e.getVideoTracks().length&&0!=e.getAudioTracks().length){w(t,{display:"none"});var n=j("video",{playsinline:!0,autoplay:!0}),i=j("button",{class:"stop muted"}),a=j("div",{class:"keypad"},i),u=j("div",{class:"camera"},[n,a]);t.parentNode.insertBefore(u,t),n.srcObject=e,n.muted=!0,n.style.transform="scaleX(-1)",n.play(),l(i,"click",(function(t){d(t),o()})),r=function(){r=null,P(a),n.srcObject=null}}else o()}),(function(t,e,n,r){}),(function(t,e,n){}),(function(t,e){}),(function(t){o(),t&&gt("overlay danger",C(t))}))}(e,(function(){return new Promise((function(t,n){st(e,null,(function(r){f(e,"reset");var o=null;r.main.forEach((function(t){t.matches("data")&&(o=JSON.parse(t.getAttribute("value")))})),o?t(o):n()}),(function(){n()}))}))}))))}))}))})):P(t)}))}})),u("[data-order]",(function(t){var e=t.getAttribute("data-order");try{e=JSON.parse(e||"null")}catch(t){}l(t,"click",(function(n){d(n),this.blur();var r=t.closest("form"),o=t.closest("ol,ul"),i=t.closest("li");if(o&&i){switch("object"==_n(e)?e.request:e){case"move-top":case"top":o.insertBefore(i,o.firstChild);break;case"move-up":case"up":o.insertBefore(i,i.previousElementSibling);break;case"move-down":case"down":if(!i.nextElementSibling)break;o.insertBefore(i,i.nextElementSibling.nextElementSibling);break;case"move-bottom":case"bottom":if(!i.nextElementSibling)break;o.appendChild(i);break;case"delete":"object"!=_n(e)&&E(i,"input[type=hidden]").forEach((function(t){r.appendChild(t),t.value=""})),P(i);break;default:return}"object"==_n(e)&&_(e)}}))})),u("[data-search]",(function(t){var e=JSON.parse(t.getAttribute("data-search")||"null"),r=t.getAttribute("name"),o=t.closest(".modal"),i=o?o.querySelector(".main"):document.documentElement.querySelector("main"),a=o?o.querySelector(".aside"):document.documentElement.querySelector("aside");if(r&&i){var u=Q(),c=null,s=null,f=null,p=n((function(){h(t.value)}),400,!0);l(t,"input",p),l(t,"keydown",(function(e){"Escape"==e.key&&(h(),t.value="")}))}function h(n){if(!n||n.length<3){if(null!==c&&(N(i),T(i,c),c=null),null!==s)P(x(t.parentElement).filter((function(e){return e!=t}))),s.forEach((function(e){t.parentNode.insertBefore(e,null)})),s=null;return f&&pt(f),void(f=null)}var o=er(er({},e),{},nr({},r,n));u(o,(function(o){if(o.main){if(a&&"fixed"==getComputedStyle(a).position){var u=x(t.parentElement).filter((function(e){return e!=t}));null===s&&(s=u),P(u),ot(t,"after",o.main,!1)}else null===c?c=N(i):N(i),ot(i,"append",o.main,!1);var p=pt(er(er({},e),{},nr({},r,n)));null===f&&(f=p),o.main.forEach((function(n){E(n,"[data-filter]").forEach((function(n){n.matches("input[type=checkbox]")?l(n,"change",(function(r){var o=!!n.checked;"all-languages"!=n.name&&"all-users"!=n.name||(o=!o),o?e[n.name]="":delete e[n.name],h(t.value)})):l(n,"click",(function(e){d(e),this.blur();var o=JSON.parse(n.getAttribute("data-filter"));r in o&&(t.value=o[r]),h(t.value)}))}))}))}else h()}))}})),u("[data-autocomplete]",(function(t){var e=JSON.parse(t.getAttribute("data-autocomplete")||"null"),r=t.getAttribute("name"),o=t.closest("form");if(r&&o){t.setAttribute("autocomplete","off");var i=t.offsetWidth,a=null,u=Q(),c=n((function(){if(i=Math.max(i,t.offsetWidth),t.value){var n=er(er({},e),{},nr({},r,t.value));u(n,(function(e){if(e.main||e.aside){if(a)N(a);else{a=j("div",{class:"autocomplete"});var n=o.getBoundingClientRect(),r=t.getBoundingClientRect();w(a,{top:r.top-n.top+t.offsetHeight+1+"px",left:r.left-n.left+"px",maxWidth:i+"px"}),l(a,"click",(function(){f()}),!0),l(document.documentElement,["mouseup","touchend"],p),T(o,a)}var u=[];e.main&&(u=e.main.slice(0,5).map((function(e){return y(e,"suggestion"),l(e,"click",(function(n){d(n),this.blur();var r=e.querySelector(".statement")||e,o=r.querySelector("svg.icon");o&&P(o);var i=r.textContent;t.value=i;var a=JSON.parse(e.getAttribute("data-identifier")||"null"),u=t.closest("label");if(a&&u){var c=u.querySelector("input[type=hidden]");c&&(c.value=a.id)}f()})),e}))),ot(a,"append",u,!1)}else f()}))}else f()}),400,!0);l(t,"input",c)}function f(){a&&(s(document.documentElement,["mouseup","touchend"],p),P(a),a=null)}function p(e){a&&(S(t,e.target)||S(a,e.target)||f())}})),u("[data-gallery]",(function(t){var e=JSON.parse(t.getAttribute("data-gallery"));if(e){var n=!1;l(t,"click",(function(r){d(r),this.blur(),function(t,e){function n(t){var e=[],n=null,r=null;return(Array.isArray(t)?t:[t]).forEach((function(t){var o=[],i=null;E(t,"[data-gallery]").forEach((function(t){var a=JSON.parse(t.getAttribute("data-gallery"));if(a){var u=t.closest("[data-paging]");if(u){var c=u.getAttribute("data-paging"),l=JSON.parse(c);0==e.length&&0==o.length&&(n=l.previous),r=l.next}var s=t.closest("[data-notify]");i!==s&&(e.push.apply(e,cr(o)),o=[]),i=s,o.push({element:t,data:a})}})),e.push.apply(e,cr(o))})),[e,n,r]}var r=[],o=null,i=null,a=t;for(;a&&a.parentNode;){var u=a.parentNode.closest("section[data-notify],details");if(!u)break;a=u}if(a){var c=ur(n(a.matches("section.card[data-notify]")?a:a.parentNode),3);r=c[0],o=c[1],i=c[2]}0==r.length&&r.push({element:t,data:e});var s=gt("gallery");if(!s)return;var f=null,p=null,v=!1;function m(e){null!==f&&E(s.overlay,"video,audio").forEach((function(t){t.pause()})),f="prev"==e?0!=f?f-1:r.length-1:"next"==e?f+1<r.length?f+1:0:e;var n=r[f].element,o=r[f].data,i=o.media,a=null,u=null,c=null;if(1==i.length&&"photo"==i[0].type){var h=i[0];u=h.width,c=h.height;var g=j("img",{src:Sn(h.url),width:h.width,height:h.height,alt:""});a=j("figure",null,g),p="photo"}else if(0!=i.filter((function(t){return"video"==t.type||"audio"==t.type})).length){var y=0!=i.filter((function(t){return"video"==t.type})).length,b=k(n,"img");y?i.forEach((function(t){"video"==t.type&&t.width&&t.height&&(null===u||null===c||u*c<t.width*t.height)&&(u=t.width,c=t.height)})):(u=b&&b.getAttribute("width")||4,c=b&&b.getAttribute("height")||1);var S=i.filter((function(t){return"video"==t.type||"audio"==t.type})).map((function(t){return j("source",{type:t.mediatype,src:t.url})})),A=i.filter((function(t){return"subtitle"==t.type})).map((function(t){return j("track",{kind:"subtitles",src:Z(t.url),srclang:t.language.code,label:t.language.name})})),x=j(y?"video":"audio",ir(ir(ir({},y&&{width:u,height:c}),{},{controls:"",playsinline:"",controlsList:"nodownload"},y&&{disablePictureInPicture:""}),{},{crossOrigin:"anonymous",poster:b&&b.getAttribute("src"),preload:"none","data-media":JSON.stringify({kind:o.kind,id:o.id,media:i.filter((function(t){return"spritesheet"==t.type}))})}),[].concat(cr(S),cr(A)));a=j("figure",{class:y?"video":"audio"},[].concat(cr(y?[]:[b.cloneNode()]),[x])),p=y?"video":"audio"}else if(0!=i.filter((function(t){return"page"==t.type})).length){var O=i.filter((function(t){return"page"==t.type}));if(1==O.length){var T=O[0];u=T.width,c=T.height;var C=j("img",{src:T.url,width:T.width,height:T.height,alt:""});a=j("figure",null,C),p="photo"}else{var M=null;O.forEach((function(t){(null===M||M>t.width/t.height)&&(M=t.width/t.height)})),M<16/9/2&&(M=16/9/2),u=100,c=Math.round(u/M/2);var P=j("div");w(P,{paddingTop:(100/M/2).toFixed(3)+"%"});for(var D=[P],L=O.slice(0,O.length<=2?2:4);L.length<(O.length<=2?2:4);)L.push(null);for(var B=function(t){L.forEach((function(e,n){if(Math.floor(n/2)==1-t){var r=null;if(e){r=j("img",{src:e.url,width:e.width,height:e.height,alt:"",loading:"lazy"});var o=e.width/e.height;if(o<M)w(r,{padding:"0 "+(100*(1-o/M)/2).toFixed(3)+"%"})}var i=j("var",null,(n+1).toString()),a=j("div",{class:"page"},[].concat(cr(r?[r]:[]),[i]));D.push(a)}}))},R=0;R<2;++R)B(R);a=j("div",{class:"paper","data-paper":JSON.stringify(o)},D),p="paper"}}N(s.overlay),ot(s.overlay,"append",a,!1),w(a,{width:"calc("+u/c*100+"vh - "+u/c*2+"rem)",height:"calc("+c/u*100+"vw - "+c/u*2+"rem)"}),l(a,"click",(function(e){if(d(e),this.blur(),"photo"==p){var n=f+1<r.length?f+1:0;r[n].element===t?s.close():v||m("next")}}))}function g(t){v=!0;var e=function(e){v=!1;var a,u,c=ur(n(e.main),3),l=c[0],s=c[1],d=c[2];"prev"==t?((a=r).unshift.apply(a,cr(l)),f+=l.length,i=s,m("prev")):((u=r).push.apply(u,cr(l)),o=d,m("next"))},a=function(){v=!1};V(ir({},"prev"==t?i:o),e,a)}var y=0!=(e.media||[]).filter((function(t){return"page"==t.type})).length;if(r.length>1||y){var b=j("button"),S=j("div",{class:"nav-back"},b);l(b,"click",(function(t){if(d(t),this.blur(),"paper"==p){var e=s.overlay.querySelector(".paper");if(e){var n=h(e,"paper");if(n)return n.back()}}0==f&&i?g("prev"):v||m("prev")}));var A=j("button"),x=j("div",{class:"nav-next"},A);l(A,"click",(function(t){if(d(t),this.blur(),"paper"==p){var e=s.overlay.querySelector(".paper");if(e){var n=h(e,"paper");if(n)return n.next()}}f+1==r.length&&o?g("next"):v||m("next")})),T(s.modal,[S,x])}l(s.overlay,"click",(function(t){d(t),this.blur(),s.close()}));var O=null;r.forEach((function(e,n){null===O&&e.element===t&&(O=n)})),m(O||0)}(t,e),e.viewing&&!n&&(V(e.viewing),n=!0)}))}})),u("[data-paper]",(function(t){var e=JSON.parse(t.getAttribute("data-paper"));e&&e.media&&setTimeout((function(){!function(t,e,r){var o=document.documentElement.matches("html[dir=rtl]"),i=j("button"),a=j("div",{class:"nav-back lock"},i),u=j("button"),c=j("div",{class:"nav-next lock"},u),f=t.closest(".frame,.overlay");f&&(E(f,".nav-back,.nav-next").forEach((function(t){P(t)})),T(f,[a,c]));var p=!1;function h(){r&&!p&&(V(r),p=!0)}function g(t,n){var r=n;if(o&&(n%2==0?r+=1:r-=1),N(t),r<e.length){var i=e[r],a=j("img",{src:i.url,width:i.width,height:i.height,alt:""}),u=t.offsetWidth/t.offsetHeight,c=i.width/i.height;if(c<.99*u)w(a,{padding:"0 "+100*(1-c/u)/2+"%"});T(t,a)}T(t,j("var",null,C(r+1)))}var S=0,x=!1;function O(e){x=!0;var n=E(t,"div.page");if(4==n.length){var r=n[0],i=n[1];T(t,r),T(t,i),e?(g(r,S-2),g(i,S-1),S-=2):(g(r,S+2),g(i,S+3),S+=2);var u=Math.floor(t.offsetWidth/2),l=Math.floor(t.offsetHeight);w(r,{clip:"rect(0,0,"+l+"px,0)"}),w(i,{clip:"rect(0,0,"+l+"px,0)"}),w(a,{zIndex:3}),w(c,{zIndex:3}),m(400,(o?!e:e)?function(t){var e=Math.min(Math.round(t*(2*u)-u),u),n=Math.max(Math.round((1-t)*u),0);w(r,{left:0,right:"auto",clip:"rect(0,"+(u-n)+"px,"+l+"px,0)",zIndex:1}),w(i,{left:e+"px",right:"auto",clip:"rect(0,"+u+"px,"+l+"px,"+n+"px)",zIndex:2})}:function(t){var e=Math.max(Math.round(2*u*(1-t)),0),n=Math.min(Math.round(t*u),u),o=e-u;w(r,{left:e+"px",right:"auto",clip:"rect(0,"+n+"px,"+l+"px,0)",zIndex:2}),w(i,{left:u+"px",right:"auto",clip:"rect(0,"+u+"px,"+l+"px,"+o+"px)",zIndex:1})},(function(){w(r,{left:null,right:null,clip:null,zIndex:null}),w(i,{left:null,right:null,clip:null,zIndex:null}),w(a,{zIndex:null}),w(c,{zIndex:null}),x=!1}))}}function k(){(o?S+3<=e.length:0!=S)?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled"),(o?0!=S:S+3<=e.length)?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}function M(){x||S<2||(O(!0),k(),h())}function D(){x||S+3>e.length||(O(!1),k(),h())}k(),l(i,"click",(function(t){d(t),this.blur(),M()})),l(u,"click",(function(t){d(t),this.blur(),D()})),v(t,"paper",{back:M,next:D});var L=null;function B(t){var e;if("clientX"in t)e=t.clientX;else{if(!t.changedTouches||0==t.changedTouches.length)return;e=t.changedTouches[0].clientX}var n=10;if(L&&L.idle&&Math.abs(t.pageX-L.x)>n&&(window.getSelection().toString()?L=null:L.idle(t)),L){var r=e>L.pointerStartX?-1:1;L.dir=r}}function R(e){L&&(L.dir==(o?1:-1)?M():L.dir==(o?-1:1)&&D(),k()),s(document.documentElement,["mousemove","touchmove"],B),s(document.documentElement,["mouseup","touchend"],R),b(t,"drag"),L=null}function z(e){e.originalEvent&&e.originalEvent.touches&&(e=e.originalEvent.touches[0]),d(e),e.button&&2==e.button||(L={idle:function(e){L.idle=!1,y(t,"drag")},x:Math.floor(e.pageX),dir:0,pointerStartX:Math.floor(e.pageX),pointerStartY:Math.floor(e.pageY)},l(document.documentElement,["mousemove","touchmove"],B),l(document.documentElement,["mouseup","touchend"],R))}function I(t){var r=[];e.forEach((function(t){var e=j("figure");w(e,{width:"85vw",height:85/t.width*t.height+"vw"}),l(e,"click",(function(t){d(t)})),r.push(e)}));var o=gt("pages",r);if(o){if(l(o.overlay,"click",(function(t){d(t),this.blur(),o.close()})),0!=t&&t<r.length){var i=r[t].offsetTop;i&&o.modal.scroll(0,i-window.innerHeight/20)}var a=n((function(){var t=[];r.forEach((function(e){A(e,3)&&t.push(e)})),E(o.overlay,"figure>img").forEach((function(e){var n=e.closest("figure");-1==t.indexOf(n)&&P(e)})),t.forEach((function(t){if(!t.querySelector("figure>img")){var n=r.indexOf(t);if(-1!=n){var o=e[n];T(t,j("img",{src:o.url,width:o.width,height:o.height,alt:"",loading:"lazy"}))}}}))}),200,!0);l(o.modal,["scroll","resize"],a),a()}}l(t,["touchstart","mousedown"],z),E(t,"div.page").forEach((function(t,n){l(t,"click",(function(t){d(t),this.blur();var r=S+n%2;r>=e.length&&(r-=1),I(r),h()}))}))}(t,e.media,e.viewing)}))})),c()}()}();