PageSourceSearch

https://topvstupenky.sk/js/app.js?id=cc10ccfd4b68732e815e5bec0355d0c5

js topvstupenky.sk collected 2026-10-08 03:39:52 UTC 1,774,545 bytes, 2 lines download raw bytes

vendor: 4,227 bytes, lines 1-2
1/*! For license information please see app.js.LICENSE.txt */
2(()=>{var t,e={2443:function(t){t.exports=function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(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 n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}function r(){return new Promise((t=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",t):t()}))}function i(t){return Array.from(new Set(t))}function o(){return navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}function s(t,e){return t==e}function a(t,e){"template"!==t.tagName.toLowerCase()?console.warn(`Alpine: [${e}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${e}`):1!==t.content.childElementCount&&console.warn(`Alpine: <template> tag with [${e}] encountered with an unexpected number of root elements. Make sure <template> has a single root element. `)}function l(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function u(t){return t.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase()))}function c(t,e){if(!1===e(t))return;let n=t.firstElementChild;for(;n;)c(n,e),n=n.nextElementSibling}function d(t,e){var n;return function(){var r=this,i=arguments,o=function(){n=null,t.apply(r,i)};clearTimeout(n),n=setTimeout(o,e)}}const h=(t,e,n)=>{if(console.warn(`Alpine Error: "${n}"\n\nExpression: "${e}"\nElement:`,t),!o())throw Object.assign(n,{el:t,expression:e}),n};function f(t,{el:e,expression:n}){try{const r=t();return r instanceof Promise?r.catch((t=>h(e,n,t))):r}catch(t){h(e,n,t)}}function p(t,e,n,r={}){return f((()=>"function"==typeof e?e.call(n):new Function(["$data",...Object.keys(r)],`var __alpine_result; with($data) { __alpine_result = ${e} }; return __alpine_result`)(n,...Object.values(r))),{el:t,expression:e})}function m(t,e,n,r={}){return f((()=>{if("function"==typeof e)return Promise.resolve(e.call(n,r.$event));let t=Function;if(t=Object.getPrototypeOf((async function(){})).constructor,Object.keys(n).includes(e)){let t=new Function(["dataContext",...Object.keys(r)],`with(dataContext) { return ${e} }`)(n,...Object.values(r));return"function"==typeof t?Promise.resolve(t.call(n,r.$event)):Promise.resolve()}return Promise.resolve(new t(["dataContext",...Object.keys(r)],`with(dataContext) { ${e} }`)(n,...Object.values(r)))}),{el:t,expression:e})}const g=/^x-(on|bind|data|text|html|model|if|for|show|cloak|transition|ref|spread)\b/;function y(t){const e=M(t.name);return g.test(e)}function _(t,e,n){let r=Array.from(t.attributes).filter(y).map(b),i=r.filter((t=>"spread"===t.type))[0];if(i){let n=p(t,i.expression,e.$data);r=r.concat(Object.entries(n).map((([t,e])=>b({name:t,value:e}))))}return n?r.filter((t=>t.type===n)):v(r)}function v(t){let e=["bind","model","show","catch-all"];return t.sort(((t,n)=>{let r=-1===e.indexOf(t.type)?"catch-all":t.type,i=-1===e.indexOf(n.type)?"catch-all":n.type;return e.indexOf(r)-e.indexOf(i)}))}function b({name:t,value:e}){const n=M(t),r=n.match(g),i=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[];return{type:r?r[1]:null,value:i?i[1]:null,modifiers:o.map((t=>t.replace(".",""))),expression:e}}function w(t){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function M(t){return t.startsWith("@")?t.replace("@","x-on:"):t.startsWith(":")?t.replace(":","x-bind:"):t}function S(t,e=Boolean){return t.split(" ").filter(e)}
vendor: 18,899 bytes, line 2
2const C="in",A="out",x="cancelled";function E(t,e,n,r,i=!1){if(i)return e();if(t.__x_transition&&t.__x_transition.type===C)return;const o=_(t,r,"transition"),s=_(t,r,"show")[0];if(s&&s.modifiers.includes("transition")){let r=s.modifiers;if(r.includes("out")&&!r.includes("in"))return e();const i=r.includes("in")&&r.includes("out");r=i?r.filter(((t,e)=>e<r.indexOf("out"))):r,T(t,r,e,n)}else o.some((t=>["enter","enter-start","enter-end"].includes(t.value)))?N(t,r,o,e,n):e()}function L(t,e,n,r,i=!1){if(i)return e();if(t.__x_transition&&t.__x_transition.type===A)return;const o=_(t,r,"transition"),s=_(t,r,"show")[0];if(s&&s.modifiers.includes("transition")){let r=s.modifiers;if(r.includes("in")&&!r.includes("out"))return e();const i=r.includes("in")&&r.includes("out");r=i?r.filter(((t,e)=>e>r.indexOf("out"))):r,D(t,r,i,e,n)}else o.some((t=>["leave","leave-start","leave-end"].includes(t.value)))?P(t,r,o,e,n):e()}function T(t,e,n,r){O(t,e,n,(()=>{}),r,{duration:k(e,"duration",150),origin:k(e,"origin","center"),first:{opacity:0,scale:k(e,"scale",95)},second:{opacity:1,scale:100}},C)}function D(t,e,n,r,i){O(t,e,(()=>{}),r,i,{duration:n?k(e,"duration",150):k(e,"duration",150)/2,origin:k(e,"origin","center"),first:{opacity:1,scale:100},second:{opacity:0,scale:k(e,"scale",95)}},A)}function k(t,e,n){if(-1===t.indexOf(e))return n;const r=t[t.indexOf(e)+1];if(!r)return n;if("scale"===e&&!j(r))return n;if("duration"===e){let t=r.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[r,t[t.indexOf(e)+2]].join(" "):r}function O(t,e,n,r,i,o,s){t.__x_transition&&t.__x_transition.cancel&&t.__x_transition.cancel();const a=t.style.opacity,l=t.style.transform,u=t.style.transformOrigin,c=!e.includes("opacity")&&!e.includes("scale"),d=c||e.includes("opacity"),h=c||e.includes("scale"),f={start(){d&&(t.style.opacity=o.first.opacity),h&&(t.style.transform=`scale(${o.first.scale/100})`)},during(){h&&(t.style.transformOrigin=o.origin),t.style.transitionProperty=[d?"opacity":"",h?"transform":""].join(" ").trim(),t.style.transitionDuration=o.duration/1e3+"s",t.style.transitionTimingFunction="cubic-bezier(0.4, 0.0, 0.2, 1)"},show(){n()},end(){d&&(t.style.opacity=o.second.opacity),h&&(t.style.transform=`scale(${o.second.scale/100})`)},hide(){r()},cleanup(){d&&(t.style.opacity=a),h&&(t.style.transform=l),h&&(t.style.transformOrigin=u),t.style.transitionProperty=null,t.style.transitionDuration=null,t.style.transitionTimingFunction=null}};Y(t,f,s,i)}const I=(t,e,n)=>"function"==typeof t?n.evaluateReturnExpression(e,t):t;function N(t,e,n,r,i){R(t,S(I((n.find((t=>"enter"===t.value))||{expression:""}).expression,t,e)),S(I((n.find((t=>"enter-start"===t.value))||{expression:""}).expression,t,e)),S(I((n.find((t=>"enter-end"===t.value))||{expression:""}).expression,t,e)),r,(()=>{}),C,i)}function P(t,e,n,r,i){R(t,S(I((n.find((t=>"leave"===t.value))||{expression:""}).expression,t,e)),S(I((n.find((t=>"leave-start"===t.value))||{expression:""}).expression,t,e)),S(I((n.find((t=>"leave-end"===t.value))||{expression:""}).expression,t,e)),(()=>{}),r,A,i)}function R(t,e,n,r,i,o,s,a){t.__x_transition&&t.__x_transition.cancel&&t.__x_transition.cancel();const l=t.__x_original_classes||[],u={start(){t.classList.add(...n)},during(){t.classList.add(...e)},show(){i()},end(){t.classList.remove(...n.filter((t=>!l.includes(t)))),t.classList.add(...r)},hide(){o()},cleanup(){t.classList.remove(...e.filter((t=>!l.includes(t)))),t.classList.remove(...r.filter((t=>!l.includes(t))))}};Y(t,u,s,a)}function Y(t,e,n,r){const i=B((()=>{e.hide(),t.isConnected&&e.cleanup(),delete t.__x_transition}));t.__x_transition={type:n,cancel:B((()=>{r(x),i()})),finish:i,nextFrame:null},e.start(),e.during(),t.__x_transition.nextFrame=requestAnimationFrame((()=>{let n=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""));0===n&&(n=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),e.show(),t.__x_transition.nextFrame=requestAnimationFrame((()=>{e.end(),setTimeout(t.__x_transition.finish,n)}))}))}function j(t){return!Array.isArray(t)&&!isNaN(t)}function B(t){let e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function H(t,e,n,r,i){a(e,"x-for");let o=F("function"==typeof n?t.evaluateReturnExpression(e,n):n),s=z(t,e,o,i),l=e;s.forEach(((n,a)=>{let u=W(o,n,a,s,i()),c=U(t,e,a,u),d=q(l.nextElementSibling,c);d?(delete d.__x_for_key,d.__x_for=u,t.updateElements(d,(()=>d.__x_for))):(d=V(e,l),E(d,(()=>{}),(()=>{}),t,r),d.__x_for=u,t.initializeElements(d,(()=>d.__x_for))),l=d,l.__x_for_key=c})),G(l,t)}function F(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\(|\)$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=String(t).match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].trim().replace(n,""),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function W(t,e,r,i,o){let s=o?n({},o):{};return s[t.item]=e,t.index&&(s[t.index]=r),t.collection&&(s[t.collection]=i),s}function U(t,e,n,r){let i=_(e,t,"bind").filter((t=>"key"===t.value))[0];return i?t.evaluateReturnExpression(e,i.expression,(()=>r)):n}function z(t,e,n,r){let i=_(e,t,"if")[0];if(i&&!t.evaluateReturnExpression(e,i.expression))return[];let o=t.evaluateReturnExpression(e,n.items,r);return j(o)&&o>=0&&(o=Array.from(Array(o).keys(),(t=>t+1))),o}function V(t,e){let n=document.importNode(t.content,!0);return e.parentElement.insertBefore(n,e.nextElementSibling),e.nextElementSibling}function q(t,e){if(!t)return;if(void 0===t.__x_for_key)return;if(t.__x_for_key===e)return t;let n=t;for(;n;){if(n.__x_for_key===e)return n.parentElement.insertBefore(n,t);n=!(!n.nextElementSibling||void 0===n.nextElementSibling.__x_for_key)&&n.nextElementSibling}}function G(t,e){for(var n=!(!t.nextElementSibling||void 0===t.nextElementSibling.__x_for_key)&&t.nextElementSibling;n;){let t=n,r=n.nextElementSibling;L(n,(()=>{t.remove()}),(()=>{}),e),n=!(!r||void 0===r.__x_for_key)&&r}}function X(t,e,n,r,o,a,l){var c=t.evaluateReturnExpression(e,r,o);if("value"===n){if(qt.ignoreFocusedForValueBinding&&document.activeElement.isSameNode(e))return;if(void 0===c&&String(r).match(/\./)&&(c=""),"radio"===e.type)void 0===e.attributes.value&&"bind"===a?e.value=c:"bind"!==a&&(e.checked=s(e.value,c));else if("checkbox"===e.type)"boolean"==typeof c||[null,void 0].includes(c)||"bind"!==a?"bind"!==a&&(Array.isArray(c)?e.checked=c.some((t=>s(t,e.value))):e.checked=!!c):e.value=String(c);else if("SELECT"===e.tagName)K(e,c);else{if(e.value===c)return;e.value=c}}else if("class"===n)if(Array.isArray(c)){const t=e.__x_original_classes||[];e.setAttribute("class",i(t.concat(c)).join(" "))}else if("object"==typeof c)Object.keys(c).sort(((t,e)=>c[t]-c[e])).forEach((t=>{c[t]?S(t).forEach((t=>e.classList.add(t))):S(t).forEach((t=>e.classList.remove(t)))}));else{const t=e.__x_original_classes||[],n=c?S(c):[];e.setAttribute("class",i(t.concat(n)).join(" "))}else n=l.includes("camel")?u(n):n,[null,void 0,!1].includes(c)?e.removeAttribute(n):w(n)?Z(e,n,n):Z(e,n,c)}function Z(t,e,n){t.getAttribute(e)!=n&&t.setAttribute(e,n)}function K(t,e){const n=[].concat(e).map((t=>t+""));Array.from(t.options).forEach((t=>{t.selected=n.includes(t.value||t.text)}))}function J(t,e,n){void 0===e&&String(n).match(/\./)&&(e=""),t.textContent=e}function Q(t,e,n,r){e.innerHTML=t.evaluateReturnExpression(e,n,r)}function $(t,e,n,r,i=!1){const o=()=>{e.style.display="none",e.__x_is_shown=!1},s=()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display"),e.__x_is_shown=!0};if(!0===i)return void(n?s():o());const a=(r,i)=>{n?(("none"===e.style.display||e.__x_transition)&&E(e,(()=>{s()}),i,t),r((()=>{}))):"none"!==e.style.display?L(e,(()=>{r((()=>{o()}))}),i,t):r((()=>{}))};r.includes("immediate")?a((t=>t()),(()=>{})):(t.showDirectiveLastElement&&!t.showDirectiveLastElement.contains(e)&&t.executeAndClearRemainingShowDirectiveStack(),t.showDirectiveStack.push(a),t.showDirectiveLastElement=e)}function tt(t,e,n,r,i){a(e,"x-if");const o=e.nextElementSibling&&!0===e.nextElementSibling.__x_inserted_me;if(!n||o&&!e.__x_transition)!n&&o&&L(e.nextElementSibling,(()=>{e.nextElementSibling.remove()}),(()=>{}),t,r);else{const n=document.importNode(e.content,!0);e.parentElement.insertBefore(n,e.nextElementSibling),E(e.nextElementSibling,(()=>{}),(()=>{}),t,r),t.initializeElements(e.nextElementSibling,i),e.nextElementSibling.__x_inserted_me=!0}}function et(t,e,n,r,i,o={}){const s={passive:r.includes("passive")};let a,l;if(r.includes("camel")&&(n=u(n)),r.includes("away")?(l=document,a=l=>{e.contains(l.target)||e.offsetWidth<1&&e.offsetHeight<1||(nt(t,i,l,o),r.includes("once")&&document.removeEventListener(n,a,s))}):(l=r.includes("window")?window:r.includes("document")?document:e,a=u=>{l!==window&&l!==document||document.body.contains(e)?rt(n)&&it(u,r)||(r.includes("prevent")&&u.preventDefault(),r.includes("stop")&&u.stopPropagation(),r.includes("self")&&u.target!==e)||nt(t,i,u,o).then((t=>{!1===t?u.preventDefault():r.includes("once")&&l.removeEventListener(n,a,s)})):l.removeEventListener(n,a,s)}),r.includes("debounce")){let t=r[r.indexOf("debounce")+1]||"invalid-wait",e=j(t.split("ms")[0])?Number(t.split("ms")[0]):250;a=d(a,e)}l.addEventListener(n,a,s)}function nt(t,e,r,i){return t.evaluateCommandExpression(r.target,e,(()=>n(n({},i()),{},{$event:r})))}function rt(t){return["keydown","keyup"].includes(t)}function it(t,e){let n=e.filter((t=>!["window","document","prevent","stop"].includes(t)));if(n.includes("debounce")){let t=n.indexOf("debounce");n.splice(t,j((n[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&n[0]===ot(t.key))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter((t=>n.includes(t)));return n=n.filter((t=>!r.includes(t))),!(r.length>0&&r.filter((e=>("cmd"!==e&&"super"!==e||(e="meta"),t[`${e}Key`]))).length===r.length&&n[0]===ot(t.key))}function ot(t){switch(t){case"/":return"slash";case" ":case"Spacebar":return"space";default:return t&&l(t)}}function st(t,e,r,i,o){var s="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||r.includes("lazy")?"change":"input";et(t,e,s,r,`${i} = rightSideOfExpression($event, ${i})`,(()=>n(n({},o()),{},{rightSideOfExpression:at(e,r,i)})))}function at(t,e,n){return"radio"===t.type&&(t.hasAttribute("name")||t.setAttribute("name",n)),(n,r)=>{if(n instanceof CustomEvent&&n.detail)return n.detail;if("checkbox"===t.type){if(Array.isArray(r)){const t=e.includes("number")?lt(n.target.value):n.target.value;return n.target.checked?r.concat([t]):r.filter((e=>!s(e,t)))}return n.target.checked}if("select"===t.tagName.toLowerCase()&&t.multiple)return e.includes("number")?Array.from(n.target.selectedOptions).map((t=>lt(t.value||t.text))):Array.from(n.target.selectedOptions).map((t=>t.value||t.text));{const t=n.target.value;return e.includes("number")?lt(t):e.includes("trim")?t.trim():t}}}function lt(t){const e=t?parseFloat(t):null;return j(e)?e:t}const{isArray:ut}=Array,{getPrototypeOf:ct,create:dt,defineProperty:ht,defineProperties:ft,isExtensible:pt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:yt,preventExtensions:_t,hasOwnProperty:vt}=Object,{push:bt,concat:wt,map:Mt}=Array.prototype;function St(t){return void 0===t}function Ct(t){return"function"==typeof t}function At(t){return"object"==typeof t}const xt=new WeakMap;function Et(t,e){xt.set(t,e)}const Lt=t=>xt.get(t)||t;function Tt(t,e){return t.valueIsObservable(e)?t.getProxy(e):e}function Dt(t){return vt.call(t,"value")&&(t.value=Lt(t.value)),t}function kt(t,e,n){wt.call(gt(n),yt(n)).forEach((r=>{let i=mt(n,r);i.configurable||(i=Ft(t,i,Tt)),ht(e,r,i)})),_t(e)}class Ot{constructor(t,e){this.originalTarget=e,this.membrane=t}get(t,e){const{originalTarget:n,membrane:r}=this,i=n[e],{valueObserved:o}=r;return o(n,e),r.getProxy(i)}set(t,e,n){const{originalTarget:r,membrane:{valueMutated:i}}=this;return r[e]!==n?(r[e]=n,i(r,e)):"length"===e&&ut(r)&&i(r,e),!0}deleteProperty(t,e){const{originalTarget:n,membrane:{valueMutated:r}}=this;return delete n[e],r(n,e),!0}apply(t,e,n){}construct(t,e,n){}has(t,e){const{originalTarget:n,membrane:{valueObserved:r}}=this;return r(n,e),e in n}ownKeys(t){const{originalTarget:e}=this;return wt.call(gt(e),yt(e))}isExtensible(t){const e=pt(t);if(!e)return e;const{originalTarget:n,membrane:r}=this,i=pt(n);return i||kt(r,t,n),i}setPrototypeOf(t,e){}getPrototypeOf(t){const{originalTarget:e}=this;return ct(e)}getOwnPropertyDescriptor(t,e){const{originalTarget:n,membrane:r}=this,{valueObserved:i}=this.membrane;i(n,e);let o=mt(n,e);if(St(o))return o;const s=mt(t,e);return St(s)?(o=Ft(r,o,Tt),o.configurable||ht(t,e,o),o):s}preventExtensions(t){const{originalTarget:e,membrane:n}=this;return kt(n,t,e),_t(e),!0}defineProperty(t,e,n){const{originalTarget:r,membrane:i}=this,{valueMutated:o}=i,{configurable:s}=n;if(vt.call(n,"writable")&&!vt.call(n,"value")){const t=mt(r,e);n.value=t.value}return ht(r,e,Dt(n)),!1===s&&ht(t,e,Ft(i,n,Tt)),o(r,e),!0}}function It(t,e){return t.valueIsObservable(e)?t.getReadOnlyProxy(e):e}class Nt{constructor(t,e){this.originalTarget=e,this.membrane=t}get(t,e){const{membrane:n,originalTarget:r}=this,i=r[e],{valueObserved:o}=n;return o(r,e),n.getReadOnlyProxy(i)}set(t,e,n){return!1}deleteProperty(t,e){return!1}apply(t,e,n){}construct(t,e,n){}has(t,e){const{originalTarget:n,membrane:{valueObserved:r}}=this;return r(n,e),e in n}ownKeys(t){const{originalTarget:e}=this;return wt.call(gt(e),yt(e))}setPrototypeOf(t,e){}getOwnPropertyDescriptor(t,e){const{originalTarget:n,membrane:r}=this,{valueObserved:i}=r;i(n,e);let o=mt(n,e);if(St(o))return o;const s=mt(t,e);return St(s)?(o=Ft(r,o,It),vt.call(o,"set")&&(o.set=void 0),o.configurable||ht(t,e,o),o):s}preventExtensions(t){return!1}defineProperty(t,e,n){return!1}}function Pt(t){let e;return ut(t)?e=[]:At(t)&&(e={}),e}const Rt=Object.prototype;function Yt(t){if(null===t)return!1;if("object"!=typeof t)return!1;if(ut(t))return!0;const e=ct(t);return e===Rt||null===e||null===ct(e)}const jt=(t,e)=>{},Bt=(t,e)=>{},Ht=t=>t;function Ft(t,e,n){const{set:r,get:i}=e;return vt.call(e,"value")?e.value=n(t,e.value):(St(i)||(e.get=function(){return n(t,i.call(Lt(this)))}),St(r)||(e.set=function(e){r.call(Lt(this),t.unwrapProxy(e))})),e}class Wt{constructor(t){if(this.valueDistortion=Ht,this.valueMutated=Bt,this.valueObserved=jt,this.valueIsObservable=Yt,this.objectGraph=new WeakMap,!St(t)){const{valueDistortion:e,valueMutated:n,valueObserved:r,valueIsObservable:i}=t;this.valueDistortion=Ct(e)?e:Ht,this.valueMutated=Ct(n)?n:Bt,this.valueObserved=Ct(r)?r:jt,this.valueIsObservable=Ct(i)?i:Yt}}getProxy(t){const e=Lt(t),n=this.valueDistortion(e);if(this.valueIsObservable(n)){const r=this.getReactiveState(e,n);return r.readOnly===t?t:r.reactive}return n}getReadOnlyProxy(t){t=Lt(t);const e=this.valueDistortion(t);return this.valueIsObservable(e)?this.getReactiveState(t,e).readOnly:e}unwrapProxy(t){return Lt(t)}getReactiveState(t,e){const{objectGraph:n}=this;let r=n.get(e);if(r)return r;const i=this;return r={get reactive(){const n=new Ot(i,e),r=new Proxy(Pt(e),n);return Et(r,t),ht(this,"reactive",{value:r}),r},get readOnly(){const n=new Nt(i,e),r=new Proxy(Pt(e),n);return Et(r,t),ht(this,"readOnly",{value:r}),r}},n.set(e,r),r}}function Ut(t,e){let n=new Wt({valueMutated(t,n){e(t,n)}});return{data:n.getProxy(t),membrane:n}}function zt(t,e){let n=t.unwrapProxy(e),r={};return Object.keys(n).forEach((t=>{["$el","$refs","$nextTick","$watch"].includes(t)||(r[t]=n[t])})),r}class Vt{constructor(t,e=null){this.$el=t;const n=this.$el.getAttribute("x-data"),r=""===n?"{}":n,i=this.$el.getAttribute("x-init");let o={$el:this.$el},s=e?e.$el:this.$el;Object.entries(qt.magicProperties).forEach((([t,e])=>{Object.defineProperty(o,`$${t}`,{get:function(){return e(s)}})})),this.unobservedData=e?e.getUnobservedData():p(t,r,o);let{membrane:a,data:l}=this.wrapDataInObservable(this.unobservedData);var u;this.$data=l,this.membrane=a,this.unobservedData.$el=this.$el,this.unobservedData.$refs=this.getRefsProxy(),this.nextTickStack=[],this.unobservedData.$nextTick=t=>{this.nextTickStack.push(t)},this.watchers={},this.unobservedData.$watch=(t,e)=>{this.watchers[t]||(this.watchers[t]=[]),this.watchers[t].push(e)},Object.entries(qt.magicProperties).forEach((([t,e])=>{Object.defineProperty(this.unobservedData,`$${t}`,{get:function(){return e(s,this.$el)}})})),this.showDirectiveStack=[],this.showDirectiveLastElement,e||qt.onBeforeComponentInitializeds.forEach((t=>t(this))),i&&!e&&(this.pauseReactivity=!0,u=this.evaluateReturnExpression(this.$el,i),this.pauseReactivity=!1),this.initializeElements(this.$el,(()=>{}),e),this.listenForNewElementsToInitialize(),"function"==typeof u&&u.call(this.$data),e||setTimeout((()=>{qt.onComponentInitializeds.forEach((t=>t(this)))}),0)}getUnobservedData(){return zt(this.membrane,this.$data)}wrapDataInObservable(t){var e=this;let n=d((function(){e.updateElements(e.$el)}),0);return Ut(t,((t,r)=>{e.watchers[r]?e.watchers[r].forEach((e=>e(t[r]))):Array.isArray(t)?Object.keys(e.watchers).forEach((n=>{let i=n.split(".");"length"!==r&&i.reduce(((r,i)=>(Object.is(t,r[i])&&e.watchers[n].forEach((e=>e(t))),r[i])),e.unobservedData)})):Object.keys(e.watchers).filter((t=>t.includes("."))).forEach((n=>{let i=n.split(".");r===i[i.length-1]&&i.reduce(((i,o)=>(Object.is(t,i)&&e.watchers[n].forEach((e=>e(t[r]))),i[o])),e.unobservedData)})),e.pauseReactivity||n()}))}walkAndSkipNestedComponents(t,e,n=(()=>{})){c(t,(t=>t.hasAttribute("x-data")&&!t.isSameNode(this.$el)?(t.__x||n(t),!1):e(t)))}initializeElements(t,e=(()=>{}),n=!1){this.walkAndSkipNestedComponents(t,(t=>void 0===t.__x_for_key&&void 0===t.__x_inserted_me&&void this.initializeElement(t,e,!n)),(t=>{n||(t.__x=new Vt(t))})),this.executeAndClearRemainingShowDirectiveStack(),this.executeAndClearNextTickStack(t)}initializeElement(t,e,n=!0){t.hasAttribute("class")&&_(t,this).length>0&&(t.__x_original_classes=S(t.getAttribute("class"))),n&&this.registerListeners(t,e),this.resolveBoundAttributes(t,!0,e)}updateElements(t,e=(()=>{})){this.walkAndSkipNestedComponents(t,(t=>{if(void 0!==t.__x_for_key&&!t.isSameNode(this.$el))return!1;this.updateElement(t,e)}),(t=>{t.__x=new Vt(t)})),this.executeAndClearRemainingShowDirectiveStack(),this.executeAndClearNextTickStack(t)}executeAndClearNextTickStack(t){t===this.$el&&this.nextTickStack.length>0&&requestAnimationFrame((()=>{for(;this.nextTickStack.length>0;)this.nextTickStack.shift()()}))}executeAndClearRemainingShowDirectiveStack(){this.showDirectiveStack.reverse().map((t=>new Promise(((e,n)=>{t(e,n)})))).reduce(((t,e)=>t.then((()=>e.then((t=>{t()}))))),Promise.resolve((()=>{}))).catch((t=>{if(t!==x)throw t})),this.showDirectiveStack=[],this.showDirectiveLastElement=void 0}updateElement(t,e){this.resolveBoundAttributes(t,!1,e)}
2registerListeners(t,e){_(t,this).forEach((({type:n,value:r,modifiers:i,expression:o})=>{switch(n){case"on":et(this,t,r,i,o,e);break;case"model":st(this,t,i,o,e)}}))}resolveBoundAttributes(t,e=!1,n){let r=_(t,this);r.forEach((({type:i,value:o,modifiers:s,expression:a})=>{switch(i){case"model":X(this,t,"value",a,n,i,s);break;case"bind":if("template"===t.tagName.toLowerCase()&&"key"===o)return;X(this,t,o,a,n,i,s);break;case"text":var l=this.evaluateReturnExpression(t,a,n);J(t,l,a);break;case"html":Q(this,t,a,n);break;case"show":l=this.evaluateReturnExpression(t,a,n),$(this,t,l,s,e);break;case"if":if(r.some((t=>"for"===t.type)))return;l=this.evaluateReturnExpression(t,a,n),tt(this,t,l,e,n);break;case"for":H(this,t,a,e,n);break;case"cloak":t.removeAttribute("x-cloak")}}))}evaluateReturnExpression(t,e,r=(()=>{})){return p(t,e,this.$data,n(n({},r()),{},{$dispatch:this.getDispatchFunction(t)}))}evaluateCommandExpression(t,e,r=(()=>{})){return m(t,e,this.$data,n(n({},r()),{},{$dispatch:this.getDispatchFunction(t)}))}getDispatchFunction(t){return(e,n={})=>{t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0}))}}listenForNewElementsToInitialize(){const t=this.$el,e={childList:!0,attributes:!0,subtree:!0};new MutationObserver((t=>{for(let e=0;e<t.length;e++){const n=t[e].target.closest("[x-data]");if(n&&n.isSameNode(this.$el)){if("attributes"===t[e].type&&"x-data"===t[e].attributeName){const n=t[e].target.getAttribute("x-data")||"{}",r=p(this.$el,n,{$el:this.$el});Object.keys(r).forEach((t=>{this.$data[t]!==r[t]&&(this.$data[t]=r[t])}))}t[e].addedNodes.length>0&&t[e].addedNodes.forEach((t=>{1!==t.nodeType||t.__x_inserted_me||(!t.matches("[x-data]")||t.__x?this.initializeElements(t):t.__x=new Vt(t))}))}}})).observe(t,e)}getRefsProxy(){var t=this;return new Proxy({},{get(e,n){return"$isAlpineProxy"===n||(t.walkAndSkipNestedComponents(t.$el,(t=>{t.hasAttribute("x-ref")&&t.getAttribute("x-ref")===n&&(r=t)})),r);var r}})}}const qt={version:"2.8.2",pauseMutationObserver:!1,magicProperties:{},onComponentInitializeds:[],onBeforeComponentInitializeds:[],ignoreFocusedForValueBinding:!1,start:async function(){o()||await r(),this.discoverComponents((t=>{this.initializeComponent(t)})),document.addEventListener("turbolinks:load",(()=>{this.discoverUninitializedComponents((t=>{this.initializeComponent(t)}))})),this.listenForNewUninitializedComponentsAtRunTime()},discoverComponents:function(t){document.querySelectorAll("[x-data]").forEach((e=>{t(e)}))},discoverUninitializedComponents:function(t,e=null){const n=(e||document).querySelectorAll("[x-data]");Array.from(n).filter((t=>void 0===t.__x)).forEach((e=>{t(e)}))},listenForNewUninitializedComponentsAtRunTime:function(){const t=document.querySelector("body"),e={childList:!0,attributes:!0,subtree:!0};new MutationObserver((t=>{if(!this.pauseMutationObserver)for(let e=0;e<t.length;e++)t[e].addedNodes.length>0&&t[e].addedNodes.forEach((t=>{1===t.nodeType&&(t.parentElement&&t.parentElement.closest("[x-data]")||this.discoverUninitializedComponents((t=>{this.initializeComponent(t)}),t.parentElement))}))})).observe(t,e)},initializeComponent:function(t){if(!t.__x)try{t.__x=new Vt(t)}catch(t){setTimeout((()=>{throw t}),0)}},clone:function(t,e){e.__x||(e.__x=new Vt(e,t))},addMagicProperty:function(t,e){this.magicProperties[t]=e},onComponentInitialized:function(t){this.onComponentInitializeds.push(t)},onBeforeComponentInitialized:function(t){this.onBeforeComponentInitializeds.push(t)}};return o()||(window.Alpine=qt,window.deferLoadingAlpine?window.deferLoadingAlpine((function(){window.Alpine.start()})):window.Alpine.start()),qt}()},9669:(t,e,n)=>{t.exports=n(1609)},5448:(t,e,n)=>{"use strict";var r=n(4867),i=n(6026),o=n(4372),s=n(5327),a=n(4097),l=n(4109),u=n(7985),c=n(5061);t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers,f=t.responseType;r.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var y=a(t.baseURL,t.url);function _(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,n,o),p=null}}if(p.open(t.method.toUpperCase(),s(y,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,"onloadend"in p?p.onloadend=_:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(_)},p.onabort=function(){p&&(n(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}"setRequestHeader"in p&&r.forEach(h,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)}
vendor: 13,952 bytes, line 2
2)),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),f&&"json"!==f&&(p.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},1609:(t,e,n)=>{"use strict";var r=n(4867),i=n(1849),o=n(321),s=n(7185);function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var l=a(n(5655));l.Axios=o,l.create=function(t){return a(s(l.defaults,t))},l.Cancel=n(5263),l.CancelToken=n(4972),l.isCancel=n(6502),l.all=function(t){return Promise.all(t)},l.spread=n(8713),l.isAxiosError=n(6268),t.exports=l,t.exports.default=l},5263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,n)=>{"use strict";var r=n(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var r=n(4867),i=n(5327),o=n(782),s=n(3572),a=n(7185),l=n(4875),u=l.validators;function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var c=[s,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var d=t;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(t){f(t);break}}try{i=s(d)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,r){return this.request(a(r||{},{method:t,url:e,data:n}))}})),t.exports=c},782:(t,e,n)=>{"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:(t,e,n)=>{"use strict";var r=n(1793),i=n(7303);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},5061:(t,e,n)=>{"use strict";var r=n(481);t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},3572:(t,e,n)=>{"use strict";var r=n(4867),i=n(8527),o=n(6502),s=n(5655);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7185:(t,e,n)=>{"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function u(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),r.forEach(o,u),r.forEach(s,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(void 0,e[i])})),r.forEach(a,(function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(void 0,t[r]))}));var c=i.concat(o).concat(s).concat(a),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return r.forEach(d,u),n}},6026:(t,e,n)=>{"use strict";var r=n(5061);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:(t,e,n)=>{"use strict";var r=n(4867),i=n(5655);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},5655:(t,e,n)=>{"use strict";var r=n(4155),i=n(4867),o=n(6016),s=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function l(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(u=n(5448)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(l(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)||e&&"application/json"===e["Content-Type"]?(l(e,"application/json"),function(t,e,n){if(i.isString(t))try{return(e||JSON.parse)(t),i.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw s(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(a)})),t.exports=c},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:(t,e,n)=>{"use strict";var r=n(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,n)=>{"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,n)=>{"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:(t,e,n)=>{"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:(t,e,n)=>{"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,n)=>{"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},s=r.version.split(".");function a(t,e){for(var n=e?e.split("."):s,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(t,e,n){var i=e&&a(e);function s(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(s(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(s(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={isOlderVersion:a,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],s=e[o];if(s){var a=t[o],l=void 0===a||s(a,o,t);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4867:(t,e,n)=>{"use strict";var r=n(1849),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
2,forEach:c,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},3638:(t,e,n)=>{"use strict";var r=n(381),i=n.n(r),o=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],s={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};const l=a;var u=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},c=function(t){return!0===t?1:0};function d(t,e){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(r,i)}),e)}}var h=function(t){return t instanceof Array?t:[t]};function f(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function p(t,e,n){var r=window.document.createElement(t);return e=e||"",n=n||"",r.className=e,void 0!==n&&(r.textContent=n),r}function m(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function g(t,e){return e(t)?t:t.parentNode?g(t.parentNode,e):void 0}function y(t,e){var n=p("div","numInputWrapper"),r=p("input","numInput "+t),i=p("span","arrowUp"),o=p("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==e)for(var s in e)r.setAttribute(s,e[s]);return n.appendChild(r),n.appendChild(i),n.appendChild(o),n}function _(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var v=function(){},b=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},w={D:v,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*c(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var r=parseInt(e),i=new Date(t.getFullYear(),0,2+7*(r-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:v,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:v,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},M={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
2(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},S={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[S.w(t,e,n)]},F:function(t,e,n){return b(S.n(t,e,n)-1,!1,e)},G:function(t,e,n){return u(S.h(t,e,n))},H:function(t){return u(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[c(t.getHours()>11)]},M:function(t,e){return b(t.getMonth(),!0,e)},S:function(t){return u(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return u(t.getFullYear(),4)},d:function(t){return u(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return u(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return u(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},C=function(t){var e=t.config,n=void 0===e?s:e,r=t.l10n,i=void 0===r?a:r,o=t.isMobile,l=void 0!==o&&o;return function(t,e,r){var o=r||i;return void 0===n.formatDate||l?e.split("").map((function(e,r,i){return S[e]&&"\\"!==i[r-1]?S[e](t,o,n):"\\"!==e?e:""})).join(""):n.formatDate(t,e,o)}},A=function(t){var e=t.config,n=void 0===e?s:e,r=t.l10n,i=void 0===r?a:r;return function(t,e,r,o){if(0===t||t){var a,l=o||i,u=t;if(t instanceof Date)a=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)a=new Date(t);else if("string"==typeof t){var c=e||(n||s).dateFormat,d=String(t).trim();if("today"===d)a=new Date,r=!0;else if(n&&n.parseDate)a=n.parseDate(t,c);else if(/Z$/.test(d)||/GMT$/.test(d))a=new Date(t);else{for(var h=void 0,f=[],p=0,m=0,g="";p<c.length;p++){var y=c[p],_="\\"===y,v="\\"===c[p-1]||_;if(M[y]&&!v){g+=M[y];var b=new RegExp(g).exec(t);b&&(h=!0)&&f["Y"!==y?"push":"unshift"]({fn:w[y],val:b[++m]})}else _||(g+=".")}a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach((function(t){var e=t.fn,n=t.val;return a=e(a,n,l)||a})),a=h?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===r&&a.setHours(0,0,0,0),a;n.errorHandler(new Error("Invalid date provided: "+u))}}};function x(t,e,n){return void 0===n&&(n=!0),!1!==n?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var E=function(t,e,n){return 3600*t+60*e+n},L=864e5;function T(t){var e=t.defaultHour,n=t.defaultMinute,r=t.defaultSeconds;if(void 0!==t.minDate){var i=t.minDate.getHours(),o=t.minDate.getMinutes(),s=t.minDate.getSeconds();e<i&&(e=i),e===i&&n<o&&(n=o),e===i&&n===o&&r<s&&(r=t.minDate.getSeconds())}if(void 0!==t.maxDate){var a=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,a))===a&&(n=Math.min(l,n)),e===a&&n===l&&(r=t.maxDate.getSeconds())}return{hours:e,minutes:n,seconds:r}}n(1895);var D=function(){return D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},D.apply(this,arguments)},k=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};function O(t,e){var n={config:D(D({},s),N.defaultConfig),l10n:l};function r(){var t;return(null===(t=n.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function i(t){return t.bind(n)}function a(){var t=n.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var e=(n.days.offsetWidth+1)*t.showMonths;n.daysContainer.style.width=e+"px",n.calendarContainer.style.width=e+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function v(t){if(0===n.selectedDates.length){var e=void 0===n.config.minDate||x(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),r=T(n.config);e.setHours(r.hours,r.minutes,r.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,r=_(t),i=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[c(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),a=parseFloat(i.getAttribute("step")),l=parseInt(i.value,10),d=t.delta||(e?38===t.which?1:-1:0),h=l+a*d;if(void 0!==i.value&&2===i.value.length){var f=i===n.hourElement,p=i===n.minuteElement;h<o?(h=s+h+c(!f)+(c(f)&&c(!n.amPM)),p&&B(void 0,-1,n.hourElement)):h>s&&(h=i===n.hourElement?h-s-c(!n.amPM):o,p&&B(void 0,1,n.hourElement)),n.amPM&&f&&(1===a?h+l===23:Math.abs(h-l)>a)&&(n.amPM.textContent=n.l10n.amPM[c(n.amPM.textContent===n.l10n.amPM[0])]),i.value=u(h)}}(t);var i=n._input.value;w(),St(),n._input.value!==i&&n._debouncedChange()}function w(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var t,e,r=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(t=r,e=n.amPM.textContent,r=t%12+12*c(e===n.l10n.amPM[1]));var s=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===x(n.latestSelectedDateObj,n.config.minDate,!0),a=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===x(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var l=E(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),u=E(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=E(r,i,o);if(d>u&&d<l){var h=function(t){var e=Math.floor(t/3600),n=(t-3600*e)/60;return[e,n,t-3600*e-60*n]}(l);r=h[0],i=h[1],o=h[2]}}else{if(a){var f=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(r=Math.min(r,f.getHours()))===f.getHours()&&(i=Math.min(i,f.getMinutes())),i===f.getMinutes()&&(o=Math.min(o,f.getSeconds()))}if(s){var p=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(r=Math.max(r,p.getHours()))===p.getHours()&&i<p.getMinutes()&&(i=p.getMinutes()),i===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}O(r,i,o)}}function S(t){var e=t||n.latestSelectedDateObj;e&&e instanceof Date&&O(e.getHours(),e.getMinutes(),e.getSeconds())}function O(t,e,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(t%24,e,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=u(n.config.time_24hr?t:(12+t)%12+12*c(t%12==0)),n.minuteElement.value=u(e),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[c(t>=12)]),void 0!==n.secondElement&&(n.secondElement.value=u(r)))}function I(t){var e=_(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&tt(n)}function P(t,e,r,i){return e instanceof Array?e.forEach((function(e){return P(t,e,r,i)})):t instanceof Array?t.forEach((function(t){return P(t,e,r,i)})):(t.addEventListener(e,r,i),void n._handlers.push({remove:function(){return t.removeEventListener(e,r,i)}}))}function R(){_t("onChange")}function Y(t,e){var r=void 0!==t?n.parseDate(t):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,o=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(t){t.message="Invalid date supplied: "+r,n.config.errorHandler(t)}e&&n.currentYear!==i&&(_t("onYearChange"),q()),!e||n.currentYear===i&&n.currentMonth===o||_t("onMonthChange"),n.redraw()}function j(t){var e=_(t);~e.className.indexOf("arrow")&&B(t,e.classList.contains("arrowUp")?1:-1)}function B(t,e,n){var r=t&&_(t),i=n||r&&r.parentNode&&r.parentNode.firstChild,o=vt("increment");o.delta=e,i&&i.dispatchEvent(o)}function H(t,e,r,i){var o=et(e,!0),s=p("span",t,e.getDate().toString());return s.dateObj=e,s.$i=i,s.setAttribute("aria-label",n.formatDate(e,n.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===x(e,n.now)&&(n.todayDateElem=s,s.classList.add("today"),s.setAttribute("aria-current","date")),o?(s.tabIndex=-1,bt(e)&&(s.classList.add("selected"),n.selectedDateElem=s,"range"===n.config.mode&&(f(s,"startRange",n.selectedDates[0]&&0===x(e,n.selectedDates[0],!0)),f(s,"endRange",n.selectedDates[1]&&0===x(e,n.selectedDates[1],!0)),"nextMonthDay"===t&&s.classList.add("inRange")))):s.
vendor: 10,156 bytes, line 2
2classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(t){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(x(t,n.selectedDates[0])>=0&&x(t,n.selectedDates[1])<=0)}(e)&&!bt(e)&&s.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==t&&i%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(e)+"</span>"),_t("onDayCreate",s),s}function F(t){t.focus(),"range"===n.config.mode&&ot(t)}function W(t){for(var e=t>0?0:n.config.showMonths-1,r=t>0?n.config.showMonths:-1,i=e;i!=r;i+=t)for(var o=n.daysContainer.children[i],s=t>0?0:o.children.length-1,a=t>0?o.children.length:-1,l=s;l!=a;l+=t){var u=o.children[l];if(-1===u.className.indexOf("hidden")&&et(u.dateObj))return u}}function U(t,e){var i=r(),o=nt(i||document.body),s=void 0!==t?t:o?i:void 0!==n.selectedDateElem&&nt(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&nt(n.todayDateElem)?n.todayDateElem:W(e>0?1:-1);void 0===s?n._input.focus():o?function(t,e){for(var r=-1===t.className.indexOf("Month")?t.dateObj.getMonth():n.currentMonth,i=e>0?n.config.showMonths:-1,o=e>0?1:-1,s=r-n.currentMonth;s!=i;s+=o)for(var a=n.daysContainer.children[s],l=r-n.currentMonth===s?t.$i+e:e<0?a.children.length-1:0,u=a.children.length,c=l;c>=0&&c<u&&c!=(e>0?u:-1);c+=o){var d=a.children[c];if(-1===d.className.indexOf("hidden")&&et(d.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return F(d)}n.changeMonth(o),U(W(o),0)}(s,e):F(s)}function z(t,e){for(var r=(new Date(t,e,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((e-1+12)%12,t),o=n.utils.getDaysInMonth(e,t),s=window.document.createDocumentFragment(),a=n.config.showMonths>1,l=a?"prevMonthDay hidden":"prevMonthDay",u=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-r,d=0;c<=i;c++,d++)s.appendChild(H("flatpickr-day "+l,new Date(t,e-1,c),0,d));for(c=1;c<=o;c++,d++)s.appendChild(H("flatpickr-day",new Date(t,e,c),0,d));for(var h=o+1;h<=42-r&&(1===n.config.showMonths||d%7!=0);h++,d++)s.appendChild(H("flatpickr-day "+u,new Date(t,e+1,h%o),0,d));var f=p("div","dayContainer");return f.appendChild(s),f}function V(){if(void 0!==n.daysContainer){m(n.daysContainer),n.weekNumbers&&m(n.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<n.config.showMonths;e++){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+e),t.appendChild(z(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(t),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&ot()}}function q(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var t=function(t){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&t<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&t>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var r=p("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,e).getMonth().toString(),r.textContent=b(e,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===e&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function G(){var t,e=p("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?t=p("span","cur-month"):(n.monthsDropdownContainer=p("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),P(n.monthsDropdownContainer,"change",(function(t){var e=_(t),r=parseInt(e.value,10);n.changeMonth(r-n.currentMonth),_t("onMonthChange")})),q(),t=n.monthsDropdownContainer);var i=y("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var s=p("div","flatpickr-current-month");return s.appendChild(t),s.appendChild(i),r.appendChild(s),e.appendChild(r),{container:e,yearElement:o,monthElement:t}}function X(){m(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var t=n.config.showMonths;t--;){var e=G();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function Z(){n.weekdayContainer?m(n.weekdayContainer):n.weekdayContainer=p("div","flatpickr-weekdays");for(var t=n.config.showMonths;t--;){var e=p("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return K(),n.weekdayContainer}function K(){if(n.weekdayContainer){var t=n.l10n.firstDayOfWeek,e=k(n.l10n.weekdays.shorthand);t>0&&t<e.length&&(e=k(e.splice(t,e.length),e.splice(0,t)));for(var r=n.config.showMonths;r--;)n.weekdayContainer.children[r].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+e.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function J(t,e){void 0===e&&(e=!0);var r=e?t:t-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,_t("onYearChange"),q()),V(),_t("onMonthChange"),wt())}function Q(t){return n.calendarContainer.contains(t)}function $(t){if(n.isOpen&&!n.config.inline){var e=_(t),r=Q(e),i=!(e===n.input||e===n.altInput||n.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(n.input)||~t.path.indexOf(n.altInput)))&&!r&&!Q(t.relatedTarget),o=!n.config.ignoredFocusElements.some((function(t){return t.contains(e)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&v(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function tt(t){if(!(!t||n.config.minDate&&t<n.config.minDate.getFullYear()||n.config.maxDate&&t>n.config.maxDate.getFullYear())){var e=t,r=n.currentYear!==e;n.currentYear=e||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),_t("onYearChange"),q())}}function et(t,e){var r;void 0===e&&(e=!0);var i=n.parseDate(t,void 0,e);if(n.config.minDate&&i&&x(i,n.config.minDate,void 0!==e?e:!n.minDateHasTime)<0||n.config.maxDate&&i&&x(i,n.config.maxDate,void 0!==e?e:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,s=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,a=0,l=void 0;a<s.length;a++){if("function"==typeof(l=s[a])&&l(i))return o;if(l instanceof Date&&void 0!==i&&l.getTime()===i.getTime())return o;if("string"==typeof l){var u=n.parseDate(l,void 0,!0);return u&&u.getTime()===i.getTime()?o:!o}if("object"==typeof l&&void 0!==i&&l.from&&l.to&&i.getTime()>=l.from.getTime()&&i.getTime()<=l.to.getTime())return o}return!o}function nt(t){return void 0!==n.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(t))}function rt(t){var e=t.target===n._input,r=n._input.value.trimEnd()!==Mt();!e||!r||t.relatedTarget&&Q(t.relatedTarget)||n.setDate(n._input.value,!0,t.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function it(e){var i=_(e),o=n.config.wrap?t.contains(i):i===n._input,s=n.config.allowInput,a=n.isOpen&&(!s||!o),l=n.config.inline&&o&&!s;if(13===e.keyCode&&o){if(s)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(Q(i)||a||l){var u=!!n.timeContainer&&n.timeContainer.contains(i);switch(e.keyCode){case 13:u?(e.preventDefault(),v(),ht()):ft(e);break;case 27:e.preventDefault(),ht();break;case 8:case 46:o&&!n.config.allowInput&&(e.preventDefault(),n.clear());break;case 37:case 39:if(u||o)n.hourElement&&n.hourElement.focus();else{e.preventDefault();var c=r();if(void 0!==n.daysContainer&&(!1===s||c&&nt(c))){var d=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),J(d),U(W(1),0)):U(void 0,d)}}break;case 38:case 40:e.preventDefault();var h=40===e.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?e.ctrlKey?(e.stopPropagation(),tt(n.currentYear-h),U(W(1),0)):u||U(void 0,7*h):i===n.currentYearElement?tt(n.currentYear-h):n.config.enableTime&&(!u&&n.hourElement&&n.hourElement.focus(),v(e),n._debouncedChange());break;case 9:if(u){var f=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(t){return t})),p=f.indexOf(i);if(-1!==p){var m=f[p+(e.shiftKey?-1:1)];e.preventDefault(),(m||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&e.shiftKey&&(e.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(e.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],w(),St();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],w(),St()}(o||Q(i))&&_t("onKeyDown",e)}function ot(t,e){if(void 0===e&&(e="flatpickr-day"),1===n.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var r=t?t.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(r,n.selectedDates[0].getTime()),s=Math.max(r,n.selectedDates[0].getTime()),a=!1,l=0,u=0,c=o;c<s;c+=L)et(new Date(c),!0)||(a=a||c>o&&c<s,c<i&&(!l||c>l)?l=c:c>i&&(!u||c<u)&&(u=c));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") >
2 ."+e)).forEach((function(e){var o,s,c,d=e.dateObj.getTime(),h=l>0&&d<l||u>0&&d>u;if(h)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));a&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),i<r&&d===i?e.classList.add("startRange"):i>r&&d===i&&e.classList.add("endRange"),d>=l&&(0===u||d<=u)&&(s=i,c=r,(o=d)>Math.min(s,c)&&o<Math.max(s,c))&&e.classList.add("inRange")))}))}}function st(){!n.isOpen||n.config.static||n.config.inline||ct()}function at(t){return function(e){var r=n.config["_"+t+"Date"]=n.parseDate(e,n.config.dateFormat),i=n.config["_"+("min"===t?"max":"min")+"Date"];void 0!==r&&(n["min"===t?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(t){return et(t)})),n.selectedDates.length||"min"!==t||S(r),St()),n.daysContainer&&(dt(),void 0!==r?n.currentYearElement[t]=r.getFullYear().toString():n.currentYearElement.removeAttribute(t),n.currentYearElement.disabled=!!i&&void 0!==r&&i.getFullYear()===r.getFullYear())}}function lt(){return n.config.wrap?t.querySelector("[data-input]"):t}function ut(){"object"!=typeof n.config.locale&&void 0===N.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=D(D({},N.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?N.l10ns[n.config.locale]:void 0),M.D="("+n.l10n.weekdays.shorthand.join("|")+")",M.l="("+n.l10n.weekdays.longhand.join("|")+")",M.M="("+n.l10n.months.shorthand.join("|")+")",M.F="("+n.l10n.months.longhand.join("|")+")",M.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===D(D({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===N.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=C(n),n.parseDate=A({config:n.config,l10n:n.l10n})}function ct(t){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){_t("onPreCalendarPosition");var e=t||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),s=o[0],a=o.length>1?o[1]:null,l=e.getBoundingClientRect(),u=window.innerHeight-l.bottom,c="above"===s||"below"!==s&&u<r&&l.top>r,d=window.pageYOffset+l.top+(c?-r-2:e.offsetHeight+2);if(f(n.calendarContainer,"arrowTop",!c),f(n.calendarContainer,"arrowBottom",c),!n.config.inline){var h=window.pageXOffset+l.left,p=!1,m=!1;"center"===a?(h-=(i-l.width)/2,p=!0):"right"===a&&(h-=i-l.width,m=!0),f(n.calendarContainer,"arrowLeft",!p&&!m),f(n.calendarContainer,"arrowCenter",p),f(n.calendarContainer,"arrowRight",m);var g=window.document.body.offsetWidth-(window.pageXOffset+l.right),y=h+i>window.document.body.offsetWidth,_=g+i>window.document.body.offsetWidth;if(f(n.calendarContainer,"rightMost",y),!n.config.static)if(n.calendarContainer.style.top=d+"px",y)if(_){var v=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];if(n.cssRules){try{n.cssRules}catch(t){continue}t=n;break}}return null!=t?t:function(){var t=document.createElement("style");return document.head.appendChild(t),t.sheet}()}();if(void 0===v)return;var b=window.document.body.offsetWidth,w=Math.max(0,b/2-i/2),M=v.cssRules.length,S="{left:"+l.left+"px;right:auto;}";f(n.calendarContainer,"rightMost",!1),f(n.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+S,M),n.calendarContainer.style.left=w+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=g+"px";else n.calendarContainer.style.left=h+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,t)}function dt(){n.config.noCalendar||n.isMobile||(q(),wt(),V())}function ht(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function ft(t){t.preventDefault(),t.stopPropagation();var e=g(_(t),(function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}));if(void 0!==e){var r=e,i=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),o=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[i];else if("multiple"===n.config.mode){var s=bt(i);s?n.selectedDates.splice(parseInt(s),1):n.selectedDates.push(i)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==x(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(w(),o){var a=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),a&&(_t("onYearChange"),q()),_t("onMonthChange")}if(wt(),V(),St(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():F(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var l="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;
vendor: 18,619 bytes, line 2
2(l||u)&&ht()}R()}}n.parseDate=A({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=P,n._setHoursFromDate=S,n._positionCalendar=ct,n.changeMonth=J,n.changeYear=tt,n.clear=function(t,e){void 0===t&&(t=!0);void 0===e&&(e=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===e&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var r=T(n.config),i=r.hours,o=r.minutes,s=r.seconds;O(i,o,s)}n.redraw(),t&&_t("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));_t("onClose")},n.onMouseOver=ot,n._createElement=p,n.createDay=H,n.destroy=function(){void 0!==n.config&&_t("onDestroy");for(var t=n._handlers.length;t--;)n._handlers[t].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete n[t]}catch(t){}}))},n.isEnabled=et,n.jumpToDate=Y,n.updateValue=St,n.open=function(t,e){void 0===e&&(e=n._positionElement);if(!0===n.isMobile){if(t){t.preventDefault();var r=_(t);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void _t("onOpen")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),_t("onOpen"),ct(e));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==t&&n.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=dt,n.set=function(t,e){if(null!==t&&"object"==typeof t)for(var r in Object.assign(n.config,t),t)void 0!==pt[r]&&pt[r].forEach((function(t){return t()}));else n.config[t]=e,void 0!==pt[t]?pt[t].forEach((function(t){return t()})):o.indexOf(t)>-1&&(n.config[t]=h(e));n.redraw(),St(!0)},n.setDate=function(t,e,r){void 0===e&&(e=!1);void 0===r&&(r=n.config.dateFormat);if(0!==t&&!t||t instanceof Array&&0===t.length)return n.clear(e);mt(t,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),Y(void 0,e),S(),0===n.selectedDates.length&&n.clear(!1);St(e),e&&_t("onChange")},n.toggle=function(t){if(!0===n.isOpen)return n.close();n.open(t)};var pt={locale:[ut,K],showMonths:[X,a,Z],minDate:[Y],maxDate:[Y],positionElement:[yt],clickOpens:[function(){!0===n.config.clickOpens?(P(n._input,"focus",n.open),P(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function mt(t,e){var r=[];if(t instanceof Array)r=t.map((function(t){return n.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)r=[n.parseDate(t,e)];else if("string"==typeof t)switch(n.config.mode){case"single":case"time":r=[n.parseDate(t,e)];break;case"multiple":r=t.split(n.config.conjunction).map((function(t){return n.parseDate(t,e)}));break;case"range":r=t.split(n.l10n.rangeSeparator).map((function(t){return n.parseDate(t,e)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter((function(t){return t instanceof Date&&et(t,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function gt(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?n.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:n.parseDate(t.from,void 0),to:n.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function yt(){n._positionElement=n.config.positionElement||n._input}function _t(t,e){if(void 0!==n.config){var r=n.config[t];if(void 0!==r&&r.length>0)for(var i=0;r[i]&&i<r.length;i++)r[i](n.selectedDates,n.input.value,n,e);"onChange"===t&&(n.input.dispatchEvent(vt("change")),n.input.dispatchEvent(vt("input")))}}function vt(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function bt(t){for(var e=0;e<n.selectedDates.length;e++){var r=n.selectedDates[e];if(r instanceof Date&&0===x(r,t))return""+e}return!1}function wt(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((function(t,e){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+e),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[e].textContent=b(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),t.value=r.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Mt(t){var e=t||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(t){return n.formatDate(t,e)})).filter((function(t,e,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(t)===e})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function St(t){void 0===t&&(t=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Mt(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Mt(n.config.altFormat)),!1!==t&&_t("onValueUpdate")}function Ct(t){var e=_(t),r=n.prevMonthNav.contains(e),i=n.nextMonthNav.contains(e);r||i?J(r?-1:1):n.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):e.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=t,n.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=D(D({},JSON.parse(JSON.stringify(t.dataset||{}))),e),l={};n.config.parseDate=a.parseDate,n.config.formatDate=a.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(t){n.config._enable=gt(t)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(t){n.config._disable=gt(t)}});var u="time"===a.mode;if(!a.dateFormat&&(a.enableTime||u)){var c=N.defaultConfig.dateFormat||s.dateFormat;l.dateFormat=a.noCalendar||u?"H:i"+(a.enableSeconds?":S":""):c+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||u)&&!a.altFormat){var d=N.defaultConfig.altFormat||s.altFormat;l.altFormat=a.noCalendar||u?"h:i"+(a.enableSeconds?":S K":" K"):d+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:at("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:at("max")});var f=function(t){return function(e){n.config["min"===t?"_minTime":"_maxTime"]=n.parseDate(e,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:f("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:f("max")}),"time"===a.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,a);for(var p=0;p<r.length;p++)n.config[r[p]]=!0===n.config[r[p]]||"true"===n.config[r[p]];o.filter((function(t){return void 0!==n.config[t]})).forEach((function(t){n.config[t]=h(n.config[t]||[]).map(i)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(p=0;p<n.config.plugins.length;p++){var m=n.config.plugins[p](n)||{};for(var g in m)o.indexOf(g)>-1?n.config[g]=h(m[g]).map(i).concat(n.config[g]):void 0===a[g]&&(n.config[g]=m[g])}a.altInputClass||(n.config.altInputClass=lt().className+" "+n.config.altInputClass);_t("onParseConfig")}(),ut(),function(){if(n.input=lt(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=p(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");yt()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var t=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);t&&mt(t,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=n.currentMonth),void 0===e&&(e=n.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:n.l10n.daysInMonth[t]}},n.isMobile||function(){var t=window.document.createDocumentFragment();if(n.calendarContainer=p("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(t.appendChild((n.monthNav=p("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=p("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=p("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,X(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(t){n.__hidePrevMonthArrow!==t&&(f(n.prevMonthNav,"flatpickr-disabled",t),n.__hidePrevMonthArrow=t)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(t){n.__hideNextMonthArrow!==t&&(f(n.nextMonthNav,"flatpickr-disabled",t),n.__hideNextMonthArrow=t)}}),n.currentYearElement=n.yearElements[0],wt(),n.monthNav)),n.innerContainer=p("div","flatpickr-innerContainer"),n.config.weekNumbers){var e=function(){n.calendarContainer.classList.add("hasWeeks");var t=p("div","flatpickr-weekwrapper");t.appendChild(p("span","flatpickr-weekday",n.l10n.weekAbbreviation));var e=p("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),r=e.weekWrapper,i=e.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=i,n.weekWrapper=r}n.rContainer=p("div","flatpickr-rContainer"),n.rContainer.appendChild(Z()),n.daysContainer||(n.daysContainer=p("div","flatpickr-days"),n.daysContainer.tabIndex=-1),V(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),t.appendChild(n.innerContainer)}n.config.enableTime&&t.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var t=T(n.config);n.timeContainer=p("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var e=p("span","flatpickr-time-separator",":"),r=y("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var i=y("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=u(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),n.minuteElement.value=u(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():t.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(e),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=y("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=u(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():t.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(p("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=p("span","flatpickr-am-pm",n.l10n.amPM[c((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());f(n.calendarContainer,"rangeMode","range"===n.config.mode),f(n.calendarContainer,"animate",!0===n.config.animate),f(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(t);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var s=p("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(s,n.element),s.appendChild(n.element),n.altInput&&s.appendChild(n.altInput),s.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+t+"]"),(function(e){return P(e,"click",n[t])}))}));if(n.isMobile)return void function(){var t=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=p("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=t,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}P(n.mobileInput,"change",(function(t){n.setDate(_(t).value,!1,n.mobileFormatStr),_t("onChange"),_t("onClose")}))}();var t=d(st,50);n._debouncedChange=d(R,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(n.daysContainer,"mouseover",(function(t){"range"===n.config.mode&&ot(_(t))}));P(n._input,"keydown",it),void 0!==n.calendarContainer&&P(n.calendarContainer,"keydown",it);n.config.inline||n.config.static||P(window,"resize",t);void 0!==window.ontouchstart?P(window.document,"touchstart",$):P(window.document,"mousedown",$);P(window.document,"focus",$,{capture:!0}),!0===n.config.clickOpens&&(P(n._input,"focus",n.open),P(n._input,"click",n.open));void 0!==n.daysContainer&&(P(n.monthNav,"click",Ct),P(n.monthNav,["keyup","increment"],I),P(n.daysContainer,"click",ft));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var e=function(t){return _(t).select()};P(n.timeContainer,["increment"],v),P(n.timeContainer,"blur",v,{capture:!0}),P(n.timeContainer,"click",j),P([n.hourElement,n.minuteElement],["focus","click"],e),void 0!==n.secondElement&&P(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()}
2)),void 0!==n.amPM&&P(n.amPM,"click",(function(t){v(t)}))}n.config.allowInput&&P(n._input,"blur",rt)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&S(n.config.noCalendar?n.latestSelectedDateObj:void 0),St(!1)),a();var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&r&&ct(),_t("onReady")}(),n}function I(t,e){for(var n=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),r=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=O(o,e||{}),r.push(o._flatpickr)}catch(t){console.error(t)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return I(this,t)},HTMLElement.prototype.flatpickr=function(t){return I([this],t)});var N=function(t,e){return"string"==typeof t?I(window.document.querySelectorAll(t),e):t instanceof Node?I([t],e):I(t,e)};N.defaultConfig={},N.l10ns={en:D({},l),default:D({},l)},N.localize=function(t){N.l10ns.default=D(D({},N.l10ns.default),t)},N.setDefaults=function(t){N.defaultConfig=D(D({},N.defaultConfig),t)},N.parseDate=A({}),N.formatDate=C({}),N.compareDates=x,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return I(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=N);const P=N;var R=n(1781),Y=n(6095),j=n.n(Y);function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var H="(prefers-reduced-motion: reduce)",F={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function W(t){t.length=0}function U(t,e,n){return Array.prototype.slice.call(t,e,n)}function z(t){return t.bind.apply(t,[null].concat(U(arguments,1)))}var V=setTimeout,q=function(){};function G(t){return requestAnimationFrame(t)}function X(t,e){return typeof e===t}function Z(t){return!tt(t)&&X("object",t)}var K=Array.isArray,J=z(X,"function"),Q=z(X,"string"),$=z(X,"undefined");function tt(t){return null===t}function et(t){return t instanceof HTMLElement}function nt(t){return K(t)?t:[t]}function rt(t,e){nt(t).forEach(e)}function it(t,e){return t.indexOf(e)>-1}function ot(t,e){return t.push.apply(t,nt(e)),t}function st(t,e,n){t&&rt(e,(function(e){e&&t.classList[n?"add":"remove"](e)}))}function at(t,e){st(t,Q(e)?e.split(" "):e,!0)}function lt(t,e){rt(e,t.appendChild.bind(t))}function ut(t,e){rt(t,(function(t){var n=(e||t).parentNode;n&&n.insertBefore(t,e)}))}
2function ct(t,e){return et(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function dt(t,e){var n=t?U(t.children):[];return e?n.filter((function(t){return ct(t,e)})):n}function ht(t,e){return e?dt(t,e)[0]:t.firstElementChild}var ft=Object.keys;function pt(t,e,n){return t&&(n?ft(t).reverse():ft(t)).forEach((function(n){"__proto__"!==n&&e(t[n],n)})),t}function mt(t){return U(arguments,1).forEach((function(e){pt(e,(function(n,r){t[r]=e[r]}))})),t}function gt(t){return U(arguments,1).forEach((function(e){pt(e,(function(e,n){K(e)?t[n]=e.slice():Z(e)?t[n]=gt({},Z(t[n])?t[n]:{},e):t[n]=e}))})),t}function yt(t,e){rt(e||ft(t),(function(e){delete t[e]}))}function _t(t,e){rt(t,(function(t){rt(e,(function(e){t&&t.removeAttribute(e)}))}))}function vt(t,e,n){Z(e)?pt(e,(function(e,n){vt(t,n,e)})):rt(t,(function(t){tt(n)||""===n?_t(t,e):t.setAttribute(e,String(n))}))}function bt(t,e,n){var r=document.createElement(t);return e&&(Q(e)?at(r,e):vt(r,e)),n&&lt(n,r),r}function wt(t,e,n){if($(n))return getComputedStyle(t)[e];tt(n)||(t.style[e]=""+n)}function Mt(t,e){wt(t,"display",e)}function St(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function Ct(t,e){return t.getAttribute(e)}function At(t,e){return t&&t.classList.contains(e)}function xt(t){return t.getBoundingClientRect()}function Et(t){rt(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function Lt(t){return ht((new DOMParser).parseFromString(t,"text/html").body)}function Tt(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function Dt(t,e){return t&&t.querySelector(e)}function kt(t,e){return e?U(t.querySelectorAll(e)):[]}function Ot(t,e){st(t,e,!1)}function It(t){return t.timeStamp}function Nt(t){return Q(t)?t:t?t+"px":""}var Pt="splide",Rt="data-splide";function Yt(t,e){if(!t)throw new Error("[splide] "+(e||""))}var jt=Math.min,Bt=Math.max,Ht=Math.floor,Ft=Math.ceil,Wt=Math.abs;function Ut(t,e,n){return Wt(t-e)<n}function zt(t,e,n,r){var i=jt(e,n),o=Bt(e,n);return r?i<t&&t<o:i<=t&&t<=o}function Vt(t,e,n){var r=jt(e,n),i=Bt(e,n);return jt(Bt(r,t),i)}function qt(t){return+(t>0)-+(t<0)}function Gt(t,e){return rt(e,(function(e){t=t.replace("%s",""+e)})),t}function Xt(t){return t<10?"0"+t:""+t}var Zt={};function Kt(t){return""+t+Xt(Zt[t]=(Zt[t]||0)+1)}function Jt(){var t=[];function e(t,e,n){rt(t,(function(t){t&&rt(e,(function(e){e.split(" ").forEach((function(e){var r=e.split(".");n(t,r[0],r[1])}))}))}))}return{bind:function(n,r,i,o){e(n,r,(function(e,n,r){var s="addEventListener"in e,a=s?e.removeEventListener.bind(e,n,i,o):e.removeListener.bind(e,i);s?e.addEventListener(n,i,o):e.addListener(i),t.push([e,n,r,i,a])}))},unbind:function(n,r,i){e(n,r,(function(e,n,r){t=t.filter((function(t){return!!(t[0]!==e||t[1]!==n||t[2]!==r||i&&t[3]!==i)||(t[4](),!1)}))}))},dispatch:function(t,e,n){var r;return"function"==typeof CustomEvent?r=new CustomEvent(e,{bubbles:true,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,true,!1,n),t.dispatchEvent(r),r},destroy:function(){t.forEach((function(t){t[4]()})),W(t)}}}var Qt="mounted",$t="ready",te="move",ee="moved",ne="click",re="active",ie="inactive",oe="visible",se="hidden",ae="refresh",le="updated",ue="resize",ce="resized",de="scroll",he="scrolled",fe="destroy",pe="arrows:mounted",me="navigation:mounted",ge="autoplay:play",ye="autoplay:pause",_e="lazyload:loaded",ve="sk",be="sh",we="ei";function Me(t){var e=t?t.event.bus:document.createDocumentFragment(),n=Jt();return t&&t.event.on(fe,n.destroy),mt(n,{bus:e,on:function(t,r){n.bind(e,nt(t).join(" "),(function(t){r.apply(r,K(t.detail)?t.detail:[])}))},off:z(n.unbind,e),emit:function(t){n.dispatch(e,t,U(arguments,1))}})}function Se(t,e,n,r){var i,o,s=Date.now,a=0,l=!0,u=0;function c(){if(!l){if(a=t?jt((s()-i)/t,1):1,n&&n(a),a>=1&&(e(),i=s(),r&&++u>=r))return d();o=G(c)}}function d(){l=!0}function h(){o&&cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(e){e||h(),i=s()-(e?a*t:0),l=!1,o=G(c)},rewind:function(){i=s(),a=0,n&&n(a)},pause:d,cancel:h,set:function(e){t=e},isPaused:function(){return l}}}var Ce="ArrowLeft",Ae="ArrowRight",xe="ArrowUp",Ee="ArrowDown",Le="ttb",Te={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[xe,Ae],ArrowRight:[Ee,Ce]};function De(t,e,n){return{resolve:function(t,e,r){var i="rtl"!==(r=r||n.direction)||e?r===Le?0:-1:1;
vendor: 23,649 bytes, line 2
2return Te[t]&&Te[t][i]||t.replace(/width|left|right/i,(function(t,e){var n=Te[t.toLowerCase()][i]||t;return e>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(t){return t*("rtl"===n.direction?1:-1)}}}var ke="role",Oe="tabindex",Ie="aria-controls",Ne="aria-current",Pe="aria-selected",Re="aria-label",Ye="aria-labelledby",je="aria-hidden",Be="aria-orientation",He="aria-roledescription",Fe="aria-live",We="aria-busy",Ue="aria-atomic",ze=[ke,Oe,"disabled",Ie,Ne,Re,Ye,je,Be,He],Ve=Pt,qe="splide__track",Ge="splide__list",Xe="splide__slide",Ze=Xe+"--clone",Ke="splide__arrows",Je="splide__arrow",Qe=Je+"--prev",$e=Je+"--next",tn="splide__pagination",en=tn+"__page",nn="splide__progress__bar",rn="splide__toggle",on="is-active",sn="is-prev",an="is-next",ln="is-visible",un="is-loading",cn="is-focus-in",dn="is-overflow",hn=[on,ln,sn,an,un,cn,dn],fn={slide:Xe,clone:Ze,arrows:Ke,arrow:Je,prev:Qe,next:$e,pagination:tn,page:en,spinner:"splide__spinner"};var pn="touchstart mousedown",mn="touchmove mousemove",gn="touchend touchcancel mouseup click";var yn="slide",_n="loop",vn="fade";function bn(t,e,n,r){var i,o=Me(t),s=o.on,a=o.emit,l=o.bind,u=t.Components,c=t.root,d=t.options,h=d.isNavigation,f=d.updateOnMove,p=d.i18n,m=d.pagination,g=d.slideFocus,y=u.Direction.resolve,_=Ct(r,"style"),v=Ct(r,Re),b=n>-1,w=ht(r,".splide__slide__container");function M(){var i=t.splides.map((function(t){var n=t.splide.Components.Slides.getAt(e);return n?n.slide.id:""})).join(" ");vt(r,Re,Gt(p.slideX,(b?n:e)+1)),vt(r,Ie,i),vt(r,ke,g?"button":""),g&&_t(r,He)}function S(){i||C()}function C(){if(!i){var n=t.index;(o=A())!==At(r,on)&&(st(r,on,o),vt(r,Ne,h&&o||""),a(o?re:ie,x)),function(){var e=function(){if(t.is(vn))return A();var e=xt(u.Elements.track),n=xt(r),i=y("left",!0),o=y("right",!0);return Ht(e[i])<=Ft(n[i])&&Ht(n[o])<=Ft(e[o])}(),n=!e&&(!A()||b);t.state.is([4,5])||vt(r,je,n||"");vt(kt(r,d.focusableNodes||""),Oe,n?-1:""),g&&vt(r,Oe,n?-1:0);e!==At(r,ln)&&(st(r,ln,e),a(e?oe:se,x));if(!e&&document.activeElement===r){var i=u.Slides.getAt(t.index);i&&St(i.slide)}}(),st(r,sn,e===n-1),st(r,an,e===n+1)}var o}function A(){var r=t.index;return r===e||d.cloneStatus&&r===n}var x={index:e,slideIndex:n,slide:r,container:w,isClone:b,mount:function(){b||(r.id=c.id+"-slide"+Xt(e+1),vt(r,ke,m?"tabpanel":"group"),vt(r,He,p.slide),vt(r,Re,v||Gt(p.slideLabel,[e+1,t.length]))),l(r,"click",z(a,ne,x)),l(r,"keydown",z(a,ve,x)),s([ee,be,he],C),s(me,M),f&&s(te,S)},destroy:function(){i=!0,o.destroy(),Ot(r,hn),_t(r,ze),vt(r,"style",_),vt(r,Re,v||"")},update:C,style:function(t,e,n){wt(n&&w||r,t,e)},isWithin:function(n,r){var i=Wt(n-e);return b||!d.rewind&&!t.is(_n)||(i=jt(i,t.length-i)),i<=r}};return x}var wn="http://www.w3.org/2000/svg",Mn="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";var Sn={passive:!1,capture:!0};var Cn={Spacebar:" ",Right:Ae,Left:Ce,Up:xe,Down:Ee};function An(t){return t=Q(t)?t:t.key,Cn[t]||t}var xn="keydown";var En="data-splide-lazy",Ln="data-splide-lazy-srcset",Tn="[data-splide-lazy], [data-splide-lazy-srcset]";var Dn=[" ","Enter"];var kn=Object.freeze({__proto__:null,Media:function(t,e,n){var r=t.state,i=n.breakpoints||{},o=n.reducedMotion||{},s=Jt(),a=[];function l(t){t&&s.destroy()}function u(t,e){var n=matchMedia(e);s.bind(n,"change",c),a.push([t,n])}function c(){var e=r.is(7),i=n.direction,o=a.reduce((function(t,e){return gt(t,e[1].matches?e[0]:{})}),{});yt(n),d(o),n.destroy?t.destroy("completely"===n.destroy):e?(l(!0),t.mount()):i!==n.direction&&t.refresh()}function d(e,i,o){gt(n,e),i&&gt(Object.getPrototypeOf(n),e),!o&&r.is(1)||t.emit(le,n)}return{setup:function(){var t="min"===n.mediaQuery;ft(i).sort((function(e,n){return t?+e-+n:+n-+e})).forEach((function(e){u(i[e],"("+(t?"min":"max")+"-width:"+e+"px)")})),u(o,H),c()},destroy:l,reduce:function(t){matchMedia(H).matches&&(t?gt(n,o):yt(n,ft(o)))},set:d}},Direction:De,Elements:function(t,e,n){var r,i,o,s=Me(t),a=s.on,l=s.bind,u=t.root,c=n.i18n,d={},h=[],f=[],p=[];function m(){r=_("."+qe),i=ht(r,"."+Ge),Yt(r&&i,"A track/list element is missing."),ot(h,dt(i,".splide__slide:not(."+Ze+")")),pt({arrows:Ke,pagination:tn,prev:Qe,next:$e,bar:nn,toggle:rn},(function(t,e){d[e]=_("."+t)})),mt(d,{root:u,track:r,list:i,slides:h}),function(){var t=u.id||Kt(Pt),e=n.role;u.id=t,r.id=r.id||t+"-track",i.id=i.id||t+"-list",!Ct(u,ke)&&"SECTION"!==u.tagName&&e&&vt(u,ke,e);vt(u,He,c.carousel),vt(i,ke,"presentation")}(),y()}function g(t){var e=ze.concat("style");W(h),Ot(u,f),Ot(r,p),_t([r,i],e),_t(u,t?e:["style",He])}function y(){Ot(u,f),Ot(r,p),f=v(Ve),p=v(qe),at(u,f),at(r,p),vt(u,Re,n.label),vt(u,Ye,n.labelledby)}function _(t){var e=Dt(u,t);return e&&function(t,e){if(J(t.closest))return t.closest(e);for(var n=t;n&&1===n.nodeType&&!ct(n,e);)n=n.parentElement;return n}(e,"."+Ve)===u?e:void 0}function v(t){return[t+"--"+n.type,t+"--"+n.direction,n.drag&&t+"--draggable",n.isNavigation&&t+"--nav",t===Ve&&on]}return mt(d,{setup:m,mount:function(){a(ae,g),a(ae,m),a(le,y),l(document,"touchstart mousedown keydown",(function(t){o="keydown"===t.type}),{capture:!0}),l(u,"focusin",(function(){st(u,cn,!!o)}))},destroy:g})},Slides:function(t,e,n){var r=Me(t),i=r.on,o=r.emit,s=r.bind,a=e.Elements,l=a.slides,u=a.list,c=[];function d(){l.forEach((function(t,e){f(t,e,-1)}))}function h(){m((function(t){t.destroy()})),W(c)}function f(e,n,r){var i=bn(t,n,r,e);i.mount(),c.push(i),c.sort((function(t,e){return t.index-e.index}))}function p(t){return t?g((function(t){return!t.isClone})):c}function m(t,e){p(e).forEach(t)}function g(t){return c.filter(J(t)?t:function(e){return Q(t)?ct(e.slide,t):it(nt(t),e.index)})}return{mount:function(){d(),i(ae,h),i(ae,d)},destroy:h,update:function(){m((function(t){t.update()}))},register:f,get:p,getIn:function(t){var r=e.Controller,i=r.toIndex(t),o=r.hasFocus()?1:n.perPage;return g((function(t){return zt(t.index,i,i+o-1)}))},getAt:function(t){return g(t)[0]},add:function(t,e){rt(t,(function(t){if(Q(t)&&(t=Lt(t)),et(t)){var r=l[e];r?ut(t,r):lt(u,t),at(t,n.classes.slide),i=t,a=z(o,ue),c=kt(i,"img"),(d=c.length)?c.forEach((function(t){s(t,"load error",(function(){--d||a()}))})):a()}var i,a,c,d})),o(ae)},remove:function(t){Et(g(t).map((function(t){return t.slide}))),o(ae)},forEach:m,filter:g,style:function(t,e,n){m((function(r){r.style(t,e,n)}))},getLength:function(t){return t?l.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(t,e,n){var r,i,o,s=Me(t),a=s.on,l=s.bind,u=s.emit,c=e.Slides,d=e.Direction.resolve,h=e.Elements,f=h.root,p=h.track,m=h.list,g=c.getAt,y=c.style;function _(){r=n.direction===Le,wt(f,"maxWidth",Nt(n.width)),wt(p,d("paddingLeft"),b(!1)),wt(p,d("paddingRight"),b(!0)),v(!0)}function v(t){var e=xt(f);(t||i.width!==e.width||i.height!==e.height)&&(wt(p,"height",function(){var t="";r&&(Yt(t=w(),"height or heightRatio is missing."),t="calc("+t+" - "+b(!1)+" - "+b(!0)+")");return t}()),y(d("marginRight"),Nt(n.gap)),y("width",n.autoWidth?null:Nt(n.fixedWidth)||(r?"":M())),y("height",Nt(n.fixedHeight)||(r?n.autoHeight?null:M():w()),!0),i=e,u(ce),o!==(o=L())&&(st(f,dn,o),u("overflow",o)))}function b(t){var e=n.padding,r=d(t?"right":"left");return e&&Nt(e[r]||(Z(e)?0:e))||"0px"}function w(){return Nt(n.height||xt(m).width*n.heightRatio)}function M(){var t=Nt(n.gap);return"calc((100%"+(t&&" + "+t)+")/"+(n.perPage||1)+(t&&" - "+t)+")"}function S(){return xt(m)[d("width")]}function C(t,e){var n=g(t||0);return n?xt(n.slide)[d("width")]+(e?0:E()):0}function A(t,e){var n=g(t);if(n){var r=xt(n.slide)[d("right")],i=xt(m)[d("left")];return Wt(r-i)+(e?0:E())}return 0}function x(e){return A(t.length-1)-A(0)+C(0,e)}function E(){var t=g(0);return t&&parseFloat(wt(t.slide,d("marginRight")))||0}function L(){return t.is(vn)||x(!0)>S()}return{mount:function(){_(),l(window,"resize load",function(t,e){var n=Se(e||0,t,null,1);return function(){n.isPaused()&&n.start()}}(z(u,ue))),a([le,ae],_),a(ue,v)},resize:v,listSize:S,slideSize:C,sliderSize:x,totalSize:A,getPadding:function(t){return parseFloat(wt(p,d("padding"+(t?"Right":"Left"))))||0},isOverflow:L}},Clones:function(t,e,n){var r,i=Me(t),o=i.on,s=e.Elements,a=e.Slides,l=e.Direction.resolve,u=[];function c(){o(ae,d),o([le,ue],f),(r=p())&&(!function(e){var r=a.get().slice(),i=r.length;if(i){for(;r.length<e;)ot(r,r);ot(r.slice(-e),r.slice(0,e)).forEach((function(o,l){var c=l<e,d=function(e,r){var i=e.cloneNode(!0);return at(i,n.classes.clone),i.id=t.root.id+"-clone"+Xt(r+1),i}(o.slide,l);c?ut(d,r[0].slide):lt(s.list,d),ot(u,d),a.register(d,l-e+(c?0:i),o.index)}))}}(r),e.Layout.resize(!0))}function d(){h(),c()}function h(){Et(u),W(u),i.destroy()}function f(){var t=p();r!==t&&(r<t||!t)&&i.emit(ae)}function p(){var r=n.clones;if(t.is(_n)){if($(r)){var i=n[l("fixedWidth")]&&e.Layout.slideSize(0);r=i&&Ft(xt(s.track)[l("width")]/i)||n[l("autoWidth")]&&t.length||2*n.perPage}}else r=0;return r}return{mount:c,destroy:h}},Move:function(t,e,n){var r,i=Me(t),o=i.on,s=i.emit,a=t.state.set,l=e.Layout,u=l.slideSize,c=l.getPadding,d=l.totalSize,h=l.listSize,f=l.sliderSize,p=e.Direction,m=p.resolve,g=p.orient,y=e.Elements,_=y.list,v=y.track;function b(){e.Controller.isBusy()||(e.Scroll.cancel(),w(t.index),e.Slides.update())}function w(t){M(x(t,!0))}function M(n,r){if(!t.is(vn)){var i=r?n:function(n){if(t.is(_n)){var r=A(n),i=r>e.Controller.getEnd();(r<0||i)&&(n=S(n,i))}return n}(n);wt(_,"transform","translate"+m("X")+"("+i+"px)"),n!==i&&s(be)}}function S(t,e){var n=t-L(e),r=f();return t-=g(r*(Ft(Wt(n)/r)||1))*(e?1:-1)}function C(){M(E(),!0),r.cancel()}function A(t){for(var n=e.Slides.get(),r=0,i=1/0,o=0;o<n.length;o++){var s=n[o].index,a=Wt(x(s,!0)-t);if(!(a<=i))break;i=a,r=s}return r}function x(e,r){var i=g(d(e-1)-function(t){var e=n.focus;return"center"===e?(h()-u(t,!0))/2:+e*u(t)||0}(e));return r?function(e){n.trimSpace&&t.is(yn)&&(e=Vt(e,0,g(f(!0)-h())));return e}(i):i}function E(){var t=m("left");return xt(_)[t]-xt(v)[t]+g(c(!1))}function L(t){return x(t?e.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){r=e.Transition,o([Qt,ce,le,ae],b)},move:function(t,e,n,i){var o,l;t!==e&&(o=t>n,l=g(S(E(),o)),o?l>=0:l<=_[m("scrollWidth")]-xt(v)[m("width")])&&(C(),M(S(E(),t>n),!0)),a(4),s(te,e,n,t),r.start(e,(function(){a(3),s(ee,e,n,t),i&&i()}))},jump:w,translate:M,shift:S,cancel:C,toIndex:A,toPosition:x,getPosition:E,getLimit:L,exceededLimit:function(t,e){e=$(e)?E():e;var n=!0!==t&&g(e)<g(L(!1)),r=!1!==t&&g(e)>g(L(!0));return n||r},reposition:b}},Controller:function(t,e,n){var r,i,o,s,a=Me(t),l=a.on,u=a.emit,c=e.Move,d=c.getPosition,h=c.getLimit,f=c.toPosition,p=e.Slides,m=p.isEnough,g=p.getLength,y=n.omitEnd,_=t.is(_n),v=t.is(yn),b=z(x,!1),w=z(x,!0),M=n.start||0,S=M;function C(){i=g(!0),o=n.perMove,s=n.perPage,r=T();var t=Vt(M,0,y?r:i-1);t!==M&&(M=t,c.reposition())}function A(){r!==T()&&u(we)}function x(t,e){var n=o||(I()?1:s),i=E(M+n*(t?-1:1),M,!(o||I()));return-1===i&&v&&!Ut(d(),h(!t),1)?t?0:r:e?i:L(i)}function E(e,a,l){if(m()||I()){var u=function(e){if(v&&"move"===n.trimSpace&&e!==M)for(var r=d();r===f(e,!0)&&zt(e,0,t.length-1,!n.rewind);)e<M?--e:++e;return e}(e);u!==e&&(a=e,e=u,l=!1),e<0||e>r?e=o||!zt(0,e,a,!0)&&!zt(r,a,e,!0)?_?l?e<0?-(i%s||s):i:e:n.rewind?e<0?r:0:-1:D(k(e)):l&&e!==a&&(e=D(k(a)+(e<a?-1:1)))}else e=-1;return e}function L(t){return _?(t+i)%i||0:t}function T(){for(var t=i-(I()||_&&o?1:s);y&&t-- >0;)if(f(i-1,!0)!==f(t,!0)){t++;break}return Vt(t,0,i-1)}function D(t){return Vt(I()?t:s*t,0,r)}function k(t){return I()?jt(t,r):Ht((t>=r?i-1:t)/s)}function O(t){t!==M&&(S=M,M=t)}function I(){return!$(n.focus)||n.isNavigation}function N(){return t.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){C(),l([le,ae,we],C),l(ce,A)},go:function(t,e,n){if(!N()){var i=function(t){var e=M;if(Q(t)){var n=t.match(/([+\-<>])(\d+)?/)||[],i=n[1],o=n[2];"+"===i||"-"===i?e=E(M+ +(""+i+(+o||1)),M):">"===i?e=o?D(+o):b(!0):"<"===i&&(e=w(!0))}else e=_?t:Vt(t,0,r);return e}(t),o=L(i);o>-1&&(e||o!==M)&&(O(o),c.move(i,o,S,n))}},scroll:function(t,n,i,o){e.Scroll.scroll(t,n,i,(function(){var t=L(c.toIndex(d()));O(y?jt(t,r):t),o&&o()}))},getNext:b,getPrev:w,getAdjacent:x,getEnd:T,setIndex:O,getIndex:function(t){return t?S:M},toIndex:D,toPage:k,toDest:function(t){var e=c.toIndex(t);return v?Vt(e,0,r):e},hasFocus:I,isBusy:N}},Arrows:function(t,e,n){var r,i,o=Me(t),s=o.on,a=o.bind,l=o.emit,u=n.classes,c=n.i18n,d=e.Elements,h=e.Controller,f=d.arrows,p=d.track,m=f,g=d.prev,y=d.next,_={};function v(){!function(){var t=n.arrows;!t||g&&y||(m=f||bt("div",u.arrows),g=S(!0),y=S(!1),r=!0,lt(m,[g,y]),!f&&ut(m,p));g&&y&&(mt(_,{prev:g,next:y}),Mt(m,t?"":"none"),at(m,i=Ke+"--"+n.direction),t&&(s([Qt,ee,ae,he,we],C),a(y,"click",z(M,">")),a(g,"click",z(M,"<")),C(),vt([g,y],Ie,p.id),l(pe,g,y)))}(),s(le,b)}function b(){w(),v()}function w(){o.destroy(),Ot(m,i),r?(Et(f?[g,y]:m),g=y=null):_t([g,y],ze)}function M(t){h.go(t,!0)}function S(t){return Lt('<button class="'+u.arrow+" "+(t?u.prev:u.next)+'" type="button"><svg xmlns="'+wn+'" viewBox="0 0 '+"40 "+'40" width="'+'40" height="'+'40" focusable="false"><path d="'+(n.arrowPath||Mn)+'" />')}function C(){if(g&&y){var e=t.index,n=h.getPrev(),r=h.getNext(),i=n>-1&&e<n?c.last:c.prev,o=r>-1&&e>r?c.first:c.next;g.disabled=n<0,y.disabled=r<0,vt(g,Re,i),vt(y,Re,o),l("arrows:updated",g,y,n,r)}}return{arrows:_,mount:v,destroy:w,update:C}},Autoplay:function(t,e,n){var r,i,o=Me(t),s=o.on,a=o.bind,l=o.emit,u=Se(n.interval,t.go.bind(t,">"),(function(t){var e=d.bar;e&&wt(e,"width",100*t+"%"),l("autoplay:playing",t)})),c=u.isPaused,d=e.Elements,h=e.Elements,f=h.root,p=h.toggle,m=n.autoplay,g="pause"===m;function y(){c()&&e.Slides.isEnough()&&(u.start(!n.resetProgress),i=r=g=!1,b(),l(ge))}function _(t){void 0===t&&(t=!0),g=!!t,b(),c()||(u.pause(),l(ye))}function v(){g||(r||i?_(!1):y())}function b(){p&&(st(p,on,!g),vt(p,Re,n.i18n[g?"play":"pause"]))}function w(t){var r=e.Slides.getAt(t);u.set(r&&+Ct(r.slide,"data-splide-interval")||n.interval)}return{mount:function(){m&&(!function(){n.pauseOnHover&&a(f,"mouseenter mouseleave",(function(t){r="mouseenter"===t.type,v()}));n.pauseOnFocus&&a(f,"focusin focusout",(function(t){i="focusin"===t.type,v()}));p&&a(p,"click",(function(){g?y():_(!0)}));s([te,de,ae],u.rewind),s(te,w)}(),p&&vt(p,Ie,d.track.id),g||y(),b())},destroy:u.cancel,play:y,pause:_,isPaused:c}},Cover:function(t,e,n){var r=Me(t).on;function i(t){e.Slides.forEach((function(e){var n=ht(e.container||e.slide,"img");n&&n.src&&o(t,n,e)}))}function o(t,e,n){n.style("background",t?'center/cover no-repeat url("'+e.src+'")':"",!0),Mt(e,t?"none":"")}return{mount:function(){n.cover&&(r(_e,z(o,!0)),r([Qt,le,ae],z(i,!0)))},destroy:z(i,!1)}},Scroll:function(t,e,n){var r,i,o=Me(t),s=o.on,a=o.emit,l=t.state.set,u=e.Move,c=u.getPosition,d=u.getLimit,h=u.exceededLimit,f=u.translate,p=t.is(yn),m=1;function g(t,n,o,s,d){var f=c();if(v(),o&&(!p||!h())){var g=e.Layout.sliderSize(),b=qt(t)*g*Ht(Wt(t)/g)||0;t=u.toPosition(e.Controller.toDest(t%g))+b}var w=Ut(f,t,1);m=1,n=w?0:n||Bt(Wt(t-f)/1.5,800),i=s,r=Se(n,y,z(_,f,t,d),1),l(5),a(de),r.start()}function y(){l(3),i&&i(),a(he)}function _(t,e,r,o){var s,a,l=c(),u=(t+(e-t)*(s=o,(a=n.easingFunc)?a(s):1-Math.pow(1-s,4))-l)*m;f(l+u),p&&!r&&h()&&(m*=.6,Wt(u)<10&&g(d(h(!0)),600,!1,i,!0))}function v(){r&&r.cancel()}function b(){r&&!r.isPaused()&&(v(),y())}return{mount:function(){s(te,v),s([le,ae],b)},destroy:v,scroll:g,cancel:b}},Drag:function(t,e,n){var r,i,o,s,a,l,u,c,d=Me(t),h=d.on,f=d.emit,p=d.bind,m=d.unbind,g=t.state,y=e.Move,_=e.Scroll,v=e.Controller,b=e.Elements.track,w=e.Media.reduce,M=e.Direction,S=M.resolve,C=M.orient,A=y.getPosition,x=y.exceededLimit,E=!1;function L(){var t=n.drag;B(!t),s="free"===t}function T(t){if(l=!1,!u){var e=j(t);r=t.target,i=n.noDrag,ct(r,".splide__pagination__page, ."+Je)||i&&ct(r,i)||!e&&t.button||(v.isBusy()?Tt(t,!0):(c=e?b:window,a=g.is([4,5]),o=null,p(c,mn,D,Sn),p(c,gn,k,Sn),y.cancel(),_.cancel(),I(t)))}var r,i}function D(e){if(g.is(6)||(g.set(6),f("drag")),e.cancelable)if(a){y.translate(r+N(e)/(E&&t.is(yn)?5:1));var i=P(e)>200,o=E!==(E=x());(i||o)&&I(e),l=!0,f("dragging"),Tt(e)}else(function(t){return Wt(N(t))>Wt(N(t,!0))})(e)&&(a=function(t){var e=n.dragMinThreshold,r=Z(e),i=r&&e.mouse||0,o=(r?e.touch:+e)||10;return Wt(N(t))>(j(t)?o:i)}(e),Tt(e))}function k(r){g.is(6)&&(g.set(3),f("dragged")),a&&(!function(r){var i=function(e){if(t.is(_n)||!E){var n=P(e);if(n&&n<200)return N(e)/n}return 0}(r),o=function(t){return A()+qt(t)*jt(Wt(t)*(n.flickPower||600),s?1/0:e.Layout.listSize()*(n.flickMaxPages||1))}(i),a=n.rewind&&n.rewindByDrag;w(!1),s?v.scroll(o,0,n.snap):t.is(vn)?v.go(C(qt(i))<0?a?"<":"-":a?">":"+"):t.is(yn)&&E&&a?v.go(x(!0)?">":"<"):v.go(v.toDest(o),!0);w(!0)}(r),Tt(r)),m(c,mn,D),m(c,gn,k),a=!1}function O(t){!u&&l&&Tt(t,!0)}function I(t){o=i,i=t,r=A()}function N(t,e){return Y(t,e)-Y(R(t),e)}function P(t){return It(t)-It(R(t))}function R(t){return i===t&&o||i}function Y(t,e){return(j(t)?t.changedTouches[0]:t)["page"+S(e?"Y":"X")]}function j(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}function B(t){u=t}return{mount:function(){p(b,mn,q,Sn),p(b,gn,q,Sn),p(b,pn,T,Sn),p(b,"click",O,{capture:!0}),p(b,"dragstart",Tt),h([Qt,le],L)},disable:B,isDragging:function(){return a}}},Keyboard:function(t,e,n){var r,i,o=Me(t),s=o.on,a=o.bind,l=o.unbind,u=t.root,c=e.Direction.resolve;function d(){var t=n.keyboard;t&&(r="global"===t?window:u,a(r,xn,p))}function h(){l(r,xn)}function f(){var t=i;i=!0,V((function(){i=t}))}function p(e){if(!i){var n=An(e);n===c(Ce)?t.go("<"):n===c(Ae)&&t.go(">")}}return{mount:function(){d(),s(le,h),s(le,d),s(te,f)},destroy:h,disable:function(t){i=t}}},LazyLoad:function(t,e,n){var r=Me(t),i=r.on,o=r.off,s=r.bind,a=r.emit,l="sequential"===n.lazyLoad,u=[ee,he],c=[];function d(){W(c),e.Slides.forEach((function(t){kt(t.slide,Tn).forEach((function(e){var r=Ct(e,En),i=Ct(e,Ln);if(r!==e.src||i!==e.srcset){var o=n.classes.spinner,s=e.parentElement,a=ht(s,"."+o)||bt("span",o,s);c.push([e,t,a]),e.src||Mt(e,"none")}}))})),l?m():(o(u),i(u,h),h())}function h(){(c=c.filter((function(e){var r=n.perPage*((n.preloadPages||1)+1)-1;return!e[1].isWithin(t.index,r)||f(e)}))).length||o(u)}function f(t){var e=t[0];at(t[1].slide,un),s(e,"load error",z(p,t)),vt(e,"src",Ct(e,En)),vt(e,"srcset",Ct(e,Ln)),_t(e,En),_t(e,Ln)}function p(t,e){var n=t[0],r=t[1];Ot(r.slide,un),"error"!==e.type&&(Et(t[2]),Mt(n,""),a(_e,n,r),a(ue)),l&&m()}function m(){c.length&&f(c.shift())}return{mount:function(){n.lazyLoad&&(d(),i(ae,d))},destroy:z(W,c),check:h}},Pagination:function(t,e,n){var r,i,o=Me(t),s=o.on,a=o.emit,l=o.bind,u=e.Slides,c=e.Elements,d=e.Controller,h=d.hasFocus,f=d.getIndex,p=d.go,m=e.Direction.resolve,g=c.pagination,y=[];function _(){r&&(Et(g?U(r.children):r),Ot(r,i),W(y),r=null),o.destroy()}function v(t){p(">"+t,!0)}function b(t,e){var n=y.length,r=An(e),i=w(),o=-1;r===m(Ae,!1,i)?o=++t%n:r===m(Ce,!1,i)?o=(--t+n)%n:"Home"===r?o=0:"End"===r&&(o=n-1);var s=y[o];s&&(St(s.button),p(">"+o),Tt(e,!0))}function w(){return n.paginationDirection||n.direction}function M(t){return y[d.toPage(t)]}function S(){var t=M(f(!0)),e=M(f());if(t){var n=t.button;Ot(n,on),_t(n,Pe),vt(n,Oe,-1)}if(e){var i=e.button;at(i,on),vt(i,Pe,!0),vt(i,Oe,"")}a("pagination:updated",{list:r,items:y},t,e)}return{items:y,mount:function e(){_(),s([le,ae,we],e);var o=n.pagination;g&&Mt(g,o?"":"none"),o&&(s([te,de,he],S),function(){var e=t.length,o=n.classes,s=n.i18n,a=n.perPage,f=h()?d.getEnd()+1:Ft(e/a);at(r=g||bt("ul",o.pagination,c.track.parentElement),i=tn+"--"+w()),vt(r,ke,"tablist"),vt(r,Re,s.select),vt(r,Be,w()===Le?"vertical":"");for(var p=0;p<f;p++){var m=bt("li",null,r),_=bt("button",{class:o.page,type:"button"},m),M=u.getIn(p).map((function(t){return t.slide.id})),S=!h()&&a>1?s.pageX:s.slideX;l(_,"click",z(v,p)),n.paginationKeyboard&&l(_,"keydown",z(b,p)),vt(m,ke,"presentation"),vt(_,ke,"tab"),vt(_,Ie,M.join(" ")),vt(_,Re,Gt(S,p+1)),vt(_,Oe,-1),y.push({li:m,button:_,page:p})}}(),S(),a("pagination:mounted",{list:r,items:y},M(t.index)))},destroy:_,getAt:M,update:S}},Sync:function(t,e,n){var r=n.isNavigation,i=n.slideFocus,o=[];function s(){var e,n;t.splides.forEach((function(e){e.isParent||(l(t,e.splide),l(e.splide,t))})),r&&(e=Me(t),(n=e.on)(ne,c),n(ve,d),n([Qt,le],u),o.push(e),e.emit(me,t.splides))}function a(){o.forEach((function(t){t.destroy()})),W(o)}function l(t,e){var n=Me(t);n.on(te,(function(t,n,r){e.go(e.is(_n)?r:t)})),o.push(n)}function u(){vt(e.Elements.list,Be,n.direction===Le?"vertical":"")}function c(e){t.go(e.index)}function d(t,e){it(Dn,An(e))&&(c(t),Tt(e))}return{setup:z(e.Media.set,{slideFocus:$(i)?r:i},!0),mount:s,destroy:a,remount:function(){a(),s()}}},Wheel:function(t,e,n){var r=Me(t).bind,i=0;function o(r){if(r.cancelable){var o=r.deltaY,s=o<0,a=It(r),l=n.wheelMinThreshold||0,u=n.wheelSleep||0;Wt(o)>l&&a-i>u&&(t.go(s?"<":">"),i=a),function(r){return!n.releaseWheel||t.state.is(4)||-1!==e.Controller.getAdjacent(r)}(s)&&Tt(r)}}return{mount:function(){n.wheel&&r(e.Elements.track,"wheel",o,Sn)}}},Live:function(t,e,n){var r=Me(t).on,i=e.Elements.track,o=n.live&&!n.isNavigation,s=bt("span","splide__sr"),a=Se(90,z(l,!1));function l(t){vt(i,We,t),t?(lt(i,s),a.start()):(Et(s),a.cancel())}function u(t){o&&vt(i,Fe,t?"off":"polite")}return{mount:function(){o&&(u(!e.Autoplay.isPaused()),vt(i,Ue,!0),s.textContent="…",r(ge,z(u,!0)),r(ye,z(u,!1)),r([ee,he],z(l,!0)))},disable:u,destroy:function(){_t(i,[Fe,Ue,We]),Et(s)}}}}),On={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:fn,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function In(t,e,n){var r=e.Slides;function i(){r.forEach((function(t){t.style("transform","translateX(-"+100*t.index+"%)")}))}return{mount:function(){Me(t).on([Qt,ae],i)},start:function(t,e){r.style("transition","opacity "+n.speed+"ms "+n.easing),V(e)},cancel:q}}function Nn(t,e,n){var r,i=e.Move,o=e.Controller,s=e.Scroll,a=e.Elements.list,l=z(wt,a,"transition");function u(){l(""),s.cancel()}return{mount:function(){Me(t).bind(a,"transitionend",(function(t){t.target===a&&r&&(u(),r())}))},start:function(e,a){var u=i.toPosition(e,!0),c=i.getPosition(),d=function(e){var r=n.rewindSpeed;if(t.is(yn)&&r){var i=o.getIndex(!0),s=o.getEnd();if(0===i&&e>=s||i>=s&&0===e)return r}return n.speed}(e);Wt(u-c)>=1&&d>=1?n.useScroll?s.scroll(u,d,!1,a):(l("transform "+d+"ms "+n.easing),i.translate(u,!0),r=a):(i.jump(e),a())},cancel:u}}var Pn=function(){function t(e,n){var r;this.event=Me(),this.Components={},this.state=(r=1,{set:function(t){r=t},is:function(t){return it(nt(t),r)}}),this.splides=[],this._o={},this._E={};var i=Q(e)?Dt(document,e):e;Yt(i,i+" is invalid."),this.root=i,n=gt({label:Ct(i,Re)||"",labelledby:Ct(i,Ye)||""},On,t.defaults,n||{});try{gt(n,JSON.parse(Ct(i,Rt)))}catch(t){Yt(!1,"Invalid JSON")}this._o=Object.create(gt({},n))}var e,n,r,i=t.prototype;return i.mount=function(t,e){var n=this,r=this.state,i=this.Components;return Yt(r.is([1,7]),"Already mounted!"),r.set(1),this._C=i,this._T=e||this._T||(this.is(vn)?In:Nn),this._E=t||this._E,pt(mt({},kn,this._E,{Transition:this._T}),(function(t,e){var r=t(n,i,n._o);i[e]=r,r.setup&&r.setup()})),pt(i,(function(t){t.mount&&t.mount()}
2)),this.emit(Qt),at(this.root,"is-initialized"),r.set(3),this.emit($t),this},i.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},i.go=function(t){return this._C.Controller.go(t),this},i.on=function(t,e){return this.event.on(t,e),this},i.off=function(t){return this.event.off(t),this},i.emit=function(t){var e;return(e=this.event).emit.apply(e,[t].concat(U(arguments,1))),this},i.add=function(t,e){return this._C.Slides.add(t,e),this},i.remove=function(t){return this._C.Slides.remove(t),this},i.is=function(t){return this._o.type===t},i.refresh=function(){return this.emit(ae),this},i.destroy=function(t){void 0===t&&(t=!0);var e=this.event,n=this.state;return n.is(1)?Me(this).on($t,this.destroy.bind(this,t)):(pt(this._C,(function(e){e.destroy&&e.destroy(t)}),!0),e.emit(fe),e.destroy(),t&&W(this.splides),n.set(7)),this},e=t,n=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}],n&&B(e.prototype,n),r&&B(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Rn=Pn;Rn.defaults={},Rn.STATES=F;n(7579);function Yn(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jn(t){return t instanceof Yn(t).Element||t instanceof Element}function Bn(t){return t instanceof Yn(t).HTMLElement||t instanceof HTMLElement}function Hn(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Yn(t).ShadowRoot||t instanceof ShadowRoot)}var Fn=Math.max,Wn=Math.min,Un=Math.round;function zn(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Vn(){return!/^((?!chrome|android).)*safari/i.test(zn())}function qn(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&Bn(t)&&(i=t.offsetWidth>0&&Un(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Un(r.height)/t.offsetHeight||1);var s=(jn(t)?Yn(t):window).visualViewport,a=!Vn()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,u=(r.top+(a&&s?s.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Gn(t){var e=Yn(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xn(t){return t?(t.nodeName||"").toLowerCase():null}function Zn(t){return((jn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Kn(t){return qn(Zn(t)).left+Gn(t).scrollLeft}function Jn(t){return Yn(t).getComputedStyle(t)}function Qn(t){var e=Jn(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $n(t,e,n){void 0===n&&(n=!1);var r,i,o=Bn(e),s=Bn(e)&&function(t){var e=t.getBoundingClientRect(),n=Un(e.width)/t.offsetWidth||1,r=Un(e.he
vendor: 4,281 bytes, line 2
2ight)/t.offsetHeight||1;return 1!==n||1!==r}(e),a=Zn(e),l=qn(t,s,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==Xn(e)||Qn(a))&&(u=(r=e)!==Yn(r)&&Bn(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Gn(r)),Bn(e)?((c=qn(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=Kn(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function tr(t){var e=qn(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function er(t){return"html"===Xn(t)?t:t.assignedSlot||t.parentNode||(Hn(t)?t.host:null)||Zn(t)}function nr(t){return["html","body","#document"].indexOf(Xn(t))>=0?t.ownerDocument.body:Bn(t)&&Qn(t)?t:nr(er(t))}function rr(t,e){var n;void 0===e&&(e=[]);var r=nr(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=Yn(r),s=i?[o].concat(o.visualViewport||[],Qn(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(rr(er(s)))}function ir(t){return["table","td","th"].indexOf(Xn(t))>=0}function or(t){return Bn(t)&&"fixed"!==Jn(t).position?t.offsetParent:null}function sr(t){for(var e=Yn(t),n=or(t);n&&ir(n)&&"static"===Jn(n).position;)n=or(n);return n&&("html"===Xn(n)||"body"===Xn(n)&&"static"===Jn(n).position)?e:n||function(t){var e=/firefox/i.test(zn());if(/Trident/i.test(zn())&&Bn(t)&&"fixed"===Jn(t).position)return null;var n=er(t);for(Hn(n)&&(n=n.host);Bn(n)&&["html","body"].indexOf(Xn(n))<0;){var r=Jn(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}var ar="top",lr="bottom",ur="right",cr="left",dr="auto",hr=[ar,lr,ur,cr],fr="start",pr="end",mr="viewport",gr="popper",yr=hr.reduce((function(t,e){return t.concat([e+"-"+fr,e+"-"+pr])}),[]),_r=[].concat(hr,[dr]).reduce((function(t,e){return t.concat([e,e+"-"+fr,e+"-"+pr])}),[]),vr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function br(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}var wr={placement:"bottom",modifiers:[],strategy:"absolute"};function Mr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Sr(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?wr:i;return function(t,e,n){void 0===n&&(n=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},wr,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],u=!1,c={state:a,setOptions:function(n){var i="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:jn(t)?rr(t):t.contextElement?rr(t.contextElement):[],popper:rr(e)};var s=function(t){var e=br(t);return vr.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}(function(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(r,a.options.modifiers)));return a.orderedModifiers=s.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var o=i({state:a,name:e,instance:c,options:r}),s=function(){};l.push(o||s)}})),c.update()},forceUpdate:function(){if(!u){var t=a.elements,e=t.reference,n=t.popper;if(Mr(e,n)){a.rects={reference:$n(e,sr(n),"fixed"===a.options.strategy),popper:tr(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options,l=void 0===s?{}:s,d=i.name;
vendor: 4,132 bytes, line 2
2"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:c})||a)}else a.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){c.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(i())}))}))),s}),destroy:function(){d(),u=!0}};if(!Mr(t,e))return c;function d(){l.forEach((function(t){return t()})),l=[]}return c.setOptions(n).then((function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)})),c}}var Cr={passive:!0};const Ar={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=Yn(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach((function(t){t.addEventListener("scroll",n.update,Cr)})),a&&l.addEventListener("resize",n.update,Cr),function(){o&&u.forEach((function(t){t.removeEventListener("scroll",n.update,Cr)})),a&&l.removeEventListener("resize",n.update,Cr)}},data:{}};function xr(t){return t.split("-")[0]}function Er(t){return t.split("-")[1]}function Lr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Tr(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?xr(i):null,s=i?Er(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case ar:e={x:a,y:n.y-r.height};break;case lr:e={x:a,y:n.y+n.height};break;case ur:e={x:n.x+n.width,y:l};break;case cr:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var u=o?Lr(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case fr:e[u]=e[u]-(n[c]/2-r[c]/2);break;case pr:e[u]=e[u]+(n[c]/2-r[c]/2)}}return e}var Dr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,h=s.x,f=void 0===h?0:h,p=s.y,m=void 0===p?0:p,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),v=cr,b=ar,w=window;if(u){var M=sr(n),S="clientHeight",C="clientWidth";if(M===Yn(n)&&"static"!==Jn(M=Zn(n)).position&&"absolute"===a&&(S="scrollHeight",C="scrollWidth"),i===ar||(i===cr||i===ur)&&o===pr)b=lr,m-=(d&&M===w&&w.visualViewport?w.visualViewport.height:M[S])-r.height,m*=l?1:-1;if(i===cr||(i===ar||i===lr)&&o===pr)v=ur,f-=(d&&M===w&&w.visualViewport?w.visualViewport.width:M[C])-r.width,f*=l?1:-1}var A,x=Object.assign({position:a},u&&Dr),E=!0===c?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:Un(e*r)/r||0,y:Un(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=E.x,m=E.y,l?Object.assign({},x,((A={})[b]=_?"0":"",A[v]=y?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",A)):Object.assign({},x,((e={})[b]=_?m+"px":"",e[v]=y?f+"px":"",e.transform="",e))}const Or={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:xr(e.placement),variation:Er(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,kr(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,kr(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};const Ir={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];Bn(i)&&Xn(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left
vendor: 1,112 bytes, line 2
2:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Bn(r)&&Xn(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};const Nr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,s=_r.reduce((function(t,n){return t[n]=function(t,e,n){var r=xr(t),i=[cr,ar].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[cr,ur].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t}),{}),a=s[e.placement],l=a.x,u=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}};
vendor: 2,610 bytes, line 2
2var Pr={left:"right",right:"left",bottom:"top",top:"bottom"};function Rr(t){return t.replace(/left|right|bottom|top/g,(function(t){return Pr[t]}))}var Yr={start:"end",end:"start"};function jr(t){return t.replace(/start|end/g,(function(t){return Yr[t]}))}function Br(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Hn(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hr(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Fr(t,e,n){return e===mr?Hr(function(t,e){var n=Yn(t),r=Zn(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=Vn();(u||!u&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+Kn(t),y:l}}(t,n)):jn(e)?function(t,e){var n=qn(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Hr(function(t){var e,n=Zn(t),r=Gn(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=Fn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Fn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Kn(t),l=-r.scrollTop;return"rtl"===Jn(i||n).direction&&(a+=Fn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Zn(t)))}function Wr(t,e,n,r){var i="clippingParents"===e?function(t){var e=rr(er(t)),n=["absolute","fixed"].indexOf(Jn(t).position)>=0&&Bn(t)?sr(t):t;return jn(n)?e.filter((function(t){return jn(t)&&Br(t,n)&&"body"!==Xn(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce((function(e,n){var i=Fr(t,n,r);return e.top=Fn(i.top,e.top),e.right=Wn(i.right,e.right),e.bottom=Wn(i.bottom,e.bottom),e.left=Fn(i.left,e.left),e}),Fr(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ur(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function zr(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Vr(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?mr:u,d=n.elementContext,h=void 0===d?gr:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=Ur("number"!=typeof g?g:zr(g,hr)),_=h===gr?"reference":gr,v=t.rects.popper,b=t.elements[p?_:h],w=Wr(jn(b)?b:b.contextElement||Zn(t.elements.popper),l,c,s),M=qn(t.elements.reference),S=Tr({reference:M,element:v,strategy:"absolute",placement:i}
vendor: 9,015 bytes, line 2
2),C=Hr(Object.assign({},v,S)),A=h===gr?C:M,x={top:w.top-A.top+y.top,bottom:A.bottom-w.bottom+y.bottom,left:w.left-A.left+y.left,right:A.right-w.right+y.right},E=t.modifiersData.offset;if(h===gr&&E){var L=E[i];Object.keys(x).forEach((function(t){var e=[ur,lr].indexOf(t)>=0?1:-1,n=[ar,lr].indexOf(t)>=0?"y":"x";x[t]+=L[n]*e}))}return x}const qr={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=e.options.placement,y=xr(g),_=l||(y===g||!p?[Rr(g)]:function(t){if(xr(t)===dr)return[];var e=Rr(t);return[jr(t),e,jr(e)]}(g)),v=[g].concat(_).reduce((function(t,n){return t.concat(xr(n)===dr?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?_r:l,c=Er(r),d=c?a?yr:yr.filter((function(t){return Er(t)===c})):hr,h=d.filter((function(t){return u.indexOf(t)>=0}));0===h.length&&(h=d);var f=h.reduce((function(e,n){return e[n]=Vr(t,{placement:n,boundary:i,rootBoundary:o,padding:s})[xr(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),b=e.rects.reference,w=e.rects.popper,M=new Map,S=!0,C=v[0],A=0;A<v.length;A++){var x=v[A],E=xr(x),L=Er(x)===fr,T=[ar,lr].indexOf(E)>=0,D=T?"width":"height",k=Vr(e,{placement:x,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),O=T?L?ur:cr:L?lr:ar;b[D]>w[D]&&(O=Rr(O));var I=Rr(O),N=[];if(o&&N.push(k[E]<=0),a&&N.push(k[O]<=0,k[I]<=0),N.every((function(t){return t}))){C=x,S=!1;break}M.set(x,N)}if(S)for(var P=function(t){var e=v.find((function(e){var n=M.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},R=p?3:1;R>0;R--){if("break"===P(R))break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Gr(t,e,n){return Fn(t,Wn(e,n))}const Xr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,g=Vr(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=xr(e.placement),_=Er(e.placement),v=!_,b=Lr(y),w="x"===b?"y":"x",M=e.modifiersData.popperOffsets,S=e.rects.reference,C=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,x="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(M){if(o){var T,D="y"===b?ar:cr,k="y"===b?lr:ur,O="y"===b?"height":"width",I=M[b],N=I+g[D],P=I-g[k],R=f?-C[O]/2:0,Y=_===fr?S[O]:C[O],j=_===fr?-C[O]:-S[O],B=e.elements.arrow,H=f&&B?tr(B):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=F[D],U=F[k],z=Gr(0,S[O],H[O]),V=v?S[O]/2-R-z-W-x.mainAxis:Y-z-W-x.mainAxis,q=v?-S[O]/2+R+z+U+x.mainAxis:j+z+U+x.mainAxis,G=e.elements.arrow&&sr(e.elements.arrow),X=G?"y"===b?G.clientTop||0:G.clientLeft||0:0,Z=null!=(T=null==E?void 0:E[b])?T:0,K=I+q-Z,J=Gr(f?Wn(N,I+V-Z-X):N,I,f?Fn(P,K):P);M[b]=J,L[b]=J-I}if(a){var Q,$="x"===b?ar:cr,tt="x"===b?lr:ur,et=M[w],nt="y"===w?"height":"width",rt=et+g[$],it=et-g[tt],ot=-1!==[ar,cr].indexOf(y),st=null!=(Q=null==E?void 0:E[w])?Q:0,at=ot?rt:et-S[nt]-C[nt]-st+x.altAxis,lt=ot?et+S[nt]+C[nt]-st-x.altAxis:it,ut=f&&ot?function(t,e,n){var r=Gr(t,e,n);return r>n?n:r}(at,et,lt):Gr(f?at:rt,et,f?lt:it);M[w]=ut,L[w]=ut-et}e.modifiersData[r]=L}},requiresIfExists:["offset"]};const Zr={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=xr(n.placement),l=Lr(a),u=[cr,ur].indexOf(a)>=0?"height":"width";if(o&&s){var c=function(t,e){return Ur("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:zr(t,hr))}(i.padding,n),d=tr(o),h="y"===l?ar:cr,f="y"===l?lr:ur,p=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=sr(o),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=p/2-m/2,v=c[h],b=y-d[u]-c[f],w=y/2-d[u]/2+_,M=Gr(v,w,b),S=l;n.modifiersData[r]=((e={})[S]=M,e.centerOffset=M-w,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Br(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kr(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Jr(t){return[ar,ur,lr,cr].some((function(e){return t[e]>=0}))}var Qr=Sr({defaultModifiers:[Ar,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Tr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Or,Ir,Nr,qr,Xr,Zr,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Vr(e,{elementContext:"reference"}),a=Vr(e,{altBoundary:!0}),l=Kr(s,r),u=Kr(a,i,o),c=Jr(l),d=Jr(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),$r="tippy-content",ti="tippy-backdrop",ei="tippy-arrow",ni="tippy-svg-arrow",ri={passive:!0,capture:!0},ii=function(){return document.body};function oi(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function si(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function ai(t,e){return"function"==typeof t?t.apply(void 0,e):t}function li(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function ui(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function ci(t){return[].concat(t)}function di(t,e){-1===t.indexOf(e)&&t.push(e)}function hi(t){return t.split("-")[0]}function fi(t){return[].slice.call(t)}function pi(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function mi(){return document.createElement("div")}function gi(t){return["Element","Fragment"].some((function(e){return si(t,e)}))}function yi(t){return si(t,"MouseEvent")}function _i(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function vi(t){return gi(t)?[t]:function(t){return si(t,"NodeList")}(t)?fi(t):Array.isArray(t)?t:fi(document.querySelectorAll(t))}function bi(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function wi(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Mi(t){var e,n=ci(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function Si(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function Ci(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Ai={isTouch:!1},xi=0;function Ei(){Ai.isTouch||(Ai.isTouch=!0,window.performance&&document.addEventListener("mousemove",Li))}function Li(){var t=performance.now();t-xi<20&&(Ai.isTouch=!1,document.removeEventListener("mousemove",Li)),xi=t}function Ti(){var t=document.activeElement;if(_i(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Di=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ki={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Oi=Object.assign({appendTo:ii,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ki,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ii=Object.keys(Oi);function Ni(t){var e=(t.plugins||[]).reduce((function(e,n){var r,i=n.name,o=n.defaultValue;
vendor: 9,310 bytes, line 2
2i&&(e[i]=void 0!==t[i]?t[i]:null!=(r=Oi[i])?r:o);return e}),{});return Object.assign({},t,e)}function Pi(t,e){var n=Object.assign({},e,{content:ai(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Ni(Object.assign({},Oi,{plugins:e}))):Ii).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Oi.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Ri(t,e){t.innerHTML=e}function Yi(t){var e=mi();return!0===t?e.className=ei:(e.className=ni,gi(t)?e.appendChild(t):Ri(e,t)),e}function ji(t,e){gi(e.content)?(Ri(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Ri(t,e.content):t.textContent=e.content)}function Bi(t){var e=t.firstElementChild,n=fi(e.children);return{box:e,content:n.find((function(t){return t.classList.contains($r)})),arrow:n.find((function(t){return t.classList.contains(ei)||t.classList.contains(ni)})),backdrop:n.find((function(t){return t.classList.contains(ti)}))}}function Hi(t){var e=mi(),n=mi();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=mi();function i(n,r){var i=Bi(e),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||ji(s,t.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(Yi(r.arrow))):o.appendChild(Yi(r.arrow)):a&&o.removeChild(a)}return r.className=$r,r.setAttribute("data-state","hidden"),ji(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}Hi.$$tippy=!0;var Fi=1,Wi=[],Ui=[];function zi(t,e){var n,r,i,o,s,a,l,u,c=Pi(t,Object.assign({},Oi,Ni(pi(e)))),d=!1,h=!1,f=!1,p=!1,m=[],g=li(G,c.interactiveDebounce),y=Fi++,_=(u=c.plugins).filter((function(t,e){return u.indexOf(t)===e})),v={id:y,reference:t,popper:mi(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:_,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(e){0;if(v.state.isDestroyed)return;I("onBeforeUpdate",[v,e]),V();var n=v.props,r=Pi(t,Object.assign({},n,pi(e),{ignoreAttributes:!0}));v.props=r,z(),n.interactiveDebounce!==r.interactiveDebounce&&(R(),g=li(G,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?ci(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");P(),O(),M&&M(n,r);v.popperInstance&&(J(),$().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[v,e])},setContent:function(t){v.setProps({content:t})},show:function(){0;var t=v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,r=Ai.isTouch&&!v.props.touch,i=oi(v.props.duration,0,Oi.duration);if(t||e||n||r)return;if(L().hasAttribute("disabled"))return;if(I("onShow",[v],!1),!1===v.props.onShow(v))return;v.state.isVisible=!0,E()&&(w.style.visibility="visible");O(),H(),v.state.isMounted||(w.style.transition="none");if(E()){var o=D(),s=o.box,l=o.content;bi([s,l],0)}a=function(){var t;if(v.state.isVisible&&!p){if(p=!0,w.offsetHeight,w.style.transition=v.props.moveTransition,E()&&v.props.animation){var e=D(),n=e.box,r=e.content;bi([n,r],i),wi([n,r],"visible")}N(),P(),di(Ui,v),null==(t=v.popperInstance)||t.forceUpdate(),I("onMount",[v]),v.props.animation&&E()&&function(t,e){W(t,e)}(i,(function(){v.state.isShown=!0,I("onShown",[v])}))}},function(){var t,e=v.props.appendTo,n=L();t=v.props.interactive&&e===ii||"parent"===e?n.parentNode:ai(e,[n]);t.contains(w)||t.appendChild(w);v.state.isMounted=!0,J(),!1}()},hide:function(){0;var t=!v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,r=oi(v.props.duration,1,Oi.duration);if(t||e||n)return;if(I("onHide",[v],!1),!1===v.props.onHide(v))return;v.state.isVisible=!1,v.state.isShown=!1,p=!1,d=!1,E()&&(w.style.visibility="hidden");if(R(),F(),O(!0),E()){var i=D(),o=i.box,s=i.content;v.props.animation&&(bi([o,s],r),wi([o,s],"hidden"))}N(),P(),v.props.animation?E()&&function(t,e){W(t,(function(){!v.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&e()}))}(r,v.unmount):v.unmount()},hideWithInteractivity:function(t){0;T().addEventListener("mousemove",g),di(Wi,g),g(t)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){0;v.state.isVisible&&v.hide();if(!v.state.isMounted)return;Q(),$().forEach((function(t){t._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Ui=Ui.filter((function(t){return t!==v})),v.state.isMounted=!1,I("onHidden",[v])},destroy:function(){0;if(v.state.isDestroyed)return;v.clearDelayTimeouts(),v.unmount(),V(),delete t._tippy,v.state.isDestroyed=!0,I("onDestroy",[v])}};if(!c.render)return v;var b=c.render(v),w=b.popper,M=b.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+v.id,v.popper=w,t._tippy=v,w._tippy=v;var S=_.map((function(t){return t.fn(v)})),C=t.hasAttribute("aria-expanded");return z(),P(),O(),I("onCreate",[v]),c.showOnCreate&&tt(),w.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",g)})),v;function A(){var t=v.props.touch;return Array.isArray(t)?t:[t,0]}function x(){return"hold"===A()[0]}function E(){var t;return!(null==(t=v.props.render)||!t.$$tippy)}function L(){return l||t}function T(){var t=L().parentNode;return t?Mi(t):document}function D(){return Bi(w)}function k(t){return v.state.isMounted&&!v.state.isVisible||Ai.isTouch||o&&"focus"===o.type?0:oi(v.props.delay,t?0:1,Oi.delay)}function O(t){void 0===t&&(t=!1),w.style.pointerEvents=v.props.interactive&&!t?"":"none",w.style.zIndex=""+v.props.zIndex}function I(t,e,n){var r;(void 0===n&&(n=!0),S.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=v.props)[t].apply(r,e)}function N(){var e=v.props.aria;if(e.content){var n="aria-"+e.content,r=w.id;ci(v.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(v.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function P(){!C&&v.props.aria.expanded&&ci(v.props.triggerTarget||t).forEach((function(t){v.props.interactive?t.setAttribute("aria-expanded",v.state.isVisible&&t===L()?"true":"false"):t.removeAttribute("aria-expanded")}))}function R(){T().removeEventListener("mousemove",g),Wi=Wi.filter((function(t){return t!==g}))}function Y(e){if(!Ai.isTouch||!f&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!v.props.interactive||!Ci(w,n)){if(ci(v.props.triggerTarget||t).some((function(t){return Ci(t,n)}))){if(Ai.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[v,e]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),h=!0,setTimeout((function(){h=!1})),v.state.isMounted||F())}}}function j(){f=!0}function B(){f=!1}function H(){var t=T();t.addEventListener("mousedown",Y,!0),t.addEventListener("touchend",Y,ri),t.addEventListener("touchstart",B,ri),t.addEventListener("touchmove",j,ri)}function F(){var t=T();t.removeEventListener("mousedown",Y,!0),t.removeEventListener("touchend",Y,ri),t.removeEventListener("touchstart",B,ri),t.removeEventListener("touchmove",j,ri)}function W(t,e){var n=D().box;function r(t){t.target===n&&(Si(n,"remove",r),e())}if(0===t)return e();Si(n,"remove",s),Si(n,"add",r),s=r}function U(e,n,r){void 0===r&&(r=!1),ci(v.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),m.push({node:t,eventType:e,handler:n,options:r})}))}function z(){var t;x()&&(U("touchstart",q,{passive:!0}),U("touchend",X,{passive:!0})),(t=v.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(U(t,q),t){case"mouseenter":U("mouseleave",X);break;case"focus":U(Di?"focusout":"blur",Z);break;case"focusin":U("focusout",Z)}}))}function V(){m.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),m=[]}function q(t){var e,n=!1;if(v.state.isEnabled&&!K(t)&&!h){var r="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,P(),!v.state.isVisible&&yi(t)&&Wi.forEach((function(e){return e(t)})),"click"===t.type&&(v.props.trigger.indexOf("mouseenter")<0||d)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:tt(t),"click"===t.type&&(d=!n),n&&!r&&et(t)}}function G(t){var e=t.target,n=L().contains(e)||w.contains(e);if("mousemove"!==t.type||!n){var r=$().concat(w).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:c}:null}
2)).filter(Boolean);(function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,s=hi(i.placement),a=i.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,d="left"===s?a.right.x:0,h=e.top-r+l>o,f=r-e.bottom-u>o,p=e.left-n+c>o,m=n-e.right-d>o;return h||f||p||m}))})(r,t)&&(R(),et(t))}}function X(t){K(t)||v.props.trigger.indexOf("click")>=0&&d||(v.props.interactive?v.hideWithInteractivity(t):et(t))}function Z(t){v.props.trigger.indexOf("focusin")<0&&t.target!==L()||v.props.interactive&&t.relatedTarget&&w.contains(t.relatedTarget)||et(t)}function K(t){return!!Ai.isTouch&&x()!==t.type.indexOf("touch")>=0}function J(){Q();var e=v.props,n=e.popperOptions,r=e.placement,i=e.offset,o=e.getReferenceClientRect,s=e.moveTransition,l=E()?Bi(w).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||L()}:t,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},c];E()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Qr(u,w,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:d}))}function Q(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function $(){return fi(w.querySelectorAll("[data-tippy-root]"))}function tt(t){v.clearDelayTimeouts(),t&&I("onTrigger",[v,t]),H();var e=k(!0),r=A(),i=r[0],o=r[1];Ai.isTouch&&"hold"===i&&o&&(e=o),e?n=setTimeout((function(){v.show()}),e):v.show()}function et(t){if(v.clearDelayTimeouts(),I("onUntrigger",[v,t]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&d)){var e=k(!1);e?r=setTimeout((function(){v.state.isVisible&&v.hide()}),e):i=requestAnimationFrame((function(){v.hide()}))}}else F()}}function Vi(t,e){void 0===e&&(e={});var n=Oi.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Ei,ri),window.addEventListener("blur",Ti);var r=Object.assign({},e,{plugins:n}),i=vi(t).reduce((function(t,e){var n=e&&zi(e,r);return n&&t.push(n),t}),[]);return gi(t)?i[0]:i}Vi.defaultProps=Oi,Vi.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Oi[e]=t[e]}))},Vi.currentInput=Ai;Object.assign({},Ir,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});var qi={mouseover:"mouseenter",focusin:"focus",click:"click"};Vi.setDefaultProps({render:Hi});var Gi=n(3379),Xi=n.n(Gi),Zi=n(1126),Ki={insert:"head",singleton:!1};Xi()(Zi.Z,Ki);Zi.Z.locals;var Ji,Qi=n(4238),$i=n(8840),to=n.n($i);!function(t){t[t.QR_CODE=0]="QR_CODE",t[t.AZTEC=1]="AZTEC",t[t.CODABAR=2]="CODABAR",t[t.CODE_39=3]="CODE_39",t[t.CODE_93=4]="CODE_93",t[t.CODE_128=5]="CODE_128",t[t.DATA_MATRIX=6]="DATA_MATRIX",t[t.MAXICODE=7]="MAXICODE",t[t.ITF=8]="ITF",t[t.EAN_13=9]="EAN_13",t[t.EAN_8=10]="EAN_8",t[t.PDF_417=11]="PDF_417",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(Ji||(Ji={}));var eo,no,ro=new Map([[Ji.QR_CODE,"QR_CODE"],[Ji.AZTEC,"AZTEC"],[Ji.CODABAR,"CODABAR"],[Ji.CODE_39,"CODE_39"],[Ji.CODE_93,"CODE_93"],[Ji.CODE_128,"CODE_128"],[Ji.DATA_MATRIX,"DATA_MATRIX"],[Ji.MAXICODE,"MAXICODE"],[Ji.ITF,"ITF"],[Ji.EAN_13,"EAN_13"],[Ji.EAN_8,"EAN_8"],[Ji.PDF_417,"PDF_417"],[Ji.RSS_14,"RSS_14"],[Ji.RSS_EXPANDED,"RSS_EXPANDED"],[Ji.UPC_A,"UPC_A"],[Ji.UPC_E,"UPC_E"],[Ji.UPC_EAN_EXTENSION,"UPC_EAN_EXTENSION"]]);function io(t){return Object.values(Ji).includes(t)}!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.URL=1]="URL"}(eo||(eo={})),function(t){t[t.SCAN_TYPE_CAMERA=0]="SCAN_TYPE_CAMERA",t[t.SCAN_TYPE_FILE=1]="SCAN_TYPE_FILE"}(no||(no={}));var oo,so=function(){function t(){}return t.GITHUB_PROJECT_URL="https://github.com/mebjas/html5-qrcode",t.SCAN_DEFAULT_FPS=2,t.DEFAULT_DISABLE_FLIP=!1,t.DEFAULT_REMEMBER_LAST_CAMERA_USED=!0,t.DEFAULT_SUPPORTED_SCAN_TYPE=[no.SCAN_TYPE_CAMERA,no.SCAN_TYPE_FILE],t}(),ao=function(){function t(t,e){this.format=t,this.formatName=e}return t.prototype.toString=function(){return this.formatName},t.create=function(e){if(!ro.has(e))throw e+" not in html5QrcodeSupportedFormatsTextMap";return new t(e,ro.get(e))},t}(),lo=function(){function t(){}return t.createFromText=function(t){return{decodedText:t,result:{text:t}}},t.createFromQrcodeResult=function(t){return{decodedText:t.text,result:t}},t}();!function(t){t[t.UNKWOWN_ERROR=0]="UNKWOWN_ERROR",t[t.IMPLEMENTATION_ERROR=1]="IMPLEMENTATION_ERROR",t[t.NO_CODE_FOUND_ERROR=2]="NO_CODE_FOUND_ERROR"}(oo||(oo={}));var uo=function(){function t(){}return t.createFrom=function(t){return{errorMessage:t,type:oo.UNKWOWN_ERROR}},t}(),co=function(){function t(t){this.verbose=t}return t.prototype.log=function(t){this.verbose&&console.log(t)},t.prototype.warn=function(t){this.verbose&&console.warn(t)},t.prototype.logError=function(t,e){(this.verbose||!0===e)&&console.error(t)},t.prototype.logErrors=function(t){if(0===t.length)throw"Logger#logError called without arguments";this.verbose&&console.error(t)},t}();function ho(t){return null==t}var fo,po,mo=function(){function t(){}return t.codeParseError=function(t){return"QR code parse error, error = "+t},t.errorGettingUserMedia=function(t){return"Error getting userMedia, error = "+t},t.onlyDeviceSupportedError=function(){return"The device doesn't support navigator.mediaDevices , only supported cameraIdOrConfig in this case is deviceId parameter (string)."},t.cameraStreamingNotSupported=function(){return"Camera streaming not supported by the browser."},t.unableToQuerySupportedDevices=function(){return"Unable to query supported devices, unknown error."},t.insecureContextCameraQueryError=function(){return"Camera access is only supported in secure context like https or localhost."},t}(),go=function(){function t(){}return t.scanningStatus=function(){return"Scanning"},t.idleStatus=function(){return"Idle"},t.errorStatus=function(){return"Error"},t.permissionStatus=function(){return"Permission"},t.noCameraFoundErrorStatus=function(){return"No Cameras"},t.lastMatch=function(t){return"Last Match: "+t},t.codeScannerTitle=function(){return"Code Scanner"},t.cameraPermissionTitle=function(){return"Request Camera Permissions"},t.cameraPermissionRequesting=function(){return"Requesting camera permissions..."},t.noCameraFound=function(){return"No camera found"},t.scanButtonStopScanningText=function(){return"Stop Scanning"}
2,t.scanButtonStartScanningText=function(){return"Start Scanning"},t.torchOnButton=function(){return"Switch On Torch"},t.torchOffButton=function(){return"Switch Off Torch"},t.torchOnFailedMessage=function(){return"Failed to turn on torch"},t.torchOffFailedMessage=function(){return"Failed to turn off torch"},t.scanButtonScanningStarting=function(){return"Launching Camera..."},t.textIfCameraScanSelected=function(){return"Scan an Image File"},t.textIfFileScanSelected=function(){return"Scan using camera directly"},t.selectCamera=function(){return"Select Camera"},t.fileSelectionChooseImage=function(){return"Choose Image"},t.fileSelectionChooseAnother=function(){return"Choose Another"},t.fileSelectionNoImageSelected=function(){return"No image choosen"},t.anonymousCameraPrefix=function(){return"Anonymous Camera"},t.dragAndDropMessage=function(){return"Or drop an image to scan"},t.dragAndDropMessageOnlyImages=function(){return"Or drop an image to scan (other files not supported)"},t.zoom=function(){return"zoom"},t.loadingImage=function(){return"Loading image..."},t}(),yo=function(){function t(){}return t.poweredBy=function(){return"Powered by "},t.reportIssues=function(){return"Report issues"},t}(),_o=function(){function t(){}return t.isMediaStreamConstraintsValid=function(t,e){if("object"!=typeof t){var n=typeof t;return e.logError("videoConstraints should be of type object, the object passed is of type "+n+".",!0),!1}for(var r=new Set(["autoGainControl","channelCount","echoCancellation","latency","noiseSuppression","sampleRate","sampleSize","volume"]),i=0,o=Object.keys(t);i<o.length;i++){var s=o[i];if(r.has(s))return e.logError(s+" is not supported videoConstaints.",!0),!1}return!0},t}(),vo=n(6817),bo=function(){function t(t,e,n){if(this.formatMap=new Map([[Ji.QR_CODE,vo.BarcodeFormat.QR_CODE],[Ji.AZTEC,vo.BarcodeFormat.AZTEC],[Ji.CODABAR,vo.BarcodeFormat.CODABAR],[Ji.CODE_39,vo.BarcodeFormat.CODE_39],[Ji.CODE_93,vo.BarcodeFormat.CODE_93],[Ji.CODE_128,vo.BarcodeFormat.CODE_128],[Ji.DATA_MATRIX,vo.BarcodeFormat.DATA_MATRIX],[Ji.MAX
vendor: 24,113 bytes, line 2
2ICODE,vo.BarcodeFormat.MAXICODE],[Ji.ITF,vo.BarcodeFormat.ITF],[Ji.EAN_13,vo.BarcodeFormat.EAN_13],[Ji.EAN_8,vo.BarcodeFormat.EAN_8],[Ji.PDF_417,vo.BarcodeFormat.PDF_417],[Ji.RSS_14,vo.BarcodeFormat.RSS_14],[Ji.RSS_EXPANDED,vo.BarcodeFormat.RSS_EXPANDED],[Ji.UPC_A,vo.BarcodeFormat.UPC_A],[Ji.UPC_E,vo.BarcodeFormat.UPC_E],[Ji.UPC_EAN_EXTENSION,vo.BarcodeFormat.UPC_EAN_EXTENSION]]),this.reverseFormatMap=this.createReverseFormatMap(),!vo)throw"Use html5qrcode.min.js without edit, ZXing not found.";this.verbose=e,this.logger=n;var r=this.createZXingFormats(t),i=new Map;i.set(vo.DecodeHintType.POSSIBLE_FORMATS,r),i.set(vo.DecodeHintType.TRY_HARDER,!1),this.hints=i}return t.prototype.decodeAsync=function(t){var e=this;return new Promise((function(n,r){try{n(e.decode(t))}catch(t){r(t)}}))},t.prototype.decode=function(t){var e=new vo.MultiFormatReader(this.verbose,this.hints),n=new vo.HTMLCanvasElementLuminanceSource(t),r=new vo.BinaryBitmap(new vo.HybridBinarizer(n)),i=e.decode(r);return{text:i.text,format:ao.create(this.toHtml5QrcodeSupportedFormats(i.format)),debugData:this.createDebugData()}},t.prototype.createReverseFormatMap=function(){var t=new Map;return this.formatMap.forEach((function(e,n,r){t.set(e,n)})),t},t.prototype.toHtml5QrcodeSupportedFormats=function(t){if(!this.reverseFormatMap.has(t))throw"reverseFormatMap doesn't have "+t;return this.reverseFormatMap.get(t)},t.prototype.createZXingFormats=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n];this.formatMap.has(i)?e.push(this.formatMap.get(i)):this.logger.logError(i+" is not supported byZXingHtml5QrcodeShim")}return e},t.prototype.createDebugData=function(){return{decoderName:"zxing-js"}},t}(),wo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},Mo=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},So=function(){function t(e,n,r){if(this.formatMap=new Map([[Ji.QR_CODE,"qr_code"],[Ji.AZTEC,"aztec"],[Ji.CODABAR,"codabar"],[Ji.CODE_39,"code_39"],[Ji.CODE_93,"code_93"],[Ji.CODE_128,"code_128"],[Ji.DATA_MATRIX,"data_matrix"],[Ji.ITF,"itf"],[Ji.EAN_13,"ean_13"],[Ji.EAN_8,"ean_8"],[Ji.PDF_417,"pdf417"],[Ji.UPC_A,"upc_a"],[Ji.UPC_E,"upc_e"]]),this.reverseFormatMap=this.createReverseFormatMap(),!t.isSupported())throw"Use html5qrcode.min.js without edit, Use BarcodeDetectorDelegate only if it isSupported();";this.verbose=n,this.logger=r;var i=this.createBarcodeDetectorFormats(e);if(this.detector=new BarcodeDetector(i),!this.detector)throw"BarcodeDetector detector not supported"}return t.isSupported=function(){return"BarcodeDetector"in window&&void 0!==new BarcodeDetector({formats:["qr_code"]})},t.prototype.decodeAsync=function(t){return wo(this,void 0,void 0,(function(){var e,n;return Mo(this,(function(r){switch(r.label){case 0:return[4,this.detector.detect(t)];case 1:if(!(e=r.sent())||0===e.length)throw"No barcode or QR code detected.";return[2,{text:(n=this.selectLargestBarcode(e)).rawValue,format:ao.create(this.toHtml5QrcodeSupportedFormats(n.format)),debugData:this.createDebugData()}]}}))}))},t.prototype.selectLargestBarcode=function(t){for(var e=null,n=0,r=0,i=t;r<i.length;r++){var o=i[r],s=o.boundingBox.width*o.boundingBox.height;s>n&&(n=s,e=o)}if(!e)throw"No largest barcode found";return e},t.prototype.createBarcodeDetectorFormats=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n];this.formatMap.has(i)?e.push(this.formatMap.get(i)):this.logger.warn(i+" is not supported byBarcodeDetectorDelegate")}return{formats:e}},t.prototype.toHtml5QrcodeSupportedFormats=function(t){if(!this.reverseFormatMap.has(t))throw"reverseFormatMap doesn't have "+t;return this.reverseFormatMap.get(t)},t.prototype.createReverseFormatMap=function(){var t=new Map;return this.formatMap.forEach((function(e,n,r){t.set(e,n)})),t},t.prototype.createDebugData=function(){return{decoderName:"BarcodeDetector"}},t}(),Co=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},Ao=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},xo=function(){function t(t,e,n,r){this.EXECUTIONS_TO_REPORT_PERFORMANCE=100,this.executions=0,this.executionResults=[],this.wasPrimaryDecoderUsedInLastDecode=!1,this.verbose=n,e&&So.isSupported()?(this.primaryDecoder=new So(t,n,r),this.secondaryDecoder=new bo(t,n,r)):this.primaryDecoder=new bo(t,n,r)}return t.prototype.decodeAsync=function(t){return Co(this,void 0,void 0,(function(){var e;return Ao(this,(function(n){switch(n.label){case 0:e=performance.now(),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,this.getDecoder().decodeAsync(t)];case 2:return[2,n.sent()];case 3:return this.possiblyLogPerformance(e),[7];case 4:return[2]}}))}))},t.prototype.decodeRobustlyAsync=function(t){return Co(this,void 0,void 0,(function(){var e,n;return Ao(this,(function(r){switch(r.label){case 0:e=performance.now(),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,this.primaryDecoder.decodeAsync(t)];case 2:return[2,r.sent()];case 3:if(n=r.sent(),this.secondaryDecoder)return[2,this.secondaryDecoder.decodeAsync(t)];throw n;case 4:return this.possiblyLogPerformance(e),[7];case 5:return[2]}}))}))},t.prototype.getDecoder=function(){return this.secondaryDecoder?!1===this.wasPrimaryDecoderUsedInLastDecode?(this.wasPrimaryDecoderUsedInLastDecode=!0,this.primaryDecoder):(this.wasPrimaryDecoderUsedInLastDecode=!1,this.secondaryDecoder):this.primaryDecoder},t.prototype.possiblyLogPerformance=function(t){if(this.verbose){var e=performance.now()-t;this.executionResults.push(e),this.executions++,this.possiblyFlushPerformanceReport()}},t.prototype.possiblyFlushPerformanceReport=function(){if(!(this.executions<this.EXECUTIONS_TO_REPORT_PERFORMANCE)){for(var t=0,e=0,n=this.executionResults;e<n.length;e++){t+=n[e]}var r=t/this.executionResults.length;console.log(r+" ms for "+this.executionResults.length+" last runs."),this.executions=0,this.executionResults=[]}},t}(),Eo=(fo=function(t,e){return fo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},fo(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}fo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Lo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},To=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Do=function(){function t(t,e){this.name=t,this.track=e}return t.prototype.isSupported=function(){return!!this.track.getCapabilities&&this.name in this.track.getCapabilities()},t.prototype.apply=function(t){var e={};e[this.name]=t;var n={advanced:[e]};return this.track.applyConstraints(n)},t.prototype.value=function(){var t=this.track.getSettings();return this.name in t?t[this.name]:null},t}(),ko=function(t){function e(e){return t.call(this,"zoom",e)||this}return Eo(e,t),e}(function(t){function e(e,n){return t.call(this,e,n)||this}return Eo(e,t),e.prototype.min=function(){return this.getCapabilities().min},e.prototype.max=function(){return this.getCapabilities().max},e.prototype.step=function(){return this.getCapabilities().step},e.prototype.apply=function(t){var e={};e[this.name]=t;var n={advanced:[e]};return this.track.applyConstraints(n)},e.prototype.getCapabilities=function(){this.failIfNotSupported();var t=this.track.getCapabilities()[this.name];return{min:t.min,max:t.max,step:t.step}},e.prototype.failIfNotSupported=function(){if(!this.isSupported())throw new Error(this.name+" capability not supported")},e}(Do)),Oo=function(t){function e(e){return t.call(this,"torch",e)||this}return Eo(e,t),e}(Do),Io=function(){function t(t){this.track=t}return t.prototype.zoomFeature=function(){return new ko(this.track)},t.prototype.torchFeature=function(){return new Oo(this.track)},t}(),No=function(){function t(t,e,n){this.isClosed=!1,this.parentElement=t,this.mediaStream=e,this.callbacks=n,this.surface=this.createVideoElement(this.parentElement.clientWidth),t.append(this.surface)}return t.prototype.createVideoElement=function(t){var e=document.createElement("video");return e.style.width=t+"px",e.style.display="block",e.muted=!0,e.setAttribute("muted","true"),e.playsInline=!0,e},t.prototype.setupSurface=function(){var t=this;this.surface.onabort=function(){throw"RenderedCameraImpl video surface onabort() called"},this.surface.onerror=function(){throw"RenderedCameraImpl video surface onerror() called"};var e=function(){var n=t.surface.clientWidth,r=t.surface.clientHeight;t.callbacks.onRenderSurfaceReady(n,r),t.surface.removeEventListener("playing",e)};this.surface.addEventListener("playing",e),this.surface.srcObject=this.mediaStream,this.surface.play()},t.create=function(e,n,r,i){return Lo(this,void 0,void 0,(function(){var o,s;return To(this,(function(a){switch(a.label){case 0:return o=new t(e,n,i),r.aspectRatio?(s={aspectRatio:r.aspectRatio},[4,o.getFirstTrackOrFail().applyConstraints(s)]):[3,2];case 1:a.sent(),a.label=2;case 2:return o.setupSurface(),[2,o]}}))}))},t.prototype.failIfClosed=function(){if(this.isClosed)throw"The RenderedCamera has already been closed."},t.prototype.getFirstTrackOrFail=function(){if(this.failIfClosed(),0===this.mediaStream.getVideoTracks().length)throw"No video tracks found";return this.mediaStream.getVideoTracks()[0]},t.prototype.pause=function(){this.failIfClosed(),this.surface.pause()},t.prototype.resume=function(t){this.failIfClosed();var e=this,n=function(){setTimeout(t,200),e.surface.removeEventListener("playing",n)};this.surface.addEventListener("playing",n),this.surface.play()},t.prototype.isPaused=function(){return this.failIfClosed(),this.surface.paused},t.prototype.getSurface=function(){return this.failIfClosed(),this.surface},t.prototype.getRunningTrackCapabilities=function(){return this.getFirstTrackOrFail().getCapabilities()},t.prototype.getRunningTrackSettings=function(){return this.getFirstTrackOrFail().getSettings()},t.prototype.applyVideoConstraints=function(t){return Lo(this,void 0,void 0,(function(){return To(this,(function(e){if("aspectRatio"in t)throw"Changing 'aspectRatio' in run-time is not yet supported.";return[2,this.getFirstTrackOrFail().applyConstraints(t)]}))}))},t.prototype.close=function(){if(this.isClosed)return Promise.resolve();var t=this;return new Promise((function(e,n){var r=t.mediaStream.getVideoTracks().length,i=0;t.mediaStream.getVideoTracks().forEach((function(n){t.mediaStream.removeTrack(n),n.stop(),++i>=r&&(t.isClosed=!0,t.parentElement.removeChild(t.surface),e())}))}))},t.prototype.getCapabilities=function(){return new Io(this.getFirstTrackOrFail())},t}(),Po=function(){function t(t){this.mediaStream=t}return t.prototype.render=function(t,e,n){return Lo(this,void 0,void 0,(function(){return To(this,(function(r){return[2,No.create(t,this.mediaStream,e,n)]}))}))},t.create=function(e){return Lo(this,void 0,void 0,(function(){var n;return To(this,(function(r){switch(r.label){case 0:if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return n={audio:!1,video:e},[4,navigator.mediaDevices.getUserMedia(n)];case 1:return[2,new t(r.sent())]}}))}))},t}(),Ro=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},Yo=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},jo=function(){function t(){}return t.failIfNotSupported=function(){return Ro(this,void 0,void 0,(function(){return Yo(this,(function(e){if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return[2,new t]}))}))},t.prototype.create=function(t){return Ro(this,void 0,void 0,(function(){return Yo(this,(function(e){return[2,Po.create(t)]}))}))},t}(),Bo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},Ho=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Fo=function(){function t(){}return t.retrieve=function(){if(navigator.mediaDevices)return t.getCamerasFromMediaDevices();var e=MediaStreamTrack;return MediaStreamTrack&&e.getSources?t.getCamerasFromMediaStreamTrack():t.rejectWithError()},t.rejectWithError=function(){var e=mo.unableToQuerySupportedDevices();return t.isHttpsOrLocalhost()||(e=mo.insecureContextCameraQueryError()),Promise.reject(e)},t.isHttpsOrLocalhost=function(){if("https:"===location.protocol)return!0;var t=location.host.split(":")[0];return"127.0.0.1"===t||"localhost"===t},t.getCamerasFromMediaDevices=function(){return Bo(this,void 0,void 0,(function(){var t,e,n,r,i,o,s;return Ho(this,(function(a){switch(a.label){case 0:return t=function(t){for(var e=0,n=t.getVideoTracks();e<n.length;e++){var r=n[e];r.enabled=!1,r.stop(),t.removeTrack(r)}},[4,navigator.mediaDevices.getUserMedia({audio:!1,video:!0})];case 1:return e=a.sent(),[4,navigator.mediaDevices.enumerateDevices()];case 2:for(n=a.sent(),r=[],i=0,o=n;i<o.length;i++)"videoinput"===(s=o[i]).kind&&r.push({id:s.deviceId,label:s.label});return t(e),[2,r]}}))}))},t.getCamerasFromMediaStreamTrack=function(){return new Promise((function(t,e){MediaStreamTrack.getSources((function(e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];"video"===o.kind&&n.push({id:o.id,label:o.label})}t(n)}))}))},t}();!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.NOT_STARTED=1]="NOT_STARTED",t[t.SCANNING=2]="SCANNING",t[t.PAUSED=3]="PAUSED"}(po||(po={}));var Wo,Uo=function(){function t(){this.state=po.NOT_STARTED,this.onGoingTransactionNewState=po.UNKNOWN}return t.prototype.directTransition=function(t){this.failIfTransitionOngoing(),this.validateTransition(t),this.state=t},t.prototype.startTransition=function(t){return this.failIfTransitionOngoing(),this.validateTransition(t),this.onGoingTransactionNewState=t,this},t.prototype.execute=function(){if(this.onGoingTransactionNewState===po.UNKNOWN)throw"Transaction is already cancelled, cannot execute().";var t=this.onGoingTransactionNewState;this.onGoingTransactionNewState=po.UNKNOWN,this.directTransition(t)},t.prototype.cancel=function(){if(this.onGoingTransactionNewState===po.UNKNOWN)throw"Transaction is already cancelled, cannot cancel().";this.onGoingTransactionNewState=po.UNKNOWN},t.prototype.getState=function(){return this.state},t.prototype.failIfTransitionOngoing=function(){if(this.onGoingTransactionNewState!==po.UNKNOWN)throw"Cannot transition to a new state, already under transition"},t.prototype.validateTransition=function(t){switch(this.state){case po.UNKNOWN:throw"Transition from unknown is not allowed";case po.NOT_STARTED:this.failIfNewStateIs(t,[po.PAUSED]);case po.SCANNING:case po.PAUSED:}},t.prototype.failIfNewStateIs=function(t,e){for(var n=0,r=e;n<r.length;n++){if(t===r[n])throw"Cannot transition from "+this.state+" to "+t}},t}(),zo=function(){function t(t){this.stateManager=t}return t.prototype.startTransition=function(t){return this.stateManager.startTransition(t)},t.prototype.directTransition=function(t){this.stateManager.directTransition(t)},t.prototype.getState=function(){return this.stateManager.getState()},t.prototype.canScanFile=function(){return this.stateManager.getState()===po.NOT_STARTED},t.prototype.isScanning=function(){return this.stateManager.getState()!==po.NOT_STARTED},t.prototype.isStrictlyScanning=function(){return this.stateManager.getState()===po.SCANNING},t.prototype.isPaused=function(){return this.stateManager.getState()===po.PAUSED},t}(),Vo=function(){function t(){}return t.create=function(){return new zo(new Uo)},t}(),qo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qo(e,t),e.DEFAULT_WIDTH=300,e.DEFAULT_WIDTH_OFFSET=2,e.FILE_SCAN_MIN_HEIGHT=300,e.FILE_SCAN_HIDDEN_CANVAS_PADDING=100,e.MIN_QR_BOX_SIZE=50,e.SHADED_LEFT=1,e.SHADED_RIGHT=2,e.SHADED_TOP=3,e.SHADED_BOTTOM=4,e.SHADED_REGION_ELEMENT_ID="qr-shaded-region",e.VERBOSE=!1,e.BORDER_SHADER_DEFAULT_COLOR="#ffffff",e.BORDER_SHADER_MATCH_COLOR="rgb(90, 193, 56)",e}(so),Xo=function(){function t(t,e){this.logger=e,this.fps=Go.SCAN_DEFAULT_FPS,t?(t.fps&&(this.fps=t.fps),this.disableFlip=!0===t.disableFlip,this.qrbox=t.qrbox,this.aspectRatio=t.aspectRatio,this.videoConstraints=t.videoConstraints):this.disableFlip=Go.DEFAULT_DISABLE_FLIP}return t.prototype.isMediaStreamConstraintsValid=function(){return this.videoConstraints?_o.isMediaStreamConstraintsValid(this.videoConstraints,this.logger):(this.logger.logError("Empty videoConstraints",!0),!1)},t.prototype.isShadedBoxEnabled=function(){return!ho(this.qrbox)},t.create=function(e,n){return new t(e,n)},t}(),Zo=function(){function t(t,e){if(this.element=null,this.canvasElement=null,this.scannerPausedUiElement=null,this.hasBorderShaders=null,this.borderShaders=null,this.qrMatch=null,this.renderedCamera=null,this.qrRegion=null,this.context=null,this.lastScanImageFile=null,this.isScanning=!1,!document.getElementById(t))throw"HTML Element with id="+t+" not found";var n;this.elementId=t,this.verbose=!1,"boolean"==typeof e?this.verbose=!0===e:e&&(n=e,this.verbose=!0===n.verbose,n.experimentalFeatures),this.logger=new co(this.verbose),this.qrcode=new xo(this.getSupportedFormats(e),this.getUseBarCodeDetectorIfSupported(n),this.verbose,this.logger),this.foreverScanTimeout,this.shouldScan=!0,this.stateManagerProxy=Vo.create()}return t.prototype.start=function(t,e,n,r){var i,o=this;if(!t)throw"cameraIdOrConfig is required";if(!n||"function"!=typeof n)throw"qrCodeSuccessCallback is required and should be a function.";i=r||(this.verbose?this.logger.log:function(){});var s=Xo.create(e,this.logger);this.clearElement();var a=!1;s.videoConstraints&&(s.isMediaStreamConstraintsValid()?a=!0:this.logger.logError("'videoConstraints' is not val
2id 'MediaStreamConstraints, it will be ignored.'",!0));var l=a,u=document.getElementById(this.elementId);u.clientWidth?u.clientWidth:Go.DEFAULT_WIDTH;u.style.position="relative",this.shouldScan=!0,this.element=u;var c=this,d=this.stateManagerProxy.startTransition(po.SCANNING);return new Promise((function(e,r){var a=l?s.videoConstraints:c.createVideoConstraints(t);if(!a)return d.cancel(),void r("videoConstraints should be defined");var u={};l&&!s.aspectRatio||(u.aspectRatio=s.aspectRatio);var h={onRenderSurfaceReady:function(t,e){c.setupUi(t,e,s),c.isScanning=!0,c.foreverScan(s,n,i)}};jo.failIfNotSupported().then((function(t){t.create(a).then((function(t){return t.render(o.element,u,h).then((function(t){c.renderedCamera=t,d.execute(),e(null)})).catch((function(t){d.cancel(),r(t)}))})).catch((function(t){d.cancel(),r(mo.errorGettingUserMedia(t))}))})).catch((function(t){d.cancel(),r(mo.cameraStreamingNotSupported())}))}))},t.prototype.pause=function(t){if(!this.stateManagerProxy.isStrictlyScanning())throw"Cannot pause, scanner is not scanning.";this.stateManagerProxy.directTransition(po.PAUSED),this.showPausedState(),(ho(t)||!0!==t)&&(t=!1),t&&this.renderedCamera&&this.renderedCamera.pause()},t.prototype.resume=function(){if(!this.stateManagerProxy.isPaused())throw"Cannot result, scanner is not paused.";if(!this.renderedCamera)throw"renderedCamera doesn't exist while trying resume()";var t=this,e=function(){t.stateManagerProxy.directTransition(po.SCANNING),t.hidePausedState()};this.renderedCamera.isPaused()?this.renderedCamera.resume((function(){e()})):e()},t.prototype.getState=function(){return this.stateManagerProxy.getState()},t.prototype.stop=function(){var t=this;if(!this.stateManagerProxy.isScanning())throw"Cannot stop, scanner is not running or paused.";var e=this.stateManagerProxy.startTransition(po.NOT_STARTED);this.shouldScan=!1,this.foreverScanTimeout&&clearTimeout(this.foreverScanTimeout);var n=this;return this.renderedCamera.close().then((function(){return n.renderedCamera=null,n.element&&(n.element.removeChild(n.canvasElement),n.canvasElement=null),function(){if(t.element){var e=document.getElementById(Go.SHADED_REGION_ELEMENT_ID);e&&t.element.removeChild(e)}}(),n.qrRegion&&(n.qrRegion=null),n.context&&(n.context=null),e.execute(),n.hidePausedState(),n.isScanning=!1,Promise.resolve()}))},t.prototype.scanFile=function(t,e){return this.scanFileV2(t,e).then((function(t){return t.decodedText}))},t.prototype.scanFileV2=function(t,e){var n=this;if(!(t&&t instanceof File))throw"imageFile argument is mandatory and should be instance of File. Use 'event.target.files[0]'.";if(ho(e)&&(e=!0),!this.stateManagerProxy.canScanFile())throw"Cannot start file scan - ongoing camera scan";return new Promise((function(r,i){n.possiblyCloseLastScanImageFile(),n.clearElement(),n.lastScanImageFile=URL.createObjectURL(t);var o=new Image;o.onload=function(){var t=o.width,s=o.height,a=document.getElementById(n.elementId),l=a.clientWidth?a.clientWidth:Go.DEFAULT_WIDTH,u=Math.max(a.clientHeight?a.clientHeight:s,Go.FILE_SCAN_MIN_HEIGHT),c=n.computeCanvasDrawConfig(t,s,l,u);if(e){var d=n.createCanvasElement(l,u,"qr-canvas-visible");d.style.display="inline-block",a.appendChild(d);var h=d.getContext("2d");if(!h)throw"Unable to get 2d context from canvas";h.canvas.width=l,h.canvas.height=u,h.drawImage(o,0,0,t,s,c.x,c.y,c.width,c.height)}var f=Go.FILE_SCAN_HIDDEN_CANVAS_PADDING,p=Math.max(o.width,c.width),m=Math.max(o.height,c.height),g=p+2*f,y=m+2*f,_=n.createCanvasElement(g,y);a.appendChild(_);var v=_.getContext("2d");if(!v)throw"Unable to get 2d context from canvas";v.canvas.width=g,v.canvas.height=y,v.drawImage(o,0,0,t,s,f,f,p,m);try{n.qrcode.decodeRobustlyAsync(_).then((function(t){r(lo.createFromQrcodeResult(t))})).catch(i)}catch(t){i("QR code parse error, error = "+t)}},o.onerror=i,o.onabort=i,o.onstalled=i,o.onsuspend=i,o.src=URL.createObjectURL(t)}))},t.prototype.clear=function(){this.clearElement()},t.getCameras=function(){return Fo.retrieve()},t.prototype.getRunningTrackCapabilities=function(){return this.getRenderedCameraOrFail().getRunningTrackCapabilities()},t.prototype.getRunningTrackSettings=function(){return this.getRenderedCameraOrFail().getRunningTrackSettings()},t.prototype.getRunningTrackCameraCapabilities=function(){return this.getRenderedCameraOrFail().getCapabilities()},t.prototype.applyVideoConstraints=function(t){if(!t)throw"videoConstaints is required argument.";if(!_o.isMediaStreamConstraintsValid(t,this.logger))throw"invalid videoConstaints passed, check logs for more details";return this.getRenderedCameraOrFail().applyVideoConstraints(t)},t.prototype.getRenderedCameraOrFail=function(){if(null==this.renderedCamera)throw"Scanning is not in running state, call this API only when QR code scanning using camera is in running state.";return this.renderedCamera}
vendor: 4,492 bytes, line 2
2,t.prototype.getSupportedFormats=function(t){var e=[Ji.QR_CODE,Ji.AZTEC,Ji.CODABAR,Ji.CODE_39,Ji.CODE_93,Ji.CODE_128,Ji.DATA_MATRIX,Ji.MAXICODE,Ji.ITF,Ji.EAN_13,Ji.EAN_8,Ji.PDF_417,Ji.RSS_14,Ji.RSS_EXPANDED,Ji.UPC_A,Ji.UPC_E,Ji.UPC_EAN_EXTENSION];if(!t||"boolean"==typeof t)return e;if(!t.formatsToSupport)return e;if(!Array.isArray(t.formatsToSupport))throw"configOrVerbosityFlag.formatsToSupport should be undefined or an array.";if(0===t.formatsToSupport.length)throw"Atleast 1 formatsToSupport is needed.";for(var n=[],r=0,i=t.formatsToSupport;r<i.length;r++){var o=i[r];io(o)?n.push(o):this.logger.warn("Invalid format: "+o+" passed in config, ignoring.")}if(0===n.length)throw"None of formatsToSupport match supported values.";return n},t.prototype.getUseBarCodeDetectorIfSupported=function(t){if(ho(t))return!0;if(!ho(t.useBarCodeDetectorIfSupported))return!1!==t.useBarCodeDetectorIfSupported;if(ho(t.experimentalFeatures))return!0;var e=t.experimentalFeatures;return!!ho(e.useBarCodeDetectorIfSupported)||!1!==e.useBarCodeDetectorIfSupported},t.prototype.validateQrboxSize=function(t,e,n){var r=this,i=n.qrbox;this.validateQrboxConfig(i);var o,s=this.toQrdimensions(t,e,i),a=function(t){if(t<Go.MIN_QR_BOX_SIZE)throw"minimum size of 'config.qrbox' dimension value is "+Go.MIN_QR_BOX_SIZE+"px."};a(s.width),a(s.height),s.width=((o=s.width)>t&&(r.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),o=t),o)},t.prototype.validateQrboxConfig=function(t){if("number"!=typeof t&&"function"!=typeof t&&(void 0===t.width||void 0===t.height))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},t.prototype.toQrdimensions=function(t,e,n){if("number"==typeof n)return{width:n,height:n};if("function"==typeof n)try{return n(t,e)}catch(t){throw new Error("qrbox config was passed as a function but it failed with unknown error"+t)}return n},t.prototype.setupUi=function(t,e,n){n.isShadedBoxEnabled()&&this.validateQrboxSize(t,e,n);var r=ho(n.qrbox)?{width:t,height:e}:n.qrbox;this.validateQrboxConfig(r);var i=this.toQrdimensions(t,e,r);i.height>e&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var o=n.isShadedBoxEnabled()&&i.height<=e,s={x:0,y:0,width:t,height:e},a=o?this.getShadedRegionBounds(t,e,i):s,l=this.createCanvasElement(a.width,a.height),u=l.getContext("2d",{willReadFrequently:!0});u.canvas.width=a.width,u.canvas.height=a.height,this.element.append(l),o&&this.possiblyInsertShadingElement(this.element,t,e,i),this.createScannerPausedUiElement(this.element),this.qrRegion=a,this.context=u,this.canvasElement=l},t.prototype.createScannerPausedUiElement=function(t){var e=document.createElement("div");e.innerText="Scanner paused",e.style.display="none",e.style.position="absolute",e.style.top="0px",e.style.zIndex="1",e.style.background="yellow",e.style.textAlign="center",e.style.width="100%",t.appendChild(e),this.scannerPausedUiElement=e},t.prototype.scanContext=function(t,e){var n=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then((function(e){return t(e.text,lo.createFromQrcodeResult(e)),n.possiblyUpdateShaders(!0),!0})).catch((function(t){n.possiblyUpdateShaders(!1);var r=mo.codeParseError(t);return e(r,uo.createFrom(r)),!1}))},t.prototype.foreverScan=function(t,e,n){var r=this;if(this.shouldScan&&this.renderedCamera){var i=this.renderedCamera.getSurface(),o=i.videoWidth/i.clientWidth,s=i.videoHeight/i.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var a=this.qrRegion.width*o,l=this.qrRegion.height*s,u=this.qrRegion.x*o,c=this.qrRegion.y*s;this.context.drawImage(i,u,c,a,l,0,0,this.qrRegion.width,this.qrRegion.height);var d=function(){r.foreverScanTimeout=setTimeout((function(){r.foreverScan(t,e,n)}),r.getTimeoutFps(t.fps))};this.scanContext(e,n).then((function(i){i||!0===t.disableFlip?d():(r.context.translate(r.context.canvas.width,0),r.context.scale(-1,1),r.scanContext(e,n).finally((function(){d()})))})).catch((function(t){r.logger.logError("Error happend while scanning context",t),d()}))}},t.prototype.createVideoConstraints=function(t){if("string"==typeof t)return{deviceId:{exact:t}};if("object"==typeof t){var e="facingMode",n="deviceId",r={user:!0,environment:!0},i="exact",o=function(t){if(t in r)return!0;
2throw"config has invalid 'facingMode' value = '"+t+"'"},s=Object.keys(t);if(1!==s.length)throw"'cameraIdOrConfig' object should have exactly 1 key, if passed as an object, found "+s.length+" keys";var a=Object.keys(t)[0];if(a!==e&&a!==n)throw"Only 'facingMode' and 'deviceId'  are supported for 'cameraIdOrConfig'";if(a!==e){var l=t.deviceId;if("string"==typeof l)return{deviceId:l};if("object"==typeof l){if(i in l)return{deviceId:{exact:l.exact}};throw"'deviceId' should be string or object with exact as key."}throw"Invalid type of 'deviceId' = "+typeof l}var u=t.facingMode;if("string"==typeof u){if(o(u))return{facingMode:u}}else{if("object"!=typeof u)throw"Invalid type of 'facingMode' = "+typeof u;if(!(i in u))throw"'facingMode' should be string or object with exact as key.";if(o(u.exact))return{facingMode:{exact:u.exact}}}}throw"Invalid type of 'cameraIdOrConfig' = "+typeof t},t.prototype.computeCanvasDrawConfig=function(t,e,n,r){if(t<=n&&e<=r)return{x:(n-t)/2,y:(r-e)/2,width:t,height:e};var i=t,o=e;return t>n&&(e*=n/t,t=n),e>r&&(t*=r/e,e=r),this.logger.log("Image downsampled from "+i+"X"+o+" to "+t+"X"+e+"."),this.computeCanvasDrawConfig(t,e,n,r)},t.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},t.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach((function(e){e.style.backgroundColor=t?Go.BORDER_SHADER_MATCH_COLOR:Go.BORDER_SHADER_DEFAULT_COLOR})),this.qrMatch=t)},t.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},t.prototype.createCanvasElement=function(t,e,n){var r=t,i=e,o=document.createElement("canvas");return o.style.width=r+"px",o.style.height=i+"px",o.style.display="none",o.id=ho(n)?"qr-canvas":n,o},t.prototype.getShadedRegionBounds=function(t,e,n){if(n.width>t||n.height>e)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-n.width)/2,y:(e-n.height)/2,width:n.width,height:n.height}},t.prototype.possiblyInsertShadingElement=function(t,e,n,r){if(!(e-r.width<1||n-r.height<1)){var i=document.createElement("div");i.style.position="absolute";var o=(e-r.width)/2,s=(n-r.height)/2;if(i.style.borderLeft=o+"px solid rgba(0, 0, 0, 0.48)",i.style.borderRight=o+"px solid rgba(0, 0, 0, 0.48)",i.style.borderTop=s+"px solid rgba(0, 0, 0, 0.48)",i.style.borderBottom=s+"px solid rgba(0, 0, 0, 0.48)",i.style.boxSizing="border-box",i.style.top="0px",i.style.bottom="0px",i.style.left="0px",i.style.right="0px",i.id=""+Go.SHADED_REGION_ELEMENT_ID,e-r.width<11||n-r.height<11)this.hasBorderShaders=!1;else{var a=40;this.insertShaderBorders(i,a,5,-5,null,0,!0),this.insertShaderBorders(i,a,5,-5,null,0,!1),this.insertShaderBorders(i,a,5,null,-5,0,!0),this.insertShaderBorders(i,a,5,null,-5,0,!1),this.insertShaderBorders(i,5,45,-5,null,-5,!0),this.insertShaderBorders(i,5,45,null,-5,-5,!0),this.insertShaderBorders(i,5,45,-5,null,-5,!1),this.insertShaderBorders(i,5,45,null,-5,-5,!1),this.hasBorderShaders=!0}t.append(i)}},t.prototype.insertShaderBorders=function(t,e,n,r,i,o,s){var a=document.createElement("div");a.style.position="absolute",a.style.backgroundColor=Go.BORDER_SHADER_DEFAULT_COLOR,a.style.width=e+"px",a.style.height=n+"px",null!==r&&(a.style.top=r+"px"),null!==i&&(a.style.bottom=i+"px"),s?a.style.left=o+"px":a.style.right=o+"px",this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(a),t.appendChild(a)},t.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},t.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},t.prototype.getTimeoutFps=function(t){return 1e3/t},t}(),Ko="data:image/svg+xml;base64,",Jo=Ko+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NjAgNDYwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NjAgNDYwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMjMwIDBDMTAyLjk3NSAwIDAgMTAyLjk3NSAwIDIzMHMxMDIuOTc1IDIzMCAyMzAgMjMwIDIzMC0x
2MDIuOTc0IDIzMC0yMzBTMzU3LjAyNSAwIDIzMCAwem0zOC4zMzMgMzc3LjM2YzAgOC42NzYtNy4wMzQgMTUuNzEtMTUuNzEgMTUuNzFoLTQzLjEwMWMtOC42NzYgMC0xNS43MS03LjAzNC0xNS43MS0xNS43MVYyMDIuNDc3YzAtOC42NzYgNy4wMzMtMTUuNzEgMTUuNzEtMTUuNzFoNDMuMTAxYzguNjc2IDAgMTUuNzEgNy4wMzMgMTUuNzEgMTUuNzFWMzc3LjM2ek0yMzAgMTU3Yy0yMS41MzkgMC0zOS0xNy40NjEtMzktMzlzMTcuNDYxLTM5IDM5LTM5IDM5IDE3LjQ2MSAzOSAzOS0xNy40NjEgMzktMzkgMzl6Ii8+PC9zdmc+",Qo=function(){function t(){}return t.createDefault=function(){return{hasPermission:!1,lastUsedCameraId:null}},t}(),$o=function(){function t(){this.data=Qo.createDefault();var e=localStorage.getItem(t.LOCAL_STORAGE_KEY);e?this.data=JSON.parse(e):this.reset()}return t.prototype.hasCameraPermissions=function(){return this.data.hasPermission},t.prototype.getLastUsedCameraId=function(){return this.data.lastUsedCameraId},t.prototype.setHasPermission=function(t){this.data.hasPermission=t,this.flush()},t.prototype.setLastUsedCameraId=function(t){this.data.lastUsedCameraId=t,this.flush()},t.prototype.resetLastUsedCameraId=function(){this.data.lastUsedCameraId=null,this.flush()},t.prototype.reset=function(){this.data=Qo.createDefault(),this.flush()},t.prototype.flush=function(){localStorage.setItem(t.LOCAL_STORAGE_KEY,JSON.stringify(this.data))},t.LOCAL_STORAGE_KEY="HTML5_QRCODE_DATA",t}(),ts=function(){function t(){this.infoDiv=document.createElement("div")}return t.prototype.renderInto=function(t){this.infoDiv.style.position="absolute",this.infoDiv.style.top="10px",this.infoDiv.style.right="10px",this.infoDiv.style.zIndex="2",this.infoDiv.style.display="none",this.infoDiv.style.padding="5pt",this.infoDiv.style.border="1px solid #171717",this.infoDiv.style.fontSize="10pt",this.infoDiv.style.background="rgb(0 0 0 / 69%)",this.infoDiv.style.borderRadius="5px",this.infoDiv.style.textAlign="center",this.infoDiv.style.fontWeight="400",this.infoDiv.style.color="white",this.infoDiv.innerText=yo.poweredBy();var e=document.createElement("a");e.innerText="ScanApp",e.href="https://scanapp.org",e.target="new",e.style.color="white",this.infoDiv.appendChild(e);var n=document.createElement("br"),r=document.createElement("br");this.infoDiv.appendChild(n),this.infoDiv.appendChild(r);var i=document.createElement("a");i.innerText=yo.reportIssues(),i.href="https://github.com/mebjas/html5-qrcode/issues",i.target="new",i.style.color="white",this.infoDiv.appendChild(i),t.appendChild(this.infoDiv)},t.prototype.show=function(){this.infoDiv.style.display="block"},t.prototype.hide=function(){this.infoDiv.style.display="none"},t}(),es=function(){function t(t,e){this.isShowingInfoIcon=!0,this.onTapIn=t,this.onTapOut=e,this.infoIcon=document.createElement("img")}return t.prototype.renderInto=function(t){var e=this;this.infoIcon.alt="Info icon",this.infoIcon.src=Jo,this.infoIcon.style.position="absolute",this.infoIcon.style.top="4px",this.infoIcon.style.right="4px",this.infoIcon.style.opacity="0.6",this.infoIcon.style.cursor="pointer",this.infoIcon.style.zIndex="2",this.infoIcon.style.width="16px",this.infoIcon.style.height="16px",this.infoIcon.onmouseover=function(t){return e.onHoverIn()},this.infoIcon.onmouseout=function(t){return e.onHoverOut()},this.infoIcon.onclick=function(t){return e.onClick()},t.appendChild(this.infoIcon)},t.prototype.onHoverIn=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="1")},t.prototype.onHoverOut=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="0.6")},t.prototype.onClick=function(){this.isShowingInfoIcon?(this.isShowingInfoIcon=!1,this.onTapIn(),this.infoIcon.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAQgAAAEIBarqQRAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE1SURBVDiNfdI7S0NBEAXgLya1otFgpbYSbISAgpXYi6CmiH9KCAiChaVga6OiWPgfRDQ+0itaGVNosXtluWwcuMzePfM4M3sq8lbHBubwg1dc4m1E/J/N4ghDPOIsfk/4xiEao5KX0McFljN4C9d4QTPXuY99jP3DsIoDPGM6BY5i5yI5R7O4q+ImFkJY2DCh3cAH2klyB+9J1xUMMAG7eCh1a+Mr+k48b5diXrFVwwLuS+BJ9MfR7+G0FHOHhTHhnXNWS87VDF4pcnfQK4Ep7XScNLmPTZgURNKKYENYWDpzW1BhscS1WHS8CDgURFJQrWcoF3c13KKbgg1BYQfy8xZWEzTTw1QZbAoKu8FqJnktdu5hcVSHmchiILzzuaDQvjBzV2m8yohCE1jHfPx/xhU+y4G/D75ELlRJsSYAAAAASUVORK5CYII=",this.infoIcon.style.opacity="1"):(this.isShowingInfoIcon=!0,this.onTapOut(),this.infoIcon.src=Jo,this.infoIcon.style.opacity="0.6")},t}(),ns=function(){function t(){var t=this;this.infoDiv=new ts,this.infoIcon=new es((function(){t.infoDiv.show()}),(function(){t.infoDiv.hide()}))}return t.prototype.renderInto=function(t){this.infoDiv.renderInto(t),this.infoIcon.renderInto(t)},t}
vendor: 13,286 bytes, line 2
2(),rs=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},is=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},os=function(){function t(){}return t.hasPermissions=function(){return rs(this,void 0,void 0,(function(){var t,e,n,r;return is(this,(function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.enumerateDevices()];case 1:for(t=i.sent(),e=0,n=t;e<n.length;e++)if("videoinput"===(r=n[e]).kind&&r.label)return[2,!0];return[2,!1]}}))}))},t}(),ss=function(){function t(t){this.supportedScanTypes=this.validateAndReturnScanTypes(t)}return t.prototype.getDefaultScanType=function(){return this.supportedScanTypes[0]},t.prototype.hasMoreThanOneScanType=function(){return this.supportedScanTypes.length>1},t.prototype.isCameraScanRequired=function(){for(var e=0,n=this.supportedScanTypes;e<n.length;e++){var r=n[e];if(t.isCameraScanType(r))return!0}return!1},t.isCameraScanType=function(t){return t===no.SCAN_TYPE_CAMERA},t.isFileScanType=function(t){return t===no.SCAN_TYPE_FILE},t.prototype.validateAndReturnScanTypes=function(t){if(!t||0===t.length)return so.DEFAULT_SUPPORTED_SCAN_TYPE;var e=so.DEFAULT_SUPPORTED_SCAN_TYPE.length;if(t.length>e)throw"Max "+e+" values expected for supportedScanTypes";for(var n=0,r=t;n<r.length;n++){var i=r[n];if(!so.DEFAULT_SUPPORTED_SCAN_TYPE.includes(i))throw"Unsupported scan type "+i}return t},t}(),as=function(){function t(){}return t.ALL_ELEMENT_CLASS="html5-qrcode-element",t.CAMERA_PERMISSION_BUTTON_ID="html5-qrcode-button-camera-permission",t.CAMERA_START_BUTTON_ID="html5-qrcode-button-camera-start",t.CAMERA_STOP_BUTTON_ID="html5-qrcode-button-camera-stop",t.TORCH_BUTTON_ID="html5-qrcode-button-torch",t.CAMERA_SELECTION_SELECT_ID="html5-qrcode-select-camera",t.FILE_SELECTION_BUTTON_ID="html5-qrcode-button-file-selection",t.ZOOM_SLIDER_ID="html5-qrcode-input-range-zoom",t.SCAN_TYPE_CHANGE_ANCHOR_ID="html5-qrcode-anchor-scan-type-change",t.TORCH_BUTTON_CLASS_TORCH_ON="html5-qrcode-button-torch-on",t.TORCH_BUTTON_CLASS_TORCH_OFF="html5-qrcode-button-torch-off",t}(),ls=function(){function t(){}return t.createElement=function(t,e){var n=document.createElement(t);return n.id=e,n.classList.add(as.ALL_ELEMENT_CLASS),"button"===t&&n.setAttribute("type","button"),n},t}(),us=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))},cs=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},ds=function(){function t(t,e,n){this.isTorchOn=!1,this.torchCapability=t,this.buttonController=e,this.onTorchActionFailureCallback=n}return t.prototype.isTorchEnabled=function(){return this.isTorchOn},t.prototype.flipState=function(){return us(this,void 0,void 0,(function(){var t,e;return cs(this,(function(n){switch(n.label){case 0:this.buttonController.disable(),t=!this.isTorchOn,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.torchCapability.apply(t)];case 2:return n.sent(),this.updateUiBasedOnLatestSettings(this.torchCapability.value(),t),[3,4];case 3:return e=n.sent(),this.propagateFailure(t,e),this.buttonController.enable(),[3,4];case 4:return[2]}}))}))},t.prototype.updateUiBasedOnLatestSettings=function(t,e){t===e?(this.buttonController.setText(e?go.torchOffButton():go.torchOnButton()),this.isTorchOn=e):this.propagateFailure(e),this.buttonController.enable()},t.prototype.propagateFailure=function(t,e){var n=t?go.torchOnFailedMessage():go.torchOffFailedMessage();e&&(n+="; Error = "+e),this.onTorchActionFailureCallback(n)},t.prototype.reset=function(){this.isTorchOn=!1},t}(),hs=function(){function t(t,e){this.onTorchActionFailureCallback=e,this.torchButton=ls.createElement("button",as.TORCH_BUTTON_ID),this.torchController=new ds(t,this,e)}return t.prototype.render=function(t,e){var n=this;this.torchButton.innerText=go.torchOnButton(),this.torchButton.style.display=e.display,this.torchButton.style.marginLeft=e.marginLeft;var r=this;this.torchButton.addEventListener("click",(function(t){return us(n,void 0,void 0,(function(){return cs(this,(function(t){switch(t.label){case 0:return[4,r.torchController.flipState()];case 1:return t.sent(),r.torchController.isTorchEnabled()?(r.torchButton.classList.remove(as.TORCH_BUTTON_CLASS_TORCH_OFF),r.torchButton.classList.add(as.TORCH_BUTTON_CLASS_TORCH_ON)):(r.torchButton.classList.remove(as.TORCH_BUTTON_CLASS_TORCH_ON),r.torchButton.classList.add(as.TORCH_BUTTON_CLASS_TORCH_OFF)),[2]}}))}))})),t.appendChild(this.torchButton)},t.prototype.updateTorchCapability=function(t){this.torchController=new ds(t,this,this.onTorchActionFailureCallback)},t.prototype.getTorchButton=function(){return this.torchButton},t.prototype.hide=function(){this.torchButton.style.display="none"},t.prototype.show=function(){this.torchButton.style.display="inline-block"},t.prototype.disable=function(){this.torchButton.disabled=!0},t.prototype.enable=function(){this.torchButton.disabled=!1},t.prototype.setText=function(t){this.torchButton.innerText=t},t.prototype.reset=function(){this.torchButton.innerText=go.torchOnButton(),this.torchController.reset()},t.create=function(e,n,r,i){var o=new t(n,i);return o.render(e,r),o},t}(),fs=function(){function t(t,e,n){this.fileBasedScanRegion=this.createFileBasedScanRegion(),this.fileBasedScanRegion.style.display=e?"block":"none",t.appendChild(this.fileBasedScanRegion);var r=document.createElement("label");r.setAttribute("for",this.getFileScanInputId()),r.style.display="inline-block",this.fileBasedScanRegion.appendChild(r),this.fileSelectionButton=ls.createElement("button",as.FILE_SELECTION_BUTTON_ID),this.setInitialValueToButton(),this.fileSelectionButton.addEventListener("click",(function(t){r.click()})),r.append(this.fileSelectionButton),this.fileScanInput=ls.createElement("input",this.getFileScanInputId()),this.fileScanInput.type="file",this.fileScanInput.accept="image/*",this.fileScanInput.style.display="none",r.appendChild(this.fileScanInput);var i=this;this.fileScanInput.addEventListener("change",(function(t){if(null!=t&&null!=t.target){var e=t.target;if(!e.files||0!==e.files.length){var r=e.files[0],o=r.name;i.setImageNameToButton(o),n(r)}}}));var o=this.createDragAndDropMessage();this.fileBasedScanRegion.appendChild(o),this.fileBasedScanRegion.addEventListener("dragenter",(function(t){i.fileBasedScanRegion.style.border=i.fileBasedScanRegionActiveBorder(),t.stopPropagation(),t.preventDefault()})),this.fileBasedScanRegion.addEventListener("dragleave",(function(t){i.fileBasedScanRegion.style.border=i.fileBasedScanRegionDefaultBorder(),t.stopPropagation(),t.preventDefault()})),this.fileBasedScanRegion.addEventListener("dragover",(function(t){i.fileBasedScanRegion.style.border=i.fileBasedScanRegionActiveBorder(),t.stopPropagation(),t.preventDefault()})),this.fileBasedScanRegion.addEventListener("drop",(function(t){t.stopPropagation(),t.preventDefault(),i.fileBasedScanRegion.style.border=i.fileBasedScanRegionDefaultBorder();var e=t.dataTransfer;if(e){var r=e.files;if(!r||0===r.length)return;for(var s=!1,a=0;a<r.length;++a){var l=r.item(a);if(l){if(l.type.match(/image.*/)){s=!0;var u=l.name;i.setImageNameToButton(u),n(l),o.innerText=go.dragAndDropMessage();break}}}s||(o.innerText=go.dragAndDropMessageOnlyImages())}}))}return t.prototype.hide=function(){this.fileBasedScanRegion.style.display="none",this.fileScanInput.disabled=!0},t.prototype.show=function(){this.fileBasedScanRegion.style.display="block",this.fileScanInput.disabled=!1},t.prototype.isShowing=function(){return"block"===this.fileBasedScanRegion.style.display},t.prototype.resetValue=function(){this.fileScanInput.value="",this.setInitialValueToButton()},t.prototype.createFileBasedScanRegion=function(){var t=document.createElement("div");return t.style.textAlign="center",t.style.margin="auto",t.style.width="80%",t.style.maxWidth="600px",t.style.border=this.fileBasedScanRegionDefaultBorder(),t.style.padding="10px",t.style.marginBottom="10px",t},t.prototype.fileBasedScanRegionDefaultBorder=function(){return"6px dashed #ebebeb"},t.prototype.fileBasedScanRegionActiveBorder=function(){return"6px dashed rgb(153 151 151)"},t.prototype.createDragAndDropMessage=function(){var t=document.createElement("div");return t.innerText=go.dragAndDropMessage(),t.style.fontWeight="400",t},t.prototype.setImageNameToButton=function(t){if(t.length>20){var e=t.substring(0,8),n=t.length,r=t.substring(n-8,n);t=e+"...."+r}var i=go.fileSelectionChooseAnother()+" - "+t;this.fileSelectionButton.innerText=i},t.prototype.setInitialValueToButton=function(){var t=go.fileSelectionChooseImage()+" - "+go.fileSelectionNoImageSelected();this.fileSelectionButton.innerText=t},t.prototype.getFileScanInputId=function(){return"html5-qrcode-private-filescan-input"},t.create=function(e,n,r){return new t(e,n,r)},t}(),ps=function(){function t(t){this.selectElement=ls.createElement("select",as.CAMERA_SELECTION_SELECT_ID),this.cameras=t,this.options=[]}return t.prototype.render=function(t){var e=document.createElement("span");e.style.marginRight="10px";var n=this.cameras.length;if(0===n)throw new Error("No cameras found");if(1===n)e.style.display="none";else{var r=go.selectCamera();e.innerText=r+" ("+this.cameras.length+")  "}for(var i=1,o=0,s=this.cameras;o<s.length;o++){var a=s[o],l=a.id,u=null==a.label?l:a.label;u&&""!==u||(u=[go.anonymousCameraPrefix(),i++].join(" "));var c=document.createElement("option");c.value=l,c.innerText=u,this.options.push(c),this.selectElement.appendChild(c)}e.appendChild(this.selectElement),t.appendChild(e)},t.prototype.disable=function(){this.selectElement.disabled=!0},t.prototype.isDisabled=function(){return!0===this.selectElement.disabled},t.prototype.enable=function(){this.selectElement.disabled=!1},t.prototype.getValue=function(){return this.selectElement.value},t.prototype.hasValue=function(t){for(var e=0,n=this.options;e<n.length;e++){if(n[e].value===t)return!0}return!1},t.prototype.setValue=function(t){if(!this.hasValue(t))throw new Error(t+" is not present in the camera list.");this.selectElement.value=t},t.prototype.hasSingleItem=function(){return 1===this.cameras.length},t.prototype.numCameras=function(){return this.cameras.length},t.create=function(e,n){var r=new t(n);return r.render(e),r},t}(),ms=function(){function t(){this.onChangeCallback=null,this.zoomElementContainer=document.createElement("div"),this.rangeInput=ls.createElement("input",as.ZOOM_SLIDER_ID),this.rangeInput.type="range",this.rangeText=document.createElement("span"),this.rangeInput.min="1",this.rangeInput.max="5",this.rangeInput.value="1",this.rangeInput.step="0.1"}return t.prototype.render=function(t,e){this.zoomElementContainer.style.display=e?"block":"none",this.zoomElementContainer.style.padding="5px 10px",this.zoomElementContainer.style.textAlign="center",t.appendChild(this.zoomElementContainer),this.rangeInput.style.display="inline-block",this.rangeInput.style.width="50%",this.rangeInput.style.height="5
2px",this.rangeInput.style.background="#d3d3d3",this.rangeInput.style.outline="none",this.rangeInput.style.opacity="0.7";var n=go.zoom();this.rangeText.innerText=this.rangeInput.value+"x "+n,this.rangeText.style.marginRight="10px";var r=this;this.rangeInput.addEventListener("input",(function(){return r.onValueChange()})),this.rangeInput.addEventListener("change",(function(){return r.onValueChange()})),this.zoomElementContainer.appendChild(this.rangeInput),this.zoomElementContainer.appendChild(this.rangeText)},t.prototype.onValueChange=function(){var t=go.zoom();this.rangeText.innerText=this.rangeInput.value+"x "+t,this.onChangeCallback&&this.onChangeCallback(parseFloat(this.rangeInput.value))},t.prototype.setValues=function(t,e,n,r){this.rangeInput.min=t.toString(),this.rangeInput.max=e.toString(),this.rangeInput.step=r.toString(),this.rangeInput.value=n.toString(),this.onValueChange()},t.prototype.show=function(){this.zoomElementContainer.style.display="block"},t.prototype.hide=function(){this.zoomElementContainer.style.display="none"},t.prototype.setOnCameraZoomValueChangeCallback=function(t){this.onChangeCallback=t},t.prototype.removeOnCameraZoomValueChangeCallback=function(){this.onChangeCallback=null},t.create=function(e,n){var r=new t;return r.render(e,n),r},t}();!function(t){t[t.STATUS_DEFAULT=0]="STATUS_DEFAULT",t[t.STATUS_SUCCESS=1]="STATUS_SUCCESS",t[t.STATUS_WARNING=2]="STATUS_WARNING",t[t.STATUS_REQUESTING_PERMISSION=3]="STATUS_REQUESTING_PERMISSION"}(Wo||(Wo={}));var gs=function(){function t(t,e,n){if(this.lastMatchFound=null,this.cameraScanImage=null,this.fileScanImage=null,this.fileSelectionUi=null,this.elementId=t,this.config=this.createConfig(e),this.verbose=!0===n,!document.getElementById(t))throw"HTML Element with id="+t+" not found";this.scanTypeSelector=new ss(this.config.supportedScanTypes),this.currentScanType=this.scanTypeSelector.getDefaultScanType(),this.sectionSwapAllowed=!0,this.logger=new co(this.verbose),this.persistedDataManager=new $o,!0!==e.rememberLastUsedCamera&&this.persistedDataManager.reset()}return t.prototype.render=function(t,e){var n=this;this.lastMatchFound=null,this.qrCodeSuccessCallback=function(e,r){if(t)t(e,r);else{if(n.lastMatchFound===e)return;n.lastMatchFound=e,n.setHeaderMessage(go.lastMatch(e),Wo.STATUS_SUCCESS)}},this.qrCodeErrorCallback=function(t,n){e&&e(t,n)};var r,i,o=document.getElementById(this.elementId);if(!o)throw"HTML Element with id="+this.elementId+" not found";o.innerHTML="",this.createBasicLayout(o),this.html5Qrcode=new Zo(this.getScanRegionId(),(r=this.config,i=this.verbose,{formatsToSupport:r.formatsToSupport,useBarCodeDetectorIfSupported:r.useBarCodeDetectorIfSupported,experimentalFeatures:r.experimentalFeatures,verbose:i}))},t.prototype.pause=function(t){(ho(t)||!0!==t)&&(t=!1),this.getHtml5QrcodeOrFail().pause(t)},t.prototype.resume=function(){this.getHtml5QrcodeOrFail().resume()},t.prototype.getState=function(){return this.getHtml5QrcodeOrFail().getState()},t.prototype.clear=function(){var t=this,e=function(){var e=document.getElementById(t.elementId);e&&(e.innerHTML="",t.resetBasicLayout(e))};return this.html5Qrcode?new Promise((function(n,r){t.html5Qrcode?t.html5Qrcode.isScanning?t.html5Qrcode.stop().then((function(r){t.html5Qrcode?(t.html5Qrcode.clear(),e(),n()):n()})).catch((function(e){t.verbose&&t.logger.logError("Unable to stop qrcode scanner",e),r(e)})):(t.html5Qrcode.clear(),e()):n()})):Promise.resolve()},t.prototype.getRunningTrackCapabilities=function(){return this.getHtml5QrcodeOrFail().getRunningTrackCapabilities()},t.prototype.getRunningTrackSettings=function(){return this.getHtml5QrcodeOrFail().getRunningTrackSettings()},t.prototype.applyVideoConstraints=function(t){return this.getHtml5QrcodeOrFail().applyVideoConstraints(t)},t.prototype.getHtml5QrcodeOrFail=function(){if(!this.html5Qrcode)throw"Code scanner not initialized.";return this.html5Qrcode},t.prototype.createConfig=function(t){return t?(t.fps||(t.fps=so.SCAN_DEFAULT_FPS),t.rememberLastUsedCamera!==!so.DEFAULT_REMEMBER_LAST_CAMERA_USED&&(t.rememberLastUsedCamera=so.DEFAULT_REMEMBER_LAST_CAMERA_USED),t.supportedScanTypes||(t.supp
vendor: 10,027 bytes, line 2
2ortedScanTypes=so.DEFAULT_SUPPORTED_SCAN_TYPE),t):{fps:so.SCAN_DEFAULT_FPS,rememberLastUsedCamera:so.DEFAULT_REMEMBER_LAST_CAMERA_USED,supportedScanTypes:so.DEFAULT_SUPPORTED_SCAN_TYPE}},t.prototype.createBasicLayout=function(t){t.style.position="relative",t.style.padding="0px",t.style.border="1px solid silver",this.createHeader(t);var e=document.createElement("div"),n=this.getScanRegionId();e.id=n,e.style.width="100%",e.style.minHeight="100px",e.style.textAlign="center",t.appendChild(e),ss.isCameraScanType(this.currentScanType)?this.insertCameraScanImageToScanRegion():this.insertFileScanImageToScanRegion();var r=document.createElement("div"),i=this.getDashboardId();r.id=i,r.style.width="100%",t.appendChild(r),this.setupInitialDashboard(r)},t.prototype.resetBasicLayout=function(t){t.style.border="none"},t.prototype.setupInitialDashboard=function(t){this.createSection(t),this.createSectionControlPanel(),this.scanTypeSelector.hasMoreThanOneScanType()&&this.createSectionSwap()},t.prototype.createHeader=function(t){var e=document.createElement("div");e.style.textAlign="left",e.style.margin="0px",t.appendChild(e),(new ns).renderInto(e);var n=document.createElement("div");n.id=this.getHeaderMessageContainerId(),n.style.display="none",n.style.textAlign="center",n.style.fontSize="14px",n.style.padding="2px 10px",n.style.margin="4px",n.style.borderTop="1px solid #f6f6f6",e.appendChild(n)},t.prototype.createSection=function(t){var e=document.createElement("div");e.id=this.getDashboardSectionId(),e.style.width="100%",e.style.padding="10px 0px 10px 0px",e.style.textAlign="left",t.appendChild(e)},t.prototype.createCameraListUi=function(t,e,n){var r=this;r.showHideScanTypeSwapLink(!1),r.setHeaderMessage(go.cameraPermissionRequesting());var i=function(){n||r.createPermissionButton(t,e)};Zo.getCameras().then((function(n){r.persistedDataManager.setHasPermission(!0),r.showHideScanTypeSwapLink(!0),r.resetHeaderMessage(),n&&n.length>0?(t.removeChild(e),r.renderCameraSelection(n)):(r.setHeaderMessage(go.noCameraFound(),Wo.STATUS_WARNING),i())})).catch((function(t){r.persistedDataManager.setHasPermission(!1),n?n.disabled=!1:i(),r.setHeaderMessage(t,Wo.STATUS_WARNING),r.showHideScanTypeSwapLink(!0)}))},t.prototype.createPermissionButton=function(t,e){var n=this,r=ls.createElement("button",this.getCameraPermissionButtonId());r.innerText=go.cameraPermissionTitle(),r.addEventListener("click",(function(){r.disabled=!0,n.createCameraListUi(t,e,r)})),e.appendChild(r)},t.prototype.createPermissionsUi=function(t,e){var n=this;ss.isCameraScanType(this.currentScanType)&&this.persistedDataManager.hasCameraPermissions()?os.hasPermissions().then((function(r){r?n.createCameraListUi(t,e):(n.persistedDataManager.setHasPermission(!1),n.createPermissionButton(t,e))})).catch((function(r){n.persistedDataManager.setHasPermission(!1),n.createPermissionButton(t,e)})):this.createPermissionButton(t,e)},t.prototype.createSectionControlPanel=function(){var t=document.getElementById(this.getDashboardSectionId()),e=document.createElement("div");t.appendChild(e);var n=document.createElement("div");n.id=this.getDashboardSectionCameraScanRegionId(),n.style.display=ss.isCameraScanType(this.currentScanType)?"block":"none",e.appendChild(n);var r=document.createElement("div");r.style.textAlign="center",n.appendChild(r),this.scanTypeSelector.isCameraScanRequired()&&this.createPermissionsUi(n,r),this.renderFileScanUi(e)},t.prototype.renderFileScanUi=function(t){var e=ss.isFileScanType(this.currentScanType),n=this;this.fileSelectionUi=fs.create(t,e,(function(t){if(!n.html5Qrcode)throw"html5Qrcode not defined";ss.isFileScanType(n.currentScanType)&&(n.setHeaderMessage(go.loadingImage()),n.html5Qrcode.scanFileV2(t,!0).then((function(t){n.resetHeaderMessage(),n.qrCodeSuccessCallback(t.decodedText,t)})).catch((function(t){n.setHeaderMessage(t,Wo.STATUS_WARNING),n.qrCodeErrorCallback(t,uo.createFrom(t))})))}))},t.prototype.renderCameraSelection=function(t){var e=this,n=this,r=document.getElementById(this.getDashboardSectionCameraScanRegionId());r.style.textAlign="center";var i=ms.create(r,!1),o=ps.create(r,t),s=document.createElement("span"),a=ls.createElement("button",as.CAMERA_START_BUTTON_ID);a.innerText=go.scanButtonStartScanningText(),s.appendChild(a);var l,u=ls.createElement("button",as.CAMERA_STOP_BUTTON_ID);u.innerText=go.scanButtonStopScanningText(),u.style.display="none",u.disabled=!0,s.appendChild(u);r.appendChild(s);var c=function(t){t||(a.style.display="none"),a.innerText=go.scanButtonStartScanningText(),a.style.opacity="1",a.disabled=!1,t&&(a.style.display="inline-block")};if(a.addEventListener("click",(function(t){a.innerText=go.scanButtonScanningStarting(),o.disable(),a.disabled=!0,a.style.opacity="0.5",e.scanTypeSelector.hasMoreThanOneScanType()&&n.showHideScanTypeSwapLink(!1),n.resetHeaderMessage();var r,d=o.getValue();n.persistedDataManager.setLastUsedCameraId(d),n.html5Qrcode.start(d,(r=n.config,{fps:r.fps,qrbox:r.qrbox,aspectRatio:r.aspectRatio,disableFlip:r.disableFlip,videoConstraints:r.videoConstraints}),n.qrCodeSuccessCallback,n.qrCodeErrorCallback).then((function(t){u.disabled=!1,u.style.display="inline-block",c(!1);var r=n.html5Qrcode.getRunningTrackCameraCapabilities();!0===e.config.showTorchButtonIfSupported&&function(t){t.torchFeature().isSupported()?(l?l.updateTorchCapability(t.torchFeature()):l=hs.create(s,t.torchFeature(),{display:"none",marginLeft:"5px"},(function(t){n.setHeaderMessage(t,Wo.STATUS_WARNING)})),l.show()):l&&l.hide()}(r),!0===e.config.showZoomSliderIfSupported&&function(t){var n=t.zoomFeature();if(n.isSupported()){i.setOnCameraZoomValueChangeCallback((function(t){n.apply(t)}));var r,o,s,a=1;e.config.defaultZoomValueIfSupported&&(a=e.config.defaultZoomValueIfSupported),r=a,o=n.min(),a=r>(s=n.max())?s:r<o?o:r,i.setValues(n.min(),n.max(),a,n.step()),i.show()}}(r)})).catch((function(t){n.showHideScanTypeSwapLink(!0),o.enable(),c(!0),n.setHeaderMessage(t,Wo.STATUS_WARNING)}))})),o.hasSingleItem()&&a.click(),u.addEventListener("click",(function(t){if(!n.html5Qrcode)throw"html5Qrcode not defined";u.disabled=!0,n.html5Qrcode.stop().then((function(t){e.scanTypeSelector.hasMoreThanOneScanType()&&n.showHideScanTypeSwapLink(!0),o.enable(),a.disabled=!1,u.style.display="none",a.style.display="inline-block",l&&(l.reset(),l.hide()),i.removeOnCameraZoomValueChangeCallback(),i.hide(),n.insertCameraScanImageToScanRegion()})).catch((function(t){u.disabled=!1,n.setHeaderMessage(t,Wo.STATUS_WARNING)}))})),n.persistedDataManager.getLastUsedCameraId()){var d=n.persistedDataManager.getLastUsedCameraId();o.hasValue(d)?(o.setValue(d),a.click()):n.persistedDataManager.resetLastUsedCameraId()}},t.prototype.createSectionSwap=function(){var t=this,e=go.textIfCameraScanSelected(),n=go.textIfFileScanSelected(),r=document.getElementById(this.getDashboardSectionId()),i=document.createElement("div");i.style.textAlign="center";var o=ls.createElement("a",this.getDashboardSectionSwapLinkId());o.style.textDecoration="underline",o.innerText=ss.isCameraScanType(this.currentScanType)?e:n,o.addEventListener("click",(function(){t.sectionSwapAllowed?(t.resetHeaderMessage(),t.fileSelectionUi.resetValue(),t.sectionSwapAllowed=!1,ss.isCameraScanType(t.currentScanType)?(t.clearScanRegion(),t.getCameraScanRegion().style.display="none",t.fileSelectionUi.show(),o.innerText=n,t.currentScanType=no.SCAN_TYPE_FILE,t.insertFileScanImageToScanRegion()):(t.clearScanRegion(),t.getCameraScanRegion().style.display="block",t.fileSelectionUi.hide(),o.innerText=e,t.currentScanType=no.SCAN_TYPE_CAMERA,t.insertCameraScanImageToScanRegion(),t.startCameraScanIfPermissionExistsOnSwap()),t.sectionSwapAllowed=!0):t.verbose&&t.logger.logError("Section swap called when not allowed")})),i.appendChild(o),r.appendChild(i)},t.prototype.startCameraScanIfPermissionExistsOnSwap=function(){var t=this,e=this;this.persistedDataManager.hasCameraPermissions()&&os.hasPermissions().then((function(n){if(n){var r=document.getElementById(e.getCameraPermissionButtonId());if(!r)throw t.logger.logError("Permission button not found, fail;"),"Permission button not found";r.click()}else e.persistedDataManager.setHasPermission(!1)})).catch((function(t){e.persistedDataManager.setHasPermission(!1)}))},t.prototype.resetHeaderMessage=function(){document.getElementById(this.getHeaderMessageContainerId()).style.display="none"},t.prototype.setHeaderMessage=function(t,e){e||(e=Wo.STATUS_DEFAULT);var n=this.getHeaderMessageDiv();switch(n.innerText=t,n.style.display="block",e){case Wo.STATUS_SUCCESS:n.style.background="rgba(106, 175, 80, 0.26)",n.style.color="#477735";break;case Wo.STATUS_WARNING:n.style.background="rgba(203, 36, 49, 0.14)",n.style.color="#cb2431";break;case Wo.STATUS_DEFAULT:default:n.style.background="rgba(0, 0, 0, 0)",n.style.color="rgb(17, 17, 17)"}},t.prototype.showHideScanTypeSwapLink=function(t){!0!==t&&(t=!1),this.sectionSwapAllowed=t,this.getDashboardSectionSwapLink().style.display=t?"inline-block":"none"},t.prototype.insertCameraScanImageToScanRegion=function(){var t=this,e=document.getElementById(this.getScanRegionId());if(this.cameraScanImage)return e.innerHTML="<br>",void e.appendChild(this.cameraScanImage);this.cameraScanImage=new Image,this.cameraScanImage.onload=function(n){e.innerHTML="<br>",e.appendChild(t.cameraScanImage)},this.cameraScanImage.width=64,this.cameraScanImage.style.opacity="0.8",this.cameraScanImage.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzEuNjQzIDM3MS42NDMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM3MS42NDMgMzcxLjY0MyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTEwNS4wODQgMzguMjcxaDE2My43Njh2MjBIMTA1LjA4NHoiLz48cGF0aCBkPSJNMzExLjU5NiAxOTAuMTg5Yy03LjQ0MS05LjM0Ny0xOC40MDMtMTYuMjA2LTMyLjc0My0yMC41MjJWMzBjMC0xNi41NDItMTMuNDU4LTMwLTMwLTMwSDEyNS4wODRjLTE2LjU0MiAwLTMwIDEzLjQ1OC0zMCAzMHYxMjAuMTQzaC04LjI5NmMtMTYuNTQyIDAtMzAgMTMuNDU4LTMwIDMwdjEuMzMzYTI5LjgwNCAyOS44MDQgMCAwIDAgNC42MDMgMTUuOTM5Yy03LjM0IDUuNDc0LTEyLjEwMyAxNC4yMjEtMTIuMTAzIDI0LjA2MXYxLjMzM2MwI
2DkuODQgNC43NjMgMTguNTg3IDEyLjEwMyAyNC4wNjJhMjkuODEgMjkuODEgMCAwIDAtNC42MDMgMTUuOTM4djEuMzMzYzAgMTYuNTQyIDEzLjQ1OCAzMCAzMCAzMGg4LjMyNGMuNDI3IDExLjYzMSA3LjUwMyAyMS41ODcgMTcuNTM0IDI2LjE3Ny45MzEgMTAuNTAzIDQuMDg0IDMwLjE4NyAxNC43NjggNDUuNTM3YTkuOTg4IDkuOTg4IDAgMCAwIDguMjE2IDQuMjg4IDkuOTU4IDkuOTU4IDAgMCAwIDUuNzA0LTEuNzkzYzQuNTMzLTMuMTU1IDUuNjUtOS4zODggMi40OTUtMTMuOTIxLTYuNzk4LTkuNzY3LTkuNjAyLTIyLjYwOC0xMC43Ni0zMS40aDgyLjY4NWMuMjcyLjQxNC41NDUuODE4LjgxNSAxLjIxIDMuMTQyIDQuNTQxIDkuMzcyIDUuNjc5IDEzLjkxMyAyLjUzNCA0LjU0Mi0zLjE0MiA1LjY3Ny05LjM3MSAyLjUzNS0xMy45MTMtMTEuOTE5LTE3LjIyOS04Ljc4Ny0zNS44ODQgOS41ODEtNTcuMDEyIDMuMDY3LTIuNjUyIDEyLjMwNy0xMS43MzIgMTEuMjE3LTI0LjAzMy0uODI4LTkuMzQzLTcuMTA5LTE3LjE5NC0xOC42NjktMjMuMzM3YTkuODU3IDkuODU3IDAgMCAwLTEuMDYxLS40ODZjLS40NjYtLjE4Mi0xMS40MDMtNC41NzktOS43NDEtMTUuNzA2IDEuMDA3LTYuNzM3IDE0Ljc2OC04LjI3MyAyMy43NjYtNy42NjYgMjMuMTU2IDEuNTY5IDM5LjY5OCA3LjgwMyA0Ny44MzYgMTguMDI2IDUuNzUyIDcuMjI1IDcuNjA3IDE2LjYyMyA1LjY3MyAyOC43MzMtLjQxMyAyLjU4NS0uODI0IDUuMjQxLTEuMjQ1IDcuOTU5LTUuNzU2IDM3LjE5NC0xMi45MTkgODMuNDgzLTQ5Ljg3IDExNC42NjEtNC4yMjEgMy41NjEtNC43NTYgOS44Ny0xLjE5NCAxNC4wOTJhOS45OCA5Ljk4IDAgMCAwIDcuNjQ4IDMuNTUxIDkuOTU1IDkuOTU1IDAgMCAwIDYuNDQ0LTIuMzU4YzQyLjY3Mi0zNi4wMDUgNTAuODAyLTg4LjUzMyA1Ni43MzctMTI2Ljg4OC40MTUtMi42ODQuODIxLTUuMzA5IDEuMjI5LTcuODYzIDIuODM0LTE3LjcyMS0uNDU1LTMyLjY0MS05Ljc3Mi00NC4zNDV6bS0yMzIuMzA4IDQyLjYyYy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM2MwLTUuNTE0IDQuNDg2LTEwIDEwLTEwaDE1djIxLjMzM2gtMTV6bS0yLjUtNTIuNjY2YzAtNS41MTQgNC40ODYtMTAgMTAtMTBoNy41djIxLjMzM2gtNy41Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM3ptMTcuNSA5My45OTloLTcuNWMtNS41MTQgMC0xMC00LjQ4Ni0xMC0xMHYtMS4zMzNjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGg3LjV2MjEuMzMzem0zMC43OTYgMjguODg3Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi04LjI3MWg5MS40NTdjLS44NTEgNi42NjgtLjQzNyAxMi43ODcuNzMxIDE4LjI3MWgtODIuMTg4em03OS40ODItMTEzLjY5OGMtMy4xMjQgMjAuOTA2IDEyLjQyNyAzMy4xODQgMjEuNjI1IDM3LjA0IDUuNDQxIDIuOTY4IDcuNTUxIDUuNjQ3IDcuNzAxIDcuMTg4LjIxIDIuMTUtMi41NTMgNS42ODQtNC40NzcgNy4yNTEtLjQ4Mi4zNzgtLjkyOS44LTEuMzM1IDEuMjYxLTYuOTg3IDcuOTM2LTExLjk4MiAxNS41Mi0xNS40MzIgMjIuNjg4aC05Ny41NjRWMzBjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGgxMjMuNzY5YzUuNTE0IDAgMTAgNC40ODYgMTAgMTB2MTM1LjU3OWMtMy4wMzItLjM4MS02LjE1LS42OTQtOS4zODktLjkxNC0yNS4xNTktMS42OTQtNDIuMzcgNy43NDgtNDQuODk4IDI0LjY2NnoiLz48cGF0aCBkPSJNMTc5LjEyOSA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXpNMTcyLjYyOSAxNDIuODZoLTEyLjU2VjEzMC44YTUgNSAwIDEgMC0xMCAwdjE3LjA2MWE1IDUgMCAwIDAgNSA1aDE3LjU2YTUgNSAwIDEgMCAwLTEwLjAwMXpNMjE2LjU2OCA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXptLTUgMjQuMDYxaC0xNC4wNlY5My4xNjdoMTQuMDZ2MTQuMDYxek0yMTEuNjY5IDEyNS45MzZIMTk3LjQxYTUgNSAwIDAgMC01IDV2MTQuMjU3YTUgNSAwIDAgMCA1IDVoMTQuMjU5YTUgNSAwIDAgMCA1LTV2LTE0LjI1N2E1IDUgMCAwIDAtNS01eiIvPjwvc3ZnPg=="},t.prototype.insertFileScanImageToScanRegion=function(){var t=this,e=document.getElementById(this.getScanRegionId());if(this.fileScanImage)return e.innerHTML="<br>",void e.appendChild(this.fileScanImage);this.fileScanImage=new Image,this.fileScanImage.onload=function(n){e.innerHTML="<br>",e.appendChild(t.fileScanImage)},this.fileScanImage.width=64,this.fileScanImage.style.opacity="0.8",this.fileScanImage.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1OS4wMTggNTkuMDE4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OS4wMTggNTkuMDE4IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJtNTguNzQxIDU0LjgwOS01Ljk2OS02LjI0NGExMC43NCAxMC43NCAwIDAgMCAyLjgyLTcuMjVjMC01Ljk1My00Ljg0My0xMC43OTYtMTAuNzk2LTEwLjc5NlMzNCAzNS4zNjEgMzQgNDEuMzE0IDM4Ljg0MyA1Mi4xMSA0NC43OTYgNTIuMTFjMi40NDEgMCA0LjY4OC0uODI0IDYuNDk5LTIuMTk2bDYuMDAxIDYuMjc3YS45OTguOTk4IDAgMCAwIDEuNDE0LjAzMiAxIDEgMCAwIDAgLjAzMS0xLjQxNHpNMzYgNDEuMzE0YzAtNC44NSAzLjk0Ni04Ljc5NiA4Ljc5Ni04Ljc5NnM4Ljc5NiAzLjk0NiA4Ljc5NiA4Ljc5Ni0zLjk0NiA4Ljc5Ni04Ljc5NiA4Ljc5NlMzNiA0Ni4xNjQgMzYgNDEuMzE0ek0xMC40MzEgMTYuMDg4YzAgMy4wNyAyLjQ5OCA1LjU2OCA1LjU2OSA1LjU2OHM1LjU2OS0yLjQ5OCA1LjU2OS01LjU2OGMwLTMuMDcxLTIuNDk4LTUuNTY5LTUuNTY5LTUuNTY5cy01LjU2OSAyLjQ5OC01LjU2OSA1LjU2OXptOS4xMzggMGMwIDEuOTY4LTEuNjAyIDMuNTY4LTMuNTY5IDMuNTY4cy0zLjU2OS0xLjYwMS0zLjU2OS0zLjU2OCAxLjYwMi0zLjU2OSAzLjU2OS0zLjU2OSAzLjU2OSAxLjYwMSAzLjU2OSAzLjU2OXoiLz48cGF0aCBkPSJtMzAuODgyIDI4Ljk4NyA5LjE4LTEwLjA1NCAxMS4yNjIgMTAuMzIzYTEgMSAwIDAgMCAxLjM1MS0xLjQ3
2NWwtMTItMTFhMSAxIDAgMCAwLTEuNDE0LjA2M2wtOS43OTQgMTAuNzI3LTQuNzQzLTQuNzQzYTEuMDAzIDEuMDAzIDAgMCAwLTEuMzY4LS4wNDRMNi4zMzkgMzcuNzY4YTEgMSAwIDEgMCAxLjMyMiAxLjUwMWwxNi4zMTMtMTQuMzYyIDcuMzE5IDcuMzE4YS45OTkuOTk5IDAgMSAwIDEuNDE0LTEuNDE0bC0xLjgyNS0xLjgyNHoiLz48cGF0aCBkPSJNMzAgNDYuNTE4SDJ2LTQyaDU0djI4YTEgMSAwIDEgMCAyIDB2LTI5YTEgMSAwIDAgMC0xLTFIMWExIDEgMCAwIDAtMSAxdjQ0YTEgMSAwIDAgMCAxIDFoMjlhMSAxIDAgMSAwIDAtMnoiLz48L3N2Zz4="},t.prototype.clearScanRegion=function(){document.getElementById(this.getScanRegionId()).innerHTML=""},t.prototype.getDashboardSectionId=function(){return this.elementId+"__dashboard_section"},t.prototype.getDashboardSectionCameraScanRegionId=function(){return this.elementId+"__dashboard_section_csr"},t.prototype.getDashboardSectionSwapLinkId=function(){return as.SCAN_TYPE_CHANGE_ANCHOR_ID},t.prototype.getScanRegionId=function(){return this.elementId+"__scan_region"},t.prototype.getDashboardId=function(){return this.elementId+"__dashboard"},t.prototype.getHeaderMessageContainerId=function(){return this.elementId+"__header_message"},t.prototype.getCameraPermissionButtonId=function(){return as.CAMERA_PERMISSION_BUTTON_ID},t.prototype.getCameraScanRegion=function(){return document.getElementById(this.getDashboardSectionCameraScanRegionId())},t.prototype.getDashboardSectionSwapLink=function(){return document.getElementById(this.getDashboardSectionSwapLinkId())},t.prototype.getHeaderMessageDiv=function(){return document.getElementById(this.getHeaderMessageContainerId())},t}();n(7333),window.moment=n(381),n(4249),window.moment.locale("sk"),window.alpinejs=n(2443),window.editor=n(6250),P.localize(R.Slovak),P.l10ns.default.firstDayOfWeek=1,window.flatpickr=P,window.Quill=j(),window.Splide=Rn,new Qi.Z(".gallery a"),window.Highcharts=to(),window.Html5QrcodeScanner=gs,function(t,e){var n=[],r=[],i=!1,o=e.target,s=ui(e,["target"]),a=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({touch:Oi.touch},s,{showOnCreate:!0}),u=Vi(t,a);function c(t){if(t.target&&!i){var n=t.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||e.trigger||Oi.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof l.touch||"touchstart"!==t.type&&s.indexOf(qi[t.type])<0)){var a=Vi(n,l);a&&(r=r.concat(a))}}}}function d(t,e,r,i){void 0===i&&(i=!1),t.addEventListener(e,r,i),n.push({node:t,eventType:e,handler:r,options:i})}ci(u).forEach((function(t){var e=t.destroy,o=t.enable,s=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&r.forEach((function(t){t.destroy()})),r=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),n=[],e()},t.enable=function(){o(),r.forEach((function(t){return t.enable()})),i=!1},t.disable=function(){s(),r.forEach((function(t){return t.disable()})),i=!0},function(t){var e=t.reference;d(e,"touchstart",c,ri),d(e,"mouseover",c),d(e,"focusin",c),d(e,"click",c)}(t)}))}("body",{target:"[data-title]",content:function(t){return t.dataset.title},allowHTML:!0}),window.addEventListener("app:scroll-to",(function(t){var e;t.stopPropagation();var n=null==t||null===(e=t.detail)||void 0===e?void 0:e.query;if(n){var r=window.document.querySelector(n);if(r)try{r.scrollIntoView({behavior:"smooth"})}catch(t){}}}),!1),window.countDown=function(t,e){return{expiry:t,remaining:null,interval:null,init:function(){var t=this;this.setRemaining(),this.interval=setInterval((function(){t.setRemaining()}),1e3)},setRemaining:function(){var t=i()(this.expiry).diff(i()());this.remaining=parseInt(t/1e3),this.remaining<=0&&(clearInterval(this.interval),this.remaining=0,e&&setTimeout((function(){e()}),1500))},days:function(){return{value:this.remaining/86400,remaining:this.remaining%86400}},hours:function(){return{value:this.days().remaining/3600,remaining:this.days().remaining%3600}},minutes:function(){return{value:this.hours().remaining/60,remaining:this.hours().remaining%60}},seconds:function(){return{value:this.minutes().remaining}},format:function(t){return("0"+parseInt(t)).slice(-2)},time:function(){return{days:this.format(this.days().value),hours:this.format(this.hours().value),minutes:this.format(this.minutes().value),seconds:this.format(this.seconds().value)}}}}},7333:(t,e,n)=>{window._=n(6486),window.axios=n(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=l(t),s=o[0],a=o[1],u=new i(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=16383,a=0,l=r-i;a<l;a+=s)o.push(u(t,a,a+s>l?l:a+s));1===i?(e=t[r-1],o.push(n[e>>
vendor: 4,894 bytes, line 2
22]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var i,o,s=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8764:(t,e,n)=>{"use strict";var r=n(9742),i=n(645),o=n(5826);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=h(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(c(e),t=a(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(r)return F(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,i){var o,s=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;
vendor: 10,890 bytes, line 2
2s=2,a/=2,l/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(u(t,o+h)!==u(e,h)){d=!1;break}if(d)return o}return-1}function v(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return U(F(e,t.length-n),t,n,r)}function w(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function M(t,e,n,r){return w(t,e,n,r)}function S(t,e,n,r){return U(W(e),t,n,r)}function C(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,l,u=t[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}e.lW=l,e.h2=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.h2;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=t.slice(e,n),d=0;d<a;++d)if(u[d]!==c[d]){o=u[d],s=c[d];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function L(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function D(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=H(t[o]);return i}function k(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function N(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function R(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(t,e,n,r,o){return o||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return o||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 4,649 bytes, line 2
28,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return Y(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return Y(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=l.isBuffer(t)?t:F(new l(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}},1126:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(3645),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}
2[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}',""]);const o=i},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},1895:()=>{"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var r=function(e){e&&Object.keys(e).forEach((function(n){return t[n]=e[n]}))},i=0,o=e;i<o.length;i++){var s=o[i];r(s)}return t})},1781:function(t,e){!function(t){"use strict";var e="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Ned","Pon","Ut","Str","Štv","Pia","Sob"],longhand:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],longhand:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};e.l10ns.sk=n;var r=e.l10ns;t.Slovak=n,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}(e)},8840:function(t,e,n){var r,i,o;i="undefined"!=typeof window?window:this,o=function(t){function e(e,n,r,i){e.hasOwnProperty(n)||(e[n]=i.apply(null,r),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:e[n]}})))}var n={};return e(n,"Core/Globals.js",[],(function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.2.1",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,n),e.win.removeEventListener("testPassive",e.noop,n))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,r,i,o){var s=r?"Highcharts error":"Highcharts warning";32===n&&(n=s+": Deprecated member");var a=l(n),u=a?s+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(void 0!==o){var c="";a&&(u+="?"),g(o,(function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(u+=encodeURI(e)+"="+encodeURI(t))})),u+=c}_(t,"displayError",{chart:i,code:n,message:u,params:o},(function(){if(r)throw Error(u);w.console&&-1===e.messages.indexOf(u)&&console.warn(u)})),e.messages.push(u)}function n(t,e){return parseInt(t,e||10)}function r(t){return"string"==typeof t}function i(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&i(t))}function s(t){return o(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!o(t,!0)||s(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function u(t){return null!=t}function c(t,e,n){var i,o=r(e)&&!u(n),s=function(e,n){u(e)?t.setAttribute(n,e):o?(i=t.getAttribute(n))||"class"!==n||(i=t.getAttribute(n+"Name")):t.removeAttribute(n)};return r(e)?s(n,e):g(e,s),i}function d(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function h(){for(var t=arguments,e=t.length,n=0;n<e;n++){var r=t[n];if(null!=r)return r}}function f(e,n){t.isMS&&!t.svg&&n&&u(n.opacity)&&(n.filter="alpha(opacity=".concat(100*n.opacity,")")),d(e.style,n)}function p(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function m(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,n){for(var r in t)Object.hasOwnProperty.call(t,r)&&e.call(n||t[r],t[r],r,t)}function y(e,n,r){function i(n,r){var i=e.removeEventListener||t.removeEventListenerPolyfill;i&&i.call(e,n,r,!1)}function o(t){var r;if(e.nodeName){if(n){var o={};o[n]=!0}else o=t;g(o,(function(e,n){if(t[n])for(r=t[n].length;r--;)i(n,t[n][r].fn)}))}}var s="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(s,"hcEvents")){var a=s.hcEvents;n?(s=a[n]||[],r?(a[n]=s.filter((function(t){return r!==t.fn})),i(n,r)):(o(a),a[n]=[])):(o(a),delete s.hcEvents)}}function _(e,n,r,i){if(r=r||{}
2,b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var o=b.createEvent("Events");o.initEvent(n,!0,!0),r=d(o,r),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent(n,r)}else if(e.hcEvents){r.target||d(r,{preventDefault:function(){r.defaultPrevented=!0},target:e,type:n}),o=[];for(var s=e,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[n]&&(o.length&&(a=!0),o.unshift.apply(o,s.hcEvents[n])),s=Object.getPrototypeOf(s);a&&o.sort((function(t,e){return t.order-e.order})),o.forEach((function(t){!1===t.fn.call(e,r)&&r.preventDefault()}))}i&&!r.defaultPrevented&&i.call(e,r)}var v=t.charts,b=t.doc,w=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var M=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,r=t.length;for(n=0;n<r;n++)if(e(t[n],n))return t[n]};g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(n,r){t[r]=function(t){var i;return e(32,!1,void 0,((i={})["Highcharts.".concat(r)]="use Array.".concat(n),i)),Array.prototype[n].apply(t,[].slice.call(arguments,1))}}));var S,C=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(S?"":t)+e++}}();return w.jQuery&&(w.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[r(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):v[c(this[0],"data-highcharts-chart")]}),M={addEvent:function(e,n,r,i){void 0===i&&(i={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={}),o=o.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var s=e.addEventListener||t.addEventListenerPolyfill;return s&&s.call(e,n,r,!!t.supportsPassiveEvents&&{passive:void 0===i.passive?-1!==n.indexOf("touch"):i.passive,capture:!1}),o[n]||(o[n]=[]),o[n].push({fn:r,order:"number"==typeof i.order?i.order:1/0}),o[n].sort((function(t,e){return t.order-e.order})),function(){y(e,n,r)}},arrayMax:function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n},attr:c,clamp:function(t,e,n){return t>e?t<n?t:n:e},cleanRecursively:function t(e,n){var r={};return g(e,(function(i,s){o(e[s],!0)&&!e.nodeType&&n[s]?(i=t(e[s],n[s]),Object.keys(i).length&&(r[s]=i)):(o(e[s])||e[s]!==n[s]||s in e&&!(s in n))&&(r[s]=e[s])})),r},clearTimeout:function(t){u(t)&&clearTimeout(t)},correctFloat:m,createElement:function(t,e,n,r,i){return t=b.createElement(t),e&&d(t,e),i&&f(t,{padding:"0",border:"none",margin:"0"}),n&&f(t,n),r&&r.appendChild(t),t},css:f,defined:u,destroyObjectProperties:function(t,e){g(t,(function(n,r){n&&n!==e&&n.destroy&&n.destroy(),delete t[r]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}},error:e,extend:d,extendClass:function(t,e){var n=function(){};return d(n.prototype=new t,e),n},find:M,fireEvent:_,getMagnitude:p,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&u(e);){var n=t.shift();if(void 0===n||"__proto__"===n)return;if(!u(e=e[n])||"function"==typeof e||"number"==typeof e.nodeType||e===w)return}return e},getStyle:function r(i,o,s){var a=t.getStyle||r;if("width"===o)return o=Math.min(i.offsetWidth,i.scrollWidth),(s=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&s>=o-1&&(o=Math.floor(s)),Math.max(0,o-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(w.getComputedStyle||e(27,!0),i=w.getComputedStyle(i,void 0)){var l=i.getPropertyValue(o);h(s,"opacity"!==o)&&(l=n(l))}return l},inArray:function(t,n,r){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,r)},isArray:i,isClass:a,isDOMElement:s,isFunction:function(t){return"function"==typeof t},isNumber:l,isObject:o,isString:r,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},r=function(t,e){return"object"!=typeof t&&(t={}
2),g(e,(function(n,i){"__proto__"!==i&&"constructor"!==i&&(!o(n,!0)||a(n)||s(n)?t[i]=e[i]:t[i]=r(t[i]||{},n))})),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var i=e.length;for(t=0;t<i;t++)n=r(n,e[t]);return n},normalizeTickInterval:function(t,e,n,r,i){var o=t,s=t/(n=h(n,p(t)));for(e||(e=i?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?e=e.filter((function(t){return 0==t%1})):.1>=n&&(e=[1/n]))),r=0;r<e.length&&(o=e[r],!(i&&o*n>=t||!i&&s<=(e[r]+(e[r+1]||e[r]))/2));r++);return m(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(w.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(w.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:h,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:y,splat:function(t){return i(t)?t:[t]},stableSort:function(t,e){var n,r,i=t.length;for(r=0;r<i;r++)t[r].safeI=r;for(t.sort((function(t,r){return 0===(n=e(t,r))?t.safeI-r.safeI:n})),r=0;r<i;r++)delete t[r].safeI},syncTimeout:function(t,e,n){return 0<e?setTimeout(t,e,n):(t.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:C,useSerialIds:function(t){return S=h(t,S)},wrap:function(t,e,n){var r=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,i=this;return i.proceed=function(){r.apply(i,arguments.length?arguments:e)},t.unshift(r),t=n.apply(this,t),i.proceed=null,t}}},M})),e(n,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),e(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.isNumber,r=e.merge,i=e.pInt;return e=function(){function e(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var r=t.Color;return r&&r!==e?new r(n):this instanceof e?void this.init(n):new e(n)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var n;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var r=t.length,i=parseInt(t.substr(1),16);7===r?n=[(16711680&i)>>16,(65280&i)>>8,255&i,1]:4===r&&(n=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!n)for(i=e.parsers.length;i--&&!n;){var o=e.parsers[i];(r=o.regex.exec(t))&&(n=o.parse(r))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=r(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return i&&n(i[0])?"rgb"===t||!t&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var r=0;3>r;r++)e[r]+=i(255*t),0>e[r]&&(e[r]=0),255<e[r]&&(e[r]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var r=this.rgba,i=t.rgba;return n(r[0])&&n(i[0])?((t=1!==i[3]||1!==r[3])?"rgba(":"rgb(")+Math.round(i[0]+(r[0]-i[0])*(1-e))+","+Math.round(i[1]+(r[1]-i[1])*(1-e))+","+Math.round(i[2]+(r[2]-i[2])*(1-e))+(t?","+(i[3]+(r[3]-i[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[i(t[1]),i(t[2]),i(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[i(t[1]),i(t[2]),i(t[3]),1]}}],e.None=new e(""),e}(),e})),e(n,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}})),e(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.
2win,r=e.defined,i=e.error,o=e.extend,s=e.isObject,a=e.merge,l=e.objectEach,u=e.pad,c=e.pick,d=e.splat,h=e.timeUnits,f=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,p=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var n=e.getTime(),r=n-this.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](n);var r=this.getTimezoneOffset(e);return r=e.getTime()-r,e.setTime(r),e["setUTC"+t](n),t=this.getTimezoneOffset(e),r=e.getTime()+t,e.setTime(r)}return this.useUTC||f&&"FullYear"===t?e["setUTC"+t](n):e["set"+t](n)},e.prototype.update=function(t){var e=c(t&&t.useUTC,!0);this.options=t=a(!0,this.options||{},t),this.Date=t.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,n,r,i,o){if(this.useUTC){var s=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(s);s+=a;var l=this.getTimezoneOffset(s);a!==l?s+=l-a:a-36e5!==this.getTimezoneOffset(s-36e5)||p||(s-=36e5)}else s=new this.Date(t,e,c(n,1),c(r,0),c(i,0),c(o,0)).getTime();return s},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,r=e.getTimezoneOffset,o=e.moment||n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};i(25)}return this.useUTC&&r?function(t){return 6e4*r(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,n,i){if(!r(n)||isNaN(n))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var s=this,a=new this.Date(n),d=this.get("Hours",a),h=this.get("Day",a),f=this.get("Date",a),p=this.get("Month",a),m=this.get("FullYear",a),g=t.defaultOptions.lang,y=g&&g.weekdays,_=g&&g.shortWeekdays;return a=o({a:_?_[h]:y[h].substr(0,3),A:y[h],d:u(f),e:u(f,2," "),w:h,b:g.shortMonths[p],B:g.months[p],m:u(p+1),o:p+1,y:m.toString().substr(2,2),Y:m,H:u(d),k:d,I:u(d%12||12),l:d%12||12,M:u(this.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:u(a.getSeconds()),L:u(Math.floor(n%1e3),3)},t.dateFormats),l(a,(function(t,r){for(;-1!==e.indexOf("%"+r);)e=e.replace("%"+r,"function"==typeof t?t.call(s,n):t)})),i?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return s(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,i){var s,a=this,l=[],u={},d=new a.Date(e),f=t.unitRange,p=t.count||1;if(i=c(i,1),r(e)){if(a.set("Milliseconds",d,f>=h.second?0:p*Math.floor(a.get("Milliseconds",d)/p)),f>=h.second&&a.set("Seconds",d,f>=h.minute?0:p*Math.floor(a.get("Seconds",d)/p)),f>=h.minute&&a.set("Minutes",d,f>=h.hour?0:p*Math.floor(a.get("Minutes",d)/p)),f>=h.hour&&a.set("Hours",d,f>=h.day?0:p*Math.floor(a.get("Hours",d)/p)),f>=h.day&&a.set("Date",d,f>=h.month?1:Math.max(1,p*Math.floor(a.get("Date",d)/p))),f>=h.month){a.set("Month",d,f>=h.year?0:p*Math.floor(a.get("Month",d)/p));var m=a.get("FullYear",d)}f>=h.year&&a.set("FullYear",d,m-m%p),f===h.week&&(m=a.get("Day",d),a.set("Date",d,a.get("Date",d)-m+i+(m<i?-7:0))),m=a.get("FullYear",d),i=a.get("Month",d);var g=a.get("Date",d),y=a.get("Hours",d);for(e=d.getTime(),!a.variableTimezone&&a.useUTC||!r(n)||(s=n-e>4*h.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(n)),e=d.getTime(),d=1;e<n;)l.push(e),e=f===h.year?a.makeTime(m+d*p,0):f===h.month?a.makeTime(m,i+d*p):!s||f!==h.day&&f!==h.week?s&&f===h.hour&&1<p?a.makeTime(m,i,g,y+d*p):e+f*p:a.makeTime(m,i,g+d*p*(f===h.day?1:7)),d++;l.push(e),f<=h.hour&&1e4>l.length&&l.forEach((function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(u[t]="day")}))}return l.info=o(t,{higherRanks:u,totalRange:f*p}),l},e.prototype.getDateFormat=function(t,e,n,r){var i=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond";for(a in h){if(t===h.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===i.substr(6)){var a="week";break}if(h[a]>t){a=s;break}if(o[a]&&i.substr(o[a])!=="01-01 00:00:00.000".substr(o[a]))break;"week"!==a&&(s=a)}
2return this.resolveDTLFormat(r[a]).main},e}(),e})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){e=e.parse;var s=o.merge,a={colors:r.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.chart.styledMode=!1;var l=new i(s(a.global,a.time));return t={defaultOptions:a,defaultTime:l,getOptions:function(){return a},setOptions:function(t){return s(!0,a,t),(t.time||t.global)&&(n.time?n.time.update(s(a.global,a.time,t.global,t.time)):n.time=l),a}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=t.parse,i=e.win,o=n.isNumber,s=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,r=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var i=0;i<t.length;i++){for(var s=e[i],a=t[i],l=[],u=0;u<a.length;u++){var c=s[u],d=a[u];o(c)&&o(d)&&("A"!==a[0]||4!==u&&5!==u)?l[u]=c+n*(d-c):l[u]=d}r.push(l)}else r=t;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,n=this.now,r=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,r&&r.call(t,n,this)},t.prototype.run=function(e,n,r){var o=this,s=o.options,a=function(t){return!a.stopped&&o.step(t)},l=i.requestAnimationFrame||function(t){setTimeout(t,13)},u=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&l(u)};e!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=n,this.unit=r,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&l(u)):(delete s.curAnim[this.prop],s.complete&&0===Object.keys(s.
2curAnim).length&&s.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,n=this.options,r=this.elem,i=n.complete,o=n.duration,a=n.curAnim;if(r.attr&&!r.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var l=a[this.prop]=!0;s(a,(function(t){!0!==t&&(l=!1)})),l&&i&&i.call(r),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function r(t,e){for(;t.length<h;){var n=t[0],r=e[h-t.length];r&&"M"===n[0]&&(t[0]="C"===r[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]),t.unshift(n),l&&(n=t.pop(),t.push(t[t.length-1],n))}}function i(t,e){for(;t.length<h;)if("C"===(e=t[Math.floor(t.length/u)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),l){var n=t[Math.floor(t.length/u)].slice();t.splice(t.length/2,0,e,n)}else t.push(e)}var s=t.startX,a=t.endX;n=n.slice();var l=t.isArea,u=l?2:1;if(!(e=e&&e.slice()))return[n,n];if(s&&a&&a.length){for(t=0;t<s.length;t++){if(s[t]===a[0]){var c=t;break}if(s[0]===a[a.length-s.length+t]){c=t;var d=!0;break}if(s[s.length-1]===a[a.length-s.length+t]){c=s.length-t;break}}void 0===c&&(e=[])}if(e.length&&o(c)){var h=n.length+c*u;d?(r(e,n),i(n,e)):(r(n,e),i(e,n))}return[e,n]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)},t.timers=[],t}()})),e(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],(function(t,e){function n(t){return l(t)?u({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function r(e,n){for(var r=t.timers.length;r--;)t.timers[r].elem!==e||n&&n!==t.timers[r].prop||(t.timers[r].stopped=!0)}var i=e.defined,o=e.getStyle,s=e.isArray,a=e.isNumber,l=e.isObject,u=e.merge,c=e.objectEach,d=e.pick;return{animate:function(e,n,i){var d,h,f,p="";if(!l(i)){var m=arguments;i={duration:m[2],easing:m[3],complete:m[4]}}a(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=u(n),c(n,(function(a,l){r(e,l),f=new t(e,i,l),h=void 0,"d"===l&&s(n.d)?(f.paths=f.initPath(e,e.pathArray,n.d),f.toD=n.d,d=0,h=1):e.attr?d=e.attr(l):(d=parseFloat(o(e,l))||0,"opacity"!==l&&(p="px")),h||(h=a),"string"==typeof h&&h.match("px")&&(h=h.replace(/px/g,"")),f.run(d,h,p)}))},animObject:n,getDeferredAnimation:function(t,e,r){var o=n(e),s=0,a=0;return(r?[r]:t.series).forEach((function(t){t=n(t.options.animation),s=e&&i(e.defer)?o.defer:Math.max(s,t.duration+t.defer),a=Math.min(o.duration,t.duration)})),t.renderer.forExport&&(s=0),{defer:Math.max(0,s-a),duration:Math.min(s,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=d(t,e.options.chart.animation,!0)},stop:r}})),e(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.SVG_NS,r=e.attr,i=e.createElement,o=e.css,s=e.error,a=e.isFunction,l=e.isString,u=e.objectEach,c=e.splat,d=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),h=d?d.createHTML(""):"";try{var f=!!(new DOMParser).parseFromString(h,"text/html")}catch(t){f=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return u(t,(function(n,r){var i=!0;-1===e.allowedAttributes.indexOf(r)&&(i=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(r)&&(i=l(n)&&e.allowedReferences.some((function(t){return 0===n.indexOf(t)}))),i||(s(33,!1,void 0,{"Invalid attribute in config":"".concat(r)}),delete t[r])})),t},e.parseStyle=function(t){return t.split(";").reduce((function(t,e){e=e.split(":").map((function(t){return t.trim()}));var n=e.shift();return n&&e.length&&(t[n.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.join(":")),t}),{})},e.setElementHTML=function(t,n){t.innerHTML=e.emptyHTML,n&&new e(n).addToDOM(t)},e.prototype.addToDOM=function(i){return function i(a,l){var d;return c(a).forEach((function(a){var c=a.tagName,h=a.textContent?t.doc.createTextNode(a.textContent):void 0,f=e.bypassHTMLFiltering;if(c)if("#text"===c)var p=h;
2else if(-1!==e.allowedTags.indexOf(c)||f){c=t.doc.createElementNS("svg"===c?n:l.namespaceURI||n,c);var m=a.attributes||{};u(a,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(m[e]=t)})),r(c,f?m:e.filterUserAttributes(m)),a.style&&o(c,a.style),h&&c.appendChild(h),i(a.children||[],c),p=c}else s(33,!1,void 0,{"Invalid tagName in config":c});p&&l.appendChild(p),d=p})),d}(this.nodes,i)},e.prototype.parseMarkup=function(t){var n=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),f)t=(new DOMParser).parseFromString(d?d.createHTML(t):t,"text/html");else{var r=i("div");r.innerHTML=t,t={body:r}}var o=function(t,n){var r=t.nodeName.toLowerCase(),i={tagName:r};if("#text"===r&&(i.textContent=t.textContent||""),r=t.attributes){var s={};[].forEach.call(r,(function(t){"data-style"===t.name?i.style=e.parseStyle(t.value):s[t.name]=t.value})),i.attributes=s}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,(function(t){o(t,a)})),a.length&&(i.children=a)}n.push(i)};return[].forEach.call(t.body.childNodes,(function(t){return o(t,n)})),n},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=h,e.bypass
2HTMLFiltering=!1,e}(),a})),e(n,"Core/FormatUtilities.js",[n["Core/DefaultOptions.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e,n,i){t=+t||0,e=+e;var o=r.lang,u=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),d=e;if(-1===e)e=Math.min(u,20);else if(s(e)){if(e&&c[1]&&0>c[1]){var h=e+ +c[1];0<=h?(c[0]=(+c[0]).toExponential(h).split("e")[0],e=h):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;h=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,u)-1)).toFixed(e);var f=3<(u=String(l(h))).length?u.length%3:0;return n=a(n,o.decimalPoint),i=a(i,o.thousandsSep),t=(0>t?"-":"")+(f?u.substr(0,f)+i:""),t=0>+c[1]&&!d?"0":t+u.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+i),e&&(t+=n+h.slice(-e)),c[1]&&0!=+t&&(t+="e"+c[1]),t}var r=t.defaultOptions,i=t.defaultTime,o=e.getNestedProperty,s=e.isNumber,a=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return i.dateFormat(t,e,n)},format:function(t,e,s){var a="{",l=!1,u=/f$/,c=/\.([0-9])/,d=r.lang,h=s&&s.time||i;s=s&&s.numberFormatter||n;for(var f=[];t;){var p=t.indexOf(a);if(-1===p)break;var m=t.slice(0,p);if(l){if(m=m.split(":"),a=o(m.shift()||"",e),m.length&&"number"==typeof a)if(m=m.join(":"),u.test(m)){var g=parseInt((m.match(c)||["","-1"])[1],10);null!==a&&(a=s(a,g,d.decimalPoint,-1<m.indexOf(",")?d.thousandsSep:""))}else a=h.dateFormat(m,a);f.push(a)}else f.push(m);t=t.slice(p+1),a=(l=!l)?"}":"{"}return f.push(t),f.join("")},numberFormat:n}})),e(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.clamp,r=t.pick,i=t.stableSort;return function(t){t.distribute=function t(e,o,s){var a,l=e,u=l.reducedLen||o,c=function(t,e){return(e.rank||0)-(t.rank||0)},d=function(t,e){return t.target-e.target},h=!0,f=[],p=0;for(a=e.length;a--;)p+=e[a].size;if(p>u){for(i(e,c),p=a=0;p<=u;)p+=e[a].size,a++;f=e.splice(a-1,e.length)}for(i(e,d),e=e.map((function(t){return{size:t.size,targets:[t.target],align:r(t.align,.5)}}));h;){for(a=e.length;a--;)u=e[a],c=(Math.min.apply(0,u.targets)+Math.max.apply(0,u.targets))/2,u.pos=n(c-u.size*u.align,0,o-u.size);for(a=e.length,h=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>o&&(e[a-1].pos=o-e[a-1].size),e.splice(a,1),h=!0)}return l.push.apply(l,f),a=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return l[a].pos=e.pos+n,void 0!==s&&Math.abs(l[a].pos-l[a].target)>s?(l.slice(0,a+1).forEach((function(t){return delete t.pos})),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&t(l,o,s),!0):(n+=l[a].size,a++,!1)}))})),i(l,d),l}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=t.animate,o=t.animObject,s=t.stop,a=n.deg2rad,l=n.doc,u=n.svg,c=n.SVG_NS,d=n.win,h=r.addEvent,f=r.attr,p=r.createElement,m=r.css,g=r.defined,y=r.erase,_=r.extend,v=r.fireEvent,b=r.isArray,w=r.isFunction,M=r.isString,S=r.merge,C=r.objectEach,A=r.pick,x=r.pInt,E=r.syncTimeout,L=r.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=c,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY roun
2ded".split(" ")}return t.prototype._defaultGetter=function(t){return t=A(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var r=this.zIndexSetter();return r||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "),t!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var r,i,o,s={},a=this.renderer,l=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||M(n))&&(this.alignTo=r=n||"renderer",y(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,r=this.alignTo),n=A(n,a[r],"scrollablePlotBox"===r?a.plotBox:void 0,a),r=t.align;var u=t.verticalAlign;return a=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===r?i=1:"center"===r&&(i=2),i&&(a+=(n.width-(t.width||0))/i),s[e?"translateX":"x"]=Math.round(a),"bottom"===u?o=1:"middle"===u&&(o=2),o&&(l+=(n.height-(t.height||0))/o),s[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var r=this,s=o(A(e,this.renderer.globalAnimation,!0));return e=s.defer,A(l.hidden,l.msHidden,l.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(n&&(s.complete=n),E((function(){r.element&&i(r,t,s)}),e)):(this.attr(t,void 0,n||s.complete),C(t,(function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var r=t.split(" ");if(t=r[r.length-1],(r=r[0])&&"none"!==r&&n.svg){this.fakeTS=!0,this.ySetter=this.xSetter,r=r.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var i=l.createElementNS(c,"tspan");f(i,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":r,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),i.appendChild(e)}));var o=0;[].forEach.call(t.querySelectorAll("text tspan"),(function(t){o+=Number(t.getAttribute("dy"))})),(r=l.createElementNS(c,"tspan")).textContent="​",f(r,{x:Number(e.getAttribute("x")),dy:-o}),i.appendChild(r),t.insertBefore(i,t.firstChild)}},t.prototype.attr=function(t,e,n,r){var i,o,a,l=this.element,u=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(C(t,(function(e,n){o=!1,r||s(this,n),this.symbolName&&-1!==u.indexOf(n)&&(i||(this.symbolAttr(t),i=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),g(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,n,r){var i,o,s,a,l,u,c,d,h,f,p,m=this.renderer,y=[];v(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(s=t[o],l=m.gradients,u=t.stops,h=r.radialReference,b(s)&&(t[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&h&&!g(s.gradientUnits)&&(a=s,s=S(s,m.getRadialAttr(h,a),{gradientUnits:"userSpaceOnUse"})),C(s,(function(t,e){"id"!==e&&y.push(e,t)})),C(u,(function(t){y.push(t)})),y=y.join(","),l[y])f=l[y].attr("id");else{s.id=f=L();var _=l[y]=m.createElement(o).attr(s).add(m.defs);_.radAttr=a,_.stops=[],u.forEach((function(t){0===t[1].indexOf("rgba")?(i=e.parse(t[1]),c=i.get("rgb"),d=i.get("a")):(c=t[1],d=1),t=m.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(_),_.stops.push(t)}))}p="url("+m.url+"#"+f+")",r.setAttribute(n,p),r.gradient=y,t.toString=function(){return p}}}))},t.prototype.css=function(t){var e=this.styles,n={},r=this.element,i=!e;if(t.color&&(t.fill=t.color),e&&C(t,(function(t,r){e&&e[r]!==t&&(n[r]=t,i=!0)})),i){if(e&&(t=_(e,n)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===r.nodeName.toLowerCase()&&t.width)var o=this.textWidth=x(t.width);this.styles=t,o&&!u&&this.renderer.forExport&&delete t.width;var s=S(t);r.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(t){return s&&delete s[t]})),m(r,s),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+x(n[t])*A(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,r=e.ownerSVGElement,i=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,s(t),t.clipPath&&r){var o=t.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(o.element.i
2d)&&t.removeAttribute("clip-path")})),t.clipPath=o.destroy()}if(t.stops){for(r=0;r<t.stops.length;r++)t.stops[r].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),n.styledMode||t.destroyShadows();i&&i.div&&0===i.div.childNodes.length;)e=i.parentGroup,t.safeRemoveChild(i.div),delete i.div,i=e;t.alignTo&&y(n.alignedObjects,t),C(t,(function(e,n){t[n]&&t[n].parentGroup===t&&t[n].destroy&&t[n].destroy(),delete t[n]}))},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},t.prototype.dSetter=function(t,e,n){b(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,e,n){return e&&e.join?(n?t+" ":"")+e.join(" "):(e||"").toString()}),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:A(t,150),complete:function(){e.hide()}})},t.prototype.fillSetter=function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},t.prototype.getBBox=function(e,n){var r=this.alignValue,i=this.element,o=this.renderer,s=this.styles,l=this.textStr,u=o.cache,c=o.cacheKeys,d=i.namespaceURI===this.SVG_NS;n=A(n,this.rotation,0);var h,f=o.styledMode?i&&t.prototype.getStyle.call(i,"font-size"):s&&s.fontSize;if(g(l)){var p=l.toString();-1===p.indexOf("<")&&(p=p.replace(/[0-9]/g,"0")),p+=["",n,f,this.textWidth,r,s&&s.textOverflow,s&&s.fontWeight].join()}if(p&&!e&&(h=u[p]),!h){if(d||o.forExport){try{var y=this.fakeTS&&function(t){var e=i.querySelector(".highcharts-text-outline");e&&m(e,{display:t})};w(y)&&y("none"),h=i.getBBox?_({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},w(y)&&y("")}catch(t){}(!h||0>h.width)&&(h={x:0,y:0,width:0,height:0})}else h=this.htmlGetBBox();if(o.isSVG&&(o=h.width,e=h.height,d&&(h.height=e={"11px,17":14,"13px,20":16}[""+(f||"")+",".concat(Math.round(e))]||e),n)){d=Number(i.getAttribute("y")||0)-h.y,r={right:1,center:.5}[r||0]||0,s=n*a,f=(n-90)*a;var v=o*Math.cos(s);n=o*Math.sin(s),y=Math.cos(f),s=Math.sin(f),v=(y=(f=(o=h.x+r*(o-v)+d*y)+v)-e*y)-v,n=(e=(r=(d=h.y+d-r*n+d*s)+n)-e*s)-n,h.x=Math.min(o,f,y,v),h.y=Math.min(d,r,e,n),h.width=Math.max(o,f,y,v)-h.x,h.height=Math.max(d,r,e,n)-h.y}if(p&&(""===l||0<h.height)){for(;250<c.length;)delete u[c.shift()];u[p]||c.push(p),u[p]=h}}return h},t.prototype.getStyle=function(t){return d.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?p(e):l.createElementNS(this.SVG_NS,e),this.renderer=t,v(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var n=this.onEvents;return n[t]&&n[t](),n[t]=h(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,n){this.opacity=t=Number(Number(t).toFixed(3)),n.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(M(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,e){var n=this;e=S(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var r=this.renderer.url,i=this.text||this,o=i.textPath,s=e.attributes,a=e.enabled;return t=t||o&&o.path,o&&o.undo(),t&&a?(e=h(i,"afterModifyTree",(function(e){if(t&&a){var o=t.attr("id");o||t.attr("id",o=L());var l={x:0,y:0};g(s.dx)&&(l.dx=s.dx,delete s.dx),g(s.dy)&&(l.dy=s.dy,delete s.dy),i.attr(l),n.attr({transform:""}),n.box&&(n.box=n.box.destroy()),l=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:_(s,{"text-anchor":s.textAnchor,href:""+r+"#".concat(o)}),children:l}}}
2)),i.textPath={path:t,undo:e}):(i.attr({dx:0,dy:0}),delete i.textPath),this.added&&(i.textCache="",this.renderer.buildText(i)),this},t.prototype.shadow=function(t,e,n){var r,i=[],o=this.element,s=this.oldShadowOptions,a={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},l=!1;if(!0===t?r=a:"object"==typeof t&&(r=_(a,t)),r&&(r&&s&&C(r,(function(t,e){t!==s[e]&&(l=!0)})),l&&this.destroyShadows(),this.oldShadowOptions=r),r){if(!this.shadows){var u=r.opacity/r.width,c=this.parentInverted?"translate(".concat(r.offsetY,", ").concat(r.offsetX,")"):"translate(".concat(r.offsetX,", ").concat(r.offsetY,")");for(a=1;a<=r.width;a++){var d=o.cloneNode(!1),h=2*r.width+1-2*a;f(d,{stroke:t.color||"#000000","stroke-opacity":u*a,"stroke-width":h,transform:c,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),n&&(f(d,"height",Math.max(f(d,"height")-h,0)),d.cutHeight=h),e?e.element.appendChild(d):o.parentNode&&o.parentNode.insertBefore(d,o),i.push(d)}this.shadows=i}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,n,r){this[n]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",r),r.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===e&&this.hasStroke?(r.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(r.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=x(t);else if(""!==t){var n=l.createElementNS(c,"rect");f(n,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(n),e=n.getBBox().width,n.parentNode.removeChild(n)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(n){e[n]=A(t[n],e[n])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,n=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(n,e.firstChild):e.appendChild(n),n.textContent=String(A(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var r=this.shadows;if(r)for(var i=r.length;i--;)n.call(r[i],"height"===t?Math.max(e-(r[i].cutHeight||0),0):"d"===t?this.d:e,t,r[i])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,r=this.rotation,i=this.matrix,o=this.element,s=this.translateX||0,a=this.translateY||0;n&&(s+=this.width,a+=this.height),s=["translate("+s+","+a+")"],g(i)&&s.push("matrix("+i.join(",")+")"),n?s.push("rotate(90) scale(-1,1)"):r&&s.push("rotate("+r+" "+A(this.rotationOriginX,o.getAttribute("x"),0)+" "+A(this.rotationOriginY,o.getAttribute("y")||0)+")"),(g(t)||g(e))&&s.push("scale("+A(t,1)+" "+A(e,1)+")"),s.length&&!(this.text||this).textPath&&o.setAttribute("transform",s.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,o=this.element;n=i===n.box;var s,a=!1,l=this.added;if(g(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):g(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&r&&(r.handleZ=!0),s=(e=i.childNodes).length-1;0<=s&&!a;s--){l=(r=e[s]).getAttribute("data-z-index");var u=!g(l);r!==o&&(0>t&&u&&!n&&!s?(i.insertBefore(o,e[s]),a=!0):(x(l)<=t||u&&(!g(t)||0<=t))&&(i.insertBefore(o,e[s+1]||null),a=!0))}a||(i.insertBefore(o,e[n?3:0]||null),a=!0)}return a},t}(),t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(r,i,o){e.rendererTypes[r]=i,n&&!o||(n=r,t.Renderer=i)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.defined,i=e.extend,o=e.isNumber,s=e.merge,a=e.pick,l=e.removeEvent;return function(e){function u(t,n,r,i,o,s,a,l,c,d){var h,f=e.call(this)||this;return f.paddingLeftSetter=f.paddingSetter,f.paddingRightSetter=f.paddingSetter,f.init(t,"g"),f.textStr=n,f.x=r,f.y=i,f.anchorX=s,f.anchorY=a,f.baseline=c,f.className=d,f.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&f.addClass("highcharts-"+d),f.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((h=/^url\((.*?)\)$/.test(o))||f.renderer.symbols[o])&&(f.symbolKey=o),f.bBox=u.emptyBBox,f.padding=3,f.baselineOffset=0,f.needsBox=t.styledMode||h,f.deferredAttr={},f.alignFactor=0,f}return n(u,e),u.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},u.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},u.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},u.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},u.prototype.css=function(e){if(e){var n={};e=s(e),u.textProps.forEach((function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var r="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():r&&this.updateBoxSize()}return t.prototype.css.call(this,e)},u.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},u.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},u.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},u.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},u.prototype.heightSetter=function(t){this.heightSetting=t},u.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:r(t)?t:"",x:this.x,y:this.y}),this.box&&r(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},u.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},u.prototype.rSetter=function(t,e){this.boxAttr(e,t)},u.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},u.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},u.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},u.prototype["text-alignSetter"]=function(t){this.textAlign=t},u.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},u.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,n={},s=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!r(t.textStr)?u.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*s,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=s+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),n.x=t,n.y=(this.baseline?-this.baselineOffset:0)+t,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(i(n,this.deferredAttr)),this.deferredAttr={})},u.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=a(this.paddingLeft,this.padding);r(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||
2(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e}},u.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},u.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},u.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},u.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},u.emptyBBox={width:0,height:0,x:0,y:0},u.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),u}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,r,o){var a=[];if(o){var l=o.start||0,u=s(o.r,n);n=s(o.r,r||n);var c=(o.end||0)-.001;r=o.innerR;var d=s(o.open,.001>Math.abs((o.end||0)-l-2*Math.PI)),h=Math.cos(l),f=Math.sin(l),p=Math.cos(c),m=Math.sin(c);l=s(o.longArc,.001>c-l-Math.PI?0:1),a.push(["M",t+u*h,e+n*f],["A",u,n,0,l,s(o.clockwise,1),t+u*p,e+n*m]),i(r)&&a.push(d?["M",t+r*p,e+r*m]:["L",t+r*p,e+r*m],["A",r,r,0,l,i(o.clockwise)?1-o.clockwise:0,t+r*h,e+r*f]),d||a.push(["Z"])}return a}function n(t,e,n,i,o){return o&&o.r?r(t,e,n,i,o):[["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["Z"]]}function r(t,e,n,r,i){return[["M",t+(i=i&&i.r||0),e],["L",t+n-i,e],["C",t+n,e,t+n,e,t+n,e+i],["L",t+n,e+r-i],["C",t+n,e+r,t+n,e+r,t+n-i,e+r],["L",t+i,e+r],["C",t,e+r,t,e+r,t,e+r-i],["L",t,e+i],["C",t,e,t,e,t+i,e]]}var i=t.defined,o=t.isNumber,s=t.pick;return{arc:e,callout:function(t,e,n,i,s){var a=Math.min(s&&s.r||0,n,i),l=a+6,u=s&&s.anchorX;s=s&&s.anchorY||0;var c=r(t,e,n,i,{r:a});return o(u)?(t+u>=n?s>e+l&&s<e+i-l?c.splice(3,1,["L",t+n,s-6],["L",t+n+6,s],["L",t+n,s+6],["L",t+n,e+i-a]):c.splice(3,1,["L",t+n,i/2],["L",u,s],["L",t+n,i/2],["L",t+n,e+i-a]):0>=t+u?s>e+l&&s<e+i-l?c.splice(7,1,["L",t,s+6],["L",t-6,s],["L",t,s-6],["L",t,e+a]):c.splice(7,1,["L",t,i/2],["L",u,s],["L",t,i/2],["L",t,e+a]):s&&s>i&&u>t+l&&u<t+n-l?c.splice(5,1,["L",u+6,e+i],["L",u,e+i+6],["L",u-6,e+i],["L",t+a,e+i]):s&&0>s&&u>t+l&&u<t+n-l&&c.splice(1,1,["L",u-6,e],["L",u,e-6],["L",u+6,e],["L",n-a,e]),c):c},circle:function(t,n,r,i){return e(t+r/2,n+i/2,r/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,n,r){return[["M",t+n/2,e],["L",t+n,e+r/2],["L",t+n/2,e+r],["L",t,e+r/2],["Z"]]},rect:n,roundedRect:r,square:n,triangle:function(t,e,n,r){return[["M",t+n/2,e],["L",t+n,e+r],["L",t,e+r],["Z"]]},"triangle-down":function(t,e,n,r){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+r],["Z"]]}}})),e(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=e.doc,i=e.SVG_NS,o=e.win,s=n.attr,a=n.extend,l=n.fireEvent,u=n.isString,c=n.objectEach,d=n.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,n=e.element,i=e.renderer,o=d(e.textStr,"").toString(),s=-1!==o.indexOf("<"),a=n.childNodes;i=this.width&&!e.added&&i.box;var l=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(l!==e.textCache){for(e.textCache=l,delete e.actualWidth,l=a.length;l--;)n.removeChild(a[l]);s||this.ellipsis||this.width||e.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))?""!==o&&(i&&i.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(n),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),i&&i.removeChild(n)):n.appendChild(r.createTextNode(this.unescapeEntities(o))),u(this.textOutline)&&e.a
2pplyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,a=s(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),s(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var l=this.width||0;if(l){var u=function(t,o){var u=t.textContent||"",c=u.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1<c.length||1<n.element.childNodes.length),h=e.getLineHeight(o),f=0,p=n.actualWidth;if(e.ellipsis)u&&e.truncate(t,u,void 0,0,Math.max(0,l-parseInt(e.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(d){for(u=[],d=[];o.firstChild&&o.firstChild!==t;)d.push(o.firstChild),o.removeChild(o.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<f&&(u.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===f&&p||0,l,(function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")})),p=n.actualWidth,f++;d.forEach((function(e){o.insertBefore(e,t)})),u.forEach((function(e){o.insertBefore(r.createTextNode(e),t),(e=r.createElementNS(i,"tspan")).textContent="​",s(e,{dy:h,x:a}),o.insertBefore(e,t)}))}},c=function(t){[].slice.call(t.childNodes).forEach((function(e){e.nodeType===o.Node.TEXT_NODE?u(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(n.actualWidth=0),c(e))}))};c(n.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===o.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,n=function(r,i){var o=r.attributes;o=void 0===o?{}:o;var s=r.children,l=r.style;l=void 0===l?{}:l;var u=r.tagName,c=e.renderer.styledMode;"b"===u||"strong"===u?c?o.class="highcharts-strong":l.fontWeight="bold":"i"!==u&&"em"!==u||(c?o.class="highcharts-emphasized":l.fontStyle="italic"),l&&l.color&&(l.fill=l.color),"br"===u?(o.class="highcharts-br",r.textContent="​",(i=t[i+1])&&i.textContent&&(i.textContent=i.textContent.replace(/^ +/gm,""))):"a"===u&&s&&s.some((function(t){return"#text"===t.tagName}))&&(r.children=[{children:s,tagName:"tspan"}]),"#text"!==u&&"a"!==u&&(r.tagName="tspan"),a(r,{attributes:o,style:l}),s&&s.filter((function(t){return"#text"!==t.tagName})).forEach(n)};t.forEach(n),l(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,n,r,i,o){var s,a=this.svgElement,l=a.renderer,u=a.rotation,c=[],d=n?1:0,h=(e||n||"").length,f=h,p=function(i,s){s=s||i;var u=t.parentNode;if(u&&void 0===c[s])if(u.getSubStringLength)try{c[s]=r+u.getSubStringLength(0,n?s+1:s)}catch(t){}else l.getSpanWidth&&(t.textContent=o(e||n,i),c[s]=r+l.getSpanWidth(a,t));return c[s]};a.rotation=0;var m=p(t.textContent.length);if(r+m>i){for(;d<=h;)f=Math.ceil((d+h)/2),n&&(s=o(n,f)),m=p(f,s&&s.length-1),d===h?d=h+1:m>i?h=f-1:d=f;0===h?t.textContent="":e&&h===e.length-1||(t.textContent=s||o(e||n,f))}n&&n.splice(0,f),a.actualWidth=m,a.rotation=u},e.prototype.unescapeEntities=function(t,e){return c(this.renderer.escapes,(function(n,r){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),r))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,s,a,l){var u,c=n.charts,d=n.deg2rad,h=n.doc,f=n.isFirefox,p=n.isMS,m=n.isWebKit,g=n.noop,y=n.SVG_NS,_=n.symbolSizes,v=n.win,b=l.addEvent,w=l.attr,M=l.createElement,S=l.css,C=l.defined,A=l.destroyObjectProperties,x=l.extend,E=l.isArray,L=l.isNumber,T=l.isObject,D=l.isString,k=l.merge,O=l.pick,I=l.pInt,N=l.uniqueKey;return n=function(){function n(t,e,n,r,i,o,s){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,n,r,i,o,s)}return n.prototype.init=function(t,e,n,r,i,o,s){var a,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=l.element;s||l.css(this.getStyle(r)),t.appendChild(u),w(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&w(u,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=u,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 10.2.1")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=i,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),f&&t.getBoundingClientRect&&((e=function(){S(t,{left:0,top:0}),a=t.getBoundingClientRect(),S(t,{left:Math.ceil(a.left)-a.left+"px",to
2p:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(v,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((f||m)&&h.getElementsByTagName("base").length){if(!C(u)){var e=N();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(h.body),S(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=h.elementFromPoint(6,6);u="hitme"===(n&&n.id),h.body.removeChild(e)}if(u)return v.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=x({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),A(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new a(t).buildSVG()},n.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map((function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)})))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},n.prototype.button=function(e,n,r,i,o,s,a,l,u,c){void 0===o&&(o={});var d=this.label(e,n,r,u,void 0,void 0,c,void 0,"button"),h=this.styledMode;e=o.states||{};var f=0;delete(o=k(o)).states;var m=k({color:"#333333",cursor:"pointer",fontWeight:"normal"},o.style);delete o.style;var g=t.filterUserAttributes(o);if(d.attr(k({padding:8,r:2},g)),!h){g=k({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},g);
2var y=(s=k(g,{fill:"#e6e6e6"},t.filterUserAttributes(s||e.hover||{}))).style;delete s.style;var _=(a=k(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var v=(l=k(g,{style:{color:"#cccccc"}},t.filterUserAttributes(l||e.disabled||{}))).style;delete l.style}return b(d.element,p?"mouseover":"mouseenter",(function(){3!==f&&d.setState(1)})),b(d.element,p?"mouseout":"mouseleave",(function(){3!==f&&d.setState(f)})),d.setState=function(t){1!==t&&(d.state=f=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),h||(d.attr([g,s,a,l][t||0]),T(t=[m,y,_,v][t||0])&&d.css(t))},h||d.attr(g).css(x({cursor:"default"},m)),d.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==f&&i.call(d,t)}))},n.prototype.crispLine=function(t,e,n){void 0===n&&(n="round");var r=t[0],i=t[1];return C(r[1])&&r[1]===i[1]&&(r[1]=i[1]=Math[n](r[1])-e%2/2),C(r[2])&&r[2]===i[2]&&(r[2]=i[2]=Math[n](r[2])+e%2/2),t},n.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return E(t)?e.d=t:T(t)&&x(e,t),this.createElement("path").attr(e)},n.prototype.circle=function(t,e,n){return t=T(t)?t:void 0===t?{}:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},n.prototype.arc=function(t,e,n,r,i,o){return T(t)?(e=(r=t).y,n=r.r,t=r.x):r={innerR:r,start:i,end:o},(t=this.symbol("arc",t,e,n,n,r)).r=n,t},n.prototype.rect=function(t,e,n,r,i,o){i=T(t)?t.r:i;var s=this.createElement("rect");return t=T(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(r,0)},this.styledMode||(void 0!==o&&(t["stroke-width"]=o,t=s.crisp(t)),t.fill="none"),i&&(t.r=i),s.rSetter=function(t,e,n){s.r=t,w(n,{rx:t,ry:t})},s.rGetter=function(){return s.r||0},s.attr(t)},n.prototype.setSize=function(t,e,n){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:O(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},n.prototype.image=function(t,e,n,r,i,o){var s={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};L(e)&&(s.x=e),L(n)&&(s.y=n),L(r)&&(s.width=r),L(i)&&(s.height=i);var l=this.createElement("image").attr(s);return e=function(e){a(l.element,t),o.call(l,e)},o?(a(l.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n=new v.Image,b(n,"load",e),n.src=t,n.complete&&e({})):a(l.element,t),l},n.prototype.symbol=function(t,e,n,r,i,o){var s,a=this,l=/^url\((.*?)\)$/,u=l.test(t),d=!u&&(this.symbols[t]?t:"circle"),f=d&&this.symbols[d];if(f){"number"==typeof e&&(s=f.call(this.symbols,Math.round(e||0),Math.round(n||0),r||0,i||0,o));var p=this.path(s);a.styledMode||p.attr("fill","none"),x(p,{symbolName:d||void 0,x:e,y:n,width:r,height:i}),o&&x(p,o)}else if(u){var m=t.match(l)[1],g=p=this.image(m);g.imgwidth=O(_[m]&&_[m].width,o&&o.width),g.imgheight=O(_[m]&&_[m].height,o&&o.height);var y=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){g[t+"Setter"]=function(t,e){var n=this["img"+e];this[e]=t,C(n)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(t=((this[e]||0)-n)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}})),C(e)&&g.attr({x:e,y:n}),g.isImg=!0,C(g.imgwidth)&&C(g.imgheight)?y(g):(g.attr({width:0,height:0}),M("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(S(this,{position:"absolute",top:"-999em"}),h.body.appendChild(this)),_[m]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&y(g),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:m}),this.imgCount++)}return p},n.prototype.clipRect=function(t,e,n,r){var i=N()+"-",o=this.createElement("clipPath").attr({id:i}).add(this.defs);return(t=this.rect(t,e,n,r,0).add(o)).id=i,t.clipPath=o,t.count=0,t},n.prototype.text=function(t,e,n,r){var i={};return!r||!this.allowHTML&&this.forExport?(i.x=Math.round(e||0),n&&(i.y=Math.round(n)),C(t)&&(i.text=t),t=this.createElement("text").attr(i),(!r||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,n){for(var r,i=n.getElementsByTagName("tspan"),o=n.getAttribute(e),s=0;s<i.length;s++)(r=i[s]).getAttribute(e)===o&&r.setAttribute(e,t);n.setAttribute(e,t)}),t):this.html(t,e,n)},n.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!v.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&i.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?I(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var r=t;return e&&n&&(r=Math.max(r*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:r}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i<t.length;
2i++)D(n[0])&&L(t[i])&&n.length===r[n[0].toUpperCase()]&&t.splice(i,0,n[0].replace("M","L").replace("m","l")),"string"==typeof t[i]&&(n.length&&e.push(n.slice(0)),n.length=0),n.push(t[i]);return e.push(n.slice(0)),e},n.prototype.label=function(t,e,n,r,i,s,a,l,u){return new o(this,t,e,n,r,i,s,a,l,u)},n.prototype.alignElements=function(){this.alignedObjects.forEach((function(t){return t.align()}))},n}(),x(n.prototype,{Element:i,SVG_NS:y,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:s,draw:g}),r.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.isFirefox,o=t.isMS,s=t.isWebKit,a=t.win,l=n.css,u=n.defined,c=n.extend,d=n.pick,h=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,r=t.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=d(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var r=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),l(this.element,t),r&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,r=this.translateY||0,i=this.x||0,o=this.y||0,s=this.textAlign||"left",a={left:0,center:.5,right:1}[s],c=this.styles;if(c=c&&c.whiteSpace,l(e,{marginLeft:n,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:n+1,marginTop:r+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var d=this.rotation,f=this.textWidth&&h(this.textWidth),p=[d,s,e.innerHTML,this.textWidth,this.textAlign].join(),m=void 0;if(m=!1,f!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else l(e,{width:"",whiteSpace:c||"nowrap"}),g=e.offsetWidth;(f>this.oldTextWidth||g>f)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(l(e,{width:g>f||d?f+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=f,m=!0)}this.hasBoxWidthChanged=m,p!==this.cTT&&(m=t.fontMetrics(e.style.fontSize,e).b,!u(d)||d===(this.oldRotation||0)&&s===this.oldAlign||this.setSpanRotation(d,a,m),this.getSpanCorrection(!u(d)&&this.textPxLength||e.offsetWidth,m,a,d,s)),l(e,{left:i+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=d,this.oldAlign=s}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var r={},u=o&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":s?"-webkit-transform":i?"MozTransform":a.opera?"-o-transform":void 0;u&&(r[u]=r.transform="rotate("+t+"deg)",r[u+(i?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",l(this.element,r))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=r.attr,s=r.createElement,a=r.extend,l=r.pick;return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}
2return i(r,n),r.compose=function(t){return-1===r.composedClasses.indexOf(t)&&(r.composedClasses.push(t),t.prototype.html=r.prototype.html),t},r.prototype.html=function(n,r,i){var u=this.createElement("span"),c=u.element,d=u.renderer,h=d.isSVG,f=function(t,n){["opacity","visibility"].forEach((function(r){t[r+"Setter"]=function(i,o,s){var a=t.div?t.div.style:n;e.prototype[r+"Setter"].call(this,i,o,s),a&&(a[o]=i)}})),t.addedSetters=!0};return u.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,u.doTransform=!0)},h&&f(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(t,e){"align"===e?u.alignValue=u.textAlign=t:u[e]=t,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:n,x:Math.round(r),y:Math.round(i)}).css({position:"absolute"}),d.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",u.css=u.htmlCss,h&&(u.add=function(t){var e=d.box.parentNode,n=[];if(this.parentGroup=t){var r=t.div;if(!r){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function i(e,n){t[n]=e,"translateX"===n?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var l=o(t.element,"class"),c=t.styles||{},d=(r=t.div=t.div||s("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},r||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(r),on:function(){return n[0].div&&u.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:i,translateYSetter:i}),t.addedSetters||f(t)}))}}else r=e;return r.appendChild(c),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},r.composedClasses=[],r}(n)})),e(n,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,r=t.isFunction,i=t.objectEach,o=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},i(e.events,(function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(o(t,i,t.eventOptions[i]),delete t.eventOptions[i]),r(e)&&(t.eventOptions[i]=e,n(t,i,e)))}))}}(e||(e={})),e})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=e.deg2rad,i=n.clamp,o=n.correctFloat,s=n.defined,a=n.destroyObjectProperties,l=n.extend,u=n.fireEvent,c=n.isNumber,d=n.merge,h=n.objectEach,f=n.pick;return e=function(){function e(t,e,n,r,i){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,u(this,"init"),n||r||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,r=n.options,i=n.chart,a=n.categories,d=n.logarithmic,h=n.names,p=e.pos,m=f(e.options&&e.options.labels,r.labels),g=n.tickPositions,y=p===g[0],_=p===g[g.length-1],v=(!m.step||1===m.step)&&1===n.tickInterval;g=g.info;var b,w=e.label;if(a=this.parameters.category||(a?f(a[p],h[p],p):p),d&&c(a)&&(a=o(d.lin2log(a))),n.dateTime)if(g)var M=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&g.higherRanks[p]||g.unitName]),S=M.main;else c(a)&&(S=n.dateTime.getXDateFormat(a,r.dateTimeLabelFormats||{}));e.isFirst=y,e.isLast=_;var C={axis:n,chart:i,dateTimeLabelFormat:S,isFirst:y,isLast:_,pos:p,tick:e,tickPositionInfo:g,value:a};u(this,"labelFormat",C);var A=function(e){return m.formatter?m.formatter.call(e,e):m.format?(e.text=n.defaultLabelFormatter.call(e),t.format(m.format,e,i)):n.defaultLabelFormatter.call(e,e)};r=A.call(C,C);var x=M&&M.list;e.shortenLabel=x?function(){for(b=0;b<x.length;b++)if(l(C,{dateTimeLabelFormat:x[b]}),w.attr({text:A.call(C,C)}),w.getBBox().width<n.getSlotWidth(e)-2*m.padding)return;w.attr({text:""})}:void 0,v&&n._addedPlotLB&&e.moveLabel(r,m),s(w)||e.movedLabel?w&&w.textStr!==r&&!v&&(!w.textWidth||m.style.width||w.styles.width||w.css({width:null}),w.attr({text:r}),w.textPxLength=w.getBBox().width):(e.label=w=e.createLabel({x:0,y:0},r,m),e.rotation=0)},e.prototype.createLabel=function(t,e,n){var r=this.axis,i=r.chart;return(t=s(e)&&n.enabled?i.renderer.text(e,t.x,t.y,n.useHTML).add(r.labelGroup):null)&&(i.styledMode||t.css(d(n.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,n,r){var s=this.axis,a=s.chart,l=r&&a.oldChartHeight||a.chartHe
2ight;return(t={x:t?o(s.translate(e+n,void 0,void 0,r)+s.transB):s.left+s.offset+(s.opposite?(r&&a.oldChartWidth||a.chartWidth)-s.right-s.left:0),y:t?l-s.bottom+s.offset-(s.opposite?s.height:0):o(l-s.translate(e+n,void 0,void 0,r)-s.transB)}).y=i(t.y,-1e5,1e5),u(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,n,i,o,a,l,c){var d=this.axis,h=d.transA,f=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,p=d.staggerLines,m=d.tickRotCorr||{x:0,y:0},g=i||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),y={};return n=0===d.side?n.rotation?-8:-n.getBBox().height:2===d.side?m.y+8:Math.cos(n.rotation*r)*(m.y-n.getBBox(!1,0).height/2),s(o.y)&&(n=0===d.side&&d.horiz?o.y+n:o.y),t=t+o.x+g+m.x-(a&&i?a*h*(f?-1:1):0),e=e+n-(a&&!i?a*h*(f?1:-1):0),p&&(i=l/(c||1)%p,d.opposite&&(i=p-i-1),e+=d.labelOffset/p*i),y.x=t,y.y=Math.round(e),u(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:a,index:l}),y},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,n,r,i,o){return o.crispLine([["M",t,e],["L",t+(i?0:-n),e+(i?n:0)]],r)},e.prototype.handleOverflow=function(t){var e=this.axis,n=e.options.labels,i=t.x,o=e.chart.chartWidth,s=e.chart.spacing,a=f(e.labelLeft,Math.min(e.pos,s[3]));s=f(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-s[1]));var l,u=this.label,c=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||u.attr("align")],h=u.getBBox().width,p=e.getSlotWidth(this),m={},g=p,y=1;c||"justify"!==n.overflow?0>c&&i-d*h<a?l=Math.round(i/Math.cos(c*r)-a):0<c&&i+d*h>s&&(l=Math.round((o-i)/Math.cos(c*r))):(o=i+(1-d)*h,i-d*h<a?g=t.x+g*(1-d)-a:o>s&&(g=s-t.x+g*d,y=-1),(g=Math.min(p,g))<p&&"center"===e.labelAlign&&(t.x+=y*(p-g-d*(p-Math.min(h,g)))),(h>g||e.autoRotation&&(u.styles||{}).width)&&(l=g)),l&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(m.textOverflow="ellipsis"),u.css(m)))},e.prototype.moveLabel=function(t,e){var n=this,r=n.label,i=n.axis,o=i.reversed,s=!1;if(r&&r.textStr===t?(n.movedLabel=r,s=!0,delete n.label):h(i.ticks,(function(e){s||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,s=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!s&&(n.labelPos||r)){var a=n.labelPos||r.xy;r=i.horiz?o?0:i.width+i.left:a.x,i=i.horiz?a.y:o?i.width+i.left:0,n.movedLabel=n.createLabel({x:r,y:i},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var r=this.axis,i=r.horiz,o=this.pos,s=f(this.tickmarkOffset,r.tickmarkOffset);s=(o=this.getPosition(i,o,s,e)).x;var a=o.y;r=i&&s===r.pos+r.len||!i&&a===r.pos?-1:1,i=f(n,this.label&&this.label.newOpacity,1),n=f(n,1),this.isActive=!0,this.renderGridLine(e,n,r),this.renderMark(o,n,r),this.renderLabel(o,e,i,t),this.isNew=!1,u(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var r=this.axis,i=r.options,o={},s=this.pos,a=this.type,l=f(this.tickmarkOffset,r.tickmarkOffset),u=r.chart.renderer,c=this.gridLine,d=i.gridLineWidth,h=i.gridLineColor,p=i.gridLineDashStyle;"minor"===this.type&&(d=i.minorGridLineWidth,h=i.minorGridLineColor,p=i.minorGridLineDashStyle),c||(r.chart.styledMode||(o.stroke=h,o["stroke-width"]=d||0,o.dashstyle=p),a||(o.zIndex=1),t&&(e=0),this.gridLine=c=u.path().attr(o).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(r.gridGroup)),c&&(n=r.getPlotLinePath({value:s+l,lineWidth:c.strokeWidth()*n,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var r=this.axis,i=r.options,o=r.chart.renderer,s=this.type,a=r.tickSize(s?s+"Tick":"tick"),l=t.x;t=t.y;var u=f(i["minor"!==s?"tickWidth":"minorTickWidth"],!s&&r.isXAxis?1:0);i=i["minor"!==s?"tickColor":"minorTickColor"];var c=this.mark,d=!c;a&&(r.opposite&&(a[0]=-a[0]),c||(this.mark=c=o.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||c.attr({stroke:i,"stroke-width":u})),c[d?"attr":"animate"]({d:this.getMarkPath(l,t,a[0],c.strokeWidth()*n,r.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,r){var i=this.axis,o=i.horiz,s=i.options,a=this.label,l=s.labels,u=l.step;i=f(this.tickmarkOffset,i.tickmarkOffset);var d=t.x;t=t.y;var h=!0;a&&c(d)&&(a.xy=t=this.getLabelPosition(d,t,a,o,l,i,r,u),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?h=!1:!o||l.step||l.rotation||e||0===n||this.handleOverflow(t),u&&r%u&&(h=!1),h&&c(t.y)?(t.opacity=n,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var r=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:r,y:n,opacity:0}
2,void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,s,a){var l=t.animObject,u=r.defaultOptions,c=i.registerEventOptions,d=o.deg2rad,h=a.arrayMax,f=a.arrayMin,p=a.clamp,m=a.correctFloat,g=a.defined,y=a.destroyObjectProperties,_=a.erase,v=a.error,b=a.extend,w=a.fireEvent,M=a.isArray,S=a.isNumber,C=a.isString,A=a.merge,x=a.normalizeTickInterval,E=a.objectEach,L=a.pick,T=a.relativeLength,D=a.removeEvent,k=a.splat,O=a.syncTimeout,I=function(t,e){return x(e,void 0,void 0,L(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),w(this,"init",{userOptions:e}),this.opposite=L(e.opposite,this.opposite),this.side=L(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var r=this.options,i=r.labels,o=r.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=L(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===o||!0===r.categories,this.categories=r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.min=this.max=null,e=L(r.crosshair,k(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=S(i.rotation)?i.rotation:void 0,c(this,r),w(this,"afterInit")},t.prototype.setOptions=function(t){this.options=A(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],A(u[this.coll],t)),w(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=S(this.value)?this.value:NaN,r=e.chart.time,i=this.dateTimeLabelFormat,o=u.lang,s=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(n):e.tickInterval,l=s&&s.length;if(e.categories)var c="".concat(this.value);else if(i)c=r.dateFormat(i,n);else if(l&&1e3<=a)for(;l--&&void 0===c;)a>=(e=Math.pow(o,l+1))&&0==10*n%e&&null!==s[l]&&0!==n&&(c=t(n/e,-1)+s[l]);return void 0===c&&(c=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;w(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEac
2h((function(r){if(r.visible||!n.options.chart.ignoreHiddenSeries){var i=r.options,o=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((i=r.xData).length){i=e.logarithmic?i.filter(e.validatePositiveValue):i;var s=(t=r.getXExtremes(i)).min,a=t.max;S(s)||s instanceof Date||(i=i.filter(S),s=(t=r.getXExtremes(i)).min,a=t.max),i.length&&(e.dataMin=Math.min(L(e.dataMin,s),s),e.dataMax=Math.max(L(e.dataMax,a),a))}}else r=r.applyExtremes(),S(r.dataMin)&&(s=r.dataMin,e.dataMin=Math.min(L(e.dataMin,s),s)),S(r.dataMax)&&(a=r.dataMax,e.dataMax=Math.max(L(e.dataMax,a),a)),g(o)&&(e.threshold=o),(!i.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),w(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,r,i,o){var s=this.linkedParent||this,a=r&&s.old?s.old.min:s.min;if(!S(a))return NaN;var l=s.minPixelPadding;i=(s.isOrdinal||s.brokenAxis&&s.brokenAxis.hasBreaks||s.logarithmic&&i)&&s.lin2val;var u=1,c=0;return(r=r&&s.old?s.old.transA:s.transA)||(r=s.transA),n&&(u*=-1,c=s.len),s.reversed&&(c-=(u*=-1)*(s.sector||s.len)),e?(o=(t*u+c-l)/r+a,i&&(o=s.lin2val(o))):(i&&(t=s.val2lin(t)),t=u*(t-a)*r,o=(s.isRadial?t:m(t))+c+u*l+(S(o)?r*o:0)),o},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==v&&t<e||t>n)&&(v?t=p(t,e,n):s=!0),t}var n,r,i,o,s,a=this,l=a.chart,u=a.left,c=a.top,d=t.old,h=t.value,f=t.lineWidth,m=d&&l.oldChartHeight||l.chartHeight,g=d&&l.oldChartWidth||l.chartWidth,y=a.transB,_=t.translatedValue,v=t.force;return t={value:h,lineWidth:f,old:d,force:v,acrossPanes:t.acrossPanes,translatedValue:_},w(this,"getPlotLinePath",t,(function(t){_=L(_,a.translate(h,void 0,void 0,d)),_=p(_,-1e5,1e5),n=i=Math.round(_+y),r=o=Math.round(m-_-y),S(_)?a.horiz?(r=c,o=m-a.bottom,n=i=e(n,u,u+a.width)):(n=u,i=g-a.right,r=o=e(r,c,c+a.height)):(s=!0,v=!1),t.path=s&&!v?null:l.renderer.crispLine([["M",n,r],["L",i,o]],f||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var r=m(Math.floor(e/t)*t);n=m(Math.ceil(n/t)*t);var i,o=[];if(m(r+t)===r&&(i=20),this.single)return[e];for(e=r;e<=n&&(o.push(e),(e=m(e+t,i))!==s);)var s=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?L(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r,o=(r=this.max+r)-i,s=[];if(o&&o/n<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach((function(t,e,r){e&&s.push.apply(s,a.getLogTickPositions(n,r[e-1],r[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())s=s.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),i,r,t.startOfWeek));else for(t=i+(e[0]-i)%n;t<=r&&t!==s[0];t+=n)s.push(t)}return 0!==s.length&&this.trimTicks(s),s},t.prototype.adjustForMinRange=function(){var t,e,n,r,i=this.options,o=this.logarithmic,s=this.min,a=this.max,l=0;if(this.isXAxis&&void 0===this.minRange&&!o&&(g(i.min)||g(i.max)||g(i.floor)||g(i.ceiling)?this.minRange=null:(this.series.forEach((function(i){if(n=i.xData,r=i.xIncrement?1:n.length-1,1<n.length)for(t=r;0<t;t--)e=n[t]-n[t-1],(!l||e<l)&&(l=e)})),this.minRange=Math.min(5*l,this.dataMax-this.dataMin))),a-s<this.minRange){var u=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,d=(c-a+s)/2;d=[s-d,L(i.min,s-d)],u&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(s=h(d))+c,L(i.max,s+c)],u&&(a[2]=o?o.log2lin(this.dataMax):this.dataMax),(a=f(a))-s<c&&(d[0]=a-c,d[1]=L(i.min,a-c),s=h(d))}this.min=s,this.max=a},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach((function(e){var n=e.closestPointRange,r=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&g(n)&&r&&(t=g(t)?Math.min(t,n):n)})),t},t.prototype.nameToX=function(t){var e=M(this.options.categories),n=e?this.categories:this.names,r=t.options.x;if(t.series.requireSorting=!1,g(r)||(r=this.options.uniqueNames&&n?e?n.indexOf(t.name):L(n.keys[t.name],-1):t.series.autoIncrement()),-1===r){if(!e&&n)var i=n.length}else i=r;return void 0!==i?(this.names[i]=t.name,this.names.keys[t.name]=i):t.x&&(i=t.x),i},t.prototype.updateNames=function(){var t=this,e=this.names;
20<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(n,r){if(n&&n.options&&void 0!==n.name){var i=t.nameToX(n);void 0!==i&&i!==n.x&&(n.x=i,e.xData[r]=i)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,n=t.linkedParent,r=!!t.categories,i=t.isXAxis,o=t.axisPointRange||0,s=0,a=0,l=t.transA;if(i||r||o){var u=t.getClosest();n?(s=n.minPointOffset,a=n.pointRangePadding):t.series.forEach((function(e){var n=r?1:i?L(e.options.pointRange,u,0):t.axisPointRange||0,l=e.options.pointPlacement;o=Math.max(o,n),t.single&&!r||(e=e.is("xrange")?!i:i,s=Math.max(s,e&&C(l)?0:n/2),a=Math.max(a,e&&"on"===l?0:n))})),n=t.ordinal&&t.ordinal.slope&&u?t.ordinal.slope/u:1,t.minPointOffset=s*=n,t.pointRangePadding=a*=n,t.pointRange=Math.min(o,t.single&&r?1:e),i&&(t.closestPointRange=u)}t.translationSlope=t.transA=l=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=l*s,w(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,n=this.logarithmic,r=this.options,i=this.isXAxis,o=this.isLinked,s=r.tickPixelInterval,a=this.categories,l=this.softThreshold,u=r.maxPadding,c=r.minPadding,d=S(r.tickInterval)&&0<=r.tickInterval?r.tickInterval:void 0,h=S(this.threshold)?this.threshold:null;this.dateTime||a||o||this.getTickAmount();var f=L(this.userMin,r.min),p=L(this.userMax,r.max);if(o){this.linkedParent=e[this.coll][r.linkedTo];var y=this.linkedParent.getExtremes();this.min=L(y.min,y.dataMin),this.max=L(y.max,y.dataMax),r.type!==this.linkedParent.options.type&&v(11,1,e)}else{if(l&&g(h))if(this.dataMin>=h)y=h,c=0;else if(this.dataMax<=h){var _=h;u=0}this.min=L(f,y,this.dataMin),this.max=L(p,_,this.dataMax)}if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,L(this.dataMin,this.min))&&v(10,1,e),this.min=m(n.log2lin(this.min),16),this.max=m(n.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=f=Math.max(this.dataMin,this.minFromRange()),this.userMax=p=this.max,this.range=null),w(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&g(this.min)&&g(this.max)&&(e=this.max-this.min)&&(!g(f)&&c&&(this.min-=e*c),!g(p)&&u&&(this.max+=e*u)),S(this.userMin)||(S(r.softMin)&&r.softMin<this.min&&(this.min=f=r.softMin),S(r.floor)&&(this.min=Math.max(this.min,r.floor))),S(this.userMax)||(S(r.softMax)&&r.softMax>this.max&&(this.max=p=r.softMax),S(r.ceiling)&&(this.max=Math.min(this.max,r.ceiling))),l&&g(this.dataMin)&&(h=h||0,!g(f)&&this.min<h&&this.dataMin>=h?this.min=this.options.minRange?Math.min(h,this.max-this.minRange):h:!g(p)&&this.max>h&&this.dataMax<=h&&(this.max=this.options.minRange?Math.max(h,this.min+this.minRange):h)),S(this.min)&&S(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:o&&this.linkedParent&&!d&&s===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:L(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*s/Math.max(this.len,s)),i&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)})),w(this,"postProcessData",{hasExtemesChanged:b})}this.setAxisTranslation(),w(this,"initialAxisTranslation"),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=L(r.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!d&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||d||(this.tickInterval=I(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),r=this.hasVerticalPanning(),i="colorAxis"===this.coll,o=(i||!r)&&t.startOnTick;
2if(r=(i||!r)&&t.endOnTick,i=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var s=t=this.tickInterval;s<=2*t&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=I(this,s*=1.1);else n=[this.min,this.max],v(19,!1,this.chart);n.length>this.len&&(n=[n[0],n.pop()])[0]===n[1]&&(n.length=1),this.tickPositions=n,i&&(i=i.apply(this,[this.min,this.max]))&&(this.tickPositions=n=i)}this.paddedTicks=n.slice(0),this.trimTicks(n,o,r),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||i||this.adjustTickAmount()),w(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var r=t[0],i=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(w(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==r)this.min=r;else for(;this.min-o>t[0];)t.shift();if(n)this.max=i;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&g(r)&&!this.options.tickPositions&&t.push((i+r)/2)}},t.prototype.alignToOthers=function(){var t,e=this,n=[this],r=e.options,i="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,o=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&r.alignTicks||i)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){var s=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=s(this);this.chart[this.coll].forEach((function(r){var i=r.series;i.length&&i.some((function(t){return t.visible}))&&r!==e&&s(r)===a&&(t=!0,n.push(r))}))}if(t&&i){n.forEach((function(t){t=t.getThresholdAlignment(e),S(t)&&o.push(t)}));var l=1<o.length?o.reduce((function(t,e){return t+e}),0)/o.length:void 0;n.forEach((function(t){t.thresholdAlignment=l}))}return t},t.prototype.getThresholdAlignment=function(t){if((!S(this.dataMin)||this!==t&&this.series.some((function(t){return t.isDirty||t.isDirtyData})))&&this.getSeriesExtremes(),S(this.threshold))return t=p((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,n=t.tickAmount;!g(t.tickInterval)&&!n&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/e)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,n=t.max,r=t.min,i=t.options,o=t.tickPositions,s=t.tickAmount,a=t.thresholdAlignment,l=o&&o.length,u=L(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(S(a)){var d=.5>a?Math.ceil(a*(s-1)):Math.floor(a*(s-1));i.reversed&&(d=s-1-d)}if(t.hasData()&&S(r)&&S(n)){if(a=function(){t.transA*=(l-1)/(s-1),t.min=i.startOnTick?o[0]:Math.min(r,o[0]),t.max=i.endOnTick?o[o.length-1]:Math.max(n,o[o.length-1])},S(d)&&S(t.threshold)){for(;o[d]!==u||o.length!==s||o[0]>r||o[o.length-1]<n;){for(o.length=0,o.push(t.threshold);o.length<s;)void 0===o[d]||o[d]>t.threshold?o.unshift(m(o[0]-c)):o.push(m(o[o.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(l<s){for(;o.length<s;)o.length%2||r===u?o.push(m(o[o.length-1]+c)):o.unshift(m(o[0]-c));a()}if(g(e)){for(c=u=o.length;c--;)(3===e&&1==c%2||2>=e&&0<c&&c<u-1)&&o.splice(c,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;
2this.series.forEach((function(n){t=t||n.isDirtyData||n.isDirty,e=e||n.xAxis&&n.xAxis.isDirty||!1})),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=n||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),w(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,n,r,i){var o=this,s=o.chart;n=L(n,!0),o.series.forEach((function(t){delete t.kdTree})),i=b(i,{min:t,max:e}),w(o,"setExtremes",i,(function(){o.userMin=t,o.userMax=e,o.eventArgs=i,n&&s.redraw(r)}))},t.prototype.zoom=function(t,e){var n=this,r=this.dataMin,i=this.dataMax,o=this.options,s=Math.min(r,L(o.min,r)),a=Math.max(i,L(o.max,i));return w(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,o=t.newMax;e===n.min&&o===n.max||(n.allowZoomOutside||(g(r)&&(e<s&&(e=s),e>a&&(e=a)),g(i)&&(o<s&&(o=s),o>a&&(o=a))),n.displayBtn=void 0!==e||void 0!==o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(T(L(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(T(L(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),s=this.top=Math.round(T(L(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(T(L(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-s,this.right=t.chartWidth-i-e,this.len=Math.max(r?i:o,0),this.pos=r?e:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?m(t.lin2log(this.min)):this.min,max:t?m(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(L(t,0)-90*this.side+720)%360;return w(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=L(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=e["tick"===t?"tickLength":"minorTickLength"];if(n&&r){"inside"===e[t+"Position"]&&(r=-r);var i=[r,n]}return w(this,"afterTickSize",t={tickSize:i}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,r=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=n.rotation,a=this.labelMetrics(),l=Math.max(this.max-this.min,0),u=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*i>l&&1/0!==t&&1/0!==o&&l&&(e=Math.ceil(l/i)),m(e*i)},c=i,h=Number.MAX_VALUE;if(r){if(!n.staggerLines&&!n.step)if(S(s))var f=[s];else o<n.autoRotationLimit&&(f=n.autoRotation);f&&f.forEach((function(n){if(n===s||n&&-90<=n&&90>=n){var r=(e=u(Math.abs(a.h/Math.sin(d*n))))+Math.abs(n/360);r<h&&(h=r,t=n,c=e)}}))}else n.step||(c=u(a.h));return this.autoRotation=f,this.labelRotation=L(t,S(s)?s:0),c},t.prototype.getSlotWidth=function(t){var e=this.chart,n=this.horiz,r=this.options.labels,i=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];if(t&&S(t.slotWidth))return t.slotWidth;if(n&&2>r.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){if(void 0!==(t=r.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,r=this.ticks,i=this.options.labels,o=i.style,s=this.horiz,a=this.getSlotWidth(),l=Math.max(1,Math.round(a-2*i.padding)),u={},c=this.labelMetrics(),d=o.textOverflow,h=0;
2if(C(i.rotation)||(u.rotation=i.rotation||0),n.forEach((function(t){(t=r[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>h&&(h=t.label.textPxLength)})),this.maxLabelLength=h,this.autoRotation)h>l&&h>c.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(a){var f=l;if(!d){var p="clip";for(l=n.length;!s&&l--;){var m=n[l];(m=r[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>a&&m.css({width:a+"px"}),m.getBBox().height>this.len/n.length-(c.h-c.f)&&(m.specificTextOverflow="ellipsis"))}}}u.rotation&&(f=h>.5*t.chartHeight?.33*t.chartHeight:h,d||(p="ellipsis")),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(u.align=this.labelAlign),n.forEach((function(t){var e=(t=r[t])&&t.label,n=o.width,i={};e&&(e.attr(u),t.shortenLabel?t.shortenLabel():f&&!n&&"nowrap"!==o.whiteSpace&&(f<e.textPxLength||"SPAN"===e.element.tagName)?(i.width=f+"px",d||(i.textOverflow=e.specificTextOverflow||p),e.css(i)):e.styles&&e.styles.width&&!i.width&&!n&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=u.rotation)}),this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&g(this.min)&&g(this.max)},t.prototype.addTitle=function(t){var e,n=this.chart.renderer,r=this.horiz,i=this.opposite,o=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(r?{low:"left",middle:"center",high:"right"}:{low:i?"right":"left",middle:"center",high:i?"left":"right"})[o.align]),this.axisTitle=n.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(A(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new s(this,t)},t.prototype.getOffset=function(){var t=this,e=this,n=e.chart,r=e.horiz,i=e.options,o=e.side,s=e.ticks,a=e.tickPositions,l=e.coll,u=e.axisParent,c=n.renderer,d=n.inverted&&!e.isZAxis?[1,0,3,2][o]:o,h=e.hasData(),f=i.title,p=i.labels,m=n.axisOffset;n=n.clipOffset;var y,_=[-1,1,1,-1][o],v=i.className,b=0,M=0,S=0;if(e.showAxis=y=h||i.showEmpty,e.staggerLines=e.horiz&&p.staggerLines||void 0,!e.axisGroup){var C=function(e,n,r){return c.g(e).attr({zIndex:r}).addClass("highcharts-".concat(l.toLowerCase()).concat(n," ")+(t.isRadial?"highcharts-radial-axis".concat(n," "):"")+(v||"")).add(u)};e.gridGroup=C("grid","-grid",i.gridZIndex),e.axisGroup=C("axis","",i.zIndex),e.labelGroup=C("axis-labels","-labels",p.zIndex)}if(h||e.isLinked?(a.forEach((function(t){e.generateTick(t)})),e.renderUnsquish(),e.reserveSpaceDefault=0===o||2===o||{1:"left",3:"right"}[o]===e.labelAlign,L(p.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach((function(t){S=Math.max(s[t].getLabelSize(),S)})),e.staggerLines&&(S*=e.staggerLines),e.labelOffset=S*(e.opposite?-1:1)):E(s,(function(t,e){t.destroy(),delete s[e]})),f&&f.text&&!1!==f.enabled&&(e.addTitle(y),y&&!1!==f.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[r?"height":"width"];var A=f.offset;M=g(A)?0:L(f.margin,r?5:10)}e.renderLine(),e.offset=_*L(i.offset,m[o]?m[o]+(i.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},f=0===o?-e.labelMetrics().h:2===o?e.tickRotCorr.y:0,h=Math.abs(S)+M,S&&(h=h-f+_*(r?L(p.y,e.tickRotCorr.y+8*_):p.x)),e.axisTitleMargin=L(A,h),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(s,a)),"colorAxis"!==l&&(r=this.tickSize("tick"),m[o]=Math.max(m[o],(e.axisTitleMargin||0)+b+_*e.offset,h,a&&a.length&&r?r[0]+_*e.offset:0),i=!e.axisLine||i.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),n[d]=Math.max(n[d],i)),w(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,n=this.opposite,r=this.offset,i=this.horiz,o=this.left+(n?this.width:0)+r;return r=e.chartHeight-this.bottom-(n?this.height:0)+r,n&&(t*=-1),e.renderer.crispLine([["M",i?this.left:o,i?r:this.top],["L",i?e.chartWidth-this.right:o,i?r:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,n=this.top,r=this.len,i=this.options.title,o=t?e:n,s=this.opposite,a=this.offset,l=i.x,u=i.y,c=this.axisTitle,d=this.chart.renderer.fontMetrics(i.style.fontSize,c);return c=c?Math.max(c.getBBox(!1,0).height-d.h-1,0):0,r={low:o+(t?0:r),middle:o+r/2,high:o+(t?r:0)}[i.align],e=(t?n+this.height:e)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-c,c,d.f,-c][this.side],t={x:t?r+l:e+(s?this.width:0)+a+l,y:t?e+u-(s?this.height:0)+a:r+u},w(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var n=this.minorTicks;n[t]||(n[t]=new s(this,t,"minor")),e&&n[t].isNew&&n[t].render(null,!0),n[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,n){var r=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(r[t]||(r[t]=new s(this,t)),n&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,n=this,r=n.chart,i=n.logarithmic,a=n.options,u=n.isLinked,c=n.tickPositions,d=n.axisTitle,h=n.ticks,f=n.minorTicks,p=n.alternateBands,m=a.stackLabels,g=a.alternateGridColor,y=n.tickmarkOffset,_=n.axisLine,v=n.showAxis,b=l(r.renderer.globalAnimation);
2if(n.labelEdge.length=0,n.overlap=!1,[h,f,p].forEach((function(t){E(t,(function(t){t.isActive=!1}))})),n.hasData()||u){var M=n.chart.hasRendered&&n.old&&S(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,M)})),c.length&&(c.forEach((function(t,e){n.renderTick(t,e,M)})),y&&(0===n.min||n.single)&&(h[-1]||(h[-1]=new s(n,-1,null,!0)),h[-1].render(-1))),g&&c.forEach((function(s,a){e=void 0!==c[a+1]?c[a+1]+y:n.max-y,0==a%2&&s<n.max&&e<=n.max+(r.polar?-y:y)&&(p[s]||(p[s]=new o.PlotLineOrBand(n)),t=s+y,p[s].options={from:i?i.lin2log(t):t,to:i?i.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},p[s].render(),p[s].isActive=!0)})),n._addedPlotLB||(n._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach((function(t){n.addPlotBandOrLine(t)})))}[h,f,p].forEach((function(t){var e=[],n=b.duration;E(t,(function(t,n){t.isActive||(t.render(n,!1,0),t.isActive=!1,e.push(n))})),O((function(){for(var n=e.length;n--;)t[e[n]]&&!t[e[n]].isActive&&(t[e[n]].destroy(),delete t[e[n]])}),t!==p&&r.hasRendered&&n?n:0)})),_&&(_[_.isPlaced?"animate":"attr"]({d:this.getLinePath(_.strokeWidth())}),_.isPlaced=!0,_[v?"show":"hide"](v)),d&&v&&(a=n.getTitlePosition(),d[d.isNew?"attr":"animate"](a),d.isNew=!1),m&&m.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,w(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,n=e.plotLinesAndBands,r=this.eventOptions;if(w(this,"destroy",{keepEvents:t}),t||D(e),[e.ticks,e.minorTicks,e.alternateBands].forEach((function(t){y(t)})),n)for(t=n.length;t--;)n[t].destroy();for(var i in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){e[t]&&(e[t]=e[t].destroy())})),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[i]=e.plotLinesAndBandsGroups[i].destroy();E(e,(function(t,n){-1===e.getKeepProps().indexOf(n)&&delete e[n]})),this.eventOptions=r},t.prototype.drawCrosshair=function(t,e){var r,i=this.crosshair,o=L(i&&i.snap,!0),s=this.chart,a=this.cross;if(w(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),i&&!1!==(g(e)||!o)){if(o?g(e)&&(r=L("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):r=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),g(r)){var l={value:e&&(this.isXAxis?e.x:L(e.stackY,e.y)),translatedValue:r};s.polar&&b(l,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),l=this.getPlotLinePath(l)||null}if(!g(l))return void this.hideCrosshair();o=this.categories&&!this.isRadial,a||(this.cross=a=s.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(i.className||"")).attr({zIndex:L(i.zIndex,2)}).add(),s.styledMode||(a.attr({stroke:i.color||(o?n.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":L(i.width,1)}).css({"pointer-events":"none"}),i.dashStyle&&a.attr({dashstyle:i.dashStyle}))),a.show().attr({d:l}),o&&!i.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();w(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),w(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return S(t)&&0<t},t.prototype.update=function(t,e){var n=this.chart;t=A(this.userOptions,t),this.destroy(!0),this.init(n,t),n.isDirtyBox=!0,L(e,!0)&&n.redraw()},t.prototype.remove=function(t){for(var e=this.chart,n=this.coll,r=this.series,i=r.length;i--;)r[i]&&r[i].remove(!1);_(e.axes,this),_(e[n],this),e[n].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,L(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),t})),e(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,r=t.getMagnitude,i=t.normalizeTickInterval,o=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function s(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new l(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,n(t,"init",s)),t};var l=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=n[n.length-1];var s,a=o[e[0]],l=e[1];for(s=0;s<n.length&&(e=n[s],a=o[e[0]],l=e[1],!(n[s+1]&&t<=(a*l[l.length-1]+o[n[s+1][0]])/2));s++);
2return a===o.year&&t<5*a&&(l=[1,2,5]),{unitRange:a,count:t=i(t/a,l,"year"===e[0]?Math.max(r(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var n=this.axis,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,t,n.options.startOfWeek,e)||r.resolveDTLFormat(e.year).main:r.resolveDTLFormat(e.day).main},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,r=t.normalizeTickInterval,i=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new a(this))}function o(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("logarithmic"),n(t,"init",e),n(t,"afterInit",o)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,n,o){var s=this.axis,a=s.len,l=s.options,u=[];if(o||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),u=s.getLinearTickPositions(t,e,n);else if(.08<=t){var c,d=Math.floor(e),h=l=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<n+1&&!h;d++){var f=a.length;for(c=0;c<f&&!h;c++){var p=this.log2lin(this.lin2log(d)*a[c]);p>e&&(!o||l<=n)&&void 0!==l&&u.push(l),l>n&&(h=!0),l=p}}}else e=this.lin2log(e),n=this.lin2log(n),t=o?s.getMinorTickInterval():l.tickInterval,t=i("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(o?5:1)*(n-e)/((o?a/s.tickPositions.length:a)||1)),t=r(t),u=s.getLinearTickPositions(t,e,n).map(this.log2lin),o||(this.minorAutoInterval=t/5);return o||(s.tickInterval=t),u},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,r=t.extend,i=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),r(n.prototype,s.prototype)),n};var s=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var r=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],s=this.horiz;if(e=!i(this.min)||!i(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&r){if(e){var a=t.toString()===r.toString();n=0}for(e=0;e<t.length;e+=2){var l=t[e],u=t[e+1],c=r[e],d=r[e+1];"M"!==l[0]&&"L"!==l[0]||"M"!==u[0]&&"L"!==u[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==d[0]&&"L"!==d[0]||(s&&c[1]===l[1]?(c[1]+=n,d[1]+=n):s||c[2]!==l[2]||(c[2]+=n,d[2]+=n),o.push(["M",l[1],l[2]],["L",u[1],u[2]],["L",d[1],d[2]],["L",c[1],c[2]],["Z"])),o.isFlat=a}}return o},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,n){var r=this,i=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(i.plotLines||[]).concat(i.plotBands||[]).forEach((function(t){r.addPlotBandOrLine(t)}))),n){var s=i[n]||[];s.push(t),i[n]=s}this.plotLinesAndBands.push(o)}return o},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,r=this.options,i=this.userOptions;if(e){for(var o=e.length;o--;)e[o].id===t&&e[o].destroy();[r.plotLines||[],i.plotLines||[],r.plotBands||[],i.plotBands||[]].forEach((function(e){for(o=e.length;o--;)(e[o]||{}).id===t&&n(e,e[o])}))}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.arrayMax,r=e.arrayMin,i=e.defined,o=e.destroyObjectProperties,s=e.erase,a=e.fireEvent,l=e.merge,u=e.objectEach,c=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(n){return t.compose(e,n)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,n=e.horiz,r=e.logarithmic,o=t.options,s=o.color,d=c(o.zIndex,0),h=o.events,f={},p=e.chart.renderer,m=o.label,g=t.label,y=o.to,_=o.from,v=o.value,b=t.svgElem,w=[],M=i(_)&&i(y);w=i(v);var S=!b,C={class:"highcharts-plot-"+(M?"band ":"line ")+(o.className||"")},A=M?"bands":"lines";if(r&&(_=r.log2lin(_),y=r.log2lin(y),v=r.log2lin(v)),e.chart.styledMode||(w?(C.stroke=s||"#999999",C["stroke-width"]=c(o.width,1),o.dashStyle&&(C.dashstyle=o.dashStyle)):M&&(C.fill=s||"#e6ebf5",o.borderWidth&&(C.stroke=o.borderColor,C["stroke-width"]=o.borderWidth))
2),f.zIndex=d,A+="-"+d,(r=e.plotLinesAndBandsGroups[A])||(e.plotLinesAndBandsGroups[A]=r=p.g("plot-"+A).attr(f).add()),S&&(t.svgElem=b=p.path().attr(C).add(r)),w)w=e.getPlotLinePath({value:v,lineWidth:b.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!M)return;w=e.getPlotBandPath(_,y,o)}return!t.eventsAdded&&h&&(u(h,(function(e,n){b.on(n,(function(e){h[n].apply(t,[e])}))})),t.eventsAdded=!0),(S||!b.d)&&w&&w.length?b.attr({d:w}):b&&(w?(b.show(),b.animate({d:w})):b.d&&(b.hide(),g&&(t.label=g=g.destroy()))),m&&(i(m.text)||i(m.formatter))&&w&&w.length&&0<e.width&&0<e.height&&!w.isFlat?(m=l({align:n&&M&&"center",x:n?!M&&4:10,verticalAlign:!n&&M&&"middle",y:n?M?16:10:M?6:-4,rotation:n&&!M&&90},m),this.renderLabel(m,w,M,d)):g&&g.hide(),t},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,a=s.chart.renderer,u=this.label;u||(this.label=u=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:o}).add(),s.chart.styledMode||u.css(l({textOverflow:"ellipsis"},t.style))),o=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],i=r(o),a=r(e),u.align(t,!1,{x:i,y:a,width:n(o)-i,height:n(e)-a}),u.alignValue&&"left"!==u.alignValue||u.css({width:(90===u.rotation?s.height-(u.alignAttr.y-s.top):s.width-(u.alignAttr.x-s.left))+"px"}),u.show(!0)},e.prototype.getLabelText=function(t){return i(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){s(this.axis.plotLinesAndBands,this),delete this.axis,o(this)},e}()})),e(n,"Core/Tooltip.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i){var o=t.format,s=e.doc,a=n.distribute,l=i.addEvent,u=i.clamp,c=i.css,d=i.defined,h=i.discardElement,f=i.extend,p=i.fireEvent,m=i.isArray,g=i.isNumber,y=i.isString,_=i.merge,v=i.pick,b=i.splat,w=i.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},t.prototype.cleanSplit=function(t){this.chart.series.forEach((function(e){var n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)}))},t.prototype.defaultFormatter=function(t){var e=this.points||b(this),n=[t.tooltipFooterHeaderFormatter(e[0])];return(n=n.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),n},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),h(this.container)),i.clearTimeout(this.hideTimer),i.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var n,r,i=this.chart,o=i.pointer,s=i.inverted,a=i.plotTop,l=i.plotLeft,u=0,c=0;return t=b(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),o=[e.chartX-l,e.chartY-a]):t[0].tooltipPos?o=t[0].tooltipPos:(t.forEach((function(t){n=t.series.yAxis,r=t.series.xAxis,u+=t.plotX||0,c+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,r&&n&&(s?(u+=a+i.plotHeight-r.len-r.pos,c+=l+i.plotWidth-n.len-n.pos):(u+=r.pos-l,c+=n.pos-a))})),u/=t.length,c/=t.length,o=[s?i.plotWidth-c:u,s?i.plotHeight-u:c],this.shared&&1<t.length&&e&&(s?o[0]=e.chartX-l:o[1]=e.chartY-a)),o.map(Math.round)},t.prototype.getLabel=function(){var t,n=this,i=this.chart.styledMode,o=this.options,s=this.split&&this.allowShared,a="tooltip"+(d(o.className)?" "+o.className:""),u=o.style.pointerEvents||(!this.followPointer&&o.stickOnContact?"auto":"none"),h=function(){n.inContact=!0},f=function(t){var e=n.chart.hoverSeries;n.inContact=n.shouldStickOnContact()&&n.chart.pointer.inClass(t.relatedTarget,"highcharts-tooltip"),!n.inContact&&e&&e.onMouseOut&&e.onMouseOut()},p=this.chart.renderer;if(n.label){var m=!n.label.hasClass("highcharts-label");(s&&!m||!s&&m)&&n.destroy()}if(!this.label){if(this.outside){m=this.chart.options.chart.style;var g=r.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",c(t,{position:"absolute",top:"1px",pointerEvents:u,zIndex:Math.max(this.options.style.zIndex||
20,(m&&m.zIndex||0)+3)}),l(t,"mouseenter",h),l(t,"mouseleave",f),e.doc.body.appendChild(t),this.renderer=p=new g(t,0,0,m,void 0,void 0,p.styledMode)}if(s?this.label=p.g(a):(this.label=p.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,a).attr({padding:o.padding,r:o.borderRadius}),i||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:u}).shadow(o.shadow)),i&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),n.outside&&!n.split){var y=this.label,_=y.xSetter,v=y.ySetter;y.xSetter=function(e){_.call(y,n.distance),t.style.left=e+"px"},y.ySetter=function(e){v.call(y,n.distance),t.style.top=e+"px"}}this.label.on("mouseenter",h).on("mouseleave",f).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,n){var r,i=this.chart,o=this.distance,a={},l=i.inverted&&n.h||0,u=this.outside,c=u?s.documentElement.clientWidth-2*o:i.chartWidth,d=u?Math.max(s.body.scrollHeight,s.documentElement.scrollHeight,s.body.offsetHeight,s.documentElement.offsetHeight,s.documentElement.clientHeight):i.chartHeight,h=i.pointer.getChartPosition(),f=function(r){var s="x"===r;return[r,s?c:d,s?t:e].concat(u?[s?t*h.scaleX:e*h.scaleY,s?h.left-o+(n.plotX+i.plotLeft)*h.scaleX:h.top-o+(n.plotY+i.plotTop)*h.scaleY,0,s?c:d]:[s?t:e,s?n.plotX+i.plotLeft:n.plotY+i.plotTop,s?i.plotLeft:i.plotTop,s?i.plotLeft+i.plotWidth:i.plotTop+i.plotHeight])},p=f("y"),m=f("x");f=!!n.negative,!i.polar&&i.hoverSeries&&i.hoverSeries.yAxis&&i.hoverSeries.yAxis.reversed&&(f=!f);var g=!this.followPointer&&v(n.ttBelow,!i.inverted===f),y=function(t,e,n,r,i,s,c){var d=u?"y"===t?o*h.scaleY:o*h.scaleX:o,f=(n-r)/2,p=r<i-o,m=i+o+r<e,y=i-d-n+f;if(i=i+d-f,g&&m)a[t]=i;else if(!g&&p)a[t]=y;else if(p)a[t]=Math.min(c-r,0>y-l?y:y-l);else{if(!m)return!1;a[t]=Math.max(s,i+l+n>e?i:i+l)}},_=function(t,e,n,r,i){var s;return i<o||i>e-o?s=!1:a[t]=i<n/2?1:i>e-r/2?e-r-2:i-n/2,s},b=function(t){var e=p;p=m,m=e,r=t},w=function(){!1!==y.apply(0,p)?!1!==_.apply(0,m)||r||(b(!0),w()):r?a.x=a.y=0:(b(!0),w())};return(i.inverted||1<this.len)&&b(),w(),a},t.prototype.hide=function(t){var e=this;i.clearTimeout(this.hideTimer),t=v(t,this.options.hideDelay),this.isHidden||(this.hideTimer=w((function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0}),t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=v(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},t.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)},t.prototype.move=function(t,e,n,r){var o=this,s=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),l=o.followPointer||1<o.len;f(s,{x:a?(2*s.x+t)/3:t,y:a?(s.y+e)/2:e,anchorX:l?void 0:a?(2*s.anchorX+n)/3:n,anchorY:l?void 0:a?(s.anchorY+r)/2:r}),o.getLabel().attr(s),o.drawTracker(),a&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){o&&o.move(t,e,n,r)}),32))},t.prototype.refresh=function(t,e){var n=this.chart,r=this.options,o=b(t),s=o[0],a=[],l=r.formatter||this.defaultFormatter,u=this.shared,c=n.styledMode,d={};if(r.enabled&&s.series){i.clearTimeout(this.hideTimer),this.allowShared=!(!m(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&s.series.tooltipOptions.followPointer;var h=(t=this.getAnchor(t,e))[0],f=t[1];if(u&&this.allowShared?(n.pointer.applyInactiveState(o),o.forEach((function(t){t.setState("hover"),a.push(t.getLabelConfig())})),(d={x:s.category,y:s.y}).points=a):d=s.getLabelConfig(),this.len=a.length,l=l.call(d,this),u=s.series,this.distance=v(u.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,o);else{var g=h,y=f;if(e&&n.pointer.isDirectTouch&&(g=e.chartX-n.plotLeft,y=e.chartY-n.plotTop),!n.polar&&!1!==u.options.clip&&!o.some((function(t){return t.series.shouldShowTooltip(g,y)})))return void this.hide();e=this.getLabel(),r.style.width&&!c||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+v(s.colorIndex,u.colorIndex)),c||e.attr({stroke:r.borderColor||s.color||u.color||"#666666"}),this.updatePosition({plotX:h,plotY:f,negative:s.negative,ttBelow:s.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}p(this,"refresh")}},t.prototype.renderSplit=function(t,e){function n(t,e,n,i,o){return void 0===o&&(o=!0),n?(e=T?0:I,t=u(t-i/2,x.left,x.right-i-(r.outside?D:0))):(e-=k,t=u(t=o?t-i-S:t+S,o?t:x.left,x.right)),{x:t,y:e}}
2var r=this,i=r.chart,o=r.chart,l=o.chartWidth,c=o.chartHeight,d=o.plotHeight,h=o.plotLeft,p=o.plotTop,m=o.pointer,g=o.scrollablePixelsY;g=void 0===g?0:g;var _=o.scrollablePixelsX,b=o.scrollingContainer,w=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var M=o.styledMode,S=r.distance,C=r.options,A=r.options.positioner,x=r.outside&&"number"!=typeof _?s.documentElement.getBoundingClientRect():{left:w,right:w+l,top:b,bottom:b+c},E=r.getLabel(),L=this.renderer||i.renderer,T=!(!i.xAxis[0]||!i.xAxis[0].opposite),D=(i=m.getChartPosition()).left;i=i.top;var k=p+b,O=0,I=d-g;y(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce((function(t,i,o){if(!1!==i&&""!==i){var s=(o=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}}).isHeader,a=s?r:o.series;i=i.toString();var l=a.tt,c=o.isHeader,f=o.series,m="highcharts-color-"+v(o.colorIndex,f.colorIndex,"none");if(l||(l={padding:C.padding,r:C.borderRadius},M||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=L.label("",0,0,C[c?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass((c?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+m).attr(l).add(E)),l.isActive=!0,l.attr({text:i}),M||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||o.color||f.color||"#333333"}),i=(c=(a=a.tt=l).getBBox()).width+a.strokeWidth(),s&&(O=c.height,I+=O,T&&(k-=O)),f=void 0===(f=o.plotX)?0:f,m=void 0===(m=o.plotY)?0:m,l=o.series,o.isHeader){f=h+f;var g=p+d/2}else{var y=l.xAxis,_=l.yAxis;f=y.pos+u(f,-S,y.len+S),l.shouldShowTooltip(0,_.pos-p+m,{ignoreX:!0})&&(g=_.pos+m)}f=u(f,x.left-S,x.right+S),"number"==typeof g?(c=c.height+1,m=A?A.call(r,i,c,o):n(f,g,s,i),t.push({align:A?0:void 0,anchorX:f,anchorY:g,boxWidth:i,point:o,rank:v(m.rank,s?1:0),size:c,target:m.y,tt:a,x:m.x})):a.isActive=!1}return t}),[]),!A&&t.some((function(t){var e=(r.outside?D:0)+t.anchorX;return e<x.left&&e+t.boxWidth<x.right||e<D-x.left+t.boxWidth&&x.right-e>e}))&&(t=t.map((function(t){var e=n(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return f(t,{target:e.y,x:e.x})}))),r.cleanSplit(),a(t,I);var N=D,P=D;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(r.outside&&D+e<N&&(N=D+e),!t&&r.outside&&N+n>P&&(P=D+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,i=t.pos,o=t.point.isHeader;if(i={visibility:void 0===i?"hidden":"inherit",x:e,y:i+k,anchorX:n,anchorY:t.anchorY},r.outside&&e<n){var s=D-N;0<s&&(o||(i.x=e+s,i.anchorX=n+s),o&&(i.x=(P-N)/2,i.anchorX=n+s))}t.tt.attr(i)})),t=r.container,g=r.renderer,r.outside&&t&&g&&(o=E.getBBox(),g.setSize(o.width+o.x,o.height+o.y,!1),t.style.left=N+"px",t.style.top=i+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,n=this.shared?t.hoverPoints:t.hoverPoint;if(e&&n){var r={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var i=e.getBBox();n[0]+=t.plotLeft-e.translateX,n[1]+=t.plotTop-e.translateY,r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=0>n[0]?Math.max(Math.abs(n[0]),i.width-n[0]):Math.max(Math.abs(n[0]),i.width),r.height=0>n[1]?Math.max(Math.abs(n[1]),i.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=e.renderer.rect(r).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,r=n.tooltipOptions,i=n.xAxis,s=i&&i.dateTime;i={isFooter:e,labelConfig:t};var a=r.xDateFormat,l=r[e?"footerFormat":"headerFormat"];return p(this,"headerFormatter",i,(function(e){s&&!a&&g(t.key)&&(a=s.getXDateFormat(t.key,r.dateTimeLabelFormats)),s&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
2h((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+a+"}")})),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=o(l,{point:t,series:n},this.chart)})),i.text},t.prototype.update=function(t){this.destroy(),_(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,_(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,r=e.pointer,i=this.getLabel();r=r.getChartPosition();var o=(n.positioner||this.getPosition).call(this,i.width,i.height,t),s=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(i.width+n,i.height+n,!1),1===r.scaleX&&1===r.scaleY||(c(this.container,{transform:"scale(".concat(r.scaleX,", ").concat(r.scaleY,")")}),s*=r.scaleX,t*=r.scaleY),s+=r.left-o.x,t+=r.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),s,t)},t}(),t})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i){var o=e.animObject,s=n.defaultOptions,a=r.format,l=i.addEvent,u=i.defined,c=i.erase,d=i.extend,h=i.fireEvent,f=i.getNestedProperty,p=i.isArray,m=i.isFunction,g=i.isNumber,y=i.isObject,_=i.merge,v=i.objectEach,b=i.pick,w=i.syncTimeout,M=i.removeEvent,S=i.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var r=this.series,i=r.options.pointValKey||r.pointValKey;return t=e.prototype.optionsToObject.call(this,t),d(this,t),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,i&&(this.y=e.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=b(this.isValid&&!this.isValid(),null===this.x||!g(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===n&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),void 0===this.x&&r?this.x=void 0===n?r.autoIncrement():n:g(t.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(i in(e.graphic||e.dataLabel||e.dataLabels)&&(M(e),e.destroyElements()),e)e[i]=null}var e=this,n=e.series,r=n.chart;n=n.options.dataSorting;var i,s=r.hoverPoints,a=o(e.series.chart.renderer.globalAnimation);e.legendItem&&r.legend.destroyItem(e),s&&(e.setState(),c(s,e),s.length||(r.hoverPoints=null)),e===r.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),w(t,a.duration)):t(),r.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var r=this,i=this.series.options;(i.point.events[t]||r.options&&r.options.events&&r.options.events[t])&&r.importEvents(),"click"===t&&i.allowPointSelect&&(n=function(t){r.select&&r.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),h(r,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,r=[],i={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}
2).graphic&&r.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=r.length;e--;){var o=r[e];n[o]&&i.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var r=e+"s";t[e]&&n[r]&&i.plural.push(r)})),i},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?f(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,r=0;for(n=e[r];this[t]>=n.value;)n=e[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=u(this.id)?this.id:S(),this.resolveColor(),t.chart.pointCount++,h(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],o=i.length,s={},a=0,l=0;if(g(t)||null===t)s[i[0]]=t;else if(p(t))for(!r&&t.length>o&&("string"==(n=typeof t[0])?s.name=t[0]:"number"===n&&(s.x=t[0]),a++);l<o;)r&&void 0===t[a]||(0<i[l].indexOf(".")?e.prototype.setNestedProperty(s,t[a],i[l]):s[i[l]]=t[a]),a++,l++;else"object"==typeof t&&(s=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return s},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,n=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var r=(n=t.options.colors||t.chart.options.colors)[t.colorCounter];n=n.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===n&&(t.colorCounter=0)}else e||(r=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,r)},e.prototype.setNestedProperty=function(t,e,n){return n.split(".").reduce((function(t,n,r,i){return t[n]=i.length-1===r?e:y(t[n],!0)?t[n]:{},t[n]}),t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,n=e.tooltipOptions,r=b(n.valueDecimals,""),i=n.valuePrefix||"",o=n.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
2h((function(e){e="{point."+e,(i||o)&&(t=t.replace(RegExp(e+"}","g"),i+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+r+"f}")})),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,n,r){function i(){s.applyOptions(t);var r=l&&s.hasDummyGraphic;r=null===s.y?!r:r,l&&r&&(s.graphic=l.destroy(),delete s.hasDummyGraphic),y(t,!0)&&(l&&l.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=l.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),o=s.index,a.updateParallelArrays(s,o),c.data[o]=y(c.data[o],!0)||y(t,!0)?s.options:b(t,c.data[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(u.isDirtyBox=!0),"point"===c.legendType&&(u.isDirtyLegend=!0),e&&u.redraw(n)}var o,s=this,a=s.series,l=s.graphic,u=a.chart,c=a.options;e=b(e,!0),!1===r?i():s.firePointEvent("update",{options:t},i)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var n=this,r=n.series,i=r.chart;this.selectedStaging=t=b(t,!n.selected),n.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){n.selected=n.options.selected=t,r.options.data[r.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||i.getSelectedPoints().forEac
2h((function(t){var e=t.series;t.selected&&t!==n&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(i.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,n=e.pointer;t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e.inverted),n.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=_(t.series.options.point,t.options).events;t.events=e,v(e,(function(e,n){m(e)&&l(t,n,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,n){var r,i=this.series,o=this.state,a=i.options.states[e||"normal"]||{},l=s.plotOptions[i.type].marker&&i.options.marker,u=l&&!1===l.enabled,c=l&&l.states&&l.states[e||"normal"]||{},f=!1===c.enabled,p=this.marker||{},m=i.chart,y=l&&i.markerAttribs,_=i.halo,v=i.stateMarkerGraphic;if(!((e=e||"")===this.state&&!n||this.selected&&"select"!==e||!1===a.enabled||e&&(f||u&&!1===c.enabled)||e&&p.states&&p.states[e]&&!1===p.states[e].enabled)){if(this.state=e,y&&(r=i.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!m.styledMode){var w=i.pointAttribs(this,e),M=b(m.options.chart.animation,a.animation);i.options.inactiveOtherPoints&&g(w.opacity)&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:w.opacity},M)})),this.connector&&this.connector.animate({opacity:w.opacity},M)),this.graphic.animate(w,M)}r&&this.graphic.animate(r,b(m.options.chart.animation,c.animation,l.animation)),v&&v.hide()}else e&&c&&(o=p.symbol||i.symbol,v&&v.currentSymbol!==o&&(v=v.destroy()),r&&(v?v[n?"animate":"attr"]({x:r.x,y:r.y}):o&&(i.stateMarkerGraphic=v=m.renderer.symbol(o,r.x,r.y,r.width,r.height).add(i.markerGroup),v.currentSymbol=o)),!m.styledMode&&v&&"inactive"!==this.state&&v.attr(i.pointAttribs(this,e))),v&&(v[e&&this.isInside?"show":"hide"](),v.element.point=this,v.addClass(this.getClassName(),!0));a=a.halo,r=(v=this.graphic||v)&&v.visibility||"inherit",a&&a.size&&v&&"hidden"!==r&&!this.isCluster?(_||(i.halo=_=m.renderer.path().add(v.parentGroup)),_.show()[n?"animate":"attr"]({d:this.haloPath(a.size)}),_.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),_.point=this,m.styledMode||_.attr(d({fill:this.color||i.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):_&&_.point&&_.point.haloPath&&_.animate({d:_.point.haloPath(0)},null,_.hide),h(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}(),e})),e(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Tooltip.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=t.parse,o=e.charts,s=e.noop,a=r.addEvent,l=r.attr,u=r.css,c=r.defined,d=r.extend,h=r.find,f=r.fireEvent,p=r.isNumber,m=r.isObject,g=r.objectEach,y=r.offset,_=r.pick,v=r.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,n=[];(t||[]).forEach((function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var n=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),g(n,(function(t,e){n[e]=void 0}))},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,r=this.zoomHor,o=this.zoomVert,s=e.plotLeft,a=e.plotTop,l=e.plotWidth,u=e.plotHeight,c=this.mouseDownX||0,d=this.mouseDownY||0,h=m(n.panning)?n.panning&&n.panning.enabled:n.panning,f=n.panKey&&t[n.panKey+"Key"],p=t.chartX,g=t.chartY,y=this.selectionMarker;if((!y||!y.touch)&&(p<s?p=s:p>s+l&&(p=s+l),g<a?g=a:g>a+u&&(g=a+u),this.hasDragged=Math.sqrt(Math.pow(c-p,2)+Math.pow(d-g,2)),10<this.hasDragged)){var _=e.isInsidePlot(c-s,d-a,{visiblePlotOnly:!0});
2!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!_||f||y||(this.selectionMarker=y=e.renderer.rect(s,a,r?1:l,o?1:u,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||y.attr({fill:n.selectionMarkerFill||i("#335cad").setOpacity(.25).get()})),y&&r&&(r=p-c,y.attr({width:Math.abs(r),x:(0<r?0:r)+c})),y&&o&&(r=g-d,y.attr({height:Math.abs(r),y:(0<r?0:r)+d})),_&&!y&&h&&e.pan(t,n.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,n=this.chart,r=this.hasPinched;if(this.selectionMarker){var i=this.selectionMarker,o=i.attr?i.attr("x"):i.x,s=i.attr?i.attr("y"):i.y,a=i.attr?i.attr("width"):i.width,l=i.attr?i.attr("height"):i.height,h={originalEvent:t,xAxis:[],yAxis:[],x:o,y:s,width:a,height:l},m=!!n.mapView;(this.hasDragged||r)&&(n.axes.forEach((function(n){if(n.zoomEnabled&&c(n.min)&&(r||e[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])&&p(o)&&p(s)){var i=n.horiz,u="touchend"===t.type?n.minPixelPadding:0,d=n.toValue((i?o:s)+u);i=n.toValue((i?o+a:s+l)-u),h[n.coll].push({axis:n,min:Math.min(d,i),max:Math.max(d,i)}),m=!0}})),m&&f(n,"selection",h,(function(t){n.zoom(d(t,r?{animation:!1}:null))}))),p(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}n&&p(n.index)&&(u(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,n){var r,i=this.chart,o=i.hoverPoint;return i=i.tooltip,o&&i&&i.isStickyOnContact()?o:(t.forEach((function(t){var i=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,i),(i=m(t,!0)&&t.series)&&!(i=!m(r,!0))){i=r.distX-t.distX;var o=r.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(r.series.group&&r.series.group.zIndex);i=0<(0!==i&&e?i:0!==o?o:0!==s?s:r.series.index>t.series.index?-1:1)}i&&(r=t)})),r)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,r=n.xAxis;n=n.yAxis;var i=t.shapeArgs;if(r&&n){var o=_(t.clientX,t.plotX),s=t.plotY||0;return t.isNode&&i&&p(i.x)&&p(i.y)&&(o=i.x,s=i.y),e?{chartX:n.len+n.pos-s,chartY:r.len+r.pos-o}:{chartX:o+r.pos,chartY:s+n.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2<n&&2<t&&(this.chartPosition.scaleX=e.width/n,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,n,r,i,o){var s=[];r=!(!r||!t);var a=function(t){return t.visible&&!(!i&&t.directTouch)&&_(t.options.enableMouseTracking,!0)},l={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:i};f(this,"beforeGetHoverData",l);var u=e&&!e.stickyTracking?[e]:n.filter((function(t){return t.stickyTracking&&(l.filter||a)(t)})),c=r||!o?t:this.findNearestKDPoint(u,i,o);return e=c&&c.series,c&&(i&&!e.noSharedTooltip?(u=n.filter((function(t){return l.filter?l.filter(t):a(t)&&!t.noSharedTooltip})),u.forEach((function(t){var e=h(t.points,(function(t){return t.x===c.x&&!t.isNull}));m(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),s.push(e))}))):s.push(c)),f(this,"afterGetHoverData",l={hoverPoint:c}),{hoverPoint:l.hoverPoint,hoverSeries:e,hoverPoints:s}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var n;t;){if(n=l(t,"class")){if(-1!==n.indexOf(e))return!0;
2if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentElement}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},n&&(t.tooltip=new n(t,e.tooltip),this.followTouchMove=_(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var n=t.touches,r=n?n.length?n.item(0):_(n.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),n=r.pageX-e.left,r=r.pageY-e.top,n/=e.scaleX,r/=e.scaleY,d(t,{chartX:Math.round(n),chartY:Math.round(r)})},t.prototype.onContainerClick=function(t){var e=this.chart,n=e.hoverPoint;t=this.normalize(t);var r=e.plotLeft,i=e.plotTop;e.cancelClick||(n&&this.inClass(t.target,"highcharts-tracker")?(f(n.series,"click",d(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-r,t.chartY-i,{visiblePlotOnly:!0})&&f(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var n=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||n)&&(this.zoomOption(t),n&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var n=o[_(t.hoverChartIndex,-1)],r=this.chart.tooltip;r&&r.shouldStickOnContact()&&this.inClass(e.relatedTarget,"highcharts-tooltip-container")||(e=this.normalize(e),n&&(e.relatedTarget||e.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset())},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var n=o[_(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,n=this.chartPosition;t=this.normalize(t,n);var r=e.tooltip;!n||r&&r.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var n=o[_(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,n=e.chart,r=e.pinchDown,i=t.touches||[],o=i.length,a=e.lastValidTouch,l=e.hasZoom,u={},c=1===o&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),h={},p=e.selectionMarker;1<o?e.initiated=!0:1===o&&this.followTouchMove&&(e.initiated=!1),l&&e.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),[].map.call(i,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(i,(function(t,e){r[e]={chartX:t.chartX,chartY:t.chartY}})),a.x=[r[0].chartX,r[1]&&r[1].chartX],a.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEach((function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],r=t.minPixelPadding,i=t.toPixels(Math.min(_(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(_(t.options.max,t.dataMax),t.dataMax)),s=Math.max(i,o);e.min=Math.min(t.pos,Math.min(i,o)-r),e.max=Math.max(t.pos+t.len,s+r)}})),e.res=!0):e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):r.length&&(f(n,"touchpan",{originalEvent:t},(function(){p||(e.selectionMarker=p=d({destroy:s,touch:!0},n.plotBox)),e.pinchTranslate(r,i,u,p,h,a),e.hasPinched=l,e.scaleGroups(u,h)})),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,n,r,i,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,n,r,i,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,n,r,i,o)},t.prototype.pinchTranslateDirection=function(t,e,n,r,i,o,s,a){var l=this.chart,u=t?"x":"y",c=t?"X":"Y",d="chart"+c,h=t?"width":"height",f=l["plot"+(t?"Left":"Top")],p=l.inverted,m=l.bounds[t?"h":"v"],g=1===e.length,y=e[0][d],_=!g&&e[1][d];e=function(){"number"==typeof S&&20<Math.abs(y-_)&&(w=a||Math.abs(M-S)/Math.abs(y-_)),b=(f-M)/w+y,v=l["plot"+(t?"Width":"Height")]/w};var v,b,w=a||1,M=n[0][d],S=!g&&n[1][d];if(e(),(n=b)<m.min){n=m.min;var C=!0}else n+v>m.max&&(n=m.max-v,C=!0);C?(M-=.8*(M-s[u][0]),"number"==typeof S&&(S-=.8*(S-s[u][1])),e()):s[u]=[M,S],p||(o[u]=b-f,o[h]=v),o=p?1/w:w,i[h]=v,i[u]=n,r[p?t?"scaleY":"scaleX":"scale"+c]=w,r["translate"+c]=o*f+(M-o*y)},t.prototype.reset=function(t,e){var n=this.chart,r=n.hoverSeries,i=n.hoverPoint,o=n.hoverPoints,s=n.tooltip,a=s&&s.shared?o:i;
2t&&a&&v(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?s&&a&&v(a).length&&(s.refresh(a),s.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):i&&(i.setState(i.state,!0),n.axes.forEach((function(t){t.crosshair&&i.series[t.coll]===t&&t.drawCrosshair(null,i)})))):(i&&i.onMouseOut(),o&&o.forEach((function(t){t.setState()})),r&&r.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var r=this.chart,i=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,s=!!i&&i.shared,l=n||r.hoverPoint,u=l&&l.series||r.hoverSeries;n=this.getHoverData(l,u,r.series,(!e||"touchmove"!==e.type)&&(!!n||u&&u.directTouch&&this.isDirectTouch),s,e),l=n.hoverPoint,u=n.hoverSeries;var c=n.hoverPoints;n=u&&u.tooltipOptions.followPointer&&!u.tooltipOptions.split;var d=s&&u&&!u.noSharedTooltip;if(l&&(l!==r.hoverPoint||i&&i.isHidden)){if((r.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),r.hoverSeries!==u&&u.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!l.series)return;r.hoverPoints=c,r.hoverPoint=l,l.firePointEvent("mouseOver",void 0,(function(){i&&l&&i.refresh(d?c:l,e)}))}else n&&i&&!i.isHidden&&(s=i.getAnchor([{}],e),r.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0})&&i.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(r.container.ownerDocument,"mousemove",(function(e){var n=o[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach((function(t){var n,i=_((t.crosshair||{}).snap,!0);i&&((n=r.hoverPoint)&&n.series[t.coll]===t||(n=h(c,(function(e){return e.series&&e.series[t.coll]===t})))),n||!i?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(r){var i=t||r.getPlotBox();r.group&&(r.xAxis&&r.xAxis.zoomEnabled||n.mapView)&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(r,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(r,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(a(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(r,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(r,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(i,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,r=e.charts[_(t.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave({relatedTarget:n.container}),r&&r.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var r=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));_(r,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var r=n.zooming.type||"";/touch/.test(t.type)&&(r=_(n.zooming.pinchType,r)),this.zoomX=t=/x/.test(r),this.zoomY=n=/y/.test(r),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}(),t})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function r(){var t=[];return t.item=function(t){return this[t]},h(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function i(t,n,i,o){var a=s[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,o(t),a[n]({type:i,target:t.currentTarget,preventDefault:l,touches:r()}
2))}var o=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=t.charts,a=t.doc,l=t.noop,u=t.win,c=n.addEvent,d=n.css,h=n.objectEach,f=n.removeEvent,p={},m=!!u.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!u.PointerEvent&&!u.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&d(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){i(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){i(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){i(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var s=t.animObject,a=t.setAnimation,l=e.format;t=n.isFirefox;var u=n.marginNames;n=n.win;var c=i.distribute,d=o.addEvent,h=o.createElement,f=o.css,p=o.defined,m=o.discardElement,g=o.find,y=o.fireEvent,_=o.isNumber,v=o.merge,b=o.pick,w=o.relativeLength,M=o.stableSort,S=o.syncTimeout;return i=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),d(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=d(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=v(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(v(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,b(e,!0)&&n.redraw(),y(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,r=t.legendItem,i=t.legendLine,o=t.legendSymbol,s=this.itemHiddenStyle.color;n=e?n.itemStyle.color:s;var a=e&&t.color||s,l=t.options&&t.options.marker,u={fill:a};r&&r.css({fill:n,color:n}),i&&i.attr({stroke:a}),o&&(l&&o.isMarker&&(u=t.pointAttribs(),e||(u.stroke=u.fill=s)),o.attr(u))}y(this,"afterColorizeItem",{item:t,visible:e})}
2,t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,r=n.symbolPadding,i=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var s=t.checkbox,a=t.legendGroup;a&&a.element&&(r={translateX:i?n:this.legendWidth-n-2*r-4,translateY:o},i=function(){y(e,"afterPositionItem",{item:t})},p(a.translateY)?a.animate(r,void 0,i):(a.attr(r),i())),s&&(s.x=n,s.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&m(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var r=t.translateY;this.allItems.forEach((function(i){var o=i.checkbox;if(o){var s=r+n+o.y+(this.scrollOffset||0)+3;f(o,{left:t.translateX+i.checkboxOffset+o.x-20+"px",top:s+"px",display:this.proximate||s>r-6&&s<r+e-6?"":"none"})}}),this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,n=t.title,r=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?l(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,n=e.renderer,r=this.options,i=this.symbolWidth,o=r.symbolPadding||0,s=this.itemStyle,a=this.itemHiddenStyle,l="horizontal"===r.layout?b(r.itemDistance,20):0,u=!r.rtl,c=!t.series,d=!c&&t.series.drawLegendSymbol?t.series:t,h=d.options,f=this.createCheckboxForItem&&h&&h.showCheckbox,p=r.useHTML,m=t.options.className,g=t.legendItem;h=i+o+l+(f?20:0),g||(t.legendGroup=n.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(c?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=g=n.text("",u?i+o:-o,this.baseline||0,p),e.styledMode||g.css(v(t.visible?s:a)),g.attr({align:u?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(e.styledMode?12:s.fontSize,g),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,g.attr("y",this.baseline),this.symbolHeight=r.symbolHeight||this.fontMetrics.f,r.squareSymbol&&(this.symbolWidth=b(r.symbolWidth,Math.max(this.symbolHeight,16)),h=this.symbolWidth+o+l+(f?20:0),u&&g.attr("x",this.symbolWidth+o))),d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,g,p)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&s.width||g.css({width:(r.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"}),this.setText(t),e=g.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=r.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||(e.height>1.5*n?e.height:n))},t.prototype.layoutItem=function(t){var e=this.options,n=this.padding,r="horizontal"===e.layout,i=t.itemHeight,o=this.itemMarginBottom,s=this.itemMarginTop,a=r?b(e.itemDistance,20):0,l=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,r&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=s+this.itemY+o,this.lastLineHeight=Math.max(i,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=e:(this.itemY+=s+i+o,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(t.checkbox?0:a):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];
2return this.chart.series.forEach((function(e){var n=e&&e.options;e&&b(n.showInLegend,!p(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),y(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,s){o.test(i)&&!p(t[s])&&(n[u[s]]=Math.max(n[u[s]],n.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*r[s%2?"x":"y"]+b(r.margin,12)+e[s]+(n.titleOffset[s]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(r){var i,o=n;if(r.yAxis){r.xAxis.options.reversed&&(o=!o),r.points&&(i=g(o?r.points:r.points.slice(0).reverse(),(function(t){return _(t.plotY)}))),o=this.itemMarginTop+r.legendItem.getBBox().height+this.itemMarginBottom;var s=r.yAxis.top-t.plotTop;r.visible?(i=i?i.plotY:r.yAxis.height,i+=s-.3*o):i=s+r.yAxis.height,e.push({target:i,size:o,item:r})}}),this),c(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&e.pos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,r=this.padding,i=this.getAllItems(),o=this.group,s=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=w(n.width,t.spacingBox.width-r);var a=t.spacingBox.width-2*r-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),M(i,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&i.reverse(),this.allItems=i,this.display=a=!!i.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+r;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=r,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o)),t.styledMode||s.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0<i&&0<l&&s[s.placed?"animate":"attr"](s.crisp.call({},{x:0,y:0,width:i,height:l},s.strokeWidth())),o[a?"show":"hide"](),t.styledMode&&"none"===o.getStyle("display")&&(i=l=0),this.legendWidth=i,this.legendHeight=l,a&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,n=this.options,r=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?r+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(r-=e.titleOffset[2]),r!==t.y&&(t=v(t,{y:r})),e.hasRendered||(this.group.placed=!1),this.group.align(v(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,n,r=this,i=this.chart,o=i.renderer,s=this.options,a=s.y,l="top"===s.verticalAlign,u=this.padding,c=s.maxHeight,d=s.navigation,h=b(d.animation,!0),f=d.arrowSize||12,p=this.pages,m=this.allItems,g=function(t){"number"==typeof t?v.attr({height:t}):v&&(r.clipRect=v.destroy(),r.contentGroup.clip()),r.contentGroup.div&&(r.contentGroup.div.style.clip=t?"rect("+u+"px,9999px,"+(u+t)+"px,0)":"auto")},y=function(t){return r[t]=o.circle(0,0,1.3*f).translate(f/2,f/2).add(_),i.styledMode||r[t].attr("fill","rgba(0,0,0,0.0001)"),r[t]};a=i.spacingBox.height+(l?-a:a)-u;var _=this.nav,v=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(a/=2),c&&(a=Math.min(a,c
2)),p.length=0,t&&0<a&&t>a&&!1!==d.enabled?(this.clipHeight=e=Math.max(a-20-this.titleHeight-u,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,r){var i=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),s=p.length;(!s||i-p[s-1]>e&&(n||i)!==p[s-1])&&(p.push(n||i),s++),t.pageIx=s-1,n&&(m[r-1].pageIx=s-1),r===m.length-1&&i+o-p[s-1]>e&&o<=e&&(p.push(i),t.pageIx=s),i!==n&&(n=i)})),v||(v=r.clipRect=o.clipRect(0,u,9999,0),r.contentGroup.clip(v)),g(e),_||(this.nav=_=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).add(_),y("upTracker").on("click",(function(){r.scroll(-1,h)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(_),this.down=o.symbol("triangle-down",0,0,f,f).add(_),y("downTracker").on("click",(function(){r.scroll(1,h)}))),r.scroll(0),t=a):_&&(g(),this.nav=_.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,r=this.chart,i=this.pages,o=i.length,l=this.clipHeight,u=this.options.navigation,c=this.pager,d=this.padding,h=this.currentPage+t;h>o&&(h=o),0<h&&(void 0!==e&&a(e,r),this.nav.attr({translateX:d,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),c.attr({text:h+"/"+o}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:h===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),r.styledMode||(this.up.attr({fill:1===h?u.inactiveColor:u.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===o?u.inactiveColor:u.activeColor}),this.downTracker.css({cursor:h===o?"default":"pointer"})),this.scrollOffset=-i[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),t=s(b(e,r.renderer.globalAnimation,!0)),S((function(){y(n,"afterScroll",{currentPage:h})}),t.duration))},t.prototype.setItemEvents=function(t,e,n){var i=this,o=i.chart.renderer.boxWrapper,s=t instanceof r,a="highcharts-legend-"+(s?"point":"series")+"-active",l=i.chart.styledMode,u=function(e){i.allItems.forEach((function(n){t!==n&&[n].concat(n.linkedSeries||[]).forEach((function(t){t.setState(e,!s)}))}))};(n?[e,t.legendSymbol]:[t.legendGroup]).forEach((function(n){n&&n.on("mouseover",(function(){t.visible&&u("inactive"),t.setState("hover"),t.visible&&o.addClass(a),l||e.css(i.options.itemHoverStyle)})).on("mouseout",(function(){i.chart.styledMode||e.css(v(t.visible?i.itemStyle:i.itemHiddenStyle)),u(""),o.removeClass(a),t.setState()})).on("click",(function(e){var n=function(){t.setVisible&&t.setVisible(),u(t.visible?"inactive":"")};o.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,n):y(t,"legendItemClick",e,n)}))}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),d(t.checkbox,"click",(function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}(),(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||t)&&i(o.prototype,"positionItem",(function(t,e){var n=this,r=function(){e._legendItemPos&&t.call(n,e)};r(),n.bubbleLegend||setTimeout(r)})),o})),e(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/DefaultOptions.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i,o=e.defaultOptions,s=r.extendClass,a=r.merge;return function(e){function r(t,r){var i=o.plotOptions||{},s=r.defaultOptions,a=r.prototype;a.type=t,a.pointClass||(a.pointClass=n),s&&(i[t]=s),e.seriesTypes[t]=r}e.seriesTypes=t.seriesTypes,e.registerSeriesType=r,e.seriesType=function(t,i,l,u,c){var d=o.plotOptions||{};return i=i||"",d[t]=a(d[i],l),r(t,s(e.seriesTypes[i]||function(){},u)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=s(n,c)),e.seriesTypes[t]}}(i||(i={})),i})),e(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/FormatUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/Legend.js"],n["Core/MSPointer.js"],n["Core/DefaultOptions.js"],n["Core/Pointer.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"]],(function(t,e,n,r,i,o,s,a,l,u,c,d,h,f,p){var m=t.animate,g=t.animObject,y=t.setAnimation,_=n.numberFormat,v=r.registerEventOptions,b=i.charts,w=i.doc,M=i.marginNames,S=i.svg,C=i.win,A=a.defaultOptions,x=a.defaultTime,E=c.seriesTypes,L=f.addEvent,T=f.attr,D=f.cleanRecursively,k=f.createElement,O=f.css,I=f.defined,N=f.discardElement,P=f.erase,R=f.error,Y=f.extend,j=f.find,B=f.fireEvent,H=f.getStyle,F=f.isArray,W=f.isNumber,U=f.isObject,z=f.isString,V=f.merge,q=f.objectEach,G=f.pick,X=f.pInt,Z=f.relativeLength,K=f.removeEvent,J=f.splat,Q=f.syncTimeout,$=f.uniqueKey;return t=function(){function t(t,e,n){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHe
2ight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,n)}return t.chart=function(e,n,r){return new t(e,n,r)},t.prototype.getArgs=function(t,e,n){z(t)||t.nodeName?(this.renderTo=t,this.init(e,n)):this.init(t,e)},t.prototype.init=function(t,e){var n=t.plotOptions||{};B(this,"init",{args:arguments},(function(){var r=V(A,t),o=r.chart;q(r.plotOptions,(function(t,e){U(t)&&(t.tooltip=n[e]&&V(n[e].tooltip)||void 0)})),r.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0;var s=o.zooming=o.zooming||{};t.chart&&!t.chart.zooming&&(s.resetButton=o.resetZoomButton),s.key=G(s.key,o.zoomKey),s.pinchType=G(s.pinchType,o.pinchType),s.singleTouch=G(s.singleTouch,o.zoomBySingleTouch),s.type=G(s.type,o.zoomType),this.options=r,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):i.time,this.numberFormatter=o.numberFormatter||_,this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=b.length,b.push(this),i.chartCount++,v(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,B(this,"afterInit"),this.firstRender()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var n=E[e];return n||R(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new n).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var n=e.length;t<n;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,n){void 0===n&&(n={});var r=this.inverted,i=this.plotBox,o=this.plotLeft,s=this.plotTop,a=this.scrollablePlotBox,l=0,u=0;n.visiblePlotOnly&&this.scrollingContainer&&(l=(u=this.scrollingContainer).scrollLeft,u=u.scrollTop);var c=n.series;if(i=n.visiblePlotOnly&&a||i,t={x:a=n.inverted?e:t,y:e=n.inverted?t:e,isInsidePlot:!0},!n.ignoreX){var d=c&&(r?c.yAxis:c.xAxis)||{pos:o,len:1/0};(a=n.paneCoordinates?d.pos+a:o+a)>=Math.max(l+o,d.pos)&&a<=Math.min(l+o+i.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(r=c&&(r?c.xAxis:c.yAxis)||{pos:s,len:1/0},(n=n.paneCoordinates?r.pos+e:s+e)>=Math.max(u+s,r.pos)&&n<=Math.min(u+s+i.height,r.pos+r.len)||(t.isInsidePlot=!1)),B(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){B(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,o=this.userOptions.legend,s=this.renderer,a=s.isHidden(),l=[],u=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var d=n[t];if(d.options.stacking||d.options.centerInCategory){var h=!0;if(d.isDirty){var f=!0;break}}}if(f)for(t=n.length;t--;)(d=n[t]).options.stacking&&(d.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):o&&(o.labelFormatter||o.labelFormat)&&(c=!0)),t.isDirtyData&&B(t,"updatedData")})),c&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),h&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(u=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push((function(){B(t,"afterSetExtremes",Y(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(u||h)&&t.redraw()}
2)),u&&this.drawChartBox(),B(this,"predraw"),n.forEach((function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),r&&r.reset(!0),s.draw(),B(this,"redraw"),B(this,"render"),a&&this.temporaryDisplay(!0),l.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,r=j(this.axes,e)||j(this.series,e),i=0;!r&&i<n.length;i++)r=j(n[i].points||[],e);return r},t.prototype.getAxes=function(){var t=this,n=this.options,r=n.xAxis=J(n.xAxis||{});n=n.yAxis=J(n.yAxis||{}),B(this,"getAxes"),r.forEach((function(t,e){t.index=e,t.isX=!0})),n.forEach((function(t,e){t.index=e})),r.concat(n).forEach((function(n){new e(t,n)})),B(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce((function(t,e){return e.getPointsCollection().forEach((function(e){G(e.selectedStaging,e.selected)&&t.push(e)})),t}),[])},t.prototype.getSelectedSeries=function(){return this.series.filter((function(t){return t.selected}))},t.prototype.setTitle=function(t,e,n){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(n)},t.prototype.applyDescription=function(t,e){var n=this,r="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};r=this.options[t]=V(!this.styledMode&&{style:r},this.options[t],e);var i=this[t];i&&e&&(this[t]=i=i.destroy()),r&&!i&&((i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).add()).update=function(e){n[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||i.css(r.style),this[t]=i)},t.prototype.layOutTitles=function(t){var e=[0,0,0],n=this.renderer,r=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var i,o=this[t],s=this.options[t],a=s.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,o){this.styledMode||(i=s.style&&s.style.fontSize),i=n.fontMetrics(i,o).b,o.css({width:(s.width||r.width+(s.widthAdjust||0))+"px"});var l=Math.round(o.getBBox(s.useHTML).height);o.align(Y({y:"bottom"===a?i:t+i,height:l},s),!1,"spacingBox"),s.floating||("top"===a?e[0]=Math.ceil(e[0]+l):"bottom"===a&&(e[2]=Math.ceil(e[2]+l)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var i=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,B(this,"afterLayOutTitles"),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&G(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var n=this.renderTo;I(e)||(this.containerWidth=H(n,"width")),I(t)||(this.containerHeight=H(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,Z(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(O(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(w.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(w.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,w.body.appendChild(e)),("none"===H(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),O(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==w.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,n=e.chart,r=$(),i=this.renderTo;i||(this.renderTo=i=n.renderTo),z(i)&&(this.renderTo=i=w.getElementById(i)),i||R(13,!0,this);var o=X(T(i,"data-highcharts-chart"));W(o)&&b[o]&&b[o].hasRendered&&b[o].destroy(),T(i,"data-highcharts-chart",this.index),i.innerHTML=p.emptyHTML,n.skipClone||i.offsetWidth||this.temporaryDisplay(),this.getChartSize(),o=this.chartWidth;
2var s=this.chartHeight;if(O(i,{overflow:"hidden"}),this.styledMode||(t=Y({position:"relative",overflow:"hidden",width:o+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},n.style||{})),this.container=r=k("div",{id:r},t,i),this._cursor=r.style.cursor,this.renderer=new(n.renderer||!S?u.getRendererType(n.renderer):d)(r,o,s,void 0,n.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),y(void 0,this),this.setClassName(n.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,n=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!I(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+e[0])),r[2]&&!I(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,e),B(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],n=t.colorAxis,r=t.margin,i=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?i(t.axes):n&&n.length&&i(n),M.forEach((function(n,i){I(r[i])||(t[n]+=e[i])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,n=e.options.chart,r=e.renderTo,i=I(n.width)&&I(n.height),o=n.width||H(r,"width");n=n.height||H(r,"height"),r=t?t.target:C,delete e.pointer.chartPosition,i||e.isPrinting||!o||!n||r!==C&&r!==w||(o===e.containerWidth&&n===e.containerHeight||(f.clearTimeout(e.reflowTimeout),e.reflowTimeout=Q((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerWidth=o,e.containerHeight=n)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=L(C,"resize",(function(t){e.options&&e.reflow(t)})),L(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,n){var r=this,i=r.renderer;r.isResizing+=1,y(n,r),n=i.globalAnimation,r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==t&&(r.options.chart.width=t),void 0!==e&&(r.options.chart.height=e),r.getChartSize(),r.styledMode||(n?m:O)(r.container,{width:r.chartWidth+"px",height:r.chartHeight+"px"},n),r.setChartSize(!0),i.setSize(r.chartWidth,r.chartHeight,n),r.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(n),r.oldChartHeight=null,B(r,"resize"),Q((function(){r&&B(r,"endResize",null,(function(){--r.isResizing}))}),g(n).duration)},t.prototype.setChartSize=function(t){var e,n,r,i,o=this.inverted,s=this.renderer,a=this.chartWidth,l=this.chartHeight,u=this.options.chart,c=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=i=Math.max(0,Math.round(l-n-this.marginBottom)),this.plotSizeX=o?i:r,this.plotSizeY=o?r:i,this.plotBorderWidth=u.plotBorderWidth||0,this.spacingBox=s.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:l-c[0]-c[2]},this.plotBox=s.plotBox={x:e,y:n,width:r,height:i},o=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(o,d[3])/2),l=Math.ceil(Math.max(o,d[0])/2),this.clipBox={x:a,y:l,width:Math.floor(this.plotSizeX-Math.max(o,d[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(o,d[2])/2-l))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),s.alignElements()),B(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){B(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(n){var r=e[n],i=U(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((function(r,o){t[n][o]=G(e[n+r],i[o])}))})),M.forEach((function(e,n){t[e]=G(t.margin[n],t.spacing[n])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,n=this.renderer,r=this.chartWidth,i=this.chartHe
2ight,o=this.styledMode,s=this.plotBGImage,a=e.backgroundColor,l=e.plotBackgroundColor,u=e.plotBackgroundImage,c=this.plotLeft,d=this.plotTop,h=this.plotWidth,f=this.plotHeight,p=this.plotBox,m=this.clipRect,g=this.clipBox,y=this.chartBackground,_=this.plotBackground,v=this.plotBorder,b="animate";if(y||(this.chartBackground=y=n.rect().addClass("highcharts-background").add(),b="attr"),o)var w=t=y.strokeWidth();else t=(w=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(w||y["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=w),y.attr(a).shadow(e.shadow);y[b]({x:t/2,y:t/2,width:r-t-w%2,height:i-t-w%2,r:e.borderRadius}),b="animate",_||(b="attr",this.plotBackground=_=n.rect().addClass("highcharts-plot-background").add()),_[b](p),o||(_.attr({fill:l||"none"}).shadow(e.plotShadow),u&&(s?(u!==s.attr("href")&&s.attr("href",u),s.animate(p)):this.plotBGImage=n.image(u,c,d,h,f).add())),m?m.animate({width:g.width,height:g.height}):this.clipRect=n.clipRect(g),b="animate",v||(b="attr",this.plotBorder=v=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),v[b](v.crisp({x:c,y:d,width:h,height:f},-v.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,n,r=this,i=r.options.chart,o=r.options.series;["inverted","angular","polar"].forEach((function(s){for(e=E[i.type||i.defaultSeriesType],n=i[s]||e&&e.prototype[s],t=o&&o.length;!n&&t--;)(e=E[o[t].type])&&e.prototype[s]&&(n=!0);r[s]=n}))},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var n=e.options.linkedTo;z(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=G(e.options.visible,n.options.visible,e.visible))})),B(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach((function(t){t.translate(),t.render()}))},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(n){var r=Y(e.style,n.style),i=X(r.left)+t.plotLeft,o=X(r.top)+t.plotTop+12;delete r.left,delete r.top,t.renderer.text(n.html,i,o).attr({zIndex:2}).css(r).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,n=this.renderer,r=this.options,i=function(t){t.forEach((function(t){t.visible&&t.render()}))},s=0;this.setTitle(),this.legend=new o(this,r.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),r=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return s=21,!0}));var a=this.plotHeight=Math.max(this.plotHeight-s,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var l=1.1<r/this.plotWidth,u=1.05<a/this.plotHeight;(l||u)&&(t.forEach((function(t){(t.horiz&&l||!t.horiz&&u)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?i(t):e&&e.length&&i(e),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,n=V(!0,this.options.credits,t);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){n.href&&(C.location.href=n.href)})).attr({align:n.position.align,zIndex:8}),e.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,n=e.axes,r=e.series,o=e.container,s=o&&o.parentNode;for(B(e,"destroy"),e.renderer.forExport?P(b,e):b[e.index]=void 0,i.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),K(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=r.length;t--;)r[t]=r[t].destroy();
2"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())})),o&&(o.innerHTML=p.emptyHTML,K(o),s&&N(o)),q(e,(function(t,n){delete e[n]}))},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(F(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),B(t,"beforeRender"),l&&(s.isRequired()?t.pointer=new s(t,e):t.pointer=new l(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),B(this,"load"),B(this,"render"),I(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":e&&e.element.textContent||""}),t.accessibility&&!1===t.accessibility.enabled||R('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,n){var r,i=this;return t&&(e=G(e,!0),B(i,"addSeries",{options:t},(function(){r=i.initSeries(t),i.isDirtyLegend=!0,i.linkSeries(),r.enabledDataSorting&&r.setData(t.data,!1),B(i,"afterAddSeries",{series:r}),e&&i.redraw(n)}))),r},t.prototype.addAxis=function(t,e,n,r){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:n,animation:r})},t.prototype.addColorAxis=function(t,e,n){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:n})},t.prototype.createAxis=function(t,n){return t=new e(this,V(n.axis,{index:this[t].length,isX:"xAxis"===t})),G(n.redraw,!0)&&this.redraw(n.animation),t},t.prototype.showLoading=function(t){var e=this,n=e.options,r=n.loading,i=function(){o&&O(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},o=e.loadingDiv,s=e.loadingSpan;o||(e.loadingDiv=o=k("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=k("span",{className:"highcharts-loading-inner"},null,o),L(e,"redraw",i)),o.className="highcharts-loading",p.setElementHTML(s,G(t,n.lang.loading,"")),e.styledMode||(O(o,Y(r.style,{zIndex:10})),O(s,r.labelStyle),e.loadingShown||(O(o,{opacity:0,display:""}),m(o,{opacity:r.style.opacity||.5},{duration:r.showDuration||0}))),e.loadingShown=!0,i()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){O(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,n,r){var i,o,s=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,u=[];B(s,"update",{options:t}),l||s.setResponsive(!1,!0),t=D(t,s.options),s.userOptions=V(s.userOptions,t);var c=t.chart;if(c){if(V(!0,s.options.chart,c),"className"in c&&s.setClassName(c.className),"reflow"in c&&s.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){s.propFromSeries();var d=!0}"alignTicks"in c&&(d=!0),"events"in c&&v(this,c),q(c,(function(t,e){-1!==s.propsRequireUpdateSeries.indexOf("chart."+e)&&(i=!0),-1!==s.propsRequireDirtyBox.indexOf(e)&&(s.isDirtyBox=!0),-1!==s.propsRequireReflow.indexOf(e)&&(l?s.isDirtyBox=!0:o=!0)})),!s.styledMode&&c.style&&s.renderer.setStyle(s.options.chart.style||{})}!s.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===x&&(this.time=new h(t.time)),V(!0,s.options.time,t.time)),q(t,(function(e,n){s[n]&&"function"==typeof s[n].update?s[n].update(e,!1):"function"==typeof s[a[n]]?s[a[n]](e):"colors"!==n&&-1===s.collectionsWithUpdate.indexOf(n)&&V(!0,s.options[n],t[n]),"chart"!==n&&-1!==s.propsRequireUpdateSeries.indexOf(n)&&(i=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var r=[];s[e].forEach((function(t,e){t.options.isInternal||r.push(G(t.options.index,e))}
2)),J(t[e]).forEach((function(t,i){var o,a=I(t.id);a&&(o=s.get(t.id)),!o&&s[e]&&(o=s[e][r?r[i]:i])&&a&&I(o.options.id)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),n&&(o.touched=!0)),!o&&n&&s.collectionsWithInit[e]&&(s.collectionsWithInit[e][0].apply(s,[t].concat(s.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),n&&s[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:u.push(t)}))}})),u.forEach((function(t){t.chart&&t.remove&&t.remove(!1)})),d&&s.axes.forEach((function(t){t.update({},!1)})),i&&s.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),d=c&&c.width,c=c&&(z(c.height)?Z(c.height,d||s.chartWidth):c.height),o||W(d)&&d!==s.chartWidth||W(c)&&c!==s.chartHeight?s.setSize(d,c,r):G(e,!0)&&s.redraw(r),B(s,"afterUpdate",{options:t,redraw:e,animation:r})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,n=A.lang,r=e.options.chart.zooming.resetButton,i=r.theme,o="chart"===r.relativeTo||"spacingBox"===r.relativeTo?null:"scrollablePlotBox";B(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(n.resetZoom,null,null,t,i).attr({align:r.position.align,title:n.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(r.position,!1,o)})),B(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){B(this,"selection",{resetSelection:!0}
2,this.zoom)},t.prototype.zoom=function(t){var e,n=this,r=n.pointer,i=n.inverted?r.mouseDownX:r.mouseDownY,o=!1;!t||t.resetSelection?(n.axes.forEach((function(t){e=t.zoom()})),r.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var s=t.axis,a=n.inverted?s.left:s.top,l=n.inverted?a+s.width:a+s.height,u=s.isXAxis,c=!1;(!u&&i>=a&&i<=l||u||!I(i))&&(c=!0),r[u?"zoomX":"zoomY"]&&c&&(e=s.zoom(t.min,t.max),s.displayBtn&&(o=!0))}));var s=n.resetZoomButton;o&&!s?n.showResetZoom():!o&&U(s)&&(n.resetZoomButton=s.destroy()),e&&n.redraw(G(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,r=n.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var i=n.options.chart;i&&i.panning&&(i.panning=e);var o,s=e.type;B(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===s?e=e.concat(n.yAxis):"y"===s&&(e=n.yAxis);var i={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var r=e.horiz,a=t[r?"chartX":"chartY"],l=n[r=r?"mouseDownX":"mouseDownY"],u=e.minPointOffset||0,c=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,d=e.getExtremes(),h=e.toValue(l-a,!0)+u*c,f=e.toValue(l+e.len-a,!0)-(u*c||e.isXAxis&&e.pointRangePadding||0),p=f<h;c=e.hasVerticalPanning(),l=p?f:h,h=p?h:f;var m=e.panningState;!c||e.isXAxis||m&&!m.isDirty||e.series.forEach((function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),m||(m={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),W(e.dataMin)&&W(e.dataMax)&&(m.startMin=Math.min(G(t.options.threshold,1/0),e.dataMin,m.startMin),m.startMax=Math.max(G(t.options.threshold,-1/0),e.dataMax,m.startMax))}
2)),c=Math.min(G(m&&m.startMin,d.dataMin),u?d.min:e.toValue(e.toPixels(d.min)-e.minPixelPadding)),f=Math.max(G(m&&m.startMax,d.dataMax),u?d.max:e.toValue(e.toPixels(d.max)+e.minPixelPadding)),e.panningState=m,e.isOrdinal||(0<(u=c-l)&&(h+=u,l=c),0<(u=h-f)&&(h=f,l-=u),e.series.length&&l!==d.min&&h!==d.max&&l>=c&&h<=f&&(e.setExtremes(l,h,!1,!1,{trigger:"pan"}),!n.resetZoomButton&&l!==c&&h!==f&&s.match("y")&&(n.showResetZoom(),e.displayBtn=!1),o=!0),i[r]=a)}})),q(i,(function(t,e){n[e]=t})),o&&n.redraw(!1),O(n.container,{cursor:"move"})}))},t}(),Y(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,r=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,i=t.symbolWidth,o=t.symbolHeight,s=o/2,a=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var u={},c=e.marker;this.chart.styledMode||(u={"stroke-width":e.lineWidth||0},e.dashStyle&&(u.dashstyle=e.dashStyle)),this.legendLine=a.path([["M",0,t],["L",i,t]]).addClass("highcharts-graph").attr(u).add(l),c&&!1!==c.enabled&&i&&(e=Math.min(r(c.radius,s),s),0===this.symbol.indexOf("url")&&(c=n(c,{width:o,height:o}),e=0),this.legendSymbol=i=a.symbol(this.symbol,i/2-e,t-e,2*e,2*e,c).addClass("highcharts-point").add(l),i.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,i=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(i?(t.symbolWidth-n)/2:0,t.baseline-n+1,i?n:t.symbolWidth,n,r(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,s,a,l,u){var c=t.animObject,d=t.setAnimation,h=e.defaultOptions,f=n.registerEventOptions,p=r.hasTouch,m=r.svg,g=r.win,y=a.seriesTypes,_=u.addEvent,v=u.arrayMax,b=u.arrayMin,w=u.clamp,M=u.cleanRecursively,S=u.correctFloat,C=u.defined,A=u.erase,x=u.error,E=u.extend,L=u.find,T=u.fireEvent,D=u.getNestedProperty,k=u.isArray,O=u.isNumber,I=u.isString,N=u.merge,P=u.objectEach,R=u.pick,Y=u.removeEvent,j=u.splat,B=u.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){T(this,"init",{options:e});var n=this,r=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),E(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),f(this,e);var i,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),n._i=R(i&&i._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(r)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),T(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(O(n)){for(e=t.length;e--;)if(n>=R(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return R(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,r=e.chart;
2T(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(i){var o=0;r[i].forEach((function(r){t=r.options,(n[i]===o&&!t.isInternal||void 0!==n[i]&&n[i]===t.id||void 0===n[i]&&0===t.index)&&(e.insert(r.series),e[i]=r,r.isDirty=!0),t.isInternal||o++})),e[i]||e.optionalAxis===i||x(18,!0,r)}))})),T(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,r=arguments,i=O(e)?function(r){var i="y"===r&&n.toYData?n.toYData(t):t[r];n[r+"Data"][e]=i}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(r,2))};n.parallelArrays.forEach(i)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,n=this.options,r=n.pointIntervalUnit,i=n.relativeXValue,o=this.chart.time,s=this.xIncrement;return s=R(s,n.pointStart,0),this.pointInterval=e=R(this.pointInterval,n.pointInterval,1),i&&O(t)&&(e*=t),r&&(n=new o.Date(s),"day"===r?o.set("Date",n,o.get("Date",n)+e):"month"===r?o.set("Month",n,o.get("Month",n)+e):"year"===r&&o.set("FullYear",n,o.get("FullYear",n)+e),e=n.getTime()-s),i&&O(t)?s+e:(this.xIncrement=s+e,s)},t.prototype.setDataSortingOptions=function(){var t=this.options;E(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),C(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,n=e.options,r=n.plotOptions,i=e.userOptions||{};t=N(t),e=e.styledMode;var o={plotOptions:r,userOptions:t};T(this,"setOptions",o);var s=o.plotOptions[this.type],a=i.plotOptions||{};return this.userOptions=o.userOptions,i=N(s,r.series,i.plotOptions&&i.plotOptions[this.type],t),this.tooltipOptions=N(h.tooltip,h.plotOptions.series&&h.plotOptions.series.tooltip,h.plotOptions[this.type].tooltip,n.tooltip.userOptions,r.series&&r.series.tooltip,r[this.type].tooltip,t.tooltip),this.stickyTracking=R(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||i.stickyTracking),null===s.marker&&delete i.marker,this.zoneAxis=i.zoneAxis,r=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||(n={value:i[this.zoneAxis+"Threshold"]||i.threshold||0,className:"highcharts-negative"},e||(n.color=i.negativeColor,n.fillColor=i.negativeFillColor),r.push(n)),r.length&&C(r[r.length-1].value)&&r.push(e?{}:{color:this.color,fillColor:this.fillColor}),T(this,"afterSetOptions",{options:i}),i},t.prototype.getName=function(){return R(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,n){var r=this.chart,i=this.userOptions,o=t+"Index",s=t+"Counter",a=n?n.length:R(r.options.chart[t+"Count"],r[t+"Count"]);if(!e){var l=R(i[o],i["_"+o]);C(l)||(r.series.length||(r[s]=0),i["_"+o]=l=r[s]%a,r[s]+=1),n&&(e=n[l])}void 0!==l&&(this[o]=l),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var n,r,i=t.id,s=t.x,a=this.points,l=this.options.dataSorting;if(i)(l=this.chart.get(i))instanceof o&&(n=l);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(n=function(e){return!e.touched&&e.index===t.index},l&&l.matchByName?n=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(n=function(e){return!e.touched&&e.options.x===t.x}),!(n=L(a,n))))return;if(n){var u=n&&n.index;void 0!==u&&(r=!0)}return void 0===u&&O(s)&&(u=this.xData.indexOf(s,e)),-1!==u&&void 0!==u&&this.cropped&&(u=u>=this.cropStart?u-this.cropStart:u),!r&&O(u)&&a[u]&&a[u].touched&&(u=void 0),u},t.prototype.updateData=function(t,e){var n,r,i,o=this.options,s=o.dataSorting,a=this.points,l=[],u=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var r=C(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=r.x;r.id||O(d)?(-1===(r=this.findPointIndex(r,i))||void 0===r?l.push(t):a[r]&&t!==o.data[r]?(a[r].update(t,!1,null,!1),a[r].touched=!0,u&&(i=r+1)):a[r]&&(a[r].touched=!0),(!c||e!==r||s&&s.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)}),this),n)for(t=a.length;t--;)(r=a[t])&&!r.touched&&r.remove&&r.remove(!1,e);else!c||s&&s.enabled?d=!1:(t.forEach((function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)})),l.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!d&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=v(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,r){void 0===e&&(e=!0);var i=this,o=i.points,s=o&&o.length||0,a=i.options,l=i.chart,u=a.dataSorting,c=i.xAxis,d=a.turboThreshold,h=this.xData,f=this.yData,p=i.pointArrayMap;p=p&&p.length;var m,g=a.keys,y=0,_=1,v=null;if(!l.options.chart.allowMutatingData){a.data&&delete i.options.data,i.userOptions.data&&delete i.userOptions.data;var b=N(!0,t)}if(b=(t=b||t||[]).length,u&&u.enabled&&(t=this.sortData(t)),l.options.chart.allowMutatingData&&!1!==r&&b&&s&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.boosted&&(m=this.updateData(t,n)),!m){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach((function(t){i[t+"Data"].length=0})),d&&b>d)if(v=i.getFirstValidPoint(t),O(v))for(n=0;n<b;n++)h[n]=this.autoIncrement(),f[n]=t[n];else if(k(v))if(p)if(v.length===p)for(n=0;n<b;n++)h[n]=this.autoIncrement(),f[n]=t[n];else for(n=0;n<b;n++)r=t[n],h[n]=r[0],f[n]=r.slice(1,p+1);else if(g&&(y=0<=(y=g.indexOf("x"))?y:0,_=0<=(_=g.indexOf("y"))?_:1),1===v.length&&(_=0),y===_)for(n=0;n<b;n++)h[n]=this.autoIncrement(),f[n]=t[n][_];else for(n=0;n<b;n++)r=t[n],h[n]=r[y],f[n]=r[_];else x(12,!1,l);else for(n=0;n<b;n++)void 0!==t[n]&&(r={series:i},i.pointClass.prototype.applyOptions.apply(r,[t[n]]),i.updateParallelArrays(r,n));for(f&&I(f[0])&&x(14,!0,l),i.data=[],i.options.data=i.userOptions.data=t,n=s;n--;)o[n]&&o[n].destroy&&o[n].destroy();c&&(c.minRange=c.userMinRange),i.isDirty=l.isDirtyBox=!0,i.isDirtyData=!!o,n=!1}
2"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(n)},t.prototype.sortData=function(t){var e=this,n=e.options.dataSorting.sortKey||"y",r=function(t,e){return C(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(n,i){t[i]=r(e,n),t[i].index=i}),this),t.concat().sort((function(t,e){return t=D(n,t),(e=D(n,e))<t?-1:e>t?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach((function(n,o){i[o]=r(e,n),t[o]&&(i[o].x=t[o].x,i[o].index=o)})),e.setData(i,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,r=n.cropThreshold,i=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var s=0,a=this.xData,l=this.yData,u=this.requireSorting,c=!1,d=a.length;if(e){var h=(c=e.getExtremes()).min,f=c.max;c=!(!e.categories||e.names.length)}if(o&&this.sorted&&!i&&(!r||d>r||this.forceCrop))if(a[d-1]<h||a[0]>f)a=[],l=[];else if(this.yData&&(a[0]<h||a[d-1]>f)){var p=this.cropData(this.xData,this.yData,h,f);a=p.xData,l=p.yData,s=p.start,p=!0}for(r=a.length||1;--r;)if(0<(e=n?t(a[r])-t(a[r-1]):a[r]-a[r-1])&&(void 0===m||e<m))var m=e;else 0>e&&u&&!c&&(x(15,!1,this.chart),u=!1);return{xData:a,yData:l,cropped:p,cropStart:s,closestPointRange:m}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,T(this,"afterProcessData")},t.prototype.cropData=function(t,e,n,r,i){var o,s=t.length,a=0,l=s;for(i=R(i,this.cropShoulder),o=0;o<s;o++)if(t[o]>=n){a=Math.max(0,o-i);break}for(n=o;n<s;n++)if(t[n]>r){l=n+i;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,n=this.processedXData,r=this.processedYData,i=this.pointClass,o=n.length,s=this.cropStart||0,a=this.hasGroupedData,l=t.keys,u=[];t=t.dataGrouping&&t.dataGrouping.groupAll?s:0;var c,d,h=this.data;if(!h&&!a){var f=[];f.length=e.length,h=this.data=f}for(l&&a&&(this.options.keys=!1),d=0;d<o;d++){if(f=s+d,a){var p=(new i).init(this,[n[d]].concat(j(r[d])));p.dataGroup=this.groupMap[t+d],p.dataGroup.options&&(p.options=p.dataGroup.options,E(p,p.dataGroup.options),delete p.dataLabels)}else(p=h[f])||void 0===e[f]||(h[f]=p=(new i).init(this,e[f],n[d]));p&&(p.index=a?t+d:f,u[d]=p)}if(this.options.keys=l,h&&(o!==(c=h.length)||a))for(d=0;d<c;d++)d!==s||a||(d+=o),h[d]&&(h[d].destroyElements(),h[d].plotX=void 0);this.data=h,this.points=u,T(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:b(t),max:v(t)}},t.prototype.getExtremes=function(t,e){var n=this.xAxis,r=this.yAxis,i=this.processedXData||this.xData,o=[],s=this.requireSorting?this.cropShoulder:0;r=!!r&&r.positiveValuesOnly;var a,l=0,u=0,c=0,d=(t=t||this.stackedYData||this.processedYData||[]).length;if(n){var h=n.getExtremes();l=h.min,u=h.max}for(a=0;a<d;a++){var f=i[a];h=t[a];var p=(O(h)||k(h))&&(h.length||0<h||!r);if(f=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(i[a+s]||f)>=l&&(i[a-s]||f)<=u,p&&f)if(p=h.length)for(;p--;)O(h[p])&&(o[c++]=h[p]);else o[c++]=h}return t={activeYData:o,dataMin:b(o),dataMax:v(o)},T(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,r=null;null===r&&n<e;)r=t[n],n++;return r},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n=this.options,r=n.stacking,i=this.xAxis,o=i.categories,s=this.enabledDataSorting,a=this.yAxis,l=this.points,u=l.length,c=this.pointPlacementToXValue(),d=!!c,h=n.threshold,f=n.startFromThreshold?h:0,p=this.zoneAxis||"y",m=Number.MAX_VALUE;for(t=0;t<u;t++){var g=l[t],y=g.x,_=void 0,v=void 0,b=g.y,M=g.low,A=r&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(f?0:h)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||i.positiveValuesOnly&&!i.validatePositiveValue(y))&&(g.isNull=!0),g.plotX=e=S(w(i.translate(y,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),r&&this.visible&&A&&A[y]){var x=this.getStackIndicator(x,y,this.index);g.isNull||(v=(_=A[y]).points[x.key])}if(k(v)&&(M=v[0],b=v[1],M===f&&x.key===A[y].base&&(M=R(O(h)&&h,a.min)),a.positiveValuesOnly&&0>=M&&(M=null),g.total=g.stackTotal=_.total,g.percentage=_.total&&g.y/_.total*100,g.stackY=b,this.irregularWidths||_.setOffset(this.pointXOffset||0,this.barW||0)),g.yBottom=C(M)?w(a.translate(M,0,1,0,1),-1e5,1e5):null,this.dataModify&&(b=this.dataModify.modifyValue(b,t)),g.plotY=void 0,O(b)&&void 0!==(_=a.translate(b,!1,!0,!1,!0))&&(g.plotY=w(_,-1e5,1e5)),g.isInside=this.isPointInside(g),g.clientX=d?S(i.translate(y,0,0,0,1,c)):e,g.negative=g[p]<(n[p+"Threshold"]||h||0),g.category=R(o&&o[g.x],g.x),!g.isNull&&!1!==g.visible){void 0!==E&&(m=Math.min(m,Math.abs(e-E)));var E=e}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&s&&(g.isNew=!0)}this.closestPointRangePx=m,T(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var r=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!r.isInsidePlot(t.plotX,t.plotY,{inverted:r.inverted}))&&!1!==t.visible&&(n||!t.isNull)}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis,r=N(t.clipBox);return e&&e.len!==t.plotSizeX&&(r.width=e.len),n&&n.len!==t.plotSizeY&&(r.height=n.len),r}
2,t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,n=this.markerGroup,r=t.sharedClips;t=t.renderer;var i=this.getClipBox(),o=this.getSharedClipKey(),s=r[o];s?s.animate(i):r[o]=s=t.clipRect(i),e&&e.clip(!1===this.options.clip?void 0:s),n&&n.clip()},t.prototype.animate=function(t){var e=this.chart,n=this.group,r=this.markerGroup,i=e.inverted,o=c(this.options.animation),s=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(),a=e.sharedClips[s],l=e.sharedClips[s+"m"];if(t&&n)o=this.getClipBox(),a?a.attr("height",o.height):(o.width=0,i&&(o.x=e.plotHeight),a=e.renderer.clipRect(o),e.sharedClips[s]=a,l=e.renderer.clipRect({x:i?(e.plotSizeX||0)+99:-99,y:i?-e.plotLeft:-e.plotTop,width:99,height:i?e.chartWidth:e.chartHeight}),e.sharedClips[s+"m"]=l),n.clip(a),r&&r.clip(l);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var u=o.step;r&&r.element.childNodes.length&&(o.step=function(t,e){u&&u.apply(e,arguments),l&&l.element&&l.attr(e.prop,"width"===e.prop?t+99:t)}),a.addClass("highcharts-animating").animate(e,o)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),P(this.chart.sharedClips,(function(e,n,r){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete r[n])})),this.finishedAnimating=!0,T(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,n=this.points,r=this.chart,i=this.options.marker,o=this[this.specialGroup]||this.markerGroup,s=this.xAxis,a=R(i.enabled,!(s&&!s.isRadial)||null,this.closestPointRangePx>=i.enabledThreshold*i.radius);if(!1!==i.enabled||this._hasPointMarkers)for(t=0;t<n.length;t++){var l=n[t],u=(e=l.graphic)?"animate":"attr",c=l.marker||{},d=!!l.marker;if((a&&void 0===c.enabled||c.enabled)&&!l.isNull&&!1!==l.visible){var h=R(c.symbol,this.symbol,"rect"),f=this.markerAttribs(l,l.selected&&"select");
2this.enabledDataSorting&&(l.startXPos=s.reversed?-(f.width||0):s.width);var p=!1!==l.isInside;e?e[p?"show":"hide"](p).animate(f):p&&(0<(f.width||0)||l.hasImage)&&(l.graphic=e=r.renderer.symbol(h,f.x,f.y,f.width,f.height,d?c:i).add(o),this.enabledDataSorting&&r.hasRendered&&(e.attr({x:l.startXPos}),u="animate")),e&&"animate"===u&&e[p?"show":"hide"](p).animate(f),e&&!r.styledMode&&e[u](this.pointAttribs(l,l.selected&&"select")),e&&e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var n=this.options,r=n.marker,i=t.marker||{},o=i.symbol||r.symbol,s=R(i.radius,r&&r.radius);return e&&(r=r.states[e],e=i.states&&i.states[e],s=R(e&&e.radius,r&&r.radius,s&&s+(r&&r.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(s=0),t=O(s)?{x:n.crisp?Math.floor(t.plotX-s):t.plotX-s,y:t.plotY-s}:{},s&&(t.width=t.height=2*s),t},t.prototype.pointAttribs=function(t,e){var n=this.options.marker,r=t&&t.options,i=r&&r.marker||{},o=r&&r.color,s=t&&t.color,a=t&&t.zone&&t.zone.color,l=this.color;return t=R(i.lineWidth,n.lineWidth),r=1,l=o||a||s||l,o=i.fillColor||n.fillColor||l,s=i.lineColor||n.lineColor||l,e=e||"normal",n=n.states[e]||{},e=i.states&&i.states[e]||{},t=R(e.lineWidth,n.lineWidth,t+R(e.lineWidthPlus,n.lineWidthPlus,0)),o=e.fillColor||n.fillColor||o,{stroke:s=e.lineColor||n.lineColor||s,"stroke-width":t,fill:o,opacity:r=R(e.opacity,n.opacity,r)}},t.prototype.destroy=function(t){var e,n,r,i=this,o=i.chart,s=/AppleWebKit\/533/.test(g.navigator.userAgent),a=i.data||[];for(T(i,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(i.axisTypes||[]).forEach((function(t){(r=i[t])&&r.series&&(A(r.series,i),r.isDirty=r.forceRedraw=!0)})),i.legendItem&&i.chart.legend.destroyItem(i),e=a.length;e--;)(n=a[e])&&n.destroy&&n.destroy();i.clips&&i.clips.forEach((function(t){return t.destroy()})),u.clearTimeout(i.animationTimeout),P(i,(function(t,e){t instanceof l&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()})),o.hoverSeries===i&&(o.hoverSeries=void 0),A(o.series,i),o.orderSeries(),P(i,(function(e,n){t&&"hcEvents"===n||delete i[n]}))},t.prototype.applyZones=function(){var t,e,n,r,i,o,s,a,l=this,u=this.chart,c=u.renderer,d=this.zones,h=this.clips||[],f=this.graph,p=this.area,m=Math.max(u.plotWidth,u.plotHeight),g=this[(this.zoneAxis||"y")+"Axis"],y=u.inverted,_=!1;if(d.length&&(f||p)&&g&&void 0!==g.min){var v=g.reversed,b=g.horiz;f&&!this.showLine&&f.hide(),p&&p.hide();var M=g.getExtremes();d.forEach((function(d,S){t=v?b?u.plotWidth:0:b?0:g.toPixels(M.min)||0,t=w(R(e,t),0,m),e=w(Math.round(g.toPixels(R(d.value,M.max),!0)||0),0,m),_&&(t=e=g.toPixels(M.max)),r=Math.abs(t-e),i=Math.min(t,e),o=Math.max(t,e),g.isXAxis?(n={x:y?o:i,y:0,width:r,height:m},b||(n.x=u.plotHeight-n.x)):(n={x:0,y:y?o:i,width:m,height:r},b&&(n.y=u.plotWidth-n.y)),y&&c.isVML&&(n=g.isXAxis?{x:0,y:v?i:o,height:n.width,width:u.chartWidth}:{x:n.y-u.plotLeft-u.spacingBox.x,y:0,width:n.height,height:u.chartHeight}),h[S]?h[S].animate(n):h[S]=c.clipRect(n),s=l["zone-area-"+S],a=l["zone-graph-"+S],f&&a&&a.clip(h[S]),p&&s&&s.clip(h[S]),_=d.value>M.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=h}else l.visible&&(f&&f.show(),p&&p.show())},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(r.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,r=n.chart;n.xAxis&&(n.eventsToUnbind.push(_(r,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,r,i){var o=this[t],s=!o;return n={visibility:n,zIndex:r||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),s&&(this[t]=o=this.chart.renderer.g().add(i)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[s?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||Y(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEac
2h((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,r=c(n.animation),i=t.visible?"inherit":"hidden",o=n.zIndex,s=t.hasRendered,a=e.seriesGroup,l=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?r.duration:0,T(this,"render");var u=t.plotGroup("group","series",i,o,a);t.markerGroup=t.plotGroup("markerGroup","markers",i,o,a),!1!==n.clip&&t.setClip(),t.animate&&e&&t.animate(!0),u.inverted=!!R(t.invertible,t.isCartesian)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),t.animate&&e&&t.animate(),s||(e&&r.defer&&(e+=r.defer),t.animationTimeout=B((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,T(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,r=this.xAxis,i=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:R(r&&r.left,t.plotLeft),translateY:R(i&&i.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:i?r.len-t.chartX+r.pos:t.chartY-r.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,r,i){var o=t&&t.length;if(o){var s=n.kdAxisArray[r%i];return t.sort((function(t,e){return t[s]-e[s]})),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),r+1,i),right:e(t.slice(o+1),r+1,i)}}}this.buildingKdTree=!0;var n=this,r=-1<n.options.findNearestPointBy.indexOf("y")?2:1;delete n.kdTree,B((function(){n.kdTree=e(n.getValidPoints(null,!n.directTouch),r,r),n.buildingKdTree=!1}),n.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,n){var r=this,i=this.kdAxisArray[0],o=this.kdAxisArray[1],s=e?"distX":"dist";if(e=-1<r.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function t(e,n,a,l){var u=n.point,c=r.kdAxisArray[a%l],d=u,h=C(e[i])&&C(u[i])?Math.pow(e[i]-u[i],2):null,f=C(e[o])&&C(u[o])?Math.pow(e[o]-u[o],2):null;return f=(h||0)+(f||0),u.dist=C(f)?Math.sqrt(f):Number.MAX_VALUE,u.distX=C(h)?Math.sqrt(h):Number.MAX_VALUE,h=0>(c=e[c]-u[c])?"right":"left",n[f=0>c?"left":"right"]&&(d=(f=t(e,n[f],a+1,l))[s]<d[s]?f:u),n[h]&&Math.sqrt(c*c)<d[s]&&(d=(e=t(e,n[h],a+1,l))[s]<d[s]?e:d),d}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,n=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=n.reversed?-.5:.5),O(t)?t*(e||n.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,n=this.xAxis,r=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(r?r.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(n?n.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,n=e.trackByArea,r=[].concat(n?t.areaPath:t.graphPath),i=t.chart,o=i.pointer,s=i.renderer,a=i.options.tooltip.snap,l=t.tracker,u=function(e){i.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(m?1e-4:.002)+")";l?l.attr({d:r}):t.graph&&(t.tracker=s.path(r).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:n?c:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",u).on("mouseout",(function(t){o.onTrackerMouseOut(t)})),e.cursor&&!i.styledMode&&t.css({cursor:e.cursor}),p)&&t.on("touchstart",u)}))),T(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,n,r,i){var o=this.options,s=this.data,a=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var u,c=o.data,d=this.xData;e=R(e,!0);var h={series:this};this.pointClass.prototype.applyOptions.apply(h,[t]);var f=h.x,p=d.length;if(this.requireSorting&&f<d[p-1])for(u=!0;p&&d[p-1]>f;)p--;this.updateParallelArrays(h,"splice",p,0,0),this.updateParallelArrays(h,p),l&&h.name&&(l[f]=h.name),c.splice(p,0,t),(u||this.processedData)&&(this.data.splice(p,0,null),this.processData()),"point"===o.legendT
2ype&&this.generatePoints(),n&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(h,"shift"),c.shift())),!1!==i&&T(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(r)},t.prototype.removePoint=function(t,e,n){var r=this,i=r.data,o=i[t],s=r.points,a=r.chart,l=function(){s&&s.length===i.length&&s.splice(t,1),i.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(o||{series:r},"splice",t,1),o&&o.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&a.redraw()};d(n,a),e=R(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,r){function i(){o.destroy(r),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),R(t,!0)&&s.redraw(e)}var o=this,s=o.chart;!1!==n?T(o,"remove",null,i):i()},t.prototype.update=function(t,e){t=M(t,this.userOptions),T(this,"update",{options:t});var n,r=this,i=r.chart,o=r.userOptions,s=r.initialType||r.type,a=i.options.plotOptions,l=y[s].prototype,u=r.finishedAnimating&&{animation:!1},c={},d=["eventOptions","navigatorSeries","baseSeries"],h=t.type||o.type||i.options.chart.type,f=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||r.hasOptionChanged("dataGrouping")||r.hasOptionChanged("pointStart")||r.hasOptionChanged("pointInterval")||r.hasOptionChanged("pointIntervalUnit")||r.hasOptionChanged("keys"));if(h=h||s,f&&(d.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&d.push("area","graph"),r.parallelArrays.forEach((function(t){d.push(t+"Data")})),t.data&&(t.dataSorting&&E(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=N(o,u,{index:void 0===o.index?r.index:o.index,pointStart:R(a&&a.series&&a.series.pointStart,o.pointStart,r.xData[0])},!f&&{data:r.options.data},t),f&&t.data&&(t.data=r.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEach((function(t){d[t]=r[t],delete r[t]})),a=!1,y[h]){if(a=h!==r.type,r.remove(!1,!1,!1,!0),a)if(Object.setPrototypeOf)Object.setPrototypeOf(r,y[h].prototype);else{for(n in u=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents,l)r[n]=void 0;E(r,y[h].prototype),u?r.hcEvents=u:delete r.hcEvents}}else x(17,!0,i,{missingModuleFor:h});if(d.forEach((function(t){r[t]=d[t]})),r.init(i,t),f&&this.points){var p=r.options;!1===p.visible?(c.graphic=1,c.dataLabel=1):r._hasPointLabels||(t=p.marker,l=p.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(c.graphic=1),l&&!1===l.enabled&&(c.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===p.showInLegend&&t.legendItem&&i.legend.destroyItem(t))}),this)}r.initialType=s,i.linkSeries(),a&&r.linkedSeries.length&&(r.isDirtyData=!0),T(this,"afterUpdate"),R(e,!0)&&i.redraw(!!f&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,r=this.userOptions[t];return r?e!==r:e!==R(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&T(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,r=e.hoverPoint;e.hoverSeries=null,r&&r.onMouseOut(),this&&t.events.mouseOut&&T(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,r=n.options,i=n.graph,o=r.inactiveOtherPoints,s=r.states,a=R(s[t||"normal"]&&s[t||"normal"].animation,n.chart.options.chart.animation),l=r.lineWidth,u=0,c=r.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEac
2h((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(l=s[t].lineWidth||l+(s[t].lineWidthPlus||0),c=R(s[t].opacity,c)),i&&!i.dashstyle)for(r={"stroke-width":l},i.animate(r,a);n["zone-graph-"+u];)n["zone-graph-"+u].animate(r,a),u+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},a)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,r=n.chart,i=n.legendItem,o=r.options.chart.ignoreHiddenSeries,s=n.visible,a=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!s:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][a]()})),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),i&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&r.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(r.isDirtyBox=!0),T(n,a),!1!==e&&r.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),T(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=s,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),E(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),a.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var s=t.stop,a=o.addEvent,l=o.createElement,u=o.defined,c=o.merge,d=o.pick;a(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,r=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(r){if(this.scrollablePixelsX=r=Math.max(0,r-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=r,this.inverted?this.clipBox.height+=r:this.clipBox.width+=r;var i={1:{name:"right",value:r}}}}else n&&(this.scrollablePixelsY=r=Math.max(0,n-this.chartHeight),u(r)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:"bottom",value:r}}));i&&!t.skipAxes&&this.axes.forEach((function(t){i[t.side]?t.getPlotLinePath=function(){var n=i[t.side].name,r=this[n];this[n]=r-i[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=r,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),a(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),a(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,r=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&r.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),r.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,r=i.getRendererType();t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||
20)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),r=this.chartHeight+(this.scrollablePixelsY||0),s(this.container),this.container.style.width=e+"px",this.container.style.height=r+"px",this.renderer.boxWrapper.attr({width:e,height:r,viewBox:[0,0,e,r].join(" ")}),this.chartBackground.attr({width:e,height:r}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),r=this.axisOffset,t=this.plotTop-r[0]-1,n=this.plotLeft-r[3]-1,e=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),u=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",r,this.plotTop-1],["L",r,0],["Z"],["M",n,u],["L",n,this.chartHeight],["L",r,this.chartHeight],["L",r,u],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),a(r,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/Stacking/StackItem.js",[n["Core/FormatUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=t.format,i=e.series,o=n.defined,s=n.destroyObjectProperties,a=n.isNumber,l=n.pick;return t=function(){function t(t,e,n,r,i){var o=t.chart.inverted;this.axis=t,this.isNegative=n,this.options=e=e||{},this.x=r,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":n?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?n?"right":"left":"center")}return t.prototype.destroy=function(){s(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,n=this.options,i=n.format;i=i?r(i,this,e):n.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=e.renderer.label(i,null,null,n.shape,null,null,n.useHTML,!1,"stack-labels"),i={r:n.borderRadius||0,text:i,rotation:n.rotation,padding:l(n.padding,5),visibility:"hidden"},e.styledMode||(i.fill=n.backgroundColor,i.stroke=n.borderColor,i["stroke-width"]=n.borderWidth,this.label.css(n.style)),this.label.attr(i),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,n,r,s){var u=this.axis,c=u.chart;r=u.translate(u.stacking.usePercentage?100:r||this.total,0,0,0,1),n=u.translate(n||0),t=l(s,c.xAxis[0].translate(this.x))+t,u=o(r)&&this.getStackBox(c,this,t,r,e,Math.abs(r-n),u),e=this.label,n=this.isNegative;var d=this.textAlign;e&&u&&(t=e.getBBox(),s=e.padding,r="justify"===l(this.options.overflow,"justify"),d="left"===d?c.inverted?-s:s:"right"===d?t.width:c.inverted&&"center"===d?t.width/2:c.inverted?n?t.width+s:-s:t.width/2,n=c.inverted?t.height/2:n?-s:t.height,this.alignOptions.x=l(this.options.x,0),this.alignOptions.y=l(this.options.y,0),u.x-=d,u.y-=n,e.align(this.alignOptions,null,u),c.isInsidePlot(e.alignAttr.x+d-this.alignOptions.x,e.alignAttr.y+n-this.alignOptions.y)?e.show():(e.hide(),r=!1),r&&i.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,t,u),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),l(!r&&this.options.crop,!0)&&((c=a(e.x)&&a(e.y)&&c.isInsidePlot(e.x-s+e.width,e.y)&&c.isInsidePlot(e.x+s,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,n,r,i,o,s){var a=e.axis.reversed,l=t.inverted,u=s.height+s.pos-(l?t.plotLeft:t.plotTop);
2return e=e.isNegative&&!a||!e.isNegative&&a,{x:l?e?r-s.right:r-o+s.pos-t.plotLeft:n+t.xAxis[0].transB-t.plotLeft,y:l?s.height-n-i:e?u-r-o:u-r,width:l?o:i,height:l?i:o}},t}(),t})),e(n,"Core/Axis/Stacking/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i){function o(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),t.series.forEach((function(n){var r=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==t.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,C(n.options.stack,""),e?r.top:r.left,e?r.height:r.width].join())}))}function s(){var t=this.stacking;if(t){var e=t.stacks;S(e,(function(t,n){v(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){this.stacking||(this.stacking=new A(this))}function l(t,e,n,r){return!_(t)||t.x!==e||r&&t.stackKey!==r?t={x:e,index:0,key:r,stackKey:r}:t.index++,t.key=[n,e,t.index].join(),t}function u(){var t,e=this,n=e.stackKey,r=e.yAxis.stacking.stacks,i=e.processedXData,o=e[e.options.stacking+"Stacker"];o&&[n,"-"+n].forEach((function(n){for(var s,a,l=i.length;l--;)s=i[l],t=e.getStackIndicator(t,s,e.index,n),(a=(s=r[n]&&r[n][s])&&s.points[t.key])&&o.call(e,a,s,l)}))}function c(t,e,n){e=e.total?100/e.total:0,t[0]=y(t[0]*e),t[1]=y(t[1]*e),this.stackedYData[n]=t[1]}function d(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):t&&S(t.stacks,(function(e,n){"group"===n.slice(-5)&&(S(e,(function(t){return t.destroy()})),delete t.stacks[n])}))}function h(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,i=this.processedYData,o=[],s=i.length,a=this.options,l=a.threshold,u=C(a.startFromThreshold&&l,0);a=a.stack;var c,d,h="-"+(t=t?""+this.type+",".concat(e):this.stackKey),f=this.negStacks,p=this.yAxis,m=p.stacking.stacks,g=p.stacking.oldStacks;for(p.stacking.stacksTouched+=1,d=0;d<s;d++){var v=n[d],b=i[d],M=this.getStackIndicator(M,v,this.index),S=M.key,A=(c=f&&b<(u?0:l))?h:t;m[A]||(m[A]={}),m[A][v]||(g[A]&&g[A][v]?(m[A][v]=g[A][v],m[A][v].total=null):m[A][v]=new r(p,p.options.stackLabels,!!c,v,a)),A=m[A][v],null!==b?(A.points[S]=A.points[this.index]=[C(A.cumulative,u)],_(A.cumulative)||(A.base=S),A.touched=p.stacking.stacksTouched,0<M.index&&!1===this.singleStacks&&(A.points[S][0]=A.points[this.index+","+v+",0"][0])):A.points[S]=A.points[this.index]=null,"percent"===e?(c=c?t:h,f&&m[c]&&m[c][v]?(c=m[c][v],A.total=c.total=Math.max(c.total,A.total)+Math.abs(b)||0):A.total=y(A.total+(Math.abs(b)||0))):"group"===e?(w(b)&&(b=b[0]),null!==b&&(A.total=(A.total||0)+1)):A.total=y(A.total+(b||0)),A.cumulative="group"===e?(A.total||1)-1:C(A.cumulative,u)+(b||0),null!==b&&(A.points[S].push(A.cumulative),o[d]=A.cumulative,A.hasValidPoints=!0)}"percent"===e&&(p.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=o),p.stacking.oldStacks={}}}var f,p=t.getDeferredAnimation,m=n.series.prototype,g=i.addEvent,y=i.correctFloat,_=i.defined,v=i.destroyObjectProperties,b=i.fireEvent,w=i.isArray,M=i.isNumber,S=i.objectEach,C=i.pick,A=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,r=e.options.reversedStacks,i=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=i;t--;){var o=n[r?t:i-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;t<i;t++)n[t].modifyStacks();b(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;S(t,(function(t){S(t,(function(t){t.cumulative=t.total}))}))}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||S(e,(function(e){S(e,(function(n,r){M(n.touched)&&n.touched<t.stacksTouched?(n.destroy(),delete e[r]):(n.total=null,n.cumulative=null)}))}))},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,n=e.renderer,r=this.stacks;t=p(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var i=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}
2).add();i.translate(e.plotLeft,e.plotTop),S(r,(function(t){S(t,(function(t){t.render(i)}))})),i.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,n,r){-1===e.indexOf(t)&&(e.push(t),g(t,"init",a),g(t,"destroy",s)),-1===e.indexOf(n)&&(e.push(n),n.prototype.getStacks=o),-1===e.indexOf(r)&&(e.push(r),(t=r.prototype).getStackIndicator=l,t.modifyStacks=u,t.percentStacker=c,t.setGroupedPoints=d,t.setStackedPoints=h)}}(f||(f={})),f})),e(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.defined,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.prototype.drawGraph=function(){var t=this,e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode,i=[["graph","highcharts-graph"]];r||i[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(i=t.getZonesGraphs(i)).forEach((function(i,o){var s=i[0],a=t[s],l=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:n.xMap,a.animate({d:n})):n.length&&(t[s]=a=t.chart.renderer.path(n).addClass(i[1]).attr({zIndex:1}).add(t.group)),a&&!r&&(s={stroke:i[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},i[3]?s.dashstyle=i[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[l](s).shadow(2>o&&e.shadow)),a&&(a.startX=n.xMap,a.isArea=n.isArea)}))},n.prototype.getGraphPath=function(t,e,n){var r,o=this,s=o.options,a=[],l=[],u=s.step,c=(t=t||o.points).reversed;return c&&t.reverse(),(u={right:1,center:2}[u]||u&&3)&&c&&(u=4-u),(t=this.getValidPoints(t,!1,!(s.connectNulls&&!e&&!n))).forEach((function(c,d){var h=c.plotX,f=c.plotY,p=t[d-1];(c.leftCliff||p&&p.rightCliff)&&!n&&(r=!0),c.isNull&&!i(e)&&0<d?r=!s.connectNulls:c.isNull&&!e?r=!0:(0===d||r?d=[["M",c.plotX,c.plotY]]:o.getPointSpline?d=[o.getPointSpline(t,c,d)]:u?(d=1===u?[["L",p.plotX,f]]:2===u?[["L",(p.plotX+h)/2,p.plotY],["L",(p.plotX+h)/2,f]]:[["L",h,p.plotY]]).push(["L",h,f]):d=[["L",h,f]],l.push(c.x),u&&(l.push(c.x),2===u&&l.push(c.x)),a.push.apply(a,d),r=!1)})),a.xMap=l,o.graphPath=a},n.prototype.getZonesGraphs=function(t){return this.zones.forEach((function(e,n){
2n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")],this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(n)}),this),t},n.defaultOptions=o(t.defaultOptions,{}),n}(t),e.registerSeriesType("line",n),n})),e(n,"Series/Area/AreaSeries.js",[n["Core/Color/Color.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=t.parse,s=n.seriesTypes.line;t=r.extend;var a=r.merge,l=r.objectEach,u=r.pick;return r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,n=this.areaPath,r=this.options,i=[["area","highcharts-area",this.color,r.fillColor]];this.zones.forEach((function(t,n){i.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+t.className,t.color||e.color,t.fillColor||r.fillColor])})),i.forEach((function(t){var i=t[0],s={},a=e[i],l=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:n.xMap,a.animate({d:n})):(s.zIndex=0,(a=e[i]=e.chart.renderer.path(n).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=u(t[3],o(t[2]).setOpacity(u(r.fillOpacity,.75)).get())),a[l](s),a.startX=n.xMap,a.shiftUnit=r.step?2:1}))},e.prototype.getGraphPath=function(t){var e=s.prototype.getGraphPath,n=this.options,r=n.stacking,i=this.yAxis,o=[],a=[],l=this.index,c=i.stacking.stacks[this.stackKey],d=n.threshold,h=Math.round(i.getThreshold(n.threshold));n=u(n.connectNulls,"percent"===r);var f=function(e,n,s){var u=t[e];e=r&&c[u.x].points[l];var f=u[s+"Null"]||0;if(s=u[s+"Cliff"]||0,u=!0,s||f){var p=(f?e[0]:e[1])+s,m=e[0]+s;u=!!f}else!r&&t[n]&&t[n].isNull&&(p=m=d);void 0!==p&&(a.push({plotX:y,plotY:null===p?h:i.getThreshold(p),isNull:u,isCliff:!0}),o.push({plotX:y,plotY:null===m?h:i.getThreshold(m),doCurve:!1}))};t=t||this.points,r&&(t=this.getStackPoints(t));for(var p=0,m=t.length;p<m;++p){r||(t[p].leftCliff=t[p].rightCliff=t[p].leftNull=t[p].rightNull=void 0);var g=t[p].isNull,y=u(t[p].rectPlotX,t[p].plotX),_=r?u(t[p].yBottom,h):h;g&&!n||(n||f(p,p-1,"left"),g&&!r&&n||(a.push(t[p]),o.push({x:p,plotX:y,plotY:_})),n||f(p,p+1,"right"))}return f=e.call(this,a,!0,!0),o.reversed=!0,(_=(g=e.call(this,o,!0,!0))[0])&&"M"===_[0]&&(g[0]=["L",_[1],_[2]]),(g=f.concat(g)).length&&g.push(["Z"]),e=e.call(this,a,!1,n),g.xMap=f.xMap,this.areaPath=g,e},e.prototype.getStackPoints=function(t){var e=this,n=[],r=[],i=this.xAxis,o=this.yAxis,s=o.stacking.stacks[this.stackKey],a={},c=o.series,d=c.length,h=o.options.reversedStacks?1:-1,f=c.indexOf(e);if(t=t||this.points,this.options.stacking){for(var p=0;p<t.length;p++)t[p].leftNull=t[p].rightNull=void 0,a[t[p].x]=t[p];l(s,(function(t,e){null!==t.total&&r.push(e)})),r.sort((function(t,e){return t-e}));var m=c.map((function(t){return t.visible}));r.forEach((function(t,l){var p,g,y=0;if(a[t]&&!a[t].isNull)n.push(a[t]),[-1,1].forEach((function(n){var i=1===n?"rightNull":"leftNull",o=s[r[l+n]],u=0;if(o)for(var y=f;0<=y&&y<d;){var _=c[y].index;(p=o.points[_])||(_===e.index?a[t][i]=!0:m[y]&&(g=s[t].points[_])&&(u-=g[1]-g[0])),y+=h}a[t][1===n?"rightCliff":"leftCliff"]=u}));else{for(var _=f;0<=_&&_<d;){if(p=s[t].points[c[_].index]){y=p[1];break}_+=h}y=u(y,0),y=o.translate(y,0,1,0,1),n.push({isNull:!0,plotX:i.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}}))}return n},e.defaultOptions=a(s.defaultOptions,{threshold:0}),e}(s),t(r.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("area",r),r})),e(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.seriesTypes.line,i=e.merge,o=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
2return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.getPointSpline=function(t,e,n){var r=e.plotX||0,i=e.plotY||0,s=t[n-1];if(n=t[n+1],s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=s.plotY||0;var a=n.plotX||0;n=n.plotY||0;var l=0,u=(1.5*r+(s.plotX||0))/2.5,c=(1.5*i+t)/2.5,d=(1.5*i+n)/2.5;(a=(1.5*r+a)/2.5)!==u&&(l=(d-c)*(a-r)/(a-u)+i-d),d+=l,(c+=l)>t&&c>i?d=2*i-(c=Math.max(t,i)):c<t&&c<i&&(d=2*i-(c=Math.min(t,i))),d>n&&d>i?c=2*i-(d=Math.max(n,i)):d<n&&d<i&&(c=2*i-(d=Math.min(n,i))),e.rightContX=a,e.rightContY=d}return e=["C",o(s.rightContX,s.plotX,0),o(s.rightContY,s.plotY,0),o(u,r,0),o(c,i,0),r,i],s.rightContX=s.rightContY=void 0,e},e.defaultOptions=i(r.defaultOptions),e}(r),t.registerSeriesType("spline",e),e})),e(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Spline/SplineSeries.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n.seriesTypes,s=o.area;o=o.area.prototype;var a=r.extend,l=r.merge;return r=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return i(n,e),n.defaultOptions=l(t.defaultOptions,s.defaultOptions),n}(t),a(r.prototype,{getGraphPath:o.getGraphPath,getStackPoints:o.getStackPoints,drawGraph:o.drawGraph,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("areaspline",r),r})),e(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,s){var a=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=t.animObject,u=e.parse,c=n.hasTouch;t=n.noop;var d=s.clamp,h=s.css,f=s.defined,p=s.extend,m=s.fireEvent,g=s.isArray,y=s.isNumber,_=s.merge,v=s.pick,b=s.objectEach;return s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return a(e,t),e.prototype.animate=function(t){var e=this,n=this.yAxis,r=e.options,i=this.chart.inverted,o={},s=i?"translateX":"translateY";if(t)o.scaleY=.001,t=d(n.toPixels(r.threshold),n.pos,n.pos+n.len),i?o.translateX=t-n.len:o.translateY=t,e.clipBox&&e.setClip(),e.group.attr(o);else{var a=Number(e.group.attr(s));e.group.animate({scaleY:1},p(l(e.options.animation),{step:function(t,r){e.group&&(o[s]=a+r.pos*(n.pos-a),e.group.attr(o))}}))}},e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments);var r=this;(e=r.chart).hasRendered&&e.series.forEach((function(t){t.type===r.type&&(t.isDirty=!0)}))},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,n=t.xAxis,r=t.yAxis,i=n.options.reversedStacks;i=n.reversed&&!i||!n.reversed&&i;var o,s={},a=0;!1===e.grouping?a=1:t.chart.series.forEach((function(e){var n=e.yAxis,i=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&r.len===n.len&&r.pos===n.pos){if(i.stacking&&"group"!==i.stacking){o=e.stackKey,void 0===s[o]&&(s[o]=a++);var l=s[o]}else!1!==i.grouping&&(l=a++);e.columnIndex=l}}));var l=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||e.pointRange||n.closestPointRange||n.tickInterval||1),n.len),u=l*e.groupPadding,c=(l-2*u)/(a||1);return e=Math.min(e.maxPointWidth||n.len,v(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(u+((t.columnIndex||0)+(i?1:0))*c-l/2)*(i?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,n,r){var i=this.chart,o=this.borderWidth,s=-(o%2?.5:0);return o=o%2?.5:1,i.inverted&&i.renderer.isVML&&(o+=1),this.options.crisp&&(n=Math.round(t+n)+s,n-=t=Math.round(t)+s),r=Math.round(e+r)+o,s=.5>=Math.abs(e)&&.5<r,r-=e=Math.round(e)+o,s&&r&&(--e,r+=1),{x:t,y:e,width:n,height:r}},e.prototype.adjustForMissingColumns=function(t,e,n,r){var i=this,o=this.options.stacking;if(!n.isNull&&1<r.columnCount){var s=this.yAxis.options.reversedStacks,a=0,l=s?0:-r.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof n.x&&(t=t[n.x.toString()])){var e=t.points[i.index],r=t.total;o?(e&&(a=l),t.hasValidPoints&&(s?l++:l--)):g(e)&&(a=e[1],l=r||0)}})),t=(n.plotX||0)+((l-1)*r.paddedWidth+e)/2-e-a*r.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,n=t.options,r=t.dense=2>t.closestPointRange*t.xAxis.transA;r=t.borderWidth=v(n.borderWidth,r?0:1);var o=t.xAxis,s=t.yAxis,a=n.threshold,l=t.translatedThreshold=s.getThreshold(a),u=v(n.minPointLength,5),c=t.getColumnMetrics(),h=c.width,p=t.pointXOffset=c.offset,m=t.dataMin,g=t.dataMax,_=t.barW=Math.max(h,1+2*r);e.inverted&&(l-=.5),n.pointPadding&&(_=Math.ceil(_)),i.prototype.translate.apply(t),t.points.forEac
2h((function(r){var i=v(r.yBottom,l),b=999+Math.abs(i),w=r.plotX||0;b=d(r.plotY,-b,s.len+b);var M=Math.min(b,i),S=Math.max(b,i)-M,C=h,A=w+p,x=_;u&&Math.abs(S)<u&&(S=u,w=!s.reversed&&!r.negative||s.reversed&&r.negative,y(a)&&y(g)&&r.y===a&&g<=a&&(s.min||0)<a&&(m!==g||(s.max||0)<=a)&&(w=!w),M=Math.abs(M-l)>u?i-u:l-(w?u:0)),f(r.options.pointWidth)&&(C=x=Math.ceil(r.options.pointWidth),A-=Math.round((C-h)/2)),n.centerInCategory&&(A=t.adjustForMissingColumns(A,C,r,c)),r.barX=A,r.pointWidth=C,r.tooltipPos=e.inverted?[d(s.len+s.pos-e.plotLeft-b,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),o.len+o.pos-e.plotTop-A-x/2,S]:[o.left-e.plotLeft+A+x/2,d(b+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),S],r.shapeType=t.pointClass.prototype.shapeType||"rect",r.shapeArgs=t.crispCol.apply(t,r.isNull?[A,l,x,0]:[A,M,x,S])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||"borderColor",o=r["stroke-width"]||"borderWidth",s=t&&t.color||this.color,a=t&&t[i]||n[i]||s;r=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[o]||n[o]||this[o]||0,c=v(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var d=t.getZone();s=t.options.color||d&&(d.color||t.nonZonedColor)||this.color,d&&(a=d.borderColor||a,r=d.dashStyle||r,l=d.borderWidth||l)}return e&&t&&(e=(t=_(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&u(s).brighten(t.brightness).get()||s,a=t[i]||a,l=t[o]||l,r=t.dashStyle||r,c=v(t.opacity,c)),i={fill:s,stroke:a,"stroke-width":l,opacity:c},r&&(i.dashstyle=r),i},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,r=e.options,i=n.renderer,o=r.animationLimit||250;e.points.forEach((function(s){var a=s.graphic,l=!!a,u=a&&n.pointCount<o?"animate":"attr";y(s.plotY)&&null!==s.y?(t=s.shapeArgs,a&&s.hasNewShapeType()&&(a=a.destroy()),e.enabledDataSorting&&(s.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),a||(s.graphic=a=i[s.shapeType](t).add(s.group||e.group))&&e.enabledDataSorting&&n.hasRendered&&n.pointCount<o&&(a.attr({x:s.startXPos}),l=!0,u="animate"),a&&l&&a[u](_(t)),r.borderRadius&&a[u]({r:r.borderRadius}),n.styledMode||a[u](e.pointAttribs(s,s.selected&&"select")).shadow(!1!==s.allowShadow&&r.shadow,null,r.stacking&&!r.borderRadius),a&&(a.addClass(s.getClassName(),!0),a.attr({visibility:s.visible?"inherit":"hidden"}))):a&&(s.graphic=a.destroy())}))},e.prototype.drawTracker=function(){var t,e=this,n=e.chart,r=n.pointer,i=function(t){var e=r.getPointFromEvent(t);void 0!==e&&(r.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=g(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",(function(t){r.onTrackerMouseOut(t)})),c&&e[t].on("touchstart",i),!n.styledMode&&e.options.cursor&&e[t].css(h).css({cursor:e.options.cursor}))})),e._hasTracking=!0),m(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),i.prototype.remove.apply(t,arguments)},e.defaultOptions=_(i.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),e}(i),p(s.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:r.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",s),s})),e(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=t.getDeferredAnimation,o=e.format,s=n.defined,a=n.extend,l=n.fireEvent,u=n.isArray,c=n.isString,d=n.merge,h=n.objectEach,f=n.pick,p=n.splat;return function(t){function e(t,e,n,r,i){var o=this,l=this.chart,u=this.isCartesian&&l.inverted,c=this.enabledDataSorting,d=f(t.dlBox&&t.dlBox.centerX,t.plotX),h=t.plotY,p=n.rotation,m=n.align,g=s(d)&&s(h)&&l.isInsidePlot(d,Math.round(h),{inverted:u,paneCoordinates:!0,series:o}),y=function(n){c&&o.xAxis&&!_&&o.setDataLabelStartPos(t,e,i,g,n)},_="justify"===f(n.overflow,c?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||c&&!_||g||f(n.inside,!!this.options.stacking)&&r&&l.isInsidePlot(d,u?r.x+1:r.y+r.height-1,{inverted:u,paneCoordinates:!0,series:o}));if(v&&s(d)&&s(h)){p&&e.attr({align:m}),m=e.getBBox(!0);var b=[0,0],w=l.renderer.fontMetrics(l.styledMode?void 0:n.style.fontSize,e).b;r=a({x:u?this.yAxis.len-h:d,y:Math.round(u?this.xAxis.len-d:h),width:0,height:0},r),a(n,{width:m.width,height:m.height}),p?(_=!1,b=l.renderer.rotCorr(w,p),d={x:r.x+(n.x||0)+r.width/2+b.x,y:r.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*r.height},b=[m.x-Number(e.attr("x")),m.y-Number(e.attr("y"))],y(d),e[i?"attr":"animate"](d)):(y(r),e.align(n,void 0,r),d=e.alignAttr),_&&0<=r.height?this.justifyDataLabel(e,n,d,m,r,i):f(n.crop,!0)&&(r=d.x,y=d.y,r+=b[0],y+=b[1],v=l.isInsidePlot(r,y,{paneCoordinates:!0,series:o}
2)&&l.isInsidePlot(r+m.width,y+m.height,{paneCoordinates:!0,series:o})),n.shape&&!p&&e[i?"attr":"animate"]({anchorX:u?l.plotWidth-t.plotY:t.plotX,anchorY:u?l.plotHeight-t.plotX:t.plotY})}i&&c&&(e.placed=!1),v||c&&!_?e.show():(e.hide(),e.placed=!1)}function n(){var t=this,e=t.chart,n=t.options,r=t.points,a=t.hasRendered||0,d=e.renderer,g=e.options.chart,y=g.backgroundColor;g=g.plotBackgroundColor;var _=d.getContrast(c(g)&&g||c(y)&&y||"#000000"),v=n.dataLabels;if(y=v.animation,y=v.defer?i(e,y,t):{defer:0,duration:0},v=m(m(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),v),l(this,"drawDataLabels"),u(v)||v.enabled||t._hasPointLabels){var b=t.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",v.zIndex||6);b.attr({opacity:+a}),!a&&(a=t.dataLabelsGroup)&&(t.visible&&b.show(),a[n.animation?"animate":"attr"]({opacity:1},y)),r.forEach((function(r){p(m(v,r.dlOptions||r.options&&r.options.dataLabels)).forEach((function(i,a){var l=i.enabled&&(!r.isNull||r.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t<n||">="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(r,i),u=r.connectors?r.connectors[a]:r.connector,c=r.dataLabels?r.dataLabels[a]:r.dataLabel,p=!c,m=f(i.distance,r.labelDistance);if(l){var g=r.getLabelConfig(),y=f(i[r.formatPrefix+"Format"],i.format);g=s(y)?o(y,g,e):(i[r.formatPrefix+"Formatter"]||i.formatter).call(g,i),y=i.style;var v=i.rotation;e.styledMode||(y.color=f(i.color,y.color,t.color,"#000000"),"contrast"===y.color?(r.contrastColor=d.getContrast(r.color||t.color),y.color=!s(m)&&i.inside||0>m||n.stacking?r.contrastColor:_):delete r.contrastColor,n.cursor&&(y.cursor=n.cursor));var w={r:i.borderRadius||0,rotation:v,padding:i.padding,zIndex:1};e.styledMode||(w.fill=i.backgroundColor,w.stroke=i.borderColor,w["stroke-width"]=i.borderWidth),h(w,(function(t,e){void 0===t&&delete w[e]}))}!c||l&&s(g)&&!!c.div==!!i.useHTML&&(c.rotation&&i.rotation||c.rotation===i.rotation)||(p=!0,r.dataLabel=c=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(1===r.dataLabels.length?delete r.dataLabels:delete r.dataLabels[a]),a||delete r.dataLabel,u&&(r.connector=r.connector.destroy(),r.connectors&&(1===r.connectors.length?delete r.connectors:delete r.connectors[a]))),l&&s(g)?(c?w.text=g:(r.dataLabels=r.dataLabels||[],c=r.dataLabels[a]=v?d.text(g,0,0,i.useHTML).addClass("highcharts-data-label"):d.label(g,0,0,i.shape,null,null,i.useHTML,null,"data-label"),a||(r.dataLabel=c),c.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(i.className||"")+(i.useHTML?" highcharts-tracker":""))),c.options=i,c.attr(w),e.styledMode||c.css(y).shadow(i.shadow),i.textPath&&!i.useHTML&&(c.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(c)||r.graphic,i.textPath),r.dataLabelPath&&!i.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),c.added||c.add(b),t.alignDataLabel(r,c,i,null,p)):c&&c.hide()}))}))}l(this,"afterDrawDataLabels")}function r(t,e,n,r,i,o){var s=this.chart,a=e.align,l=e.verticalAlign,u=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var d=e.y;d=void 0===d?0:d;var h=(n.x||0)+u;if(0>h){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=h;var f=!0}return(h=(n.x||0)+r.width-u)>s.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=s.plotWidth-h,f=!0),0>(h=n.y+u)&&("bottom"===l&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=h,f=!0),(h=(n.y||0)+r.height-u)>s.plotHeight&&("top"===l&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=s.plotHeight-h,f=!0),f&&(e.x=c,e.y=d,t.placed=!o,t.align(e,void 0,i)),f}function m(t,e){var n,r=[];if(u(t)&&!u(e))r=t.map((function(t){return d(t,e)}));else if(u(e)&&!u(t))r=e.map((function(e){return d(t,e)}));else if(u(t)||u(e))for(n=Math.max(t.length,e.length);n--;)r[n]=d(t[n],e[n]);else r=d(t,e);return r}function g(t,e,n,r,i){var o=this.chart,s=o.inverted,a=this.xAxis,l=a.reversed,u=s?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=s?i.x:l?-u-t:a.width-u+t,e.startYPos=s?l?this.yAxis.height-u+t:-u-t:i.y,r?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}
2).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var y=[];t.compose=function(t){if(-1===y.indexOf(t)){var i=t.prototype;y.push(t),i.alignDataLabel=e,i.drawDataLabels=n,i.justifyDataLabel=r,i.setDataLabelStartPos=g}}}(r||(r={})),r})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=e.series,o=n.merge,s=n.pick;return function(e){function n(t,e,n,r,a){var l=this.chart.inverted,u=t.series,c=(u.xAxis?u.xAxis.len:this.chart.plotSizeX)||0;u=(u.yAxis?u.yAxis.len:this.chart.plotSizeY)||0;var d=t.dlBox||t.shapeArgs,h=s(t.below,t.plotY>s(this.translatedThreshold,u)),f=s(n.inside,!!this.options.stacking);d&&(0>(r=o(d)).y&&(r.height+=r.y,r.y=0),0<(d=r.y+r.height-u)&&d<r.height&&(r.height-=d),l&&(r={x:u-r.y-r.height,y:c-r.x-r.width,width:r.height,height:r.width}),f||(l?(r.x+=h?0:r.width,r.width=0):(r.y+=h?r.height:0,r.height=0))),n.align=s(n.align,!l||f?"center":h?"right":"left"),n.verticalAlign=s(n.verticalAlign,l||f?"middle":h?"top":"bottom"),i.prototype.alignDataLabel.call(this,t,e,n,r,a),n.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var r=[];e.compose=function(e){t.compose(i),-1===r.indexOf(e)&&(r.push(e),e.prototype.alignDataLabel=n)}}(r||(r={})),r})),e(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.extend,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.defaultOptions=o(t.defaultOptions,{}),n}(t),i(n.prototype,{inverted:!0}),e.registerSeriesType("bar",n),n})),e(n,"Series/Scatter/ScatterSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.seriesTypes,i=r.column,o=r.line;r=e.addEvent;var s=e.extend,a=e.merge;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.applyJitter=function(){var t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach((function(r,i){["x","y"].forEach((function(o,s){var a="plot"+o.toUpperCase();if(e[o]&&!r.isNull){var l=t[o+"Axis"],u=e[o]*l.transA;if(l&&!l.isLog){var c=Math.max(0,r[a]-u);l=Math.min(l.len,r[a]+u),s=1e4*Math.sin(i+s*n),r[a]=c+(l-c)*(s-Math.floor(s)),"x"===o&&(r.clientX=r.plotX)}}}))}))},e.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},e.defaultOptions=a(o.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),e}(o),s(e.prototype,{drawTracker:i.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),r(e,"afterTranslate",(function(){this.applyJitter()})),t.registerSeriesType("scatter",e),e})),e(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=t.deg2rad,o=n.fireEvent,s=n.isNumber,a=n.pick,l=n.relativeLength;return function(t){t.getCenter=function(){var t=this.options,n=this.chart,r=2*(t.slicedOffset||0),i=n.plotWidth-2*r,u=n.plotHeight-2*r,c=t.center,d=Math.min(i,u),h=t.thickness,f=t.size,p=t.innerSize||0;for("string"==typeof f&&(f=parseFloat(f)),"string"==typeof p&&(p=parseFloat(p)),t=[a(c[0],"50%"),a(c[1],"50%"),a(f&&0>f?void 0:t.size,"100%"),a(p&&0>p?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),c=0;4>c;++c)f=t[c],n=2>c||2===c&&/%$/.test(f),t[c]=l(f,[i,u,d,t[2]][c])+(n?r:0);return t[3]>t[2]&&(t[3]=t[2]),s(h)&&2*h<t[2]&&0<h&&(t[3]=t[2]-2*h),o(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=s(t)?t:0,e=s(e)&&e>t&&360>e-t?e:t+360,{start:i*(t+-90),end:i*(e+-90)}}}(r||(r={})),r})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.setAnimation,o=n.addEvent,s=n.defined;t=n.extend;var a=n.isNumber,l=n.pick,u=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
2return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return r(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,r=e.connectorShape;return n[r]&&(r=n[r]),r.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,r=this.series,i=r.chart,o=r.options.ignoreHiddenPoint;e=l(e,o),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,r.options.data[r.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&i.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(r.isDirty=!0),e&&i.redraw())},e.prototype.slice=function(t,e,n){var r=this.series;i(n,r.chart),l(e,!0),this.sliced=this.options.sliced=s(t)?t:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var r=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*r.x-e.x,2*r.y-e.y,r.x,r.y]:["L",r.x,r.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var r=this.series,i=r.center[0],o=r.chart.plotWidth,s=r.chart.plotLeft;r=t.alignment;var a=this.shapeArgs.r;return n=u(n.crookDistance,1),n=["L",o="left"===r?i+a+(o+s-i-a)*(1-n):s+(i-a)*n,t.y],i=!0,("left"===r?o>t.x||o<e.x:o<t.x||o>e.x)&&(i=!1),t=[["M",t.x,t.y]],i&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,s,a,l){var u=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=t.getStartAndEndRadians;n=n.noop;var d=l.clamp,h=l.extend,f=l.fireEvent,p=l.merge,m=l.pick,g=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return u(e,t),e.prototype.animate=function(t){var e=this,n=e.points,r=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,i=t.shapeArgs;n&&i&&(n.attr({r:m(t.startR,e.center&&e.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var r=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,i,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(r,i,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;
2this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var r=this.center,i=this.radii?this.radii[n.index]||0:r[2]/2;return t=Math.asin(d((t-r[1])/(i+n.labelDistance),-1,1)),r[0]+(e?-1:1)*Math.cos(t)*(i+n.labelDistance)+(0<n.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,n,r,i=this,o=i.chart,s=o.renderer,a=i.options.shadow;this.drawEmpty(),!a||i.shadowGroup||o.styledMode||(i.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(i.group)),i.points.forEach((function(l){var u={};if(e=l.graphic,!l.isNull&&e){var c=void 0;r=l.shapeArgs,t=l.getTranslate(),o.styledMode||(c=l.shadowGroup,a&&!c&&(c=l.shadowGroup=s.g("shadow").add(i.shadowGroup)),c&&c.attr(t),n=i.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(e.setRadialReference(i.center).attr(r).attr(t),o.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}).shadow(a,c),l.delayedRendering=!1):(e.setRadialReference(i.center),o.styledMode||p(!0,u,n),p(!0,u,r,t),e.animate(u)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}))},e.prototype.sortByAngle=function(t,e){t.sort((function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e}))},e.prototype.translate=function(t){f(this,"translate"),this.generatePoints();var e=this.options,n=e.slicedOffset,r=n+(e.borderWidth||0),i=c(e.startAngle,e.endAngle),o=this.startAngleRad=i.start;i=(this.endAngleRad=i.end)-o;var s=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var l,u=s.length,d=0;for(t||(this.center=t=this.getCenter()),l=0;l<u;l++){var h=s[l],p=o+d*i;!h.isValid()||e&&!h.visible||(d+=h.percentage/100);var y=o+d*i,_={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*p)/1e3,end:Math.round(1e3*y)/1e3};h.shapeType="arc",h.shapeArgs=_,h.labelDistance=m(h.options.dataLabels&&h.options.dataLabels.distance,a),h.labelDistance=g(h.labelDistance,_.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance),(y=(y+p)/2)>1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(y)*n),translateY:Math.round(Math.sin(y)*n)},_=Math.cos(y)*t[2]/2;var v=Math.sin(y)*t[2]/2;h.tooltipPos=[t[0]+.7*_,t[1]+.7*v],h.half=y<-Math.PI/2||y>Math.PI/2?1:0,h.angle=y,p=Math.min(r,h.labelDistance/5),h.labelPosition={natural:{x:t[0]+_+Math.cos(y)*h.labelDistance,y:t[1]+v+Math.sin(y)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+_+Math.cos(y)*p,y:t[1]+v+Math.sin(y)*p},touchingSliceAt:{x:t[0]+_,y:t[1]+v}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,r=this.options.ignoreHiddenPoint,i=0;for(t=0;t<n;t++){var o=e[t];!o.isValid()||r&&!o.visible||(i+=o.y)}for(this.total=i,t=0;t<n;t++)(o=e[t]).percentage=0<i&&(o.visible||!r)?o.y/i*100:0,o.total=i},e.defaultOptions=p(o.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(o),h(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:r.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:i,requireSorting:!1,searchPoint:n,trackerGroups:["group","dataLabelsGroup"]}),s.registerSeriesType("pie",l),l})),e(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i){var o,s=e.noop,a=n.distribute,l=r.series,u=i.arrayMax,c=i.clamp,d=i.defined,h=i.merge,f=i.pick,p=i.relativeLength;return function(e){function n(){var t,e,n,r,i,o,s,c,p,m,g,y,_=this,v=_.data,b=_.chart,w=_.options.dataLabels||{},M=w.connectorPadding,S=b.plotWidth,C=b.plotHeight,A=b.plotLeft,x=Math.round(b.chartWidth/3),E=_.center,L=E[2]/2,T=E[1],D=[[],[]],k=[0,0,0,0],O=_.dataLabelPositioners;_.visible&&(w.enabled||_._hasPointLabels)&&(v.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),l.prototype.drawDataLabels.apply(_),v.forEach((function(t){t.dataLabel&&(t.visible?(D[t.half].push(t),t.dataLabel._pos=null,!d(w.style.width)&&!d(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>x&&(t.dataLabel.css({width:Math.round(.7*x)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),D.forEach((function(e,n){var l,u=e.length,h=[];if(u){if(_.sortByAngle(e,n-.5),0<_.maxLabelDistance){var v=Math.max(0,T-L-_.maxLabelDistance),x=Math.min(T+L+_.maxLabelDistance,b.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,T-L-t.labelDistance),t.bottom=Math.min(T+L+t.labelDistance,b.plotHeight),l=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+l/2,size:l,rank:t.y},h.push(t.distributeBox))})),a(h,v=x+l-v,v/5)}for(g=0;g<u;g++){if(t=e[g],o=t.labelPosition,r=t.dataLabel,m=!1===t.visible?"hidden":"inherit",p=v=o.natural.y,h&&d(t.distributeBox)&&(void 0===t.distributeBox.pos?m="hidden":(s=t.distributeBox.size,p=O.radialDistributionY(t))),delete t.positionIndex,w.justify)c=O.justify(t,L,E);else switch(w.alignTo){case"connectors":c=O.alignToConnectors(e,n,S,A);break;case"plotEdges":c=O.alignToPlotEdges(r,n,S,A);break;default:c=O.radialDistributionX(_,t,p,v)}r._attr={visibility:m,align:o.alignment},y=t.options.dataLabels||{},r._pos={x:c+f(y.x,w.x)+({left:M,right:-M}[o.alignment]||0),y:p+f(y.y,w.y)-10},o.final.x=c,o.final.y=p,f(w.crop,!0)&&(i=r.getBBox().width,v=null,c-i<M&&1===n?(v=Math.round(i-c+M),k[3]=Math.max(v,k[3])):c+i>S-M&&0===n&&(v=Math.round(c+i-S+M),k[1]=Math.max(v,k[1])),0>p-s/2?k[0]=Math.max(Math.round(s/2-p),k[0]):p+s/2>C&&(k[2]=Math.max(Math.round(p+s/2-C),k[2])),r.sideOverflow=v)}}})),0===u(k)||this.verifyDataLabelOverflow(k))&&(this.placeDataLabels(),this.points.forEac
2h((function(t){var i;y=h(w,t.options.dataLabels),(e=f(y.connectorWidth,1))&&(n=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0<t.labelDistance?(m=r._attr.visibility,(i=!n)&&(t.connector=n=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(_.dataLabelsGroup),b.styledMode||n.attr({"stroke-width":e,stroke:y.connectorColor||t.color||"#666666"})),n[i?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",m)):n&&(t.connector=n.destroy()))})))}function r(){this.points.forEach((function(t){var e,n=t.dataLabel;n&&t.visible&&((e=n._pos)?(n.sideOverflow&&(n._attr.width=Math.max(n.getBBox().width-n.sideOverflow,0),n.css({width:n._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),n.shortened=!0),n.attr(n._attr),n[n.moved?"animate":"attr"](e),n.moved=!0):n&&n.attr({y:-9999})),delete t.distributeBox}),this)}function i(t){var e=this.center,n=this.options,r=n.center,i=n.minSize||80,o=null!==n.size;if(!o){if(null!==r[0])var s=Math.max(e[2]-Math.max(t[1],t[3]),i);else s=Math.max(e[2]-t[1]-t[3],i),e[0]+=(t[3]-t[1])/2;null!==r[1]?s=c(s,i,e[2]-Math.max(t[0],t[2])):(s=c(s,i,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(n.thickness?Math.max(0,s-2*n.thickness):Math.max(0,p(n.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}var o=[],m={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,n,r){return t.getX(n<e.top+2||n>e.bottom-2?r:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,r){return t=t.getBBox().width,e?t+r:n-t-r},alignToConnectors:function(t,e,n,r){var i,o=0;return t.forEach((function(t){(i=t.dataLabel.getBBox().width)>o&&(o=i)})),e?o+r:n-o-r}};e.compose=function(e){t.compose(l),-1===o.indexOf(e)&&(o.push(e),(e=e.prototype).dataLabelPositioners=m,e.alignDataLabel=s,e.drawDataLabels=n,e.placeDataLabels=r,e.verifyDataLabelOverflow=i)}}(o||(o={})),o})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var r=t.newOpacity;t.oldOpacity!==r&&(t.alignAttr&&t.placed?(t[r?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=r,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:r?"auto":"none"})})),i(e,"afterHideOverlappingLabel")):t.attr({opacity:r})),t.isOld=!0}return n}var r=e.addEvent,i=e.fireEvent,o=e.isArray,s=e.isNumber,a=e.objectEach,l=e.pick;r(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,(function(t){a(t,(function(t){t.label&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&(i=function(r){return r.forEach((function(r){r.visible&&(o(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach((function(i){var o=i.options;i.labelrank=l(o.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),o.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,n(i,t)):e.push(i)}))}))},i(r.nodes||[]),i(r.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,r,o,a=this,l=t.length,u=a.renderer,c=!1,d=function(t){var e,n,r=t.box?0:t.padding||0,i=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=u.fontMetrics(null,t.element).h);var l=t.width-2*r;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?i=+n*l:s(t.x)&&Math.round(t.x)!==t.translateX&&(i=t.x-t.translateX),{x:o.x+(a.translateX||0)+r-(i||0),y:o.y+(a.translateY||0)+r-e,width:t.width-2*r,height:t.height-2*r}}};for(r=0;r<l;r++)(e=t[r])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=d(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),r=0;r<l;r++){var h=(d=t[r])&&d.absoluteBox;for(e=r+1;e<l;++e){var f=(o=t[e])&&o.absoluteBox;!h||!f||d===o||0===d.newOpacity||0===o.newOpacity||"hidden"===d.visibility||"hidden"===o.visibility||f.x>=h.x+h.width||f.x+f.width<=h.x||f.y>=h.y+h.height||f.y+f.height<=h.y||((d.labelrank<o.labelrank?d:o).newOpacity=0)}}t.forEach((function(t){n(t,a)&&(c=!0)})),c&&i(a,"afterHideAllOverlappingLabels")}})),e(n,"Core/Responsive.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.extend,r
2=t.find,i=t.isArray,o=t.isObject,s=t.merge,a=t.objectEach,l=t.pick,u=t.splat,c=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),n(t.prototype,d.prototype)),t};var d=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,n={};return function t(n,r,s,l){var c;a(n,(function(n,a){if(!l&&-1<e.collectionsWithUpdate.indexOf(a)&&r[a])for(n=u(n),s[a]=[],c=0;c<Math.max(n.length,r[a].length);c++)r[a][c]&&(void 0===n[c]?s[a][c]=r[a][c]:(s[a][c]={},t(n[c],r[a][c],s[a][c],l+1)));else o(n)?(s[a]=i(n)?[]:{},t(n,r[a]||{},s[a],l+1)):s[a]=void 0===r[a]?null:r[a]}))}(t,this.options,n,0),n},t.prototype.matchResponsiveRule=function(t,e){var n=t.condition;(n.callback||function(){return this.chartWidth<=l(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=l(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,i=this.options.responsive,o=this.currentResponsive,a=[];
2!e&&i&&i.rules&&i.rules.forEach((function(t){void 0===t._id&&(t._id=c()),n.matchResponsiveRule(t,a)}),this),e=s.apply(void 0,a.map((function(t){return r((i||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions}))),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),a?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Axis/Stacking/StackingAxis.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,r,i,o,s,a,l,u,c,d,h,f,p,m,g,y,_,v,b,w,M,S,C,A,x,E,L,T,D,k,O,I,N){return t.animate=i.animate,t.animObject=i.animObject,t.getDeferredAnimation=i.getDeferredAnimation,t.setAnimation=i.setAnimation,t.stop=i.stop,t.timers=r.timers,t.AST=o,t.Axis=h,t.Chart=M,t.chart=M.chart,t.Fx=r,t.Legend=w,t.PlotLineOrBand=m,t.Point=_,t.Pointer=b.isRequired()?b:v,t.Series=A,t.StackItem=C,t.SVGElement=l,t.SVGRenderer=u,t.Tick=g,t.Time=N,t.Tooltip=y,t.Color=I,t.color=I.parse,d.compose(u),c.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=s.dateFormat,t.format=s.format,t.numberFormat=s.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=x.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,L.compose(E),k.compose(A),f.compose(h),p.compose(h),D.compose(T),m.compose(h),O.compose(M),S.compose(h,M,A),t})),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]},t.exports?(o.default=o,t.exports=i.document?o(i):o):void 0===(r=function(){return o(i)}.call(e,n,e,t))||(t.exports=r)},6817:function(t,e,n){!function(t){"use strict";function e(t){return null==t}var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}
vendor: 42,565 bytes, line 2
2function o(t,e){var n=Object.setPrototypeOf;n?n(t,e):t.__proto__=e}function s(t,e){void 0===e&&(e=t.constructor);var n=Error.captureStackTrace;n&&n(t,e)}var a,l=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.defineProperty(r,"name",{value:n.name,enumerable:!1}),o(r,n.prototype),s(r),r}return i(e,t),e}(Error);class u extends l{constructor(t){super(t),this.message=t}getKind(){return this.constructor.kind}}u.kind="Exception";class c extends u{}c.kind="ArgumentException";class d extends u{}d.kind="IllegalArgumentException";class h{constructor(t){if(this.binarizer=t,null===t)throw new d("Binarizer must be non-null.")}getWidth(){return this.binarizer.getWidth()}getHeight(){return this.binarizer.getHeight()}getBlackRow(t,e){return this.binarizer.getBlackRow(t,e)}getBlackMatrix(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix}isCropSupported(){return this.binarizer.getLuminanceSource().isCropSupported()}crop(t,e,n,r){const i=this.binarizer.getLuminanceSource().crop(t,e,n,r);return new h(this.binarizer.createBinarizer(i))}isRotateSupported(){return this.binarizer.getLuminanceSource().isRotateSupported()}rotateCounterClockwise(){const t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new h(this.binarizer.createBinarizer(t))}rotateCounterClockwise45(){const t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new h(this.binarizer.createBinarizer(t))}toString(){try{return this.getBlackMatrix().toString()}catch(t){return""}}}class f extends u{static getChecksumInstance(){return new f}}f.kind="ChecksumException";class p{constructor(t){this.source=t}getLuminanceSource(){return this.source}getWidth(){return this.source.getWidth()}getHeight(){return this.source.getHeight()}}class m{static arraycopy(t,e,n,r,i){for(;i--;)n[r++]=t[e++]}static currentTimeMillis(){return Date.now()}}class g extends u{}g.kind="IndexOutOfBoundsException";class y extends g{constructor(t,e){super(e),this.index=t,this.message=e}}y.kind="ArrayIndexOutOfBoundsException";class _{static fill(t,e){for(let n=0,r=t.length;n<r;n++)t[n]=e}static fillWithin(t,e,n,r){_.rangeCheck(t.length,e,n);for(let i=e;i<n;i++)t[i]=r}static rangeCheck(t,e,n){if(e>n)throw new d("fromIndex("+e+") > toIndex("+n+")");if(e<0)throw new y(e);if(n>t)throw new y(n)}static asList(...t){return t}static create(t,e,n){return Array.from({length:t}).map((t=>Array.from({length:e}).fill(n)))}static createInt32Array(t,e,n){return Array.from({length:t}).map((t=>Int32Array.from({length:e}).fill(n)))}static equals(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}static hashCode(t){if(null===t)return 0;let e=1;for(const n of t)e=31*e+n;return e}static fillUint8Array(t,e){for(let n=0;n!==t.length;n++)t[n]=e}static copyOf(t,e){return t.slice(0,e)}static copyOfUint8Array(t,e){if(t.length<=e){const n=new Uint8Array(e);return n.set(t),n}return t.slice(0,e)}static copyOfRange(t,e,n){const r=n-e,i=new Int32Array(r);return m.arraycopy(t,e,i,0,r),i}static binarySearch(t,e,n){void 0===n&&(n=_.numberComparator);let r=0,i=t.length-1;for(;r<=i;){const o=i+r>>1,s=n(e,t[o]);if(s>0)r=o+1;else{if(!(s<0))return o;i=o-1}}return-r-1}static numberComparator(t,e){return t-e}}class v{static numberOfTrailingZeros(t){let e;if(0===t)return 32;let n=31;return e=t<<16,0!==e&&(n-=16,t=e),e=t<<8,0!==e&&(n-=8,t=e),e=t<<4,0!==e&&(n-=4,t=e),e=t<<2,0!==e&&(n-=2,t=e),n-(t<<1>>>31)}static numberOfLeadingZeros(t){if(0===t)return 32;let e=1;return t>>>16==0&&(e+=16,t<<=16),t>>>24==0&&(e+=8,t<<=8),t>>>28==0&&(e+=4,t<<=4),t>>>30==0&&(e+=2,t<<=2),e-=t>>>31,e}static toHexString(t){return t.toString(16)}static toBinaryString(t){return String(parseInt(String(t),2))}static bitCount(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,t+=t>>>8,63&(t+=t>>>16)}static truncDivision(t,e){return Math.trunc(t/e)}static parseInt(t,e){return parseInt(t,e)}}v.MIN_VALUE_32_BITS=-2147483648,v.MAX_VALUE=Number.MAX_SAFE_INTEGER;class b{constructor(t,e){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==e?b.makeArray(t):e)}getSize(){return this.size}getSizeInBytes(){return Math.floor((this.size+7)/8)}ensureCapacity(t){if(t>32*this.bits.length){const e=b.makeArray(t);m.arraycopy(this.bits,0,e,0,this.bits.length),this.bits=e}}get(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))}set(t){this.bits[Math.floor(t/32)]|=1<<(31&t)}flip(t){this.bits[Math.floor(t/32)]^=1<<(31&t)}getNextSet(t){const e=this.size;if(t>=e)return e;const n=this.bits;let r=Math.floor(t/32),i=n[r];i&=~((1<<(31&t))-1);const o=n.length;for(;0===i;){if(++r===o)return e;i=n[r]}const s=32*r+v.numberOfTrailingZeros(i);return s>e?e:s}getNextUnset(t){const e=this.size;if(t>=e)return e;const n=this.bits;let r=Math.floor(t/32),i=~n[r];i&=~((1<<(31&t))-1);const o=n.length;for(;0===i;){if(++r===o)return e;i=~n[r]}const s=32*r+v.numberOfTrailingZeros(i);return s>e?e:s}setBulk(t,e){this.bits[Math.floor(t/32)]=e}setRange(t,e){if(e<t||t<0||e>this.size)throw new d;if(e===t)return;e--;const n=Math.floor(t/32),r=Math.floor(e/32),i=this.bits;for(let o=n;o<=r;o++){const s=(2<<(o<r?31:31&e))-(1<<(o>n?0:31&t));i[o]|=s}}clear(){const t=this.bits.length,e=this.bits;for(let n=0;n<t;n++)e[n]=0}isRange(t,e,n){if(e<t||t<0||e>this.size)throw new d;if(e===t)return!0;e--;const r=Math.floor(t/32),i=Math.floor(e/32),o=this.bits;for(let s=r;s<=i;s++){const a=(2<<(s<i?31:31&e))-(1<<(s>r?0:31&t))&4294967295;if((o[s]&a)!==(n?a:0))return!1}return!0}appendBit(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++}appendBits(t,e){if(e<0||e>32)throw new d("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(let n=e;n>0;n--)this.appendBit(1==(t>>n-1&1))}appendBitArray(t){const e=t.size;this.ensureCapacity(this.size+e);for(let n=0;n<e;n++)this.appendBit(t.get(n))}xor(t){if(this.size!==t.size)throw new d("Sizes don't match");const e=this.bits;for(let n=0,r=e.length;n<r;n++)e[n]^=t.bits[n]}toBytes(t,e,n,r){for(let i=0;i<r;i++){let r=0;for(let e=0;e<8;e++)this.get(t)&&(r|=1<<7-e),t++;e[n+i]=r}}getBitArray(){return this.bits}reverse(){const t=new Int32Array(this.bits.length),e=Math.floor((this.size-1)/32),n=e+1,r=this.bits;for(let i=0;i<n;i++){let n=r[i];n=n>>1&1431655765|(1431655765&n)<<1,n=n>>2&858993459|(858993459&n)<<2,n=n>>4&252645135|(252645135&n)<<4,n=n>>8&16711935|(16711935&n)<<8,n=n>>16&65535|(65535&n)<<16,t[e-i]=n}if(this.size!==32*n){const e=32*n-this.size;let r=t[0]>>>e;for(let i=1;i<n;i++){const n=t[i];r|=n<<32-e,t[i-1]=r,r=n>>>e}t[n-1]=r}this.bits=t}static makeArray(t){return new Int32Array(Math.floor((t+31)/32))}equals(t){if(!(t instanceof b))return!1;const e=t;return this.size===e.size&&_.equals(this.bits,e.bits)}hashCode(){return 31*this.size+_.hashCode(this.bits)}toString(){let t="";for(let e=0,n=this.size;e<n;e++)0==(7&e)&&(t+=" "),t+=this.get(e)?"X":".";return t}clone(){return new b(this.size,this.bits.slice())}}!function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"}(a||(a={}));var w,M=a;class S extends u{static getFormatInstance(){return new S}}S.kind="FormatException",function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"}(w||(w={}));class C{constructor(t,e,n,...r){this.valueIdentifier=t,this.name=n,this.values="number"==typeof e?Int32Array.from([e]):e,this.otherEncodingNames=r,C.VALUE_IDENTIFIER_TO_ECI.set(t,this),C.NAME_TO_ECI.set(n,this);const i=this.values;for(let t=0,e=i.length;t!==e;t++){const e=i[t];C.VALUES_TO_ECI.set(e,this)}for(const t of r)C.NAME_TO_ECI.set(t,this)}getValueIdentifier(){return this.valueIdentifier}getName(){return this.name}getValue(){return this.values[0]}static getCharacterSetECIByValue(t){if(t<0||t>=900)throw new S("incorect value");const e=C.VALUES_TO_ECI.get(t);if(void 0===e)throw new S("incorect value");return e}static getCharacterSetECIByName(t){const e=C.NAME_TO_ECI.get(t);if(void 0===e)throw new S("incorect value");return e}equals(t){if(!(t instanceof C))return!1;const e=t;return this.getName()===e.getName()}}C.VALUE_IDENTIFIER_TO_ECI=new Map,C.VALUES_TO_ECI=new Map,C.NAME_TO_ECI=new Map,C.Cp437=new C(w.Cp437,Int32Array.from([0,2]),"Cp437"),C.ISO8859_1=new C(w.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),C.ISO8859_2=new C(w.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),C.ISO8859_3=new C(w.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),C.ISO8859_4=new C(w.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),C.ISO8859_5=new C(w.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),C.ISO8859_6=new C(w.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),C.ISO8859_7=new C(w.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),C.ISO8859_8=new C(w.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),C.ISO8859_9=new C(w.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),C.ISO8859_10=new C(w.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),C.ISO8859_11=new C(w.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),C.ISO8859_13=new C(w.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),C.ISO8859_14=new C(w.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),C.ISO8859_15=new C(w.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),C.ISO8859_16=new C(w.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),C.SJIS=new C(w.SJIS,20,"SJIS","Shift_JIS"),C.Cp1250=new C(w.Cp1250,21,"Cp1250","windows-1250"),C.Cp1251=new C(w.Cp1251,22,"Cp1251","windows-1251"),C.Cp1252=new C(w.Cp1252,23,"Cp1252","windows-1252"),C.Cp1256=new C(w.Cp1256,24,"Cp1256","windows-1256"),C.UnicodeBigUnmarked=new C(w.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),C.UTF8=new C(w.UTF8,26,"UTF8","UTF-8"),C.ASCII=new C(w.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),C.Big5=new C(w.Big5,28,"Big5"),C.GB18030=new C(w.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),C.EUC_KR=new C(w.EUC_KR,30,"EUC_KR","EUC-KR");class A extends u{}A.kind="UnsupportedOperationException";class x{static decode(t,e){const n=this.encodingName(e);return this.customDecoder?this.customDecoder(t,n):"undefined"==typeof TextDecoder||this.shouldDecodeOnFallback(n)?this.decodeFallback(t,n):new TextDecoder(n).decode(t)}static shouldDecodeOnFallback(t){return!x.isBrowser()&&"ISO-8859-1"===t}static encode(t,e){const n=this.encodingName(e);return this.customEncoder?this.customEncoder(t,n):"undefined"==typeof TextEncoder?this.encodeFallback(t):(new TextEncoder).encode(t)}static isBrowser(){return"undefined"!=typeof window&&"[object Window]"==={}.toString.call(window)}static encodingName(t){return"string"==typeof t?t:t.getName()}static encodingCharacterSet(t){return t instanceof C?t:C.getCharacterSetECIByName(t)}static decodeFallback(t,e){const n=this.encodingCharacterSet(e);if(x.isDecodeFallbackSupported(n)){let e="";for(let n=0,r=t.length;n<r;n++){let r=t[n].toString(16);r.length<2&&(r="0"+r),e+="%"+r}return decodeURIComponent(e)}if(n.equals(C.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new A(`Encoding ${this.encodingName(e)} not supported by fallback.`)}static isDecodeFallbackSupported(t){return t.equals(C.UTF8)||t.equals(C.ISO8859_1)||t.equals(C.ASCII)}static encodeFallback(t){const e=btoa(unescape(encodeURIComponent(t))).split(""),n=[];for(let t=0;t<e.length;t++)n.push(e[t].charCodeAt(0));return new Uint8Array(n)}}class E{static castAsNonUtf8Char(t,e=null){const n=e?e.getName():this.ISO88591;return x.decode(new Uint8Array([t]),n)}static guessEncoding(t,e){if(null!=e&&void 0!==e.get(M.CHARACTER_SET))return e.get(M.CHARACTER_SET).toString();const n=t.length;let r=!0,i=!0,o=!0,s=0,a=0,l=0,u=0,c=0,d=0,h=0,f=0,p=0,m=0,g=0;const y=t.length>3&&239===t[0]&&187===t[1]&&191===t[2];for(let e=0;e<n&&(r||i||o);e++){const n=255&t[e];o&&(s>0?0==(128&n)?o=!1:s--:0!=(128&n)&&(0==(64&n)?o=!1:(s++,0==(32&n)?a++:(s++,0==(16&n)?l++:(s++,0==(8&n)?u++:o=!1))))),r&&(n>127&&n<160?r=!1:n>159&&(n<192||215===n||247===n)&&g++),i&&(c>0?n<64||127===n||n>252?i=!1:c--:128===n||160===n||n>239?i=!1:n>160&&n<224?(d++,f=0,h++,h>p&&(p=h)):n>127?(c++,h=0,f++,f>m&&(m=f)):(h=0,f=0))}return o&&s>0&&(o=!1),i&&c>0&&(i=!1),o&&(y||a+l+u>0)?E.UTF8:i&&(E.ASSUME_SHIFT_JIS||p>=3||m>=3)?E.SHIFT_JIS:r&&i?2===p&&2===d||10*g>=n?E.SHIFT_JIS:E.ISO88591:r?E.ISO88591:i?E.SHIFT_JIS:o?E.UTF8:E.PLATFORM_DEFAULT_ENCODING}static format(t,...e){let n=-1;function r(t,r,i,o,s,a){if("%%"===t)return"%";if(void 0===e[++n])return;t=o?parseInt(o.substr(1)):void 0;let l,u=s?parseInt(s.substr(1)):void 0;switch(a){case"s":l=e[n];break;case"c":l=e[n][0];break;case"f":l=parseFloat(e[n]).toFixed(t);break;case"p":l=parseFloat(e[n]).toPrecision(t);break;case"e":l=parseFloat(e[n]).toExponential(t);break;case"x":l=parseInt(e[n]).toString(u||16);break;case"d":l=parseFloat(parseInt(e[n],u||10).toPrecision(t)).toFixed(0)}l="object"==typeof l?JSON.stringify(l):(+l).toString(u);let c=parseInt(i),d=i&&i[0]+""=="0"?"0":" ";for(;l.length<c;)l=void 0!==r?l+d:d+l;return l}let i=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(i,r)}static getBytes(t,e){return x.encode(t,e)}static getCharCode(t,e=0){return t.charCodeAt(e)}static getCharAt(t){return String.fromCharCode(t)}}E.SHIFT_JIS=C.SJIS.getName(),E.GB2312="GB2312",E.ISO88591=C.ISO8859_1.getName(),E.EUC_JP="EUC_JP",E.UTF8=C.UTF8.getName(),E.PLATFORM_DEFAULT_ENCODING=E.UTF8,E.ASSUME_SHIFT_JIS=!1;class L{constructor(t=""){this.value=t}enableDecoding(t){return this.encoding=t,this}append(t){return"string"==typeof t?this.value+=t.toString():this.encoding?this.value+=E.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this}appendChars(t,e,n){for(let r=e;e<e+n;r++)this.append(t[r]);return this}length(){return this.value.length}charAt(t){return this.value.charAt(t)}deleteCharAt(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)}setCharAt(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+1)}substring(t,e){return this.value.substring(t,e)}setLengthToZero(){this.value=""}toString(){return this.value}insert(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+e.length)}}class T{constructor(t,e,n,r){if(this.width=t,this.height=e,this.rowSize=n,this.bits=r,null==e&&(e=t),this.height=e,t<1||e<1)throw new d("Both dimensions must be greater than 0");null==n&&(n=Math.floor((t+31)/32)),this.rowSize=n,null==r&&(this.bits=new Int32Array(this.rowSize*this.height))}static parseFromBooleanArray(t){const e=t.length,n=t[0].length,r=new T(n,e);for(let i=0;i<e;i++){const e=t[i];for(let t=0;t<n;t++)e[t]&&r.set(t,i)}return r}static parseFromString(t,e,n){if(null===t)throw new d("stringRepresentation cannot be null");const r=new Array(t.length);let i=0,o=0,s=-1,a=0,l=0;for(;l<t.length;)if("\n"===t.charAt(l)||"\r"===t.charAt(l)){if(i>o){if(-1===s)s=i-o;else if(i-o!==s)throw new d("row lengths do not match");o=i,a++}l++}else if(t.substring(l,l+e.length)===e)l+=e.length,r[i]=!0,i++;else{if(t.substring(l,l+n.length)!==n)throw new d("illegal character encountered: "+t.substring(l));l+=n.length,r[i]=!1,i++}if(i>o){if(-1===s)s=i-o;else if(i-o!==s)throw new d("row lengths do not match");a++}const u=new T(s,a);for(let t=0;t<i;t++)r[t]&&u.set(Math.floor(t%s),Math.floor(t/s));return u}get(t,e){const n=e*this.rowSize+Math.floor(t/32);return 0!=(this.bits[n]>>>(31&t)&1)}set(t,e){const n=e*this.rowSize+Math.floor(t/32);this.bits[n]|=1<<(31&t)&4294967295}unset(t,e){const n=e*this.rowSize+Math.floor(t/32);this.bits[n]&=~(1<<(31&t)&4294967295)}flip(t,e){const n=e*this.rowSize+Math.floor(t/32);this.bits[n]^=1<<(31&t)&4294967295}xor(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new d("input matrix dimensions do not match");const e=new b(Math.floor(this.width/32)+1),n=this.rowSize,r=this.bits;for(let i=0,o=this.height;i<o;i++){const o=i*n,s=t.getRow(i,e).getBitArray();for(let t=0;t<n;t++)r[o+t]^=s[t]}}clear(){const t=this.bits,e=t.length;for(let n=0;n<e;n++)t[n]=0}setRegion(t,e,n,r){if(e<0||t<0)throw new d("Left and top must be nonnegative");if(r<1||n<1)throw new d("Height and width must be at least 1");const i=t+n,o=e+r;if(o>this.height||i>this.width)throw new d("The region must fit inside the matrix");const s=this.rowSize,a=this.bits;for(let n=e;n<o;n++){const e=n*s;for(let n=t;n<i;n++)a[e+Math.floor(n/32)]|=1<<(31&n)&4294967295}}getRow(t,e){null==e||e.getSize()<this.width?e=new b(this.width):e.clear();const n=this.rowSize,r=this.bits,i=t*n;for(let t=0;t<n;t++)e.setBulk(32*t,r[i+t]);return e}setRow(t,e){m.arraycopy(e.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)}rotate180(){const t=this.getWidth(),e=this.getHeight();let n=new b(t),r=new b(t);for(let t=0,i=Math.floor((e+1)/2);t<i;t++)n=this.getRow(t,n),r=this.getRow(e-1-t,r),n.reverse(),r.reverse(),this.setRow(t,r),this.setRow(e-1-t,n)}getEnclosingRectangle(){const t=this.width,e=this.height,n=this.rowSize,r=this.bits;let i=t,o=e,s=-1,a=-1;for(let t=0;t<e;t++)for(let e=0;e<n;e++){const l=r[t*n+e];if(0!==l){if(t<o&&(o=t),t>a&&(a=t),32*e<i){let t=0;for(;0==(l<<31-t&4294967295);)t++;32*e+t<i&&(i=32*e+t)}if(32*e+31>s){let t=31;for(;l>>>t==0;)t--;32*e+t>s&&(s=32*e+t)}}}return s<i||a<o?null:Int32Array.from([i,o,s-i+1,a-o+1])}getTopLeftOnBit(){const t=this.rowSize,e=this.bits;let n=0;for(;n<e.length&&0===e[n];)n++;if(n===e.length)return null;const r=n/t;let i=n%t*32;const o=e[n];let s=0;for(;0==(o<<31-s&4294967295);)s++;return i+=s,Int32Array.from([i,r])}getBottomRightOnBit(){const t=this.rowSize,e=this.bits;let n=e.length-1;for(;n>=0&&0===e[n];)n--;if(n<0)return null;const r=Math.floor(n/t);let i=32*Math.floor(n%t);const o=e[n];let s=31;for(;o>>>s==0;)s--;return i+=s,Int32Array.from([i,r])}getWidth(){return this.width}getHeight(){return this.height}getRowSize(){return this.rowSize}equals(t){if(!(t instanceof T))return!1;const e=t;return this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&_.equals(this.bits,e.bits)}hashCode(){let t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+_.hashCode(this.bits),t}toString(t="X ",e="  ",n="\n"){return this.buildToString(t,e,n)}buildToString(t,e,n){let r=new L;for(let i=0,o=this.height;i<o;i++){for(let n=0,o=this.width;n<o;n++)r.append(this.get(n,i)?t:e);r.append(n)}return r.toString()}clone(){return new T(this.width,this.height,this.rowSize,this.bits.slice())}}class D extends u{static getNotFoundInstance(){return new D}}D.kind="NotFoundException";class k extends p{constructor(t){super(t),this.luminances=k.EMPTY,this.buckets=new Int32Array(k.LUMINANCE_BUCKETS)}getBlackRow(t,e){const n=this.getLuminanceSource(),r=n.getWidth();null==e||e.getSize()<r?e=new b(r):e.clear(),this.initArrays(r);const i=n.getRow(t,this.luminances),o=this.buckets;for(let t=0;t<r;t++)o[(255&i[t])>>k.LUMINANCE_SHIFT]++;const s=k.estimateBlackPoint(o);if(r<3)for(let t=0;t<r;t++)(255&i[t])<s&&e.set(t);else{let t=255&i[0],n=255&i[1];for(let o=1;o<r-1;o++){const r=255&i[o+1];(4*n-t-r)/2<s&&e.set(o),t=n,n=r}}return e}getBlackMatrix(){const t=this.getLuminanceSource(),e=t.getWidth(),n=t.getHeight(),r=new T(e,n);this.initArrays(e);const i=this.buckets;for(let r=1;r<5;r++){const o=Math.floor(n*r/5),s=t.getRow(o,this.luminances),a=Math.floor(4*e/5);for(let t=Math.floor(e/5);t<a;t++)i[(255&s[t])>>k.LUMINANCE_SHIFT]++}const o=k.estimateBlackPoint(i),s=t.getMatrix();for(let t=0;t<n;t++){const n=t*e;for(let i=0;i<e;i++)(255&s[n+i])<o&&r.set(i,t)}return r}createBinarizer(t){return new k(t)}initArrays(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));const e=this.buckets;for(let t=0;t<k.LUMINANCE_BUCKETS;t++)e[t]=0}static estimateBlackPoint(t){const e=t.length;let n=0,r=0,i=0;for(let o=0;o<e;o++)t[o]>i&&(r=o,i=t[o]),t[o]>n&&(n=t[o]);let o=0,s=0;for(let n=0;n<e;n++){const e=n-r,i=t[n]*e*e;i>s&&(o=n,s=i)}if(r>o){const t=r;r=o,o=t}if(o-r<=e/16)throw new D;let a=o-1,l=-1;for(let e=o-1;e>r;e--){const i=e-r,s=i*i*(o-e)*(n-t[e]);s>l&&(a=e,l=s)}return a<<k.LUMINANCE_SHIFT}}k.LUMINANCE_BITS=5,k.LUMINANCE_SHIFT=8-k.LUMINANCE_BITS,k.LUMINANCE_BUCKETS=1<<k.LUMINANCE_BITS,k.EMPTY=Uint8ClampedArray.from([0]);class O extends k{constructor(t){super(t),this.matrix=null}getBlackMatrix(){if(null!==this.matrix)return this.matrix;const t=this.getLuminanceSource(),e=t.getWidth(),n=t.getHeight();if(e>=O.MINIMUM_DIMENSION&&n>=O.MINIMUM_DIMENSION){const r=t.getMatrix();let i=e>>O.BLOCK_SIZE_POWER;0!=(e&O.BLOCK_SIZE_MASK)&&i++;let o=n>>O.BLOCK_SIZE_POWER;0!=(n&O.BLOCK_SIZE_MASK)&&o++;const s=O.calculateBlackPoints(r,i,o,e,n),a=new T(e,n);O.calculateThresholdForBlock(r,i,o,e,n,s,a),this.matrix=a}else this.matrix=super.getBlackMatrix();return this.matrix}createBinarizer(t){return new O(t)}static calculateThresholdForBlock(t,e,n,r,i,o,s){const a=i-O.BLOCK_SIZE,l=r-O.BLOCK_SIZE;for(let i=0;i<n;i++){let u=i<<O.BLOCK_SIZE_POWER;u>a&&(u=a);const c=O.cap(i,2,n-3);for(let n=0;n<e;n++){let i=n<<O.BLOCK_SIZE_POWER;i>l&&(i=l);const a=O.cap(n,2,e-3);let d=0;for(let t=-2;t<=2;t++){const e=o[c+t];d+=e[a-2]+e[a-1]+e[a]+e[a+1]+e[a+2]}const h=d/25;O.thresholdBlock(t,i,u,h,r,s)}}}static cap(t,e,n){return t<e?e:t>n?n:t}static thresholdBlock(t,e,n,r,i,o){for(let s=0,a=n*i+e;s<O.BLOCK_SIZE;s++,a+=i)for(let i=0;i<O.BLOCK_SIZE;i++)(255&t[a+i])<=r&&o.set(e+i,n+s)}static calculateBlackPoints(t,e,n,r,i){const o=i-O.BLOCK_SIZE,s=r-O.BLOCK_SIZE,a=new Array(n);for(let i=0;i<n;i++){a[i]=new Int32Array(e);let n=i<<O.BLOCK_SIZE_POWER;n>o&&(n=o);for(let o=0;o<e;o++){let e=o<<O.BLOCK_SIZE_POWER;e>s&&(e=s);let l=0,u=255,c=0;for(let i=0,o=n*r+e;i<O.BLOCK_SIZE;i++,o+=r){for(let e=0;e<O.BLOCK_SIZE;e++){const n=255&t[o+e];l+=n,n<u&&(u=n),n>c&&(c=n)}if(c-u>O.MIN_DYNAMIC_RANGE)for(i++,o+=r;i<O.BLOCK_SIZE;i++,o+=r)for(let e=0;e<O.BLOCK_SIZE;e++)l+=255&t[o+e]}let d=l>>2*O.BLOCK_SIZE_POWER;if(c-u<=O.MIN_DYNAMIC_RANGE&&(d=u/2,i>0&&o>0)){const t=(a[i-1][o]+2*a[i][o-1]+a[i-1][o-1])/4;u<t&&(d=t)}a[i][o]=d}}return a}}O.BLOCK_SIZE_POWER=3,O.BLOCK_SIZE=1<<O.BLOCK_SIZE_POWER,O.BLOCK_SIZE_MASK=O.BLOCK_SIZE-1,O.MINIMUM_DIMENSION=5*O.BLOCK_SIZE,O.MIN_DYNAMIC_RANGE=24;class I{constructor(t,e){this.width=t,this.height=e}getWidth(){return this.width}getHeight(){return this.height}isCropSupported(){return!1}crop(t,e,n,r){throw new A("This luminance source does not support cropping.")}isRotateSupported(){return!1}rotateCounterClockwise(){throw new A("This luminance source does not support rotation by 90 degrees.")}rotateCounterClockwise45(){throw new A("This luminance source does not support rotation by 45 degrees.")}toString(){const t=new Uint8ClampedArray(this.width);let e=new L;for(let n=0;n<this.height;n++){const r=this.getRow(n,t);for(let t=0;t<this.width;t++){const n=255&r[t];let i;i=n<64?"#":n<128?"+":n<192?".":" ",e.append(i)}e.append("\n")}return e.toString()}}class N extends I{constructor(t){super(t.getWidth(),t.getHeight()),this.delegate=t}getRow(t,e){const n=this.delegate.getRow(t,e),r=this.getWidth();for(let t=0;t<r;t++)n[t]=255-(255&n[t]);return n}getMatrix(){const t=this.delegate.getMatrix(),e=this.getWidth()*this.getHeight(),n=new Uint8ClampedArray(e);for(let r=0;r<e;r++)n[r]=255-(255&t[r]);return n}isCropSupported(){return this.delegate.isCropSupported()}crop(t,e,n,r){return new N(this.delegate.crop(t,e,n,r))}isRotateSupported(){return this.delegate.isRotateSupported()}invert(){return this.delegate}rotateCounterClockwise(){return new N(this.delegate.rotateCounterClockwise())}rotateCounterClockwise45(){return new N(this.delegate.rotateCounterClockwise45())}}class P extends I{constructor(t){super(t.width,t.height),this.canvas=t,this.tempCanvasElement=null,this.buffer=P.makeBufferFromCanvasImageData(t)}static makeBufferFromCanvasImageData(t){const e=t.getContext("2d").getImageData(0,0,t.width,t.height);return P.toGrayscaleBuffer(e.data,t.width,t.height)}static toGrayscaleBuffer(t,e,n){const r=new Uint8ClampedArray(e*n);for(let e=0,n=0,i=t.length;e<i;e+=4,n++){let i;i=0===t[e+3]?255:306*t[e]+601*t[e+1]+117*t[e+2]+512>>10,r[n]=i}return r}getRow(t,e){if(t<0||t>=this.getHeight())throw new d("Requested row is outside the image: "+t);const n=this.getWidth(),r=t*n;return null===e?e=this.buffer.slice(r,r+n):(e.length<n&&(e=new Uint8ClampedArray(n)),e.set(this.buffer.slice(r,r+n))),e}getMatrix(){return this.buffer}isCropSupported(){return!0}crop(t,e,n,r){return super.crop(t,e,n,r),this}isRotateSupported(){return!0}rotateCounterClockwise(){return this.rotate(-90),this}rotateCounterClockwise45(){return this.rotate(-45),this}getTempCanvasElement(){if(null===this.tempCanvasElement){const t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement}rotate(t){const e=this.getTempCanvasElement(),n=e.getContext("2d"),r=t*P.DEGREE_TO_RADIANS,i=this.canvas.width,o=this.canvas.height,s=Math.ceil(Math.abs(Math.cos(r))*i+Math.abs(Math.sin(r))*o),a=Math.ceil(Math.abs(Math.sin(r))*i+Math.abs(Math.cos(r))*o);return e.width=s,e.height=a,n.translate(s/2,a/2),n.rotate(r),n.drawImage(this.canvas,i/-2,o/-2),this.buffer=P.makeBufferFromCanvasImageData(e),this}invert(){return new N(this)}}P.DEGREE_TO_RADIANS=Math.PI/180;class R{constructor(t,e,n){this.deviceId=t,this.label=e,this.kind="videoinput",this.groupId=n||void 0}toJSON(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}}}var Y,j=(globalThis||n.g||self||window?(globalThis||n.g||self||window||void 0).__awaiter:void 0)||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?n(t.value):i(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())}))};class B{constructor(t,e=500,n){this.reader=t,this.timeBetweenScansMillis=e,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}get hasNavigator(){return"undefined"!=typeof navigator}get isMediaDevicesSuported(){return this.hasNavigator&&!!navigator.mediaDevices}get canEnumerateDevices(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)}get timeBetweenDecodingAttempts(){return this._timeBetweenDecodingAttempts}set timeBetweenDecodingAttempts(t){this._timeBetweenDecodingAttempts=t<0?0:t}set hints(t){this._hints=t||null}get hints(){return this._hints}listVideoInputDevices(){return j(this,void 0,void 0,(function*(){if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");const t=yield navigator.mediaDevices.enumerateDevices(),e=[];for(const n of t){const t="video"===n.kind?"videoinput":n.kind;if("videoinput"!==t)continue;const r={deviceId:n.deviceId||n.id,label:n.label||`Video device ${e.length+1}`,kind:t,groupId:n.groupId};e.push(r)}return e}))}getVideoInputDevices(){return j(this,void 0,void 0,(function*(){return(yield this.listVideoInputDevices()).map((t=>new R(t.deviceId,t.label)))}))}findDeviceById(t){return j(this,void 0,void 0,(function*(){const e=yield this.listVideoInputDevices();return e?e.find((e=>e.deviceId===t)):null}))}decodeFromInputVideoDevice(t,e){return j(this,void 0,void 0,(function*(){return yield this.decodeOnceFromVideoDevice(t,e)}))}decodeOnceFromVideoDevice(t,e){return j(this,void 0,void 0,(function*(){let n;this.reset(),n=t?{deviceId:{exact:t}}:{facingMode:"environment"};const r={video:n};return yield this.decodeOnceFromConstraints(r,e)}))}decodeOnceFromConstraints(t,e){return j(this,void 0,void 0,(function*(){const n=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeOnceFromStream(n,e)}))}decodeOnceFromStream(t,e){return j(this,void 0,void 0,(function*(){this.reset();const n=yield this.attachStreamToVideo(t,e);return yield this.decodeOnce(n)}))}decodeFromInputVideoDeviceContinuously(t,e,n){return j(this,void 0,void 0,(function*(){return yield this.decodeFromVideoDevice(t,e,n)}))}decodeFromVideoDevice(t,e,n){return j(this,void 0,void 0,(function*(){let r;r=t?{deviceId:{exact:t}}:{facingMode:"environment"};const i={video:r};return yield this.decodeFromConstraints(i,e,n)}))}decodeFromConstraints(t,e,n){return j(this,void 0,void 0,(function*(){const r=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeFromStream(r,e,n)}))}decodeFromStream(t,e,n){return j(this,void 0,void 0,(function*(){this.reset();const r=yield this.attachStreamToVideo(t,e);return yield this.decodeContinuously(r,n)}))}stopAsyncDecode(){this._stopAsyncDecode=!0}stopContinuousDecode(){this._stopContinuousDecode=!0}attachStreamToVideo(t,e){return j(this,void 0,void 0,(function*(){const n=this.prepareVideoElement(e);return this.addVideoSource(n,t),this.videoElement=n,this.stream=t,yield this.playVideoOnLoadAsync(n),n}))}playVideoOnLoadAsync(t){return new Promise(((e,n)=>this.playVideoOnLoad(t,(()=>e()))))}playVideoOnLoad(t,e){this.videoEndedListener=()=>this.stopStreams(),this.videoCanPlayListener=()=>this.tryPlayVideo(t),t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)}isVideoPlaying(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}tryPlayVideo(t){return j(this,void 0,void 0,(function*(){if(this.isVideoPlaying(t))console.warn("Trying to play video that is already playing.");else try{yield t.play()}catch(t){console.warn("It was not possible to play the video.")}}))}getMediaElement(t,e){const n=document.getElementById(t);if(!n)throw new c(`element with id '${t}' not found`);if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new c(`element with id '${t}' must be an ${e} element`);return n}decodeFromImage(t,e){if(!t&&!e)throw new c("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)}decodeFromVideo(t,e){if(!t&&!e)throw new c("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)}decodeFromVideoContinuously(t,e,n){if(void 0===t&&void 0===e)throw new c("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,n):this.decodeFromVideoElementContinuously(t,n)}decodeFromImageElement(t){if(!t)throw new c("An image element must be provided.");this.reset();const e=this.prepareImageElement(t);let n;return this.imageElement=e,n=this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e),n}decodeFromVideoElement(t){const e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)}decodeFromVideoElementContinuously(t,e){const n=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(n,e)}_decodeFromVideoElementSetup(t){if(!t)throw new c("A video element must be provided.");this.reset();const e=this.prepareVideoElement(t);return this.videoElement=e,e}decodeFromImageUrl(t){if(!t)throw new c("An URL must be provided.");this.reset();const e=this.prepareImageElement();this.imageElement=e;const n=this._decodeOnLoadImage(e);return e.src=t,n}decodeFromVideoUrl(t){if(!t)throw new c("An URL must be provided.");this.reset();const e=this.prepareVideoElement(),n=this.decodeFromVideoElement(e);return e.src=t,n}decodeFromVideoUrlContinuously(t,e){if(!t)throw new c("An URL must be provided.");this.reset();const n=this.prepareVideoElement(),r=this.decodeFromVideoElementContinuously(n,e);return n.src=t,r}_decodeOnLoadImage(t){return new Promise(((e,n)=>{this.imageLoadedListener=()=>this.decodeOnce(t,!1,!0).then(e,n),t.addEventListener("load",this.imageLoadedListener)}))}_decodeOnLoadVideo(t){return j(this,void 0,void 0,(function*(){return yield this.playVideoOnLoadAsync(t),yield this.decodeOnce(t)}))}_decodeOnLoadVideoContinuously(t,e){return j(this,void 0,void 0,(function*(){yield this.playVideoOnLoadAsync(t),this.decodeContinuously(t,e)}))}isImageLoaded(t){return!!t.complete&&0!==t.naturalWidth}prepareImageElement(t){let e;return void 0===t&&(e=document.createElement("img"),e.width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e}prepareVideoElement(t){let e;return t||"undefined"==typeof document||(e=document.createElement("video"),e.width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e}decodeOnce(t,e=!0,n=!0){this._stopAsyncDecode=!1;const r=(i,o)=>{if(this._stopAsyncDecode)return o(new D("Video stream has ended before any code could be detected.")),void(this._stopAsyncDecode=void 0);try{i(this.decode(t))}catch(t){const s=(t instanceof f||t instanceof S)&&n;if(e&&t instanceof D||s)return setTimeout(r,this._timeBetweenDecodingAttempts,i,o);o(t)}};return new Promise(((t,e)=>r(t,e)))}decodeContinuously(t,e){this._stopContinuousDecode=!1;const n=()=>{if(this._stopContinuousDecode)this._stopContinuousDecode=void 0;else try{const r=this.decode(t);e(r,null),setTimeout(n,this.timeBetweenScansMillis)}catch(t){e(null,t);const r=t instanceof D;(t instanceof f||t instanceof S||r)&&setTimeout(n,this._timeBetweenDecodingAttempts)}};n()}decode(t){const e=this.createBinaryBitmap(t);return this.decodeBitmap(e)}_isHTMLVideoElement(t){return 0!==t.videoWidth}drawFrameOnCanvas(t,e,n){e||(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),n||(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}drawImageOnCanvas(t,e,n=this.captureCanvasContext){e||(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),n||(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}createBinaryBitmap(t){this.getCaptureCanvasContext(t),this._isHTMLVideoElement(t)?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);const e=this.getCaptureCanvas(t),n=new P(e),r=new O(n);return new h(r)}getCaptureCanvasContext(t){if(!this.captureCanvasContext){const e=this.getCaptureCanvas(t).getContext("2d");this.captureCanvasContext=e}return this.captureCanvasContext}getCaptureCanvas(t){if(!this.captureCanvas){const e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas}decodeBitmap(t){return this.reader.decode(t,this._hints)}createCaptureCanvas(t){if("undefined"==typeof document)return this._destroyCaptureCanvas(),null;const e=document.createElement("canvas");let n,r;return void 0!==t&&(t instanceof HTMLVideoElement?(n=t.videoWidth,r=t.videoHeight):t instanceof HTMLImageElement&&(n=t.naturalWidth||t.width,r=t.naturalHeight||t.height)),e.style.width=n+"px",e.style.height=r+"px",e.width=n,e.height=r,e}stopStreams(){this.stream&&(this.stream.getVideoTracks().forEach((t=>t.stop())),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()}reset(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()}_destroyVideoElement(){this.videoElement&&(void 0!==this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),void 0!==this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),void 0!==this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)}_destroyImageElement(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)}_destroyCaptureCanvas(){this.captureCanvasContext=void 0,this.captureCanvas=void 0}addVideoSource(t,e){try{t.srcObject=e}catch(n){t.src=URL.createObjectURL(e)}}cleanVideoSource(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")}}class H{constructor(t,e,n=(null==e?0:8*e.length),r,i,o=m.currentTimeMillis()){this.text=t,this.rawBytes=e,this.numBits=n,this.resultPoints=r,this.format=i,this.timestamp=o,this.text=t,this.rawBytes=e,this.numBits=null==n?null==e?0:8*e.length:n,this.resultPoints=r,this.format=i,this.resultMetadata=null,this.timestamp=null==o?m.currentTimeMillis():o}getText(){return this.text}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}getResultPoints(){return this.resultPoints}getBarcodeFormat(){return this.format}getResultMetadata(){return this.resultMetadata}putMetadata(t,e){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)}putAllMetadata(t){null!==t&&(null===this.resultMetadata?this.resultMetadata=t:this.resultMetadata=new Map(t))}addResultPoints(t){const e=this.resultPoints;if(null===e)this.resultPoints=t;else if(null!==t&&t.length>0){const n=new Array(e.length+t.length);m.arraycopy(e,0,n,0,e.length),m.arraycopy(t,0,n,e.length,t.length),this.resultPoints=n}}getTimestamp(){return this.timestamp}toString(){return this.text}}!function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(Y||(Y={}));var F,W=Y;!function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(F||(F={}));var U,z,V,q,G,X,Z=F;class K{constructor(t,e,n,r,i=-1,o=-1){this.rawBytes=t,this.text=e,this.byteSegments=n,this.ecLevel=r,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=o,this.numBits=null==t?0:8*t.length}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}setNumBits(t){this.numBits=t}getText(){return this.text}getByteSegments(){return this.byteSegments}getECLevel(){return this.ecLevel}getErrorsCorrected(){return this.errorsCorrected}setErrorsCorrected(t){this.errorsCorrected=t}getErasures(){return this.erasures}setErasures(t){this.erasures=t}getOther(){return this.other}setOther(t){this.other=t}hasStructuredAppend(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0}getStructuredAppendParity(){return this.structuredAppendParity}getStructuredAppendSequenceNumber(){return this.structuredAppendSequenceNumber}}class J{exp(t){return this.expTable[t]}log(t){if(0===t)throw new d;return this.logTable[t]}static addOrSubtract(t,e){return t^e}}class Q{constructor(t,e){if(0===e.length)throw new d;this.field=t;const n=e.length;if(n>1&&0===e[0]){let t=1;for(;t<n&&0===e[t];)t++;t===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-t),m.arraycopy(e,t,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return 0===this.coefficients[0]}getCoefficient(t){return this.coefficients[this.coefficients.length-1-t]}evaluateAt(t){if(0===t)return this.getCoefficient(0);const e=this.coefficients;let n;if(1===t){n=0;for(let t=0,r=e.length;t!==r;t++){const r=e[t];n=J.addOrSubtract(n,r)}return n}n=e[0];const r=e.length,i=this.field;for(let o=1;o<r;o++)n=J.addOrSubtract(i.multiply(t,n),e[o]);return n}addOrSubtract(t){if(!this.field.equals(t.field))throw new d("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;let e=this.coefficients,n=t.coefficients;if(e.length>n.length){const t=e;e=n,n=t}let r=new Int32Array(n.length);const i=n.length-e.length;m.arraycopy(n,0,r,0,i);for(let t=i;t<n.length;t++)r[t]=J.addOrSubtract(e[t-i],n[t]);return new Q(this.field,r)}multiply(t){if(!this.field.equals(t.field))throw new d("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();const e=this.coefficients,n=e.length,r=t.coefficients,i=r.length,o=new Int32Array(n+i-1),s=this.field;for(let t=0;t<n;t++){const n=e[t];for(let e=0;e<i;e++)o[t+e]=J.addOrSubtract(o[t+e],s.multiply(n,r[e]))}return new Q(s,o)}multiplyScalar(t){if(0===t)return this.field.getZero();if(1===t)return this;const e=this.coefficients.length,n=this.field,r=new Int32Array(e),i=this.coefficients;for(let o=0;o<e;o++)r[o]=n.multiply(i[o],t);return new Q(n,r)}multiplyByMonomial(t,e){if(t<0)throw new d;if(0===e)return this.field.getZero();const n=this.coefficients,r=n.length,i=new Int32Array(r+t),o=this.field;for(let t=0;t<r;t++)i[t]=o.multiply(n[t],e);return new Q(o,i)}divide(t){if(!this.field.equals(t.field))throw new d("GenericGFPolys do n
2ot have same GenericGF field");if(t.isZero())throw new d("Divide by 0");const e=this.field;let n=e.getZero(),r=this;const i=t.getCoefficient(t.getDegree()),o=e.inverse(i);for(;r.getDegree()>=t.getDegree()&&!r.isZero();){const i=r.getDegree()-t.getDegree(),s=e.multiply(r.getCoefficient(r.getDegree()),o),a=t.multiplyByMonomial(i,s),l=e.buildMonomial(i,s);n=n.addOrSubtract(l),r=r.addOrSubtract(a)}return[n,r]}toString(){let t="";for(let e=this.getDegree();e>=0;e--){let n=this.getCoefficient(e);if(0!==n){if(n<0?(t+=" - ",n=-n):t.length>0&&(t+=" + "),0===e||1!==n){const e=this.field.log(n);0===e?t+="1":1===e?t+="a":(t+="a^",t+=e)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t}}class $ extends u{}$.kind="ArithmeticException";class tt extends J{constructor(t,e,n){super(),this.primitive=t,this.size=e,this.generatorBase=n;const r=new Int32Array(e);let i=1;for(let n=0;n<e;n++)r[n]=i,i*=2,i>=e&&(i^=t,i&=e-1);this.expTable=r;const o=new Int32Array(e);for(let t=0;t<e-1;t++)o[r[t]]=t;this.logTable=o,this.zero=new Q(this,Int32Array.from([0])),this.one=new Q(this,Int32Array.from([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(t,e){if(t<0)throw new d;if(0===e)return this.zero;const n=new Int32Array(t+1);return n[0]=e,new Q(this,n)}inverse(t){if(0===t)throw new $;return this.expTable[this.size-this.logTable[t]-1]}multiply(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]}getSize(){return this.size}getGeneratorBase(){return this.generatorBase}toString(){return"GF(0x"+v.toHexString(this.primitive)+","+this.size+")"}equals(t){return t===this}}tt.AZTEC_DATA_12=new tt(4201,4096,1),tt.AZTEC_DATA_10=new tt(1033,1024,1),tt.AZTEC_DATA_6=new tt(67,64,1),tt.AZTEC_PARAM=new tt(19,16,1),tt.QR_CODE_FIELD_256=new tt(285,256,0),tt.DATA_MATRIX_FIELD_256=new tt(301,256,1),tt.AZTEC_DATA_8=tt.DATA_MATRIX_FIELD_256,tt.MAXICODE_FIELD_64=tt.AZTEC_DATA_6;class et extends u{}et.kind="ReedSolomonException";class nt extends u{}nt.kind="IllegalStateException";class rt{constructor(t){this.field=t}decode(t,e){const n=this.field,r=new Q(n,t),i=new Int32Array(e);let o=!0;for(let t=0;t<e;t++){const e=r.evaluateAt(n.exp(t+n.getGeneratorBase()));i[i.length-1-t]=e,0!==e&&(o=!1)}if(o)return;const s=new Q(n,i),a=this.runEuclideanAlgorithm(n.buildMonomial(e,1),s,e),l=a[0],u=a[1],c=this.findErrorLocations(l),d=this.findErrorMagnitudes(u,c);for(let e=0;e<c.length;e++){const r=t.length-1-n.log(c[e]);if(r<0)throw new et("Bad error location");t[r]=tt.addOrSubtract(t[r],d[e])}}runEuclideanAlgorithm(t,e,n){if(t.getDegree()<e.getDegree()){const n=t;t=e,e=n}const r=this.field;let i=t,o=e,s=r.getZero(),a=r.getOne();for(;o.getDegree()>=(n/2|0);){let t=i,e=s;if(i=o,s=a,i.isZero())throw new et("r_{i-1} was zero");o=t;let n=r.getZero();const l=i.getCoefficient(i.getDegree()),u=r.inverse(l);for(;o.getDegree()>=i.getDegree()&&!o.isZero();){const t=o.getDegree()-i.getDegree(),e=r.multiply(o.getCoefficient(o.getDegree()),u);n=n.addOrSubtract(r.buildMonomial(t,e)),o=o.addOrSubtract(i.multiplyByMonomial(t,e))}if(a=n.multiply(s).addOrSubtract(e),o.getDegree()>=i.getDegree())throw new nt("Division algorithm failed to reduce polynomial?")}const l=a.getCoefficient(0);if(0===l)throw new et("sigmaTilde(0) was zero");const u=r.inverse(l);return[a.multiplyScalar(u),o.multiplyScalar(u)]}findErrorLocations(t){const e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);const n=new Int32Array(e);let r=0;const i=this.field;for(let o=1;o<i.getSize()&&r<e;o++)0===t.evaluateAt(o)&&(n[r]=i.inverse(o),r++);if(r!==e)throw new et("Error locator degree does not match number of roots");return n}findErrorMagnitudes(t,e){const n=e.length,r=new Int32Array(n),i=this.field;for(let o=0;o<n;o++){const s=i.inverse(e[o]);let a=1;for(let t=0;t<n;t++)if(o!==t){const n=i.multiply(e[t],s),r=0==(1&n)?1|n:-2&n;a=i.multiply(a,r)}r[o]=i.multiply(t.evaluateAt(s),i.inverse(a)),0!==i.getGeneratorBase()&&(r[o]=i.multiply(r[o],s))}return r}}!function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"}(U||(U={}));class it{decode(t){this.ddata=t;let e=t.getBits(),n=this.extractBits(e),r=this.correctBits(n),i=it.convertBoolArrayToByteArray(r),o=it.getEncodedData(r),s=new K(i,o,null,
vendor: 102,365 bytes, line 2
2null);return s.setNumBits(r.length),s}static highLevelDecode(t){return this.getEncodedData(t)}static getEncodedData(t){let e=t.length,n=U.UPPER,r=U.UPPER,i="",o=0;for(;o<e;)if(r===U.BINARY){if(e-o<5)break;let s=it.readCode(t,o,5);if(o+=5,0===s){if(e-o<11)break;s=it.readCode(t,o,11)+31,o+=11}for(let n=0;n<s;n++){if(e-o<8){o=e;break}const n=it.readCode(t,o,8);i+=E.castAsNonUtf8Char(n),o+=8}r=n}else{let s=r===U.DIGIT?4:5;if(e-o<s)break;let a=it.readCode(t,o,s);o+=s;let l=it.getCharacter(r,a);l.startsWith("CTRL_")?(n=r,r=it.getTable(l.charAt(5)),"L"===l.charAt(6)&&(n=r)):(i+=l,r=n)}return i}static getTable(t){switch(t){case"L":return U.LOWER;case"P":return U.PUNCT;case"M":return U.MIXED;case"D":return U.DIGIT;case"B":return U.BINARY;default:return U.UPPER}}static getCharacter(t,e){switch(t){case U.UPPER:return it.UPPER_TABLE[e];case U.LOWER:return it.LOWER_TABLE[e];case U.MIXED:return it.MIXED_TABLE[e];case U.PUNCT:return it.PUNCT_TABLE[e];case U.DIGIT:return it.DIGIT_TABLE[e];default:throw new nt("Bad table")}}correctBits(t){let e,n;this.ddata.getNbLayers()<=2?(n=6,e=tt.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,e=tt.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,e=tt.AZTEC_DATA_10):(n=12,e=tt.AZTEC_DATA_12);let r=this.ddata.getNbDatablocks(),i=t.length/n;if(i<r)throw new S;let o=t.length%n,s=new Int32Array(i);for(let e=0;e<i;e++,o+=n)s[e]=it.readCode(t,o,n);try{new rt(e).decode(s,i-r)}catch(t){throw new S(t)}let a=(1<<n)-1,l=0;for(let t=0;t<r;t++){let e=s[t];if(0===e||e===a)throw new S;1!==e&&e!==a-1||l++}let u=new Array(r*n-l),c=0;for(let t=0;t<r;t++){let e=s[t];if(1===e||e===a-1)u.fill(e>1,c,c+n-1),c+=n-1;else for(let t=n-1;t>=0;--t)u[c++]=0!=(e&1<<t)}return u}extractBits(t){let e=this.ddata.isCompact(),n=this.ddata.getNbLayers(),r=(e?11:14)+4*n,i=new Int32Array(r),o=new Array(this.totalBitsInLayer(n,e));if(e)for(let t=0;t<i.length;t++)i[t]=t;else{let t=r+1+2*v.truncDivision(v.truncDivision(r,2)-1,15),e=r/2,n=v.truncDivision(t,2);for(let t=0;t<e;t++){let r=t+v.truncDivision(t,15);i[e-t-1]=n-r-1,i[e+t]=n+r+1}}for(let s=0,a=0;s<n;s++){let l=4*(n-s)+(e?9:12),u=2*s,c=r-1-u;for(let e=0;e<l;e++){let n=2*e;for(let r=0;r<2;r++)o[a+n+r]=t.get(i[u+r],i[u+e]),o[a+2*l+n+r]=t.get(i[u+e],i[c-r]),o[a+4*l+n+r]=t.get(i[c-r],i[c-e]),o[a+6*l+n+r]=t.get(i[c-e],i[u+r])}a+=8*l}return o}static readCode(t,e,n){let r=0;for(let i=e;i<e+n;i++)r<<=1,t[i]&&(r|=1);return r}static readByte(t,e){let n=t.length-e;return n>=8?it.readCode(t,e,8):it.readCode(t,e,n)<<8-n}static convertBoolArrayToByteArray(t){let e=new Uint8Array((t.length+7)/8);for(let n=0;n<e.length;n++)e[n]=it.readByte(t,8*n);return e}totalBitsInLayer(t,e){return((e?88:112)+16*t)*t}}it.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],it.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],it.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b","\t","\n","\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],it.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],it.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"];class ot{constructor(){}static round(t){return NaN===t?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0}static distance(t,e,n,r){const i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}static sum(t){let e=0;for(let n=0,r=t.length;n!==r;n++)e+=t[n];return e}}class st{static floatToIntBits(t){return t}}st.MAX_VALUE=Number.MAX_SAFE_INTEGER;class at{constructor(t,e){this.x=t,this.y=e}getX(){return this.x}getY(){return this.y}equals(t){if(t instanceof at){const e=t;return this.x===e.x&&this.y===e.y}return!1}hashCode(){return 31*st.floatToIntBits(this.x)+st.floatToIntBits(this.y)}toString(){return"("+this.x+","+this.y+")"}static orderBestPatterns(t){const e=this.distance(t[0],t[1]),n=this.distance(t[1],t[2]),r=this.distance(t[0],t[2]);let i,o,s;if(n>=e&&n>=r?(o=t[0],i=t[1],s=t[2]):r>=n&&r>=e?(o=t[1],i=t[0],s=t[2]):(o=t[2],i=t[0],s=t[1]),this.crossProductZ(i,o,s)<0){const t=i;i=s,s=t}t[0]=i,t[1]=o,t[2]=s}static distance(t,e){return ot.distance(t.x,t.y,e.x,e.y)}static crossProductZ(t,e,n){const r=e.x,i=e.y;return(n.x-r)*(t.y-i)-(n.y-i)*(t.x-r)}}class lt{constructor(t,e){this.bits=t,this.points=e}getBits(){return this.bits}getPoints(){return this.points}}class ut extends lt{constructor(t,e,n,r,i){super(t,e),this.compact=n,this.nbDatablocks=r,this.nbLayers=i}getNbLayers(){return this.nbLayers}getNbDatablocks(){return this.nbDatablocks}isCompact(){return this.compact}}class ct{constructor(t,e,n,r){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==e&&(e=ct.INIT_SIZE),null==n&&(n=t.getWidth()/2|0),null==r&&(r=t.getHeight()/2|0);const i=e/2|0;if(this.leftInit=n-i,this.rightInit=n+i,this.upInit=r-i,this.downInit=r+i,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new D}detect(){let t=this.leftInit,e=this.rightInit,n=this.upInit,r=this.downInit,i=!1,o=!0,s=!1,a=!1,l=!1,u=!1,c=!1;const d=this.width,h=this.height;for(;o;){o=!1;let f=!0;for(;(f||!a)&&e<d;)f=this.containsBlackPoint(n,r,e,!1),f?(e++,o=!0,a=!0):a||e++;if(e>=d){i=!0;break}let p=!0;for(;(p||!l)&&r<h;)p=this.containsBlackPoint(t,e,r,!0),p?(r++,o=!0,l=!0):l||r++;if(r>=h){i=!0;break}let m=!0;for(;(m||!u)&&t>=0;)m=this.containsBlackPoint(n,r,t,!1),m?(t--,o=!0,u=!0):u||t--;if(t<0){i=!0;break}let g=!0;for(;(g||!c)&&n>=0;)g=this.containsBlackPoint(t,e,n,!0),g?(n--,o=!0,c=!0):c||n--;if(n<0){i=!0;break}o&&(s=!0)}if(!i&&s){const i=e-t;let o=null;for(let e=1;null===o&&e<i;e++)o=this.getBlackPointOnSegment(t,r-e,t+e,r);if(null==o)throw new D;let s=null;for(let e=1;null===s&&e<i;e++)s=this.getBlackPointOnSegment(t,n+e,t+e,n);if(null==s)throw new D;let a=null;for(let t=1;null===a&&t<i;t++)a=this.getBlackPointOnSegment(e,n+t,e-t,n);if(null==a)throw new D;let l=null;for(let t=1;null===l&&t<i;t++)l=this.getBlackPointOnSegment(e,r-t,e-t,r);if(null==l)throw new D;return this.centerEdges(l,o,a,s)}throw new D}getBlackPointOnSegment(t,e,n,r){const i=ot.round(ot.distance(t,e,n,r)),o=(n-t)/i,s=(r-e)/i,a=this.image;for(let n=0;n<i;n++){const r=ot.round(t+n*o),i=ot.round(e+n*s);if(a.get(r,i))return new at(r,i)}return null}centerEdges(t,e,n,r){const i=t.getX(),o=t.getY(),s=e.getX(),a=e.getY(),l=n.getX(),u=n.getY(),c=r.getX(),d=r.getY(),h=ct.CORR;return i<this.width/2?[new at(c-h,d+h),new at(s+h,a+h),new at(l-h,u-h),new at(i+h,o-h)]:[new at(c+h,d+h),new at(s+h,a-h),new at(l-h,u+h),new at(i-h,o-h)]}containsBlackPoint(t,e,n,r){const i=this.image;if(r){for(let r=t;r<=e;r++)if(i.get(r,n))return!0}else for(let r=t;r<=e;r++)if(i.get(n,r))return!0;return!1}}ct.INIT_SIZE=10,ct.CORR=1;class dt{static checkAndNudgePoints(t,e){const n=t.getWidth(),r=t.getHeight();let i=!0;for(let t=0;t<e.length&&i;t+=2){const o=Math.floor(e[t]),s=Math.floor(e[t+1]);if(o<-1||o>n||s<-1||s>r)throw new D;i=!1,-1===o?(e[t]=0,i=!0):o===n&&(e[t]=n-1,i=!0),-1===s?(e[t+1]=0,i=!0):s===r&&(e[t+1]=r-1,i=!0)}i=!0;for(let t=e.length-2;t>=0&&i;t-=2){const o=Math.floor(e[t]),s=Math.floor(e[t+1]);if(o<-1||o>n||s<-1||s>r)throw new D;i=!1,-1===o?(e[t]=0,i=!0):o===n&&(e[t]=n-1,i=!0),-1===s?(e[t+1]=0,i=!0):s===r&&(e[t+1]=r-1,i=!0)}}}class ht{constructor(t,e,n,r,i,o,s,a,l){this.a11=t,this.a21=e,this.a31=n,this.a12=r,this.a22=i,this.a32=o,this.a13=s,this.a23=a,this.a33=l}static quadrilateralToQuadrilateral(t,e,n,r,i,o,s,a,l,u,c,d,h,f,p,m){const g=ht.quadrilateralToSquare(t,e,n,r,i,o,s,a);return ht.squareToQuadrilateral(l,u,c,d,h,f,p,m).times(g)}transformPoints(t){const e=t.length,n=this.a11,r=this.a12,i=this.a13,o=this.a21,s=this.a22,a=this.a23,l=this.a31,u=this.a32,c=this.a33;for(let d=0;d<e;d+=2){const e=t[d],h=t[d+1],f=i*e+a*h+c;t[d]=(n*e+o*h+l)/f,t[d+1]=(r*e+s*h+u)/f}}transformPointsWithValues(t,e){const n=this.a11,r=this.a12,i=this.a13,o=this.a21,s=this.a22,a=this.a23,l=this.a31,u=this.a32,c=this.a33,d=t.length;for(let h=0;h<d;h++){const d=t[h],f=e[h],p=i*d+a*f+c;t[h]=(n*d+o*f+l)/p,e[h]=(r*d+s*f+u)/p}}static squareToQuadrilateral(t,e,n,r,i,o,s,a){const l=t-n+i-s,u=e-r+o-a;if(0===l&&0===u)return new ht(n-t,i-n,t,r-e,o-r,e,0,0,1);{const c=n-i,d=s-i,h=r-o,f=a-o,p=c*f-d*h,m=(l*f-d*u)/p,g=(c*u-l*h)/p;return new ht(n-t+m*n,s-t+g*s,t,r-e+m*r,a-e+g*a,e,m,g,1)}}static quadrilateralToSquare(t,e,n,r,i,o,s,a){return ht.squareToQuadrilateral(t,e,n,r,i,o,s,a).buildAdjoint()}buildAdjoint(){return new ht(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)}times(t){return new ht(this.a11*t.a11+this.a21*t.a12+this.a31*t.a13,this.a11*t.a21+this.a21*t.a22+this.a31*t.a23,this.a11*t.a31+this.a21*t.a32+this.a31*t.a33,this.a12*t.a11+this.a22*t.a12+this.a32*t.a13,this.a12*t.a21+this.a22*t.a22+this.a32*t.a23,this.a12*t.a31+this.a22*t.a32+this.a32*t.a33,this.a13*t.a11+this.a23*t.a12+this.a33*t.a13,this.a13*t.a21+this.a23*t.a22+this.a33*t.a23,this.a13*t.a31+this.a23*t.a32+this.a33*t.a33)}}class ft extends dt{sampleGrid(t,e,n,r,i,o,s,a,l,u,c,d,h,f,p,m,g,y,_){const v=ht.quadrilateralToQuadrilateral(r,i,o,s,a,l,u,c,d,h,f,p,m,g,y,_);return this.sampleGridWithTransform(t,e,n,v)}sampleGridWithTransform(t,e,n,r){if(e<=0||n<=0)throw new D;const i=new T(e,n),o=new Float32Array(2*e);for(let e=0;e<n;e++){const n=o.length,s=e+.5;for(let t=0;t<n;t+=2)o[t]=t/2+.5,o[t+1]=s;r.transformPoints(o),dt.checkAndNudgePoints(t,o);try{for(let r=0;r<n;r+=2)t.get(Math.floor(o[r]),Math.floor(o[r+1]))&&i.set(r/2,e)}catch(t){throw new D}}return i}}class pt{static setGridSampler(t){pt.gridSampler=t}static getInstance(){return pt.gridSampler}}pt.gridSampler=new ft;class mt{constructor(t,e){this.x=t,this.y=e}toResultPoint(){return new at(this.getX(),this.getY())}getX(){return this.x}getY(){return this.y}}class gt{constructor(t){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=t}detect(){return this.detectMirror(!1)}detectMirror(t){let e=this.getMatrixCenter(),n=this.getBullsEyeCorners(e);if(t){let t=n[0];n[0]=n[2],n[2]=t}this.extractParameters(n);let r=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[(this.shift+2)%4],n[(this.shift+3)%4]),i=this.getMatrixCornerPoints(n);return new ut(r,i,this.compact,this.nbDataBlocks,this.nbLayers)}extractParameters(t){if(!(this.isValidPoint(t[0])&&this.isValidPoint(t[1])&&this.isValidPoint(t[2])&&this.isValidPoint(t[3])))throw new D;let e=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(t[0],t[1],e),this.sampleLine(t[1],t[2],e),this.sampleLine(t[2],t[3],e),this.sampleLine(t[3],t[0],e)]);this.shift=this.getRotation(n,e);let r=0;for(let t=0;t<4;t++){let e=n[(this.shift+t)%4];this.compact?(r<<=7,r+=e>>1&127):(r<<=10,r+=(e>>2&992)+(e>>1&31))}let i=this.getCorrectedParameterData(r,this.compact);this.compact?(this.nbLayers=1+(i>>6),this.nbDataBlocks=1+(63&i)):(this.nbLayers=1+(i>>11),this.nbDataBlocks=1+(2047&i))}getRotation(t,e){let n=0;t.forEach(((t,r,i)=>{n=(t>>e-2<<1)+(1&t)+(n<<3)})),n=((1&n)<<11)+(n>>1);for(let t=0;t<4;t++)if(v.bitCount(n^this.EXPECTED_CORNER_BITS[t])<=2)return t;throw new D}getCorrectedParameterData(t,e){let n,r;e?(n=7,r=2):(n=10,r=4);let i=n-r,o=new Int32Array(n);for(let e=n-1;e>=0;--e)o[e]=15&t,t>>=4;try{new rt(tt.AZTEC_PARAM).decode(o,i)}catch(t){throw new D}let s=0;for(let t=0;t<r;t++)s=(s<<4)+o[t];return s}getBullsEyeCorners(t){let e=t,n=t,r=t,i=t,o=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){let t=this.getFirstDifferent(e,o,1,-1),s=this.getFirstDifferent(n,o,1,1),a=this.getFirstDifferent(r,o,-1,1),l=this.getFirstDifferent(i,o,-1,-1);if(this.nbCenterLayers>2){let n=this.distancePoint(l,t)*this.nbCenterLayers/(this.distancePoint(i,e)*(this.nbCenterLayers+2));if(n<.75||n>1.25||!this.isWhiteOrBlackRectangle(t,s,a,l))break}e=t,n=s,r=a,i=l,o=!o}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new D;this.compact=5===this.nbCenterLayers;let s=new at(e.getX()+.5,e.getY()-.5),a=new at(n.getX()+.5,n.getY()+.5),l=new at(r.getX()-.5,r.getY()+.5),u=new at(i.getX()-.5,i.getY()-.5);return this.expandSquare([s,a,l,u],2*this.nbCenterLayers-3,2*this.nbCenterLayers)}getMatrixCenter(){let t,e,n,r;try{let i=new ct(this.image).detect();t=i[0],e=i[1],n=i[2],r=i[3]}catch(i){let o=this.image.getWidth()/2,s=this.image.getHeight()/2;t=this.getFirstDifferent(new mt(o+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new mt(o+7,s+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new mt(o-7,s+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new mt(o-7,s-7),!1,-1,-1).toResultPoint()}let i=ot.round((t.getX()+r.getX()+e.getX()+n.getX())/4),o=ot.round((t.getY()+r.getY()+e.getY()+n.getY())/4);try{let s=new ct(this.image,15,i,o).detect();t=s[0],e=s[1],n=s[2],r=s[3]}catch(s){t=this.getFirstDifferent(new mt(i+7,o-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new mt(i+7,o+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new mt(i-7,o+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new mt(i-7,o-7),!1,-1,-1).toResultPoint()}return i=ot.round((t.getX()+r.getX()+e.getX()+n.getX())/4),o=ot.round((t.getY()+r.getY()+e.getY()+n.getY())/4),new mt(i,o)}getMatrixCornerPoints(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())}sampleGrid(t,e,n,r,i){let o=pt.getInstance(),s=this.getDimension(),a=s/2-this.nbCenterLayers,l=s/2+this.nbCenterLayers;return o.sampleGrid(t,s,s,a,a,l,a,l,l,a,l,e.getX(),e.getY(),n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY())}sampleLine(t,e,n){let r=0,i=this.distanceResultPoint(t,e),o=i/n,s=t.getX(),a=t.getY(),l=o*(e.getX()-t.getX())/i,u=o*(e.getY()-t.getY())/i;for(let t=0;t<n;t++)this.image.get(ot.round(s+t*l),ot.round(a+t*u))&&(r|=1<<n-t-1);return r}isWhiteOrBlackRectangle(t,e,n,r){let i=3;t=new mt(t.getX()-i,t.getY()+i),e=new mt(e.getX()-i,e.getY()-i),n=new mt(n.getX()+i,n.getY()-i),r=new mt(r.getX()+i,r.getY()+i);let o=this.getColor(r,t);if(0===o)return!1;let s=this.getColor(t,e);return s===o&&(s=this.getColor(e,n),s===o&&(s=this.getColor(n,r),s===o))}getColor(t,e){let n=this.distancePoint(t,e),r=(e.getX()-t.getX())/n,i=(e.getY()-t.getY())/n,o=0,s=t.getX(),a=t.getY(),l=this.image.get(t.getX(),t.getY()),u=Math.ceil(n);for(let t=0;t<u;t++)s+=r,a+=i,this.image.get(ot.round(s),ot.round(a))!==l&&o++;let c=o/n;return c>.1&&c<.9?0:c<=.1===l?1:-1}getFirstDifferent(t,e,n,r){let i=t.getX()+n,o=t.getY()+r;for(;this.isValid(i,o)&&this.image.get(i,o)===e;)i+=n,o+=r;for(i-=n,o-=r;this.isValid(i,o)&&this.image.get(i,o)===e;)i+=n;for(i-=n;this.isValid(i,o)&&this.image.get(i,o)===e;)o+=r;return o-=r,new mt(i,o)}expandSquare(t,e,n){let r=n/(2*e),i=t[0].getX()-t[2].getX(),o=t[0].getY()-t[2].getY(),s=(t[0].getX()+t[2].getX())/2,a=(t[0].getY()+t[2].getY())/2,l=new at(s+r*i,a+r*o),u=new at(s-r*i,a-r*o);return i=t[1].getX()-t[3].getX(),o=t[1].getY()-t[3].getY(),s=(t[1].getX()+t[3].getX())/2,a=(t[1].getY()+t[3].getY())/2,[l,new at(s+r*i,a+r*o),u,new at(s-r*i,a-r*o)]}isValid(t,e){return t>=0&&t<this.image.getWidth()&&e>0&&e<this.image.getHeight()}isValidPoint(t){let e=ot.round(t.getX()),n=ot.round(t.getY());return this.isValid(e,n)}distancePoint(t,e){return ot.distance(t.getX(),t.getY(),e.getX(),e.getY())}distanceResultPoint(t,e){return ot.distance(t.getX(),t.getY(),e.getX(),e.getY())}getDimension(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(v.truncDivision(this.nbLayers-4,8)+1)+15}}class yt{decode(t,e=null){let n=null,r=new gt(t.getBlackMatrix()),i=null,o=null;try{let t=r.detectMirror(!1);i=t.getPoints(),this.reportFoundResultPoints(e,i),o=(new it).decode(t)}catch(t){n=t}if(null==o)try{let t=r.detectMirror(!0);i=t.getPoints(),this.reportFoundResultPoints(e,i),o=(new it).decode(t)}catch(t){if(null!=n)throw n;throw t}let s=new H(o.getText(),o.getRawBytes(),o.getNumBits(),i,W.AZTEC,m.currentTimeMillis()),a=o.getByteSegments();null!=a&&s.putMetadata(Z.BYTE_SEGMENTS,a);let l=o.getECLevel();return null!=l&&s.putMetadata(Z.ERROR_CORRECTION_LEVEL,l),s}reportFoundResultPoints(t,e){if(null!=t){let n=t.get(M.NEED_RESULT_POINT_CALLBACK);null!=n&&e.forEach(((t,e,r)=>{n.foundPossibleResultPoint(t)}))}}reset(){}}class _t extends B{constructor(t=500){super(new yt,t)}}class vt{decode(t,e){try{return this.doDecode(t,e)}catch(n){if(e&&!0===e.get(M.TRY_HARDER)&&t.isRotateSupported()){const n=t.rotateCounterClockwise(),r=this.doDecode(n,e),i=r.getResultMetadata();let o=270;null!==i&&!0===i.get(Z.ORIENTATION)&&(o+=i.get(Z.ORIENTATION)%360),r.putMetadata(Z.ORIENTATION,o);const s=r.getResultPoints();if(null!==s){const t=n.getHeight();for(let e=0;e<s.length;e++)s[e]=new at(t-s[e].getY()-1,s[e].getX())}return r}throw new D}}reset(){}doDecode(t,e){const n=t.getWidth(),r=t.getHeight();let i=new b(n);const o=e&&!0===e.get(M.TRY_HARDER),s=Math.max(1,r>>(o?8:5));let a;a=o?r:15;const l=Math.trunc(r/2);for(let o=0;o<a;o++){const a=Math.trunc((o+1)/2),u=l+s*(0==(1&o)?a:-a);if(u<0||u>=r)break;try{i=t.getBlackRow(u,i)}catch(t){continue}for(let t=0;t<2;t++){if(1===t&&(i.reverse(),e&&!0===e.get(M.NEED_RESULT_POINT_CALLBACK))){const t=new Map;e.forEach(((e,n)=>t.set(n,e))),t.delete(M.NEED_RESULT_POINT_CALLBACK),e=t}try{const r=this.decodeRow(u,i,e);if(1===t){r.putMetadata(Z.ORIENTATION,180);const t=r.getResultPoints();null!==t&&(t[0]=new at(n-t[0].getX()-1,t[0].getY()),t[1]=new at(n-t[1].getX()-1,t[1].getY()))}return r}catch(t){}}}throw new D}static recordPattern(t,e,n){const r=n.length;for(let t=0;t<r;t++)n[t]=0;const i=t.getSize();if(e>=i)throw new D;let o=!t.get(e),s=0,a=e;for(;a<i;){if(t.get(a)!==o)n[s]++;else{if(++s===r)break;n[s]=1,o=!o}a++}if(s!==r&&(s!==r-1||a!==i))throw new D}static recordPatternInReverse(t,e,n){let r=n.length,i=t.get(e);for(;e>0&&r>=0;)t.get(--e)!==i&&(r--,i=!i);if(r>=0)throw new D;vt.recordPattern(t,e+1,n)}static patternMatchVariance(t,e,n){const r=t.length;let i=0,o=0;for(let n=0;n<r;n++)i+=t[n],o+=e[n];if(i<o)return Number.POSITIVE_INFINITY;const s=i/o;n*=s;let a=0;for(let i=0;i<r;i++){const r=t[i],o=e[i]*s,l=r>o?r-o:o-r;if(l>n)return Number.POSITIVE_INFINITY;a+=l}return a/i}}class bt extends vt{static findStartPattern(t){const e=t.getSize(),n=t.getNextSet(0);let r=0,i=Int32Array.from([0,0,0,0,0,0]),o=n,s=!1;const a=6;for(let l=n;l<e;l++)if(t.get(l)!==s)i[r]++;else{if(r===a-1){let e=bt.MAX_AVG_VARIANCE,n=-1;for(let t=bt.CODE_START_A;t<=bt.CODE_START_C;t++){const r=vt.patternMatchVariance(i,bt.CODE_PATTERNS[t],bt.MAX_INDIVIDUAL_VARIANCE);r<e&&(e=r,n=t)}if(n>=0&&t.isRange(Math.max(0,o-(l-o)/2),o,!1))return Int32Array.from([o,l,n]);o+=i[0]+i[1],i=i.slice(2,i.length-1),i[r-1]=0,i[r]=0,r--}else r++;i[r]=1,s=!s}throw new D}static decodeCode(t,e,n){vt.recordPattern(t,n,e);let r=bt.MAX_AVG_VARIANCE,i=-1;for(let t=0;t<bt.CODE_PATTERNS.length;t++){const n=bt.CODE_PATTERNS[t],o=this.patternMatchVariance(e,n,bt.MAX_INDIVIDUAL_VARIANCE);o<r&&(r=o,i=t)}if(i>=0)return i;throw new D}decodeRow(t,e,n){const r=n&&!0===n.get(M.ASSUME_GS1),i=bt.findStartPattern(e),o=i[2];let s=0;const a=new Uint8Array(20);let l;switch(a[s++]=o,o){case bt.CODE_START_A:l=bt.CODE_CODE_A;break;case bt.CODE_START_B:l=bt.CODE_CODE_B;break;case bt.CODE_START_C:l=bt.CODE_CODE_C;break;default:throw new S}let u=!1,c=!1,d="",h=i[0],p=i[1];const m=Int32Array.from([0,0,0,0,0,0]);let g=0,y=0,_=o,v=0,b=!0,w=!1,C=!1;for(;!u;){const t=c;switch(c=!1,g=y,y=bt.decodeCode(e,m,p),a[s++]=y,y!==bt.CODE_STOP&&(b=!0),y!==bt.CODE_STOP&&(v++,_+=v*y),h=p,p+=m.reduce(((t,e)=>t+e),0),y){case bt.CODE_START_A:case bt.CODE_START_B:case bt.CODE_START_C:throw new S}switch(l){case bt.CODE_CODE_A:if(y<64)d+=C===w?String.fromCharCode(" ".charCodeAt(0)+y):String.fromCharCode(" ".charCodeAt(0)+y+128),C=!1;else if(y<96)d+=C===w?String.fromCharCode(y-64):String.fromCharCode(y+64),C=!1;else switch(y!==bt.CODE_STOP&&(b=!1),y){case bt.CODE_FNC_1:r&&(0===d.length?d+="]C1":d+=String.fromCharCode(29));break;case bt.CODE_FNC_2:case bt.CODE_FNC_3:break;case bt.CODE_FNC_4_A:!w&&C?(w=!0,C=!1):w&&C?(w=!1,C=!1):C=!0;break;case bt.CODE_SHIFT:c=!0,l=bt.CODE_CODE_B;break;case bt.CODE_CODE_B:l=bt.CODE_CODE_B;break;case bt.CODE_CODE_C:l=bt.CODE_CODE_C;break;case bt.CODE_STOP:u=!0}break;case bt.CODE_CODE_B:if(y<96)d+=C===w?String.fromCharCode(" ".charCodeAt(0)+y):String.fromCharCode(" ".charCodeAt(0)+y+128),C=!1;else switch(y!==bt.CODE_STOP&&(b=!1),y){case bt.CODE_FNC_1:r&&(0===d.length?d+="]C1":d+=String.fromCharCode(29));break;case bt.CODE_FNC_2:case bt.CODE_FNC_3:break;case bt.CODE_FNC_4_B:!w&&C?(w=!0,C=!1):w&&C?(w=!1,C=!1):C=!0;break;case bt.CODE_SHIFT:c=!0,l=bt.CODE_CODE_A;break;case bt.CODE_CODE_A:l=bt.CODE_CODE_A;break;case bt.CODE_CODE_C:l=bt.CODE_CODE_C;break;case bt.CODE_STOP:u=!0}break;case bt.CODE_CODE_C:if(y<100)y<10&&(d+="0"),d+=y;else switch(y!==bt.CODE_STOP&&(b=!1),y){case bt.CODE_FNC_1:r&&(0===d.length?d+="]C1":d+=String.fromCharCode(29));break;case bt.CODE_CODE_A:l=bt.CODE_CODE_A;break;case bt.CODE_CODE_B:l=bt.CODE_CODE_B;break;case bt.CODE_STOP:u=!0}}t&&(l=l===bt.CODE_CODE_A?bt.CODE_CODE_B:bt.CODE_CODE_A)}const A=p-h;if(p=e.getNextUnset(p),!e.isRange(p,Math.min(e.getSize(),p+(p-h)/2),!1))throw new D;if(_-=v*g,_%103!==g)throw new f;const x=d.length;if(0===x)throw new D;x>0&&b&&(d=l===bt.CODE_CODE_C?d.substring(0,x-2):d.substring(0,x-1));const E=(i[1]+i[0])/2,L=h+A/2,T=a.length,k=new Uint8Array(T);for(let t=0;t<T;t++)k[t]=a[t];const O=[new at(E,t),new at(L,t)];return new H(d,k,0,O,W.CODE_128,(new Date).getTime())}}bt.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],bt.MAX_AVG_VARIANCE=.25,bt.MAX_INDIVIDUAL_VARIANCE=.7,bt.CODE_SHIFT=98,bt.CODE_CODE_C=99,bt.CODE_CODE_B=100,bt.CODE_CODE_A=101,bt.CODE_FNC_1=102,bt.CODE_FNC_2=97,bt.CODE_FNC_3=96,bt.CODE_FNC_4_A=101,bt.CODE_FNC_4_B=100,bt.CODE_START_A=103,bt.CODE_START_B=104,bt.CODE_START_C=105,bt.CODE_STOP=106;class wt extends vt{constructor(t=!1,e=!1){super(),this.usingCheckDigit=t,this.extendedMode=e,this.decodeRowResult="",this.counters=new Int32Array(9)}decodeRow(t,e,n){let r=this.counters;r.fill(0),this.decodeRowResult="";let i,o,s=wt.findAsteriskPattern(e,r),a=e.getNextSet(s[1]),l=e.getSize();do{wt.recordPattern(e,a,r);let t=wt.toNarrowWidePattern(r);if(t<0)throw new D;i=wt.patternToChar(t),this.decodeRowResult+=i,o=a;for(let t of r)a+=t;a=e.getNextSet(a)}while("*"!==i);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);let u,c=0;for(let t of r)c+=t;if(a!==l&&2*(a-o-c)<c)throw new D;if(this.usingCheckDigit){let t=this.decodeRowResult.length-1,e=0;for(let n=0;n<t;n++)e+=wt.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(n));if(this.decodeRowResult.charAt(t)!==wt.ALPHABET_STRING.charAt(e%43))throw new f;this.decodeRowResult=this.decodeRowResult.substring(0,t)}if(0===this.decodeRowResult.length)throw new D;u=this.extendedMode?wt.decodeExtended(this.decodeRowResult):this.decodeRowResult;let d=(s[1]+s[0])/2,h=o+c/2;return new H(u,null,0,[new at(d,t),new at(h,t)],W.CODE_39,(new Date).getTime())}static findAsteriskPattern(t,e){let n=t.getSize(),r=t.getNextSet(0),i=0,o=r,s=!1,a=e.length;for(let l=r;l<n;l++)if(t.get(l)!==s)e[i]++;else{if(i===a-1){if(this.toNarrowWidePattern(e)===wt.ASTERISK_ENCODING&&t.isRange(Math.max(0,o-Math.floor((l-o)/2)),o,!1))return[o,l];o+=e[0]+e[1],e.copyWithin(0,2,2+i-1),e[i-1]=0,e[i]=0,i--}else i++;e[i]=1,s=!s}throw new D}static toNarrowWidePattern(t){let e,n=t.length,r=0;do{let i=2147483647;for(let e of t)e<i&&e>r&&(i=e);r=i,e=0;let o=0,s=0;for(let i=0;i<n;i++){let a=t[i];a>r&&(s|=1<<n-1-i,e++,o+=a)}if(3===e){for(let i=0;i<n&&e>0;i++){let n=t[i];if(n>r&&(e--,2*n>=o))return-1}return s}}while(e>3);return-1}static patternToChar(t){for(let e=0;e<wt.CHARACTER_ENCODINGS.length;e++)if(wt.CHARACTER_ENCODINGS[e]===t)return wt.ALPHABET_STRING.charAt(e);if(t===wt.ASTERISK_ENCODING)return"*";throw new D}static decodeExtended(t){let e=t.length,n="";for(let r=0;r<e;r++){let e=t.charAt(r);if("+"===e||"$"===e||"%"===e||"/"===e){let i=t.charAt(r+1),o="\0";switch(e){case"+":if(!(i>="A"&&i<="Z"))throw new S;o=String.fromCharCode(i.charCodeAt(0)+32);break;case"$":if(!(i>="A"&&i<="Z"))throw new S;o=String.fromCharCode(i.charCodeAt(0)-64);break;case"%":if(i>="A"&&i<="E")o=String.fromCharCode(i.charCodeAt(0)-38);else if(i>="F"&&i<="J")o=String.fromCharCode(i.charCodeAt(0)-11);else if(i>="K"&&i<="O")o=String.fromCharCode(i.charCodeAt(0)+16);else if(i>="P"&&i<="T")o=String.fromCharCode(i.charCodeAt(0)+43);else if("U"===i)o="\0";else if("V"===i)o="@";else if("W"===i)o="`";else{if("X"!==i&&"Y"!==i&&"Z"!==i)throw new S;o="�"}break;case"/":if(i>="A"&&i<="O")o=String.fromCharCode(i.charCodeAt(0)-32);else{if("Z"!==i)throw new S;o=":"}}n+=o,r++}else n+=e}return n}}wt.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",wt.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],wt.ASTERISK_ENCODING=148;class Mt extends vt{constructor(){super(...arguments),this.narrowLineWidth=-1}decodeRow(t,e,n){let r=this.decodeStart(e),i=this.decodeEnd(e),o=new L;Mt.decodeMiddle(e,r[1],i[0],o);let s=o.toString(),a=null;null!=n&&(a=n.get(M.ALLOWED_LENGTHS)),null==a&&(a=Mt.DEFAULT_ALLOWED_LENGTHS);let l=s.length,u=!1,c=0;for(let t of a){if(l===t){u=!0;break}t>c&&(c=t)}if(!u&&l>c&&(u=!0),!u)throw new S;const d=[new at(r[1],t),new at(i[0],t)];return new H(s,null,0,d,W.ITF,(new Date).getTime())}static decodeMiddle(t,e,n,r){let i=new Int32Array(10),o=new Int32Array(5),s=new Int32Array(5);for(i.fill(0),o.fill(0),s.fill(0);e<n;){vt.recordPattern(t,e,i);for(let t=0;t<5;t++){let e=2*t;o[t]=i[e],s[t]=i[e+1]}let n=Mt.decodeDigit(o);r.append(n.toString()),n=this.decodeDigit(s),r.append(n.toString()),i.forEach((function(t){e+=t}))}}decodeStart(t){let e=Mt.skipWhiteSpace(t),n=Mt.findGuardPattern(t,e,Mt.START_PATTERN);return this.narrowLineWidth=(n[1]-n[0])/4,this.validateQuietZone(t,n[0]),n}validateQuietZone(t,e){let n=10*this.narrowLineWidth;n=n<e?n:e;for(let r=e-1;n>0&&r>=0&&!t.get(r);r--)n--;if(0!==n)throw new D}static skipWhiteSpace(t){const e=t.getSize(),n=t.getNextSet(0);if(n===e)throw new D;return n}decodeEnd(t){t.reverse();try{let e,n=Mt.skipWhiteSpace(t);try{e=Mt.findGuardPattern(t,n,Mt.END_PATTERN_REVERSED[0])}catch(r){r instanceof D&&(e=Mt.findGuardPattern(t,n,Mt.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,e[0]);let r=e[0];return e[0]=t.getSize()-e[1],e[1]=t.getSize()-r,e}finally{t.reverse()}}static findGuardPattern(t,e,n){let r=n.length,i=new Int32Array(r),o=t.getSize(),s=!1,a=0,l=e;i.fill(0);for(let u=e;u<o;u++)if(t.get(u)!==s)i[a]++;else{if(a===r-1){if(vt.patternMatchVariance(i,n,Mt.MAX_INDIVIDUAL_VARIANCE)<Mt.MAX_AVG_VARIANCE)return[l,u];l+=i[0]+i[1],m.arraycopy(i,2,i,0,a-1),i[a-1]=0,i[a]=0,a--}else a++;i[a]=1,s=!s}throw new D}static decodeDigit(t){let e=Mt.MAX_AVG_VARIANCE,n=-1,r=Mt.PATTERNS.length;for(let i=0;i<r;i++){let r=Mt.PATTERNS[i],o=vt.patternMatchVariance(t,r,Mt.MAX_INDIVIDUAL_VARIANCE);o<e?(e=o,n=i):o===e&&(n=-1)}if(n>=0)return n%10;throw new D}}Mt.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],Mt.MAX_AVG_VARIANCE=.38,Mt.MAX_INDIVIDUAL_VARIANCE=.5,Mt.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],Mt.START_PATTERN=Int32Array.from([1,1,1,1]),Mt.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])];class St extends vt{constructor(){super(...arguments),this.decodeRowStringBuffer=""}static findStartGuardPattern(t){let e,n=!1,r=0,i=Int32Array.from([0,0,0]);for(;!n;){i=Int32Array.from([0,0,0]),e=St.findGuardPattern(t,r,!1,this.START_END_PATTERN,i);let o=e[0];r=e[1];let s=o-(r-o);s>=0&&(n=t.isRange(s,o,!1))}return e}static checkChecksum(t){return St.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let n=parseInt(t.charAt(e-1),10);return St.getStandardUPCEANChecksum(t.substring(0,e-1))===n}static getStandardUPCEANChecksum(t){let e=t.length,n=0;for(let r=e-1;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new S;n+=e}n*=3;for(let r=e-2;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new S;n+=e}return(1e3-n)%10}static decodeEnd(t,e){return St.findGuardPattern(t,e,!1,St.START_END_PATTERN,new Int32Array(St.START_END_PATTERN.length).fill(0))}static findGuardPatternWithoutCounters(t,e,n,r){return this.findGuardPattern(t,e,n,r,new Int32Array(r.length))}static findGuardPattern(t,e,n,r,i){let o=t.getSize(),s=0,a=e=n?t.getNextUnset(e):t.getNextSet(e),l=r.length,u=n;for(let n=e;n<o;n++)if(t.get(n)!==u)i[s]++;else{if(s===l-1){if(vt.patternMatchVariance(i,r,St.MAX_INDIVIDUAL_VARIANCE)<St.MAX_AVG_VARIANCE)return Int32Array.from([a,n]);a+=i[0]+i[1];let t=i.slice(2,i.length-1);for(let e=0;e<s-1;e++)i[e]=t[e];i[s-1]=0,i[s]=0,s--}else s++;i[s]=1,u=!u}throw new D}static decodeDigit(t,e,n,r){this.recordPattern(t,n,e);let i=this.MAX_AVG_VARIANCE,o=-1,s=r.length;for(let t=0;t<s;t++){let n=r[t],s=vt.patternMatchVariance(e,n,St.MAX_INDIVIDUAL_VARIANCE);s<i&&(i=s,o=t)}if(o>=0)return o;throw new D}}St.MAX_AVG_VARIANCE=.48,St.MAX_INDIVIDUAL_VARIANCE=.7,St.START_END_PATTERN=Int32Array.from([1,1,1]),St.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),St.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),St.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])];class Ct{constructor(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,n){let r=this.decodeRowStringBuffer,i=this.decodeMiddle(e,n,r),o=r.toString(),s=Ct.parseExtensionString(o),a=[new at((n[0]+n[1])/2,t),new at(i,t)],l=new H(o,null,0,a,W.UPC_EAN_EXTENSION,(new Date).getTime());return null!=s&&l.putAllMetadata(s),l}decodeMiddle(t,e,n){let r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let i=t.getSize(),o=e[1],s=0;for(let e=0;e<5&&o<i;e++){let i=St.decodeDigit(t,r,o,St.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+i%10);for(let t of r)o+=t;i>=10&&(s|=1<<4-e),4!==e&&(o=t.getNextSet(o),o=t.getNextUnset(o))}if(5!==n.length)throw new D;let a=this.determineCheckDigit(s);if(Ct.extensionChecksum(n.toString())!==a)throw new D;return o}static extensionChecksum(t){let e=t.length,n=0;for(let r=e-2;r>=0;r-=2)n+=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);n*=3;for(let r=e-1;r>=0;r-=2)n+=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);return n*=3,n%10}determineCheckDigit(t){for(let e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new D}static parseExtensionString(t){if(5!==t.length)return null;let e=Ct.parseExtension5String(t);return null==e?null:new Map([[Z.SUGGESTED_PRICE,e]])}static parseExtension5String(t){let e;switch(t.charAt(0)){case"0":e="£";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}let n=parseInt(t.substring(1)),r=n%100;return e+(n/100).toString()+"."+(r<10?"0"+r:r.toString())}}class At{constructor(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,n){let r=this.decodeRowStringBuffer,i=this.decodeMiddle(e,n,r),o=r.toString(),s=At.parseExtensionString(o),a=[new at((n[0]+n[1])/2,t),new at(i,t)],l=new H(o,null,0,a,W.UPC_EAN_EXTENSION,(new Date).getTime());return null!=s&&l.putAllMetadata(s),l}decodeMiddle(t,e,n){let r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let i=t.getSize(),o=e[1],s=0;for(let e=0;e<2&&o<i;e++){let i=St.decodeDigit(t,r,o,St.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+i%10);for(let t of r)o+=t;i>=10&&(s|=1<<1-e),1!==e&&(o=t.getNextSet(o),o=t.getNextUnset(o))}if(2!==n.length)throw new D;if(parseInt(n.toString())%4!==s)throw new D;return o}static parseExtensionString(t){return 2!==t.length?null:new Map([[Z.ISSUE_NUMBER,parseInt(t)]])}}class xt{static decodeRow(t,e,n){let r=St.findGuardPattern(e,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new Ct).decodeRow(t,e,r)}catch(n){return(new At).decodeRow(t,e,r)}}}xt.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]);class Et extends St{constructor(){super(),this.decodeRowStringBuffer="",Et.L_AND_G_PATTERNS=Et.L_PATTERNS.map((t=>Int32Array.from(t)));for(let t=10;t<20;t++){let e=Et.L_PATTERNS[t-10],n=new Int32Array(e.length);for(let t=0;t<e.length;t++)n[t]=e[e.length-t-1];Et.L_AND_G_PATTERNS[t]=n}}decodeRow(t,e,n){let r=Et.findStartGuardPattern(e),i=null==n?null:n.get(M.NEED_RESULT_POINT_CALLBACK);if(null!=i){const e=new at((r[0]+r[1])/2,t);i.foundPossibleResultPoint(e)}let o=this.decodeMiddle(e,r,this.decodeRowStringBuffer),s=o.rowOffset,a=o.resultString;if(null!=i){const e=new at(s,t);i.foundPossibleResultPoint(e)}let l=this.decodeEnd(e,s);if(null!=i){const e=new at((l[0]+l[1])/2,t);i.foundPossibleResultPoint(e)}let u=l[1],c=u+(u-l[0]);if(c>=e.getSize()||!e.isRange(u,c,!1))throw new D;let d=a.toString();if(d.length<8)throw new S;if(!Et.checkChecksum(d))throw new f;let h=(r[1]+r[0])/2,p=(l[1]+l[0])/2,m=this.getBarcodeFormat(),g=[new at(h,t),new at(p,t)],y=new H(d,null,0,g,m,(new Date).getTime()),_=0;try{let n=xt.decodeRow(t,e,l[1]);y.putMetadata(Z.UPC_EAN_EXTENSION,n.getText()),y.putAllMetadata(n.getResultMetadata()),y.addResultPoints(n.getResultPoints()),_=n.getText().length}catch(t){}let v=null==n?null:n.get(M.ALLOWED_EAN_EXTENSIONS);if(null!=v){let t=!1;for(let e in v)if(_.toString()===e){t=!0;break}if(!t)throw new D}return y}decodeEnd(t,e){return Et.findGuardPattern(t,e,!1,Et.START_END_PATTERN,new Int32Array(Et.START_END_PATTERN.length).fill(0))}static checkChecksum(t){return Et.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let n=parseInt(t.charAt(e-1),10);return Et.getStandardUPCEANChecksum(t.substring(0,e-1))===n}static getStandardUPCEANChecksum(t){let e=t.length,n=0;for(let r=e-1;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new S;n+=e}n*=3;for(let r=e-2;r>=0;r-=2){let e=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new S;n+=e}return(1e3-n)%10}}class Lt extends Et{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(t,e,n){let r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let i=t.getSize(),o=e[1],s=0;for(let e=0;e<6&&o<i;e++){let i=Et.decodeDigit(t,r,o,Et.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+i%10);for(let t of r)o+=t;i>=10&&(s|=1<<5-e)}n=Lt.determineFirstDigit(n,s),o=Et.findGuardPattern(t,o,!0,Et.MIDDLE_PATTERN,new Int32Array(Et.MIDDLE_PATTERN.length).fill(0))[1];for(let e=0;e<6&&o<i;e++){let e=Et.decodeDigit(t,r,o,Et.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e);for(let t of r)o+=t}return{rowOffset:o,resultString:n}}getBarcodeFormat(){return W.EAN_13}static determineFirstDigit(t,e){for(let n=0;n<10;n++)if(e===this.FIRST_DIGIT_ENCODINGS[n])return t=String.fromCharCode("0".charCodeAt(0)+n)+t;throw new D}}Lt.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26];class Tt extends Et{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(t,e,n){const r=this.decodeMiddleCounters;r[0]=0,r[1]=0,r[2]=0,r[3]=0;let i=t.getSize(),o=e[1];for(let e=0;e<4&&o<i;e++){let e=Et.decodeDigit(t,r,o,Et.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e);for(let t of r)o+=t}o=Et.findGuardPattern(t,o,!0,Et.MIDDLE_PATTERN,new Int32Array(Et.MIDDLE_PATTERN.length).fill(0))[1];for(let e=0;e<4&&o<i;e++){let e=Et.decodeDigit(t,r,o,Et.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+e);for(let t of r)o+=t}return{rowOffset:o,resultString:n}}getBarcodeFormat(){return W.EAN_8}}class Dt extends Et{constructor(){super(...arguments),this.ean13Reader=new Lt}getBarcodeFormat(){return W.UPC_A}decode(t,e){return this.maybeReturnResult(this.ean13Reader.decode(t))}decodeRow(t,e,n){return this.maybeReturnResult(this.ean13Reader.decodeRow(t,e,n))}decodeMiddle(t,e,n){return this.ean13Reader.decodeMiddle(t,e,n)}maybeReturnResult(t){let e=t.getText();if("0"===e.charAt(0)){let n=new H(e.substring(1),null,null,t.getResultPoints(),W.UPC_A);return null!=t.getResultMetadata()&&n.putAllMetadata(t.getResultMetadata()),n}throw new D}reset(){this.ean13Reader.reset()}}class kt extends Et{constructor(){super(),this.decodeMiddleCounters=new Int32Array(4)}decodeMiddle(t,e,n){const r=this.decodeMiddleCounters.map((t=>t));r[0]=0,r[1]=0,r[2]=0,r[3]=0;const i=t.getSize();let o=e[1],s=0;for(let e=0;e<6&&o<i;e++){const i=kt.decodeDigit(t,r,o,kt.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+i%10);for(let t of r)o+=t;i>=10&&(s|=1<<5-e)}return{rowOffset:o,resultString:kt.determineNumSysAndCheckDigit(n,s)}}decodeEnd(t,e){return kt.findGuardPatternWithoutCounters(t,e,!0,kt.MIDDLE_END_PATTERN)}checkChecksum(t){return Et.checkChecksum(kt.convertUPCEtoUPCA(t))}static determineNumSysAndCheckDigit(t,e){for(let n=0;n<=1;n++)for(let r=0;r<10;r++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[n][r])return String.fromCharCode("0".charCodeAt(0)+n)+t+String.fromCharCode("0".charCodeAt(0)+r);throw D.getNotFoundInstance()}getBarcodeFormat(){return W.UPC_E}static convertUPCEtoUPCA(t){const e=t.slice(1,7).split("").map((t=>t.charCodeAt(0))),n=new L;n.append(t.charAt(0));let r=e[5];switch(r){case 0:case 1:case 2:n.appendChars(e,0,2),n.append(r),n.append("0000"),n.appendChars(e,2,3);break;case 3:n.appendChars(e,0,3),n.append("00000"),n.appendChars(e,3,2);break;case 4:n.appendChars(e,0,4),n.append("00000"),n.append(e[4]);break;default:n.appendChars(e,0,5),n.append("0000"),n.append(r)}return t.length>=8&&n.append(t.charAt(7)),n.toString()}}kt.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),kt.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,26])];class Ot extends vt{constructor(t){super();let n=null==t?null:t.get(M.POSSIBLE_FORMATS),r=[];e(n)?(r.push(new Lt),r.push(new Dt),r.push(new Tt),r.push(new kt)):(n.indexOf(W.EAN_13)>-1&&r.push(new Lt),n.indexOf(W.UPC_A)>-1&&r.push(new Dt),n.indexOf(W.EAN_8)>-1&&r.push(new Tt),n.indexOf(W.UPC_E)>-1&&r.push(new kt)),this.readers=r}decodeRow(t,e,n){for(let r of this.readers)try{const i=r.decodeRow(t,e,n),o=i.getBarcodeFormat()===W.EAN_13&&"0"===i.getText().charAt(0),s=null==n?null:n.get(M.POSSIBLE_FORMATS),a=null==s||s.includes(W.UPC_A);if(o&&a){const t=i.getRawBytes(),e=new H(i.getText().substring(1),t,t?t.length:null,i.getResultPoints(),W.UPC_A);return e.putAllMetadata(i.getResultMetadata()),e}return i}catch(t){}throw new D}reset(){for(let t of this.readers)t.reset()}}class It extends vt{constructor(){super(),this.decodeFinderCounters=new Int32Array(4),this.dataCharacterCounters=new Int32Array(8),this.oddRoundingErrors=new Array(4),this.evenRoundingErrors=new Array(4),this.oddCounts=new Array(this.dataCharacterCounters.length/2),this.evenCounts=new Array(this.dataCharacterCounters.length/2)}getDecodeFinderCounters(){return this.decodeFinderCounters}getDataCharacterCounters(){return this.dataCharacterCounters}getOddRoundingErrors(){return this.oddRoundingErrors}getEvenRoundingErrors(){return this.evenRoundingErrors}getOddCounts(){return this.oddCounts}getEvenCounts(){return this.evenCounts}parseFinderValue(t,e){for(let n=0;n<e.length;n++)if(vt.patternMatchVariance(t,e[n],It.MAX_INDIVIDUAL_VARIANCE)<It.MAX_AVG_VARIANCE)return n;throw new D}static count(t){return ot.sum(new Int32Array(t))}static increment(t,e){let n=0,r=e[0];for(let i=1;i<t.length;i++)e[i]>r&&(r=e[i],n=i);t[n]++}static decrement(t,e){let n=0,r=e[0];for(let i=1;i<t.length;i++)e[i]<r&&(r=e[i],n=i);t[n]--}static isFinderPattern(t){let e=t[0]+t[1],n=e/(e+t[2]+t[3]);if(n>=It.MIN_FINDER_PATTERN_RATIO&&n<=It.MAX_FINDER_PATTERN_RATIO){let e=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;for(let r of t)r>n&&(n=r),r<e&&(e=r);return n<10*e}return!1}}It.MAX_AVG_VARIANCE=.2,It.MAX_INDIVIDUAL_VARIANCE=.45,It.MIN_FINDER_PATTERN_RATIO=9.5/12,It.MAX_FINDER_PATTERN_RATIO=12.5/14;class Nt{constructor(t,e){this.value=t,this.checksumPortion=e}getValue(){return this.value}getChecksumPortion(){return this.checksumPortion}toString(){return this.value+"("+this.checksumPortion+")"}equals(t){if(!(t instanceof Nt))return!1;const e=t;return this.value===e.value&&this.checksumPortion===e.checksumPortion}hashCode(){return this.value^this.checksumPortion}}class Pt{constructor(t,e,n,r,i){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new at(n,i)),this.resultPoints.push(new at(r,i))}getValue(){return this.value}getStartEnd(){return this.startEnd}getResultPoints(){return this.resultPoints}equals(t){if(!(t instanceof Pt))return!1;const e=t;return this.value===e.value}hashCode(){return this.value}}class Rt{constructor(){}static getRSSvalue(t,e,n){let r=0;for(let e of t)r+=e;let i=0,o=0,s=t.length;for(let a=0;a<s-1;a++){let l;for(l=1,o|=1<<a;l<t[a];l++,o&=~(1<<a)){let t=Rt.combins(r-l-1,s-a-2);if(n&&0===o&&r-l-(s-a-1)>=s-a-1&&(t-=Rt.combins(r-l-(s-a),s-a-2)),s-a-1>1){let n=0;for(let t=r-l-(s-a-2);t>e;t--)n+=Rt.combins(r-l-t-1,s-a-3);t-=n*(s-1-a)}else r-l>e&&t--;i+=t}r-=l}return i}static combins(t,e){let n,r;t-e>e?(r=e,n=t-e):(r=t-e,n=e);let i=1,o=1;for(let e=t;e>n;e--)i*=e,o<=r&&(i/=o,o++);for(;o<=r;)i/=o,o++;return i}}class Yt{static buildBitArray(t){let e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);let n=new b(12*e),r=0,i=t[0].getRightChar().getValue();for(let t=11;t>=0;--t)0!=(i&1<<t)&&n.set(r),r++;for(let e=1;e<t.length;++e){let i=t[e],o=i.getLeftChar().getValue();for(let t=11;t>=0;--t)0!=(o&1<<t)&&n.set(r),r++;if(null!=i.getRightChar()){let t=i.getRightChar().getValue();for(let e=11;e>=0;--e)0!=(t&1<<e)&&n.set(r),r++}}return n}}class jt{constructor(t,e){e?this.decodedInformation=null:(this.finished=t,this.decodedInformation=e)}getDecodedInformation(){return this.decodedInformation}isFinished(){return this.finished}}class Bt{constructor(t){this.newPosition=t}getNewPosition(){return this.newPosition}}class Ht extends Bt{constructor(t,e){super(t),this.value=e}getValue(){return this.value}isFNC1(){return this.value===Ht.FNC1}}Ht.FNC1="$";class Ft extends Bt{constructor(t,e,n){super(t),n?(this.remaining=!0,this.remainingValue=this.remainingValue):(this.remaining=!1,this.remainingValue=0),this.newString=e}getNewString(){return this.newString}isRemaining(){return this.remaining}getRemainingValue(){return this.remainingValue}}class Wt extends Bt{constructor(t,e,n){if(super(t),e<0||e>10||n<0||n>10)throw new S;this.firstDigit=e,this.secondDigit=n}getFirstDigit(){return this.firstDigit}getSecondDigit(){return this.secondDigit}getValue(){return 10*this.firstDigit+this.secondDigit}isFirstDigitFNC1(){return this.firstDigit===Wt.FNC1}isSecondDigitFNC1(){return this.secondDigit===Wt.FNC1}isAnyFNC1(){return this.firstDigit===Wt.FNC1||this.secondDigit===Wt.FNC1}}Wt.FNC1=10;class Ut{constructor(){}static parseFieldsInGeneralPurpose(t){if(!t)return null;if(t.length<2)throw new D;let e=t.substring(0,2);for(let n of Ut.TWO_DIGIT_DATA_LENGTH)if(n[0]===e)return n[1]===Ut.VARIABLE_LENGTH?Ut.processVariableAI(2,n[2],t):Ut.processFixedAI(2,n[1],t);if(t.length<3)throw new D;let n=t.substring(0,3);for(let e of Ut.THREE_DIGIT_DATA_LENGTH)if(e[0]===n)return e[1]===Ut.VARIABLE_LENGTH?Ut.processVariableAI(3,e[2],t):Ut.processFixedAI(3,e[1],t);for(let e of Ut.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH)if(e[0]===n)return e[1]===Ut.VARIABLE_LENGTH?Ut.processVariableAI(4,e[2],t):Ut.processFixedAI(4,e[1],t);if(t.length<4)throw new D;let r=t.substring(0,4);for(let e of Ut.FOUR_DIGIT_DATA_LENGTH)if(e[0]===r)return e[1]===Ut.VARIABLE_LENGTH?Ut.processVariableAI(4,e[2],t):Ut.processFixedAI(4,e[1],t);throw new D}static processFixedAI(t,e,n){if(n.length<t)throw new D;let r=n.substring(0,t);if(n.length<t+e)throw new D;let i=n.substring(t,t+e),o=n.substring(t+e),s="("+r+")"+i,a=Ut.parseFieldsInGeneralPurpose(o);return null==a?s:s+a}static processVariableAI(t,e,n){let r,i=n.substring(0,t);r=n.length<t+e?n.length:t+e;let o=n.substring(t,r),s=n.substring(r),a="("+i+")"+o,l=Ut.parseFieldsInGeneralPurpose(s);return null==l?a:a+l}}Ut.VARIABLE_LENGTH=[],Ut.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",Ut.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",Ut.VARIABLE_LENGTH,20],["22",Ut.VARIABLE_LENGTH,29],["30",Ut.VARIABLE_LENGTH,8],["37",Ut.VARIABLE_LENGTH,8],["90",Ut.VARIABLE_LENGTH,30],["91",Ut.VARIABLE_LENGTH,30],["92",Ut.VARIABLE_LENGTH,30],["93",Ut.VARIABLE_LENGTH,30],["94",Ut.VARIABLE_LENGTH,30],["95",Ut.VARIABLE_LENGTH,30],["96",Ut.VARIABLE_LENGTH,30],["97",Ut.VARIABLE_LENGTH,3],["98",Ut.VARIABLE_LENGTH,30],["99",Ut.VARIABLE_LENGTH,30]],Ut.THREE_DIGIT_DATA_LENGTH=[["240",Ut.VARIABLE_LENGTH,30],["241",Ut.VARIABLE_LENGTH,30],["242",Ut.VARIABLE_LENGTH,6],["250",Ut.VARIABLE_LENGTH,30],["251",Ut.VARIABLE_LENGTH,30],["253",Ut.VARIABLE_LENGTH,17],["254",Ut.VARIABLE_LENGTH,20],["400",Ut.VARIABLE_LENGTH,30],["401",Ut.VARIABLE_LENGTH,30],["402",17],["403",Ut.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",Ut.VARIABLE_LENGTH,20],["421",Ut.VARIABLE_LENGTH,15],["422",3],["423",Ut.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],Ut.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",Ut.VARIABLE_LENGTH,15],["391",Ut.VARIABLE_LENGTH,18],["392",Ut.VARIABLE_LENGTH,15],["393",Ut.VARIABLE_LENGTH,18],["703",Ut.VARIABLE_LENGTH,30]],Ut.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",Ut.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",Ut.VARIABLE_LENGTH,20],["8003",Ut.VARIABLE_LENGTH,30],["8004",Ut.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",Ut.VARIABLE_LENGTH,30],["8008",Ut.VARIABLE_LENGTH,12],["8018",18],["8020",Ut.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",Ut.VARIABLE_LENGTH,70],["8200",Ut.VARIABLE_LENGTH,70]];class zt{constructor(t){this.buffer=new L,this.information=t}decodeAllCodes(t,e){let n=e,r=null;for(;;){let e=this.decodeGeneralPurposeField(n,r),i=Ut.parseFieldsInGeneralPurpose(e.getNewString());if(null!=i&&t.append(i),r=e.isRemaining()?""+e.getRemainingValue():null,n===e.getNewPosition())break;n=e.getNewPosition()}return t.toString()}isStillNumeric(t){if(t+7>this.information.getSize())return t+4<=this.information.getSize();for(let e=t;e<t+3;++e)if(this.information.get(e))return!0;return this.information.get(t+3)}decodeNumeric(t){if(t+7>this.information.getSize()){let e=this.extractNumericValueFromBitArray(t,4);return new Wt(this.information.getSize(),0===e?Wt.FNC1:e-1,Wt.FNC1)}let e=this.extractNumericValueFromBitArray(t,7);return new Wt(t+7,(e-8)/11,(e-8)%11)}extractNumericValueFromBitArray(t,e){return zt.extractNumericValueFromBitArray(this.information,t,e)}static extractNumericValueFromBitArray(t,e,n){let r=0;for(let i=0;i<n;++i)t.get(e+i)&&(r|=1<<n-i-1);return r}decodeGeneralPurposeField(t,e){this.buffer.setLengthToZero(),null!=e&&this.buffer.append(e),this.current.setPosition(t);let n=this.parseBlocks();return null!=n&&n.isRemaining()?new Ft(this.current.getPosition(),this.buffer.toString(),n.getRemainingValue()):new Ft(this.current.getPosition(),this.buffer.toString())}parseBlocks(){let t,e;do{let n=this.current.getPosition();if(this.current.isAlpha()?(e=this.parseAlphaBlock(),t=e.isFinished()):this.current.isIsoIec646()?(e=this.parseIsoIec646Block(),t=e.isFinished()):(e=this.parseNumericBlock(),t=e.isFinished()),n===this.current.getPosition()&&!t)break}while(!t);return e.getDecodedInformation()}parseNumericBlock(){for(;this.isStillNumeric(this.current.getPosition());){let t=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFirstDigitFNC1()){let e;return e=t.isSecondDigitFNC1()?new Ft(this.current.getPosition(),this.buffer.toString()):new Ft(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new jt(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1()){let t=new Ft(this.current.getPosition(),this.buffer.toString());return new jt(!0,t)}this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new jt(!1)}parseIsoIec646Block(){for(;this.isStillIsoIec646(this.current.getPosition());){let t=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){let t=new Ft(this.current.getPosition(),this.buffer.toString());return new jt(!0,t)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new jt(!1)}parseAlphaBlock(){for(;this.isStillAlpha(this.current.getPosition());){let t=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){let t=new Ft(this.current.getPosition(),this.buffer.toString());return new jt(!0,t)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new jt(!1)}isStillIsoIec646(t){if(t+5>this.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;let n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<116)return!0;if(t+8>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(t,8);return r>=232&&r<253}decodeIsoIec646(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new Ht(t+5,Ht.FNC1);if(e>=5&&e<15)return new Ht(t+5,"0"+(e-5));let n,r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<90)return new Ht(t+7,""+(r+1));if(r>=90&&r<116)return new Ht(t+7,""+(r+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:n="!";break;case 233:n='"';break;case 234:n="%";break;case 235:n="&";break;case 236:n="'";break;case 237:n="(";break;case 238:n=")";break;case 239:n="*";break;case 240:n="+";break;case 241:n=",";break;case 242:n="-";break;case 243:n=".";break;case 244:n="/";break;case 245:n=":";break;case 246:n=";";break;case 247:n="<";break;case 248:n="=";break;case 249:n=">";break;case 250:n="?";break;case 251:n="_";break;case 252:n=" ";break;default:throw new S}return new Ht(t+8,n)}isStillAlpha(t){if(t+5>this.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;let n=this.extractNumericValueFromBitArray(t,6);return n>=16&&n<63}decodeAlphanumeric(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new Ht(t+5,Ht.FNC1);if(e>=5&&e<15)return new Ht(t+5,"0"+(e-5));let n,r=this.extractNumericValueFromBitArray(t,6);if(r>=32&&r<58)return new Ht(t+6,""+(r+33));switch(r){case 58:n="*";break;case 59:n=",";break;case 60:n="-";break;case 61:n=".";break;case 62:n="/";break;default:throw new nt("Decoding invalid alphanumeric value: "+r)}return new Ht(t+6,n)}isAlphaTo646ToAlphaLatch(t){if(t+1>this.information.getSize())return!1;for(let e=0;e<5&&e+t<this.information.getSize();++e)if(2===e){if(!this.information.get(t+2))return!1}else if(this.information.get(t+e))return!1;return!0}isAlphaOr646ToNumericLatch(t){if(t+3>this.information.getSize())return!1;for(let e=t;e<t+3;++e)if(this.information.get(e))return!1;return!0}isNumericToAlphaNumericLatch(t){if(t+1>this.information.getSize())return!1;for(let e=0;e<4&&e+t<this.information.getSize();++e)if(this.information.get(t+e))return!1;return!0}}class Vt{constructor(t){this.information=t,this.generalDecoder=new zt(t)}getInformation(){return this.information}getGeneralDecoder(){return this.generalDecoder}}class qt extends Vt{constructor(t){super(t)}encodeCompressedGtin(t,e){t.append("(01)");let n=t.length();t.append("9"),this.encodeCompressedGtinWithoutAI(t,e,n)}encodeCompressedGtinWithoutAI(t,e,n){for(let n=0;n<4;++n){let r=this.getGeneralDecoder().extractNumericValueFromBitArray(e+10*n,10);r/100==0&&t.append("0"),r/10==0&&t.append("0"),t.append(r)}qt.appendCheckDigit(t,n)}static appendCheckDigit(t,e){let n=0;for(let r=0;r<13;r++){let i=t.charAt(r+e).charCodeAt(0)-"0".charCodeAt(0);n+=0==(1&r)?3*i:i}n=10-n%10,10===n&&(n=0),t.append(n)}}qt.GTIN_SIZE=40;class Gt extends qt{constructor(t){super(t)}parseInformation(){let t=new L;t.append("(01)");let e=t.length(),n=this.getGeneralDecoder().extractNumericValueFromBitArray(Gt.HEADER_SIZE,4);return t.append(n),this.encodeCompressedGtinWithoutAI(t,Gt.HEADER_SIZE+4,e),this.getGeneralDecoder().decodeAllCodes(t,Gt.HEADER_SIZE+44)}}Gt.HEADER_SIZE=4;class Xt extends Vt{constructor(t){super(t)}parseInformation(){let t=new L;return this.getGeneralDecoder().decodeAllCodes(t,Xt.HEADER_SIZE)}}Xt.HEADER_SIZE=5;class Zt extends qt{constructor(t){super(t)}encodeCompressedWeight(t,e,n){let r=this.getGeneralDecoder().extractNumericValueFromBitArray(e,n);this.addWeightCode(t,r);let i=this.checkWeight(r),o=1e5;for(let e=0;e<5;++e)i/o==0&&t.append("0"),o/=10;t.append(i)}}class Kt extends Zt{constructor(t){super(t)}parseInformation(){if(this.getInformation().getSize()!=Kt.HEADER_SIZE+Zt.GTIN_SIZE+Kt.WEIGHT_SIZE)throw new D;let t=new L;return this.encodeCompressedGtin(t,Kt.HEADER_SIZE),this.encodeCompressedWeight(t,Kt.HEADER_SIZE+Zt.GTIN_SIZE,Kt.WEIGHT_SIZE),t.toString()}}Kt.HEADER_SIZE=5,Kt.WEIGHT_SIZE=15;class Jt extends Kt{constructor(t){super(t)}addWeightCode(t,e){t.append("(3103)")}checkWeight(t){return t}}class Qt extends Kt{constructor(t){super(t)}addWeightCode(t,e){e<1e4?t.append("(3202)"):t.append("(3203)")}checkWeight(t){return t<1e4?t:t-1e4}}class $t extends qt{constructor(t){super(t)}parseInformation(){if(this.getInformation().getSize()<$t.HEADER_SIZE+qt.GTIN_SIZE)throw new D;let t=new L;this.encodeCompressedGtin(t,$t.HEADER_SIZE);let e=this.getGeneralDecoder().extractNumericValueFromBitArray($t.HEADER_SIZE+qt.GTIN_SIZE,$t.LAST_DIGIT_SIZE);t.append("(392"),t.append(e),t.append(")");let n=this.getGeneralDecoder().decodeGeneralPurposeField($t.HEADER_SIZE+qt.GTIN_SIZE+$t.LAST_DIGIT_SIZE,null);return t.append(n.getNewString()),t.toString()}}$t.HEADER_SIZE=8,$t.LAST_DIGIT_SIZE=2;class te extends qt{constructor(t){super(t)}parseInformation(){if(this.getInformation().getSize()<te.HEADER_SIZE+qt.GTIN_SIZE)throw new D;let t=new L;this.encodeCompressedGtin(t,te.HEADER_SIZE);let e=this.getGeneralDecoder().extractNumericValueFromBitArray(te.HEADER_SIZE+qt.GTIN_SIZE,te.LAST_DIGIT_SIZE);t.append("(393"),t.append(e),t.append(")");let n=this.getGeneralDecoder().extractNumericValueFromBitArray(te.HEADER_SIZE+qt.GTIN_SIZE+te.LAST_DIGIT_SIZE,te.FIRST_THREE_DIGITS_SIZE);n/100==0&&t.append("0"),n/10==0&&t.append("0"),t.append(n);let r=this.getGeneralDecoder().decodeGeneralPurposeField(te.HEADER_SIZE+qt.GTIN_SIZE+te.LAST_DIGIT_SIZE+te.FIRST_THREE_DIGITS_SIZE,null);return t.append(r.getNewString()),t.toString()}}te.HEADER_SIZE=8,te.LAST_DIGIT_SIZE=2,te.FIRST_THREE_DIGITS_SIZE=10;class ee extends Zt{constructor(t,e,n){super(t),this.dateCode=n,this.firstAIdigits=e}parseInformation(){if(this.getInformation().getSize()!=ee.HEADER_SIZE+ee.GTIN_SIZE+ee.WEIGHT_SIZE+ee.DATE_SIZE)throw new D;let t=new L;return this.encodeCompressedGtin(t,ee.HEADER_SIZE),this.encodeCompressedWeight(t,ee.HEADER_SIZE+ee.GTIN_SIZE,ee.WEIGHT_SIZE),this.encodeCompressedDate(t,ee.HEADER_SIZE+ee.GTIN_SIZE+ee.WEIGHT_SIZE),t.toString()}encodeCompressedDate(t,e){let n=this.getGeneralDecoder().extractNumericValueFromBitArray(e,ee.DATE_SIZE);if(38400==n)return;t.append("("),t.append(this.dateCode),t.append(")");let r=n%32;n/=32;let i=n%12+1;n/=12;let o=n;o/10==0&&t.append("0"),t.append(o),i/10==0&&t.append("0"),t.append(i),r/10==0&&t.append("0"),t.append(r)}addWeightCode(t,e){t.append("("),t.append(this.firstAIdigits),t.append(e/1e5),t.append(")")}checkWeight(t){return t%1e5}}function ne(t){try{if(t.get(1))return new Gt(t);if(!t.get(2))return new Xt(t);switch(zt.extractNumericValueFromBitArray(t,1,4)){case 4:return new Jt(t);case 5:return new Qt(t)}switch(zt.extractNumericValueFromBitArray(t,1,5)){case 12:return new $t(t);case 13:return new te(t)}switch(zt.extractNumericValueFromBitArray(t,1,7)){case 56:return new ee(t,"310","11");case 57:return new ee(t,"320","11");case 58:return new ee(t,"310","13");case 59:return new ee(t,"320","13");case 60:return new ee(t,"310","15");case 61:return new ee(t,"320","15");case 62:return new ee(t,"310","17");case 63:return new ee(t,"320","17")}}catch(e){throw console.log(e),new nt("unknown decoder: "+t)}}ee.HEADER_SIZE=8,ee.WEIGHT_SIZE=20,ee.DATE_SIZE=16;class re{constructor(t,e,n,r){this.leftchar=t,this.rightchar=e,this.finderpattern=n,this.maybeLast=r}mayBeLast(){return this.maybeLast}getLeftChar(){return this.leftchar}getRightChar(){return this.rightchar}getFinderPattern(){return this.finderpattern}mustBeLast(){return null==this.rightchar}toString(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"}static equals(t,e){return t instanceof re&&re.equalsOrNull(t.leftchar,e.leftchar)&&re.equalsOrNull(t.rightchar,e.rightchar)&&re.equalsOrNull(t.finderpattern,e.finderpattern)}static equalsOrNull(t,e){return null===t?null===e:re.equals(t,e)}hashCode(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()}}class ie{constructor(t,e,n){this.pairs=t,this.rowNumber=e,this.wasReversed=n}getPairs(){return this.pairs}getRowNumber(){return this.rowNumber}isReversed(){return this.wasReversed}isEquivalent(t){return this.checkEqualitity(this,t)}toString(){return"{ "+this.pairs+" }"}equals(t,e){return t instanceof ie&&this.checkEqualitity(t,e)&&t.wasReversed===e.wasReversed}checkEqualitity(t,e){if(!t||!e)return;let n;return t.forEach(((t,r)=>{e.forEach((e=>{t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(n=!0)}))})),n}}class oe extends It{constructor(t){super(...arguments),this.pairs=new Array(oe.MAX_PAIRS),this.rows=new Array,this.startEnd=[2],this.verbose=!0===t}decodeRow(t,e,n){this.pairs.length=0,this.startFromEven=!1;try{return oe.constructResult(this.decodeRow2pairs(t,e))}catch(t){this.verbose&&console.log(t)}return this.pairs.length=0,this.startFromEven=!0,oe.constructResult(this.decodeRow2pairs(t,e))}reset(){this.pairs.length=0,this.rows.length=0}decodeRow2pairs(t,e){let n,r=!1;for(;!r;)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(t){if(t instanceof D){if(!this.pairs.length)throw new D;r=!0}}if(this.checkChecksum())return this.pairs;if(n=!!this.rows.length,this.storeRow(t,!1),n){let t=this.checkRowsBoolean(!1);if(null!=t)return t;if(t=this.checkRowsBoolean(!0),null!=t)return t}throw new D}checkRowsBoolean(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());let e=null;try{e=this.checkRows(new Array,0)}catch(t){this.verbose&&console.log(t)}return t&&(this.rows=this.rows.reverse()),e}checkRows(t,e){for(let n=e;n<this.rows.length;n++){let e=this.rows[n];this.pairs.length=0;for(let e of t)this.pairs.push(e.getPairs());if(this.pairs.push(e.getPairs()),!oe.isValidSequence(this.pairs))continue;if(this.checkChecksum())return this.pairs;let r=new Array(t);r.push(e);try{return this.checkRows(r,n+1)}catch(t){this.verbose&&console.log(t)}}throw new D}static isValidSequence(t){for(let e of oe.FINDER_PATTERN_SEQUENCES){if(t.length>e.length)continue;let n=!0;for(let r=0;r<t.length;r++)if(t[r].getFinderPattern().getValue()!=e[r]){n=!1;break}if(n)return!0}return!1}storeRow(t,e){let n=0,r=!1,i=!1;for(;n<this.rows.length;){let e=this.rows[n];if(e.getRowNumber()>t){i=e.isEquivalent(this.pairs);break}r=e.isEquivalent(this.pairs),n++}i||r||oe.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new ie(this.pairs,t,e)),this.removePartialRows(this.pairs,this.rows))}removePartialRows(t,e){for(let n of e)if(n.getPairs().length!==t.length)for(let e of n.getPairs())for(let n of t)if(re.equals(e,n))break}static isPartialRow(t,e){for(let n of e){let e=!0;for(let r of t){let t=!1;for(let e of n.getPairs())if(r.equals(e)){t=!0;break}if(!t){e=!1;break}}if(e)return!0}return!1}getRows(){return this.rows}static constructResult(t){let e=ne(Yt.buildBitArray(t)).parseInformation(),n=t[0].getFinderPattern().getResultPoints(),r=t[t.length-1].getFinderPattern().getResultPoints(),i=[n[0],n[1],r[0],r[1]];return new H(e,null,null,i,W.RSS_EXPANDED,null)}checkChecksum(){let t=this.pairs.get(0),e=t.getLeftChar(),n=t.getRightChar();if(null==n)return!1;let r=n.getChecksumPortion(),i=2;for(let t=1;t<this.pairs.size();++t){let e=this.pairs.get(t);r+=e.getLeftChar().getChecksumPortion(),i++;let n=e.getRightChar();null!=n&&(r+=n.getChecksumPortion(),i++)}return r%=211,211*(i-4)+r==e.getValue()}static getNextSecondBar(t,e){let n;return t.get(e)?(n=t.getNextUnset(e),n=t.getNextSet(n)):(n=t.getNextSet(e),n=t.getNextUnset(n)),n}retrieveNextPair(t,e,n){let r,i=e.length%2==0;this.startFromEven&&(i=!i);let o=!0,s=-1;do{this.findNextPair(t,e,s),r=this.parseFoundFinderPattern(t,n,i),null==r?s=oe.getNextSecondBar(t,this.startEnd[0]):o=!1}while(o);let a,l=this.decodeDataCharacter(t,r,i,!0);if(!this.isEmptyPair(e)&&e[e.length-1].mustBeLast())throw new D;try{a=this.decodeDataCharacter(t,r,i,!1)}catch(t){a=null,this.verbose&&console.log(t)}return new re(l,a,r,!0)}isEmptyPair(t){return 0===t.length}findNextPair(t,e,n){let r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;let i,o=t.getSize();i=n>=0?n:this.isEmptyPair(e)?0:e[e.length-1].getFinderPattern().getStartEnd()[1];let s=e.length%2!=0;this.startFromEven&&(s=!s);let a=!1;for(;i<o&&(a=!t.get(i),a);)i++;let l=0,u=i;for(let e=i;e<o;e++)if(t.get(e)!=a)r[l]++;else{if(3==l){if(s&&oe.reverseCounters(r),oe.isFinderPattern(r))return this.startEnd[0]=u,void(this.startEnd[1]=e);s&&oe.reverseCounters(r),u+=r[0]+r[1],r[0]=r[2],r[1]=r[3],r[2]=0,r[3]=0,l--}else l++;r[l]=1,a=!a}throw new D}static reverseCounters(t){let e=t.length;for(let n=0;n<e/2;++n){let r=t[n];t[n]=t[e-n-1],t[e-n-1]=r}}parseFoundFinderPattern(t,e,n){let r,i,o;if(n){let e=this.startEnd[0]-1;for(;e>=0&&!t.get(e);)e--;e++,r=this.startEnd[0]-e,i=e,o=this.startEnd[1]}else i=this.startEnd[0],o=t.getNextUnset(this.startEnd[1]+1),r=o-this.startEnd[1];let s,a=this.getDecodeFinderCounters();m.arraycopy(a,0,a,1,a.length-1),a[0]=r;try{s=this.parseFinderValue(a,oe.FINDER_PATTERNS)}catch(t){return null}return new Pt(s,[i,o],i,o,e)}decodeDataCharacter(t,e,n,r){let i=this.getDataCharacterCounters();for(let t=0;t<i.length;t++)i[t]=0;if(r)oe.recordPatternInReverse(t,e.getStartEnd()[0],i);else{oe.recordPattern(t,e.getStartEnd()[1],i);for(let t=0,e=i.length-1;t<e;t++,e--){let n=i[t];i[t]=i[e],i[e]=n}}let o=17,s=ot.sum(new Int32Array(i))/o,a=(e.getStartEnd()[1]-e.getStartEnd()[0])/15;if(Math.abs(s-a)/a>.3)throw new D;let l=this.getOddCounts(),u=this.getEvenCounts(),c=this.getOddRoundingErrors(),d=this.getEvenRoundingErrors();for(let t=0;t<i.length;t++){let e=1*i[t]/s,n=e+.5;if(n<1){if(e<.3)throw new D;n=1}else if(n>8){if(e>8.7)throw new D;n=8}let r=t/2;0==(1&t)?(l[r]=n,c[r]=e-n):(u[r]=n,d[r]=e-n)}this.adjustOddEvenCounts(o);let h=4*e.getValue()+(n?0:2)+(r?0:1)-1,f=0,p=0;for(let t=l.length-1;t>=0;t--){if(oe.isNotA1left(e,n,r)){let e=oe.WEIGHTS[h][2*t];p+=l[t]*e}f+=l[t]}let m=0;for(let t=u.length-1;t>=0;t--)if(oe.isNotA1left(e,n,r)){let e=oe.WEIGHTS[h][2*t+1];m+=u[t]*e}let g=p+m;if(0!=(1&f)||f>13||f<4)throw new D;let y=(13-f)/2,_=oe.SYMBOL_WIDEST[y],v=9-_,b=Rt.getRSSvalue(l,_,!0),w=Rt.getRSSvalue(u,v,!1),M=oe.EVEN_TOTAL_SUBSET[y],S=oe.GSUM[y];return new Nt(b*M+w+S,g)}static isNotA1left(t,e,n){return!(0==t.getValue()&&e&&n)}adjustOddEvenCounts(t){let e=ot.sum(new Int32Array(this.getOddCounts())),n=ot.sum(new Int32Array(this.getEvenCounts())),r=!1,i=!1;e>13?i=!0:e<4&&(r=!0);let o=!1,s=!1;n>13?s=!0:n<4&&(o=!0);let a=e+n-t,l=1==(1&e),u=0==(1&n);if(1==a)if(l){if(u)throw new D;i=!0}else{if(!u)throw new D;s=!0}else if(-1==a)if(l){if(u)throw new D;r=!0}else{if(!u)throw new D;o=!0}else{if(0!=a)throw new D;if(l){if(!u)throw new D;e<n?(r=!0,s=!0):(i=!0,o=!0)}else if(u)throw new D}if(r){if(i)throw new D;oe.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(i&&oe.decrement(this.getOddCounts(),this.getOddRoundingErrors()),o){if(s)throw new D;oe.increment(this.getEvenCounts(),this.getOddRoundingErrors())}s&&oe.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}oe.SYMBOL_WIDEST=[7,5,4,3,1],oe.EVEN_TOTAL_SUBSET=[4,20,52,104,204],oe.GSUM=[0,348,1388,2948,3988],oe.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],oe.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],oe.FINDER_PAT_A=0,oe.FINDER_PAT_B=1,oe.FINDER_PAT_C=2,oe.FINDER_PAT_D=3,oe.FINDER_PAT_E=4,oe.FINDER_PAT_F=5,oe.FINDER_PATTERN_SEQUENCES=[[oe.FINDER_PAT_A,oe.FINDER_PAT_A],[oe.FINDER_PAT_A,oe.FINDER_PAT_B,oe.FINDER_PAT_B],[oe.FINDER_PAT_A,oe.FINDER_PAT_C,oe.FINDER_PAT_B,oe.FINDER_PAT_D],[oe.FINDER_PAT_A,oe.FINDER_PAT_E,oe.FINDER_PAT_B,oe.FINDER_PAT_D,oe.FINDER_PAT_C],[oe.FINDER_PAT_A,oe.FINDER_PAT_E,oe.FINDER_PAT_B,oe.FINDER_PAT_D,oe.FINDER_PAT_D,oe.FINDER_PAT_F],[oe.FINDER_PAT_A,oe.FINDER_PAT_E,oe.FINDER_PAT_B,oe.FINDER_PAT_D,oe.FINDER_PAT_E,oe.FINDER_PAT_F,oe.FINDER_PAT_F],[oe.FINDER_PAT_A,oe.FINDER_PAT_A,oe.FINDER_PAT_B,oe.FINDER_PAT_B,oe.FINDER_PAT_C,oe.FINDER_PAT_C,oe.FINDER_PAT_D,oe.FINDER_PAT_D],[oe.FINDER_PAT_A,oe.FINDER_PAT_A,oe.FINDER_PAT_B,oe.FINDER_PAT_B,oe.FINDER_PAT_C,oe.FINDER_PAT_C,oe.FINDER_PAT_D,oe.FINDER_PAT_E,oe.FINDER_PAT_E],[oe.FINDER_PAT_A,oe.FINDER_PAT_A,oe.FINDER_PAT_B,oe.FINDER_PAT_B,oe.FINDER_PAT_C,oe.FINDER_PAT_C,oe.FINDER_PAT_D,oe.FINDER_PAT_E,oe.FINDER_PAT_F,oe.FINDER_PAT_F],[oe.FINDER_PAT_A,oe.FINDER_PAT_A,oe.FINDER_PAT_B,oe.FINDER_PAT_B,oe.FINDER_PAT_C,oe.FINDER_PAT_D,oe.FINDER_PAT_D,oe.FINDER_PAT_E,oe.FINDER_PAT_E,oe.FINDER_PAT_F,oe.FINDER_PAT_F]],oe.MAX_PAIRS=11;class se extends Nt{constructor(t,e,n){super(t,e),this.count=0,this.finderPattern=n}getFinderPattern(){return this.finderPattern}getCount(){return this.count}incrementCount(){this.count++}}class ae extends It{constructor(){super(...arguments),this.possibleLeftPairs=[],this.possibleRightPairs=[]}decodeRow(t,e,n){const r=this.decodePair(e,!1,t,n);ae.addOrTally(this.possibleLeftPairs,r),e.reverse();let i=this.decodePair(e,!0,t,n);ae.addOrTally(this.possibleRightPairs,i),e.reverse();for(let t of this.possibleLeftPairs)if(t.getCount()>1)for(let e of this.possibleRightPairs)if(e.getCount()>1&&ae.checkChecksum(t,e))return ae.constructResult(t,e);throw new D}static addOrTally(t,e){if(null==e)return;let n=!1;for(let r of t)if(r.getValue()===e.getValue()){r.incrementCount(),n=!0;break}n||t.push(e)}reset(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0}static constructResult(t,e){let n=4537077*t.getValue()+e.getValue(),r=new String(n).toString(),i=new L;for(let t=13-r.length;t>0;t--)i.append("0");i.append(r);let o=0;for(let t=0;t<13;t++){let e=i.charAt(t).charCodeAt(0)-"0".charCodeAt(0);o+=0==(1&t)?3*e:e}o=10-o%10,10===o&&(o=0),i.append(o.toString());let s=t.getFinderPattern().getResultPoints(),a=e.getFinderPattern().getResultPoints();return new H(i.toString(),null,0,[s[0],s[1],a[0],a[1]],W.RSS_14,(new Date).getTime())}static checkChecksum(t,e){let n=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,r=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return r>72&&r--,r>8&&r--,n===r}decodePair(t,e,n,r){try{let i=this.findFinderPattern(t,e),o=this.parseFoundFinderPattern(t,n,e,i),s=null==r?null:r.get(M.NEED_RESULT_POINT_CALLBACK);if(null!=s){let r=(i[0]+i[1])/2;e&&(r=t.getSize()-1-r),s.foundPossibleResultPoint(new at(r,n))}let a=this.decodeDataCharacter(t,o,!0),l=this.decodeDataCharacter(t,o,!1);return new se(1597*a.getValue()+l.getValue(),a.getChecksumPortion()+4*l.getChecksumPortion(),o)}catch(t){return null}}decodeDataCharacter(t,e,n){let r=this.getDataCharacterCounters();for(let t=0;t<r.length;t++)r[t]=0;if(n)vt.recordPatternInReverse(t,e.getStartEnd()[0],r);else{vt.recordPattern(t,e.getStartEnd()[1]+1,r);for(let t=0,e=r.length-1;t<e;t++,e--){let n=r[t];r[t]=r[e],r[e]=n}}let i=n?16:15,o=ot.sum(new Int32Array(r))/i,s=this.getOddCounts(),a=this.getEvenCounts(),l=this.getOddRoundingErrors(),u=this.getEvenRoundingErrors();for(let t=0;t<r.length;t++){let e=r[t]/o,n=Math.floor(e+.5);n<1?n=1:n>8&&(n=8);let i=Math.floor(t/2);0==(1&t)?(s[i]=n,l[i]=e-n):(a[i]=n,u[i]=e-n)}this.adjustOddEvenCounts(n,i);let c=0,d=0;for(let t=s.length-1;t>=0;t--)d*=9,d+=s[t],c+=s[t];let h=0,f=0;for(let t=a.length-1;t>=0;t--)h*=9,h+=a[t],f+=a[t];let p=d+3*h;if(n){if(0!=(1&c)||c>12||c<4)throw new D;let t=(12-c)/2,e=ae.OUTSIDE_ODD_WIDEST[t],n=9-e,r=Rt.getRSSvalue(s,e,!1),i=Rt.getRSSvalue(a,n,!0),o=ae.OUTSIDE_EVEN_TOTAL_SUBSET[t],l=ae.OUTSIDE_GSUM[t];return new Nt(r*o+i+l,p)}{if(0!=(1&f)||f>10||f<4)throw new D;let t=(10-f)/2,e=ae.INSIDE_ODD_WIDEST[t],n=9-e,r=Rt.getRSSvalue(s,e,!0),i=Rt.getRSSvalue(a,n,!1),o=ae.INSIDE_ODD_TOTAL_SUBSET[t],l=ae.INSIDE_GSUM[t];return new Nt(i*o+r+l,p)}}findFinderPattern(t,e){let n=this.getDecodeFinderCounters();n[0]=0,n[1]=0,n[2]=0,n[3]=0;let r=t.getSize(),i=!1,o=0;for(;o<r&&(i=!t.get(o),e!==i);)o++;let s=0,a=o;for(let e=o;e<r;e++)if(t.get(e)!==i)n[s]++;else{if(3===s){if(It.isFinderPattern(n))return[a,e];a+=n[0]+n[1],n[0]=n[2],n[1]=n[3],n[2]=0,n[3]=0,s--}else s++;n[s]=1,i=!i}throw new D}parseFoundFinderPattern(t,e,n,r){let i=t.get(r[0]),o=r[0]-1;for(;o>=0&&i!==t.get(o);)o--;o++;const s=r[0]-o,a=this.getDecodeFinderCounters(),l=new Int32Array(a.length);m.arraycopy(a,0,l,1,a.length-1),l[0]=s;const u=this.parseFinderValue(l,ae.FINDER_PATTERNS);let c=o,d=r[1];return n&&(c=t.getSize()-1-c,d=t.getSize()-1-d),new Pt(u,[o,r[1]],c,d,e)}adjustOddEvenCounts(t,e){let n=ot.sum(new Int32Array(this.getOddCounts())),r=ot.sum(new Int32Array(this.getEvenCounts())),i=!1,o=!1,s=!1,a=!1;t?(n>12?o=!0:n<4&&(i=!0),r>12?a=!0:r<4&&(s=!0)):(n>11?o=!0:n<5&&(i=!0),r>10?a=!0:r<4&&(s=!0));let l=n+r-e,u=(1&n)==(t?1:0),c=1==(1&r);if(1===l)if(u){if(c)throw new D;o=!0}else{if(!c)throw new D;a=!0}else if(-1===l)if(u){if(c)throw new D;i=!0}else{if(!c)throw new D;s=!0}else{if(0!==l)throw new D;if(u){if(!c)throw new D;n<r?(i=!0,a=!0):(o=!0,s=!0)}else if(c)throw new D}if(i){if(o)throw new D;It.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&It.decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(a)throw new D;It.increment(this.getEvenCounts(),this.getOddRoundingErrors())}a&&It.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}ae.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],ae.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],ae.OUTSIDE_GSUM=[0,161,961,2015,2715],ae.INSIDE_GSUM=[0,336,1036,1516],ae.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],ae.INSIDE_ODD_WIDEST=[2,4,6,8],ae.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])];class le extends vt{constructor(t,e){super(),this.readers=[],this.verbose=!0===e;const n=t?t.get(M.POSSIBLE_FORMATS):null,r=t&&void 0!==t.get(M.ASSUME_CODE_39_CHECK_DIGIT);n?((n.includes(W.EAN_13)||n.includes(W.UPC_A)||n.includes(W.EAN_8)||n.includes(W.UPC_E))&&this.readers.push(new Ot(t)),n.includes(W.CODE_39)&&this.readers.push(new wt(r)),n.includes(W.CODE_128)&&this.readers.push(new bt),n.includes(W.ITF)&&this.readers.push(new Mt),n.includes(W.RSS_14)&&this.readers.push(new ae),n.includes(W.RSS_EXPANDED)&&this.readers.push(new oe(this.verbose))):(this.readers.push(new Ot(t)),this.readers.push(new wt),this.readers.push(new Ot(t)),this.readers.push(new bt),this.readers.push(new Mt),this.readers.push(new ae),this.readers.push(new oe(this.verbose)))}decodeRow(t,e,n){for(let r=0;r<this.readers.length;r++)try{return this.readers[r].decodeRow(t,e,n)}catch(t){}throw new D}reset(){this.readers.forEach((t=>t.reset()))}}class ue extends B{constructor(t=500,e){super(new le(e),t,e)}}class ce{constructor(t,e,n){this.ecCodewords=t,this.ecBlocks=[e],n&&this.ecBlocks.push(n)}getECCodewords(){return this.ecCodewords}getECBlocks(){return this.ecBlocks}}class de{constructor(t,e){this.count=t,this.dataCodewords=e}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class he{constructor(t,e,n,r,i,o){this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=n,this.dataRegionSizeRows=r,this.dataRegionSizeColumns=i,this.ecBlocks=o;let s=0;const a=o.getECCodewords(),l=o.getECBlocks();for(let t of l)s+=t.getCount()*(t.getDataCodewords()+a);this.totalCodewords=s}getVersionNumber(){return this.versionNumber}getSymbolSizeRows(){return this.symbolSizeRows}getSymbolSizeColumns(){return this.symbolSizeColumns}getDataRegionSizeRows(){return this.dataRegionSizeRows}getDataRegionSizeColumns(){return this.dataRegionSizeColumns}getTotalCodewords(){return this.totalCodewords}getECBlocks(){return this.ecBlocks}static getVersionForDimensions(t,e){if(0!=(1&t)||0!=(1&e))throw new S;for(let n of he.VERSIONS)if(n.symbolSizeRows===t&&n.symbolSizeColumns===e)return n;throw new S}toString(){return""+this.versionNumber}static buildVersions(){return[new he(1,10,10,8,8,new ce(5,new de(1,3))),new he(2,12,12,10,10,new ce(7,new de(1,5))),new he(3,14,14,12,12,new ce(10,new de(1,8))),new he(4,16,16,14,14,new ce(12,new de(1,12))),new he(5,18,18,16,16,new ce(14,new de(1,18))),new he(6,20,20,18,18,new ce(18,new de(1,22))),new he(7,22,22,20,20,new ce(20,new de(1,30))),new he(8,24,24,22,22,new ce(24,new de(1,36))),new he(9,26,26,24,24,new ce(28,new de(1,44))),new he(10,32,32,14,14,new ce(36,new de(1,62))),new he(11,36,36,16,16,new ce(42,new de(1,86))),new he(12,40,40,18,18,new ce(48,new de(1,114))),new he(13,44,44,20,20,new ce(56,new de(1,144))),new he(14,48,48,22,22,new ce(68,new de(1,174))),new he(15,52,52,24,24,new ce(42,new de(2,102))),new he(16,64,64,14,14,new ce(56,new de(2,140))),new he(17,72,72,16,16,new ce(36,new de(4,92))),new he(18,80,80,18,18,new ce(48,new de(4,114))),new he(19,88,88,20,20,new ce(56,new de(4,144))),new he(20,96,96,22,22,new ce(68,new de(4,174))),new he(21,104,104,24,24,new ce(56,new de(6,136))),new he(22,120,120,18,18,new ce(68,new de(6,175))),new he(23,132,132,20,20,new ce(62,new de(8,163))),new he(24,144,144,22,22,new ce(62,new de(8,156),new de(2,155))),new he(25,8,18,6,16,new ce(7,new de(1,5))),new he(26,8,32,6,14,new ce(11,new de(1,10))),new he(27,12,26,10,24,new ce(14,new de(1,16))),new he(28,12,36,10,16,new ce(18,new de(1,22))),new he(29,16,36,14,16,new ce(24,new de(1,32))),new he(30,16,48,14,22,new ce(28,new de(1,49)))]}}he.VERSIONS=he.buildVersions();class fe{constructor(t){const e=t.getHeight();if(e<8||e>144||0!=(1&e))throw new S;this.version=fe.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new T(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}getVersion(){return this.version}static readVersion(t){const e=t.getHeight(),n=t.getWidth();return he.getVersionForDimensions(e,n)}readCodewords(){const t=new Int8Array(this.version.getTotalCodewords());let e=0,n=4,r=0;const i=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth();let s=!1,a=!1,l=!1,u=!1;do{if(n!==i||0!==r||s)if(n!==i-2||0!==r||0==(3&o)||a)if(n!==i+4||2!==r||0!=(7&o)||l)if(n!==i-2||0!==r||4!=(7&o)||u){do{n<i&&r>=0&&!this.readMappingMatrix.get(r,n)&&(t[e++]=255&this.readUtah(n,r,i,o)),n-=2,r+=2}while(n>=0&&r<o);n+=1,r+=3;do{n>=0&&r<o&&!this.readMappingMatrix.get(r,n)&&(t[e++]=255&this.readUtah(n,r,i,o)),n+=2,r-=2}while(n<i&&r>=0);n+=3,r+=1}else t[e++]=255&this.readCorner4(i,o),n-=2,r+=2,u=!0;else t[e++]=255&this.readCorner3(i,o),n-=2,r+=2,l=!0;else t[e++]=255&this.readCorner2(i,o),n-=2,r+=2,a=!0;else t[e++]=255&this.readCorner1(i,o),n-=2,r+=2,s=!0}while(n<i||r<o);if(e!==this.version.getTotalCodewords())throw new S;return t}readModule(t,e,n,r){return t<0&&(t+=n,e+=4-(n+4&7)),e<0&&(e+=r,t+=4-(r+4&7)),this.readMappingMatrix.set(e,t),this.mappingBitMatrix.get(e,t)}readUtah(t,e,n,r){let i=0;return this.readModule(t-2,e-2,n,r)&&(i|=1),i<<=1,this.readModule(t-2,e-1,n,r)&&(i|=1),i<<=1,this.readModule(t-1,e-2,n,r)&&(i|=1),i<<=1,this.readModule(t-1,e-1,n,r)&&(i|=1),i<<=1,this.readModule(t-1,e,n,r)&&(i|=1),i<<=1,this.readModule(t,e-2,n,r)&&(i|=1),i<<=1,this.readModule(t,e-1,n,r)&&(i|=1),i<<=1,this.readModule(t,e,n,r)&&(i|=1),i}readCorner1(t,e){let n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,1,t,e)&&(n|=1),n<<=1,this.readModule(t-1,2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n}readCorner2(t,e){let n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-4,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n}readCorner3(t,e){let n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-3,t,e)&&(n|=1),n<<=1,this.readModule(1,e-2,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n}readCorner4(t,e){let n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n}extractDataRegion(t){const e=this.version.getSymbolSizeRows(),n=this.version.getSymbolSizeColumns();if(t.getHeight()!==e)throw new d("Dimension of bitMatrix must match the version size");const r=this.version.getDataRegionSizeRows(),i=this.version.getDataRegionSizeColumns(),o=e/r|0,s=n/i|0,a=new T(s*i,o*r);for(let e=0;e<o;++e){const n=e*r;for(let o=0;o<s;++o){const s=o*i;for(let l=0;l<r;++l){const u=e*(r+2)+1+l,c=n+l;for(let e=0;e<i;++e){const n=o*(i+2)+1+e;if(t.get(n,u)){const t=s+e;a.set(t,c)}}}}}return a}}class pe{constructor(t,e){this.numDataCodewords=t,this.codewords=e}static getDataBlocks(t,e){const n=e.getECBlocks();let r=0;const i=n.getECBlocks();for(let t of i)r+=t.getCount();const o=new Array(r);let s=0;for(let t of i)for(let e=0;e<t.getCount();e++){const e=t.getDataCodewords(),r=n.getECCodewords()+e;o[s++]=new pe(e,new Uint8Array(r))}const a=o[0].codewords.length-n.getECCodewords(),l=a-1;let u=0;for(let e=0;e<l;e++)for(let n=0;n<s;n++)o[n].codewords[e]=t[u++];const c=24===e.getVersionNumber(),h=c?8:s;for(let e=0;e<h;e++)o[e].codewords[a-1]=t[u++];const f=o[0].codewords.length;for(let e=a;e<f;e++)for(let n=0;n<s;n++){const r=c?(n+8)%s:n,i=c&&r>7?e-1:e;o[r].codewords[i]=t[u++]}if(u!==t.length)throw new d;return o}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}class me{constructor(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}getBitOffset(){return this.bitOffset}getByteOffset(){return this.byteOffset}readBits(t){if(t<1||t>32||t>this.available())throw new d(""+t);let e=0,n=this.bitOffset,r=this.byteOffset;const i=this.bytes;if(n>0){const o=8-n,s=t<o?t:o,a=o-s,l=255>>8-s<<a;e=(i[r]&l)>>a,t-=s,n+=s,8===n&&(n=0,r++)}if(t>0){for(;t>=8;)e=e<<8|255&i[r],r++,t-=8;if(t>0){const o=8-t,s=255>>o<<o;e=e<<t|(i[r]&s)>>o,n+=t}}return this.bitOffset=n,this.byteOffset=r,e}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}!function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"}(z||(z={}));class ge{static decode(t){const e=new me(t),n=new L,r=new L,i=new Array;let o=z.ASCII_ENCODE;do{if(o===z.ASCII_ENCODE)o=this.decodeAsciiSegment(e,n,r);else{switch(o){case z.C40_ENCODE:this.decodeC40Segment(e,n);break;case z.TEXT_ENCODE:this.decodeTextSegment(e,n);break;case z.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,n);break;case z.EDIFACT_ENCODE:this.decodeEdifactSegment(e,n);break;case z.BASE256_ENCODE:this.decodeBase256Segment(e,n,i);break;default:throw new S}o=z.ASCII_ENCODE}}while(o!==z.PAD_ENCODE&&e.available()>0);return r.length()>0&&n.append(r.toString()),new K(t,n.toString(),0===i.length?null:i,null)}static decodeAsciiSegment(t,e,n){let r=!1;do{let i=t.readBits(8);if(0===i)throw new S;if(i<=128)return r&&(i+=128),e.append(String.fromCharCode(i-1)),z.ASCII_ENCODE;if(129===i)return z.PAD_ENCODE;if(i<=229){const t=i-130;t<10&&e.append("0"),e.append(""+t)}else switch(i){case 230:return z.C40_ENCODE;case 231:return z.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:r=!0;break;case 236:e.append("[)>�05�"),n.insert(0,"��");break;case 237:e.append("[)>�06�"),n.insert(0,"��");break;case 238:return z.ANSIX12_ENCODE;case 239:return z.TEXT_ENCODE;case 240:return z.EDIFACT_ENCODE;default:if(254!==i||0!==t.available())throw new S}}while(t.available()>0);return z.ASCII_ENCODE}static decodeC40Segment(t,e){let n=!1;const r=[];let i=0;do{if(8===t.available())return;const o=t.readBits(8);if(254===o)return;this.parseTwoBytes(o,t.readBits(8),r);for(let t=0;t<3;t++){const o=r[t];switch(i){case 0:if(o<3)i=o+1;else{if(!(o<this.C40_BASIC_SET_CHARS.length))throw new S;{const t=this.C40_BASIC_SET_CHARS[o];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}}break;case 1:n?(e.append(String.fromCharCode(o+128)),n=!1):e.append(String.fromCharCode(o)),i=0;break;case 2:if(o<this.C40_SHIFT2_SET_CHARS.length){const t=this.C40_SHIFT2_SET_CHARS[o];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}else switch(o){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new S}i=0;break;case 3:n?(e.append(String.fromCharCode(o+224)),n=!1):e.append(String.fromCharCode(o+96)),i=0;break;default:throw new S}}}while(t.available()>0)}static decodeTextSegment(t,e){let n=!1,r=[],i=0;do{if(8===t.available())return;const o=t.readBits(8);if(254===o)return;this.parseTwoBytes(o,t.readBits(8),r);for(let t=0;t<3;t++){const o=r[t];switch(i){case 0:if(o<3)i=o+1;else{if(!(o<this.TEXT_BASIC_SET_CHARS.length))throw new S;{const t=this.TEXT_BASIC_SET_CHARS[o];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}}break;case 1:n?(e.append(String.fromCharCode(o+128)),n=!1):e.append(String.fromCharCode(o)),i=0;break;case 2:if(o<this.TEXT_SHIFT2_SET_CHARS.length){const t=this.TEXT_SHIFT2_SET_CHARS[o];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t)}else switch(o){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new S}i=0;break;case 3:if(!(o<this.TEXT_SHIFT3_SET_CHARS.length))throw new S;{const t=this.TEXT_SHIFT3_SET_CHARS[o];n?(e.append(String.fromCharCode(t.charCodeAt(0)+128)),n=!1):e.append(t),i=0}break;default:throw new S}}}while(t.available()>0)}static decodeAnsiX12Segment(t,e){const n=[];do{if(8===t.available())return;const r=t.readBits(8);if(254===r)return;this.parseTwoBytes(r,t.readBits(8),n);for(let t=0;t<3;t++){const r=n[t];switch(r){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(r<14)e.append(String.fromCharCode(r+44));else{if(!(r<40))throw new S;e.append(String.fromCharCode(r+51))}}}}while(t.available()>0)}static parseTwoBytes(t,e,n){let r=(t<<8)+e-1,i=Math.floor(r/1600);n[0]=i,r-=1600*i,i=Math.floor(r/40),n[1]=i,n[2]=r-40*i}static decodeEdifactSegment(t,e){do{if(t.available()<=16)return;for(let n=0;n<4;n++){let n=t.readBits(6);if(31===n){const e=8-t.getBitOffset();return void(8!==e&&t.readBits(e))}0==(32&n)&&(n|=64),e.append(String.fromCharCode(n))}}while(t.available()>0)}static decodeBase256Segment(t,e,n){let r=1+t.getByteOffset();const i=this.unrandomize255State(t.readBits(8),r++);let o;if(o=0===i?t.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(t.readBits(8),r++),o<0)throw new S;const s=new Uint8Array(o);for(let e=0;e<o;e++){if(t.available()<8)throw new S;s[e]=this.unrandomize255State(t.readBits(8),r++)}n.push(s);try{e.append(x.decode(s,E.ISO88591))}catch(t){throw new nt("Platform does not support required encoding: "+t.message)}}static unrandomize255State(t,e){const n=t-(149*e%255+1);return n>=0?n:n+256}}ge.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ge.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],ge.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],ge.TEXT_SHIFT2_SET_CHARS=ge.C40_SHIFT2_SET_CHARS,ge.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)];class ye{constructor(){this.rsDecoder=new rt(tt.DATA_MATRIX_FIELD_256)}decode(t){const e=new fe(t),n=e.getVersion(),r=e.readCodewords(),i=pe.getDataBlocks(r,n);let o=0;for(let t of i)o+=t.getNumDataCodewords();const s=new Uint8Array(o),a=i.length;for(let t=0;t<a;t++){const e=i[t],n=e.getCodewords(),r=e.getNumDataCodewords();this.correctErrors(n,r);for(let e=0;e<r;e++)s[e*a+t]=n[e]}return ge.decode(s)}correctErrors(t,e){const n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch(t){throw new f}for(let r=0;r<e;r++)t[r]=n[r]}}class _e{constructor(t){this.image=t,this.rectangleDetector=new ct(this.image)}detect(){const t=this.rectangleDetector.detect();let e=this.detectSolid1(t);if(e=this.detectSolid2(e),e[3]=this.correctTopRight(e),!e[3])throw new D;e=this.shiftToModuleCenter(e);const n=e[0],r=e[1],i=e[2],o=e[3];let s=this.transitionsBetween(n,o)+1,a=this.transitionsBetween(i,o)+1;1==(1&s)&&(s+=1),1==(1&a)&&(a+=1),4*s<7*a&&4*a<7*s&&(s=a=Math.max(s,a));let l=_e.sampleGrid(this.image,n,r,i,o,s,a);return new lt(l,[n,r,i,o])}static shiftPoint(t,e,n){let r=(e.getX()-t.getX())/(n+1),i=(e.getY()-t.getY())/(n+1);return new at(t.getX()+r,t.getY()+i)}static moveAway(t,e,n){let r=t.getX(),i=t.getY();return r<e?r-=1:r+=1,i<n?i-=1:i+=1,new at(r,i)}detectSolid1(t){let e=t[0],n=t[1],r=t[3],i=t[2],o=this.transitionsBetween(e,n),s=this.transitionsBetween(n,r),a=this.transitionsBetween(r,i),l=this.transitionsBetween(i,e),u=o,c=[i,e,n,r];return u>s&&(u=s,c[0]=e,c[1]=n,c[2]=r,c[3]=i),u>a&&(u=a,c[0]=n,c[1]=r,c[2]=i,c[3]=e),u>l&&(c[0]=r,c[1]=i,c[2]=e,c[3]=n),c}detectSolid2(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=this.transitionsBetween(e,i),s=_e.shiftPoint(n,r,4*(o+1)),a=_e.shiftPoint(r,n,4*(o+1));return this.transitionsBetween(s,e)<this.transitionsBetween(a,i)?(t[0]=e,t[1]=n,t[2]=r,t[3]=i):(t[0]=n,t[1]=r,t[2]=i,t[3]=e),t}correctTopRight(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=this.transitionsBetween(e,i),s=this.transitionsBetween(n,i),a=_e.shiftPoint(e,n,4*(s+1)),l=_e.shiftPoint(r,n,4*(o+1));o=this.transitionsBetween(a,i),s=this.transitionsBetween(l,i);let u=new at(i.getX()+(r.getX()-n.getX())/(o+1),i.getY()+(r.getY()-n.getY())/(o+1)),c=new at(i.getX()+(e.getX()-n.getX())/(s+1),i.getY()+(e.getY()-n.getY())/(s+1));return this.isValid(u)?this.isValid(c)?this.transitionsBetween(a,u)+this.transitionsBetween(l,u)>this.transitionsBetween(a,c)+this.transitionsBetween(l,c)?u:c:u:this.isValid(c)?c:null}shiftToModuleCenter(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=this.transitionsBetween(e,i)+1,s=this.transitionsBetween(r,i)+1,a=_e.shiftPoint(e,n,4*s),l=_e.shiftPoint(r,n,4*o);o=this.transitionsBetween(a,i)+1,s=this.transitionsBetween(l,i)+1,1==(1&o)&&(o+=1),1==(1&s)&&(s+=1);let u,c,d=(e.getX()+n.getX()+r.getX()+i.getX())/4,h=(e.getY()+n.getY()+r.getY()+i.getY())/4;return e=_e.moveAway(e,d,h),n=_e.moveAway(n,d,h),r=_e.moveAway(r,d,h),i=_e.moveAway(i,d,h),a=_e.shiftPoint(e,n,4*s),a=_e.shiftPoint(a,i,4*o),u=_e.shiftPoint(n,e,4*s),u=_e.shiftPoint(u,r,4*o),l=_e.shiftPoint(r,i,4*s),l=_e.shiftPoint(l,n,4*o),c=_e.shiftPoint(i,r,4*s),c=_e.shiftPoint(c,e,4*o),[a,u,l,c]}isValid(t){return t.getX()>=0&&t.getX()<this.image.getWidth()&&t.getY()>0&&t.getY()<this.image.getHeight()}static sampleGrid(t,e,n,r,i,o,s){return pt.getInstance().sampleGrid(t,o,s,.5,.5,o-.5,.5,o-.5,s-.5,.5,s-.5,e.getX(),e.getY(),i.getX(),i.getY(),r.getX(),r.getY(),n.getX(),n.getY())}transitionsBetween(t,e){let n=Math.trunc(t.getX()),r=Math.trunc(t.getY()),i=Math.trunc(e.getX()),o=Math.trunc(e.getY()),s=Math.abs(o-r)>Math.abs(i-n);if(s){let t=n;n=r,r=t,t=i,i=o,o=t}let a=Math.abs(i-n),l=Math.abs(o-r),u=-a/2,c=r<o?1:-1,d=n<i?1:-1,h=0,f=this.image.get(s?r:n,s?n:r);for(let t=n,e=r;t!==i;t+=d){let n=this.image.get(s?e:t,s?t:e);if(n!==f&&(h++,f=n),u+=l,u>0){if(e===o)break;e+=c,u-=a}}return h}}class ve{constructor(){this.decoder=new ye}decode(t,e=null){let n,r;if(null!=e&&e.has(M.PURE_BARCODE)){const e=ve.extractPureBits(t.getBlackMatrix());n=this.decoder.decode(e),r=ve.NO_POINTS}else{const e=new _e(t.getBlackMatrix()).detect();n=this.decoder.decode(e.getBits()),r=e.getPoints()}const i=n.getRawBytes(),o=new H(n.getText(),i,8*i.length,r,W.DATA_MATRIX,m.currentTimeMillis()),s=n.getByteSegments();null!=s&&o.putMetadata(Z.BYTE_SEGMENTS,s);const a=n.getECLevel();return null!=a&&o.putMetadata(Z.ERROR_CORRECTION_LEVEL,a),o}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null==e||null==n)throw new D;const r=this.moduleSize(e,t);let i=e[1];const o=n[1];let s=e[0];const a=(n[0]-s+1)/r,l=(o-i+1)/r;if(a<=0||l<=0)throw new D;const u=r/2;i+=u,s+=u;const c=new T(a,l);for(let e=0;e<l;e++){const n=i+e*r;for(let i=0;i<a;i++)t.get(s+i*r,n)&&c.set(i,e)}return c}static moduleSize(t,e){const n=e.getWidth();let r=t[0];const i=t[1];for(;r<n&&e.get(r,i);)r++;if(r===n)throw new D;const o=r-t[0];if(0===o)throw new D;return o}}ve.NO_POINTS=[];class be extends B{constructor(t=500){super(new ve,t)}}!function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"}(V||(V={}));class we{constructor(t,e,n){this.value=t,this.stringValue=e,this.bits=n,we.FOR_BITS.set(n,this),we.FOR_VALUE.set(t,this)}getValue(){return this.value}getBits(){return this.bits}static fromString(t){switch(t){case"L":return we.L;case"M":return we.M;case"Q":return we.Q;case"H":return we.H;default:throw new c(t+"not available")}}toString(){return this.stringValue}equals(t){if(!(t instanceof we))return!1;const e=t;return this.value===e.value}static forBits(t){if(t<0||t>=we.FOR_BITS.size)throw new d;return we.FOR_BITS.get(t)}}we.FOR_BITS=new Map,we.FOR_VALUE=new Map,we.L=new we(V.L,"L",1),we.M=new we(V.M,"M",0),we.Q=new we(V.Q,"Q",3),we.H=new we(V.H,"H",2);class Me{constructor(t){this.errorCorrectionLevel=we.forBits(t>>3&3),this.dataMask=7&t}static numBitsDiffering(t,e){return v.bitCount(t^e)}static decodeFormatInformation(t,e){const n=Me.doDecodeFormatInformation(t,e);return null!==n?n:Me.doDecodeFormatInformation(t^Me.FORMAT_INFO_MASK_QR,e^Me.FORMAT_INFO_MASK_QR)}static doDecodeFormatInformation(t,e){let n=Number.MAX_SAFE_INTEGER,r=0;for(const i of Me.FORMAT_INFO_DECODE_LOOKUP){const o=i[0];if(o===t||o===e)return new Me(i[1]);let s=Me.numBitsDiffering(t,o);s<n&&(r=i[1],n=s),t!==e&&(s=Me.numBitsDiffering(e,o),s<n&&(r=i[1],n=s))}return n<=3?new Me(r):null}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getDataMask(){return this.dataMask}hashCode(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask}equals(t){if(!(t instanceof Me))return!1;const e=t;return this.errorCorrectionLevel===e.errorCorrectionLevel&&this.dataMask===e.dataMask}}Me.FORMAT_INFO_MASK_QR=21522,Me.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])];class Se{constructor(t,...e){this.ecCodewordsPerBlock=t,this.ecBlocks=e}getECCodewordsPerBlock(){return this.ecCodewordsPerBlock}getNumBlocks(){let t=0;const e=this.ecBlocks;for(const n of e)t+=n.getCount();return t}getTotalECCodewords(){return this.ecCodewordsPerBlock*this.getNumBlocks()}getECBlocks(){return this.ecBlocks}}class Ce{constructor(t,e){this.count=t,this.dataCodewords=e}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class Ae{constructor(t,e,...n){this.versionNumber=t,this.alignmentPatternCenters=e,this.ecBlocks=n;let r=0;const i=n[0].getECCodewordsPerBlock(),o=n[0].getECBlocks();for(const t of o)r+=t.getCount()*(t.getDataCodewords()+i);this.totalCodewords=r}getVersionNumber(){return this.versionNumber}getAlignmentPatternCenters(){return this.alignmentPatternCenters}getTotalCodewords(){return this.totalCodewords}getDimensionForVersion(){return 17+4*this.versionNumber}getECBlocksForLevel(t){return this.ecBlocks[t.getValue()]}static getProvisionalVersionForDimension(t){if(t%4!=1)throw new S;try{return this.getVersionForNumber((t-17)/4)}catch(t){throw new S}}static getVersionForNumber(t){if(t<1||t>40)throw new d;return Ae.VERSIONS[t-1]}static decodeVersionInformation(t){let e=Number.MAX_SAFE_INTEGER,n=0;for(let r=0;r<Ae.VERSION_DECODE_INFO.length;r++){const i=Ae.VERSION_DECODE_INFO[r];if(i===t)return Ae.getVersionForNumber(r+7);const o=Me.numBitsDiffering(t,i);o<e&&(n=r+7,e=o)}return e<=3?Ae.getVersionForNumber(n):null}buildFunctionPattern(){const t=this.getDimensionForVersion(),e=new T(t);e.setRegion(0,0,9,9),e.setRegion(t-8,0,8,9),e.setRegion(0,t-8,9,8);const n=this.alignmentPatternCenters.length;for(let t=0;t<n;t++){const r=this.alignmentPatternCenters[t]-2;for(let i=0;i<n;i++)0===t&&(0===i||i===n-1)||t===n-1&&0===i||e.setRegion(this.alignmentPatternCenters[i]-2,r,5,5)}return e.setRegion(6,9,1,t-17),e.setRegion(9,6,t-17,1),this.versionNumber>6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e}toString(){return""+this.versionNumber}}Ae.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),Ae.VERSIONS=[new Ae(1,new Int32Array(0),new Se(7,new Ce(1,19)),new Se(10,new Ce(1,16)),new Se(13,new Ce(1,13)),new Se(17,new Ce(1,9))),new Ae(2,Int32Array.from([6,18]),new Se(10,new Ce(1,34)),new Se(16,new Ce(1,28)),new Se(22,new Ce(1,22)),new Se(28,new Ce(1,16))),new Ae(3,Int32Array.from([6,22]),new Se(15,new Ce(1,55)),new Se(26,new Ce(1,44)),new Se(18,new Ce(2,17)),new Se(22,new Ce(2,13))),new Ae(4,Int32Array.from([6,26]),new Se(20,new Ce(1,80)),new Se(18,new Ce(2,32)),new Se(26,new Ce(2,24)),new Se(16,new Ce(4,9))),new Ae(5,Int32Array.from([6,30]),new Se(26,new Ce(1,108)),new Se(24,new Ce(2,43)),new Se(18,new Ce(2,15),new Ce(2,16)),new Se(22,new Ce(2,11),new Ce(2,12))),new Ae(6,Int32Array.from([6,34]),new Se(18,new Ce(2,68)),new Se(16,new Ce(4,27)),new Se(24,new Ce(4,19)),new Se(28,new Ce(4,15))),new Ae(7,Int32Array.from([6,22,38]),new Se(20,new Ce(2,78)),new Se(18,new Ce(4,31)),new Se(18,new Ce(2,14),new Ce(4,15)),new Se(26,new Ce(4,13),new Ce(1,14))),new Ae(8,Int32Array.from([6,24,42]),new Se(24,new Ce(2,97)),new Se(22,new Ce(2,38),new Ce(2,39)),new Se(22,new Ce(4,18),new Ce(2,19)),new Se(26,new Ce(4,14),new Ce(2,15))),new Ae(9,Int32Array.from([6,26,46]),new Se(30,new Ce(2,116)),new Se(22,new Ce(3,36),new Ce(2,37)),new Se(20,new Ce(4,16),new Ce(4,17)
2),new Se(24,new Ce(4,12),new Ce(4,13))),new Ae(10,Int32Array.from([6,28,50]),new Se(18,new Ce(2,68),new Ce(2,69)),new Se(26,new Ce(4,43),new Ce(1,44)),new Se(24,new Ce(6,19),new Ce(2,20)),new Se(28,new Ce(6,15),new Ce(2,16))),new Ae(11,Int32Array.from([6,30,54]),new Se(20,new Ce(4,81)),new Se(30,new Ce(1,50),new Ce(4,51)),new Se(28,new Ce(4,22),new Ce(4,23)),new Se(24,new Ce(3,12),new Ce(8,13))),new Ae(12,Int32Array.from([6,32,58]),new Se(24,new Ce(2,92),new Ce(2,93)),new Se(22,new Ce(6,36),new Ce(2,37)),new Se(26,new Ce(4,20),new Ce(6,21)),new Se(28,new Ce(7,14),new Ce(4,15))),new Ae(13,Int32Array.from([6,34,62]),new Se(26,new Ce(4,107)),new Se(22,new Ce(8,37),new Ce(1,38)),new Se(24,new Ce(8,20),new Ce(4,21)),new Se(22,new Ce(12,11),new Ce(4,12))),new Ae(14,Int32Array.from([6,26,46,66]),new Se(30,new Ce(3,115),new Ce(1,116)),new Se(24,new Ce(4,40),new Ce(5,41)),new Se(20,new Ce(11,16),new Ce(5,17)),new Se(24,new Ce(11,12),new Ce(5,13))),new Ae(15,Int32Array.from([6,26,48,70]),new Se(22,new Ce(5,87),new Ce(1,88)),new Se(24,new Ce(5,41),new Ce(5,42)),new Se(30,new Ce(5,24),new Ce(7,25)),new Se(24,new Ce(11,12),new Ce(7,13))),new Ae(16,Int32Array.from([6,26,50,74]),new Se(24,new Ce(5,98),new Ce(1,99)),new Se(28,new Ce(7,45),new Ce(3,46)),new Se(24,new Ce(15,19),new Ce(2,20)),new Se(30,new Ce(3,15),new Ce(13,16))),new Ae(17,Int32Array.from([6,30,54,78]),new Se(28,new Ce(1,107),new Ce(5,108)),new Se(28,new Ce(10,46),new Ce(1,47)),new Se(28,new Ce(1,22),new Ce(15,23)),new Se(28,new Ce(2,14),new Ce(17,15))),new Ae(18,Int32Array.from([6,30,56,82]),new Se(30,new Ce(5,120),new Ce(1,121)),new Se(26,new Ce(9,43),new Ce(4,44)),new Se(28,new Ce(17,22),new Ce(1,23)),new Se(28,new Ce(2,14),new Ce(19,15))),new Ae(19,Int32Array.from([6,30,58,86]),new Se(28,new Ce(3,113),new Ce(4,114)),new Se(26,new Ce(3,44),new Ce(11,45)),new Se(26,new Ce(17,21),new Ce(4,22)),new Se(26,new Ce(9,13),new Ce(16,14))),new Ae(20,Int32Array.from([6,34,62,90]),new Se(28,new Ce(3,107),new Ce(5,108)),new Se(26,new Ce(3,41),new Ce(13,42)),new Se(30,new Ce(15,24),new Ce(5,25)),new Se(28,new Ce(15,15),new Ce(10,16))),new Ae(21,Int32Array.from([6,28,50,72,94]),new Se(28,new Ce(4,116),new Ce(4,117)),new Se(26,new Ce(17,42)),new Se(28,new Ce(17,22),new Ce(6,23)),new Se(30,new Ce(19,16),new Ce(6,17))),new Ae(22,Int32Array.from([6,26,50,74,98]),new Se(28,new Ce(2,111),new Ce(7,112)),new Se(28,new Ce(17,46)),new Se(30,new Ce(7,24),new Ce(16,25)),new Se(24,new Ce(34,13))),new Ae(23,Int32Array.from([6,30,54,78,102]),new Se(30,new Ce(4,121),new Ce(5,122)),new Se(28,new Ce(4,47),new Ce(14,48)),new Se(30,new Ce(11,24),new Ce(14,25)),new Se(30,new Ce(16,
vendor: 28,006 bytes, line 2
215),new Ce(14,16))),new Ae(24,Int32Array.from([6,28,54,80,106]),new Se(30,new Ce(6,117),new Ce(4,118)),new Se(28,new Ce(6,45),new Ce(14,46)),new Se(30,new Ce(11,24),new Ce(16,25)),new Se(30,new Ce(30,16),new Ce(2,17))),new Ae(25,Int32Array.from([6,32,58,84,110]),new Se(26,new Ce(8,106),new Ce(4,107)),new Se(28,new Ce(8,47),new Ce(13,48)),new Se(30,new Ce(7,24),new Ce(22,25)),new Se(30,new Ce(22,15),new Ce(13,16))),new Ae(26,Int32Array.from([6,30,58,86,114]),new Se(28,new Ce(10,114),new Ce(2,115)),new Se(28,new Ce(19,46),new Ce(4,47)),new Se(28,new Ce(28,22),new Ce(6,23)),new Se(30,new Ce(33,16),new Ce(4,17))),new Ae(27,Int32Array.from([6,34,62,90,118]),new Se(30,new Ce(8,122),new Ce(4,123)),new Se(28,new Ce(22,45),new Ce(3,46)),new Se(30,new Ce(8,23),new Ce(26,24)),new Se(30,new Ce(12,15),new Ce(28,16))),new Ae(28,Int32Array.from([6,26,50,74,98,122]),new Se(30,new Ce(3,117),new Ce(10,118)),new Se(28,new Ce(3,45),new Ce(23,46)),new Se(30,new Ce(4,24),new Ce(31,25)),new Se(30,new Ce(11,15),new Ce(31,16))),new Ae(29,Int32Array.from([6,30,54,78,102,126]),new Se(30,new Ce(7,116),new Ce(7,117)),new Se(28,new Ce(21,45),new Ce(7,46)),new Se(30,new Ce(1,23),new Ce(37,24)),new Se(30,new Ce(19,15),new Ce(26,16))),new Ae(30,Int32Array.from([6,26,52,78,104,130]),new Se(30,new Ce(5,115),new Ce(10,116)),new Se(28,new Ce(19,47),new Ce(10,48)),new Se(30,new Ce(15,24),new Ce(25,25)),new Se(30,new Ce(23,15),new Ce(25,16))),new Ae(31,Int32Array.from([6,30,56,82,108,134]),new Se(30,new Ce(13,115),new Ce(3,116)),new Se(28,new Ce(2,46),new Ce(29,47)),new Se(30,new Ce(42,24),new Ce(1,25)),new Se(30,new Ce(23,15),new Ce(28,16))),new Ae(32,Int32Array.from([6,34,60,86,112,138]),new Se(30,new Ce(17,115)),new Se(28,new Ce(10,46),new Ce(23,47)),new Se(30,new Ce(10,24),new Ce(35,25)),new Se(30,new Ce(19,15),new Ce(35,16))),new Ae(33,Int32Array.from([6,30,58,86,114,142]),new Se(30,new Ce(17,115),new Ce(1,116)),new Se(28,new Ce(14,46),new Ce(21,47)),new Se(30,new Ce(29,24),new Ce(19,25)),new Se(30,new Ce(11,15),new Ce(46,16))),new Ae(34,Int32Array.from([6,34,62,90,118,146]),new Se(30,new Ce(13,115),new Ce(6,116)),new Se(28,new Ce(14,46),new Ce(23,47)),new Se(30,new Ce(44,24),new Ce(7,25)),new Se(30,new Ce(59,16),new Ce(1,17))),new Ae(35,Int32Array.from([6,30,54,78,102,126,150]),new Se(30,new Ce(12,121),new Ce(7,122)),new Se(28,new Ce(12,47),new Ce(26,48)),new Se(30,new Ce(39,24),new Ce(14,25)),new Se(30,new Ce(22,15),new Ce(41,16))),new Ae(36,Int32Array.from([6,24,50,76,102,128,154]),new Se(30,new Ce(6,121),new Ce(14,122)),new Se(28,new Ce(6,47),new Ce(34,48)),new Se(30,new Ce(46,24),new Ce(10,25)),new Se(30,new Ce(2,15),new Ce(64,16))),new Ae(37,Int32Array.from([6,28,54,80,106,132,158]),new Se(30,new Ce(17,122),new Ce(4,123)),new Se(28,new Ce(29,46),new Ce(14,47)),new Se(30,new Ce(49,24),new Ce(10,25)),new Se(30,new Ce(24,15),new Ce(46,16))),new Ae(38,Int32Array.from([6,32,58,84,110,136,162]),new Se(30,new Ce(4,122),new Ce(18,123)),new Se(28,new Ce(13,46),new Ce(32,47)),new Se(30,new Ce(48,24),new Ce(14,25)),new Se(30,new Ce(42,15),new Ce(32,16))),new Ae(39,Int32Array.from([6,26,54,82,110,138,166]),new Se(30,new Ce(20,117),new Ce(4,118)),new Se(28,new Ce(40,47),new Ce(7,48)),new Se(30,new Ce(43,24),new Ce(22,25)),new Se(30,new Ce(10,15),new Ce(67,16))),new Ae(40,Int32Array.from([6,30,58,86,114,142,170]),new Se(30,new Ce(19,118),new Ce(6,119)),new Se(28,new Ce(18,47),new Ce(31,48)),new Se(30,new Ce(34,24),new Ce(34,25)),new Se(30,new Ce(20,15),new Ce(61,16)))],function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"}(q||(q={}));class xe{constructor(t,e){this.value=t,this.isMasked=e}unmaskBitMatrix(t,e){for(let n=0;n<e;n++)for(let r=0;r<e;r++)this.isMasked(n,r)&&t.flip(r,n)}}xe.values=new Map([[q.DATA_MASK_000,new xe(q.DATA_MASK_000,((t,e)=>0==(t+e&1)))],[q.DATA_MASK_001,new xe(q.DATA_MASK_001,((t,e)=>0==(1&t)))],[q.DATA_MASK_010,new xe(q.DATA_MASK_010,((t,e)=>e%3==0))],[q.DATA_MASK_011,new xe(q.DATA_MASK_011,((t,e)=>(t+e)%3==0))],[q.DATA_MASK_100,new xe(q.DATA_MASK_100,((t,e)=>0==(Math.floor(t/2)+Math.floor(e/3)&1)))],[q.DATA_MASK_101,new xe(q.DATA_MASK_101,((t,e)=>t*e%6==0))],[q.DATA_MASK_110,new xe(q.DATA_MASK_110,((t,e)=>t*e%6<3))],[q.DATA_MASK_111,new xe(q.DATA_MASK_111,((t,e)=>0==(t+e+t*e%3&1)))]]);class Ee{constructor(t){const e=t.getHeight();if(e<21||1!=(3&e))throw new S;this.bitMatrix=t}readFormatInformation(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;let t=0;for(let e=0;e<6;e++)t=this.copyBit(e,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(let e=5;e>=0;e--)t=this.copyBit(8,e,t);const e=this.bitMatrix.getHeight();let n=0;const r=e-7;for(let t=e-1;t>=r;t--)n=this.copyBit(8,t,n);for(let t=e-8;t<e;t++)n=this.copyBit(t,8,n);if(this.parsedFormatInfo=Me.decodeFormatInformation(t,n),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new S}readVersion(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;const t=this.bitMatrix.getHeight(),e=Math.floor((t-17)/4);if(e<=6)return Ae.getVersionForNumber(e);let n=0;const r=t-11;for(let e=5;e>=0;e--)for(let i=t-9;i>=r;i--)n=this.copyBit(i,e,n);let i=Ae.decodeVersionInformation(n);if(null!==i&&i.getDimensionForVersion()===t)return this.parsedVersion=i,i;n=0;for(let e=5;e>=0;e--)for(let i=t-9;i>=r;i--)n=this.copyBit(e,i,n);if(i=Ae.decodeVersionInformation(n),null!==i&&i.getDimensionForVersion()===t)return this.parsedVersion=i,i;throw new S}copyBit(t,e,n){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?n<<1|1:n<<1}readCodewords(){const t=this.readFormatInformation(),e=this.readVersion(),n=xe.values.get(t.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);const i=e.buildFunctionPattern();let o=!0;const s=new Uint8Array(e.getTotalCodewords());let a=0,l=0,u=0;for(let t=r-1;t>0;t-=2){6===t&&t--;for(let e=0;e<r;e++){const n=o?r-1-e:e;for(let e=0;e<2;e++)i.get(t-e,n)||(u++,l<<=1,this.bitMatrix.get(t-e,n)&&(l|=1),8===u&&(s[a++]=l,u=0,l=0))}o=!o}if(a!==e.getTotalCodewords())throw new S;return s}remask(){if(null===this.parsedFormatInfo)return;const t=xe.values[this.parsedFormatInfo.getDataMask()],e=this.bitMatrix.getHeight();t.unmaskBitMatrix(this.bitMatrix,e)}setMirror(t){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=t}mirror(){const t=this.bitMatrix;for(let e=0,n=t.getWidth();e<n;e++)for(let n=e+1,r=t.getHeight();n<r;n++)t.get(e,n)!==t.get(n,e)&&(t.flip(n,e),t.flip(e,n))}}class Le{constructor(t,e){this.numDataCodewords=t,this.codewords=e}static getDataBlocks(t,e,n){if(t.length!==e.getTotalCodewords())throw new d;const r=e.getECBlocksForLevel(n);let i=0;const o=r.getECBlocks();for(const t of o)i+=t.getCount();const s=new Array(i);let a=0;for(const t of o)for(let e=0;e<t.getCount();e++){const e=t.getDataCodewords(),n=r.getECCodewordsPerBlock()+e;s[a++]=new Le(e,new Uint8Array(n))}const l=s[0].codewords.length;let u=s.length-1;for(;u>=0&&s[u].codewords.length!==l;)u--;u++;const c=l-r.getECCodewordsPerBlock();let h=0;for(let e=0;e<c;e++)for(let n=0;n<a;n++)s[n].codewords[e]=t[h++];for(let e=u;e<a;e++)s[e].codewords[c]=t[h++];const f=s[0].codewords.length;for(let e=c;e<f;e++)for(let n=0;n<a;n++){const r=n<u?e:e+1;s[n].codewords[r]=t[h++]}return s}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}!function(t){t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI"}(G||(G={}));class Te{constructor(t,e,n,r){this.value=t,this.stringValue=e,this.characterCountBitsForVersions=n,this.bits=r,Te.FOR_BITS.set(r,this),Te.FOR_VALUE.set(t,this)}static forBits(t){const e=Te.FOR_BITS.get(t);if(void 0===e)throw new d;return e}getCharacterCountBits(t){const e=t.getVersionNumber();let n;return n=e<=9?0:e<=26?1:2,this.characterCountBitsForVersions[n]}getValue(){return this.value}getBits(){return this.bits}equals(t){if(!(t instanceof Te))return!1;const e=t;return this.value===e.value}toString(){return this.stringValue}}Te.FOR_BITS=new Map,Te.FOR_VALUE=new Map,Te.TERMINATOR=new Te(G.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),Te.NUMERIC=new Te(G.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),Te.ALPHANUMERIC=new Te(G.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),Te.STRUCTURED_APPEND=new Te(G.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),Te.BYTE=new Te(G.BYTE,"BYTE",Int32Array.from([8,16,16]),4),Te.ECI=new Te(G.ECI,"ECI",Int32Array.from([0,0,0]),7),Te.KANJI=new Te(G.KANJI,"KANJI",Int32Array.from([8,10,12]),8),Te.FNC1_FIRST_POSITION=new Te(G.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),Te.FNC1_SECOND_POSITION=new Te(G.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),Te.HANZI=new Te(G.HANZI,"HANZI",Int32Array.from([8,10,12]),13);class De{static decode(t,e,n,r){const i=new me(t);let o=new L;const s=new Array;let a=-1,l=-1;try{let t,n=null,u=!1;do{if(i.available()<4)t=Te.TERMINATOR;else{const e=i.readBits(4);t=Te.forBits(e)}switch(t){case Te.TERMINATOR:break;case Te.FNC1_FIRST_POSITION:case Te.FNC1_SECOND_POSITION:u=!0;break;case Te.STRUCTURED_APPEND:if(i.available()<16)throw new S;a=i.readBits(8),l=i.readBits(8);break;case Te.ECI:const c=De.parseECIValue(i);if(n=C.getCharacterSetECIByValue(c),null===n)throw new S;break;case Te.HANZI:const d=i.readBits(4),h=i.readBits(t.getCharacterCountBits(e));d===De.GB2312_SUBSET&&De.decodeHanziSegment(i,o,h);break;default:const f=i.readBits(t.getCharacterCountBits(e));switch(t){case Te.NUMERIC:De.decodeNumericSegment(i,o,f);break;case Te.ALPHANUMERIC:De.decodeAlphanumericSegment(i,o,f,u);break;case Te.BYTE:De.decodeByteSegment(i,o,f,n,s,r);break;case Te.KANJI:De.decodeKanjiSegment(i,o,f);break;default:throw new S}}}while(t!==Te.TERMINATOR)}catch(t){throw new S}return new K(t,o.toString(),0===s.length?null:s,null===n?null:n.toString(),a,l)}static decodeHanziSegment(t,e,n){if(13*n>t.available())throw new S;const r=new Uint8Array(2*n);let i=0;for(;n>0;){const e=t.readBits(13);let o=e/96<<8&4294967295|e%96;o+=o<959?41377:42657,r[i]=o>>8&255,r[i+1]=255&o,i+=2,n--}try{e.append(x.decode(r,E.GB2312))}catch(t){throw new S(t)}}static decodeKanjiSegment(t,e,n){if(13*n>t.available())throw new S;const r=new Uint8Array(2*n);let i=0;for(;n>0;){const e=t.readBits(13);let o=e/192<<8&4294967295|e%192;o+=o<7936?33088:49472,r[i]=o>>8,r[i+1]=o,i+=2,n--}try{e.append(x.decode(r,E.SHIFT_JIS))}catch(t){throw new S(t)}}static decodeByteSegment(t,e,n,r,i,o){if(8*n>t.available())throw new S;const s=new Uint8Array(n);for(let e=0;e<n;e++)s[e]=t.readBits(8);let a;a=null===r?E.guessEncoding(s,o):r.getName();try{e.append(x.decode(s,a))}catch(t){throw new S(t)}i.push(s)}static toAlphaNumericChar(t){if(t>=De.ALPHANUMERIC_CHARS.length)throw new S;return De.ALPHANUMERIC_CHARS[t]}static decodeAlphanumericSegment(t,e,n,r){const i=e.length();for(;n>1;){if(t.available()<11)throw new S;const r=t.readBits(11);e.append(De.toAlphaNumericChar(Math.floor(r/45))),e.append(De.toAlphaNumericChar(r%45)),n-=2}if(1===n){if(t.available()<6)throw new S;e.append(De.toAlphaNumericChar(t.readBits(6)))}if(r)for(let t=i;t<e.length();t++)"%"===e.charAt(t)&&(t<e.length()-1&&"%"===e.charAt(t+1)?e.deleteCharAt(t+1):e.setCharAt(t,String.fromCharCode(29)))}static decodeNumericSegment(t,e,n){for(;n>=3;){if(t.available()<10)throw new S;const r=t.readBits(10);if(r>=1e3)throw new S;e.append(De.toAlphaNumericChar(Math.floor(r/100))),e.append(De.toAlphaNumericChar(Math.floor(r/10)%10)),e.append(De.toAlphaNumericChar(r%10)),n-=3}if(2===n){if(t.available()<7)throw new S;const n=t.readBits(7);if(n>=100)throw new S;e.append(De.toAlphaNumericChar(Math.floor(n/10))),e.append(De.toAlphaNumericChar(n%10))}else if(1===n){if(t.available()<4)throw new S;const n=t.readBits(4);if(n>=10)throw new S;e.append(De.toAlphaNumericChar(n))}}static parseECIValue(t){const e=t.readBits(8);if(0==(128&e))return 127&e;if(128==(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192==(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new S}}De.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",De.GB2312_SUBSET=1;class ke{constructor(t){this.mirrored=t}isMirrored(){return this.mirrored}applyMirroredCorrection(t){if(!this.mirrored||null===t||t.length<3)return;const e=t[0];t[0]=t[2],t[2]=e}}class Oe{constructor(){this.rsDecoder=new rt(tt.QR_CODE_FIELD_256)}decodeBooleanArray(t,e){return this.decodeBitMatrix(T.parseFromBooleanArray(t),e)}decodeBitMatrix(t,e){const n=new Ee(t);let r=null;try{return this.decodeBitMatrixParser(n,e)}catch(t){r=t}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();const t=this.decodeBitMatrixParser(n,e);return t.setOther(new ke(!0)),t}catch(t){if(null!==r)throw r;throw t}}decodeBitMatrixParser(t,e){const n=t.readVersion(),r=t.readFormatInformation().getErrorCorrectionLevel(),i=t.readCodewords(),o=Le.getDataBlocks(i,n,r);let s=0;for(const t of o)s+=t.getNumDataCodewords();const a=new Uint8Array(s);let l=0;for(const t of o){const e=t.getCodewords(),n=t.getNumDataCodewords();this.correctErrors(e,n);for(let t=0;t<n;t++)a[l++]=e[t]}return De.decode(a,n,r,e)}correctErrors(t,e){const n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch(t){throw new f}for(let r=0;r<e;r++)t[r]=n[r]}}class Ie extends at{constructor(t,e,n){super(t,e),this.estimatedModuleSize=n}aboutEquals(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){const e=Math.abs(t-this.estimatedModuleSize);return e<=1||e<=this.estimatedModuleSize}return!1}combineEstimate(t,e,n){const r=(this.getX()+e)/2,i=(this.getY()+t)/2,o=(this.estimatedModuleSize+n)/2;return new Ie(r,i,o)}}class Ne{constructor(t,e,n,r,i,o,s){this.image=t,this.startX=e,this.startY=n,this.width=r,this.height=i,this.moduleSize=o,this.resultPointCallback=s,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}find(){const t=this.startX,e=this.height,n=t+this.width,r=this.startY+e/2,i=new Int32Array(3),o=this.image;for(let s=0;s<e;s++){const e=r+(0==(1&s)?Math.floor((s+1)/2):-Math.floor((s+1)/2));i[0]=0,i[1]=0,i[2]=0;let a=t;for(;a<n&&!o.get(a,e);)a++;let l=0;for(;a<n;){if(o.get(a,e))if(1===l)i[1]++;else if(2===l){if(this.foundPatternCross(i)){const t=this.handlePossibleCenter(i,e,a);if(null!==t)return t}i[0]=i[2],i[1]=1,i[2]=0,l=1}else i[++l]++;else 1===l&&l++,i[l]++;a++}if(this.foundPatternCross(i)){const t=this.handlePossibleCenter(i,e,n);if(null!==t)return t}}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new D}static centerFromEnd(t,e){return e-t[2]-t[1]/2}foundPatternCross(t){const e=this.moduleSize,n=e/2;for(let r=0;r<3;r++)if(Math.abs(e-t[r])>=n)return!1;return!0}crossCheckVertical(t,e,n,r){const i=this.image,o=i.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;let a=t;for(;a>=0&&i.get(e,a)&&s[1]<=n;)s[1]++,a--;if(a<0||s[1]>n)return NaN;for(;a>=0&&!i.get(e,a)&&s[0]<=n;)s[0]++,a--;if(s[0]>n)return NaN;for(a=t+1;a<o&&i.get(e,a)&&s[1]<=n;)s[1]++,a++;if(a===o||s[1]>n)return NaN;for(;a<o&&!i.get(e,a)&&s[2]<=n;)s[2]++,a++;if(s[2]>n)return NaN;const l=s[0]+s[1]+s[2];return 5*Math.abs(l-r)>=2*r?NaN:this.foundPatternCross(s)?Ne.centerFromEnd(s,a):NaN}handlePossibleCenter(t,e,n){const r=t[0]+t[1]+t[2],i=Ne.centerFromEnd(t,n),o=this.crossCheckVertical(e,i,2*t[1],r);if(!isNaN(o)){const e=(t[0]+t[1]+t[2])/3;for(const t of this.possibleCenters)if(t.aboutEquals(e,o,i))return t.combineEstimate(o,i,e);const n=new Ie(i,o,e);this.possibleCenters.push(n),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(n)}return null}}class Pe extends at{constructor(t,e,n,r){super(t,e),this.estimatedModuleSize=n,this.count=r,void 0===r&&(this.count=1)}getEstimatedModuleSize(){return this.estimatedModuleSize}getCount(){return this.count}aboutEquals(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){const e=Math.abs(t-this.estimatedModuleSize);return e<=1||e<=this.estimatedModuleSize}return!1}combineEstimate(t,e,n){const r=this.count+1,i=(this.count*this.getX()+e)/r,o=(this.count*this.getY()+t)/r,s=(this.count*this.estimatedModuleSize+n)/r;return new Pe(i,o,s,r)}}class Re{constructor(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}getBottomLeft(){return this.bottomLeft}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}}class Ye{constructor(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}getImage(){return this.image}getPossibleCenters(){return this.possibleCenters}find(t){const e=null!=t&&void 0!==t.get(M.TRY_HARDER),n=null!=t&&void 0!==t.get(M.PURE_BARCODE),r=this.image,i=r.getHeight(),o=r.getWidth();let s=Math.floor(3*i/(4*Ye.MAX_MODULES));(s<Ye.MIN_SKIP||e)&&(s=Ye.MIN_SKIP);let a=!1;const l=new Int32Array(5);for(let t=s-1;t<i&&!a;t+=s){l[0]=0,l[1]=0,l[2]=0,l[3]=0,l[4]=0;let e=0;for(let i=0;i<o;i++)if(r.get(i,t))1==(1&e)&&e++,l[e]++;else if(0==(1&e))if(4===e)if(Ye.foundPatternCross(l)){if(!0!==this.handlePossibleCenter(l,t,i,n)){l[0]=l[2],l[1]=l[3],l[2]=l[4],l[3]=1,l[4]=0,e=3;continue}if(s=2,!0===this.hasSkipped)a=this.haveMultiplyConfirmedCenters();else{const e=this.findRowSkip();e>l[2]&&(t+=e-l[2]-s,i=o-1)}e=0,l[0]=0,l[1]=0,l[2]=0,l[3]=0,l[4]=0}else l[0]=l[2],l[1]=l[3],l[2]=l[4],l[3]=1,l[4]=0,e=3;else l[++e]++;else l[e]++;Ye.foundPatternCross(l)&&!0===this.handlePossibleCenter(l,t,o,n)&&(s=l[0],this.hasSkipped&&(a=this.haveMultiplyConfirmedCenters()))}const u=this.selectBestPatterns();return at.orderBestPatterns(u),new Re(u)}static centerFromEnd(t,e){return e-t[4]-t[3]-t[2]/2}static foundPatternCross(t){let e=0;for(let n=0;n<5;n++){const r=t[n];if(0===r)return!1;e+=r}if(e<7)return!1;const n=e/7,r=n/2;return Math.abs(n-t[0])<r&&Math.abs(n-t[1])<r&&Math.abs(3*n-t[2])<3*r&&Math.abs(n-t[3])<r&&Math.abs(n-t[4])<r}getCrossCheckStateCount(){const t=this.crossCheckStateCount;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t}crossCheckDiagonal(t,e,n,r){const i=this.getCrossCheckStateCount();let o=0;const s=this.image;for(;t>=o&&e>=o&&s.get(e-o,t-o);)i[2]++,o++;if(t<o||e<o)return!1;for(;t>=o&&e>=o&&!s.get(e-o,t-o)&&i[1]<=n;)i[1]++,o++;if(t<o||e<o||i[1]>n)return!1;for(;t>=o&&e>=o&&s.get(e-o,t-o)&&i[0]<=n;)i[0]++,o++;if(i[0]>n)return!1;const a=s.getHeight(),l=s.getWidth();for(o=1;t+o<a&&e+o<l&&s.get(e+o,t+o);)i[2]++,o++;if(t+o>=a||e+o>=l)return!1;for(;t+o<a&&e+o<l&&!s.get(e+o,t+o)&&i[3]<n;)i[3]++,o++;if(t+o>=a||e+o>=l||i[3]>=n)return!1;for(;t+o<a&&e+o<l&&s.get(e+o,t+o)&&i[4]<n;)i[4]++,o++;if(i[4]>=n)return!1;const u=i[0]+i[1]+i[2]+i[3]+i[4];return Math.abs(u-r)<2*r&&Ye.foundPatternCross(i)}crossCheckVertical(t,e,n,r){const i=this.image,o=i.getHeight(),s=this.getCrossCheckStateCount();let a=t;for(;a>=0&&i.get(e,a);)s[2]++,a--;if(a<0)return NaN;for(;a>=0&&!i.get(e,a)&&s[1]<=n;)s[1]++,a--;if(a<0||s[1]>n)return NaN;for(;a>=0&&i.get(e,a)&&s[0]<=n;)s[0]++,a--;if(s[0]>n)return NaN;for(a=t+1;a<o&&i.get(e,a);)s[2]++,a++;if(a===o)return NaN;for(;a<o&&!i.get(e,a)&&s[3]<n;)s[3]++,a++;if(a===o||s[3]>=n)return NaN;for(;a<o&&i.get(e,a)&&s[4]<n;)s[4]++,a++;if(s[4]>=n)return NaN;const l=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(l-r)>=2*r?NaN:Ye.foundPatternCross(s)?Ye.centerFromEnd(s,a):NaN}crossCheckHorizontal(t,e,n,r){const i=this.image,o=i.getWidth(),s=this.getCrossCheckStateCount();let a=t;for(;a>=0&&i.get(a,e);)s[2]++,a--;if(a<0)return NaN;for(;a>=0&&!i.get(a,e)&&s[1]<=n;)s[1]++,a--;if(a<0||s[1]>n)return NaN;for(;a>=0&&i.get(a,e)&&s[0]<=n;)s[0]++,a--;if(s[0]>n)return NaN;for(a=t+1;a<o&&i.get(a,e);)s[2]++,a++;if(a===o)return NaN;for(;a<o&&!i.get(a,e)&&s[3]<n;)s[3]++,a++;if(a===o||s[3]>=n)return NaN;for(;a<o&&i.get(a,e)&&s[4]<n;)s[4]++,a++;if(s[4]>=n)return NaN;const l=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(l-r)>=r?NaN:Ye.foundPatternCross(s)?Ye.centerFromEnd(s,a):NaN}handlePossibleCenter(t,e,n,r){const i=t[0]+t[1]+t[2]+t[3]+t[4];let o=Ye.centerFromEnd(t,n),s=this.crossCheckVertical(e,Math.floor(o),t[2],i);if(!isNaN(s)&&(o=this.crossCheckHorizontal(Math.floor(o),Math.floor(s),t[2],i),!isNaN(o)&&(!r||this.crossCheckDiagonal(Math.floor(s),Math.floor(o),t[2],i)))){const t=i/7;let e=!1;const n=this.possibleCenters;for(let r=0,i=n.length;r<i;r++){const i=n[r];if(i.aboutEquals(t,s,o)){n[r]=i.combineEstimate(s,o,t),e=!0;break}}if(!e){const e=new Pe(o,s,t);n.push(e),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(e)}return!0}return!1}findRowSkip(){if(this.possibleCenters.length<=1)return 0;let t=null;for(const e of this.possibleCenters)if(e.getCount()>=Ye.CENTER_QUORUM){if(null!=t)return this.hasSkipped=!0,Math.floor((Math.abs(t.getX()-e.getX())-Math.abs(t.getY()-e.getY()))/2);t=e}return 0}haveMultiplyConfirmedCenters(){let t=0,e=0;const n=this.possibleCenters.length;for(const n of this.possibleCenters)n.getCount()>=Ye.CENTER_QUORUM&&(t++,e+=n.getEstimatedModuleSize());if(t<3)return!1;const r=e/n;let i=0;for(const t of this.possibleCenters)i+=Math.abs(t.getEstimatedModuleSize()-r);return i<=.05*e}selectBestPatterns(){const t=this.possibleCenters.length;if(t<3)throw new D;const e=this.possibleCenters;let n;if(t>3){let r=0,i=0;for(const t of this.possibleCenters){const e=t.getEstimatedModuleSize();r+=e,i+=e*e}n=r/t;let o=Math.sqrt(i/t-n*n);e.sort(((t,e)=>{const r=Math.abs(e.getEstimatedModuleSize()-n),i=Math.abs(t.getEstimatedModuleSize()-n);return r<i?-1:r>i?1:0}));const s=Math.max(.2*n,o);for(let t=0;t<e.length&&e.length>3;t++){const r=e[t];Math.abs(r.getEstimatedModuleSize()-n)>s&&(e.splice(t,1),t--)}}if(e.length>3){let t=0;for(const n of e)t+=n.getEstimatedModuleSize();n=t/e.length,e.sort(((t,e)=>{if(e.getCount()===t.getCount()){const r=Math.abs(e.getEstimatedModuleSize()-n),i=Math.abs(t.getEstimatedModuleSize()-n);return r<i?1:r>i?-1:0}return e.getCount()-t.getCount()})),e.splice(3)}return[e[0],e[1],e[2]]}}Ye.CENTER_QUORUM=2,Ye.MIN_SKIP=3,Ye.MAX_MODULES=57;class je{constructor(t){this.image=t}getImage(){return this.image}getResultPointCallback(){return this.resultPointCallback}detect(t){this.resultPointCallback=null==t?null:t.get(M.NEED_RESULT_POINT_CALLBACK);const e=new Ye(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)}processFinderPatternInfo(t){const e=t.getTopLeft(),n=t.getTopRight(),r=t.getBottomLeft(),i=this.calculateModuleSize(e,n,r);if(i<1)throw new D("No pattern found in proccess finder.");const o=je.computeDimension(e,n,r,i),s=Ae.getProvisionalVersionForDimension(o),a=s.getDimensionForVersion()-7;let l=null;if(s.getAlignmentPatternCenters().length>0){const t=n.getX()-e.getX()+r.getX(),o=n.getY()-e.getY()+r.getY(),s=1-3/a,u=Math.floor(e.getX()+s*(t-e.getX())),c=Math.floor(e.getY()+s*(o-e.getY()));for(let t=4;t<=16;t<<=1)try{l=this.findAlignmentInRegion(i,u,c,t);break}catch(t){if(!(t instanceof D))throw t}}const u=je.createTransform(e,n,r,l,o),c=je.sampleGrid(this.image,u,o);let d;return d=null===l?[r,e,n]:[r,e,n,l],new lt(c,d)}static createTransform(t,e,n,r,i){const o=i-3.5;let s,a,l,u;return null!==r?(s=r.getX(),a=r.getY(),l=o-3,u=l):(s=e.getX()-t.getX()+n.getX(),a=e.getY()-t.getY()+n.getY(),l=o,u=o),ht.quadrilateralToQuadrilateral(3.5,3.5,o,3.5,l,u,3.5,o,t.getX(),t.getY(),e.getX(),e.getY(),s,a,n.getX(),n.getY())}static sampleGrid(t,e,n){return pt.getInstance().sampleGridWithTransform(t,n,n,e)}static computeDimension(t,e,n,r){const i=ot.round(at.distance(t,e)/r),o=ot.round(at.distance(t,n)/r);let s=Math.floor((i+o)/2)+7;switch(3&s){case 0:s++;break;case 2:s--;break;case 3:throw new D("Dimensions could be not found.")}return s}calculateModuleSize(t,e,n){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,n))/2}calculateModuleSizeOneWay(t,e){const n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14}sizeOfBlackWhiteBlackRunBothWays(t,e,n,r){let i=this.sizeOfBlackWhiteBlackRun(t,e,n,r),o=1,s=t-(n-t);s<0?(o=t/(t-s),s=0):s>=this.image.getWidth()&&(o=(this.image.getWidth()-1-t)/(s-t),s=this.image.getWidth()-1);let a=Math.floor(e-(r-e)*o);return o=1,a<0?(o=e/(e-a),a=0):a>=this.image.getHeight()&&(o=(this.image.getHeight()-1-e)/(a-e),a=this.image.getHeight()-1),s=Math.floor(t+(s-t)*o),i+=this.sizeOfBlackWhiteBlackRun(t,e,s,a),i-1}sizeOfBlackWhiteBlackRun(t,e,n,r){const i=Math.abs(r-e)>Math.abs(n-t);if(i){let i=t;t=e,e=i,i=n,n=r,r=i}const o=Math.abs(n-t),s=Math.abs(r-e);let a=-o/2;const l=t<n?1:-1,u=e<r?1:-1;let c=0;const d=n+l;for(let n=t,h=e;n!==d;n+=l){const l=i?h:n,d=i?n:h;if(1===c===this.image.get(l,d)){if(2===c)return ot.distance(n,h,t,e);c++}if(a+=s,a>0){if(h===r)break;h+=u,a-=o}}return 2===c?ot.distance(n+l,r,t,e):NaN}findAlignmentInRegion(t,e,n,r){const i=Math.floor(r*t),o=Math.max(0,e-i),s=Math.min(this.image.getWidth()-1,e+i);if(s-o<3*t)throw new D("Alignment top exceeds estimated module size.");const a=Math.max(0,n-i),l=Math.min(this.image.getHeight()-1,n+i);if(l-a<3*t)throw new D("Alignment bottom exceeds estimated module size.");return new Ne(this.image,o,a,s-o,l-a,t,this.resultPointCallback).find()}}class Be{constructor(){this.decoder=new Oe}getDecoder(){return this.decoder}decode(t,e){let n,r;if(null!=e&&void 0!==e.get(M.PURE_BARCODE)){const i=Be.extractPureBits(t.getBlackMatrix());n=this.decoder.decodeBitMatrix(i,e),r=Be.NO_POINTS}else{const i=new je(t.getBlackMatrix()).detect(e);n=this.decoder.decodeBitMatrix(i.getBits(),e),r=i.getPoints()}n.getOther()instanceof ke&&n.getOther().applyMirroredCorrection(r);const i=new H(n.getText(),n.getRawBytes(),void 0,r,W.QR_CODE,void 0),o=n.getByteSegments();null!==o&&i.putMetadata(Z.BYTE_SEGMENTS,o);const s=n.getECLevel();return null!==s&&i.putMetadata(Z.ERROR_CORRECTION_LEVEL,s),n.hasStructuredAppend()&&(i.putMetadata(Z.STRUCTURED_APPEND_SEQUENCE,n.getStructuredAppendSequenceNumber()),i.putMetadata(Z.STRUCTURED_APPEND_PARITY,n.getStructuredAppendParity())),i}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null===e||null===n)throw new D;const r=this.moduleSize(e,t);let i=e[1],o=n[1],s=e[0],a=n[0];if(s>=a||i>=o)throw new D;if(o-i!=a-s&&(a=s+(o-i),a>=t.getWidth()))throw new D;const l=Math.round((a-s+1)/r),u=Math.round((o-i+1)/r);if(l<=0||u<=0)throw new D;if(u!==l)throw new D;const c=Math.floor(r/2);i+=c,s+=c;const d=s+Math.floor((l-1)*r)-a;if(d>0){if(d>c)throw new D;s-=d}const h=i+Math.floor((u-1)*r)-o;if(h>0){if(h>c)throw new D;i-=h}const f=new T(l,u);for(let e=0;e<u;e++){const n=i+Math.floor(e*r);for(let i=0;i<l;i++)t.get(s+Math.floor(i*r),n)&&f.set(i,e)}return f}static moduleSize(t,e){const n=e.getHeight(),r=e.getWidth();let i=t[0],o=t[1],s=!0,a=0;for(;i<r&&o<n;){if(s!==e.get(i,o)){if(5==++a)break;s=!s}i++,o++}if(i===r||o===n)throw new D;return(i-t[0])/7}}Be.NO_POINTS=new Array;class He{PDF417Common(){}static getBitCountSum(t){return ot.sum(t)}static toIntArray(t){if(null==t||!t.length)return He.EMPTY_INT_ARRAY;const e=new Int32Array(t.length);let n=0;for(const r of t)e[n++]=r;return e}static getCodeword(t){const e=_.binarySearch(He.SYMBOL_TABLE,262143&t);return e<0?-1:(He.CODEWORD_TABLE[e]-1)%He.NUMBER_OF_CODEWORDS}}He.NUMBER_OF_CODEWORDS=929,He.MAX_CODEWORDS_IN_BARCODE=He.NUMBER_OF_CODEWORDS-1,He.MIN_ROWS_IN_BARCODE=3,He.MAX_ROWS_IN_BARCODE=90,He.MODULES_IN_CODEWORD=17,He.MODULES_IN_STOP_PATTERN=18,He.BARS_IN_MODULE=8,He.EMPTY_INT_ARRAY=new Int32Array([]),He
vendor: 18,272 bytes, line 2
2.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),
2He
vendor: 12,860 bytes, line 2
2.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700])
2;class Fe{constructor(t,e){this.bits=t,this.points=e}getBits(){return this.bits}getPoints(){return this.points}}class We{static detectMultiple(t,e,n){let r=t.getBlackMatrix(),i=We.detect(n,r);return i.length||(r=r.clone(),r.rotate180(),i=We.detect(n,r)),new Fe(r,i)}static detect(t,e){const n=new Array;let r=0,i=0,o=!1;for(;r<e.getHeight();
vendor: 4,112 bytes, line 2
2){const s=We.findVertices(e,r,i);if(null!=s[0]||null!=s[3]){if(o=!0,n.push(s),!t)break;null!=s[2]?(i=Math.trunc(s[2].getX()),r=Math.trunc(s[2].getY())):(i=Math.trunc(s[4].getX()),r=Math.trunc(s[4].getY()))}else{if(!o)break;o=!1,i=0;for(const t of n)null!=t[1]&&(r=Math.trunc(Math.max(r,t[1].getY()))),null!=t[3]&&(r=Math.max(r,Math.trunc(t[3].getY())));r+=We.ROW_STEP}}return n}static findVertices(t,e,n){const r=t.getHeight(),i=t.getWidth(),o=new Array(8);return We.copyToResult(o,We.findRowsWithPattern(t,r,i,e,n,We.START_PATTERN),We.INDEXES_START_PATTERN),null!=o[4]&&(n=Math.trunc(o[4].getX()),e=Math.trunc(o[4].getY())),We.copyToResult(o,We.findRowsWithPattern(t,r,i,e,n,We.STOP_PATTERN),We.INDEXES_STOP_PATTERN),o}static copyToResult(t,e,n){for(let r=0;r<n.length;r++)t[n[r]]=e[r]}static findRowsWithPattern(t,e,n,r,i,o){const s=new Array(4);let a=!1;const l=new Int32Array(o.length);for(;r<e;r+=We.ROW_STEP){let e=We.findGuardPattern(t,i,r,n,!1,o,l);if(null!=e){for(;r>0;){const s=We.findGuardPattern(t,i,--r,n,!1,o,l);if(null==s){r++;break}e=s}s[0]=new at(e[0],r),s[1]=new at(e[1],r),a=!0;break}}let u=r+1;if(a){let r=0,i=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);for(;u<e;u++){const e=We.findGuardPattern(t,i[0],u,n,!1,o,l);if(null!=e&&Math.abs(i[0]-e[0])<We.MAX_PATTERN_DRIFT&&Math.abs(i[1]-e[1])<We.MAX_PATTERN_DRIFT)i=e,r=0;else{if(r>We.SKIPPED_ROW_COUNT_MAX)break;r++}}u-=r+1,s[2]=new at(i[0],u),s[3]=new at(i[1],u)}return u-r<We.BARCODE_MIN_HEIGHT&&_.fill(s,null),s}static findGuardPattern(t,e,n,r,i,o,s){_.fillWithin(s,0,s.length,0);let a=e,l=0;for(;t.get(a,n)&&a>0&&l++<We.MAX_PIXEL_DRIFT;)a--;let u=a,c=0,d=o.length;for(let e=i;u<r;u++)if(t.get(u,n)!==e)s[c]++;else{if(c===d-1){if(We.patternMatchVariance(s,o,We.MAX_INDIVIDUAL_VARIANCE)<We.MAX_AVG_VARIANCE)return new Int32Array([a,u]);a+=s[0]+s[1],m.arraycopy(s,2,s,0,c-1),s[c-1]=0,s[c]=0,c--}else c++;s[c]=1,e=!e}return c===d-1&&We.patternMatchVariance(s,o,We.MAX_INDIVIDUAL_VARIANCE)<We.MAX_AVG_VARIANCE?new Int32Array([a,u-1]):null}static patternMatchVariance(t,e,n){let r=t.length,i=0,o=0;for(let n=0;n<r;n++)i+=t[n],o+=e[n];if(i<o)return 1/0;let s=i/o;n*=s;let a=0;for(let i=0;i<r;i++){let r=t[i],o=e[i]*s,l=r>o?r-o:o-r;if(l>n)return 1/0;a+=l}return a/i}}We.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),We.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),We.MAX_AVG_VARIANCE=.42,We.MAX_INDIVIDUAL_VARIANCE=.8,We.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),We.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),We.MAX_PIXEL_DRIFT=3,We.MAX_PATTERN_DRIFT=5,We.SKIPPED_ROW_COUNT_MAX=25,We.ROW_STEP=5,We.BARCODE_MIN_HEIGHT=10;class Ue{constructor(t,e){if(0===e.length)throw new d;this.field=t;let n=e.length;if(n>1&&0===e[0]){let t=1;for(;t<n&&0===e[t];)t++;t===n?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(n-t),m.arraycopy(e,t,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return 0===this.coefficients[0]}getCoefficient(t){return this.coefficients[this.coefficients.length-1-t]}evaluateAt(t){if(0===t)return this.getCoefficient(0);if(1===t){let t=0;for(let e of this.coefficients)t=this.field.add(t,e);return t}let e=this.coefficients[0],n=this.coefficients.length;for(let r=1;r<n;r++)e=this.field.add(this.field.multiply(t,e),this.coefficients[r]);return e}add(t){if(!this.field.equals(t.field))throw new d("ModulusPolys do not have same ModulusGF field");if(this.isZero())return t;if(t.isZero())return this;let e=this.coefficients,n=t.coefficients;if(e.length>n.length){let t=e;e=n,n=t}let r=new Int32Array(n.length),i=n.length-e.length;m.arraycopy(n,0,r,0,i);for(let t=i;t<n.length;t++)r[t]=this.field.add(e[t-i],n[t]);return new Ue(this.field,r)}subtract(t){if(!this.field.equals(t.field))throw new d("ModulusPolys do not have same ModulusGF field");return t.isZero()?this:this.add(t.negative())}multiply(t){return t instanceof Ue?this.multiplyOther(t):this.multiplyScalar(t)}multiplyOther(t){if(!this.field.equals(t.field))throw new d("ModulusPolys do n
2ot have same ModulusGF field");if(this.isZero()||t.isZero())return new Ue(this.field,new Int32Array([0]));let e=this.coefficients,n=e.length,r=t.coefficients,i=r.length,o=new Int32Array(n+i-1);for(let t=0;t<n;t++){let n=e[t];for(let e=0;e<i;e++)o[t+e]=this.field.add(o[t+e],this.field.multiply(n,r[e]))}return new Ue(this.field,o)}negative(){let t=this.coefficients.length,e=new Int32Array(t);for(let n=0;n<t;n++)e[n]=this.field.subtract(0,this.coefficients[n]);return new Ue(this.field,e)}multiplyScalar(t){if(0===t)return new Ue(this.field,new Int32Array([0]));if(1===t)return this;let e=this.coefficients.length,n=new Int32Array(e);for(let r=0;r<e;r++)n[r]=this.field.multiply(this.coefficients[r],t);return new Ue(this.field,n)}multiplyByMonomial(t,e){if(t<0)throw new d;if(0===e)return new Ue(this.field,new Int32Array([0]));let n=this.coefficients.length,r=new Int32Array(n+t);for(let t=0;t<n;t++)r[t]=this.field.multiply(this.coefficients[t],e);return new Ue(this.field,r)}toString(){let t=new L;for(let e=this.getDegree();e>=0;e--){let n=this.getCoefficient(e);0!==n&&(n<0?(t.append(" - "),n=-n):t.length()>0&&t.append(" + "),0!==e&&1===n||t.append(n),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()}}class ze{add(t,e){return(t+e)%this.modulus}subtract(t,e){return(this.modulus+t-e)%this.modulus}exp(t){return this.expTable[t]}log(t){if(0===t)throw new d;return this.logTable[t]}inverse(t){if(0===t)throw new $;return this.expTable[this.modulus-this.logTable[t]-1]}multiply(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]}getSize(){return this.modulus}equals(t){return t===this}}class Ve extends ze{constructor(t,e){super(),this.modulus=t,this.expTable=new Int32Array(t),this.logTable=new Int32Array(t);let n=1;for(let r=0;r<t;r++)this.expTable[r]=n,n=n*e%t;for(let e=0;e<t-1;e++)this.logTable[this.expTable[e]]=e;this.zero=new Ue(this,new Int32Array([0])),this.one=new Ue(this,new Int32Array([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(t,e){if(t<0)throw new d;if(0===e)return this.zero;let n=new Int32Array(t+1);return n[0]=e,new Ue(this,n)}}Ve.PDF417_GF=new Ve(He.NUMBER_OF_CODEWORDS,3);class qe{constructor(){this.field=Ve.PDF417_GF}decode(t,e,n){let r=new Ue(this.field,t),i=new Int32Array(e),o=!1;for(let t=e;t>0;t--){let n=r.evaluateAt(this.field.exp(t));i[e-t]=n,0!==n&&(o=!0)}if(!o)return 0;let s=this.field.getOne();if(null!=n)for(const e of n){let n=this.field.exp(t.length-1-e),r=new Ue(this.field,new Int32Array([this.field.subtract(0,n),1]));s=s.multiply(r)}let a=new Ue(this.field,i),l=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),a,e),u=l[0],c=l[1],d=this.findErrorLocations(u),h=this.findErrorMagnitudes(c,u,d);for(let e=0;e<d.length;e++){let n=t.length-1-this.field.log(d[e]);if(n<0)throw f.getChecksumInstance();t[n]=this.field.subtract(t[n],h[e])}return d.length}runEuclideanAlgorithm(t,e,n){if(t.getDegree()<e.getDegree()){let n=t;t=e,e=n}let r=t,i=e,o=this.field.getZero(),s=this.field.getOne();for(;i.getDegree()>=Math.round(n/2);){let t=r,e=o;if(r=i,o=s,r.isZero())throw f.getChecksumInstance();i=t;let n=this.field.getZero(),a=r.getCoefficient(r.getDegree()),l=this.field.inverse(a);for(;i.getDegree()>=r.getDegree()&&!i.isZero();){let t=i.getDegree()-r.getDegree(),e=this.field.multiply(i.getCoefficient(i.getDegree()),l);n=n.add(this.field.buildMonomial(t,e)),i=i.subtract(r.multiplyByMonomial(t,e))}s=n.multiply(o).subtract(e).negative()}let a=s.getCoefficient(0);if(0===a)throw f.getChecksumInstance();let l=this.field.inverse(a);return[s.multiply(l),i.multiply(l)]}findErrorLocations(t){let e=t.getDegree(),n=new Int32Array(e),r=0;for(let i=1;i<this.field.getSize()&&r<e;i++)0===t.evaluateAt(i)&&(n[r]=this.field.inverse(i),r++);if(r!==e)throw f.getChecksumInstance();return n}findErrorMagnitudes(t,e,n){let r=e.getDegree(),i=new Int32Array(r);for(let t=1;t<=r;t++)i[r-t]=this.field.multiply(t,e.getCoefficient(t));let o=new Ue(this.field,i),s=n.length,a=new Int32Array(s);for(let e=0;e<s;e++){let r=this.field.inverse(n[e]),i=this.field.subtract(0,t.evaluateAt(r)),s=this.field.inverse(o.evaluateAt(r));a[e]=this.field.multiply(i,s)}return a}}class Ge{constructor(t,e,n,r,i){t instanceof Ge?this.constructor_2(t):this.constructor_1(t,e,n,r,i)}constructor_1(t,e,n,r,i){const o=null==e||null==n,s=null==r||null==i;if(o&&s)throw new D;o?(e=new at(0,r.getY()),n=new at(0,i.getY())):s&&(r=new at(t.getW
vendor: 68,740 bytes, line 2
2idth()-1,e.getY()),i=new at(t.getWidth()-1,n.getY())),this.image=t,this.topLeft=e,this.bottomLeft=n,this.topRight=r,this.bottomRight=i,this.minX=Math.trunc(Math.min(e.getX(),n.getX())),this.maxX=Math.trunc(Math.max(r.getX(),i.getX())),this.minY=Math.trunc(Math.min(e.getY(),r.getY())),this.maxY=Math.trunc(Math.max(n.getY(),i.getY()))}constructor_2(t){this.image=t.image,this.topLeft=t.getTopLeft(),this.bottomLeft=t.getBottomLeft(),this.topRight=t.getTopRight(),this.bottomRight=t.getBottomRight(),this.minX=t.getMinX(),this.maxX=t.getMaxX(),this.minY=t.getMinY(),this.maxY=t.getMaxY()}static merge(t,e){return null==t?e:null==e?t:new Ge(t.image,t.topLeft,t.bottomLeft,e.topRight,e.bottomRight)}addMissingRows(t,e,n){let r=this.topLeft,i=this.bottomLeft,o=this.topRight,s=this.bottomRight;if(t>0){let e=n?this.topLeft:this.topRight,i=Math.trunc(e.getY()-t);i<0&&(i=0);let s=new at(e.getX(),i);n?r=s:o=s}if(e>0){let t=n?this.bottomLeft:this.bottomRight,r=Math.trunc(t.getY()+e);r>=this.image.getHeight()&&(r=this.image.getHeight()-1);let o=new at(t.getX(),r);n?i=o:s=o}return new Ge(this.image,r,i,o,s)}getMinX(){return this.minX}getMaxX(){return this.maxX}getMinY(){return this.minY}getMaxY(){return this.maxY}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}getBottomLeft(){return this.bottomLeft}getBottomRight(){return this.bottomRight}}class Xe{constructor(t,e,n,r){this.columnCount=t,this.errorCorrectionLevel=r,this.rowCountUpperPart=e,this.rowCountLowerPart=n,this.rowCount=e+n}getColumnCount(){return this.columnCount}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getRowCount(){return this.rowCount}getRowCountUpperPart(){return this.rowCountUpperPart}getRowCountLowerPart(){return this.rowCountLowerPart}}class Ze{constructor(){this.buffer=""}static form(t,e){let n=-1;function r(t,r,i,o,s,a){if("%%"===t)return"%";if(void 0===e[++n])return;t=o?parseInt(o.substr(1)):void 0;let l,u=s?parseInt(s.substr(1)):void 0;switch(a){case"s":l=e[n];break;case"c":l=e[n][0];break;case"f":l=parseFloat(e[n]).toFixed(t);break;case"p":l=parseFloat(e[n]).toPrecision(t);break;case"e":l=parseFloat(e[n]).toExponential(t);break;case"x":l=parseInt(e[n]).toString(u||16);break;case"d":l=parseFloat(parseInt(e[n],u||10).toPrecision(t)).toFixed(0)}l="object"==typeof l?JSON.stringify(l):(+l).toString(u);let c=parseInt(i),d=i&&i[0]+""=="0"?"0":" ";for(;l.length<c;)l=void 0!==r?l+d:d+l;return l}let i=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(i,r)}format(t,...e){this.buffer+=Ze.form(t,e)}toString(){return this.buffer}}class Ke{constructor(t){this.boundingBox=new Ge(t),this.codewords=new Array(t.getMaxY()-t.getMinY()+1)}getCodewordNearby(t){let e=this.getCodeword(t);if(null!=e)return e;for(let n=1;n<Ke.MAX_NEARBY_DISTANCE;n++){let r=this.imageRowToCodewordIndex(t)-n;if(r>=0&&(e=this.codewords[r],null!=e))return e;if(r=this.imageRowToCodewordIndex(t)+n,r<this.codewords.length&&(e=this.codewords[r],null!=e))return e}return null}imageRowToCodewordIndex(t){return t-this.boundingBox.getMinY()}setCodeword(t,e){this.codewords[this.imageRowToCodewordIndex(t)]=e}getCodeword(t){return this.codewords[this.imageRowToCodewordIndex(t)]}getBoundingBox(){return this.boundingBox}getCodewords(){return this.codewords}toString(){const t=new Ze;let e=0;for(const n of this.codewords)null!=n?t.format("%3d: %3d|%3d%n",e++,n.getRowNumber(),n.getValue()):t.format("%3d:    |   %n",e++);return t.toString()}}Ke.MAX_NEARBY_DISTANCE=5;class Je{constructor(){this.values=new Map}setValue(t){t=Math.trunc(t);let e=this.values.get(t);null==e&&(e=0),e++,this.values.set(t,e)}getValue(){let t=-1,e=new Array;for(const[n,r]of this.values.entries()){const i={getKey:()=>n,getValue:()=>r};i.getValue()>t?(t=i.getValue(),e=[],e.push(i.getKey())):i.getValue()===t&&e.push(i.getKey())}return He.toIntArray(e)}getConfidence(t){return this.values.get(t)}}class Qe extends Ke{constructor(t,e){super(t),this._isLeft=e}setRowNumbers(){for(let t of this.getCodewords())null!=t&&t.setRowNumberAsRowIndicatorColumn()}adjustCompleteIndicatorColumnRowNumbers(t){let e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);let n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),i=this._isLeft?n.getBottomLeft():n.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),s=this.imageRowToCodewordIndex(Math.trunc(i.getY())),a=-1,l=1,u=0;for(let n=o;n<s;n++){if(null==e[n])continue;let r=e[n],i=r.getRowNumber()-a;if(0===i)u++;else if(1===i)l=Math.max(l,u),u=1,a=r.getRowNumber();else if(i<0||r.getRowNumber()>=t.getRowCount()||i>n)e[n]=null;else{let t;t=l>2?(l-2)*i:i;let o=t>=n;for(let r=1;r<=t&&!o;r++)o=null!=e[n-r];o?e[n]=null:(a=r.getRowNumber(),u=1)}}}getRowHeights(){let t=this.getBarcodeMetadata();if(null==t)return null;this.adjustIncompleteIndicatorColumnRowNumbers(t);let e=new Int32Array(t.getRowCount());for(let t of this.getCodewords())if(null!=t){let n=t.getRowNumber();if(n>=e.length)continue;e[n]++}return e}adjustIncompleteIndicatorColumnRowNumbers(t){let e=this.getBoundingBox(),n=this._isLeft?e.getTopLeft():e.getTopRight(),r=this._isLeft?e.getBottomLeft():e.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),s=this.getCodewords(),a=-1;for(let e=i;e<o;e++){if(null==s[e])continue;let n=s[e];n.setRowNumberAsRowIndicatorColumn();let r=n.getRowNumber()-a;0===r||(1===r?a=n.getRowNumber():n.getRowNumber()>=t.getRowCount()?s[e]=null:a=n.getRowNumber())}}getBarcodeMetadata(){let t=this.getCodewords(),e=new Je,n=new Je,r=new Je,i=new Je;for(let o of t){if(null==o)continue;o.setRowNumberAsRowIndicatorColumn();let t=o.getValue()%30,s=o.getRowNumber();switch(this._isLeft||(s+=2),s%3){case 0:n.setValue(3*t+1);break;case 1:i.setValue(t/3),r.setValue(t%3);break;case 2:e.setValue(t+1)}}if(0===e.getValue().length||0===n.getValue().length||0===r.getValue().length||0===i.getValue().length||e.getValue()[0]<1||n.getValue()[0]+r.getValue()[0]<He.MIN_ROWS_IN_BARCODE||n.getValue()[0]+r.getValue()[0]>He.MAX_ROWS_IN_BARCODE)return null;let o=new Xe(e.getValue()[0],n.getValue()[0],r.getValue()[0],i.getValue()[0]);return this.removeIncorrectCodewords(t,o),o}removeIncorrectCodewords(t,e){for(let n=0;n<t.length;n++){let r=t[n];if(null==t[n])continue;let i=r.getValue()%30,o=r.getRowNumber();if(o>e.getRowCount())t[n]=null;else switch(this._isLeft||(o+=2),o%3){case 0:3*i+1!==e.getRowCountUpperPart()&&(t[n]=null);break;case 1:Math.trunc(i/3)===e.getErrorCorrectionLevel()&&i%3===e.getRowCountLowerPart()||(t[n]=null);break;case 2:i+1!==e.getColumnCount()&&(t[n]=null)}}}isLeft(){return this._isLeft}toString(){return"IsLeft: "+this._isLeft+"\n"+super.toString()}}class $e{constructor(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}getDetectionResultColumns(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);let t,e=He.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e<t);return this.detectionResultColumns}adjustIndicatorColumnRowNumbers(t){null!=t&&t.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)}adjustRowNumbersAndGetCount(){let t=this.adjustRowNumbersByRow();if(0===t)return 0;for(let t=1;t<this.barcodeColumnCount+1;t++){let e=this.detectionResultColumns[t].getCodewords();for(let n=0;n<e.length;n++)null!=e[n]&&(e[n].hasValidRowNumber()||this.adjustRowNumbers(t,n,e))}return t}adjustRowNumbersByRow(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()}adjustRowNumbersFromBothRI(){if(null==this.detectionResultColumns[0]||null==this.detectionResultColumns[this.barcodeColumnCount+1])return;let t=this.detectionResultColumns[0].getCodewords(),e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let n=0;n<t.length;n++)if(null!=t[n]&&null!=e[n]&&t[n].getRowNumber()===e[n].getRowNumber())for(let e=1;e<=this.barcodeColumnCount;e++){let r=this.detectionResultColumns[e].getCodewords()[n];null!=r&&(r.setRowNumber(t[n].getRowNumber()),r.hasValidRowNumber()||(this.detectionResultColumns[e].getCodewords()[n]=null))}}adjustRowNumbersFromRRI(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;let t=0,e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let n=0;n<e.length;n++){if(null==e[n])continue;let r=e[n].getRowNumber(),i=0;for(let e=this.barcodeColumnCount+1;e>0&&i<this.ADJUST_ROW_NUMBER_SKIP;e--){let o=this.detectionResultColumns[e].getCodewords()[n];null!=o&&(i=$e.adjustRowNumberIfValid(r,i,o),o.hasValidRowNumber()||t++)}}return t}adjustRowNumbersFromLRI(){if(null==this.detectionResultColumns[0])return 0;let t=0,e=this.detectionResultColumns[0].getCodewords();for(let n=0;n<e.length;n++){if(null==e[n])continue;let r=e[n].getRowNumber(),i=0;for(let e=1;e<this.barcodeColumnCount+1&&i<this.ADJUST_ROW_NUMBER_SKIP;e++){let o=this.detectionResultColumns[e].getCodewords()[n];null!=o&&(i=$e.adjustRowNumberIfValid(r,i,o),o.hasValidRowNumber()||t++)}}return t}static adjustRowNumberIfValid(t,e,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(t)?(n.setRowNumber(t),e=0):++e),e}adjustRowNumbers(t,e,n){if(!this.detectionResultColumns[t-1])return;let r=n[e],i=this.detectionResultColumns[t-1].getCodewords(),o=i;null!=this.detectionResultColumns[t+1]&&(o=this.detectionResultColumns[t+1].getCodewords());let s=new Array(14);s[2]=i[e],s[3]=o[e],e>0&&(s[0]=n[e-1],s[4]=i[e-1],s[5]=o[e-1]),e>1&&(s[8]=n[e-2],s[10]=i[e-2],s[11]=o[e-2]),e<n.length-1&&(s[1]=n[e+1],s[6]=i[e+1],s[7]=o[e+1]),e<n.length-2&&(s[9]=n[e+2],s[12]=i[e+2],s[13]=o[e+2]);for(let t of s)if($e.adjustRowNumber(r,t))return}static adjustRowNumber(t,e){return!(null==e||!e.hasValidRowNumber()||e.getBucket()!==t.getBucket()||(t.setRowNumber(e.getRowNumber()),0))}getBarcodeColumnCount(){return this.barcodeColumnCount}getBarcodeRowCount(){return this.barcodeMetadata.getRowCount()}getBarcodeECLevel(){return this.barcodeMetadata.getErrorCorrectionLevel()}setBoundingBox(t){this.boundingBox=t}getBoundingBox(){return this.boundingBox}setDetectionResultColumn(t,e){this.detectionResultColumns[t]=e}getDetectionResultColumn(t){return this.detectionResultColumns[t]}toString(){let t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);let e=new Ze;for(let n=0;n<t.getCodewords().length;n++){e.format("CW %3d:",n);for(let t=0;t<this.barcodeColumnCount+2;t++){if(null==this.detectionResultColumns[t]){e.format("    |   ");continue}let r=this.detectionResultColumns[t].getCodewords()[n];null!=r?e.format(" %3d|%3d",r.getRowNumber(),r.getValue()):e.format("    |   ")}e.format("%n")}return e.toString()}}class tn{constructor(t,e,n,r){this.rowNumber=tn.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(e),this.bucket=Math.trunc(n),this.value=Math.trunc(r)}hasValidRowNumber(){return this.isValidRowNumber(this.rowNumber)}isValidRowNumber(t){return t!==tn.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3}setRowNumberAsRowIndicatorColumn(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))}getWidth(){return this.endX-this.startX}getStartX(){return this.startX}getEndX(){return this.endX}getBucket(){return this.bucket}getValue(){return this.value}getRowNumber(){return this.rowNumber}setRowNumber(t){this.rowNumber=t}toString(){return this.rowNumber+"|"+this.value}}tn.BARCODE_ROW_UNKNOWN=-1;class en{static initialize(){for(let t=0;t<He.SYMBOL_TABLE.length;t++){let e=He.SYMBOL_TABLE[t],n=1&e;for(let r=0;r<He.BARS_IN_MODULE;r++){let i=0;for(;(1&e)===n;)i+=1,e>>=1;n=1&e,en.RATIOS_TABLE[t]||(en.RATIOS_TABLE[t]=new Array(He.BARS_IN_MODULE)),en.RATIOS_TABLE[t][He.BARS_IN_MODULE-r-1]=Math.fround(i/He.MODULES_IN_CODEWORD)}}this.bSymbolTableReady=!0}static getDecodedValue(t){let e=en.getDecodedCodewordValue(en.sampleBitCounts(t));return-1!==e?e:en.getClosestDecodedValue(t)}static sampleBitCounts(t){let e=ot.sum(t),n=new Int32Array(He.BARS_IN_MODULE),r=0,i=0;for(let o=0;o<He.MODULES_IN_CODEWORD;o++){let s=e/(2*He.MODULES_IN_CODEWORD)+o*e/He.MODULES_IN_CODEWORD;i+t[r]<=s&&(i+=t[r],r++),n[r]++}return n}static getDecodedCodewordValue(t){let e=en.getBitValue(t);return-1===He.getCodeword(e)?-1:e}static getBitValue(t){let e=0;for(let n=0;n<t.length;n++)for(let r=0;r<t[n];r++)e=e<<1|(n%2==0?1:0);return Math.trunc(e)}static getClosestDecodedValue(t){let e=ot.sum(t),n=new Array(He.BARS_IN_MODULE);if(e>1)for(let r=0;r<n.length;r++)n[r]=Math.fround(t[r]/e);let r=st.MAX_VALUE,i=-1;this.bSymbolTableReady||en.initialize();for(let t=0;t<en.RATIOS_TABLE.length;t++){let e=0,o=en.RATIOS_TABLE[t];for(let t=0;t<He.BARS_IN_MODULE;t++){let i=Math.fround(o[t]-n[t]);if(e+=Math.fround(i*i),e>=r)break}e<r&&(r=e,i=He.SYMBOL_TABLE[t])}return i}}en.bSymbolTableReady=!1,en.RATIOS_TABLE=new Array(He.SYMBOL_TABLE.length).map((t=>new Array(He.BARS_IN_MODULE)));class nn{constructor(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}getSegmentIndex(){return this.segmentIndex}setSegmentIndex(t){this.segmentIndex=t}getFileId(){return this.fileId}setFileId(t){this.fileId=t}getOptionalData(){return this.optionalData}setOptionalData(t){this.optionalData=t}isLastSegment(){return this.lastSegment}setLastSegment(t){this.lastSegment=t}getSegmentCount(){return this.segmentCount}setSegmentCount(t){this.segmentCount=t}getSender(){return this.sender||null}setSender(t){this.sender=t}getAddressee(){return this.addressee||null}setAddressee(t){this.addressee=t}getFileName(){return this.fileName}setFileName(t){this.fileName=t}getFileSize(){return this.fileSize}setFileSize(t){this.fileSize=t}getChecksum(){return this.checksum}setChecksum(t){this.checksum=t}getTimestamp(){return this.timestamp}setTimestamp(t){this.timestamp=t}}class rn{static parseLong(t,e){return parseInt(t,e)}}class on extends u{}on.kind="NullPointerException";class sn{writeBytes(t){this.writeBytesOffset(t,0,t.length)}writeBytesOffset(t,e,n){if(null==t)throw new on;if(e<0||e>t.length||n<0||e+n>t.length||e+n<0)throw new g;if(0!==n)for(let r=0;r<n;r++)this.write(t[e+r])}flush(){}close(){}}class an extends u{}class ln extends sn{constructor(t=32){if(super(),this.count=0,t<0)throw new d("Negative initial size: "+t);this.buf=new Uint8Array(t)}ensureCapacity(t){t-this.buf.length>0&&this.grow(t)}grow(t){let e=this.buf.length<<1;if(e-t<0&&(e=t),e<0){if(t<0)throw new an;e=v.MAX_VALUE}this.buf=_.copyOfUint8Array(this.buf,e)}write(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1}writeBytesOffset(t,e,n){if(e<0||e>t.length||n<0||e+n-t.length>0)throw new g;this.ensureCapacity(this.count+n),m.arraycopy(t,e,this.buf,this.count,n),this.count+=n}writeTo(t){t.writeBytesOffset(this.buf,0,this.count)}reset(){this.count=0}toByteArray(){return _.copyOfUint8Array(this.buf,this.count)}size(){return this.count}toString(t){return t?"string"==typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()}toString_void(){return new String(this.buf).toString()}toString_string(t){return new String(this.buf).toString()}toString_number(t){return new String(this.buf).toString()}close(){}}function un(){if("undefined"!=typeof window)return window.BigInt||null;if(void 0!==n.g)return n.g.BigInt||null;if("undefined"!=typeof self)return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}let cn;function dn(t){if(void 0===cn&&(cn=un()),null===cn)throw new Error("BigInt is not supported!");return cn(t)}function hn(){let t=[];t[0]=dn(1);let e=dn(900);t[1]=e;for(let n=2;n<16;n++)t[n]=t[n-1]*e;return t}!function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(X||(X={}));class fn{static decode(t,e){let n=new L(""),r=C.ISO8859_1;n.enableDecoding(r);let i=1,o=t[i++],s=new nn;for(;i<t[0];){switch(o){case fn.TEXT_COMPACTION_MODE_LATCH:i=fn.textCompaction(t,i,n);break;case fn.BYTE_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH_6:i=fn.byteCompaction(o,t,r,i,n);break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:n.append(t[i++]);break;case fn.NUMERIC_COMPACTION_MODE_LATCH:i=fn.numericCompaction(t,i,n);break;case fn.ECI_CHARSET:C.getCharacterSetECIByValue(t[i++]);break;case fn.ECI_GENERAL_PURPOSE:i+=2;break;case fn.ECI_USER_DEFINED:i++;break;case fn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:i=fn.decodeMacroBlock(t,i,s);break;case fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case fn.MACRO_PDF417_TERMINATOR:throw new S;default:i--,i=fn.textCompaction(t,i,n)}if(!(i<t.length))throw S.getFormatInstance();o=t[i++]}if(0===n.length())throw S.getFormatInstance();let a=new K(null,n.toString(),null,e);return a.setOther(s),a}static decodeMacroBlock(t,e,n){if(e+fn.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw S.getFormatInstance();let r=new Int32Array(fn.NUMBER_OF_SEQUENCE_CODEWORDS);for(let n=0;n<fn.NUMBER_OF_SEQUENCE_CODEWORDS;n++,e++)r[n]=t[e];n.setSegmentIndex(v.parseInt(fn.decodeBase900toBase10(r,fn.NUMBER_OF_SEQUENCE_CODEWORDS)));let i=new L;e=fn.textCompaction(t,e,i),n.setFileId(i.toString());let o=-1;for(t[e]===fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(o=e+1);e<t[0];)switch(t[e]){case fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(t[++e]){case fn.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:let r=new L;e=fn.textCompaction(t,e+1,r),n.setFileName(r.toString());break;case fn.MACRO_PDF417_OPTIONAL_FIELD_SENDER:let i=new L;e=fn.textCompaction(t,e+1,i),n.setSender(i.toString());break;case fn.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:let o=new L;e=fn.textCompaction(t,e+1,o),n.setAddressee(o.toString());break;case fn.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:let s=new L;e=fn.numericCompaction(t,e+1,s),n.setSegmentCount(v.parseInt(s.toString()));break;case fn.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:let a=new L;e=fn.numericCompaction(t,e+1,a),n.setTimestamp(rn.parseLong(a.toString()));break;case fn.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:let l=new L;e=fn.numericCompaction(t,e+1,l),n.setChecksum(v.parseInt(l.toString()));break;case fn.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:let u=new L;e=fn.numericCompaction(t,e+1,u),n.setFileSize(rn.parseLong(u.toString()));break;default:throw S.getFormatInstance()}break;case fn.MACRO_PDF417_TERMINATOR:e++,n.setLastSegment(!0);break;default:throw S.getFormatInstance()}if(-1!==o){let r=e-o;n.isLastSegment()&&r--,n.setOptionalData(_.copyOfRange(t,o,o+r))}return e}static textCompaction(t,e,n){let r=new Int32Array(2*(t[0]-e)),i=new Int32Array(2*(t[0]-e)),o=0,s=!1;for(;e<t[0]&&!s;){let n=t[e++];if(n<fn.TEXT_COMPACTION_MODE_LATCH)r[o]=n/30,r[o+1]=n%30,o+=2;else switch(n){case fn.TEXT_COMPACTION_MODE_LATCH:r[o++]=fn.TEXT_COMPACTION_MODE_LATCH;break;case fn.BYTE_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH_6:case fn.NUMERIC_COMPACTION_MODE_LATCH:case fn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case fn.MACRO_PDF417_TERMINATOR:e--,s=!0;break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r[o]=fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,n=t[e++],i[o]=n,o++}}return fn.decodeTextCompaction(r,i,o,n),e}static decodeTextCompaction(t,e,n,r){let i=X.ALPHA,o=X.ALPHA,s=0;for(;s<n;){let n=t[s],a="";switch(i){case X.ALPHA:if(n<26)a=String.fromCharCode(65+n);else switch(n){case 26:a=" ";break;case fn.LL:i=X.LOWER;break;case fn.ML:i=X.MIXED;break;case fn.PS:o=i,i=X.PUNCT_SHIFT;break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[s]);break;case fn.TEXT_COMPACTION_MODE_LATCH:i=X.ALPHA}break;case X.LOWER:if(n<26)a=String.fromCharCode(97+n);else switch(n){case 26:a=" ";break;case fn.AS:o=i,i=X.ALPHA_SHIFT;break;case fn.ML:i=X.MIXED;break;case fn.PS:o=i,i=X.PUNCT_SHIFT;break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[s]);break;case fn.TEXT_COMPACTION_MODE_LATCH:i=X.ALPHA}break;case X.MIXED:if(n<fn.PL)a=fn.MIXED_CHARS[n];else switch(n){case fn.PL:i=X.PUNCT;break;case 26:a=" ";break;case fn.LL:i=X.LOWER;break;case fn.AL:i=X.ALPHA;break;case fn.PS:o=i,i=X.PUNCT_SHIFT;break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[s]);break;case fn.TEXT_COMPACTION_MODE_LATCH:i=X.ALPHA}break;case X.PUNCT:if(n<fn.PAL)a=fn.PUNCT_CHARS[n];else switch(n){case fn.PAL:i=X.ALPHA;break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[s]);break;case fn.TEXT_COMPACTION_MODE_LATCH:i=X.ALPHA}break;case X.ALPHA_SHIFT:if(i=o,n<26)a=String.fromCharCode(65+n);else switch(n){case 26:a=" ";break;case fn.TEXT_COMPACTION_MODE_LATCH:i=X.ALPHA}break;case X.PUNCT_SHIFT:if(i=o,n<fn.PAL)a=fn.PUNCT_CHARS[n];else switch(n){case fn.PAL:i=X.ALPHA;break;case fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[s]);break;case fn.TEXT_COMPACTION_MODE_LATCH:i=X.ALPHA}}""!==a&&r.append(a),s++}}static byteCompaction(t,e,n,r,i){let o=new ln,s=0,a=0,l=!1;switch(t){case fn.BYTE_COMPACTION_MODE_LATCH:let t=new Int32Array(6),n=e[r++];for(;r<e[0]&&!l;)switch(t[s++]=n,a=900*a+n,n=e[r++],n){case fn.TEXT_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH:case fn.NUMERIC_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH_6:case fn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case fn.MACRO_PDF417_TERMINATOR:r--,l=!0;break;default:if(s%5==0&&s>0){for(let t=0;t<6;++t)o.write(Number(dn(a)>>dn(8*(5-t))));a=0,s=0}}r===e[0]&&n<fn.TEXT_COMPACTION_MODE_LATCH&&(t[s++]=n);for(let e=0;e<s;e++)o.write(t[e]);break;case fn.BYTE_COMPACTION_MODE_LATCH_6:for(;r<e[0]&&!l;){let t=e[r++];if(t<fn.TEXT_COMPACTION_MODE_LATCH)s++,a=900*a+t;else switch(t){case fn.TEXT_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH:case fn.NUMERIC_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH_6:case fn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case fn.MACRO_PDF417_TERMINATOR:r--,l=!0}if(s%5==0&&s>0){for(let t=0;t<6;++t)o.write(Number(dn(a)>>dn(8*(5-t))));a=0,s=0}}}return i.append(x.decode(o.toByteArray(),n)),r}static numericCompaction(t,e,n){let r=0,i=!1,o=new Int32Array(fn.MAX_NUMERIC_CODEWORDS);for(;e<t[0]&&!i;){let s=t[e++];if(e===t[0]&&(i=!0),s<fn.TEXT_COMPACTION_MODE_LATCH)o[r]=s,r++;else switch(s){case fn.TEXT_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH:case fn.BYTE_COMPACTION_MODE_LATCH_6:case fn.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case fn.MACRO_PDF417_TERMINATOR:e--,i=!0}(r%fn.MAX_NUMERIC_CODEWORDS==0||s===fn.NUMERIC_COMPACTION_MODE_LATCH||i)&&r>0&&(n.append(fn.decodeBase900toBase10(o,r)),r=0)}return e}static decodeBase900toBase10(t,e){let n=dn(0);for(let r=0;r<e;r++)n+=fn.EXP900[e-r-1]*dn(t[r]);let r=n.toString();if("1"!==r.charAt(0))throw new S;return r.substring(1)}}fn.TEXT_COMPACTION_MODE_LATCH=900,fn.BYTE_COMPACTION_MODE_LATCH=901,fn.NUMERIC_COMPACTION_MODE_LATCH=902,fn.BYTE_COMPACTION_MODE_LATCH_6=924,fn.ECI_USER_DEFINED=925,fn.ECI_GENERAL_PURPOSE=926,fn.ECI_CHARSET=927,fn.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,fn.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,fn.MACRO_PDF417_TERMINATOR=922,fn.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,fn.MAX_NUMERIC_CODEWORDS=15,fn.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,fn.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,fn.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,fn.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,fn.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,fn.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,fn.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,fn.PL=25,fn.LL=27,fn.AS=27,fn.ML=28,fn.AL=28,fn.PS=29,fn.PAL=29,fn.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",fn.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",fn.EXP900=un()?hn():[],fn.NUMBER_OF_SEQUENCE_CODEWORDS=2;class pn{constructor(){}static decode(t,e,n,r,i,o,s){let a,l=new Ge(t,e,n,r,i),u=null,c=null;for(let n=!0;;n=!1){if(null!=e&&(u=pn.getRowIndicatorColumn(t,l,e,!0,o,s)),null!=r&&(c=pn.getRowIndicatorColumn(t,l,r,!1,o,s)),a=pn.merge(u,c),null==a)throw D.getNotFoundInstance();let i=a.getBoundingBox();if(!n||null==i||!(i.getMinY()<l.getMinY()||i.getMaxY()>l.getMaxY()))break;l=i}a.setBoundingBox(l);let d=a.getBarcodeColumnCount()+1;a.setDetectionResultColumn(0,u),a.setDetectionResultColumn(d,c);let h=null!=u;for(let e=1;e<=d;e++){let n,r=h?e:d-e;if(void 0!==a.getDetectionResultColumn(r))continue;n=0===r||r===d?new Qe(l,0===r):new Ke(l),a.setDetectionResultColumn(r,n);let i=-1,u=i;for(let e=l.getMinY();e<=l.getMaxY();e++){if(i=pn.getStartColumn(a,r,e,h),i<0||i>l.getMaxX()){if(-1===u)continue;i=u}let c=pn.detectCodeword(t,l.getMinX(),l.getMaxX(),h,i,e,o,s);null!=c&&(n.setCodeword(e,c),u=i,o=Math.min(o,c.getWidth()),s=Math.max(s,c.getWidth()))}}return pn.createDecoderResult(a)}static merge(t,e){if(null==t&&null==e)return null;let n=pn.getBarcodeMetadata(t,e);if(null==n)return null;let r=Ge.merge(pn.adjustBoundingBox(t),pn.adjustBoundingBox(e));return new $e(n,r)}static adjustBoundingBox(t){if(null==t)return null;let e=t.getRowHeights();if(null==e)return null;let n=pn.getMax(e),r=0;for(let t of e)if(r+=n-t,t>0)break;let i=t.getCodewords();for(let t=0;r>0&&null==i[t];t++)r--;let o=0;for(let t=e.length-1;t>=0&&(o+=n-e[t],!(e[t]>0));t--);for(let t=i.length-1;o>0&&null==i[t];t--)o--;return t.getBoundingBox().addMissingRows(r,o,t.isLeft())}static getMax(t){let e=-1;for(let n of t)e=Math.max(e,n);return e}static getBarcodeMetadata(t,e){let n,r;return null==t||null==(n=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(r=e.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n}static getRowIndicatorColumn(t,e,n,r,i,o){let s=new Qe(e,r);for(let a=0;a<2;a++){let l=0===a?1:-1,u=Math.trunc(Math.trunc(n.getX()));for(let a=Math.trunc(Math.trunc(n.getY()));a<=e.getMaxY()&&a>=e.getMinY();a+=l){let e=pn.detectCodeword(t,0,t.getWidth(),r,u,a,i,o);null!=e&&(s.setCodeword(a,e),u=r?e.getStartX():e.getEndX())}}return s}static adjustCodewordCount(t,e){let n=e[0][1],r=n.getValue(),i=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-pn.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===r.length){if(i<1||i>He.MAX_CODEWORDS_IN_BARCODE)throw D.getNotFoundInstance();n.setValue(i)}else r[0]!==i&&n.setValue(i)}static createDecoderResult(t){let e=pn.createBarcodeMatrix(t);pn.adjustCodewordCount(t,e);let n=new Array,r=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),i=[],o=new Array;for(let s=0;s<t.getBarcodeRowCount();s++)for(let a=0;a<t.getBarcodeColumnCount();a++){let l=e[s][a+1].getValue(),u=s*t.getBarcodeColumnCount()+a;0===l.length?n.push(u):1===l.length?r[u]=l[0]:(o.push(u),i.push(l))}let s=new Array(i.length);for(let t=0;t<s.length;t++)s[t]=i[t];return pn.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),r,He.toIntArray(n),He.toIntArray(o),s)}static createDecoderResultFromAmbiguousValues(t,e,n,r,i){let o=new Int32Array(r.length),s=100;for(;s-- >0;){for(let t=0;t<o.length;t++)e[r[t]]=i[t][o[t]];try{return pn.decodeCodewords(e,t,n)}catch(t){if(!(t instanceof f))throw t}if(0===o.length)throw f.getChecksumInstance();for(let t=0;t<o.length;t++){if(o[t]<i[t].length-1){o[t]++;break}if(o[t]=0,t===o.length-1)throw f.getChecksumInstance()}}throw f.getChecksumInstance()}static createBarcodeMatrix(t){let e=Array.from({length:t.getBarcodeRowCount()},(()=>new Array(t.getBarcodeColumnCount()+2)));for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]=new Je;let n=0;for(let r of t.getDetectionResultColumns()){if(null!=r)for(let t of r.getCodewords())if(null!=t){let r=t.getRowNumber();if(r>=0){if(r>=e.length)continue;e[r][n].setValue(t.getValue())}}n++}return e}static isValidBarcodeColumn(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1}static getStartColumn(t,e,n,r){let i=r?1:-1,o=null;if(pn.isValidBarcodeColumn(t,e-i)&&(o=t.getDetectionResultColumn(e-i).getCodeword(n)),null!=o)return r?o.getEndX():o.getStartX();if(o=t.getDetectionResultColumn(e).getCodewordNearby(n),null!=o)return r?o.getStartX():o.getEndX();if(pn.isValidBarcodeColumn(t,e-i)&&(o=t.getDetectionResultColumn(e-i).getCodewordNearby(n)),null!=o)return r?o.getEndX():o.getStartX();let s=0;for(;pn.isValidBarcodeColumn(t,e-i);){e-=i;for(let n of t.getDetectionResultColumn(e).getCodewords())if(null!=n)return(r?n.getEndX():n.getStartX())+i*s*(n.getEndX()-n.getStartX());s++}return r?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()}static detectCodeword(t,e,n,r,i,o,s,a){i=pn.adjustCodewordStartColumn(t,e,n,r,i,o);let l,u=pn.getModuleBitCount(t,e,n,r,i,o);if(null==u)return null;let c=ot.sum(u);if(r)l=i+c;else{for(let t=0;t<u.length/2;t++){let e=u[t];u[t]=u[u.length-1-t],u[u.length-1-t]=e}l=i,i=l-c}if(!pn.checkCodewordSkew(c,s,a))return null;let d=en.getDecodedValue(u),h=He.getCodeword(d);return-1===h?null:new tn(i,l,pn.getCodewordBucketNumber(d),h)}static getModuleBitCount(t,e,n,r,i,o){let s=i,a=new Int32Array(8),l=0,u=r?1:-1,c=r;for(;(r?s<n:s>=e)&&l<a.length;)t.get(s,o)===c?(a[l]++,s+=u):(l++,c=!c);return l===a.length||s===(r?n:e)&&l===a.length-1?a:null}static getNumberOfECCodeWords(t){return 2<<t}static adjustCodewordStartColumn(t,e,n,r,i,o){let s=i,a=r?-1:1;for(let l=0;l<2;l++){for(;(r?s>=e:s<n)&&r===t.get(s,o);){if(Math.abs(i-s)>pn.CODEWORD_SKEW_SIZE)return i;s+=a}a=-a,r=!r}return s}static checkCodewordSkew(t,e,n){return e-pn.CODEWORD_SKEW_SIZE<=t&&t<=n+pn.CODEWORD_SKEW_SIZE}static decodeCodewords(t,e,n){if(0===t.length)throw S.getFormatInstance();let r=1<<e+1,i=pn.correctErrors(t,n,r);pn.verifyCodewordCount(t,r);let o=fn.decode(t,""+e);return o.setErrorsCorrected(i),o.setErasures(n.length),o}static correctErrors(t,e,n){if(null!=e&&e.length>n/2+pn.MAX_ERRORS||n<0||n>pn.MAX_EC_CODEWORDS)throw f.getChecksumInstance();return pn.errorCorrection.decode(t,n,e)}static verifyCodewordCount(t,e){if(t.length<4)throw S.getFormatInstance();let n=t[0];if(n>t.length)throw S.getFormatInstance();if(0===n){if(!(e<t.length))throw S.getFormatInstance();t[0]=t.length-e}}static getBitCountForCodeword(t){let e=new Int32Array(8),n=0,r=e.length-1;for(;!((1&t)!==n&&(n=1&t,r--,r<0));)e[r]++,t>>=1;return e}static getCodewordBucketNumber(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)}static getCodewordBucketNumber_number(t){return pn.getCodewordBucketNumber(pn.getBitCountForCodeword(t))}static getCodewordBucketNumber_Int32Array(t){return(t[0]-t[2]+t[4]-t[6]+9)%9}static toString(t){let e=new Ze;for(let n=0;n<t.length;n++){e.format("Row %2d: ",n);for(let r=0;r<t[n].length;r++){let i=t[n][r];0===i.getValue().length?e.format("        ",null):e.format("%4d(%2d)",i.getValue()[0],i.getConfidence(i.getValue()[0]))}e.format("%n")}return e.toString()}}pn.CODEWORD_SKEW_SIZE=2,pn.MAX_ERRORS=3,pn.MAX_EC_CODEWORDS=512,pn.errorCorrection=new qe;class mn{decode(t,e=null){let n=mn.decode(t,e,!1);if(null==n||0===n.length||null==n[0])throw D.getNotFoundInstance();return n[0]}decodeMultiple(t,e=null){try{return mn.decode(t,e,!0)}catch(t){if(t instanceof S||t instanceof f)throw D.getNotFoundInstance();throw t}}static decode(t,e,n){const r=new Array,i=We.detectMultiple(t,e,n);for(const t of i.getPoints()){const e=pn.decode(i.getBits(),t[4],t[5],t[6],t[7],mn.getMinCodewordWidth(t),mn.getMaxCodewordWidth(t)),n=new H(e.getText(),e.getRawBytes(),void 0,t,W.PDF_417);n.putMetadata(Z.ERROR_CORRECTION_LEVEL,e.getECLevel());const o=e.getOther();null!=o&&n.putMetadata(Z.PDF417_EXTRA_METADATA,o),r.push(n)}return r.map((t=>t))}static getMaxWidth(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMinWidth(t,e){return null==t||null==e?v.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMaxCodewordWidth(t){return Math.floor(Math.max(Math.max(mn.getMaxWidth(t[0],t[4]),mn.getMaxWidth(t[6],t[2])*He.MODULES_IN_CODEWORD/He.MODULES_IN_STOP_PATTERN),Math.max(mn.getMaxWidth(t[1],t[5]),mn.getMaxWidth(t[7],t[3])*He.MODULES_IN_CODEWORD/He.MODULES_IN_STOP_PATTERN)))}static getMinCodewordWidth(t){return Math.floor(Math.min(Math.min(mn.getMinWidth(t[0],t[4]),mn.getMinWidth(t[6],t[2])*He.MODULES_IN_CODEWORD/He.MODULES_IN_STOP_PATTERN),Math.min(mn.getMinWidth(t[1],t[5]),mn.getMinWidth(t[7],t[3])*He.MODULES_IN_CODEWORD/He.MODULES_IN_STOP_PATTERN)))}reset(){}}class gn extends u{}gn.kind="ReaderException";class yn{constructor(t,e){this.verbose=!0===t,e&&this.setHints(e)}decode(t,e){return e&&this.setHints(e),this.decodeInternal(t)}decodeWithState(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)}setHints(t){this.hints=t;const n=!e(t)&&!0===t.get(M.TRY_HARDER),r=e(t)?null:t.get(M.POSSIBLE_FORMATS),i=new Array;if(!e(r)){const e=r.some((t=>t===W.UPC_A||t===W.UPC_E||t===W.EAN_13||t===W.EAN_8||t===W.CODABAR||t===W.CODE_39||t===W.CODE_93||t===W.CODE_128||t===W.ITF||t===W.RSS_14||t===W.RSS_EXPANDED));e&&!n&&i.push(new le(t,this.verbose)),r.includes(W.QR_CODE)&&i.push(new Be),r.includes(W.DATA_MATRIX)&&i.push(new ve),r.includes(W.AZTEC)&&i.push(new yt),r.includes(W.PDF_417)&&i.push(new mn),e&&n&&i.push(new le(t,this.verbose))}0===i.length&&(n||i.push(new le(t,this.verbose)),i.push(new Be),i.push(new ve),i.push(new yt),i.push(new mn),n&&i.push(new le(t,this.verbose))),this.readers=i}reset(){if(null!==this.readers)for(const t of this.readers)t.reset()}decodeInternal(t){if(null===this.readers)throw new gn("No readers where selected, nothing can be read.");for(const e of this.readers)try{return e.decode(t,this.hints)}catch(t){if(t instanceof gn)continue}throw new D("No MultiFormat Readers were able to detect the code.")}}class _n extends B{constructor(t=null,e=500){const n=new yn;n.setHints(t),super(n,e)}decodeBitmap(t){return this.reader.decodeWithState(t)}}class vn extends B{constructor(t=500){super(new mn,t)}}class bn extends B{constructor(t=500){super(new Be,t)}}var wn;!function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.MIN_SIZE=3]="MIN_SIZE",t[t.MAX_SIZE=4]="MAX_SIZE",t[t.MARGIN=5]="MARGIN",t[t.PDF417_COMPACT=6]="PDF417_COMPACT",t[t.PDF417_COMPACTION=7]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=9]="AZTEC_LAYERS",t[t.QR_VERSION=10]="QR_VERSION"}(wn||(wn={}));var Mn=wn;class Sn{constructor(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Q(t,Int32Array.from([1])))}buildGenerator(t){const e=this.cachedGenerators;if(t>=e.length){let n=e[e.length-1];const r=this.field;for(let i=e.length;i<=t;i++){const t=n.multiply(new Q(r,Int32Array.from([1,r.exp(i-1+r.getGeneratorBase())])));e.push(t),n=t}}return e[t]}encode(t,e){if(0===e)throw new d("No error correction bytes");const n=t.length-e;if(n<=0)throw new d("No data bytes provided");const r=this.buildGenerator(e),i=new Int32Array(n);m.arraycopy(t,0,i,0,n);let o=new Q(this.field,i);o=o.multiplyByMonomial(e,1);const s=o.divide(r)[1].getCoefficients(),a=e-s.length;for(let e=0;e<a;e++)t[n+e]=0;m.arraycopy(s,0,t,n+a,s.length)}}class Cn{constructor(){}static applyMaskPenaltyRule1(t){return Cn.applyMaskPenaltyRule1Internal(t,!0)+Cn.applyMaskPenaltyRule1Internal(t,!1)}static applyMaskPenaltyRule2(t){let e=0;const n=t.getArray(),r=t.getWidth(),i=t.getHeight();for(let t=0;t<i-1;t++){const i=n[t];for(let o=0;o<r-1;o++){const r=i[o];r===i[o+1]&&r===n[t+1][o]&&r===n[t+1][o+1]&&e++}}return Cn.N2*e}static applyMaskPenaltyRule3(t){let e=0;const n=t.getArray(),r=t.getWidth(),i=t.getHeight();for(let t=0;t<i;t++)for(let o=0;o<r;o++){const s=n[t];o+6<r&&1===s[o]&&0===s[o+1]&&1===s[o+2]&&1===s[o+3]&&1===s[o+4]&&0===s[o+5]&&1===s[o+6]&&(Cn.isWhiteHorizontal(s,o-4,o)||Cn.isWhiteHorizontal(s,o+7,o+11))&&e++,t+6<i&&1===n[t][o]&&0===n[t+1][o]&&1===n[t+2][o]&&1===n[t+3][o]&&1===n[t+4][o]&&0===n[t+5][o]&&1===n[t+6][o]&&(Cn.isWhiteVertical(n,o,t-4,t)||Cn.isWhiteVertical(n,o,t+7,t+11))&&e++}return e*Cn.N3}static isWhiteHorizontal(t,e,n){e=Math.max(e,0),n=Math.min(n,t.length);for(let r=e;r<n;r++)if(1===t[r])return!1;return!0}static isWhiteVertical(t,e,n,r){n=Math.max(n,0),r=Math.min(r,t.length);for(let i=n;i<r;i++)if(1===t[i][e])return!1;return!0}static applyMaskPenaltyRule4(t){let e=0;const n=t.getArray(),r=t.getWidth(),i=t.getHeight();for(let t=0;t<i;t++){const i=n[t];for(let t=0;t<r;t++)1===i[t]&&e++}const o=t.getHeight()*t.getWidth();return Math.floor(10*Math.abs(2*e-o)/o)*Cn.N4}static getDataMaskBit(t,e,n){let r,i;switch(t){case 0:r=n+e&1;break;case 1:r=1&n;break;case 2:r=e%3;break;case 3:r=(n+e)%3;break;case 4:r=Math.floor(n/2)+Math.floor(e/3)&1;break;case 5:i=n*e,r=(1&i)+i%3;break;case 6:i=n*e,r=(1&i)+i%3&1;break;case 7:i=n*e,r=i%3+(n+e&1)&1;break;default:throw new d("Invalid mask pattern: "+t)}return 0===r}static applyMaskPenaltyRule1Internal(t,e){let n=0;const r=e?t.getHeight():t.getWidth(),i=e?t.getWidth():t.getHeight(),o=t.getArray();for(let t=0;t<r;t++){let r=0,s=-1;for(let a=0;a<i;a++){const i=e?o[t][a]:o[a][t];i===s?r++:(r>=5&&(n+=Cn.N1+(r-5)),r=1,s=i)}r>=5&&(n+=Cn.N1+(r-5))}return n}}Cn.N1=3,Cn.N2=3,Cn.N3=40,Cn.N4=10;class An{constructor(t,e){this.width=t,this.height=e;const n=new Array(e);for(let r=0;r!==e;r++)n[r]=new Uint8Array(t);this.bytes=n}getHeight(){return this.height}getWidth(){return this.width}get(t,e){return this.bytes[e][t]}getArray(){return this.bytes}setNumber(t,e,n){this.bytes[e][t]=n}setBoolean(t,e,n){this.bytes[e][t]=n?1:0}clear(t){for(const e of this.bytes)_.fill(e,t)}equals(t){if(!(t instanceof An))return!1;const e=t;if(this.width!==e.width)return!1;if(this.height!==e.height)return!1;for(let t=0,n=this.height;t<n;++t){const n=this.bytes[t],r=e.bytes[t];for(let t=0,e=this.width;t<e;++t)if(n[t]!==r[t])return!1}return!0}toString(){const t=new L;for(let e=0,n=this.height;e<n;++e){const n=this.bytes[e];for(let e=0,r=this.width;e<r;++e)switch(n[e]){case 0:t.append(" 0");break;case 1:t.append(" 1");break;default:t.append("  ")}t.append("\n")}return t.toString()}}class xn{constructor(){this.maskPattern=-1}getMode(){return this.mode}getECLevel(){return this.ecLevel}getVersion(){return this.version}getMaskPattern(){return this.maskPattern}getMatrix(){return this.matrix}toString(){const t=new L;return t.append("<<\n"),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append("\n ecLevel: "),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append("\n version: "),t.append(this.version?this.version.toString():"null"),t.append("\n maskPattern: "),t.append(this.maskPattern.toString()),this.matrix?(t.append("\n matrix:\n"),t.append(this.matrix.toString())):t.append("\n matrix: null\n"),t.append(">>\n"),t.toString()}setMode(t){this.mode=t}setECLevel(t){this.ecLevel=t}setVersion(t){this.version=t}setMaskPattern(t){this.maskPattern=t}setMatrix(t){this.matrix=t}static isValidMaskPattern(t){return t>=0&&t<xn.NUM_MASK_PATTERNS}}xn.NUM_MASK_PATTERNS=8;class En extends u{}En.kind="WriterException";class Ln{constructor(){}static clearMatrix(t){t.clear(255)}static buildMatrix(t,e,n,r,i){Ln.clearMatrix(i),Ln.embedBasicPatterns(n,i),Ln.embedTypeInfo(e,r,i),Ln.maybeEmbedVersionInfo(n,i),Ln.embedDataBits(t,r,i)}static embedBasicPatterns(t,e){Ln.embedPositionDetectionPatternsAndSeparators(e),Ln.embedDarkDotAtLeftBottomCorner(e),Ln.maybeEmbedPositionAdjustmentPatterns(t,e),Ln.embedTimingPatterns(e)}static embedTypeInfo(t,e,n){const r=new b;Ln.makeTypeInfoBits(t,e,r);for(let t=0,e=r.getSize();t<e;++t){const e=r.get(r.getSize()-1-t),i=Ln.TYPE_INFO_COORDINATES[t],o=i[0],s=i[1];if(n.setBoolean(o,s,e),t<8){const r=n.getWidth()-t-1,i=8;n.setBoolean(r,i,e)}else{const r=8,i=n.getHeight()-7+(t-8);n.setBoolean(r,i,e)}}}static maybeEmbedVersionInfo(t,e){if(t.getVersionNumber()<7)return;const n=new b;Ln.makeVersionInfoBits(t,n);let r=17;for(let t=0;t<6;++t)for(let i=0;i<3;++i){const o=n.get(r);r--,e.setBoolean(t,e.getHeight()-11+i,o),e.setBoolean(e.getHeight()-11+i,t,o)}}static embedDataBits(t,e,n){let r=0,i=-1,o=n.getWidth()-1,s=n.getHeight()-1;for(;o>0;){for(6===o&&(o-=1);s>=0&&s<n.getHeight();){for(let i=0;i<2;++i){const a=o-i;if(!Ln.isEmpty(n.get(a,s)))continue;let l;r<t.getSize()?(l=t.get(r),++r):l=!1,255!==e&&Cn.getDataMaskBit(e,a,s)&&(l=!l),n.setBoolean(a,s,l)}s+=i}i=-i,s+=i,o-=2}if(r!==t.getSize())throw new En("Not all bits consumed: "+r+"/"+t.getSize())}static findMSBSet(t){return 32-v.numberOfLeadingZeros(t)}static calculateBCHCode(t,e){if(0===e)throw new d("0 polynomial");const n=Ln.findMSBSet(e);for(t<<=n-1;Ln.findMSBSet(t)>=n;)t^=e<<Ln.findMSBSet(t)-n;return t}static makeTypeInfoBits(t,e,n){if(!xn.isValidMaskPattern(e))throw new En("Invalid mask pattern");const r=t.getBits()<<3|e;n.appendBits(r,5);const i=Ln.calculateBCHCode(r,Ln.TYPE_INFO_POLY);n.appendBits(i,10);const o=new b;if(o.appendBits(Ln.TYPE_INFO_MASK_PATTERN,15),n.xor(o),15!==n.getSize())throw new En("should not happen but we got: "+n.getSize())}static makeVersionInfoBits(t,e){e.appendBits(t.getVersionNumber(),6);const n=Ln.calculateBCHCode(t.getVersionNumber(),Ln.VERSION_INFO_POLY);if(e.appendBits(n,12),18!==e.getSize())throw new En("should not happen but we got: "+e.getSize())}static isEmpty(t){return 255===t}static embedTimingPatterns(t){for(let e=8;e<t.getWidth()-8;++e){const n=(e+1)%2;Ln.isEmpty(t.get(e,6))&&t.setNumber(e,6,n),Ln.isEmpty(t.get(6,e))&&t.setNumber(6,e,n)}}static embedDarkDotAtLeftBottomCorner(t){if(0===t.get(8,t.getHeight()-8))throw new En;t.setNumber(8,t.getHeight()-8,1)}static embedHorizontalSeparationPattern(t,e,n){for(let r=0;r<8;++r){if(!Ln.isEmpty(n.get(t+r,e)))throw new En;n.setNumber(t+r,e,0)}}static embedVerticalSeparationPattern(t,e,n){for(let r=0;r<7;++r){if(!Ln.isEmpty(n.get(t,e+r)))throw new En;n.setNumber(t,e+r,0)}}static embedPositionAdjustmentPattern(t,e,n){for(let r=0;r<5;++r){const i=Ln.POSITION_ADJUSTMENT_PATTERN[r];for(let o=0;o<5;++o)n.setNumber(t+o,e+r,i[o])}}static embedPositionDetectionPattern(t,e,n){for(let r=0;r<7;++r){const i=Ln.POSITION_DETECTION_PATTERN[r];for(let o=0;o<7;++o)n.setNumber(t+o,e+r,i[o])}}static embedPositionDetectionPatternsAndSeparators(t){const e=Ln.POSITION_DETECTION_PATTERN[0].length;Ln.embedPositionDetectionPattern(0,0,t),Ln.embedPositionDetectionPattern(t.getWidth()-e,0,t),Ln.embedPositionDetectionPattern(0,t.getWidth()-e,t);const n=8;Ln.embedHorizontalSeparationPattern(0,n-1,t),Ln.embedHorizontalSeparationPattern(t.getWidth()-n,n-1,t),Ln.embedHorizontalSeparationPattern(0,t.getWidth()-n,t);const r=7;Ln.embedVerticalSeparationPattern(r,0,t),Ln.embedVerticalSeparationPattern(t.getHeight()-r-1,0,t),Ln.embedVerticalSeparationPattern(r,t.getHeight()-r,t)}static maybeEmbedPositionAdjustmentPatterns(t,e){if(t.getVersionNumber()<2)return;const n=t.getVersionNumber()-1,r=Ln.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[n];for(let t=0,n=r.length;t!==n;t++){const i=r[t];if(i>=0)for(let t=0;t!==n;t++){const n=r[t];n>=0&&Ln.isEmpty(e.get(n,i))&&Ln.embedPositionAdjustmentPattern(n-2,i-2,e)}}}}Ln.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),Ln.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),Ln.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),Ln.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),Ln.VERSION_INFO_POLY=7973,Ln.TYPE_INFO_POLY=1335,Ln.TYPE_INFO_MASK_PATTERN=21522;class Tn{constructor(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}getDataBytes(){return this.dataBytes}getErrorCorrectionBytes(){return this.errorCorrectionBytes}}class Dn{constructor(){}static calculateMaskPenalty(t){return Cn.applyMaskPenaltyRule1(t)+Cn.applyMaskPenaltyRule2(t)+Cn.applyMaskPenaltyRule3(t)+Cn.applyMaskPenaltyRule4(t)}static encode(t,e,n=null){let r=Dn.DEFAULT_BYTE_MODE_ENCODING;const i=null!==n&&void 0!==n.get(Mn.CHARACTER_SET);i&&(r=n.get(Mn.CHARACTER_SET).toString());const o=this.chooseMode(t,r),s=new b;if(o===Te.BYTE&&(i||Dn.DEFAULT_BYTE_MODE_ENCODING!==r)){const t=C.getCharacterSetECIByName(r);void 0!==t&&this.appendECI(t,s)}this.appendModeInfo(o,s);const a=new b;let l;if(this.appendBytes(t,o,a,r),null!==n&&void 0!==n.get(Mn.QR_VERSION)){const t=Number.parseInt(n.get(Mn.QR_VERSION).toString(),10);l=Ae.getVersionForNumber(t);const r=this.calculateBitsNeeded(o,s,a,l);if(!this.willFit(r,l,e))throw new En("Data too big for requested version")}else l=this.recommendVersion(e,o,s,a);const u=new b;u.appendBitArray(s);const c=o===Te.BYTE?a.getSizeInBytes():t.length;this.appendLengthInfo(c,l,o,u),u.appendBitArray(a);const d=l.getECBlocksForLevel(e),h=l.getTotalCodewords()-d.getTotalECCodewords();this.terminateBits(h,u);const f=this.interleaveWithECBytes(u,l.getTotalCodewords(),h,d.getNumBlocks()),p=new xn;p.setECLevel(e),p.setMode(o),p.setVersion(l);const m=l.getDimensionForVersion(),g=new An(m,m),y=this.chooseMaskPattern(f,e,l,g);return p.setMaskPattern(y),Ln.buildMatrix(f,e,l,y,g),p.setMatrix(g),p}static recommendVersion(t,e,n,r){const i=this.calculateBitsNeeded(e,n,r,Ae.getVersionForNumber(1)),o=this.chooseVersion(i,t),s=this.calculateBitsNeeded(e,n,r,o);return this.chooseVersion(s,t)}static calculateBitsNeeded(t,e,n,r){return e.getSize()+t.getCharacterCountBits(r)+n.getSize()}static getAlphanumericCode(t){return t<Dn.ALPHANUMERIC_TABLE.length?Dn.ALPHANUMERIC_TABLE[t]:-1}static chooseMode(t,e=null){if(C.SJIS.getName()===e&&this.isOnlyDoubleByteKanji(t))return Te.KANJI;let n=!1,r=!1;for(let e=0,i=t.length;e<i;++e){const i=t.charAt(e);if(Dn.isDigit(i))n=!0;else{if(-1===this.getAlphanumericCode(i.charCodeAt(0)))return Te.BYTE;r=!0}}return r?Te.ALPHANUMERIC:n?Te.NUMERIC:Te.BYTE}static isOnlyDoubleByteKanji(t){let e;try{e=x.encode(t,C.SJIS)}catch(t){return!1}const n=e.length;if(n%2!=0)return!1;for(let t=0;t<n;t+=2){const n=255&e[t];if((n<129||n>159)&&(n<224||n>235))return!1}return!0}static chooseMaskPattern(t,e,n,r){let i=Number.MAX_SAFE_INTEGER,o=-1;for(let s=0;s<xn.NUM_MASK_PATTERNS;s++){Ln.buildMatrix(t,e,n,s,r);let a=this.calculateMaskPenalty(r);a<i&&(i=a,o=s)}return o}static chooseVersion(t,e){for(let n=1;n<=40;n++){const r=Ae.getVersionForNumber(n);if(Dn.willFit(t,r,e))return r}throw new En("Data too big")}static willFit(t,e,n){return e.getTotalCodewords()-e.getECBlocksForLevel(n).getTotalECCodewords()>=(t+7)/8}static terminateBits(t,e){const n=8*t;if(e.getSize()>n)throw new En("data bits cannot fit in the QR Code"+e.getSize()+" > "+n);for(let t=0;t<4&&e.getSize()<n;++t)e.appendBit(!1);const r=7&e.getSize();if(r>0)for(let t=r;t<8;t++)e.appendBit(!1);const i=t-e.getSizeInBytes();for(let t=0;t<i;++t)e.appendBits(0==(1&t)?236:17,8);if(e.getSize()!==n)throw new En("Bits size does not equal capacity")}static getNumDataBytesAndNumECBytesForBlockID(t,e,n,r,i,o){if(r>=n)throw new En("Block ID too large");const s=t%n,a=n-s,l=Math.floor(t/n),u=l+1,c=Math.floor(e/n),d=c+1,h=l-c,f=u-d;if(h!==f)throw new En("EC bytes mismatch");if(n!==a+s)throw new En("RS blocks mismatch");if(t!==(c+h)*a+(d+f)*s)throw new En("Total bytes mismatch");r<a?(i[0]=c,o[0]=h):(i[0]=d,o[0]=f)}static interleaveWithECBytes(t,e,n,r){if(t.getSizeInBytes()!==n)throw new En("Number of bits and data bytes does not match");let i=0,o=0,s=0;const a=new Array;for(let l=0;l<r;++l){const u=new Int32Array(1),c=new Int32Array(1);Dn.getNumDataBytesAndNumECBytesForBlockID(e,n,r,l,u,c);const d=u[0],h=new Uint8Array(d);t.toBytes(8*i,h,0,d);const f=Dn.generateECBytes(h,c[0]);a.push(new Tn(h,f)),o=Math.max(o,d),s=Math.max(s,f.length),i+=u[0]}if(n!==i)throw new En("Data bytes does not match offset");const l=new b;for(let t=0;t<o;++t)for(const e of a){const n=e.getDataBytes();t<n.length&&l.appendBits(n[t],8)}for(let t=0;t<s;++t)for(const e of a){const n=e.getErrorCorrectionBytes();t<n.length&&l.appendBits(n[t],8)}if(e!==l.getSizeInBytes())throw new En("Interleaving error: "+e+" and "+l.getSizeInBytes()+" differ.");return l}static generateECBytes(t,e){const n=t.length,r=new Int32Array(n+e);for(let e=0;e<n;e++)r[e]=255&t[e];new Sn(tt.QR_CODE_FIELD_256).encode(r,e);const i=new Uint8Array(e);for(let t=0;t<e;t++)i[t]=r[n+t];return i}static appendModeInfo(t,e){e.appendBits(t.getBits(),4)}static appendLengthInfo(t,e,n,r){const i=n.getCharacterCountBits(e);if(t>=1<<i)throw new En(t+" is bigger than "+((1<<i)-1));r.appendBits(t,i)}static appendBytes(t,e,n,r){switch(e){case Te.NUMERIC:Dn.appendNumericBytes(t,n);break;case Te.ALPHANUMERIC:Dn.appendAlphanumericBytes(t,n);break;case Te.BYTE:Dn.append8BitBytes(t,n,r);break;case Te.KANJI:Dn.appendKanjiBytes(t,n);break;default:throw new En("Invalid mode: "+e)}}static getDigit(t){return t.charCodeAt(0)-48}static isDigit(t){const e=Dn.getDigit(t);return e>=0&&e<=9}static appendNumericBytes(t,e){const n=t.length;let r=0;for(;r<n;){const i=Dn.getDigit(t.charAt(r));if(r+2<n){const n=Dn.getDigit(t.charAt(r+1)),o=Dn.getDigit(t.charAt(r+2));e.appendBits(100*i+10*n+o,10),r+=3}else if(r+1<n){const n=Dn.getDigit(t.charAt(r+1));e.appendBits(10*i+n,7),r+=2}else e.appendBits(i,4),r++}}static appendAlphanumericBytes(t,e){const n=t.length;let r=0;for(;r<n;){const i=Dn.getAlphanumericCode(t.charCodeAt(r));if(-1===i)throw new En;if(r+1<n){const n=Dn.getAlphanumericCode(t.charCodeAt(r+1));if(-1===n)throw new En;e.appendBits(45*i+n,11),r+=2}else e.appendBits(i,6),r++}}static append8BitBytes(t,e,n){let r;try{r=x.encode(t,n)}catch(t){throw new En(t)}for(let t=0,n=r.length;t!==n;t++){const n=r[t];e.appendBits(n,8)}}static appendKanjiBytes(t,e){let n;try{n=x.encode(t,C.SJIS)}catch(t){throw new En(t)}const r=n.length;for(let t=0;t<r;t+=2){const r=(255&n[t])<<8&4294967295|255&n[t+1];let i=-1;if(r>=33088&&r<=40956?i=r-33088:r>=57408&&r<=60351&&(i=r-49472),-1===i)throw new En("Invalid byte sequence");const o=192*(i>>8)+(255&i);e.appendBits(o,13)}}static appendECI(t,e){e.appendBits(Te.ECI.getBits(),4),e.appendBits(t.getValue(),8)}}Dn.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),Dn.DEFAULT_BYTE_MODE_ENCODING=C.UTF8.getName();class kn{write(t,e,n,r=null){if(0===t.length)throw new d("Found empty contents");if(e<0||n<0)throw new d("Requested dimensions are too small: "+e+"x"+n);let i=we.L,o=kn.QUIET_ZONE_SIZE;null!==r&&(void 0!==r.get(Mn.ERROR_CORRECTION)&&(i=we.fromString(r.get(Mn.ERROR_CORRECTION).toString())),void 0!==r.get(Mn.MARGIN)&&(o=Number.parseInt(r.get(Mn.MARGIN).toString(),10)));const s=Dn.encode(t,i,r);return this.renderResult(s,e,n,o)}writeToDom(t,e,n,r,i=null){"string"==typeof t&&(t=document.querySelector(t));const o=this.write(e,n,r,i);t&&t.appendChild(o)}renderResult(t,e,n,r){const i=t.getMatrix();if(null===i)throw new nt;const o=i.getWidth(),s=i.getHeight(),a=o+2*r,l=s+2*r,u=Math.max(e,a),c=Math.max(n,l),d=Math.min(Math.floor(u/a),Math.floor(c/l)),h=Math.floor((u-o*d)/2),f=Math.floor((c-s*d)/2),p=this.createSVGElement(u,c);for(let t=0,e=f;t<s;t++,e+=d)for(let n=0,r=h;n<o;n++,r+=d)if(1===i.get(n,t)){const t=this.createSvgRectElement(r,e,d,d);p.appendChild(t)}return p}createSVGElement(t,e){const n=document.createElementNS(kn.SVG_NS,"svg");return n.setAttributeNS(null,"height",t.toString()),n.setAttributeNS(null,"width",e.toString()),n}createSvgRectElement(t,e,n,r){const i=document.createElementNS(kn.SVG_NS,"rect");return i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",e.toString()),i.setAttributeNS(null,"height",n.toString()),i.setAttributeNS(null,"width",r.toString()),i.setAttributeNS(null,"fill","#000000"),i}}kn.QUIET_ZONE_SIZE=4,kn.SVG_NS="http://www.w3.org/2000/svg";class On{encode(t,e,n,r,i){if(0===t.length)throw new d("Found empty contents");if(e!==W.QR_CODE)throw new d("Can only encode QR_CODE, but got "+e);if(n<0||r<0)throw new d(`Requested dimensions are too small: ${n}x${r}`);let o=we.L,s=On.QUIET_ZONE_SIZE;null!==i&&(void 0!==i.get(Mn.ERROR_CORRECTION)&&(o=we.fromString(i.get(Mn.ERROR_CORRECTION).toString())),void 0!==i.get(Mn.MARGIN)&&(s=Number.parseInt(i.get(Mn.MARGIN).toString(),10)));const a=Dn.encode(t,o,i);return On.renderResult(a,n,r,s)}static renderResult(t,e,n,r){const i=t.getMatrix();if(null===i)throw new nt;const o=i.getWidth(),s=i.getHeight(),a=o+2*r,l=s+2*r,u=Math.max(e,a),c=Math.max(n,l),d=Math.min(Math.floor(u/a),Math.floor(c/l)),h=Math.floor((u-o*d)/2),f=Math.floor((c-s*d)/2),p=new T(u,c);for(let t=0,e=f;t<s;t++,e+=d)for(let n=0,r=h;n<o;n++,r+=d)1===i.get(n,t)&&p.setRegion(r,e,d,d);return p}}On.QUIET_ZONE_SIZE=4;class In{encode(t,e,n,r,i){let o;if(e!==W.QR_CODE)throw new d("No encoder available for format "+e);return o=new On,o.encode(t,e,n,r,i)}}class Nn extends I{constructor(t,e,n,r,i,o,s,a){if(super(o,s),this.yuvData=t,this.dataWidth=e,this.dataHeight=n,this.left=r,this.top=i,r+o>e||i+s>n)throw new d("Crop rectangle does not fit within image data.");a&&this.reverseHorizontal(o,s)}getRow(t,e){if(t<0||t>=this.getHeight())throw new d("Requested row is outside the image: "+t);const n=this.getWidth();(null==e||e.length<n)&&(e=new Uint8ClampedArray(n));const r=(t+this.top)*this.dataWidth+this.left;return m.arraycopy(this.yuvData,r,e,0,n),e}getMatrix(){const t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.yuvData;const n=t*e,r=new Uint8ClampedArray(n);let i=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return m.arraycopy(this.yuvData,i,r,0,n),r;for(let n=0;n<e;n++){const e=n*t;m.arraycopy(this.yuvData,i,r,e,t),i+=this.dataWidth}return r}isCropSupported(){return!0}crop(t,e,n,r){return new Nn(this.yuvData,this.dataWidth,this.dataHeight,this.left+t,this.top+e,n,r,!1)}renderThumbnail(){const t=this.getWidth()/Nn.THUMBNAIL_SCALE_FACTOR,e=this.getHeight()/Nn.THUMBNAIL_SCALE_FACTOR,n=new Int32Array(t*e),r=this.yuvData;let i=this.top*this.dataWidth+this.left;for(let o=0;o<e;o++){const e=o*t;for(let o=0;o<t;o++){const t=255&r[i+o*Nn.THUMBNAIL_SCALE_FACTOR];n[e+o]=4278190080|65793*t}i+=this.dataWidth*Nn.THUMBNAIL_SCALE_FACTOR}return n}getThumbnailWidth(){return this.getWidth()/Nn.THUMBNAIL_SCALE_FACTOR}getThumbnailHeight(){return this.getHeight()/Nn.THUMBNAIL_SCALE_FACTOR}reverseHorizontal(t,e){const n=this.yuvData;for(let r=0,i=this.top*this.dataWidth+this.left;r<e;r++,i+=this.dataWidth){const e=i+t/2;for(let r=i,o=i+t-1;r<e;r++,o--){const t=n[r];n[r]=n[o],n[o]=t}}}invert(){return new N(this)}}Nn.THUMBNAIL_SCALE_FACTOR=2;class Pn extends I{constructor(t,e,n,r,i,o,s){if(super(e,n),this.dataWidth=r,this.dataHeight=i,this.left=o,this.top=s,4===t.BYTES_PER_ELEMENT){const r=e*n,i=new Uint8ClampedArray(r);for(let e=0;e<r;e++){const n=t[e],r=n>>16&255,o=n>>7&510,s=255&n;i[e]=(r+o+s)/4&255}this.luminances=i}else this.luminances=t;if(void 0===r&&(this.dataWidth=e),void 0===i&&(this.dataHeight=n),void 0===o&&(this.left=0),void 0===s&&(this.top=0),this.left+e>this.dataWidth||this.top+n>this.dataHeight)throw new d("Crop rectangle does not fit within image data.")}getRow(t,e){if(t<0||t>=this.getHeight())throw new d("Requested row is outside the image: "+t);const n=this.getWidth();(null==e||e.length<n)&&(e=new Uint8ClampedArray(n));const r=(t+this.top)*this.dataWidth+this.left;return m.arraycopy(this.luminances,r,e,0,n),e}getMatrix(){const t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.luminances;const n=t*e,r=new Uint8ClampedArray(n);let i=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return m.arraycopy(this.luminances,i,r,0,n),r;for(let n=0;n<e;n++){const e=n*t;m.arraycopy(this.luminances,i,r,e,t),i+=this.dataWidth}return r}isCropSupported(){return!0}crop(t,e,n,r){return new Pn(this.luminances,n,r,this.dataWidth,this.dataHeight,this.left+t,this.top+e)}invert(){return new N(this)}}class Rn extends C{static forName(t){return this.getCharacterSetECIByName(t)}}class Yn{}Yn.ISO_8859_1=C.ISO8859_1;class jn{isCompact(){return this.compact}setCompact(t){this.compact=t}getSize(){return this.size}setSize(t){this.size=t}getLayers(){return this.layers}setLayers(t){this.layers=t}getCodeWords(){return this.codeWords}setCodeWords(t){this.codeWords=t}getMatrix(){return this.matrix}setMatrix(t){this.matrix=t}}class Bn{static singletonList(t){return[t]}static min(t,e){return t.sort(e)[0]}}class Hn{constructor(t){this.previous=t}getPrevious(){return this.previous}}class Fn extends Hn{constructor(t,e,n){super(t),this.value=e,this.bitCount=n}appendTo(t,e){t.appendBits(this.value,this.bitCount)}add(t,e){return new Fn(this,t,e)}addBinaryShift(t,e){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new Fn(this,t,e)}toString(){let t=this.value&(1<<this.bitCount)-1;return t|=1<<this.bitCount,"<"+v.toBinaryString(t|1<<this.bitCount).substring(1)+">"}}class Wn extends Fn{constructor(t,e,n){super(t,0,0),this.binaryShiftStart=e,this.binaryShiftByteCount=n}appendTo(t,e){for(let n=0;n<this.binaryShiftByteCount;n++)(0===n||31===n&&this.binaryShiftByteCount<=62)&&(t.appendBits(31,5),this.binaryShiftByteCount>62?t.appendBits(this.binaryShiftByteCount-31,16):0===n?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+n],8)}addBinaryShift(t,e){return new Wn(this,t,e)}toString(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"}}function Un(t,e,n){return new Wn(t,e,n)}function zn(t,e,n){return new Fn(t,e,n)}const Vn=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],qn=0,Gn=1,Xn=2,Zn=3,Kn=4,Jn=new Fn(null,0,0),Qn=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])];function $n(t){for(let e of t)_.fill(e,-1);return t[qn][Kn]=0,t[Gn][Kn]=0,t[Gn][qn]=28,t[Zn][Kn]=0,t[Xn][Kn]=0,t[Xn][qn]=15,t}const tr=$n(_.createInt32Array(6,6));class er{constructor(t,e,n,r){this.token=t,this.mode=e,this.binaryShiftByteCount=n,this.bitCount=r}getMode(){return this.mode}getToken(){return this.token}getBinaryShiftByteCount(){return this.binaryShiftByteCount}getBitCount(){return this.bitCount}latchAndAppend(t,e){let n=this.bitCount,r=this.token;if(t!==this.mode){let e=Qn[this.mode][t];r=zn(r,65535&e,e>>16),n+=e>>16}let i=t===Xn?4:5;return r=zn(r,e,i),new er(r,t,0,n+i)}shiftAndAppend(t,e){let n=this.token,r=this.mode===Xn?4:5;return n=zn(n,tr[this.mode][t],r),n=zn(n,e,5),new er(n,this.mode,0,this.bitCount+r+5)}addBinaryShiftChar(t){let e=this.token,n=this.mode,r=this.bitCount;if(this.mode===Kn||this.mode===Xn){let t=Qn[n][qn];e=zn(e,65535&t,t>>16),r+=t>>16,n=qn}let i=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,o=new er(e,n,this.binaryShiftByteCount+1,r+i);return 2078===o.binaryShiftByteCount&&(o=o.endBinaryShift(t+1)),o}endBinaryShift(t){if(0===this.binaryShiftByteCount)return this;let e=this.token;return e=Un(e,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new er(e,this.mode,0,this.bitCount)}isBetterThanOrEqualTo(t){let e=this.bitCount+(Qn[this.mode][t.mode]>>16);return this.binaryShiftByteCount<t.binaryShiftByteCount?e+=er.calculateBinaryShiftCost(t)-er.calculateBinaryShiftCost(this):this.binaryShiftByteCount>t.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(e+=10),e<=t.bitCount}toBitArray(t){let e=[];for(let n=this.endBinaryShift(t.length).token;null!==n;n=n.getPrevious())e.unshift(n);let n=new b;for(const r of e)r.appendTo(n,t);return n}toString(){return E.format("%s bits=%d bytes=%d",Vn[this.mode],this.bitCount,this.binaryShiftByteCount)}static calculateBinaryShiftCost(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0}}function nr(t){const e=E.getCharCode(" "),n=E.getCharCode("."),r=E.getCharCode(",");t[qn][e]=1;const i=E.getCharCode("Z"),o=E.getCharCode("A");for(let e=o;e<=i;e++)t[qn][e]=e-o+2;t[Gn][e]=1;const s=E.getCharCode("z"),a=E.getCharCode("a");for(let e=a;e<=s;e++)t[Gn][e]=e-a+2;t[Xn][e]=1;const l=E.getCharCode("9"),u=E.getCharCode("0");for(let e=u;e<=l;e++)t[Xn][e]=e-u+2;t[Xn][r]=12,t[Xn][n]=13;const c=["\0"," ","�","�","�","�","�","�","�","\b","\t","\n","\v","\f","\r","�","�","�","�","�","@","\\","^","_","`","|","~","�"];for(let e=0;e<c.length;e++)t[Zn][E.getCharCode(c[e])]=e;const d=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(let e=0;e<d.length;e++)E.getCharCode(d[e])>0&&(t[Kn][E.getCharCode(d[e])]=e);return t}er.INITIAL_STATE=new er(Jn,qn,0,0);const rr=nr(_.createInt32Array(5,256));class ir{constructor(t){this.text=t}encode(){const t=E.getCharCode(" "),e=E.getCharCode("\n");let n=Bn.singletonList(er.INITIAL_STATE);for(let r=0;r<this.text.length;r++){let i,o=r+1<this.text.length?this.text[r+1]:0;switch(this.text[r]){case E.getCharCode("\r"):i=o===e?2:0;break;case E.getCharCode("."):i=o===t?3:0;break;case E.getCharCode(","):i=o===t?4:0;break;case E.getCharCode(":"):i=o===t?5:0;break;default:i=0}i>0?(n=ir.updateStateListForPair(n,r,i),r++):n=this.updateStateListForChar(n,r)}return Bn.min(n,((t,e)=>t.getBitCount()-e.getBitCount())).toBitArray(this.text)}updateStateListForChar(t,e){const n=[];for(let r of t)this.updateStateForChar(r,e,n);return ir.simplifyStates(n)}updateStateForChar(t,e,n){let r=255&this.text[e],i=rr[t.getMode()][r]>0,o=null;for(let s=0;s<=Kn;s++){let a=rr[s][r];if(a>0){if(null==o&&(o=t.endBinaryShift(e)),!i||s===t.getMode()||s===Xn){const t=o.latchAndAppend(s,a);n.push(t)}if(!i&&tr[t.getMode()][s]>=0){const t=o.shiftAndAppend(s,a);n.push(t)}}}if(t.getBinaryShiftByteCount()>0||0===rr[t.getMode()][r]){let r=t.addBinaryShiftChar(e);n.push(r)}}static updateStateListForPair(t,e,n){const r=[];for(let i of t)this.updateStateForPair(i,e,n,r);return this.simplifyStates(r)}static updateStateForPair(t,e,n,r){let i=t.endBinaryShift(e);if(r.push(i.latchAndAppend(Kn,n)),t.getMode()!==Kn&&r.push(i.shiftAndAppend(Kn,n)),3===n||4===n){let t=i.latchAndAppend(Xn,16-n).latchAndAppend(Xn,1);r.push(t)}if(t.getBinaryShiftByteCount()>0){let n=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);r.push(n)}}static simplifyStates(t){let e=[];for(const n of t){let t=!0;for(const r of e){if(r.isBetterThanOrEqualTo(n)){t=!1;break}n.isBetterThanOrEqualTo(r)&&(e=e.filter((t=>t!==r)))}t&&e.push(n)}return e}}class or{constructor(){}static encodeBytes(t){return or.encode(t,or.DEFAULT_EC_PERCENT,or.DEFAULT_AZTEC_LAYERS)}static encode(t,e,n){let r,i,o,s,a,l=new ir(t).encode(),u=v.truncDivision(l.getSize()*e,100)+11,c=l.getSize()+u;if(n!==or.DEFAULT_AZTEC_LAYERS){if(r=n<0,i=Math.abs(n),i>(r?or.MAX_NB_BITS_COMPACT:or.MAX_NB_BITS))throw new d(E.format("Illegal value %s for layers",n));o=or.totalBitsInLayer(i,r),s=or.WORD_SIZE[i];let t=o-o%s;if(a=or.stuffBits(l,s),a.getSize()+u>t)throw new d("Data to large for user specified layer");if(r&&a.getSize()>64*s)throw new d("Data to large for user specified layer")}else{s=0,a=null;for(let t=0;;t++){if(t>or.MAX_NB_BITS)throw new d("Data too large for an Aztec code");if(r=t<=3,i=r?t+1:t,o=or.totalBitsInLayer(i,r),c>o)continue;null!=a&&s===or.WORD_SIZE[i]||(s=or.WORD_SIZE[i],a=or.stuffBits(l,s));let e=o-o%s;if(!(r&&a.getSize()>64*s)&&a.getSize()+u<=e)break}}let h,f=or.generateCheckWords(a,o,s),p=a.getSize()/s,m=or.generateModeMessage(r,i,p),g=(r?11:14)+4*i,y=new Int32Array(g);if(r){h=g;for(let t=0;t<y.length;t++)y[t]=t}else{h=g+1+2*v.truncDivision(v.truncDivision(g,2)-1,15);let t=v.truncDivision(g,2),e=v.truncDivision(h,2);for(let n=0;n<t;n++){let r=n+v.truncDivision(n,15);y[t-n-1]=e-r-1,y[t+n]=e+r+1}}let _=new T(h);for(let t=0,e=0;t<i;t++){let n=4*(i-t)+(r?9:12);for(let r=0;r<n;r++){let i=2*r;for(let o=0;o<2;o++)f.get(e+i+o)&&_.set(y[2*t+o],y[2*t+r]),f.get(e+2*n+i+o)&&_.set(y[2*t+r],y[g-1-2*t-o]),f.get(e+4*n+i+o)&&_.set(y[g-1-2*t-o],y[g-1-2*t-r]),f.get(e+6*n+i+o)&&_.set(y[g-1-2*t-r],y[2*t+o])}e+=8*n}if(or.drawModeMessage(_,r,h,m),r)or.drawBullsEye(_,v.truncDivision(h,2),5);else{or.drawBullsEye(_,v.truncDivision(h,2),7);for(let t=0,e=0;t<v.truncDivision(g,2)-1;t+=15,e+=16)for(let t=1&v.truncDivision(h,2);t<h;t+=2)_.set(v.truncDivision(h,2)-e,t),_.set(v.truncDivision(h,2)+e,t),_.set(t,v.truncDivision(h,2)-e),_.set(t,v.truncDivision(h,2)+e)}let b=new jn;return b.setCompact(r),b.setSize(h),b.setLayers(i),b.setCodeWords(p),b.setMatrix(_),b}static drawBullsEye(t,e,n){for(let r=0;r<n;r+=2)for(let n=e-r;n<=e+r;n++)t.set(n,e-r),t.set(n,e+r),t.set(e-r,n),t.set(e+r,n);t.set(e-n,e-n),t.set(e-n+1,e-n),t.set(e-n,e-n+1),t.set(e+n,e-n),t.set(e+n,e-n+1),t.set(e+n,e+n-1)}static generateModeMessage(t,e,n){let r=new b;return t?(r.appendBits(e-1,2),r.appendBits(n-1,6),r=or.generateCheckWords(r,28,4)):(r.appendBits(e-1,5),r.appendBits(n-1,11),r=or.generateCheckWords(r,40,4)),r}static drawModeMessage(t,e,n,r){let i=v.truncDivision(n,2);if(e)for(let e=0;e<7;e++){let n=i-3+e;r.get(e)&&t.set(n,i-5),r.get(e+7)&&t.set(i+5,n),r.get(20-e)&&t.set(n,i+5),r.get(27-e)&&t.set(i-5,n)}else for(let e=0;e<10;e++){let n=i-5+e+v.truncDivision(e,5);r.get(e)&&t.set(n,i-7),r.get(e+10)&&t.set(i+7,n),r.get(29-e)&&t.set(n,i+7),r.get(39-e)&&t.set(i-7,n)}}static generateCheckWords(t,e,n){let r=t.getSize()/n,i=new Sn(or.getGF(n)),o=v.truncDivision(e,n),s=or.bitsToWords(t,n,o);i.encode(s,o-r);let a=e%n,l=new b;l.appendBits(0,a);for(const t of Array.from(s))l.appendBits(t,n);return l}static bitsToWords(t,e,n){let r,i,o=new Int32Array(n);for(r=0,i=t.getSize()/e;r<i;r++){let n=0;for(let i=0;i<e;i++)n|=t.get(r*e+i)?1<<e-i-1:0;o[r]=n}return o}static getGF(t){switch(t){case 4:return tt.AZTEC_PARAM;case 6:return tt.AZTEC_DATA_6;case 8:return tt.AZTEC_DATA_8;case 10:return tt.AZTEC_DATA_10;case 12:return tt.AZTEC_DATA_12;default:throw new d("Unsupported word size "+t)}}static stuffBits(t,e){let n=new b,r=t.getSize(),i=(1<<e)-2;for(let o=0;o<r;o+=e){let s=0;for(let n=0;n<e;n++)(o+n>=r||t.get(o+n))&&(s|=1<<e-1-n);(s&i)===i?(n.appendBits(s&i,e),o--):0==(s&i)?(n.appendBits(1|s,e),o--):n.appendBits(s,e)}return n}static totalBitsInLayer(t,e){return((e?88:112)+16*t)*t}}or.DEFAULT_EC_PERCENT=33,or.DEFAULT_AZTEC_LAYERS=0,or.MAX_NB_BITS=32,or.MAX_NB_BITS_COMPACT=4,or.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]);class sr{encode(t,e,n,r){return this.encodeWithHints(t,e,n,r,null)}encodeWithHints(t,e,n,r,i){let o=Yn.ISO_8859_1,s=or.DEFAULT_EC_PERCENT,a=or.DEFAULT_AZTEC_LAYERS;return null!=i&&(i.has(Mn.CHARACTER_SET)&&(o=Rn.forName(i.get(Mn.CHARACTER_SET).toString())),i.has(Mn.ERROR_CORRECTION)&&(s=v.parseInt(i.get(Mn.ERROR_CORRECTION).toString())),i.has(Mn.AZTEC_LAYERS)&&(a=v.parseInt(i.get(Mn.AZTEC_LAYERS).toString()))),sr.encodeLayers(t,e,n,r,o,s,a)}
2static encodeLayers(t,e,n,r,i,o,s){if(e!==W.AZTEC)throw new d("Can only encode AZTEC, but got "+e);let a=or.encode(E.getBytes(t,i),o,s);return sr.renderResult(a,n,r)}static renderResult(t,e,n){let r=t.getMatrix();if(null==r)throw new nt;let i=r.getWidth(),o=r.getHeight(),s=Math.max(e,i),a=Math.max(n,o),l=Math.min(s/i,a/o),u=(s-i*l)/2,c=(a-o*l)/2,d=new T(s,a);for(let t=0,e=c;t<o;t++,e+=l)for(let n=0,o=u;n<i;n++,o+=l)r.get(n,t)&&d.setRegion(o,e,l,l);return d}}t.AbstractExpandedDecoder=Vt,t.ArgumentException=c,t.ArithmeticException=$,t.AztecCode=jn,t.AztecCodeReader=yt,t.AztecCodeWriter=sr,t.AztecDecoder=it,t.AztecDetector=gt,t.AztecDetectorResult=ut,t.AztecEncoder=or,t.AztecHighLevelEncoder=ir,t.AztecPoint=mt,t.BarcodeFormat=W,t.Binarizer=p,t.BinaryBitmap=h,t.BitArray=b,t.BitMatrix=T,t.BitSource=me,t.BrowserAztecCodeReader=_t,t.BrowserBarcodeReader=ue,t.BrowserCodeReader=B,t.BrowserDatamatrixCodeReader=be,t.BrowserMultiFormatReader=_n,t.BrowserPDF417Reader=vn,t.BrowserQRCodeReader=bn,t.BrowserQRCodeSvgWriter=kn,t.CharacterSetECI=C,t.ChecksumException=f,t.Code128Reader=bt,t.Code39Reader=wt,t.DataMatrixDecodedBitStreamParser=ge,t.DataMatrixReader=ve,t.DecodeHintType=M,t.DecoderResult=K,t.DefaultGridSampler=ft,t.DetectorResult=lt,t.EAN13Reader=Lt,t.EncodeHintType=Mn,t.Exception=u,t.FormatException=S,t.GenericGF=tt,t.GenericGFPoly=Q,t.GlobalHistogramBinarizer=k,t.GridSampler=dt,t.GridSamplerInstance=pt,t.HTMLCanvasElementLuminanceSource=P,t.HybridBinarizer=O,t.ITFReader=Mt,t.IllegalArgumentException=d,t.IllegalStateException=nt,t.InvertedLuminanceSource=N,t.LuminanceSource=I,t.MathUtils=ot,t.MultiFormatOneDReader=le,t.MultiFormatReader=yn,t.MultiFormatWriter=In,t.NotFoundException=D,t.OneDReader=vt,t.PDF417DecodedBitStreamParser=fn,t.PDF417DecoderErrorCorrection=qe,t.PDF417Reader=mn,t.PDF417ResultMetadata=nn,t.PerspectiveTransform=ht,t.PlanarYUVLuminanceSource=Nn,t.QRCodeByteMatrix=An,t.QRCodeDataMask=xe,t.QRCodeDecodedBitStreamParser=De,t.QRCodeDecoderErrorCorrectionLevel=we,t.QRCodeDecoderFormatInformation=Me,t.QRCodeEncoder=Dn,t.QRCodeEncoderQRCode=xn,t.QRCodeMaskUtil=Cn,t.QRCodeMatrixUtil=Ln,t.QRCodeMode=Te,t.QRCodeReader=Be,t.QRCodeVersion=Ae,t.QRCodeWriter=On,t.RGBLuminanceSource=Pn,t.RSS14Reader=ae,t.RSSExpandedReader=oe,t.ReaderException=gn,t.ReedSolomonDecoder=rt,t.ReedSolomonEncoder=Sn,t.ReedSolomonException=et,t.Result=H,t.ResultMetadataType=Z,t.ResultPoint=at,t.StringUtils=E,t.UnsupportedOperationException=A,t.VideoInputDevice=R,t.WhiteRectangleDetector=ct,t.WriterException=En,t.ZXingArrays=_,t.ZXingCharset=Rn,t.ZXingInteger=v,t.ZXingStandardCharsets=Yn,t.ZXingStringBuilder=L,t.ZXingStringEncoding=x,t.ZXingSystem=m,t.createAbstractExpandedDecoder=ne,Object.defineProperty(t,"__esModule",{value:!0})}(e)},645:(t,e)=>{e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+t[e+d],d+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(e*l-1)*Math.pow(2,i),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[n+f]=255&s,f+=p,s/=256,u-=8);t[n+f-p]|=128*m}},5826:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},7579:(t,e,n)=>{var r,i;r=function(){"use strict";var t,e=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){var n;window,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=44)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(19);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(22))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);Object.defineProperty(e,"closest",{enumerable:!0,get:function(){return o(r).default}});var i=n(24);function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"requestNextAnimationFrame",{enumerable:!0,get:function(){return o(i).default}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(42))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(35))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);Object.defineProperty(e,"Sensor",{enumerable:!0,get:function(){return u(r).default}});var i=n(21);Object.defineProperty(e,"MouseSensor",{enumerable:!0,get:function(){return u(i).default}});var o=n(18);Object.defineProperty(e,"TouchSensor",{enumerable:!0,get:function(){return u(o).default}});var s=n(16);Object.defineProperty(e,"DragSensor",{enumerable:!0,get:function(){return u(s).default}});var a=n(14);Object.defineProperty(e,"ForceTouchSensor",{enumerable:!0,get:function(){return u(a).default}});var l=n(0);function u(t){return t&&t.__esModule?t:{default:t}}Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(37);Object.defineProperty(e,"Announcement",{enumerable:!0,get:function(){return a(r).default}}),Object.defineProperty(e,"defaultAnnouncementOptions",{enumerable:!0,get:function(){return r.defaultOptions}});var i=n(34);Object.defineProperty(e,"Focusable",{enumerable:!0,get:function(){return a(i).default}});var o=n(32);Object.defineProperty(e,"Mirror",{enumerable:!0,get:function(){return a(o).default}}),Object.defineProperty(e,"defaultMirrorOptions",{enumerable:!0,get:function(){return o.defaultOptions}});var s=n(28);function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"Scrollable",{enumerable:!0,get:function(){return a(s).default}}),Object.defineProperty(e,"defaultScrollableOptions",{enumerable:!0,get:function(){return s.defaultOptions}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(38);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(39);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(43);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(){this.callbacks={}}on(t,...e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(...e),this}off(t,e){if(!this.callbacks[t])return null;const n=this.callbacks[t].slice(0);for(let r=0;r<n.length;r++)e===n[r]&&this.callbacks[t].splice(r,1);return this}trigger(t){if(!this.callbacks[t.type])return null;const e=[...this.callbacks[t.type]],n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];try{i(t)}catch(t){n.push(t)}}return n.length&&console.error(`Draggable caught errors while triggering '${t.type}'`,n),this}}}
2,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(10))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(2),s=n(6),a=(r=n(11))&&r.__esModule?r:{default:r},l=n(5),u=n(7),c=n(8);const d=Symbol("onDragStart"),h=Symbol("onDragMove"),f=Symbol("onDragStop"),p=Symbol("onDragPressure"),m={"drag:start":t=>`Picked up ${t.source.textContent.trim()||t.source.id||"draggable element"}`,"drag:stop":t=>`Released ${t.source.textContent.trim()||t.source.id||"draggable element"}`},g={"container:dragging":"draggable-container--is-dragging","source:dragging":"draggable-source--is-dragging","source:placed":"draggable-source--placed","container:placed":"draggable-container--placed","body:dragging":"draggable--is-dragging","draggable:over":"draggable--over","container:over":"draggable-container--over","source:original":"draggable--original",mirror:"draggable-mirror"},y=e.defaultOptions={draggable:".draggable-source",handle:null,delay:100,placedTimeout:800,plugins:[],sensors:[]};class _{constructor(t=[document.body],e={}){if(t instanceof NodeList||t instanceof Array)this.containers=[...t];else{if(!(t instanceof HTMLElement))throw new Error("Draggable containers are expected to be of type `NodeList`, `HTMLElement[]` or `HTMLElement`");this.containers=[t]}this.options=i({},y,e,{classes:i({},g,e.classes||{}),announcements:i({},m,e.announcements||{})}),this.emitter=new a.default,this.dragging=!1,this.plugins=[],this.sensors=[],this[d]=this[d].bind(this),this[h]=this[h].bind(this),this[f]=this[f].bind(this),this[p]=this[p].bind(this),document.addEventListener("drag:start",this[d],!0),document.addEventListener("drag:move",this[h],!0),document.addEventListener("drag:stop",this[f],!0),document.addEventListener("drag:pressure",this[p],!0);const n=Object.values(_.Plugins).map((t=>t)),r=[l.MouseSensor,l.TouchSensor];this.addPlugin(...n,...this.options.plugins),this.addSensor(...r,...this.options.sensors);const o=new u.DraggableInitializedEvent({draggable:this});this.on("mirror:created",(({mirror:t})=>this.mirror=t)),this.on("mirror:destroy",(()=>this.mirror=null)),this.trigger(o)}destroy(){document.removeEventListener("drag:start",this[d],!0),document.removeEventListener("drag:move",this[h],!0),document.removeEventListener("drag:stop",this[f],!0),document.removeEventListener("drag:pressure",this[p],!0);const t=new u.DraggableDestroyEvent({draggable:this});this.trigger(t),this.removePlugin(...this.plugins.map((t=>t.constructor))),this.removeSensor(...this.sensors.map((t=>t.constructor)))}addPlugin(...t){const e=t.map((t=>new t(this)));return e.forEach((t=>t.attach())),this.plugins=[...this.plugins,...e],this}removePlugin(...t){return this.plugins.filter((e=>t.includes(e.constructor))).forEach((t=>t.detach())),this.plugins=this.plugins.filter((e=>!t.includes(e.constructor))),this}addSensor(...t){const e=t.map((t=>new t(this.containers,this.options)));return e.forEach((t=>t.attach())),this.sensors=[...this.sensors,...e],this}removeSensor(...t){return this.sensors.filter((e=>t.includes(e.constructor))).forEach((t=>t.detach())),this.sensors=this.sensors.filter((e=>!t.includes(e.constructor))),this}addContainer(...t){return this.containers=[...this.containers,...t],this.sensors.forEach((e=>e.addContainer(...t))),this}removeContainer(...t){return this.containers=this.containers.filter((e=>!t.includes(e))),this.sensors.forEach((e=>e.removeContainer(...t))),this}on(t,...e){return this.emitter.on(t,...e),this}off(t,e){return this.emitter.off(t,e),this}trigger(t){return this.emitter.trigger(t),this}getClassNameFor(t){return this.options.classes[t]}isDragging(){return Boolean(this.dragging)}getDraggableElements(){return this.containers.reduce(((t,e)=>[...t,...this.getDraggableElementsForContainer(e)]),[])}getDraggableElementsForContainer(t){return[...t.querySelectorAll(this.options.draggable)].filter((t=>t!==this.originalSource&&t!==this.mirror))}[d](t){const e=v(t),{target:n,container:r}=e;if(!this.containers.includes(r))return;if(this.options.handle&&n&&!(0,o.closest)(n,this.options.handle))return void e.cancel();if(this.originalSource=(0,o.closest)(n,this.options.draggable),this.sourceContainer=r,!this.originalSource)return void e.cancel();this.lastPlacedSource&&this.lastPlacedContainer&&(clearTimeout(this.placedTimeoutID),this.lastPlacedSource.classList.remove(this.getClassNameFor("source:placed")),this.lastPlacedContainer.classList.remove(this.getClassNameFor("container:placed"))),this.source=this.originalSource.cloneNode(!0),this.originalSource.parentNode.insertBefore(this.source,this.originalSource),this.originalSource.style.display="none";const s=new c.DragStartEvent({source:this.source,originalSource:this.originalSource,sourceContainer:r,sensorEvent:e});if(this.trigger(s),this.dragging=!s.canceled(),s.canceled())return this.source.parentNode.removeChild(this.source),void(this.originalSource.style.display=null);this.originalSource.classList.add(this.getClassNameFor("source:original")),this.source.classList.add(this.getClassNameFor("source:dragging")),this.sourceContainer.classList.add(this.getClassNameFor("container:dragging")),document.body.classList.add(this.getClassNameFor("body:dragging")),b(document.body,"none"),requestAnimationFrame((()=>{const e=v(t).clone({target:this.source});this[h](i({},t,{detail:e}))}))}[h](t){if(!this.dragging)return;const e=v(t),{container:n}=e;let r=e.target;const i=new c.DragMoveEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e});this.trigger(i),i.canceled()&&e.cancel(),r=(0,o.closest)(r,this.options.draggable);
2const s=(0,o.closest)(e.target,this.containers),a=e.overContainer||s,l=this.currentOverContainer&&a!==this.currentOverContainer,u=this.currentOver&&r!==this.currentOver,d=a&&this.currentOverContainer!==a,h=s&&r&&this.currentOver!==r;if(u){const t=new c.DragOutEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,over:this.currentOver});this.currentOver.classList.remove(this.getClassNameFor("draggable:over")),this.currentOver=null,this.trigger(t)}if(l){const t=new c.DragOutContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,overContainer:this.currentOverContainer});this.currentOverContainer.classList.remove(this.getClassNameFor("container:over")),this.currentOverContainer=null,this.trigger(t)}if(d){a.classList.add(this.getClassNameFor("container:over"));const t=new c.DragOverContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,overContainer:a});this.currentOverContainer=a,this.trigger(t)}if(h){r.classList.add(this.getClassNameFor("draggable:over"));const t=new c.DragOverEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,overContainer:a,over:r});this.currentOver=r,this.trigger(t)}}[f](t){if(!this.dragging)return;this.dragging=!1;const e=new c.DragStopEvent({source:this.source,originalSource:this.originalSource,sensorEvent:t.sensorEvent,sourceContainer:this.sourceContainer});this.trigger(e),this.source.parentNode.insertBefore(this.originalSource,this.source),this.source.parentNode.removeChild(this.source),this.originalSource.style.display="",this.source.classList.remove(this.getClassNameFor("source:dragging")),this.originalSource.classList.remove(this.getClassNameFor("source:original")),this.originalSource.classList.add(this.getClassNameFor("source:placed")),this.sourceContainer.classList.add(this.getClassNameFor("container:placed")),this.sourceContainer.classList.remove(this.getClassNameFor("container:dragging")),document.body.classList.remove(this.getClassNameFor("body:dragging")),b(document.body,""),this.currentOver&&this.currentOver.classList.remove(this.getClassNameFor("draggable:over")),this.currentOverContainer&&this.currentOverContainer.classList.remove(this.getClassNameFor("container:over")),this.lastPlacedSource=this.originalSource,this.lastPlacedContainer=this.sourceContainer,this.placedTimeoutID=setTimeout((()=>{this.lastPlacedSource&&this.lastPlacedSource.classList.remove(this.getClassNameFor("source:placed")),this.lastPlacedContainer&&this.lastPlacedContainer.classList.remove(this.getClassNameFor("container:placed")),this.lastPlacedSource=null,this.lastPlacedContainer=null}),this.options.placedTimeout),this.source=null,this.originalSource=null,this.currentOverContainer=null,this.currentOver=null,this.sourceContainer=null}[p](t){if(!this.dragging)return;const e=v(t),n=this.source||(0,o.closest)(e.originalEvent.target,this.options.draggable),r=new c.DragPressureEvent({sensorEvent:e,source:n,pressure:e.pressure});this.trigger(r)}}function v(t){return t.detail}function b(t,e){t.style.webkitUserSelect=e,t.style.mozUserSelect=e,t.style.msUserSelect=e,t.style.oUserSelect=e,t.style.userSelect=e}e.default=_,_.Plugins={Announcement:s.Announcement,Focusable:s.Focusable,Mirror:s.Mirror,Scrollable:s.Scrollable}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(1))&&r.__esModule?r:{default:r},o=n(0);const s=Symbol("onMouseForceWillBegin"),a=Symbol("onMouseForceDown"),l=Symbol("onMouseDown"),u=Symbol("onMouseForceChange"),c=Symbol("onMouseMove"),d=Symbol("onMouseUp"),h=Symbol("onMouseForceGlobalChange");class f extends i.default{constructor(t=[],e={}){super(t,e),this.mightDrag=!1,this[s]=this[s].bind(this),this[a]=this[a].bind(this),this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this),this[d]=this[d].bind(this)}attach(){for(const t of this.containers)t.addEventListener("webkitmouseforcewillbegin",this[s],!1),t.addEventListener("webkitmouseforcedown",this[a],!1),t.addEventListener("mousedown",this[l],!0),t.addEventListener("webkitmouseforcechanged",this[u],!1);document.addEventListener("mousemove",this[c]),document.addEventListener("mouseup",this[d])}
2detach(){for(const t of this.containers)t.removeEventListener("webkitmouseforcewillbegin",this[s],!1),t.removeEventListener("webkitmouseforcedown",this[a],!1),t.removeEventListener("mousedown",this[l],!0),t.removeEventListener("webkitmouseforcechanged",this[u],!1);document.removeEventListener("mousemove",this[c]),document.removeEventListener("mouseup",this[d])}[s](t){t.preventDefault(),this.mightDrag=!0}[a](t){if(this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=t.currentTarget,r=new o.DragStartSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,r),this.currentContainer=n,this.dragging=!r.canceled(),this.mightDrag=!1}[d](t){if(!this.dragging)return;const e=new o.DragStopSensorEvent({clientX:t.clientX,clientY:t.clientY,target:null,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,e),this.currentContainer=null,this.dragging=!1,this.mightDrag=!1}[l](t){this.mightDrag&&(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())}[c](t){if(!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=new o.DragMoveSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n)}[u](t){if(this.dragging)return;const e=t.target,n=t.currentTarget,r=new o.DragPressureSensorEvent({pressure:t.webkitForce,clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,r)}[h](t){if(!this.dragging)return;const e=t.target,n=new o.DragPressureSensorEvent({pressure:t.webkitForce,clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n)}}e.default=f},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(13))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(2),o=(r=n(1))&&r.__esModule?r:{default:r},s=n(0);const a=Symbol("onMouseDown"),l=Symbol("onMouseUp"),u=Symbol("onDragStart"),c=Symbol("onDragOver"),d=Symbol("onDragEnd"),h=Symbol("onDrop"),f=Symbol("reset");class p extends o.default{constructor(t=[],e={}){super(t,e),this.mouseDownTimeout=null,this.draggableElement=null,this.nativeDraggableElement=null,this[a]=this[a].bind(this),this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this),this[d]=this[d].bind(this),this[h]=this[h].bind(this)}attach(){document.addEventListener("mousedown",this[a],!0)}detach(){document.removeEventListener("mousedown",this[a],!0)}[u](t){t.dataTransfer.setData("text",""),t.dataTransfer.effectAllowed=this.options.type;const e=document.elementFromPoint(t.clientX,t.clientY);if(this.currentContainer=(0,i.closest)(t.target,this.containers),!this.currentContainer)return;const n=new s.DragStartSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});setTimeout((()=>{this.trigger(this.currentContainer,n),n.canceled()?this.dragging=!1:this.dragging=!0}),0)}[c](t){if(!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=this.currentContainer,r=new s.DragMoveSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,r),r.canceled()||(t.preventDefault(),t.dataTransfer.dropEffect=this.options.type)}[d](t){if(!this.dragging)return;document.removeEventListener("mouseup",this[l],!0);const e=document.elementFromPoint(t.clientX,t.clientY),n=this.currentContainer,r=new s.DragStopSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,r),this.dragging=!1,this[f]()}[h](t){t.preventDefault()}[a](t){if(t.target&&(t.target.form||t.target.contenteditable))return;const e=(0,i.closest)(t.target,(t=>t.draggable));e&&(e.draggable=!1,this.nativeDraggableElement=e),document.addEventListener("mouseup",this[l],!0),document.addEventListener("dragstart",this[u],!1),document.addEventListener("dragover",this[c],!1),document.addEventListener("dragend",this[d],!1),document.addEventListener("drop",this[h],!1);const n=(0,i.closest)(t.target,this.options.draggable);
2n&&(this.mouseDownTimeout=setTimeout((()=>{n.draggable=!0,this.draggableElement=n}),this.options.delay))}[l](){this[f]()}[f](){clearTimeout(this.mouseDownTimeout),document.removeEventListener("mouseup",this[l],!0),document.removeEventListener("dragstart",this[u],!1),document.removeEventListener("dragover",this[c],!1),document.removeEventListener("dragend",this[d],!1),document.removeEventListener("drop",this[h],!1),this.nativeDraggableElement&&(this.nativeDraggableElement.draggable=!0,this.nativeDraggableElement=null),this.draggableElement&&(this.draggableElement.draggable=!1,this.draggableElement=null)}}e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(15))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(2),o=(r=n(1))&&r.__esModule?r:{default:r},s=n(0);const a=Symbol("onTouchStart"),l=Symbol("onTouchHold"),u=Symbol("onTouchEnd"),c=Symbol("onTouchMove");let d=!1;window.addEventListener("touchmove",(t=>{d&&t.preventDefault()}),{passive:!1});class h extends o.default{constructor(t=[],e={}){super(t,e),this.currentScrollableParent=null,this.tapTimeout=null,this.touchMoved=!1,this[a]=this[a].bind(this),this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this)}attach(){document.addEventListener("touchstart",this[a])}detach(){document.removeEventListener("touchstart",this[a])}[a](t){const e=(0,i.closest)(t.target,this.containers);e&&(document.addEventListener("touchmove",this[c]),document.addEventListener("touchend",this[u]),document.addEventListener("touchcancel",this[u]),e.addEventListener("contextmenu",f),this.currentContainer=e,this.tapTimeout=setTimeout(this[l](t,e),this.options.delay))}[l](t,e){return()=>{if(this.touchMoved)return;const n=t.touches[0]||t.changedTouches[0],r=t.target,i=new s.DragStartSensorEvent({clientX:n.pageX,clientY:n.pageY,target:r,container:e,originalEvent:t});this.trigger(e,i),this.dragging=!i.canceled(),d=this.dragging}}[c](t){if(this.touchMoved=!0,!this.dragging)return;const e=t.touches[0]||t.changedTouches[0],n=document.elementFromPoint(e.pageX-window.scrollX,e.pageY-window.scrollY),r=new s.DragMoveSensorEvent({clientX:e.pageX,clientY:e.pageY,target:n,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,r)}[u](t){if(this.touchMoved=!1,d=!1,document.removeEventListener("touchend",this[u]),document.removeEventListener("touchcancel",this[u]),document.removeEventListener("touchmove",this[c]),this.currentContainer&&this.currentContainer.removeEventListener("contextmenu",f),clearTimeout(this.tapTimeout),!this.dragging)return;const e=t.touches[0]||t.changedTouches[0],n=document.elementFromPoint(e.pageX-window.scrollX,e.pageY-window.scrollY);t.preventDefault();const r=new s.DragStopSensorEvent({clientX:e.pageX,clientY:e.pageY,target:n,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,r),this.currentContainer=null,this.dragging=!1}}function f(t){t.preventDefault(),t.stopPropagation()}e.default=h},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(17))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DragPressureSensorEvent=e.DragStopSensorEvent=e.DragMoveSensorEvent=e.DragStartSensorEvent=e.SensorEvent=void 0;var r,i=(r=n(3))&&r.__esModule?r:{default:r};class o extends i.default{get originalEvent(){return this.data.originalEvent}get clientX(){return this.data.clientX}get clientY(){return this.data.clientY}get target(){return this.data.target}get container(){return this.data.container}get pressure(){return this.data.pressure}}e.SensorEvent=o;class s extends o{}e.DragStartSensorEvent=s,s.type="drag:start";class a extends o{}e.DragMoveSensorEvent=a,a.type="drag:move";class l extends o{}e.DragStopSensorEvent=l,l.type="drag:stop";class u extends o{}e.DragPressureSensorEvent=u,u.type="drag:pressure"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(2),o=(r=n(1))&&r.__esModule?r:{default:r},s=n(0);const a=Symbol("onContextMenuWhileDragging"),l=Symbol("onMouseDown"),u=Symbol("onMouseMove"),c=Symbol("onMouseUp");class d extends o.default{constructor(t=[],e={}){super(t,e),this.mouseDown=!1,this.mouseDownTimeout=null,this.openedContextMenu=!1,this[a]=this[a].bind(this),this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this)}attach(){document.addEventListener("mousedown",this[l],!0)}detach(){document.removeEventListener("mousedown",this[l],!0)}[l](t){if(0!==t.button||t.ctrlKey||t.metaKey)return;document.addEventListener("mouseup",this[c]);const e=document.elementFromPoint(t.clientX,t.clientY),n=(0,i.closest)(e,this.containers
2);n&&(document.addEventListener("dragstart",h),this.mouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{if(!this.mouseDown)return;const r=new s.DragStartSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,r),this.currentContainer=n,this.dragging=!r.canceled(),this.dragging&&(document.addEventListener("contextmenu",this[a]),document.addEventListener("mousemove",this[u]))}),this.options.delay))}[u](t){if(!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=new s.DragMoveSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n)}[c](t){if(this.mouseDown=Boolean(this.openedContextMenu),this.openedContextMenu)return void(this.openedContextMenu=!1);if(document.removeEventListener("mouseup",this[c]),document.removeEventListener("dragstart",h),!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=new s.DragStopSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n),document.removeEventListener("contextmenu",this[a]),document.removeEventListener("mousemove",this[u]),this.currentContainer=null,this.dragging=!1}[a](t){t.preventDefault(),this.openedContextMenu=!0}}function h(t){t.preventDefault()}e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(20))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=class{constructor(t=[],e={}){this.containers=[...t],this.options=r({},e),this.dragging=!1,this.currentContainer=null}attach(){return this}detach(){return this}addContainer(...t){this.containers=[...this.containers,...t]}removeContainer(...t){this.containers=this.containers.filter((e=>!t.includes(e)))}trigger(t,e){const n=document.createEvent("Event");return n.detail=e,n.initEvent(e.type,!0,!0),t.dispatchEvent(n),this.lastEvent=e,e}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return requestAnimationFrame((()=>{requestAnimationFrame(t)}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(23))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!t)return null;const n=e,i=e,o=e,s=e,a=Boolean("string"==typeof e),l=Boolean("function"==typeof e),u=Boolean(e instanceof NodeList||e instanceof Array),c=Boolean(e instanceof HTMLElement);let d=t;do{if(d=d.correspondingUseElement||d.correspondingElement||d,(h=d)?a?r.call(h,n):u?[...o].includes(h):c?s===h:l&&i(h):h)return d;d=d.parentNode}while(d&&d!==document.body&&d!==document);var h;return null};const r=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(25))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.scroll=e.onDragStop=e.onDragMove=e.onDragStart=void 0;var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=(r=n(4))&&r.__esModule?r:{default:r},s=n(2);const a=e.onDragStart=Symbol("onDragStart"),l=e.onDragMove=Symbol("onDragMove"),u=e.onDragStop=Symbol("onDragStop"),c=e.scroll=Symbol("scroll"),d=e.defaultOptions={speed:6,sensitivity:50,scrollableElements:[]};class h extends o.default{constructor(t){super(t),this.options=i({},d,this.getOptions()),this.currentMousePosition=null,this.scrollAnimationFrame=null,this.scrollableElement=null,this.findScrollableElementFrame=null,this[a]=this[a].bind(this),this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this)}attach(){this.draggable.on("drag:start",this[a]).on("drag:move",this[l]).on("drag:stop",this[u])}detach(){this.draggable.off("drag:start",this[a]).off("drag:move",this[l]).off("drag:stop",this[u])}
2getOptions(){return this.draggable.options.scrollable||{}}getScrollableElement(t){return this.hasDefinedScrollableElements()?(0,s.closest)(t,this.options.scrollableElements)||document.documentElement:function(t){if(!t)return f();const e=getComputedStyle(t).getPropertyValue("position"),n="absolute"===e,r=(0,s.closest)(t,(t=>(!n||!function(t){return"static"===getComputedStyle(t).getPropertyValue("position")}(t))&&function(t){const e=getComputedStyle(t,null),n=e.getPropertyValue("overflow")+e.getPropertyValue("overflow-y")+e.getPropertyValue("overflow-x");return/(auto|scroll)/.test(n)}(t)));return"fixed"!==e&&r?r:f()}(t)}hasDefinedScrollableElements(){return Boolean(0!==this.options.scrollableElements.length)}[a](t){this.findScrollableElementFrame=requestAnimationFrame((()=>{this.scrollableElement=this.getScrollableElement(t.source)}))}[l](t){if(this.findScrollableElementFrame=requestAnimationFrame((()=>{this.scrollableElement=this.getScrollableElement(t.sensorEvent.target)})),!this.scrollableElement)return;const e=t.sensorEvent,n={x:0,y:0};"ontouchstart"in window&&(n.y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,n.x=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),this.currentMousePosition={clientX:e.clientX-n.x,clientY:e.clientY-n.y},this.scrollAnimationFrame=requestAnimationFrame(this[c])}[u](){cancelAnimationFrame(this.scrollAnimationFrame),cancelAnimationFrame(this.findScrollableElementFrame),this.scrollableElement=null,this.scrollAnimationFrame=null,this.findScrollableElementFrame=null,this.currentMousePosition=null}[c](){if(!this.scrollableElement||!this.currentMousePosition)return;cancelAnimationFrame(this.scrollAnimationFrame);const{speed:t,sensitivity:e}=this.options,n=this.scrollableElement.getBoundingClientRect(),r=n.bottom>window.innerHeight,i=n.top<0||r,o=f(),s=this.scrollableElement,a=this.currentMousePosition.clientX,l=this.currentMousePosition.clientY;if(s===document.body||s===document.documentElement||i){const{innerHeight:n,innerWidth:r}=window;l<e?o.scrollTop-=t:n-l<e&&(o.scrollTop+=t),a<e?o.scrollLeft-=t:r-a<e&&(o.scrollLeft+=t)}else{const{offsetHeight:r,offsetWidth:i}=s;n.top+r-l<e?s.scrollTop+=t:l-n.top<e&&(s.scrollTop-=t),n.left+i-a<e?s.scrollLeft+=t:a-n.left<e&&(s.scrollLeft-=t)}this.scrollAnimationFrame=requestAnimationFrame(this[c])}}function f(){return document.scrollingElement||document.documentElement}e.default=h},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var r,i=n(27),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MirrorDestroyEvent=e.MirrorMoveEvent=e.MirrorAttachedEvent=e.MirrorCreatedEvent=e.MirrorCreateEvent=e.MirrorEvent=void 0;var r,i=(r=n(3))&&r.__esModule?r:{default:r};class o extends i.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get dragEvent(){return this.data.dragEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}e.MirrorEvent=o;class s extends o{}e.MirrorCreateEvent=s,s.type="mirror:create";class a extends o{get mirror(){return this.data.mirror}}e.MirrorCreatedEvent=a,a.type="mirror:created";class l extends o{get mirror(){return this.data.mirror}}e.MirrorAttachedEvent=l,l.type="mirror:attached";class u extends o{get mirror(){return this.data.mirror}}e.MirrorMoveEvent=u,u.type="mirror:move",u.cancelable=!0;class c extends o{get mirror(){return this.data.mirror}}e.MirrorDestroyEvent=c,c.type="mirror:destroy",c.cancelable=!0},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.getAppendableContainer=e.onScroll=e.onMirrorMove=e.onMirrorCreated=e.onDragStop=e.onDragMove=e.onDragStart=void 0;var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=(r=n(4))&&r.__esModule?r:{default:r},s=n(30);function a(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}const l=e.onDragStart=Symbol("onDragStart"),u=e.onDragMove=Symbol("onDragMove"),c=e.onDragStop=Symbol("onDragStop"),d=e.onMirrorCreated=Symbol("onMirrorCreated"),h=e.onMirrorMove=Symbol("onMirrorMove"),f=e.onScroll=Symbol("onScroll"),p=e.getAppendableContainer=Symbol("getAppendableContainer"),m=e.defaultOptions={constrainDimensions:!1,xAxis:!0,yAxis:!0,cursorOffsetX:null,cursorOffsetY:null};class g extends o.default{constructor(t){super(t),this.options=i({},m,this.getOptions()),this.scrollOffset={x:0,y:0},this.initialScrollOffset={x:window.scrollX,y:window.scrollY},this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this),this[d]=this[d].bind(this),this[h]=this[h].bind(this),this[f]=this[f].bind(this)}attach(){this.draggable.on("drag:start",this[l]).on("drag:move",this[u]).on("drag:stop",this[c]).on("mirror:created",this[d]).on("mirror:move",this[h])}detach(){this.draggable.off("drag:start",this[l]).off("drag:move",this[u]).off("drag:stop",this[c]).off("mirror:created",this[d]).off("mirror:move",this[h])}
2getOptions(){return this.draggable.options.mirror||{}}[l](t){if(t.canceled())return;"ontouchstart"in window&&document.addEventListener("scroll",this[f],!0),this.initialScrollOffset={x:window.scrollX,y:window.scrollY};const{source:e,originalSource:n,sourceContainer:r,sensorEvent:i}=t,o=new s.MirrorCreateEvent({source:e,originalSource:n,sourceContainer:r,sensorEvent:i,dragEvent:t});if(this.draggable.trigger(o),function(t){return/^drag/.test(t.originalEvent.type)}(i)||o.canceled())return;const a=this[p](e)||r;this.mirror=e.cloneNode(!0);const l=new s.MirrorCreatedEvent({source:e,originalSource:n,sourceContainer:r,sensorEvent:i,dragEvent:t,mirror:this.mirror}),u=new s.MirrorAttachedEvent({source:e,originalSource:n,sourceContainer:r,sensorEvent:i,dragEvent:t,mirror:this.mirror});this.draggable.trigger(l),a.appendChild(this.mirror),this.draggable.trigger(u)}[u](t){if(!this.mirror||t.canceled())return;const{source:e,originalSource:n,sourceContainer:r,sensorEvent:i}=t,o=new s.MirrorMoveEvent({source:e,originalSource:n,sourceContainer:r,sensorEvent:i,dragEvent:t,mirror:this.mirror});this.draggable.trigger(o)}[c](t){if("ontouchstart"in window&&document.removeEventListener("scroll",this[f],!0),this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},!this.mirror)return;const{source:e,sourceContainer:n,sensorEvent:r}=t,i=new s.MirrorDestroyEvent({source:e,mirror:this.mirror,sourceContainer:n,sensorEvent:r,dragEvent:t});this.draggable.trigger(i),i.canceled()||this.mirror.parentNode.removeChild(this.mirror)}[f](){this.scrollOffset={x:window.scrollX-this.initialScrollOffset.x,y:window.scrollY-this.initialScrollOffset.y}}[d]({mirror:t,source:e,sensorEvent:n}){const r={mirror:t,source:e,sensorEvent:n,mirrorClass:this.draggable.getClassNameFor("mirror"),scrollOffset:this.scrollOffset,options:this.options};return Promise.resolve(r).then(y).then(_).then(v).then(b).then(M({initial:!0})).then(w).then((t=>{let{mirrorOffset:e,initialX:n,initialY:r}=t,o=a(t,["mirrorOffset","initialX","initialY"]);return this.mirrorOffset=e,this.initialX=n,this.initialY=r,i({mirrorOffset:e,initialX:n,initialY:r},o)}))}[h](t){if(t.canceled())return null;const e={mirror:t.mirror,sensorEvent:t.sensorEvent,mirrorOffset:this.mirrorOffset,options:this.options,initialX:this.initialX,initialY:this.initialY,scrollOffset:this.scrollOffset};return Promise.resolve(e).then(M({raf:!0}))}[p](t){const e=this.options.appendTo;return"string"==typeof e?document.querySelector(e):e instanceof HTMLElement?e:"function"==typeof e?e(t):t.parentNode}}function y(t){let{source:e}=t,n=a(t,["source"]);return S((t=>{const r=e.getBoundingClientRect();t(i({source:e,sourceRect:r},n))}))}function _(t){let{sensorEvent:e,sourceRect:n,options:r}=t,o=a(t,["sensorEvent","sourceRect","options"]);return S((t=>{const s=null===r.cursorOffsetY?e.clientY-n.top:r.cursorOffsetY,a=null===r.cursorOffsetX?e.clientX-n.left:r.cursorOffsetX;t(i({sensorEvent:e,sourceRect:n,mirrorOffset:{top:s,left:a},options:r},o))}))}function v(t){let{mirror:e,source:n,options:r}=t,o=a(t,["mirror","source","options"]);return S((t=>{let s,a;if(r.constrainDimensions){const t=getComputedStyle(n);s=t.getPropertyValue("height"),a=t.getPropertyValue("width")}e.style.position="fixed",e.style.pointerEvents="none",e.style.top=0,e.style.left=0,e.style.margin=0,r.constrainDimensions&&(e.style.height=s,e.style.width=a),t(i({mirror:e,source:n,options:r},o))}))}function b(t){let{mirror:e,mirrorClass:n}=t,r=a(t,["mirror","mirrorClass"]);return S((t=>{e.classList.add(n),t(i({mirror:e,mirrorClass:n},r))}))}function w(t){let{mirror:e}=t,n=a(t,["mirror"]);return S((t=>{e.removeAttribute("id"),delete e.id,t(i({mirror:e},n))}))}function M({withFrame:t=!1,initial:e=!1}={}){return n=>{let{mirror:r,sensorEvent:o,mirrorOffset:s,initialY:l,initialX:u,scrollOffset:c,options:d}=n,h=a(n,["mirror","sensorEvent","mirrorOffset","initialY","initialX","scrollOffset","options"]);return S((t=>{const n=i({mirror:r,sensorEvent:o,mirrorOffset:s,options:d},h);if(s){const t=o.clientX-s.left-c.x,i=o.clientY-s.top-c.y;d.xAxis&&d.yAxis||e?r.style.transform=`translate3d(${t}px, ${i}px, 0)`:d.xAxis&&!d.yAxis?r.style.transform=`translate3d(${t}px, ${l}px, 0)`:d.yAxis&&!d.xAxis&&(r.style.transform=`translate3d(${u}px, ${i}px, 0)`),e&&(n.initialX=t,n.initialY=i)}t(n)}),{frame:t})}}function S(t,{raf:e=!1}={}){return new Promise(((n,r)=>{e?requestAnimationFrame((()=>{t(n,r)})):t(n,r)}))}e.default=g}
2,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var r,i=n(31),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=(r=n(4))&&r.__esModule?r:{default:r};const s=Symbol("onInitialize"),a=Symbol("onDestroy"),l={};class u extends o.default{constructor(t){super(t),this.options=i({},l,this.getOptions()),this[s]=this[s].bind(this),this[a]=this[a].bind(this)}attach(){this.draggable.on("draggable:initialize",this[s]).on("draggable:destroy",this[a])}detach(){this.draggable.off("draggable:initialize",this[s]).off("draggable:destroy",this[a])}getOptions(){return this.draggable.options.focusable||{}}getElements(){return[...this.draggable.containers,...this.draggable.getDraggableElements()]}[s](){requestAnimationFrame((()=>{this.getElements().forEach((t=>function(t){Boolean(!t.getAttribute("tabindex")&&-1===t.tabIndex)&&(c.push(t),t.tabIndex=0)}(t)))}))}[a](){requestAnimationFrame((()=>{this.getElements().forEach((t=>function(t){const e=c.indexOf(t);-1!==e&&(t.tabIndex=-1,c.splice(e,1))}(t)))}))}}e.default=u;const c=[]},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(33))&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(t){this.draggable=t}attach(){throw new Error("Not Implemented")}detach(){throw new Error("Not Implemented")}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=(r=n(4))&&r.__esModule?r:{default:r};const s=Symbol("onInitialize"),a=Symbol("onDestroy"),l=Symbol("announceEvent"),u=Symbol("announceMessage"),c=e.defaultOptions={expire:7e3};class d extends o.default{constructor(t){super(t),this.options=i({},c,this.getOptions()),this.originalTriggerMethod=this.draggable.trigger,this[s]=this[s].bind(this),this[a]=this[a].bind(this)}attach(){this.draggable.on("draggable:initialize",this[s])}detach(){this.draggable.off("draggable:destroy",this[a])}getOptions(){return this.draggable.options.announcements||{}}[l](t){const e=this.options[t.type];e&&"string"==typeof e&&this[u](e),e&&"function"==typeof e&&this[u](e(t))}[u](t){!function(t,{expire:e}){const n=document.createElement("div");n.textContent=t,h.appendChild(n),setTimeout((()=>{h.removeChild(n)}),e)}(t,{expire:this.options.expire})}[s](){this.draggable.trigger=t=>{try{this[l](t)}finally{this.originalTriggerMethod.call(this.draggable,t)}}}[a](){this.draggable.trigger=this.originalTriggerMethod}}e.default=d;const h=function(){const t=document.createElement("div");return t.setAttribute("id","draggable-live-region"),t.setAttribute("aria-relevant","additions"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","assertive"),t.setAttribute("role","log"),t.style.position="fixed",t.style.width="1px",t.style.height="1px",t.style.top="-1px",t.style.overflow="hidden",t}();document.addEventListener("DOMContentLoaded",(()=>{document.body.appendChild(h)}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var r,i=n(36),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DraggableDestroyEvent=e.DraggableInitializedEvent=e.DraggableEvent=void 0;var r,i=(r=n(3))&&r.__esModule?r:{default:r};class o extends i.default{get draggable(){return this.data.draggable}}e.DraggableEvent=o,o.type="draggable";class s extends o{}e.DraggableInitializedEvent=s,s.type="draggable:initialize";class a extends o{}e.DraggableDestroyEvent=a,a.type="draggable:destroy"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DragStopEvent=e.DragPressureEvent=e.DragOutContainerEvent=e.DragOverContainerEvent=e.DragOutEvent=e.DragOverEvent=e.DragMoveEvent=e.DragStartEvent=e.DragEvent=void 0;var r,i=(r=n(3))&&r.__esModule?r:{default:r};class o extends i.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get mirror(){return this.data.mirror}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}e.DragEvent=o,o.type="drag";class s extends o{}e.DragStartEvent=s,s.type="drag:start",s.cancelable=!0;class a extends o{}e.DragMoveEvent=a,a.type="drag:move";
2class l extends o{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}e.DragOverEvent=l,l.type="drag:over",l.cancelable=!0;class u extends o{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}e.DragOutEvent=u,u.type="drag:out";class c extends o{get overContainer(){return this.data.overContainer}}e.DragOverContainerEvent=c,c.type="drag:over:container";class d extends o{get overContainer(){return this.data.overContainer}}e.DragOutContainerEvent=d,d.type="drag:out:container";class h extends o{get pressure(){return this.data.pressure}}e.DragPressureEvent=h,h.type="drag:pressure";class f extends o{}e.DragStopEvent=f,f.type="drag:stop"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(8);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var i=n(7);Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}));var o=n(6);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}));var s=n(5);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var a,l=(a=n(12))&&a.__esModule?a:{default:a};e.default=l.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=(r=n(40))&&r.__esModule?r:{default:r},s=n(9);const a=Symbol("onDragStart"),l=Symbol("onDragOverContainer"),u=Symbol("onDragOver"),c=Symbol("onDragStop"),d={"sortable:sorted":function({dragEvent:t}){const e=t.source.textContent.trim()||t.source.id||"sortable element";if(t.over){const n=t.over.textContent.trim()||t.over.id||"sortable element";return t.source.compareDocumentPosition(t.over)&Node.DOCUMENT_POSITION_FOLLOWING?`Placed ${e} after ${n}`:`Placed ${e} before ${n}`}return`Placed ${e} into a different container`}};class h extends o.default{constructor(t=[],e={}){super(t,i({},e,{announcements:i({},d,e.announcements||{})})),this.startIndex=null,this.startContainer=null,this[a]=this[a].bind(this),this[l]=this[l].bind(this),this[u]=this[u].bind(this),this[c]=this[c].bind(this),this.on("drag:start",this[a]).on("drag:over:container",this[l]).on("drag:over",this[u]).on("drag:stop",this[c])}destroy(){super.destroy(),this.off("drag:start",this[a]).off("drag:over:container",this[l]).off("drag:over",this[u]).off("drag:stop",this[c])}index(t){return this.getDraggableElementsForContainer(t.parentNode).indexOf(t)}[a](t){this.startContainer=t.source.parentNode,this.startIndex=this.index(t.source);const e=new s.SortableStartEvent({dragEvent:t,startIndex:this.startIndex,startContainer:this.startContainer});this.trigger(e),e.canceled()&&t.cancel()}[l](t){if(t.canceled())return;const{source:e,over:n,overContainer:r}=t,i=this.index(e),o=new s.SortableSortEvent({dragEvent:t,currentIndex:i,source:e,over:n});if(this.trigger(o),o.canceled())return;const a=p({source:e,over:n,overContainer:r,children:this.getDraggableElementsForContainer(r)});if(!a)return;const{oldContainer:l,newContainer:u}=a,c=this.index(t.source),d=new s.SortableSortedEvent({dragEvent:t,oldIndex:i,newIndex:c,oldContainer:l,newContainer:u});this.trigger(d)}[u](t){if(t.over===t.originalSource||t.over===t.source)return;const{source:e,over:n,overContainer:r}=t,i=this.index(e),o=new s.SortableSortEvent({dragEvent:t,currentIndex:i,source:e,over:n});if(this.trigger(o),o.canceled())return;const a=p({source:e,over:n,overContainer:r,children:this.getDraggableElementsForContainer(r)});if(!a)return;const{oldContainer:l,newContainer:u}=a,c=this.index(e),d=new s.SortableSortedEvent({dragEvent:t,oldIndex:i,newIndex:c,oldContainer:l,newContainer:u});this.trigger(d)}[c](t){const e=new s.SortableStopEvent({dragEvent:t,oldIndex:this.startIndex,newIndex:this.index(t.source),oldContainer:this.startContainer,newContainer:t.source.parentNode});this.trigger(e),this.startIndex=null,this.startContainer=null}}function f(t){return Array.prototype.indexOf.call(t.parentNode.children,t)}function p({source:t,over:e,overContainer:n,children:r}){const i=!r.length,o=t.parentNode!==n,s=e&&!o;return i?function(t,e){const n=t.parentNode;return e.appendChild(t),{oldContainer:n,newContainer:e}}(t,n):s?function(t,e){return f(t)<f(e)?t.parentNode.insertBefore(t,e.nextElementSibling):t.parentNode.insertBefore(t,e),{oldContainer:t.parentNode,newContainer:t.parentNode}}(t,e):o?function(t,e,n){const r=t.parentNode;return e?e.parentNode.insertBefore(t,e):n.appendChild(t),{oldContainer:r,newContainer:t.parentNode}}(t,e,n):null}e.default=h}
2,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};const i=Symbol("canceled");class o{constructor(t){this[i]=!1,this.data=t}get type(){return this.constructor.type}get cancelable(){return this.constructor.cancelable}cancel(){this[i]=!0}canceled(){return Boolean(this[i])}clone(t){return new this.constructor(r({},this.data,t))}}e.default=o,o.type="event",o.cancelable=!1},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SortableStopEvent=e.SortableSortedEvent=e.SortableSortEvent=e.SortableStartEvent=e.SortableEvent=void 0;var r,i=(r=n(3))&&r.__esModule?r:{default:r};class o extends i.default{get dragEvent(){return this.data.dragEvent}}e.SortableEvent=o,o.type="sortable";class s extends o{get startIndex(){return this.data.startIndex}get startContainer(){return this.data.startContainer}}e.SortableStartEvent=s,s.type="sortable:start",s.cancelable=!0;class a extends o{get currentIndex(){return this.data.currentIndex}get over(){return this.data.oldIndex}get overContainer(){return this.data.newIndex}}e.SortableSortEvent=a,a.type="sortable:sort",a.cancelable=!0;class l extends o{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}e.SortableSortedEvent=l,l.type="sortable:sorted";class u extends o{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}e.SortableStopEvent=u,u.type="sortable:stop"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(9);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var i,o=(i=n(41))&&i.__esModule?i:{default:i};e.default=o.default}])},t.exports=n()})),n=(t=e)&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;if(void 0===window.livewire)throw"Livewire Sortable Plugin: window.livewire is undefined. Make sure @livewireScripts is placed above this script include";window.livewire.directive("sortable-group",((t,e,r)=>{if(e.modifiers.includes("item-group")&&t.closest("[wire\\:sortable-group]").livewire_sortable.addContainer(t),e.modifiers.length>0)return;let i={draggable:"[wire\\:sortable-group\\.item]"};t.querySelector("[wire\\:sortable-group\\.handle]")&&(i.handle="[wire\\:sortable-group\\.handle]"),(t.livewire_sortable=new n([],i)).on("sortable:stop",(()=>{setTimeout((()=>{let n=[];t.querySelectorAll("[wire\\:sortable-group\\.item-group]").forEach(((t,e)=>{let r=[];t.querySelectorAll("[wire\\:sortable-group\\.item]").forEach(((t,e)=>{r.push({order:e+1,value:t.getAttribute("wire:sortable-group.item")})})),n.push({order:e+1,value:t.getAttribute("wire:sortable-group.item-group"),items:r})})),r.call(e.method,n)}),1)}))})),window.livewire.directive("sortable",((t,e,r)=>{if(e.modifiers.length>0)return;let i={draggable:"[wire\\:sortable\\.item]"};t.querySelector("[wire\\:sortable\\.handle]")&&(i.handle="[wire\\:sortable\\.handle]"),new n(t,i).on("sortable:stop",(()=>{setTimeout((()=>{let n=[];t.querySelectorAll("[wire\\:sortable\\.item]").forEach(((t,e)=>{n.push({order:e+1,value:t.getAttribute("wire:sortable.item")})})),r.call(e.method,n)}),1)}))}))},void 0===(i="function"==typeof r?r.call(e,n,e,t):r)||(t.exports=i)},6486:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,u=32,c=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",h]],_="[object Arguments]",v="[object Array]",b="[object Boolean]",w="[object Date]",M="[object Error]",S="[object Function]",C="[object GeneratorFunction]",A="[object Map]",x="[object Number]",E="[object Object]",L="[object Promise]",T="[object RegExp]",D="[object Set]",k="[object String]",O="[object Symbol]",I="[object WeakMap]",N="[object ArrayBuffer]",P="[object DataView]",R="[object Float32Array]",Y="[object Float64Array
vendor: 8,913 bytes, line 2
2]",j="[object Int8Array]",B="[object Int16Array]",H="[object Int32Array]",F="[object Uint8Array]",W="[object Uint8ClampedArray]",U="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,K=RegExp(X.source),J=RegExp(Z.source),Q=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),st=/^\s+/,at=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,Ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",Tt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dt="['’]",kt="[\\ud800-\\udfff]",Ot="["+Tt+"]",It="["+Ct+"]",Nt="\\d+",Pt="[\\u2700-\\u27bf]",Rt="["+xt+"]",Yt="[^\\ud800-\\udfff"+Tt+Nt+At+xt+Et+"]",jt="\\ud83c[\\udffb-\\udfff]",Bt="[^\\ud800-\\udfff]",Ht="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+Et+"]",Ut="(?:"+Rt+"|"+Yt+")",zt="(?:"+Wt+"|"+Yt+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+It+"|"+jt+")"+"?",Xt="[\\ufe0e\\ufe0f]?",Zt=Xt+Gt+("(?:\\u200d(?:"+[Bt,Ht,Ft].join("|")+")"+Xt+Gt+")*"),Kt="(?:"+[Pt,Ht,Ft].join("|")+")"+Zt,Jt="(?:"+[Bt+It+"?",It,Ht,Ft,kt].join("|")+")",Qt=RegExp(Dt,"g"),$t=RegExp(It,"g"),te=RegExp(jt+"(?="+jt+")|"+Jt+Zt,"g"),ee=RegExp([Wt+"?"+Rt+"+"+Vt+"(?="+[Ot,Wt,"$"].join("|")+")",zt+"+"+qt+"(?="+[Ot,Wt+Ut,"$"].join("|")+")",Wt+"?"+Ut+"+"+Vt,Wt+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nt,Kt].join("|"),"g"),ne=RegExp("[\\u200d\\ud800-\\udfff"+Ct+Lt+"]"),re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oe=-1,se={};se[R]=se[Y]=se[j]=se[B]=se[H]=se[F]=se[W]=se[U]=se[z]=!0,se[_]=se[v]=se[N]=se[b]=se[P]=se[w]=se[M]=se[S]=se[A]=se[x]=se[E]=se[T]=se[D]=se[k]=se[I]=!1;var ae={};ae[_]=ae[v]=ae[N]=ae[P]=ae[b]=ae[w]=ae[R]=ae[Y]=ae[j]=ae[B]=ae[H]=ae[A]=ae[x]=ae[E]=ae[T]=ae[D]=ae[k]=ae[O]=ae[F]=ae[W]=ae[U]=ae[z]=!0,ae[M]=ae[S]=ae[I]=!1;var le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,ce=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,he="object"==typeof self&&self&&self.Object===Object&&self,fe=de||he||Function("return this")(),pe=e&&!e.nodeType&&e,me=pe&&t&&!t.nodeType&&t,ge=me&&me.exports===pe,ye=ge&&de.process,_e=function(){try{var t=me&&me.require&&me.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),ve=_e&&_e.isArrayBuffer,be=_e&&_e.isDate,we=_e&&_e.isMap,Me=_e&&_e.isRegExp,Se=_e&&_e.isSet,Ce=_e&&_e.isTypedArray;function Ae(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function xe(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function Ee(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Le(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function De(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function ke(t,e){return!!(null==t?0:t.length)&&Fe(t,e,0)>-1}function Oe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Ie(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Ne(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Pe(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Re(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Ye(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var je=Ve("length");function Be(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function He(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Fe(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,Ue,n)}function We(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ue(t){return t!=t}function ze(t,e){var n=null==t?0:t.length;return n?Xe(t,e)/n:m}function Ve(t){return function(e){return null==e?i:e[t]}}function qe(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Xe(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ze(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ke(t){return t?t.slice(0,mn(t)+1).replace(st,""):t}function Je(t){return function(e){return t(e)}}function Qe(t,e){return Ie(e,(function(e){return t[e]}))}function $e(t,e){return t.has(e)}function tn(t,e){for(var n=-1,r=t.length;++n<r&&Fe(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length;n--&&Fe(e,t[n],0)>-1;);return n}function nn(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var rn=qe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=qe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(t){return"\\"+le[t]}function an(t){return ne.test(t)}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function cn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function dn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function fn(t){return an(t)?function(t){var e=te.lastIndex=0;for(;te.test(t);)++e;return e}(t):je(t)}function pn(t){return an(t)?function(t){return t.match(te)||[]}(t):function(t){return t.split("")}(t)}function mn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var gn=qe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function t(e){var n,r=(e=null==e?fe:yn.defaults(fe.Object(),e,yn.pick(fe,ie))).Array,at=e.Date,Ct=e.Error,At=e.Function,xt=e.Math,Et=e.Object,Lt=e.RegExp,Tt=e.String,Dt=e.TypeError,kt=r.prototype,Ot=At.prototype,It=Et.prototype,Nt=e["__core-js_shared__"],Pt=Ot.toString,Rt=It.hasOwnProperty,Yt=0,jt=(n=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+n:"",Bt=It.toString,Ht=Pt.call(Et),Ft=fe._,Wt=Lt("^"+Pt.call(Rt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=ge?e.Buffer:i,zt=e.Symbol,Vt=e.Uint8Array,qt=Ut?Ut.allocUnsafe:i,Gt=un(Et.getPrototypeOf,Et),Xt=Et.create,Zt=It.propertyIsEnumerable,Kt=kt.splice,Jt=zt?zt.isConcatSpreadable:i,te=zt?zt.iterator:i,ne=zt?zt.toStringTag:i,le=function(){try{var t=po(Et,"defineProperty");return t({},"",{}),t}catch(t){}}(),de=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,he=at&&at.now!==fe.Date.now&&at.now,pe=e.setTimeout!==fe.setTimeout&&e.setTimeout,me=xt.ceil,ye=xt.floor,_e=Et.getOwnPropertySymbols,je=Ut?Ut.isBuffer:i,qe=e.isFinite,_n=kt.join,vn=un(Et.keys,Et),bn=xt.max,wn=xt.min,Mn=at.now,Sn=e.parseInt,Cn=xt.random,An=kt.reverse,xn=po(e,"DataView"),En=po(e,"Map"),Ln=po(e,"Promise"),Tn=po(e,"Set"),Dn=po(e,"WeakMap"),kn=po(Et,"create"),On=Dn&&new Dn,In={},Nn=Fo(xn),Pn=Fo(En),Rn=Fo(Ln),Yn=Fo(Tn),jn=Fo(Dn),Bn=zt?zt.prototype:i,Hn=Bn?Bn.valueOf:i,Fn=Bn?Bn.toString:i;function Wn(t){if(ia(t)&&!Gs(t)&&!(t instanceof qn)){if(t instanceof Vn)return t;if(Rt.call(t,"__wrapped__"))return Wo(t)}return new Vn(t)}var Un=function(){function t(){}return function(e){if(!ra(e))return{};if(Xt)return Xt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Vn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zn;++e<n;)this.add(t[e])}function Jn(t){var e=this.__data__=new Xn(t);this.size=e.size}function Qn(t,e){var n=Gs(t),r=!n&&qs(t),i=!n&&!r&&Js(t),o=!n&&!r&&!i&&ha(t),s=n||r||i||o,a=s?Ze(t.length,Tt):[],l=a.length;for(var u in t)!e&&!Rt.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wo(u,l))||a.push(u);return a}function $n(t){var e=t.length;return e?t[Kr(0,e-1)]:i}function tr(t,e){return jo(ki(t),ur(e,0,t.length))}function er(t){return jo(ki(t))}function nr(t,e,n){(n!==i&&!Us(t[e],n)||n===i&&!(e in t))&&ar(t,e,n)}function rr(t,e,n){var r=t[e];Rt.call(t,e)&&Us(r,n)&&(n!==i||e in t)||ar(t,e,n)}function ir(t,e){for(var n=t.length;n--;)if(Us(t[n][0],e))return n;return-1}function or(t,e,n,r){return pr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function sr(t,e){return t&&Oi(e,Na(e),t)}function ar(t,e,n){"__proto__"==e&&le?le(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function lr(t,e){for(var n=-1,o=e.length,s=r(o),a=null==t;++n<o;)s[n]=a?i:Ta(t,e[n]);return s}function ur(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function cr(t,e,n,r,o,s){var a,l=1&e,u=2&e,c=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),a!==i)return a;if(!ra(t))return t;var d=Gs(t);if(d){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Rt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return ki(t,a)}else{var h=yo(t),f=h==S||h==C;if(Js(t))return Ai(t,l);if(h==E||h==_||f&&!o){if(a=u||f?{}:vo(t),!l)return u?function(t,e){return Oi(t,go(t),e)}(t,function(t,e){return t&&Oi(e,Pa(e),t)}(a,t)):function(t,e){return Oi(t,mo(t),e)}(t,sr(a,t))}else{if(!ae[h])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case N:return xi(t);case b:case w:return new r(+t);case P:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case R:case Y:case j:case B:case H:case F:case W:case U:case z:return Ei(t,n);case A:return new r;case x:case k:return new r(t);case T:return function(t){var e=new t.constructor(t.source,mt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case D:return new r;case O:return i=t,Hn?Et(Hn.call(i)):{}}var i}(t,h,l)}}s||(s=new Jn);var p=s.get(t);if(p)return p;s.set(t,a),ua(t)?t.forEach((function(r){a.add(cr(r,e,n,r,t,s))})):oa(t)&&t.forEach((function(r,i){a.set(i,cr(r,e,n,i,t,s))}));var m=d?i:(c?u?so:oo:u?Pa:Na)(t);return Ee(m||t,(function(r,i){m&&(r=t[i=r]),rr(a,i,cr(r,e,n,i,t,s))})),a}function dr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Et(t);r--;){var o=n[r],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new Dt(o);return No((function(){t.apply(i,n)}),e)}function fr(t,e,n,r){var i=-1,o=ke,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;n&&(e=Ie(e,Je(n))),r?(o=Oe,s=!1):e.length>=200&&(o=$e,s=!1,e=new Kn(e));t:for(;++i<a;){var c=t[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,s&&d==d){for(var h=u;h--;)if(e[h]===d)continue t;l.push(c)}else o(e,d,r)||l.push(c)}return l}Wn.templateSettings={escape:Q,evaluate:$,interpolate:tt,variable:"",imports:{_:Wn}},Wn.prototype=zn.prototype,Wn.prototype.constructor=Wn,Vn.prototype=Un(zn.prototype),Vn.prototype.constructor=Vn,qn.prototype=Un(zn.prototype),qn.prototype.constructor=qn,Gn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},Gn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Gn.prototype.get=function(t){var e=this.__data__;if(kn){var n=e[t];return n===s?i:n}return Rt.call(e,t)?e[t]:i},Gn.prototype.has=function(t){var e=this.__data__;return kn?e[t]!==i:Rt.call(e,t)},Gn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=kn&&e===i?s:e,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=ir(e,t);return!(n<0)&&(n==e.length-1?e.pop():Kt.call(e,n,1),--this.size,!0)},Xn.prototype.get=function(t){var e=this.__data__,n=ir(e,t);return n<0?i:e[n][1]},Xn.prototype.has=function(t){return ir(this.__data__,t)>-1}
vendor: 3,758 bytes, line 2
2,Xn.prototype.set=function(t,e){var n=this.__data__,r=ir(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(En||Xn),string:new Gn}},Zn.prototype.delete=function(t){var e=ho(this,t).delete(t);return this.size-=e?1:0,e},Zn.prototype.get=function(t){return ho(this,t).get(t)},Zn.prototype.has=function(t){return ho(this,t).has(t)},Zn.prototype.set=function(t,e){var n=ho(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(t){return this.__data__.set(t,s),this},Kn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Jn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Jn.prototype.get=function(t){return this.__data__.get(t)},Jn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!En||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(t,e),this.size=n.size,this};var pr=Pi(Mr),mr=Pi(Sr,!0);function gr(t,e){var n=!0;return pr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function yr(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],a=e(s);if(null!=a&&(l===i?a==a&&!da(a):n(a,l)))var l=a,u=s}return u}function _r(t,e){var n=[];return pr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function vr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=bo),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?vr(a,e-1,n,r,i):Ne(i,a):r||(i[i.length]=a)}return i}var br=Ri(),wr=Ri(!0);function Mr(t,e){return t&&br(t,e,Na)}function Sr(t,e){return t&&wr(t,e,Na)}function Cr(t,e){return De(e,(function(e){return ta(t[e])}))}function Ar(t,e){for(var n=0,r=(e=wi(e,t)).length;null!=t&&n<r;)t=t[Ho(e[n++])];return n&&n==r?t:i}function xr(t,e,n){var r=e(t);return Gs(t)?r:Ne(r,n(t))}function Er(t){return null==t?t===i?"[object Undefined]":"[object Null]":ne&&ne in Et(t)?function(t){var e=Rt.call(t,ne),n=t[ne];try{t[ne]=i;var r=!0}catch(t){}var o=Bt.call(t);r&&(e?t[ne]=n:delete t[ne]);return o}(t):function(t){return Bt.call(t)}(t)}function Lr(t,e){return t>e}function Tr(t,e){return null!=t&&Rt.call(t,e)}function Dr(t,e){return null!=t&&e in Et(t)}function kr(t,e,n){for(var o=n?Oe:ke,s=t[0].length,a=t.length,l=a,u=r(a),c=1/0,d=[];l--;){var h=t[l];l&&e&&(h=Ie(h,Je(e))),c=wn(h.length,c),u[l]=!n&&(e||s>=120&&h.length>=120)?new Kn(l&&h):i}h=t[0];var f=-1,p=u[0];t:for(;++f<s&&d.length<c;){var m=h[f],g=e?e(m):m;if(m=n||0!==m?m:0,!(p?$e(p,g):o(d,g,n))){for(l=a;--l;){var y=u[l];if(!(y?$e(y,g):o(t[l],g,n)))continue t}p&&p.push(g),d.push(m)}}return d}function Or(t,e,n){var r=null==(t=Do(t,e=wi(e,t)))?t:t[Ho($o(e))];return null==r?i:Ae(r,t,n)}function Ir(t){return ia(t)&&Er(t)==_}function Nr(t,e,n,r,o){return t===e||(null==t||null==e||!ia(t)&&!ia(e)?t!=t&&e!=e:function(t,e,n,r,o,s){var a=Gs(t),l=Gs(e),u=a?v:yo(t),c=l?v:yo(e),d=(u=u==_?E:u)==E,h=(c=c==_?E:c)==E,f=u==c;if(f&&Js(t)){if(!Js(e))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Jn),a||ha(t)?ro(t,e,n,r,o,s):function(t,e,n,r,i,o,s){switch(n){case P:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case N:return!(t.byteLength!=e.byteLength||!o(new Vt(t),new Vt(e)));case b:case w:case x:return Us(+t,+e);case M:return t.name==e.name&&t.message==e.message;case T:case k:return t==e+"";case A:var a=ln;case D:var l=1&r;if(a||(a=dn),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;r|=2,s.set(t,e);var c=ro(a(t),a(e),r,i,o,s);return s.delete(t),c;case O:if(Hn)return Hn.call(t)==Hn.call(e)}return!1}(t,e,u,n,r,o,s);if(!(1&n)){var p=d&&Rt.call(t,"__wrapped__"),m=h&&Rt.call(e,"__wrapped__");
vendor: 4,582 bytes, line 2
2if(p||m){var g=p?t.value():t,y=m?e.value():e;return s||(s=new Jn),o(g,y,n,r,s)}}if(!f)return!1;return s||(s=new Jn),function(t,e,n,r,o,s){var a=1&n,l=oo(t),u=l.length,c=oo(e).length;if(u!=c&&!a)return!1;var d=u;for(;d--;){var h=l[d];if(!(a?h in e:Rt.call(e,h)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var m=!0;s.set(t,e),s.set(e,t);var g=a;for(;++d<u;){var y=t[h=l[d]],_=e[h];if(r)var v=a?r(_,y,h,e,t,s):r(y,_,h,t,e,s);if(!(v===i?y===_||o(y,_,n,r,s):v)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(t),s.delete(e),m}(t,e,n,r,o,s)}(t,e,n,r,Nr,o))}function Pr(t,e,n,r){var o=n.length,s=o,a=!r;if(null==t)return!s;for(t=Et(t);o--;){var l=n[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var u=(l=n[o])[0],c=t[u],d=l[1];if(a&&l[2]){if(c===i&&!(u in t))return!1}else{var h=new Jn;if(r)var f=r(c,d,u,t,e,h);if(!(f===i?Nr(d,c,3,r,h):f))return!1}}return!0}function Rr(t){return!(!ra(t)||(e=t,jt&&jt in e))&&(ta(t)?Wt:_t).test(Fo(t));var e}function Yr(t){return"function"==typeof t?t:null==t?sl:"object"==typeof t?Gs(t)?Ur(t[0],t[1]):Wr(t):ml(t)}function jr(t){if(!xo(t))return vn(t);var e=[];for(var n in Et(t))Rt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Br(t){if(!ra(t))return function(t){var e=[];if(null!=t)for(var n in Et(t))e.push(n);return e}(t);var e=xo(t),n=[];for(var r in t)("constructor"!=r||!e&&Rt.call(t,r))&&n.push(r);return n}function Hr(t,e){return t<e}function Fr(t,e){var n=-1,i=Zs(t)?r(t.length):[];return pr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Wr(t){var e=fo(t);return 1==e.length&&e[0][2]?Lo(e[0][0],e[0][1]):function(n){return n===t||Pr(n,t,e)}}function Ur(t,e){return So(t)&&Eo(e)?Lo(Ho(t),e):function(n){var r=Ta(n,t);return r===i&&r===e?Da(n,t):Nr(e,r,3)}}function zr(t,e,n,r,o){t!==e&&br(e,(function(s,a){if(o||(o=new Jn),ra(s))!function(t,e,n,r,o,s,a){var l=Oo(t,n),u=Oo(e,n),c=a.get(u);if(c)return void nr(t,n,c);var d=s?s(l,u,n+"",t,e,a):i,h=d===i;if(h){var f=Gs(u),p=!f&&Js(u),m=!f&&!p&&ha(u);d=u,f||p||m?Gs(l)?d=l:Ks(l)?d=ki(l):p?(h=!1,d=Ai(u,!0)):m?(h=!1,d=Ei(u,!0)):d=[]:aa(u)||qs(u)?(d=l,qs(l)?d=ba(l):ra(l)&&!ta(l)||(d=vo(u))):h=!1}h&&(a.set(u,d),o(d,u,r,s,a),a.delete(u));nr(t,n,d)}(t,e,a,n,zr,r,o);else{var l=r?r(Oo(t,a),s,a+"",t,e,o):i;l===i&&(l=s),nr(t,a,l)}}),Pa)}function Vr(t,e){var n=t.length;if(n)return wo(e+=e<0?n:0,n)?t[e]:i}function qr(t,e,n){e=e.length?Ie(e,(function(t){return Gs(t)?function(e){return Ar(e,1===t.length?t[0]:t)}:t})):[sl];var r=-1;e=Ie(e,Je(co()));var i=Fr(t,(function(t,n,i){var o=Ie(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;for(;++r<s;){var l=Li(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Gr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Ar(t,s);n(a,s)&&ei(o,wi(s,t),a)}return o}function Xr(t,e,n,r){var i=r?We:Fe,o=-1,s=e.length,a=t;for(t===e&&(e=ki(e)),n&&(a=Ie(t,Je(n)));++o<s;)for(var l=0,u=e[o],c=n?n(u):u;(l=i(a,c,l,r))>-1;)a!==t&&Kt.call(a,l,1),Kt.call(t,l,1);return t}function Zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;wo(i)?Kt.call(t,i,1):fi(t,i)}}return t}function Kr(t,e){return t+ye(Cn()*(e-t+1))}function Jr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ye(e/2))&&(t+=t)}while(e);return n}function Qr(t,e){return Po(To(t,e,sl),t+"")}function $r(t){return $n(Ua(t))}function ti(t,e){var n=Ua(t);return jo(n,ur(e,0,n.length))}function ei(t,e,n,r){if(!ra(t))return t;for(var o=-1,s=(e=wi(e,t)).length,a=s-1,l=t;null!=l&&++o<s;){var u=Ho(e[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=a){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=ra(d)?d:wo(e[o+1])?[]:{})}rr(l,u,c),l=l[u]}return t}var ni=On?function(t,e){return On.set(t,e),t}:sl,ri=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:rl(e),writable:!0})}:sl;function ii(t){return jo(Ua(t))}function oi(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i<o;)s[i]=t[i+e];return s}function si(t,e){var n;return pr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];
vendor: 5,744 bytes, line 2
2null!==s&&!da(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return li(t,e,sl,n)}function li(t,e,n,r){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,l=null===e,u=da(e),c=e===i;o<s;){var d=ye((o+s)/2),h=n(t[d]),f=h!==i,p=null===h,m=h==h,g=da(h);if(a)var y=r||m;else y=c?m&&(r||f):l?m&&f&&(r||!p):u?m&&f&&!p&&(r||!g):!p&&!g&&(r?h<=e:h<e);y?o=d+1:s=d}return wn(s,4294967294)}function ui(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Us(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function ci(t){return"number"==typeof t?t:da(t)?m:+t}function di(t){if("string"==typeof t)return t;if(Gs(t))return Ie(t,di)+"";if(da(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function hi(t,e,n){var r=-1,i=ke,o=t.length,s=!0,a=[],l=a;if(n)s=!1,i=Oe;else if(o>=200){var u=e?null:Ji(t);if(u)return dn(u);s=!1,i=$e,l=new Kn}else l=e?[]:a;t:for(;++r<o;){var c=t[r],d=e?e(c):c;if(c=n||0!==c?c:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;e&&l.push(d),a.push(c)}else i(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function fi(t,e){return null==(t=Do(t,e=wi(e,t)))||delete t[Ho($o(e))]}function pi(t,e,n,r){return ei(t,e,n(Ar(t,e)),r)}function mi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?oi(t,r?0:o,r?o+1:i):oi(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof qn&&(n=n.value()),Pe(e,(function(t,e){return e.func.apply(e.thisArg,Ne([t],e.args))}),n)}function yi(t,e,n){var i=t.length;if(i<2)return i?hi(t[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=t[o],l=-1;++l<i;)l!=o&&(s[o]=fr(s[o]||a,t[l],e,n));return hi(vr(s,1),e,n)}function _i(t,e,n){for(var r=-1,o=t.length,s=e.length,a={};++r<o;){var l=r<s?e[r]:i;n(a,t[r],l)}return a}function vi(t){return Ks(t)?t:[]}function bi(t){return"function"==typeof t?t:sl}function wi(t,e){return Gs(t)?t:So(t,e)?[t]:Bo(wa(t))}var Mi=Qr;function Si(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:oi(t,e,n)}var Ci=de||function(t){return fe.clearTimeout(t)};function Ai(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new Vt(e).set(new Vt(t)),e}function Ei(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Li(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,s=da(t),a=e!==i,l=null===e,u=e==e,c=da(e);if(!l&&!c&&!s&&t>e||s&&a&&u&&!l&&!c||r&&a&&u||!n&&u||!o)return 1;if(!r&&!s&&!c&&t<e||c&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!u)return-1}return 0}function Ti(t,e,n,i){for(var o=-1,s=t.length,a=n.length,l=-1,u=e.length,c=bn(s-a,0),d=r(u+c),h=!i;++l<u;)d[l]=e[l];for(;++o<a;)(h||o<s)&&(d[n[o]]=t[o]);for(;c--;)d[l++]=t[o++];return d}function Di(t,e,n,i){for(var o=-1,s=t.length,a=-1,l=n.length,u=-1,c=e.length,d=bn(s-l,0),h=r(d+c),f=!i;++o<d;)h[o]=t[o];for(var p=o;++u<c;)h[p+u]=e[u];for(;++a<l;)(f||o<s)&&(h[p+n[a]]=t[o++]);return h}function ki(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Oi(t,e,n,r){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var l=e[s],u=r?r(n[l],t[l],l,n,t):i;u===i&&(u=t[l]),o?ar(n,l,u):rr(n,l,u)}return n}function Ii(t,e){return function(n,r){var i=Gs(n)?xe:or,o=e?e():{};return i(n,t,co(r,2),o)}}function Ni(t){return Qr((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&Mo(n[0],n[1],a)&&(s=o<3?i:s,o=1),e=Et(e);++r<o;){var l=n[r];l&&t(e,l,r,s)}return e}))}function Pi(t,e){return function(n,r){if(null==n)return n;if(!Zs(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Et(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Ri(t){return function(e,n,r){for(var i=-1,o=Et(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(o[l],l,o))break}return e}}function Yi(t){return function(e){var n=an(e=wa(e))?pn(e):i,r=n?n[0]:e.charAt(0),o=n?Si(n,1).join(""):e.slice(1);return r[t]()+o}}function ji(t){return function(e){return Pe(tl(qa(e).replace(Qt,"")),t,"")}}function Bi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Un(t.prototype),r=t.apply(n,e);return ra(r)?r:n}}function Hi(t){return function(e,n,r){var o=Et(e);if(!Zs(e)){var s=co(n,3);e=Na(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[s?e[a]:a]:i}}function Fi(t){return io((function(e){var n=e.length,r=n,s=Vn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Dt(o);if(s&&!l&&"wrapper"==lo(a))var l=new Vn([],!0)}for(r=l?r:n;++r<n;){var u=lo(a=e[r]),c="wrapper"==u?ao(a):i;l=c&&Co(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[lo(c[0])].apply(l,c[3]):1==a.length&&Co(a)?l[u]():l.thru(a)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Gs(r))return l.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Wi(t,e,n,o,s,a,l,u,c,h){var f=e&d,p=1&e,m=2&e,g=24&e,y=512&e,_=m?i:Bi(t);return function i(){for(var d=arguments.length,v=r(d),b=d;b--;)v[b]=arguments[b];if(g)var w=uo(i),M=nn(v,w);if(o&&(v=Ti(v,o,s,g)),a&&(v=Di(v,a,l,g)),d-=M,g&&d<h){var S=cn(v,w);return Zi(t,e,Wi,i.placeholder,n,v,S,u,c,h-d)}var C=p?n:this,A=m?C[t]:t;return d=v.length,u?v=ko(v,u):y&&d>1&&v.reverse(),f&&c<d&&(v.length=c),this&&this!==fe&&this instanceof i&&(A=_||Bi(A)),A.apply(C,v)}}function Ui(t,e){return function(n,r){return function(t,e,n,r){return Mr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function zi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;
vendor: 33,973 bytes, line 2
2if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=di(n),r=di(r)):(n=ci(n),r=ci(r)),o=t(n,r)}return o}}function Vi(t){return io((function(e){return e=Ie(e,Je(co())),Qr((function(n){var r=this;return t(e,(function(t){return Ae(t,r,n)}))}))}))}function qi(t,e){var n=(e=e===i?" ":di(e)).length;if(n<2)return n?Jr(e,t):e;var r=Jr(e,me(t/fn(e)));return an(e)?Si(pn(r),0,t).join(""):r.slice(0,t)}function Gi(t){return function(e,n,o){return o&&"number"!=typeof o&&Mo(e,n,o)&&(n=o=i),e=ga(e),n===i?(n=e,e=0):n=ga(n),function(t,e,n,i){for(var o=-1,s=bn(me((e-t)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=t,t+=n;return a}(e,n,o=o===i?e<n?1:-1:ga(o),t)}}function Xi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=va(e),n=va(n)),t(e,n)}}function Zi(t,e,n,r,o,s,a,l,d,h){var f=8&e;e|=f?u:c,4&(e&=~(f?c:u))||(e&=-4);var p=[t,e,o,f?s:i,f?a:i,f?i:s,f?i:a,l,d,h],m=n.apply(i,p);return Co(t)&&Io(m,p),m.placeholder=r,Ro(m,t,e)}function Ki(t){var e=xt[t];return function(t,n){if(t=va(t),(n=null==n?0:wn(ya(n),292))&&qe(t)){var r=(wa(t)+"e").split("e");return+((r=(wa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ji=Tn&&1/dn(new Tn([,-0]))[1]==f?function(t){return new Tn(t)}:dl;function Qi(t){return function(e){var n=yo(e);return n==A?ln(e):n==D?hn(e):function(t,e){return Ie(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function $i(t,e,n,s,f,p,m,g){var y=2&e;if(!y&&"function"!=typeof t)throw new Dt(o);var _=s?s.length:0;if(_||(e&=-97,s=f=i),m=m===i?m:bn(ya(m),0),g=g===i?g:ya(g),_-=f?f.length:0,e&c){var v=s,b=f;s=f=i}var w=y?i:ao(t),M=[t,e,n,s,f,v,b,p,m,g];if(w&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==d&&8==n||r==d&&n==h&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var l=e[3];if(l){var u=t[3];t[3]=u?Ti(u,l,e[4]):l,t[4]=u?cn(t[3],a):e[4]}(l=e[5])&&(u=t[5],t[5]=u?Di(u,l,e[6]):l,t[6]=u?cn(t[5],a):e[6]);(l=e[7])&&(t[7]=l);r&d&&(t[8]=null==t[8]?e[8]:wn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(M,w),t=M[0],e=M[1],n=M[2],s=M[3],f=M[4],!(g=M[9]=M[9]===i?y?0:t.length:bn(M[9]-_,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||e==l?function(t,e,n){var o=Bi(t);return function s(){for(var a=arguments.length,l=r(a),u=a,c=uo(s);u--;)l[u]=arguments[u];var d=a<3&&l[0]!==c&&l[a-1]!==c?[]:cn(l,c);return(a-=d.length)<n?Zi(t,e,Wi,s.placeholder,i,l,d,i,i,n-a):Ae(this&&this!==fe&&this instanceof s?o:t,this,l)}}(t,e,g):e!=u&&33!=e||f.length?Wi.apply(i,M):function(t,e,n,i){var o=1&e,s=Bi(t);return function e(){for(var a=-1,l=arguments.length,u=-1,c=i.length,d=r(c+l),h=this&&this!==fe&&this instanceof e?s:t;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++a];return Ae(h,o?n:this,d)}}(t,e,n,s);else var S=function(t,e,n){var r=1&e,i=Bi(t);return function e(){return(this&&this!==fe&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Ro((w?ni:Io)(S,M),t,e)}function to(t,e,n,r){return t===i||Us(t,It[n])&&!Rt.call(r,n)?e:t}function eo(t,e,n,r,o,s){return ra(t)&&ra(e)&&(s.set(e,t),zr(t,e,i,eo,s),s.delete(e)),t}function no(t){return aa(t)?i:t}function ro(t,e,n,r,o,s){var a=1&n,l=t.length,u=e.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(t),d=s.get(e);if(c&&d)return c==e&&d==t;var h=-1,f=!0,p=2&n?new Kn:i;for(s.set(t,e),s.set(e,t);++h<l;){var m=t[h],g=e[h];if(r)var y=a?r(g,m,h,e,t,s):r(m,g,h,t,e,s);if(y!==i){if(y)continue;f=!1;break}if(p){if(!Ye(e,(function(t,e){if(!$e(p,e)&&(m===t||o(m,t,n,r,s)))return p.push(e)}))){f=!1;break}}else if(m!==g&&!o(m,g,n,r,s)){f=!1;break}}return s.delete(t),s.delete(e),f}function io(t){return Po(To(t,i,Xo),t+"")}function oo(t){return xr(t,Na,mo)}function so(t){return xr(t,Pa,go)}var ao=On?function(t){return On.get(t)}:dl;function lo(t){for(var e=t.name+"",n=In[e],r=Rt.call(In,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function uo(t){return(Rt.call(Wn,"placeholder")?Wn:t).placeholder}function co(){var t=Wn.iteratee||al;return t=t===al?Yr:t,arguments.length?t(arguments[0],arguments[1]):t}function ho(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function fo(t){for(var e=Na(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Eo(i)]}return e}function po(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Rr(n)?n:i}var mo=_e?function(t){return null==t?[]:(t=Et(t),De(_e(t),(function(e){return Zt.call(t,e)})))}:_l,go=_e?function(t){for(var e=[];t;)Ne(e,mo(t)),t=Gt(t);return e}:_l,yo=Er;function _o(t,e,n){for(var r=-1,i=(e=wi(e,t)).length,o=!1;++r<i;){var s=Ho(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&na(i)&&wo(s,i)&&(Gs(t)||qs(t))}function vo(t){return"function"!=typeof t.constructor||xo(t)?{}:Un(Gt(t))}function bo(t){return Gs(t)||qs(t)||!!(Jt&&t&&t[Jt])}function wo(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&bt.test(t))&&t>-1&&t%1==0&&t<e}function Mo(t,e,n){if(!ra(n))return!1;var r=typeof e;return!!("number"==r?Zs(n)&&wo(e,n.length):"string"==r&&e in n)&&Us(n[e],t)}function So(t,e){if(Gs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!da(t))||(nt.test(t)||!et.test(t)||null!=e&&t in Et(e))}function Co(t){var e=lo(t),n=Wn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ao(n);return!!r&&t===r[0]}(xn&&yo(new xn(new ArrayBuffer(1)))!=P||En&&yo(new En)!=A||Ln&&yo(Ln.resolve())!=L||Tn&&yo(new Tn)!=D||Dn&&yo(new Dn)!=I)&&(yo=function(t){var e=Er(t),n=e==E?t.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Nn:return P;case Pn:return A;case Rn:return L;case Yn:return D;case jn:return I}return e});var Ao=Nt?ta:vl;function xo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||It)}function Eo(t){return t==t&&!ra(t)}function Lo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in Et(n)))}}function To(t,e,n){return e=bn(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=bn(i.length-e,0),a=r(s);++o<s;)a[o]=i[e+o];o=-1;for(var l=r(e+1);++o<e;)l[o]=i[o];return l[e]=n(a),Ae(t,this,l)}}function Do(t,e){return e.length<2?t:Ar(t,oi(e,0,-1))}function ko(t,e){for(var n=t.length,r=wn(e.length,n),o=ki(t);r--;){var s=e[r];t[r]=wo(s,n)?o[s]:i}return t}function Oo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Io=Yo(ni),No=pe||function(t,e){return fe.setTimeout(t,e)},Po=Yo(ri);function Ro(t,e,n){var r=e+"";return Po(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ee(y,(function(n){var r="_."+n[0];e&n[1]&&!ke(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(r),n)))}function Yo(t){var e=0,n=0;return function(){var r=Mn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function jo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var s=Kr(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var Bo=function(t){var e=Ys(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rt,(function(t,n,r,i){e.push(r?i.replace(ft,"$1"):n||t)})),e}));function Ho(t){if("string"==typeof t||da(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Pt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Wo(t){if(t instanceof qn)return t.clone();var e=new Vn(t.__wrapped__,t.__chain__);return e.__actions__=ki(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Uo=Qr((function(t,e){return Ks(t)?fr(t,vr(e,1,Ks,!0)):[]})),zo=Qr((function(t,e){var n=$o(e);return Ks(n)&&(n=i),Ks(t)?fr(t,vr(e,1,Ks,!0),co(n,2)):[]})),Vo=Qr((function(t,e){var n=$o(e);return Ks(n)&&(n=i),Ks(t)?fr(t,vr(e,1,Ks,!0),i,n):[]}));function qo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ya(n);return i<0&&(i=bn(r+i,0)),He(t,co(e,3),i)}function Go(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ya(n),o=n<0?bn(r+o,0):wn(o,r-1)),He(t,co(e,3),o,!0)}function Xo(t){return(null==t?0:t.length)?vr(t,1):[]}function Zo(t){return t&&t.length?t[0]:i}var Ko=Qr((function(t){var e=Ie(t,vi);return e.length&&e[0]===t[0]?kr(e):[]})),Jo=Qr((function(t){var e=$o(t),n=Ie(t,vi);return e===$o(n)?e=i:n.pop(),n.length&&n[0]===t[0]?kr(n,co(e,2)):[]})),Qo=Qr((function(t){var e=$o(t),n=Ie(t,vi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?kr(n,i,e):[]}));function $o(t){var e=null==t?0:t.length;return e?t[e-1]:i}var ts=Qr(es);function es(t,e){return t&&t.length&&e&&e.length?Xr(t,e):t}var ns=io((function(t,e){var n=null==t?0:t.length,r=lr(t,e);return Zr(t,Ie(e,(function(t){return wo(t,n)?+t:t})).sort(Li)),r}));function rs(t){return null==t?t:An.call(t)}var is=Qr((function(t){return hi(vr(t,1,Ks,!0))})),os=Qr((function(t){var e=$o(t);return Ks(e)&&(e=i),hi(vr(t,1,Ks,!0),co(e,2))})),ss=Qr((function(t){var e=$o(t);return e="function"==typeof e?e:i,hi(vr(t,1,Ks,!0),i,e)}));function as(t){if(!t||!t.length)return[];var e=0;return t=De(t,(function(t){if(Ks(t))return e=bn(t.length,e),!0})),Ze(e,(function(e){return Ie(t,Ve(e))}))}function ls(t,e){if(!t||!t.length)return[];var n=as(t);return null==e?n:Ie(n,(function(t){return Ae(e,i,t)}))}var us=Qr((function(t,e){return Ks(t)?fr(t,e):[]})),cs=Qr((function(t){return yi(De(t,Ks))})),ds=Qr((function(t){var e=$o(t);return Ks(e)&&(e=i),yi(De(t,Ks),co(e,2))})),hs=Qr((function(t){var e=$o(t);return e="function"==typeof e?e:i,yi(De(t,Ks),i,e)})),fs=Qr(as);var ps=Qr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ls(t,n)}));function ms(t){var e=Wn(t);return e.__chain__=!0,e}function gs(t,e){return e(t)}var ys=io((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return lr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&wo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:gs,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var _s=Ii((function(t,e,n){Rt.call(t,n)?++t[n]:ar(t,n,1)}));var vs=Hi(qo),bs=Hi(Go);function ws(t,e){return(Gs(t)?Ee:pr)(t,co(e,3))}function Ms(t,e){return(Gs(t)?Le:mr)(t,co(e,3))}var Ss=Ii((function(t,e,n){Rt.call(t,n)?t[n].push(e):ar(t,n,[e])}));var Cs=Qr((function(t,e,n){var i=-1,o="function"==typeof e,s=Zs(t)?r(t.length):[];return pr(t,(function(t){s[++i]=o?Ae(e,t,n):Or(t,e,n)})),s})),As=Ii((function(t,e,n){ar(t,n,e)}));function xs(t,e){return(Gs(t)?Ie:Fr)(t,co(e,3))}var Es=Ii((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ls=Qr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Mo(t,e[0],e[1])?e=[]:n>2&&Mo(e[0],e[1],e[2])&&(e=[e[0]]),qr(t,vr(e,1),[])})),Ts=he||function(){return fe.Date.now()};function Ds(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,$i(t,d,i,i,i,i,e)}function ks(t,e){var n;if("function"!=typeof e)throw new Dt(o);return t=ya(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Os=Qr((function(t,e,n){var r=1;if(n.length){var i=cn(n,uo(Os));r|=u}return $i(t,r,e,n,i)})),Is=Qr((function(t,e,n){var r=3;if(n.length){var i=cn(n,uo(Is));r|=u}return $i(e,r,t,n,i)}));function Ns(t,e,n){var r,s,a,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof t)throw new Dt(o);function m(e){var n=r,o=s;return r=s=i,d=e,l=t.apply(o,n)}function g(t){return d=t,u=No(_,e),h?m(t):l}function y(t){var n=t-c;return c===i||n>=e||n<0||f&&t-d>=a}function _(){var t=Ts();if(y(t))return v(t);u=No(_,function(t){var n=e-(t-c);return f?wn(n,a-(t-d)):n}(t))}function v(t){return u=i,p&&r?m(t):(r=s=i,l)}function b(){var t=Ts(),n=y(t);if(r=arguments,s=this,c=t,n){if(u===i)return g(c);if(f)return Ci(u),u=No(_,e),m(c)}return u===i&&(u=No(_,e)),l}return e=va(e)||0,ra(n)&&(h=!!n.leading,a=(f="maxWait"in n)?bn(va(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&Ci(u),d=0,r=c=s=u=i},b.flush=function(){return u===i?l:v(Ts())},b}var Ps=Qr((function(t,e){return hr(t,1,e)})),Rs=Qr((function(t,e,n){return hr(t,va(e)||0,n)}));function Ys(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Dt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ys.Cache||Zn),n}function js(t){if("function"!=typeof t)throw new Dt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ys.Cache=Zn;var Bs=Mi((function(t,e){var n=(e=1==e.length&&Gs(e[0])?Ie(e[0],Je(co())):Ie(vr(e,1),Je(co()))).length;return Qr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ae(t,this,r)}))})),Hs=Qr((function(t,e){var n=cn(e,uo(Hs));return $i(t,u,i,e,n)})),Fs=Qr((function(t,e){var n=cn(e,uo(Fs));return $i(t,c,i,e,n)})),Ws=io((function(t,e){return $i(t,h,i,i,i,e)}));function Us(t,e){return t===e||t!=t&&e!=e}var zs=Xi(Lr),Vs=Xi((function(t,e){return t>=e})),qs=Ir(function(){return arguments}())?Ir:function(t){return ia(t)&&Rt.call(t,"callee")&&!Zt.call(t,"callee")},Gs=r.isArray,Xs=ve?Je(ve):function(t){return ia(t)&&Er(t)==N};function Zs(t){return null!=t&&na(t.length)&&!ta(t)}function Ks(t){return ia(t)&&Zs(t)}var Js=je||vl,Qs=be?Je(be):function(t){return ia(t)&&Er(t)==w};function $s(t){if(!ia(t))return!1;var e=Er(t);return e==M||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!aa(t)}function ta(t){if(!ra(t))return!1;var e=Er(t);return e==S||e==C||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ea(t){return"number"==typeof t&&t==ya(t)}function na(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function ra(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ia(t){return null!=t&&"object"==typeof t}var oa=we?Je(we):function(t){return ia(t)&&yo(t)==A};function sa(t){return"number"==typeof t||ia(t)&&Er(t)==x}function aa(t){if(!ia(t)||Er(t)!=E)return!1;var e=Gt(t);if(null===e)return!0;var n=Rt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Pt.call(n)==Ht}var la=Me?Je(Me):function(t){return ia(t)&&Er(t)==T};var ua=Se?Je(Se):function(t){return ia(t)&&yo(t)==D};function ca(t){return"string"==typeof t||!Gs(t)&&ia(t)&&Er(t)==k}function da(t){return"symbol"==typeof t||ia(t)&&Er(t)==O}var ha=Ce?Je(Ce):function(t){return ia(t)&&na(t.length)&&!!se[Er(t)]};var fa=Xi(Hr),pa=Xi((function(t,e){return t<=e}));function ma(t){if(!t)return[];if(Zs(t))return ca(t)?pn(t):ki(t);if(te&&t[te])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[te]());var e=yo(t);return(e==A?ln:e==D?dn:Ua)(t)}function ga(t){return t?(t=va(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ya(t){var e=ga(t),n=e%1;return e==e?n?e-n:e:0}function _a(t){return t?ur(ya(t),0,g):0}function va(t){if("number"==typeof t)return t;if(da(t))return m;if(ra(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ra(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var n=yt.test(t);return n||vt.test(t)?ce(t.slice(2),n?2:8):gt.test(t)?m:+t}function ba(t){return Oi(t,Pa(t))}function wa(t){return null==t?"":di(t)}var Ma=Ni((function(t,e){if(xo(e)||Zs(e))Oi(e,Na(e),t);else for(var n in e)Rt.call(e,n)&&rr(t,n,e[n])})),Sa=Ni((function(t,e){Oi(e,Pa(e),t)})),Ca=Ni((function(t,e,n,r){Oi(e,Pa(e),t,r)})),Aa=Ni((function(t,e,n,r){Oi(e,Na(e),t,r)})),xa=io(lr);var Ea=Qr((function(t,e){t=Et(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&Mo(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],a=Pa(s),l=-1,u=a.length;++l<u;){var c=a[l],d=t[c];(d===i||Us(d,It[c])&&!Rt.call(t,c))&&(t[c]=s[c])}return t})),La=Qr((function(t){return t.push(i,eo),Ae(Ya,i,t)}));function Ta(t,e,n){var r=null==t?i:Ar(t,e);return r===i?n:r}function Da(t,e){return null!=t&&_o(t,e,Dr)}var ka=Ui((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Bt.call(e)),t[e]=n}),rl(sl)),Oa=Ui((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Bt.call(e)),Rt.call(t,e)?t[e].push(n):t[e]=[n]}),co),Ia=Qr(Or);function Na(t){return Zs(t)?Qn(t):jr(t)}function Pa(t){return Zs(t)?Qn(t,!0):Br(t)}var Ra=Ni((function(t,e,n){zr(t,e,n)})),Ya=Ni((function(t,e,n,r){zr(t,e,n,r)})),ja=io((function(t,e){var n={};if(null==t)return n;var r=!1;e=Ie(e,(function(e){return e=wi(e,t),r||(r=e.length>1),e})),Oi(t,so(t),n),r&&(n=cr(n,7,no));for(var i=e.length;i--;)fi(n,e[i]);return n}));var Ba=io((function(t,e){return null==t?{}:function(t,e){return Gr(t,e,(function(e,n){return Da(t,n)}))}(t,e)}));function Ha(t,e){if(null==t)return{};var n=Ie(so(t),(function(t){return[t]}));return e=co(e),Gr(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Qi(Na),Wa=Qi(Pa);function Ua(t){return null==t?[]:Qe(t,Na(t))}var za=ji((function(t,e,n){return e=e.toLowerCase(),t+(n?Va(e):e)}));function Va(t){return $a(wa(t).toLowerCase())}function qa(t){return(t=wa(t))&&t.replace(wt,rn).replace($t,"")}var Ga=ji((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Xa=ji((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Za=Yi("toLowerCase");var Ka=ji((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ja=ji((function(t,e,n){return t+(n?" ":"")+$a(e)}));var Qa=ji((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),$a=Yi("toUpperCase");function tl(t,e,n){return t=wa(t),(e=n?i:e)===i?function(t){return re.test(t)}(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.match(dt)||[]}(t):t.match(e)||[]}var el=Qr((function(t,e){try{return Ae(t,i,e)}catch(t){return $s(t)?t:new Ct(t)}})),nl=io((function(t,e){return Ee(e,(function(e){e=Ho(e),ar(t,e,Os(t[e],t))})),t}));function rl(t){return function(){return t}}var il=Fi(),ol=Fi(!0);function sl(t){return t}function al(t){return Yr("function"==typeof t?t:cr(t,1))}var ll=Qr((function(t,e){return function(n){return Or(n,t,e)}})),ul=Qr((function(t,e){return function(n){return Or(t,n,e)}}));function cl(t,e,n){var r=Na(e),i=Cr(e,r);null!=n||ra(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Cr(e,Na(e)));var o=!(ra(n)&&"chain"in n&&!n.chain),s=ta(t);return Ee(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ne([this.value()],arguments))})})),t}function dl(){}var hl=Vi(Ie),fl=Vi(Te),pl=Vi(Ye);function ml(t){return So(t)?Ve(Ho(t)):function(t){return function(e){return Ar(e,t)}}(t)}var gl=Gi(),yl=Gi(!0);function _l(){return[]}function vl(){return!1}var bl=zi((function(t,e){return t+e}),0),wl=Ki("ceil"),Ml=zi((function(t,e){return t/e}),1),Sl=Ki("floor");var Cl,Al=zi((function(t,e){return t*e}),1),xl=Ki("round"),El=zi((function(t,e){return t-e}),0);return Wn.after=function(t,e){if("function"!=typeof e)throw new Dt(o);return t=ya(t),function(){if(--t<1)return e.apply(this,arguments)}},Wn.ary=Ds,Wn.assign=Ma,Wn.assignIn=Sa,Wn.assignInWith=Ca,Wn.assignWith=Aa,Wn.at=xa,Wn.before=ks,Wn.bind=Os,Wn.bindAll=nl,Wn.bindKey=Is,Wn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Gs(t)?t:[t]},Wn.chain=ms,Wn.chunk=function(t,e,n){e=(n?Mo(t,e,n):e===i)?1:bn(ya(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=r(me(o/e));s<o;)l[a++]=oi(t,s,s+=e);return l},Wn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Wn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ne(Gs(n)?ki(n):[n],vr(e,1))},Wn.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?Ie(t,(function(t){if("function"!=typeof t[1])throw new Dt(o);return[n(t[0]),t[1]]})):[],Qr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ae(i[0],this,n))return Ae(i[1],this,n)}}))},Wn.conforms=function(t){return function(t){var e=Na(t);return function(n){return dr(n,t,e)}}(cr(t,1))},Wn.constant=rl,Wn.countBy=_s,Wn.create=function(t,e){var n=Un(t);return null==e?n:sr(n,e)},Wn.curry=function t(e,n,r){var o=$i(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Wn.curryRight=function t(e,n,r){var o=$i(e,l,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Wn.debounce=Ns,Wn.defaults=Ea,Wn.defaultsDeep=La,Wn.defer=Ps,Wn.delay=Rs,Wn.difference=Uo,Wn.differenceBy=zo,Wn.differenceWith=Vo,Wn.drop=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,(e=n||e===i?1:ya(e))<0?0:e,r):[]},Wn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,0,(e=r-(e=n||e===i?1:ya(e)))<0?0:e):[]},Wn.dropRightWhile=function(t,e){return t&&t.length?mi(t,co(e,3),!0,!0):[]},Wn.dropWhile=function(t,e){return t&&t.length?mi(t,co(e,3),!0):[]},Wn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Mo(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=ya(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ya(r))<0&&(r+=o),r=n>r?0:_a(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Wn.filter=function(t,e){return(Gs(t)?De:_r)(t,co(e,3))},Wn.flatMap=function(t,e){return vr(xs(t,e),1)},Wn.flatMapDeep=function(t,e){return vr(xs(t,e),f)},Wn.flatMapDepth=function(t,e,n){return n=n===i?1:ya(n),vr(xs(t,e),n)},Wn.flatten=Xo,Wn.flattenDeep=function(t){return(null==t?0:t.length)?vr(t,f):[]},Wn.flattenDepth=function(t,e){return(null==t?0:t.length)?vr(t,e=e===i?1:ya(e)):[]},Wn.flip=function(t){return $i(t,512)},Wn.flow=il,Wn.flowRight=ol,Wn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Wn.functions=function(t){return null==t?[]:Cr(t,Na(t))},Wn.functionsIn=function(t){return null==t?[]:Cr(t,Pa(t))},Wn.groupBy=Ss,Wn.initial=function(t){return(null==t?0:t.length)?oi(t,0,-1):[]},Wn.intersection=Ko,Wn.intersectionBy=Jo,Wn.intersectionWith=Qo,Wn.invert=ka,Wn.invertBy=Oa,Wn.invokeMap=Cs,Wn.iteratee=al,Wn.keyBy=As,Wn.keys=Na,Wn.keysIn=Pa,Wn.map=xs,Wn.mapKeys=function(t,e){var n={};return e=co(e,3),Mr(t,(function(t,r,i){ar(n,e(t,r,i),t)})),n},Wn.mapValues=function(t,e){var n={};return e=co(e,3),Mr(t,(function(t,r,i){ar(n,r,e(t,r,i))})),n},Wn.matches=function(t){return Wr(cr(t,1))},Wn.matchesProperty=function(t,e){return Ur(t,cr(e,1))},Wn.memoize=Ys,Wn.merge=Ra,Wn.mergeWith=Ya,Wn.method=ll,Wn.methodOf=ul,Wn.mixin=cl,Wn.negate=js,Wn.nthArg=function(t){return t=ya(t),Qr((function(e){return Vr(e,t)}))},Wn.omit=ja,Wn.omitBy=function(t,e){return Ha(t,js(co(e)))},Wn.once=function(t){return ks(2,t)},Wn.orderBy=function(t,e,n,r){return null==t?[]:(Gs(e)||(e=null==e?[]:[e]),Gs(n=r?i:n)||(n=null==n?[]:[n]),qr(t,e,n))},Wn.over=hl,Wn.overArgs=Bs,Wn.overEvery=fl,Wn.overSome=pl,Wn.partial=Hs,Wn.partialRight=Fs,Wn.partition=Es,Wn.pick=Ba,Wn.pickBy=Ha,Wn.property=ml,Wn.propertyOf=function(t){return function(e){return null==t?i:Ar(t,e)}},Wn.pull=ts,Wn.pullAll=es,Wn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Xr(t,e,co(n,2)):t},Wn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Xr(t,e,i,n):t},Wn.pullAt=ns,Wn.range=gl,Wn.rangeRight=yl,Wn.rearg=Ws,Wn.reject=function(t,e){return(Gs(t)?De:_r)(t,js(co(e,3)))},Wn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=co(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return Zr(t,i),n},Wn.rest=function(t,e){if("function"!=typeof t)throw new Dt(o);return Qr(t,e=e===i?e:ya(e))},Wn.reverse=rs,Wn.sampleSize=function(t,e,n){return e=(n?Mo(t,e,n):e===i)?1:ya(e),(Gs(t)?tr:ti)(t,e)},Wn.set=function(t,e,n){return null==t?t:ei(t,e,n)},Wn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ei(t,e,n,r)},Wn.shuffle=function(t){return(Gs(t)?er:ii)(t)},Wn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Mo(t,e,n)?(e=0,n=r):(e=null==e?0:ya(e),n=n===i?r:ya(n)),oi(t,e,n)):[]},Wn.sortBy=Ls,Wn.sortedUniq=function(t){return t&&t.length?ui(t):[]},Wn.sortedUniqBy=function(t,e){return t&&t.length?ui(t,co(e,2)):[]},Wn.split=function(t,e,n){return n&&"number"!=typeof n&&Mo(t,e,n)&&(e=n=i),(n=n===i?g:n>>>0)?(t=wa(t))&&("string"==typeof e||null!=e&&!la(e))&&!(e=di(e))&&an(t)?Si(pn(t),0,n):t.split(e,n):[]},Wn.spread=function(t,e){if("function"!=typeof t)throw new Dt(o);return e=null==e?0:bn(ya(e),0),Qr((function(n){var r=n[e],i=Si(n,0,e);return r&&Ne(i,r),Ae(t,this,i)}))},Wn.tail=function(t){var e=null==t?0:t.length;return e?oi(t,1,e):[]},Wn.take=function(t,e,n){return t&&t.length?oi(t,0,(e=n||e===i?1:ya(e))<0?0:e):[]},Wn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,(e=r-(e=n||e===i?1:ya(e)))<0?0:e,r):[]},Wn.takeRightWhile=function(t,e){return t&&t.length?mi(t,co(e,3),!1,!0):[]},Wn.takeWhile=function(t,e){return t&&t.length?mi(t,co(e,3)):[]},Wn.tap=function(t,e){return e(t),t},Wn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Dt(o);return ra(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ns(t,e,{leading:r,maxWait:e,trailing:i})},Wn.thru=gs,Wn.toArray=ma,Wn.toPairs=Fa,Wn.toPairsIn=Wa,Wn.toPath=function(t){return Gs(t)?Ie(t,Ho):da(t)?[t]:ki(Bo(wa(t)))},Wn.toPlainObject=ba,Wn.transform=function(t,e,n){var r=Gs(t),i=r||Js(t)||ha(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ra(t)&&ta(o)?Un(Gt(t)):{}}return(i?Ee:Mr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Wn.unary=function(t){return Ds(t,1)},Wn.union=is,Wn.unionBy=os,Wn.unionWith=ss,Wn.uniq=function(t){return t&&t.length?hi(t):[]},Wn.uniqBy=function(t,e){return t&&t.length?hi(t,co(e,2)):[]},Wn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?hi(t,i,e):[]},Wn.unset=function(t,e){return null==t||fi(t,e)},Wn.unzip=as,Wn.unzipWith=ls,Wn.update=function(t,e,n){return null==t?t:pi(t,e,bi(n))},Wn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:pi(t,e,bi(n),r)},Wn.values=Ua,Wn.valuesIn=function(t){return null==t?[]:Qe(t,Pa(t))},Wn.without=us,Wn.words=tl,Wn.wrap=function(t,e){return Hs(bi(e),t)},Wn.xor=cs,Wn.xorBy=ds,Wn.xorWith=hs,Wn.zip=fs,Wn.zipObject=function(t,e){return _i(t||[],e||[],rr)},Wn.zipObjectDeep=function(t,e){return _i(t||[],e||[],ei)},Wn.zipWith=ps,Wn.entries=Fa,Wn.entriesIn=Wa,Wn.extend=Sa,Wn.extendWith=Ca,cl(Wn,Wn),Wn.add=bl,Wn.attempt=el,Wn.camelCase=za,Wn.capitalize=Va,Wn.ceil=wl,Wn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=va(n))==n?n:0),e!==i&&(e=(e=va(e))==e?e:0),ur(va(t),e,n)},Wn.clone=function(t){return cr(t,4)},Wn.cloneDeep=function(t){return cr(t,5)},Wn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:i)},Wn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:i)},Wn.conformsTo=function(t,e){return null==e||dr(t,e,Na(e))},Wn.deburr=qa,Wn.defaultTo=function(t,e){return null==t||t!=t?e:t},Wn.divide=Ml,Wn.endsWith=function(t,e,n){t=wa(t),e=di(e);var r=t.length,o=n=n===i?r:ur(ya(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Wn.eq=Us,Wn.escape=function(t){return(t=wa(t))&&J.test(t)?t.replace(Z,on):t},Wn.escapeRegExp=function(t){return(t=wa(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Wn.every=function(t,e,n){var r=Gs(t)?Te:gr;return n&&Mo(t,e,n)&&(e=i),r(t,co(e,3))},Wn.find=vs,Wn.findIndex=qo,Wn.findKey=function(t,e){return Be(t,co(e,3),Mr)},Wn.findLast=bs,Wn.findLastIndex=Go,Wn.findLastKey=function(t,e){return Be(t,co(e,3),Sr)},Wn.floor=Sl,Wn.forEach=ws,Wn.forEachRight=Ms,Wn.forIn=function(t,e){return null==t?t:br(t,co(e,3),Pa)},Wn.forInRight=function(t,e){return null==t?t:wr(t,co(e,3),Pa)},Wn.forOwn=function(t,e){return t&&Mr(t,co(e,3))},Wn.forOwnRight=function(t,e){return t&&Sr(t,co(e,3))},Wn.get=Ta,Wn.gt=zs,Wn.gte=Vs,Wn.has=function(t,e){return null!=t&&_o(t,e,Tr)},Wn.hasIn=Da,Wn.head=Zo,Wn.identity=sl,Wn.includes=function(t,e,n,r){t=Zs(t)?t:Ua(t),n=n&&!r?ya(n):0;var i=t.length;return n<0&&(n=bn(i+n,0)),ca(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Fe(t,e,n)>-1},Wn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ya(n);return i<0&&(i=bn(r+i,0)),Fe(t,e,i)},Wn.inRange=function(t,e,n){return e=ga(e),n===i?(n=e,e=0):n=ga(n),function(t,e,n){return t>=wn(e,n)&&t<bn(e,n)}(t=va(t),e,n)},Wn.invoke=Ia,Wn.isArguments=qs,Wn.isArray=Gs,Wn.isArrayBuffer=Xs,Wn.isArrayLike=Zs,Wn.isArrayLikeObject=Ks,Wn.isBoolean=function(t){return!0===t||!1===t||ia(t)&&Er(t)==b},Wn.isBuffer=Js,Wn.isDate=Qs,Wn.isElement=function(t){return ia(t)&&1===t.nodeType&&!aa(t)},Wn.isEmpty=function(t){if(null==t)return!0;if(Zs(t)&&(Gs(t)||"string"==typeof t||"function"==typeof t.splice||Js(t)||ha(t)||qs(t)))return!t.length;var e=yo(t);if(e==A||e==D)return!t.size;if(xo(t))return!jr(t).length;for(var n in t)if(Rt.call(t,n))return!1;return!0},Wn.isEqual=function(t,e){return Nr(t,e)},Wn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Nr(t,e,i,n):!!r},Wn.isError=$s,Wn.isFinite=function(t){return"number"==typeof t&&qe(t)},Wn.isFunction=ta,Wn.isInteger=ea,Wn.isLength=na,Wn.isMap=oa,Wn.isMatch=function(t,e){return t===e||Pr(t,e,fo(e))},Wn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Pr(t,e,fo(e),n)},Wn.isNaN=function(t){return sa(t)&&t!=+t},Wn.isNative=function(t){if(Ao(t))throw new Ct("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(t)},Wn.isNil=function(t){return null==t},Wn.isNull=function(t){return null===t},Wn.isNumber=sa,Wn.isObject=ra,Wn.isObjectLike=ia,Wn.isPlainObject=aa,Wn.isRegExp=la,Wn.isSafeInteger=function(t){return ea(t)&&t>=-9007199254740991&&t<=p},Wn.isSet=ua,Wn.isString=ca,Wn.isSymbol=da,Wn.isTypedArray=ha,Wn.isUndefined=function(t){return t===i},Wn.isWeakMap=function(t){return ia(t)&&yo(t)==I},Wn.isWeakSet=function(t){return ia(t)&&"[object WeakSet]"==Er(t)},Wn.join=function(t,e){return null==t?"":_n.call(t,e)},Wn.kebabCase=Ga,Wn.last=$o,Wn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ya(n))<0?bn(r+o,0):wn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):He(t,Ue,o,!0)},Wn.lowerCase=Xa,Wn.lowerFirst=Za,Wn.lt=fa,Wn.lte=pa,Wn.max=function(t){return t&&t.length?yr(t,sl,Lr):i},Wn.maxBy=function(t,e){return t&&t.length?yr(t,co(e,2),Lr):i},Wn.mean=function(t){return ze(t,sl)},Wn.meanBy=function(t,e){return ze(t,co(e,2))},Wn.min=function(t){return t&&t.length?yr(t,sl,Hr):i},Wn.minBy=function(t,e){return t&&t.length?yr(t,co(e,2),Hr):i},Wn.stubArray=_l,Wn.stubFalse=vl,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Al,Wn.nth=function(t,e){return t&&t.length?Vr(t,ya(e)):i},Wn.noConflict=function(){return fe._===this&&(fe._=Ft),this},Wn.noop=dl,Wn.now=Ts,Wn.pad=function(t,e,n){t=wa(t);var r=(e=ya(e))?fn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return qi(ye(i),n)+t+qi(me(i),n)},Wn.padEnd=function(t,e,n){t=wa(t);var r=(e=ya(e))?fn(t):0;return e&&r<e?t+qi(e-r,n):t},Wn.padStart=function(t,e,n){t=wa(t);var r=(e=ya(e))?fn(t):0;return e&&r<e?qi(e-r,n)+t:t},Wn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Sn(wa(t).replace(st,""),e||0)},Wn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Mo(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=ga(t),e===i?(e=t,t=0):e=ga(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Cn();return wn(t+o*(e-t+ue("1e-"+((o+"").length-1))),e)}return Kr(t,e)},Wn.reduce=function(t,e,n){var r=Gs(t)?Pe:Ge,i=arguments.length<3;return r(t,co(e,4),n,i,pr)},Wn.reduceRight=function(t,e,n){var r=Gs(t)?Re:Ge,i=arguments.length<3;return r(t,co(e,4),n,i,mr)},Wn.repeat=function(t,e,n){return e=(n?Mo(t,e,n):e===i)?1:ya(e),Jr(wa(t),e)},Wn.replace=function(){var t=arguments,e=wa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Wn.result=function(t,e,n){var r=-1,o=(e=wi(e,t)).length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[Ho(e[r])];s===i&&(r=o,s=n),t=ta(s)?s.call(t):s}return t},Wn.round=xl,Wn.runInContext=t,Wn.sample=function(t){return(Gs(t)?$n:$r)(t)},Wn.size=function(t){if(null==t)return 0;if(Zs(t))return ca(t)?fn(t):t.length;var e=yo(t);return e==A||e==D?t.size:jr(t).length},Wn.snakeCase=Ka,Wn.some=function(t,e,n){var r=Gs(t)?Ye:si;return n&&Mo(t,e,n)&&(e=i),r(t,co(e,3))},Wn.sortedIndex=function(t,e){return ai(t,e)},Wn.sortedIndexBy=function(t,e,n){return li(t,e,co(n,2))},Wn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&Us(t[r],e))return r}return-1},Wn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Wn.sortedLastIndexBy=function(t,e,n){return li(t,e,co(n,2),!0)},Wn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(Us(t[n],e))return n}return-1},Wn.startCase=Ja,Wn.startsWith=function(t,e,n){return t=wa(t),n=null==n?0:ur(ya(n),0,t.length),e=di(e),t.slice(n,n+e.length)==e},Wn.subtract=El,Wn.sum=function(t){return t&&t.length?Xe(t,sl):0},Wn.sumBy=function(t,e){return t&&t.length?Xe(t,co(e,2)):0},Wn.template=function(t,e,n){var r=Wn.templateSettings;n&&Mo(t,e,n)&&(e=i),t=wa(t),e=Ca({},e,r,to);var o,s,a=Ca({},e.imports,r.imports,to),l=Na(a),u=Qe(a,l),c=0,d=e.interpolate||Mt,h="__p += '",f=Lt((e.escape||Mt).source+"|"+d.source+"|"+(d===tt?pt:Mt).source+"|"+(e.evaluate||Mt).source+"|$","g"),p="//# sourceURL="+(Rt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oe+"]")+"\n";t.replace(f,(function(e,n,r,i,a,l){return r||(r=i),h+=t.slice(c,l).replace(St,sn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+e.length,e})),h+="';\n";var m=Rt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new Ct("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(V,""):h).replace(q,"$1").replace(G,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
2\n")+h+"return __p\n}";var g=el((function(){return At(l,p+"return "+h).apply(i,u)}));if(g.source=h,$s(g))throw g;return g},Wn.times=function(t,e){if((t=ya(t))<1||t>p)return[];var n=g,r=wn(t,g);e=co(e),t-=g;for(var i=Ze(r,e);++n<t;)e(n);return i},Wn.toFinite=ga,Wn.toInteger=ya,Wn.toLength=_a,Wn.toLower=function(t){return wa(t).toLowerCase()},Wn.toNumber=va,Wn.toSafeInteger=function(t){return t?ur(ya(t),-9007199254740991,p):0===t?t:0},Wn.toString=wa,Wn.toUpper=function(t){return wa(t).toUpperCase()},Wn.trim=function(t,e,n){if((t=wa(t))&&(n||e===i))return Ke(t);if(!t||!(e=di(e)))return t;var r=pn(t),o=pn(e);return Si(r,tn(r,o),en(r,o)+1).join("")},Wn.trimEnd=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.slice(0,mn(t)+1);if(!t||!(e=di(e)))return t;var r=pn(t);return Si(r,0,en(r,pn(e))+1).join("")},Wn.trimStart=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.replace(st,"");if(!t||!(e=di(e)))return t;var r=pn(t);return Si(r,tn(r,pn(e))).join("")},Wn.truncate=function(t,e){var n=30,r="...";if(ra(e)){var o="separator"in e?e.separator:o;n="length"in e?ya(e.length):n,r="omission"in e?di(e.omission):r}var s=(t=wa(t)).length;if(an(t)){var a=pn(t);s=a.length}if(n>=s)return t;var l=n-fn(r);if(l<1)return r;var u=a?Si(a,0,l).join(""):t.slice(0,l);if(o===i)return u+r;if(a&&(l+=u.length-l),la(o)){if(t.slice(l).search(o)){var c,d=u;for(o.global||(o=Lt(o.source,wa(mt.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var h=c.index;u=u.slice(0,h===i?l:h)}}else if(t.indexOf(di(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},Wn.unescape=function(t){return(t=wa(t))&&K.test(t)?t.replace(X,gn):t},Wn.uniqueId=function(t){var e=++Yt;return wa(t)+e},Wn.upperCase=Qa,Wn.upperFirst=$a,Wn.each=ws,Wn.eachRight=Ms,Wn.first=Zo,cl(Wn,(Cl={},Mr(Wn,(function(t,e){Rt.call(Wn.prototype,e)||(Cl[e]=t)})),Cl),{chain:!1}),Wn.VERSION="4.17.21",Ee(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Wn[t].placeholder=Wn})),Ee(["drop","take"],(function(t,e){qn.prototype[t]=function(n){n=n===i?1:bn(ya(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ee(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ee(["head","last"],(function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}})),Ee(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(sl)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Qr((function(t,e){return"function"==typeof t?new qn(this):this.map((function(n){return Or(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(js(co(t)))},qn.prototype.slice=function(t,e){t=ya(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=ya(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(g)},Mr(qn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Wn[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(Wn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,l=e instanceof qn,u=a[0],c=l||Gs(e),d=function(t){var e=o.apply(Wn,Ne([t],a));return r&&h?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=s&&!h,m=l&&!f;if(!s&&c){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:gs,args:[d],thisArg:i}),new Vn(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}
vendor: 16,384 bytes, line 2
2)),Ee(["pop","push","shift","sort","splice","unshift"],(function(t){var e=kt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Wn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Gs(i)?i:[],t)}return this[n]((function(n){return e.apply(Gs(n)?n:[],t)}))}})),Mr(qn.prototype,(function(t,e){var n=Wn[e];if(n){var r=n.name+"";Rt.call(In,r)||(In[r]=[]),In[r].push({name:e,func:n})}})),In[Wi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=ki(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ki(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ki(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Gs(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=wn(e,t+s);break;case"takeRight":t=bn(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,u=r?a:s-1,c=this.__iteratees__,d=c.length,h=0,f=wn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return gi(t,this.__actions__);var p=[];t:for(;l--&&h<f;){for(var m=-1,g=t[u+=e];++m<d;){var y=c[m],_=y.iteratee,v=y.type,b=_(g);if(2==v)g=b;else if(!b){if(1==v)continue t;break t}}p[h++]=g}return p},Wn.prototype.at=ys,Wn.prototype.chain=function(){return ms(this)},Wn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===i&&(this.__values__=ma(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Wn.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Wo(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Wn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:gs,args:[rs],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(rs)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,te&&(Wn.prototype[te]=function(){return this}),Wn}();fe._=yn,(r=function(){return yn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},2584:()=>{},2786:function(t,e,n){!function(t){"use strict";t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},4130:function(t,e,n){!function(t){"use strict";var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(t){return function(r,i,o,s){var a=e(r),l=n[t][e(r)];return 2===a&&(l=l[i?0:1]),l.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(381))},6135:function(t,e,n){!function(t){"use strict";t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(381))},6440:function(t,e,n){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(e,i,o,s){var a=n(e),l=r[t][n(e)];return 2===a&&(l=l[i?0:1]),l.replace(/%d/i,e)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},7702:function(t,e,n){!function(t){"use strict";t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(381))},6040:function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(381))},7100:function(t,e,n){!function(t){"use strict";t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(381))},867:function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(t){return function(e,n,o,s){var a=r(e),l=i[t][r(e)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]}
vendor: 5,804 bytes, line 2
2)).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},1083:function(t,e,n){!function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,r=t%100-n,i=t>=100?100:null;return t+(e[n]||e[r]||e[i])},week:{dow:1,doy:7}})}(n(381))},9808:function(t,e,n){!function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,r){return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":t+" "+e({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r],+t)}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(n(381))},8338:function(t,e,n){!function(t){"use strict";t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%
2d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n(381))},7438:function(t,e,n){!function(t){"use strict";t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(381))},6225:function(t,e,n){!function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e?t<4?t:t+12:"ভোর"===e||"সকাল"===e?t:"দুপুর"===e?t>=3?t:t+12:"বিকাল"===e||"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(381))},8905:function(t,e,n){!function(t){"use strict";var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>
vendor: 8,606 bytes, line 2
2=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(381))},1560:function(t,e,n){!function(t){"use strict";var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(381))},1278:function(t,e,n){!function(t){"use strict";function e(t,e,n){return t+" "+i({mm:"munutenn",MM:"miz",dd:"devezh"}[n],t)}function n(t){switch(r(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function r(t){return t>9?r(t%10):t}function i(t,e){return 2===e?o(t):t}function o(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],a=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,u=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],h=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:h,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:h,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:l,monthsShortStrictRegex:u,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,n){return t<12?"a.m.":"g.m."}})}(n(381))},622:function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return r+=1===t?"dan":"dana";case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},2468:function(t,e,n){!function(t){"use strict";t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
2d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n(381))},5822:function(t,e,n){!function(t){"use strict";var e={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(t){return t>1&&t<5&&1!=~~(t/10)}function s(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"pár sekund":"pár sekundami";case"ss":return e||r?i+(o(t)?"sekundy":"sekund"):i+"sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?i+(o(t)?"minuty":"minut"):i+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?i+(o(t)?"hodiny":"hodin"):i+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?i+(o(t)?"dny":"dní"):i+"dny";case"M":return e||r?"měsíc":"měsícem";case"MM":return e||r?i+(o(t)?"měsíce":"měsíců"):i+"měsíci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?i+(o(t)?"roky":"let"):i+"lety"}}t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},877:function(t,e,n){!function(t){"use strict";t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%
2d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(381))},7373:function(t,e,n){!function(t){"use strict";t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(n(381))},4780:function(t,e,n){!function(t){"use strict";t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},217:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},894:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9740:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5300:function(t,e,n){!function(t){"use strict";var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,n){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",
vendor: 25,402 bytes, line 2
2s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(381))},837:function(t,e,n){!function(t){"use strict";function e(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(t,n){var r=this._calendarEl[t],i=n&&n.hours();return e(r)&&(r=r.apply(n)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(381))},8348:function(t,e,n){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(n(381))},7925:function(t,e,n){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(n(381))},2243:function(t,e,n){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},6436:function(t,e,n){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},7207:function(t,e,n){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(n(381))},4175:function(t,e,n){!function(t){"use strict";t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(n(381))},6319:function(t,e,n){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},1662:function(t,e,n){!function(t){"use strict";t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},2915:function(t,e,n){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(381))},5251:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6112:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(381))},1146:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(381))},7093:function(t,e,n){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(381))},5603:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},7763:function(t,e,n){!function(t){"use strict";t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},6959:function(t,e,n){!function(t){"use strict";var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%
2d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(381))},1897:function(t,e,n){!function(t){"use strict";var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function r(t,e,n,r){var o="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":o=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":o=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return o=i(t,r)+" "+o}function i(t,r){return t<10?r?n[t]:e[t]:t}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2549:function(t,e,n){!function(t){"use strict";t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(381))},4694:function(t,e,n){!function(t){"use strict";t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},3049:function(t,e,n){!function(t){"use strict";t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(n(381))},2330:function(t,e,n){!function(t){"use strict";t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(381))},4470:function(t,e,n){!function(t){"use strict";
vendor: 3,287 bytes, line 2
2var e=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:e,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(381))},5044:function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},9295:function(t,e,n){!function(t){"use strict";var e=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["E
2an","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"];t.defineLocale("ga",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(381))},2101:function(t,e,n){!function(t){"use strict";var e=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],o=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];t.defineLocale("gd",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(381))},8794:function(t,e,n){!function(t){"use strict";t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},7884:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" à¤
2®à¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨à¥€",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return r?i[n][0]:i[n][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){return"D"===e?t+"वेर":t},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}})}(n(381))},3168:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return r?i[n][0]:i[n][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){return"D"===e?t+"er":t},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})}(n(381))},5349:function(t,e,n){!function(t){"use strict";var e={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«­",8:"à«®",9:"૯",0:"૦"},n={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«­":"7","à«®":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડà
2ª¿àª¸à«‡.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(381))},4206:function(t,e,n){!function(t){"use strict";t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(381))},94:function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अ
vendor: 14,371 bytes, line 2
2प्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(381))},316:function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return r+=1===t?"dan":"dana";case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},2138:function(t,e,n){!function(t){"use strict";var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(t,e,n,r){var i=t;switch(n){case"s":return r||e?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||e)?" másodperc":" másodperce";case"m":return"egy"+(r||e?" perc":" perce");case"mm":return i+(r||e?" perc":" perce");case"h":return"egy"+(r||e?" óra":" órája");case"hh":return i+(r||e?" óra":" órája");case"d":return"egy"+(r||e?" nap":" napja");case"dd":return i+(r||e?" nap":" napja");case"M":return"egy"+(r||e?" hónap":" hónapja");case"MM":return i+(r||e?" hónap":" hónapja");case"y":return"egy"+(r||e?" év":" éve");case"yy":return i+(r||e?" év":" éve")}return""}function r(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},1423:function(t,e,n){!function(t){"use strict";t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(n(381))},9218:function(t,e,n){!function(t){"use strict";t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(381))},135:function(t,e,n){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function n(t,n,r,i){var o=t+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return e(t)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return e(t)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return e(t)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return e(t)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},150:function(t,e,n){!function(t){"use strict";t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},626:function(t,e,n){!function(t){"use strict";t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},9183:function(t,e,n){!function(t){"use strict";t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",n
vendor: 6,530 bytes, line 2
2arrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(381))},4286:function(t,e,n){!function(t){"use strict";t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(381))},2105:function(t,e,n){!function(t){"use strict";t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(t,e,n){return"ი"===n?e+"ში":e+n+"ში"}))},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})}(n(381))},7772:function(t,e,n){!function(t){"use strict";var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%
2d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}})}(n(381))},8758:function(t,e,n){!function(t){"use strict";var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(n(381))},9282:function(t,e,n){!function(t){"use strict";var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂ
2ದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})}(n(381))},3730:function(t,e,n){!function(t){"use strict";t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}})}(n(381))},1408:function(t,e,n){!function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(t){return/ئێواره‌/.test(t)},meridiem:function(t,e,n){return t<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},3291:function(t,e,n){!function(t){"use strict";var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%
2d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}})}(n(381))},6841:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?i[n][0]:i[n][1]}function n(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t}function r(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5466:function(t,e,n){!function(t){"use strict";t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}})}(n(381))},7010:function(t,e,n){!function(t){"use strict";var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_die
2nų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(t,e,n,r){return e?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(t,e,n,r){return e?o(n)[0]:r?o(n)[1]:o(n)[2]}function i(t){return t%10==0||t>10&&t<20}function o(t){return e[t].split("_")}function s(t,e,n,s){var a=t+" ";return 1===t?a+r(t,e,n[0],s):e?a+(i(t)?o(n)[1]:o(n)[0]):s?a+o(n)[1]:a+(i(t)?o(n)[1]:o(n)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(n(381))},7595:function(t,e,n){!function(t){"use strict";var e={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(t,e,n){return n?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function r(t,r,i){return t+" "+n(e[i],t,r)}function i(t,r,i){return n(e[i],t,r)}function o(t,e){return e?"dažas sekundes":"dažām sekundēm"}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:o,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9861:function(t,e,n){!function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,r){var i=e.words[r];return 1===r.length?n?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},5493:function(t,e,n){!function(t){"use strict";t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%
2d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},5966:function(t,e,n){!function(t){"use strict";t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n(381))},7341:function(t,e,n){!function(t){"use strict";t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(381))},5115:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){switch(n){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,n){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш
2] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}})}(n(381))},370:function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(t,e,n,r){var i="";if(e)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,t)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,n){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(381))},1237:function(t,e,n){!function(t){"use strict";t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(381))},9847:function(t,e,n){!function(t){"use strict";t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(381))},2126:function(t,e,n){!function(t){"use strict";t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6165:function(t,e,n){!function(t){"use strict";var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနညá€
2ºá€¸á€„ယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(n(381))},4924:function(t,e,n){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},6744:function(t,e,n){!function(t){"use strict";var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(381))},9814:function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},3901:function(t,e,n){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},3877:function(t,e,n){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._mÃ¥._t
2y._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2135:function(t,e,n){!function(t){"use strict";t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n(381))},5858:function(t,e,n){!function(t){"use strict";var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t
vendor: 4,385 bytes, line 2
2<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(381))},4495:function(t,e,n){!function(t){"use strict";var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function o(t,e,n){var r=t+" ";switch(n){case"ss":return r+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return r+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return r+(i(t)?"godziny":"godzin");case"ww":return r+(i(t)?"tygodnie":"tygodni");case"MM":return r+(i(t)?"miesiące":"miesięcy");case"yy":return r+(i(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,r){return t?/D MMMM/.test(r)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:o,M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},7971:function(t,e,n){!function(t){"use strict";t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(381))},9520:function(t,e,n){!function(t){"use strict";t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
2d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6459:function(t,e,n){!function(t){"use strict";function e(t,e,n){var r=" ";return(t%100>=20||t>=100&&t%100==0)&&(r=" de "),t+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(n(381))},238:function(t,e,n){!function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,r){return"m"===r?n?"минута":"минуту":t+" "+e({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r],+t)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|ок
vendor: 12,381 bytes, line 2
2т\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(n(381))},950:function(t,e,n){!function(t){"use strict";var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(381))},490:function(t,e,n){!function(t){"use strict";t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},124:function(t,e,n){!function(t){"use strict";t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(381))},4249:function(t,e,n){!function(t){"use strict";var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(t){return t>1&&t<5}function i(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"pár sekúnd":"pár sekundami";case"ss":return e||i?o+(r(t)?"sekundy":"sekúnd"):o+"sekundami";case"m":return e?"minúta":i?"minútu":"minútou";case"mm":return e||i?o+(r(t)?"minúty":"minút"):o+"minútami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?o+(r(t)?"hodiny":"hodín"):o+"hodinami";case"d":return e||i?"deň":"dňom";case"dd":return e||i?o+(r(t)?"dni":"dní"):o+"dňami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?o+(r(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?o+(r(t)?"roky":"rokov"):o+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},4985:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===t?e?"sekundo":"sekundi":2===t?e||r?"sekundi":"sekundah":t<5?e||r?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return i+=1===t?e?"minuta":"minuto":2===t?e||r?"minuti":"minutama":t<5?e||r?"minute":"minutami":e||r?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return i+=1===t?e?"ura":"uro":2===t?e||r?"uri":"urama":t<5?e||r?"ure":"urami":e||r?"ur":"urami";case"d":return e||r?"en dan":"enim dnem";case"dd":return i+=1===t?e||r?"dan":"dnem":2===t?e||r?"dni":"dnevoma":e||r?"dni":"dnevi";case"M":return e||r?"en mesec":"enim mesecem";case"MM":return i+=1===t?e||r?"mesec":"mesecem":2===t?e||r?"meseca":"mesecema":t<5?e||r?"mesece":"meseci":e||r?"mesecev":"meseci";case"y":return e||r?"eno leto":"enim letom";case"yy":return i+=1===t?e||r?"leto":"letom":2===t?e||r?"leti":"letoma":t<5?e||r?"leta":"leti":e||r?"let":"leti"}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},1104:function(t,e,n){!function(t){"use strict";t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9915:function(t,e,n){!function(t){"use strict";var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,n,r,i){var o,s=e.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?s[0]:s[1]:(o=e.correctGrammaticalCase(t,s),"yy"===r&&n&&"годину"===o?t+" година":t+" "+o)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_ок
2тобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},9131:function(t,e,n){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,n,r,i){var o,s=e.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?s[0]:s[1]:(o=e.correctGrammaticalCase(t,s),"yy"===r&&n&&"godinu"===o?t+" godina":t+" "+o)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},5893:function(t,e,n){!function(t){"use strict";t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
vendor: 5,393 bytes, line 2
2S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,n){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(381))},8760:function(t,e,n){!function(t){"use strict";t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?":e":1===e||2===e?":a":":e")},week:{dow:1,doy:4}})}(n(381))},1172:function(t,e,n){!function(t){"use strict";t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(381))},1044:function(t,e,n){!function(t){"use strict";var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))}
vendor: 4,551 bytes, line 2
2,meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(n(381))},3110:function(t,e,n){!function(t){"use strict";t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_à°¶".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}à°µ/,ordinal:"%dà°µ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(381))},2095:function(t,e,n){!function(t){"use strict";t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},7321:function(t,e,n){!function(t){"use strict";var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Ñ
2ÐºÑˆÐ°Ð½Ð±Ðµ_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}})}(n(381))},9041:function(t,e,n){!function(t){"use strict";t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,n){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(381))},9005:function(t,e,n){!function(t){"use strict";var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
vendor: 6,338 bytes, line 2
2,calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var r=t%10,i=t%100-r,o=t>=100?100:null;return t+(e[r]||e[i]||e[o])}},week:{dow:1,doy:7}})}(n(381))},5768:function(t,e,n){!function(t){"use strict";t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(381))},9444:function(t,e,n){!function(t){"use strict";var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"}function r(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"}function i(t,e,n,r){var i=o(t);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function o(t){var n=Math.floor(t%1e3/100),r=Math.floor(t%100/10),i=t%10,o="";return n>0&&(o+=e[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+e[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+e[i]),""===o?"pagh":o}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2397:function(t,e,n){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(t,e,n){return t<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(t){return"ös"===t||"ÖS"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var r=t%10,i=t%100-r,o=t>=100?100:null;return t+(e[r]||e[i]||e[o])}},week:{dow:1,doy:7}})}(n(381))},8254:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return r||e?i[n][0]:i[n][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>11?n?"d'o":"D'O":n?"d'a":"D'A"}
2,calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},699:function(t,e,n){!function(t){"use strict";t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(381))},1106:function(t,e,n){!function(t){"use strict";t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ â´´] LT",nextDay:"[ⴰⵙⴽⴰ â´´] LT",nextWeek:"dddd [â´´] LT",lastDay:"[ⴰⵚⴰⵏⵜ â´´] LT",lastWeek:"dddd [â´´] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"â´°âµ¢oⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(381))},9288:function(t,e,n){!function(t){"use strict";t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىÙ
2† بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(381))},7691:function(t,e,n){!function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,r){return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":t+" "+e({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r],+t)}function r(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):t?n[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:n.nominative}function i(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(n(381))},3795:function(t,e,n){!function(t){"use strict";var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(381))},588:function(t,e,n){!function(t){"use strict";t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(381))},6791:function(t,e,n){!function(t){"use strict";t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%
2d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(381))},5666:function(t,e,n){!function(t){"use strict";t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(381))},4378:function(t,e,n){!function(t){"use strict";t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~út
2é",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},5805:function(t,e,n){!function(t){"use strict";t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(381))},3839:function(t,e,n){!function(t){"use strict";t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(381))},5726:function(t,e,n){!function(t){"use strict";t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;
vendor: 6,775 bytes, line 2
2return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(381))},9807:function(t,e,n){!function(t){"use strict";t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(381))},4152:function(t,e,n){!function(t){"use strict";t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(381))},6700:(t,e,n)=>{var r={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":7100,"./ar-tn.js":7100,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":7207,"./en-il.js":7207,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":7093,"./es-do":5251,"./es-do.js":5251,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":7093,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":7884,"./gom-deva.js":7884,"./gom-latn":3168,"./gom-latn.js":3168,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":238,"./ru.js":238,"./sd":950,"./sd.js":950,"./se"
vendor: 19,131 bytes, line 2
2:490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5893,"./ss.js":5893,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":1044,"./ta.js":1044,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":5666,"./vi.js":5666,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=6700},381:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function o(t){e=t}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function c(t){return void 0===t}function d(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function m(t,e,n,r){return Zn(t,e,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(t){return null==t._pf&&(t._pf=g()),t._pf}function _(t){if(null==t._isValid){var e=y(t),n=r.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function v(t){var e=m(NaN);return null!=t?p(y(e),t):y(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var b=i.momentProperties=[],w=!1;function M(t,e){var n,r,i,o=b.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=y(e)),c(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)c(i=e[r=b[n]])||(t[r]=i);return t}function S(t){M(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,i.updateOffset(this),w=!1)}function C(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function A(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,s,a=[],u=arguments.length;for(o=0;o<u;o++){if(r="","object"==typeof arguments[o]){for(s in r+="\n["+o+"] ",arguments[0])l(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];a.push(r)}A(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var E,L={};function T(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),L[t]||(A(e),L[t]=!0)}function D(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function k(t){var e,n;for(n in t)l(t,n)&&(D(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(t,e){var n,r=p({},t);for(n in e)l(e,n)&&(a(t[n])&&a(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)l(t,n)&&!l(e,n)&&a(t[n])&&(r[n]=p({},r[n]));return r}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return D(r)?r.call(e,n):r}function R(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},H={};function F(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(H[t]=i),e&&(H[e[0]]=function(){return R(i.apply(this,arguments),e[1],e[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,r=t.match(Y);for(e=0,n=r.length;e<n;e++)H[r[e]]?r[e]=H[r[e]]:r[e]=W(r[e]);return function(e){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(e,t):r[i];return o}}function z(t,e){return t.isValid()?(e=V(e,t.localeData()),B[e]=B[e]||U(e),B[e](t)):t.localeData().invalidDate()}function V(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;n>=0&&j.test(t);)t=t.replace(j,r),j.lastIndex=0,n-=1;return t}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(Y).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var X="Invalid date";function Z(){return this._invalidDate}var K="%d",J=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var $={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,r){var i=this._relativeTime[n];return D(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return D(n)?n(e):n.replace(/%s/i,e)}var nt={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function ot(t){var e,n,r={};for(n in t)l(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var st={};function at(t,e){st[t]=e}function lt(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:st[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ht(t,e){return function(n){return null!=n?(pt(this,t,n),i.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=dt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function mt(t){return D(this[t=it(t)])?this[t]():this}function gt(t,e){if("object"==typeof t){var n,r=lt(t=ot(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(D(this[t=it(t)]))return this[t](e);return this}var yt,_t=/\d/,vt=/\d\d/,bt=/\d{3}/,wt=/\d{4}/,Mt=/[+-]?\d{6}/,St=/\d\d?/,Ct=/\d\d\d\d?/,At=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,Et=/\d{1,4}/,Lt=/[+-]?\d{1,6}/,Tt=/\d+/,Dt=/[+-]?\d+/,kt=/Z|[+-]\d\d:?\d\d/gi,Ot=/Z|[+-]\d\d(?::?\d\d)?/gi,It=/[+-]?\d+(\.\d{1,3})?/,Nt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Pt(t,e,n){yt[t]=D(e)?e:function(t,r){return t&&n?n:e}}function Rt(t,e){return l(yt,t)?yt[t](e._strict,e._locale):new RegExp(Yt(t))}function Yt(t){return jt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function jt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}yt={};var Bt={};function Ht(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),d(e)&&(i=function(t,n){n[e]=dt(t)}),r=t.length,n=0;n<r;n++)Bt[t[n]]=i}function Ft(t,e){Ht(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Wt(t,e,n){null!=e&&l(Bt,t)&&Bt[t](e,n._a,n,t)}var Ut,zt=0,Vt=1,qt=2,Gt=3,Xt=4,Zt=5,Kt=6,Jt=7,Qt=8;function $t(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=$t(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),at("month",8),Pt("M",St),Pt("MM",St,vt),Pt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Pt("MMMM",(function(t,e){return e.monthsRegex(t)})),Ht(["M","MM"],(function(t,e){e[Vt]=dt(t)-1})),Ht(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Vt]=i:y(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Nt,oe=Nt;function se(t,e){return t?s(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:s(this._months)?this._months:this._months.standalone}function ae(t,e){return t?s(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))||-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))||-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null}function ue(t,e,n){var r,i,o;if(this._monthsParseExact)return le.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function de(t){return null!=t?(ce(this,t),i.updateOffset(this,!0),this):ft(this,"Month")}function he(){return te(this.year(),this.month())}function fe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=oe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function me(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=m([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=jt(r[e]),i[e]=jt(i[e]);for(e=0;e<24;e++)o[e]=jt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(t){return ut(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?R(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),at("year",1),Pt("Y",Dt),Pt("YY",St,vt),Pt("YYYY",Et,wt),Pt("YYYYY",Lt,Mt),Pt("YYYYYY",Lt,Mt),Ht(["YYYYY","YYYYYY"],zt),Ht("YYYY",(function(t,e){e[zt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),Ht("YY",(function(t,e){e[zt]=i.parseTwoDigitYear(t)})),Ht("Y",(function(t,e){e[zt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var ye=ht("FullYear",!0);function _e(){return ut(this.year())}function ve(t,e,n,r,i,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,i,o,s),a}function be(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function Me(t,e,n,r,i){var o,s,a=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return a<=0?s=ge(o=t-1)+a:a>ge(t)?(o=t+1,s=a-ge(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Se(t,e,n){var r,i,o=we(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?r=s+Ce(i=t.year()-1,e,n):s>Ce(t.year(),e,n)?(r=s-Ce(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function Ce(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(ge(t)-r+i)/7}function Ae(t){return Se(t,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),at("week",5),at("isoWeek",5),Pt("w",St),Pt("ww",St,vt),Pt("W",St),Pt("WW",St,vt),Ft(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=dt(t)}));var xe={dow:0,doy:6};function Ee(){return this._week.dow}function Le(){return this._week.doy}function Te(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function De(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function ke(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Oe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ie(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),at("day",11),at("weekday",11),at("isoWeekday",11),Pt("d",St),Pt("e",St),Pt("E",St),Pt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Pt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Pt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ft(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:y(n).invalidWeekday=t})),Ft(["d","e","E"],(function(t,e,n,r){e[r]=dt(t)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ye=Nt,je=Nt,Be=Nt;function He(t,e){var n=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ie(n,this._week.dow):t?n[t.day()]:n}function Fe(t){return!0===t?Ie(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function We(t){return!0===t?Ie(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ue(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null}function ze(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Ue.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;
vendor: 4,221 bytes, line 2
2r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Ve(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=ke(t,this.localeData()),this.add(t-e,"d")):e}function qe(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Oe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ye),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=je),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Je(){function t(t,e){return e.length-t.length}var e,n,r,i,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=jt(this.weekdaysMin(n,"")),i=jt(this.weekdaysShort(n,"")),o=jt(this.weekdays(n,"")),s.push(r),a.push(i),l.push(o),u.push(r),u.push(i),u.push(o);s.sort(t),a.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function $e(){return this.hours()||24}function tn(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Qe),F("k",["kk",2],0,$e),F("hmm",0,0,(function(){return""+Qe.apply(this)+R(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Qe.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),at("hour",13),Pt("a",en),Pt("A",en),Pt("H",St),Pt("h",St),Pt("k",St),Pt("HH",St,vt),Pt("hh",St,vt),Pt("kk",St,vt),Pt("hmm",Ct),Pt("hmmss",At),Pt("Hmm",Ct),Pt("Hmmss",At),Ht(["H","HH"],Gt),Ht(["k","kk"],(function(t,e,n){var r=dt(t);e[Gt]=24===r?0:r})),Ht(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Ht(["h","hh"],(function(t,e,n){e[Gt]=dt(t),y(n).bigHour=!0})),Ht("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r)),y(n).bigHour=!0})),Ht("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r,2)),e[Zt]=dt(t.substr(i)),y(n).bigHour=!0})),Ht("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r))})),Ht("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;
vendor: 35,400 bytes, line 2
2e[Gt]=dt(t.substr(0,r)),e[Xt]=dt(t.substr(r,2)),e[Zt]=dt(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=ht("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:N,longDateFormat:q,invalidDate:X,ordinal:K,dayOfMonthOrdinalParse:J,relativeTime:$,months:ee,monthsShort:ne,week:xe,weekdays:Ne,weekdaysMin:Re,weekdaysShort:Pe,meridiemParse:rn},un={},cn={};function dn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function hn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,r,i,o=0;o<t.length;){for(e=(i=hn(t[o]).split("-")).length,n=(n=hn(t[o+1]))?n.split("-"):null;e>0;){if(r=mn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&dn(i,n)>=e-1)break;e--}o++}return an}function pn(t){return null!=t.match("^[^/\\\\]*$")}function mn(e){var r=null;if(void 0===un[e]&&t&&t.exports&&pn(e))try{r=an._abbr,n(6700)("./"+e),gn(r)}catch(t){un[e]=null}return un[e]}function gn(t,e){var n;return t&&((n=c(e)?vn(t):yn(t,e))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function yn(t,e){if(null!==e){var n,r=ln;if(e.abbr=t,null!=un[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])r=un[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return un[t]=new I(O(r,e)),cn[t]&&cn[t].forEach((function(t){yn(t.name,t.config)})),gn(t),un[t]}return delete un[t],null}function _n(t,e){if(null!=e){var n,r,i=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(O(un[t]._config,e)):(null!=(r=mn(t))&&(i=r._config),e=O(i,e),null==r&&(e.abbr=t),(n=new I(e)).parentLocale=un[t],un[t]=n),gn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===gn()&&gn(t)):null!=un[t]&&delete un[t]);return un[t]}function vn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!s(t)){if(e=mn(t))return e;t=[t]}return fn(t)}function bn(){return E(un)}function wn(t){var e,n=t._a;return n&&-2===y(t).overflow&&(e=n[Vt]<0||n[Vt]>11?Vt:n[qt]<1||n[qt]>te(n[zt],n[Vt])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Xt]||0!==n[Zt]||0!==n[Kt])?Gt:n[Xt]<0||n[Xt]>59?Xt:n[Zt]<0||n[Zt]>59?Zt:n[Kt]<0||n[Kt]>999?Kt:-1,y(t)._overflowDayOfYear&&(e<zt||e>qt)&&(e=qt),y(t)._overflowWeeks&&-1===e&&(e=Jt),y(t)._overflowWeekday&&-1===e&&(e=Qt),y(t).overflow=e),t}var Mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,An=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Ln=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(t){var e,n,r,i,o,s,a=t._i,l=Mn.exec(a)||Sn.exec(a),u=An.length,c=xn.length;if(l){for(y(t).iso=!0,e=0,n=u;e<n;e++)if(An[e][1].exec(l[1])){i=An[e][0],r=!1!==An[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=c;e<n;e++)if(xn[e][1].exec(l[3])){o=(l[2]||" ")+xn[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(l[4]){if(!Cn.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=i+(o||"")+(s||""),Wn(t)}else t._isValid=!1}function kn(t,e,n,r,i,o){var s=[On(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function On(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function In(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(t,e,n){return!t||Pe.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(t,e,n){if(t)return Tn[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Rn(t){var e,n=Ln.exec(In(t._i));if(n){if(e=kn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],e,t))return;t._a=e,t._tzm=Pn(n[8],n[9],n[10]),t._d=be.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),y(t).rfc2822=!0}else t._isValid=!1}function Yn(t){var e=En.exec(t._i);null===e?(Dn(t),!1===t._isValid&&(delete t._isValid,Rn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function jn(t,e,n){return null!=t?t:null!=e?e:n}function Bn(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Hn(t){var e,n,r,i,o,s=[];if(!t._d){for(r=Bn(t),t._w&&null==t._a[qt]&&null==t._a[Vt]&&Fn(t),null!=t._dayOfYear&&(o=jn(t._a[zt],r[zt]),(t._dayOfYear>ge(o)||0===t._dayOfYear)&&(y(t)._overflowDayOfYear=!0),n=be(o,0,t._dayOfYear),t._a[Vt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Xt]&&0===t._a[Zt]&&0===t._a[Kt]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?be:ve).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(y(t).weekdayMismatch=!0)}}function Fn(t){var e,n,r,i,o,s,a,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=jn(e.GG,t._a[zt],Se(Kn(),1,4).year),r=jn(e.W,1),((i=jn(e.E,1))<1||i>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,u=Se(Kn(),o,s),n=jn(e.gg,t._a[zt],u.year),r=jn(e.w,u.week),null!=e.d?((i=e.d)<0||i>6)&&(l=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(l=!0)):i=o),r<1||r>Ce(n,o,s)?y(t)._overflowWeeks=!0:null!=l?y(t)._overflowWeekday=!0:(a=Me(n,r,i,o,s),t._a[zt]=a.year,t._dayOfYear=a.dayOfYear)}function Wn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],y(t).empty=!0;var e,n,r,o,s,a,l,u=""+t._i,c=u.length,d=0;for(l=(r=V(t._f,t._locale).match(Y)||[]).length,e=0;e<l;e++)o=r[e],(n=(u.match(Rt(o,t))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&y(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),d+=n.length),H[o]?(n?y(t).empty=!1:y(t).unusedTokens.push(o),Wt(o,n,t)):t._strict&&!n&&y(t).unusedTokens.push(o);y(t).charsLeftOver=c-d,u.length>0&&y(t).unusedInput.push(u),t._a[Gt]<=12&&!0===y(t).bigHour&&t._a[Gt]>0&&(y(t).bigHour=void 0),y(t).parsedDateParts=t._a.slice(0),y(t).meridiem=t._meridiem,t._a[Gt]=Un(t._locale,t._a[Gt],t._meridiem),null!==(a=y(t).era)&&(t._a[zt]=t._locale.erasConvertYear(a,t._a[zt])),Hn(t),wn(t)}else Rn(t);else Dn(t)}function Un(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function zn(t){var e,n,r,i,o,s,a=!1,l=t._f.length;if(0===l)return y(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<l;i++)o=0,s=!1,e=M({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Wn(e),_(e)&&(s=!0),o+=y(e).charsLeftOver,o+=10*y(e).unusedTokens.length,y(e).score=o,a?o<r&&(r=o,n=e):(null==r||o<r||s)&&(r=o,n=e,s&&(a=!0));p(t,n||e)}function Vn(t){if(!t._d){var e=ot(t._i),n=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Hn(t)}}function qn(t){var e=new S(wn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||vn(t._l),null===e||void 0===n&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),C(e)?new S(wn(e)):(h(e)?t._d=e:s(n)?zn(t):n?Wn(t):Xn(t),_(t)||(t._d=null),t))}function Xn(t){var e=t._i;c(e)?t._d=new Date(i.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Yn(t):s(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Hn(t)):a(e)?Vn(t):d(e)?t._d=new Date(e):i.createFromInputFallback(t)}function Zn(t,e,n,r,i){var o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(t)&&u(t)||s(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,qn(o)}function Kn(t,e,n,r){return Zn(t,e,n,r,!1)}i.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Jn=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),Qn=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function $n(t,e){var n,r;if(1===e.length&&s(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return $n("isBefore",[].slice.call(arguments,0))}function er(){return $n("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(l(t,e)&&(-1===Ut.call(rr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[rr[n]]){if(r)return!1;parseFloat(t[rr[n]])!==dt(t[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Tr(NaN)}function ar(t){var e=ot(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function lr(t){return t instanceof ar}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&dt(t[r])!==dt(e[r]))&&s++;return s+o}function dr(t,e){F(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+R(~~(t/60),2)+e+R(~~t%60,2)}))}dr("Z",":"),dr("ZZ",""),Pt("Z",Ot),Pt("ZZ",Ot),Ht(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(Ot,t)}));var hr=/([\+\-]|\d\d)/gi;function fr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(hr)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(C(t)||h(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Kn(t).local()}function mr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=fr(Ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=mr(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Nr(this,Tr(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function yr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function _r(t){return this.utcOffset(0,t)}function vr(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(mr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(kt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Mr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return M(e,this),(e=Gn(e))._a?(t=e._isUTC?m(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Cr(){return!!this.isValid()&&!this._isUTC}function Ar(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Lr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Tr(t,e){var n,r,i,o=t,s=null;return lr(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(s=Er.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:dt(s[qt])*n,h:dt(s[Gt])*n,m:dt(s[Xt])*n,s:dt(s[Zt])*n,ms:dt(ur(1e3*s[Kt]))*n}):(s=Lr.exec(t))?(n="-"===s[1]?-1:1,o={y:Dr(s[2],n),M:Dr(s[3],n),w:Dr(s[4],n),d:Dr(s[5],n),h:Dr(s[6],n),m:Dr(s[7],n),s:Dr(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Or(Kn(o.from),Kn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function Dr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function kr(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Or(t,e){var n;return t.isValid()&&e.isValid()?(e=pr(e,t),t.isBefore(e)?n=kr(t,e):((n=kr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ir(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Nr(this,Tr(n,r),t),this}}function Nr(t,e,n,r){var o=e._milliseconds,s=ur(e._days),a=ur(e._months);t.isValid()&&(r=null==r||r,a&&ce(t,ft(t,"Month")+a*n),s&&pt(t,"Date",ft(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Tr.fn=ar.prototype,Tr.invalid=sr;var Pr=Ir(1,"add"),Rr=Ir(-1,"subtract");function Yr(t){return"string"==typeof t||t instanceof String}function jr(t){return C(t)||h(t)||Yr(t)||d(t)||Hr(t)||Br(t)||null==t}function Br(t){var e,n,r=a(t)&&!u(t),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(e=0;e<s;e+=1)n=o[e],i=i||l(t,n);return r&&i}function Hr(t){var e=s(t),n=!1;return e&&(n=0===t.filter((function(e){return!d(e)&&Yr(t)})).length),e&&n}function Fr(t){var e,n,r=a(t)&&!u(t),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<o.length;e+=1)n=o[e],i=i||l(t,n);return r&&i}function Wr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ur(t,e){1===arguments.length&&(arguments[0]?jr(arguments[0])?(t=arguments[0],e=void 0):Fr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Kn(),r=pr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=e&&(D(e[o])?e[o].call(this,n):e[o]);return this.format(s||this.localeData().calendar(o,this,Kn(n)))}function zr(){return new S(this)}function Vr(t,e){var n=C(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=C(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Gr(t,e,n,r){var i=C(t)?t:Kn(t),o=C(e)?e:Kn(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Xr(t,e){var n,r=C(t)?t:Kn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Zr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Kr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Jr(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=it(e)){case"year":o=Qr(this,r)/12;break;case"month":o=Qr(this,r);break;case"quarter":o=Qr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ct(o)}function Qr(t,e){if(t.date()<e.date())return-Qr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function $r(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(C(t)&&t.isValid()||Kn(t).isValid())?Tr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Kn(),t)}function oi(t,e){return this.isValid()&&(C(t)&&t.isValid()||Kn(t).isValid())?Tr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function si(t){return this.to(Kn(),t)}function ai(t){var e;return void 0===t?this._locale._abbr:(null!=(e=vn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var ci=1e3,di=60*ci,hi=60*di,fi=3506328*hi;function pi(t,e){return(t%e+e)%e}function mi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function gi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function yi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":e=this._d.valueOf(),e-=pi(e,di);break;case"second":e=this._d.valueOf(),e-=pi(e,ci)}return this._d.setTime(e),i.updateOffset(this,!0),this}function _i(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hi-pi(e+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":e=this._d.valueOf(),e+=di-pi(e,di)-1;break;case"second":e=this._d.valueOf(),e+=ci-pi(e,ci)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Mi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Si(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ci(){return this.isValid()?this.toISOString():null}function Ai(){return _(this)}function xi(){return p({},y(this))}function Ei(){return y(this).overflow}function Li(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ti(t,e){var n,r,o,s=this._eras||vn("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Di(t,e,n){var r,i,o,s,a,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[r];break;case"NNNN":if(o===t)return l[r];break;case"NNNNN":if(a===t)return l[r]}else if([o,s,a].indexOf(t)>=0)return l[r]}function ki(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Oi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Ii(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ni(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Pi(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()}function Ri(t){return l(this,"_erasNameRegex")||Ui.call(this),t?this._erasNameRegex:this._erasRegex}function Yi(t){return l(this,"_erasAbbrRegex")||Ui.call(this),t?this._erasAbbrRegex:this._erasRegex}function ji(t){return l(this,"_erasNarrowRegex")||Ui.call(this),t?this._erasNarrowRegex:this._erasRegex}function Bi(t,e){return e.erasAbbrRegex(t)}function Hi(t,e){return e.erasNameRegex(t)}function Fi(t,e){return e.erasNarrowRegex(t)}function Wi(t,e){return e._eraYearOrdinalRegex||Tt}function Ui(){var t,e,n=[],r=[],i=[],o=[],s=this.eras();for(t=0,e=s.length;t<e;++t)r.push(jt(s[t].name)),n.push(jt(s[t].abbr)),i.push(jt(s[t].narrow)),o.push(jt(s[t].name)),o.push(jt(s[t].abbr)),o.push(jt(s[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function zi(t,e){F(0,[t,t.length],0,e)}function Vi(t){return Ji.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qi(t){return Ji.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return Ce(this.year(),1,4)}function Xi(){return Ce(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return Ce(this.year(),t.dow,t.doy)}function Ki(){var t=this.localeData()._week;return Ce(this.weekYear(),t.dow,t.doy)}function Ji(t,e,n,r,i){var o;return null==t?Se(this,r,i).year:(e>(o=Ce(t,r,i))&&(e=o),Qi.call(this,t,e,n,r,i))}function Qi(t,e,n,r,i){var o=Me(t,e,n,r,i),s=be(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function $i(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Pt("N",Bi),Pt("NN",Bi),Pt("NNN",Bi),Pt("NNNN",Hi),Pt("NNNNN",Fi),Ht(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?y(n).era=i:y(n).invalidEra=t})),Pt("y",Tt),Pt("yy",Tt),Pt("yyy",Tt),Pt("yyyy",Tt),Pt("yo",Wi),Ht(["y","yy","yyy","yyyy"],zt),Ht(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[zt]=n._locale.eraYearOrdinalParse(t,i):e[zt]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),at("weekYear",1),at("isoWeekYear",1),Pt("G",Dt),Pt("g",Dt),Pt("GG",St,vt),Pt("gg",St,vt),Pt("GGGG",Et,wt),Pt("gggg",Et,wt),Pt("GGGGG",Lt,Mt),Pt("ggggg",Lt,Mt),Ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=dt(t)})),Ft(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),rt("quarter","Q"),at("quarter",7),Pt("Q",_t),Ht("Q",(function(t,e){e[Vt]=3*(dt(t)-1)})),F("D",["DD",2],"Do","date"),rt("date","D"),at("date",9),Pt("D",St),Pt("DD",St,vt),Pt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ht(["D","DD"],qt),Ht("Do",(function(t,e){e[qt]=dt(t.match(St)[0])}));var to=ht("Date",!0);function eo(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),at("dayOfYear",4),Pt("DDD",xt),Pt("DDDD",bt),Ht(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),F("m",["mm",2],0,"minute"),rt("minute","m"),at("minute",14),Pt("m",St),Pt("mm",St,vt),Ht(["m","mm"],Xt);var no=ht("Minutes",!1);F("s",["ss",2],0,"second"),rt("second","s"),at("second",15),Pt("s",St),Pt("ss",St,vt),Ht(["s","ss"],Zt);var ro,io,oo=ht("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),at("millisecond",16),Pt("S",xt,_t),Pt("SS",xt,vt),Pt("SSS",xt,bt),ro="SSSS";ro.length<=9;ro+="S")Pt(ro,Tt);function so(t,e){e[Kt]=dt(1e3*("0."+t))}for(ro="S";ro.length<=9;ro+="S")Ht(ro,so);function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=ht("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var uo=S.prototype;function co(t){return Kn(1e3*t)}function ho(){return Kn.apply(null,arguments).parseZone()}function fo(t){return t}uo.add=Pr,uo.calendar=Ur,uo.clone=zr,uo.diff=Jr,uo.endOf=_i,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=mt,uo.invalidAt=Ei,uo.isAfter=Vr,uo.isBefore=qr,uo.isBetween=Gr,uo.isSame=Xr,uo.isSameOrAfter=Zr,uo.isSameOrBefore=Kr,uo.isValid=Ai,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Qn,uo.min=Jn,uo.parsingFlags=xi,uo.set=gt,uo.startOf=yi,uo.subtract=Rr,uo.toArray=Mi,uo.toObject=Si,uo.toDate=wi,uo.toISOString=ti,uo.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ci,uo.toString=$r,uo.unix=bi,uo.valueOf=vi,uo.creationData=Li,uo.eraName=Oi,uo.eraNarrow=Ii,uo.eraAbbr=Ni,uo.eraYear=Pi,uo.year=ye,uo.isLeapYear=_e,uo.weekYear=Vi,uo.isoWeekYear=qi,uo.quarter=uo.quarters=$i,uo.month=de,uo.daysInMonth=he,uo.week=uo.weeks=Te,uo.isoWeek=uo.isoWeeks=De,uo.weeksInYear=Zi,uo.weeksInWeekYear=Ki,uo.isoWeeksInYear=Gi,uo.isoWeeksInISOWeekYear=Xi,uo.date=to,uo.day=uo.days=Ve,uo.weekday=qe,uo.isoWeekday=Ge,uo.dayOfYear=eo,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=gr,uo.utc=_r,uo.local=vr,uo.parseZone=br,uo.hasAlignedHourOffset=wr,uo.isDST=Mr,uo.isLocal=Cr,uo.isUtcOffset=Ar,uo.isUtc=xr,uo.isUTC=xr,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=x("dates accessor is deprecated. Use date instead.",to),uo.months=x("months accessor is deprecated. Use month instead",de),uo.years=x("years accessor is deprecated. Use year instead",ye),uo.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),uo.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=I.prototype;function mo(t,e,n,r){var i=vn(),o=m().set(r,e);return i[n](o,t)}function go(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return mo(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(t,r,n,"month");return i}function yo(t,e,n,r){"boolean"==typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var i,o=vn(),s=t?o._week.dow:0,a=[];if(null!=n)return mo(e,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(e,(i+s)%7,r,"day");return a}function _o(t,e){return go(t,e,"months")}function vo(t,e){return go(t,e,"monthsShort")}function bo(t,e,n){return yo(t,e,n,"weekdays")}function wo(t,e,n){return yo(t,e,n,"weekdaysShort")}function Mo(t,e,n){return yo(t,e,n,"weekdaysMin")}po.calendar=P,po.longDateFormat=G,po.invalidDate=Z,po.ordinal=Q,po.preparse=fo,po.postformat=fo,po.relativeTime=tt,po.pastFuture=et,po.set=k,po.eras=Ti,po.erasParse=Di,po.erasConvertYear=ki,po.erasAbbrRegex=Yi,po.erasNameRegex=Ri,po.erasNarrowRegex=ji,po.months=se,po.monthsShort=ae,po.monthsParse=ue,po.monthsRegex=pe,po.monthsShortRegex=fe,po.week=Ae,po.firstDayOfYear=Le,po.firstDayOfWeek=Ee,po.weekdays=He,po.weekdaysMin=We,po.weekdaysShort=Fe,po.weekdaysParse=ze,po.weekdaysRegex=Xe,po.weekdaysShortRegex=Ze,po.weekdaysMinRegex=Ke,po.isPM=nn,po.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=x("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=x("moment.langData is deprecated. Use moment.localeData instead.",vn);var So=Math.abs;function Co(){var t=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),t.milliseconds=So(t.milliseconds),t.seconds=So(t.seconds),t.minutes=So(t.minutes),t.hours=So(t.hours),t.months=So(t.months),t.years=So(t.years),this}function Ao(t,e,n,r){var i=Tr(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function xo(t,e){return Ao(this,t,e,1)}function Eo(t,e){return Ao(this,t,e,-1)}function Lo(t){return t<0?Math.floor(t):Math.ceil(t)}function To(){var t,e,n,r,i,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Lo(ko(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=ct(o/1e3),l.seconds=t%60,e=ct(t/60),l.minutes=e%60,n=ct(e/60),l.hours=n%24,s+=ct(n/24),a+=i=ct(Do(s)),s-=Lo(ko(i)),r=ct(a/12),a%=12,l.days=s,l.months=a,l.years=r,this}function Do(t){return 4800*t/146097}function ko(t){return 146097*t/4800}function Oo(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Do(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ko(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Io(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*dt(this._months/12):NaN}function No(t){return function(){return this.as(t)}}var Po=No("ms"),Ro=No("s"),Yo=No("m"),jo=No("h"),Bo=No("d"),Ho=No("w"),Fo=No("M"),Wo=No("Q"),Uo=No("y");function zo(){return Tr(this)}function Vo(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function qo(t){return function(){return this.isValid()?this._data[t]:NaN}}var Go=qo("milliseconds"),Xo=qo("seconds"),Zo=qo("minutes"),Ko=qo("hours"),Jo=qo("days"),Qo=qo("months"),$o=qo("years");function ts(){return ct(this.days()/7)}var es=Math.round,ns={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rs(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function is(t,e,n,r){var i=Tr(t).abs(),o=es(i.as("s")),s=es(i.as("m")),a=es(i.as("h")),l=es(i.as("d")),u=es(i.as("M")),c=es(i.as("w")),d=es(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];
vendor: 4,901 bytes, line 2
2return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=r,rs.apply(null,h)}function os(t){return void 0===t?es:"function"==typeof t&&(es=t,!0)}function ss(t,e){return void 0!==ns[t]&&(void 0===e?ns[t]:(ns[t]=e,"s"===t&&(ns.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ns;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(o=Object.assign({},ns,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),r=is(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ls=Math.abs;function us(t){return(t>0)-(t<0)||+t}function cs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,o,s,a,l=ls(this._milliseconds)/1e3,u=ls(this._days),c=ls(this._months),d=this.asSeconds();return d?(t=ct(l/60),e=ct(t/60),l%=60,t%=60,n=ct(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=us(this._months)!==us(d)?"-":"",s=us(this._days)!==us(d)?"-":"",a=us(this._milliseconds)!==us(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+r+"S":"")):"P0D"}var ds=ar.prototype;return ds.isValid=or,ds.abs=Co,ds.add=xo,ds.subtract=Eo,ds.as=Oo,ds.asMilliseconds=Po,ds.asSeconds=Ro,ds.asMinutes=Yo,ds.asHours=jo,ds.asDays=Bo,ds.asWeeks=Ho,ds.asMonths=Fo,ds.asQuarters=Wo,ds.asYears=Uo,ds.valueOf=Io,ds._bubble=To,ds.clone=zo,ds.get=Vo,ds.milliseconds=Go,ds.seconds=Xo,ds.minutes=Zo,ds.hours=Ko,ds.days=Jo,ds.weeks=ts,ds.months=Qo,ds.years=$o,ds.humanize=as,ds.toISOString=cs,ds.toString=cs,ds.toJSON=cs,ds.locale=ai,ds.localeData=ui,ds.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),ds.lang=li,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Pt("x",Dt),Pt("X",It),Ht("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Ht("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.29.4",o(Kn),i.fn=uo,i.min=tr,i.max=er,i.now=nr,i.utc=m,i.unix=co,i.months=_o,i.isDate=h,i.locale=gn,i.invalid=v,i.duration=Tr,i.isMoment=C,i.weekdays=bo,i.parseZone=ho,i.localeData=vn,i.isDuration=lr,i.monthsShort=vo,i.weekdaysMin=Mo,i.defineLocale=yn,i.updateLocale=_n,i.locales=bn,i.weekdaysShort=wo,i.normalizeUnits=it,i.relativeTimeRounding=os,i.relativeTimeThreshold=ss,i.calendarFormat=Wr,i.prototype=uo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},4155:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,l=[],u=!1,c=-1;function d(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&h())}function h(){if(!u){var t=s(d);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},6095:function(t,e,n){var r,i=n(8764).lW;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";
vendor: 5,645 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),s=n(45),a=n(46),l=n(47),u=n(48),c=n(49),d=n(12),h=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:c.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};e.default=g},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var s,a={},l={},u={},c={};function d(t,e){var n;if(void 0===e&&(e=s.ANY),"string"==typeof t)n=c[t]||a[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof t)t&s.LEVEL&s.BLOCK?n=c.block:t&s.LEVEL&s.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||u[t.tagName]}return null==n?null:e&s.LEVEL&n.scope&&e&s.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(s=e.Scope||(e.Scope={})),e.create=function(t,e){var n=d(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=d,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(c[r.blotName||r.attrName]=r,"string"==typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(l[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(t){null!=u[t]&&null!=r.className||(u[t]=r)}))}return r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),s=n(20),a=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+s.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+s.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=s.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=s.length(o)}return new l(n)},l.prototype.compose=function(t){var e=s.iterator(this.ops),n=s.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var a=o.retain;"insert"===e.peekType()&&e.peekLength()<=a;)a-=e.peekLength(),r.push(e.next());o.retain-a>0&&n.next(o.retain-a)}for(var u=new l(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),d=e.next(c),h=n.next(c);if("number"==typeof h.retain){var f={};
vendor: 9,600 bytes, line 2
2"number"==typeof d.retain?f.retain=c:f.insert=d.insert;var p=s.attributes.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(p&&(f.attributes=p),u.push(f),!n.hasNext()&&i(u.ops[u.ops.length-1],f)){var m=new l(e.rest());return u.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&u.push(h)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],e),c=s.iterator(this.ops),d=s.iterator(t.ops);return u.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(d.peekLength(),e),o.push(d.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),e);var a=c.next(n),l=d.next(n);i(a.insert,l.insert)?o.retain(n,s.attributes.diff(a.attributes,l.attributes)):o.push(l).delete(n)}e-=n}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var n=s.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),a=s.length(o)-n.peekLength(),u="string"==typeof o.insert?o.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&t(r,{},i)},l.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=s.iterator(this.ops),r=s.iterator(t.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),a=n.next(o),u=r.next(o);if(a.delete)continue;u.delete?i.push(u):i.retain(o,s.attributes.transform(a.attributes,u.attributes,e))}else i.retain(s.length(n.next()));return i.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var n=s.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return void 0===e||n.call(t,e)},l=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<f;++h)if(null!=(e=arguments[h]))for(n in e)r=u(d,n),d!==(i=u(e,n))&&(p&&i&&(a(i)||(o=s(i)))?(o?(o=!1,c=r&&s(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:t(p,c,i)})):void 0!==i&&l(d,{name:n,newValue:i}));return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=d(n(3)),s=d(n(2)),a=d(n(0)),l=d(n(16)),u=d(n(6)),c=d(n(7));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=a.default.query(t,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=a.default.create(g.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(a.default.Embed);m.scope=a.default.Scope.BLOCK_BLOT;var g=function(t){function e(t){h(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return p(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),y(e))}),new s.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),s=o.shift();s.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;o.reduce((function(t,e){return(a=a.split(t,!0)).insertAt(0,e),e.length}),t+s.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof l.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(a.default.Block);function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:y(t.parent,e))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[u.default,a.default.Embed,c.default],e.bubbleFormats=y,e.BlockEmbed=m,e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var 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},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);
vendor: 5,063 bytes, line 2
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var s=g(n(2)),a=g(n(14)),l=g(n(8)),u=g(n(9)),c=g(n(0)),d=n(15),h=g(d),f=g(n(3)),p=g(n(10)),m=g(n(34));function g(t){return t&&t.__esModule?t:{default:t}}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var v=(0,p.default)("quill"),b=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_(this,t),this.options=w(e,r),this.container=this.options.container,null==this.container)return v.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t){t===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;M.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),p.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&v.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||v.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=S(t,e,n),s=i(o,4);return t=s[0],e=s[1],n=s[3],M.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return M.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(c.default.query(t,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,y({},t,e))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var s,a=this,l=S(t,e,n,r,o),u=i(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],M.call(this,(function(){return a.editor.formatLine(t,e,s)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var s,a=this,l=S(t,e,n,r,o),u=i(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],M.call(this,(function(){return a.editor.formatText(t,e,s)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.
vendor: 4,477 bytes, line 2
2index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=S(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=S(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return M.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var s,a=this,l=S(t,0,n,r,o),u=i(l,4);return t=u[0],s=u[2],o=u[3],M.call(this,(function(){return a.editor.insertText(t,e,s)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=S(t,e,n),s=i(o,4);return t=s[0],e=s[1],n=s[3],M.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return M.call(this,(function(){t=new s.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=S(e,n,r),s=i(o,4);e=s[0],n=s[1],r=s[3],this.selection.setRange(new d.Range(e,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return M.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function w(t,e){if((e=(0,f.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=m.default;var n=(0,f.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{}
vendor: 8,331 bytes, line 2
2,Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?v.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,f.default)(!0,{},b.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function M(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===l.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=C(i,a,e):0!==r&&(i=C(i,n,r,e)),this.setSelection(i,l.default.sources.SILENT)),a.length()>0){var u,c,d=[l.default.events.TEXT_CHANGE,a,o,e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return a}function S(t,e,n,i,o){var s={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=i,i=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(s=n,o=i):"string"==typeof n&&(null!=i?s[n]=i:o=n),[t,e,s,o=o||l.default.sources.API]}function C(t,e,n,r){if(null==t)return null;var o=void 0,a=void 0;if(e instanceof s.default){var u=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==l.default.sources.USER)})),c=i(u,2);o=c[0],a=c[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===l.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),f=i(h,2);o=f[0],a=f[1]}return new d.Range(o,a-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:s.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},e.expandConfig=w,e.overload=S,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=a(n(7)),s=a(n(0));function a(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&s.default.query(r,s.default.Scope.BLOT)){var a=this.isolate(t,n);o&&a.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(s.default.Inline);c.allowedChildren=[c,s.default.Embed,o.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var a=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default.Text);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=s(n(54));function s(t){return t&&t.__esModule?t:{default:t}}var a=(0,s(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",a.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){a.log.apply(a,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(o.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},e.default=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";
vendor: 11,811 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];(e=console)[t].apply(e,o)}}function s(t){return r.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=s.level=function(t){i=t},e.default=s},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),s=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var u,c;if(a(t)||a(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),s(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var d=i(t),h=i(e)}catch(t){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),u=d.length-1;u>=0;u--)if(d[u]!=h[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!s(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function a(t){return null==t}function l(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=d(n(2)),a=d(n(0)),l=d(n(4)),u=d(n(6)),c=d(n(7));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),e}(u.default);m.blotName="code",m.tagName="CODE";var g=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new s.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),s=r(i,1)[0];null!=s&&s.deleteAt(s.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var s=this.newlineIndex(t,!0)+1,l=o-s+1,u=this.isolate(s,l),c=u.next;u.format(r,i),c instanceof e&&c.formatAt(0,t-s+n-l,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(c.default,t),o=r(i,2),s=o[0],a=o[1];s.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=a.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof a.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",e.Code=m,e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=y(n(2)),a=y(n(20)),l=y(n(0)),u=y(n(13)),c=y(n(24)),d=n(4),h=y(d),f=y(n(16)),p=y(n(21)),m=y(n(11)),g=y(n(3));function y(t){return t&&t.__esModule?t:{default:t}}var _=/^[ -~]*$/,v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,p.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,p.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new s.default)}(t)).reduce((function(t,s){var u=s.retain||s.delete||s.insert.length||1,c=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var f=s.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),t>=o&&!f.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,f);var p=e.scroll.line(t),m=i(p,2),y=m[0],_=m[1],v=(0,g.default)({},(0,d.bubbleFormats)(y));if(y instanceof h.default){var b=y.descendant(l.default.Leaf,_),w=i(b,1)[0];v=(0,g.default)(v,(0,d.bubbleFormats)(w))}c=a.default.attributes.diff(v,c)||{}}else if("object"===r(s.insert)){var M=Object.keys(s.insert)[0];if(null==M)return t;e.scroll.insertAt(t,M,s.insert[M])}o+=u}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,u,n,c[n])})),t+u}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),s=e;o.forEach((function(e){var o=e.length();if(e instanceof u.default){var a=t-e.offset(n.scroll),l=e.newlineIndex(a+s)-a+1;e.formatAt(a,l,i,r[i])}else e.format(i,r[i]);s-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,p.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new s.default).retain(t).retain(e,(0,p.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof h.default?n.push(e):e instanceof l.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(l.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,d.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=b((0,d.bubbleFormats)(n),e)}return e}));return g.default.apply(g.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new s.default).retain(t).insert(e,(0,p.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
vendor: 4,639 bytes, line 2
2if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&!(t.children.length>1)&&t.children.head instanceof f.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),a=o[0],l=o[1],c=0,d=new s.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(t,e+c).diff((new s.default).insert(n).concat(d)),f=(new s.default).retain(t).concat(h);return this.applyDelta(f)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(_)&&l.default.find(e[0].target)){var i=l.default.find(e[0].target),o=(0,d.bubbleFormats)(i),a=i.offset(this.scroll),u=e[0].oldValue.replace(c.default.CONTENTS,""),h=(new s.default).insert(u),f=(new s.default).insert(i.value()),p=(new s.default).retain(a).concat(h.diff(f,n));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new s.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,m.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function b(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n(0)),s=u(n(21)),a=u(n(11)),l=u(n(8));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=(0,u(n(10)).default)("quill:selection"),f=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,t),this.index=e,this.length=n},p=function(){function t(e,n){var r=this;d(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.TEXT_CHANGE&&e.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,s=n.endNode,a=n.endOffset;r.setNativeRange(i,o,s,a)}})),this.update(l.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update(
vendor: 5,510 bytes, line 2
2);var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),s=r(o,2),a=s[0],l=s[1];if(null==a)return null;var u=a.position(l,!0),c=r(u,2);i=c[0],l=c[1];var d=document.createRange();if(e>0){d.setStart(i,l);var h=this.scroll.leaf(t+e),f=r(h,2);if(a=f[0],l=f[1],null==a)return null;var p=a.position(l,!0),m=r(p,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var g="left",y=void 0;return i instanceof Text?(l<i.data.length?(d.setStart(i,l),d.setEnd(i,l+1)):(d.setStart(i,l-1),d.setEnd(i,l),g="right"),y=d.getBoundingClientRect()):(y=a.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:y.top+y.height,height:y.height,left:y[g],right:y[g],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],s=n[1],a=o.default.find(i,!0),l=a.offset(e.scroll);return 0===s?l:a instanceof o.default.Container?l+a.length():l+a.index(i,s)})),s=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(c(i)));return new f(a,s-a)}},{key:"normalizeNative",value:function(t){if(!m(this.root,t.startContainer)||!t.collapsed&&!m(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var s,a=e.scroll.leaf(t),l=r(a,2),u=l[0],c=l[1],d=u.position(c,0!==n),h=r(d,2);s=h[0],c=h[1],i.push(s,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),s=r(o,1)[0],a=s;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,i));a=r(l,1)[0]}if(null!=s&&null!=a){var u=t.getBoundingClientRect();n.top<u.top?t.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(t.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||i||t!==s.startContainer||e!==s.startOffset||n!==s.endContainer||r!==s.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),o.removeAllRanges(),o.addRange(a)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof e&&(n=e,e=!1),h.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],u=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(e,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,h=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(e),t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(h)),t!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,h)}}}]),t}();function m(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=f,e.default=p},function(t,e,n){"use strict";
vendor: 4,840 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"insertInto",value:function(t,n){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=s)&&r.__esModule?r:{default:r}).default.Embed);u.blotName="break",u.tagName="BR",e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),s=n(30),a=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=u(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,s){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=s})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],s=[[this,t]];return i instanceof e?s.concat(i.path(o,n)):(null!=i&&s.push([i,o]),s)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEac
vendor: 29,414 bytes, line 2
2hAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=u(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(s.default);function u(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),s=n(31),a=n(17),l=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new s.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=l.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(a.default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),s=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=s.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new s(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function s(t){this.ops=t,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,n,r;try{e=Map}catch(t){e=function(){}}try{n=Set}catch(t){n=function(){}}try{r=Promise}catch(t){r=function(){}}function o(s,l,u,c,d){"object"==typeof l&&(u=l.depth,c=l.prototype,d=l.includeNonEnumerable,l=l.circular);var h=[],f=[],p=void 0!==i;return void 0===l&&(l=!0),void 0===u&&(u=1/0),function s(u,m){if(null===u)return null;if(0===m)return u;var g,y;if("object"!=typeof u)return u;if(t(u,e))g=new e;else if(t(u,n))g=new n;else if(t(u,r))g=new r((function(t,e){u.then((function(e){t(s(e,m-1))}),(function(t){e(s(t,m-1))}))}));else if(o.__isArray(u))g=[];else if(o.__isRegExp(u))g=new RegExp(u.source,a(u)),u.lastIndex&&(g.lastIndex=u.lastIndex);else if(o.__isDate(u))g=new Date(u.getTime());else{if(p&&i.isBuffer(u))return g=i.allocUnsafe?i.allocUnsafe(u.length):new i(u.length),u.copy(g),g;t(u,Error)?g=Object.create(u):void 0===c?(y=Object.getPrototypeOf(u),g=Object.create(y)):(g=Object.create(c),y=c)}if(l){var _=h.indexOf(u);if(-1!=_)return f[_];h.push(u),f.push(g)}for(var v in t(u,e)&&u.forEach((function(t,e){var n=s(e,m-1),r=s(t,m-1);g.set(n,r)})),t(u,n)&&u.forEach((function(t){var e=s(t,m-1);g.add(e)})),u){var b;y&&(b=Object.getOwnPropertyDescriptor(y,v)),b&&null==b.set||(g[v]=s(u[v],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(v=0;v<w.length;v++){var M=w[v];(!(C=Object.getOwnPropertyDescriptor(u,M))||C.enumerable||d)&&(g[M]=s(u[M],m-1),C.enumerable||Object.defineProperty(g,M,{enumerable:!1}))}}if(d){var S=Object.getOwnPropertyNames(u);for(v=0;v<S.length;v++){var C,A=S[v];(C=Object.getOwnPropertyDescriptor(u,A))&&C.enumerable||(g[A]=s(u[A],m-1),Object.defineProperty(g,A,{enumerable:!1}))}}return g}(s,u)}function s(t){return Object.prototype.toString.call(t)}function a(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=s,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===s(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===s(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===s(t)},o.__getRegExpFlags=a,o}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=f(n(0)),a=f(n(8)),l=n(4),u=f(l),c=f(n(16)),d=f(n(13)),h=f(n(25));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return t instanceof u.default||t instanceof l.BlockEmbed}var m=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),s=r(i,2),a=s[0],u=s[1],h=this.line(t+n),f=r(h,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&a!==f&&u>0){if(a instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(a instanceof d.default){var p=a.newlineIndex(a.length(),!0);if(p>-1&&(a=a.split(p+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof c.default?null:f.children.head;a.moveChildren(f,g),a.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(p,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){p(e)?i.push(e):e instanceof s.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[u.default,l.BlockEmbed,h.default],e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var 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},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=m(n(21)),a=m(n(11)),l=m(n(3)),u=m(n(2)),c=m(n(20)),d=m(n(0)),h=m(n(5)),f=m(n(10)),p=m(n(9));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=(0,f.default)("quill:keyboard"),_=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",v=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},C),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:e.keys.DELETE},{collapsed:!0},M)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},S),r.addBinding({key:e.keys.DELETE},{collapsed:!1},S),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"match",value:function(t,e){return e=E(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=E(t);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,s=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==s.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var u=t.quill.getLine(l.index),c=i(u,2),h=c[0],f=c[1],p=t.quill.getLeaf(l.index),m=i(p,2),g=m[0],y=m[1],_=0===l.length?[g,y]:t.quill.getLeaf(l.index+l.length),v=i(_,2),b=v[0],w=v[1],M=g instanceof d.default.Text?g.value().slice(0,y):"",S=b instanceof d.default.Text?b.value().slice(w):"",C={collapsed:0===l.length,empty:0===l.length&&h.length()<=1,format:t.quill.getFormat(l),offset:f,prefix:M,suffix:S};s.some((function(e){if(null!=e.collapsed&&e.collapsed!==C.collapsed)return!1;if(null!=e.empty&&e.empty!==C.empty)return!1;if(null!=e.offset&&e.offset!==C.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==C.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=C.format[t]:!1===e.format[t]?null==C.format[t]:(0,a.default)(e.format[t],C.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(C.prefix)||null!=e.suffix&&!e.suffix.test(C.suffix)||!0===e.handler.call(t,l,C))}))&&n.preventDefault()}}}}))}}]),e}(p.default);function b(t,e){var n,r=t===v.keys.LEFT?"prefix":"suffix";return g(n={key:t,shiftKey:e,altKey:null},r,/^$/),g(n,"handler",(function(n){var r=n.index;t===v.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof d.default.Embed&&(t===v.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),1))})),n}function w(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var s=this.quill.getLine(t.index-1),a=i(s,1)[0];if(null!=a&&a.length()>1){var l=r.formats(),u=this.quill.getFormat(t.index-1,1);o=c.default.attributes.diff(l,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-d,d,h.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-d,d,o,h.default.sources.USER),this.quill.focus()}}function M(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,s=this.quill.getLine(t.index),a=i(s,1)[0];if(e.offset>=a.length()-1){var l=this.quill.getLine(t.index+1),u=i(l,1)[0];if(u){var d=a.formats(),f=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(d,f)||{},o=u.length()}}this.quill.deleteText(t.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,h.default.sources.USER)}}function S(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function C(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],h.default.sources.USER))}))}function A(t){return{key:v.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=d.default.query("code-block"),r=e.index,o=e.length,s=this.quill.scroll.descendant(n,r),a=i(s,2),l=a[0],u=a[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,p=l.newlineIndex(c+u+o),m=l.domNode.textContent.slice(f,p).split("\n");u=0,m.forEach((function(e,i){t?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,o,h.default.sources.SILENT)}}}}function x(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],h.default.sources.USER)}}}function E(t){if("string"==typeof t||"number"==typeof t)return E({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,s.default)(t,!1)),"string"==typeof t.key)if(null!=v.keys[t.key.toUpperCase()])t.key=v.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[_]=t.shortKey,delete t.shortKey),t}v.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},v.DEFAULTS={bindings:{bold:x("bold"),italic:x("italic"),underline:x("underline"),indent:{key:v.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:v.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:v.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":A(!0),"outdent code-block":A(!1),"remove tab":{key:v.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:v.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new u.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:v.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:v.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],s=(0,l.default)({},r.formats(),{list:"checked"}),a=(new u.default).retain(t.index).insert("\n",s).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:v.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],s=r[1],a=(new u.default).retain(t.index).insert("\n",e.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),s=o[0],a=o[1];if(a>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(t.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,h.default.sources.SILENT)}},"code exit":{key:v.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],s=(new u.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,h.default.sources.USER)}},"embed left":b(v.keys.LEFT,!1),"embed left shift":b(v.keys.LEFT,!0),"embed right":b(v.keys.RIGHT,!1),"embed right shift":b(v.keys.RIGHT,!0)}},e.default=v,e.SHORTKEY=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=l(n(0)),a=l(n(7));function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,l=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var u=[t,n.start.offset,n.end.offset];i=u[0],o=u[1],l=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof a.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,l].map((function(t){return Math.max(0,Math.min(i.data.length,t-1))})),h=r(d,2);return o=h[0],l=h[1],{startNode:i,startOffset:o,endNode:i,endOffset:l}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}
vendor: 5,343 bytes, line 2
2))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(0)),i=n(4),o=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);u.allowedChildren=[o.default,i.BlockEmbed,u],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new c("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=c,e.ColorClass=d,e.ColorStyle=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(6);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return c(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=s)&&r.__esModule?r:{default:r}).default);function c(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=u,e.sanitize=c},function(t,e,n){"use strict";
vendor: 13,333 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var 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},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=a(n(23)),s=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}var l=0;function u(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(n(0)),i=y(n(5)),o=n(4),s=y(o),a=y(n(16)),l=y(n(25)),u=y(n(24)),c=y(n(35)),d=y(n(6)),h=y(n(22)),f=y(n(7)),p=y(n(55)),m=y(n(42)),g=y(n(23));function y(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),r.default.register(s.default,a.default,u.default,d.default,h.default,f.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var s=r.create(this.statics.scope);o.wrap(s),s.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),s=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),a=o.default.keys(this.domNode);e.concat(n).concat(a).forEach((function(e){var n=s.query(e,s.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=a(n(0)),s=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var l="\ufeff",u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEac
vendor: 4,708 bytes, line 2
2h((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(l).join("");if(t===this.leftGuard)if(this.prev instanceof s.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=l,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(o.default.Embed);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",s),l=new o.default.Attributor.Class("align","ql-align",s),u=new o.default.Attributor.Style("align","text-align",s);e.AlignAttribute=a,e.AlignClass=l,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s=n(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",s),l=new o.default.Attributor.Class("direction","ql-direction",s),u=new o.default.Attributor.Style("direction","direction",s);e.DirectionAttribute=a,e.DirectionClass=l,e.DirectionStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",c),h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),f=new h("font","font-family",c);e.FontStyle=f,e.FontClass=d},function(t,e,n){"use strict";
vendor: 18,222 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=s,e.SizeStyle=a},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(0)),o=s(n(5));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.default.sources.USER),this.ignoreChange=!1;var r=l(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(s(n(9)).default);function l(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}(t)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=a,e.getLastChangeIndex=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=p(n(3)),s=p(n(2)),a=p(n(8)),l=p(n(23)),u=p(n(34)),c=p(n(59)),d=p(n(60)),h=p(n(28)),f=p(n(61));function p(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[!1,"center","right","justify"],v=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],b=[!1,"serif","monospace"],w=["1","2","3",!1],M=["small",!1,"large","huge"],S=function(t){function e(t,n){m(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return y(e,t),r(e,[{key:"addModule",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&A(t,_),new d.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&A(t,v,"background"===n?"#ffffff":"#000000"),new c.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?A(t,b):t.classList.contains("ql-header")?A(t,w):t.classList.contains("ql-size")&&A(t,M)),new h.default(t)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(u.default);S.DEFAULTS=(0,o.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new s.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(r.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(t){function e(t,n){m(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return y(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){l.default.match(e,"enter")?(t.save(),e.preventDefault()):l.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(f.default);function A(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=C,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],s=t-i[1],a=this.iterator(o);(r=a())&&s<t+e;){var l=r.length();t>s?n(r,t-s,Math.min(e,s+l-t)):n(r,0,Math.min(l,t+e-s)),s+=l}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),s=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[s.DATA_KEY].mutations&&(t.domNode[s.DATA_KEY].mutations=[]),e&&a(t.parent))},l=function(t){null!=t.domNode[s.DATA_KEY]&&null!=t.domNode[s.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(l),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(t){var e=s.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(s.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=s.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach((function(t){a(t,!1)}))}))):"attributes"===t.type&&a(e.prev)),a(e))})),this.children.forEach(l),i=(u=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=s.find(t.target,!0);return null==e?null:null==e.domNode[s.DATA_KEY].mutations?(e.domNode[s.DATA_KEY].mutations=[t],e):(e.domNode[s.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[s.DATA_KEY]&&t.update(t.domNode[s.DATA_KEY].mutations||[],n)})),null!=this.domNode[s.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=s.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||s.query(r,s.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=s.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=s.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=s.query(n,s.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=s.query(r,s.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=s.query(n,s.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=s.create(n,r);i.parent.insertBefore(o,i)}}
vendor: 4,665 bytes, line 2
2,e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=s.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),s=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=s.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=s.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1;function r(t,e,l){if(t==e)return t?[[0,t]]:[];(l<0||t.length<l)&&(l=null);var c=o(t,e),d=t.substring(0,c);c=s(t=t.substring(c),e=e.substring(c));var h=t.substring(t.length-c),f=function(t,e){var a;if(!t)return[[1,e]];if(!e)return[[n,t]];var l=t.length>e.length?t:e,u=t.length>e.length?e:t,c=l.indexOf(u);if(-1!=c)return a=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[1,e]];var d=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;
vendor: 4,480 bytes, line 2
2function i(t,e,n){for(var r,i,a,l,u=t.substring(n,n+Math.floor(t.length/4)),c=-1,d="";-1!=(c=e.indexOf(u,c+1));){var h=o(t.substring(n),e.substring(c)),f=s(t.substring(0,n),e.substring(0,c));d.length<f+h&&(d=e.substring(c-f,c)+e.substring(c,c+h),r=t.substring(0,n-f),i=t.substring(n+h),a=e.substring(0,c-f),l=e.substring(c+h))}return 2*d.length>=t.length?[r,i,a,l,d]:null}var a,l,u,c,d,h=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!h&&!f)return null;a=f?h&&h[4].length>f[4].length?h:f:h,t.length>e.length?(l=a[0],u=a[1],c=a[2],d=a[3]):(c=a[0],d=a[1],l=a[2],u=a[3]);var p=a[4];return[l,u,c,d,p]}(t,e);if(d){var h=d[0],f=d[1],p=d[2],m=d[3],g=d[4],y=r(h,p),_=r(f,m);return y.concat([[0,g]],_)}return function(t,e){for(var r=t.length,o=e.length,s=Math.ceil((r+o)/2),a=s,l=2*s,u=new Array(l),c=new Array(l),d=0;d<l;d++)u[d]=-1,c[d]=-1;u[a+1]=0,c[a+1]=0;for(var h=r-o,f=h%2!=0,p=0,m=0,g=0,y=0,_=0;_<s;_++){for(var v=-_+p;v<=_-m;v+=2){for(var b=a+v,w=(x=v==-_||v!=_&&u[b-1]<u[b+1]?u[b+1]:u[b-1]+1)-v;x<r&&w<o&&t.charAt(x)==e.charAt(w);)x++,w++;if(u[b]=x,x>r)m+=2;else if(w>o)p+=2;else if(f&&(C=a+h-v)>=0&&C<l&&-1!=c[C]&&x>=(S=r-c[C]))return i(t,e,x,w)}for(var M=-_+g;M<=_-y;M+=2){for(var S,C=a+M,A=(S=M==-_||M!=_&&c[C-1]<c[C+1]?c[C+1]:c[C-1]+1)-M;S<r&&A<o&&t.charAt(r-S-1)==e.charAt(o-A-1);)S++,A++;if(c[C]=S,S>r)y+=2;else if(A>o)g+=2;else if(!f){var x;if((b=a+h-M)>=0&&b<l&&-1!=u[b])if(w=a+(x=u[b])-b,x>=(S=r-S))return i(t,e,x,w)}}}return[[n,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-c),e=e.substring(0,e.length-c));return d&&f.unshift([0,d]),h&&f.push([0,h]),a(f),null!=l&&(f=function(t,e){var r=function(t,e){if(0===e)return[0,t];for(var r=0,i=0;i<t.length;i++){var o=t[i];if(o[0]===n||0===o[0]){var s=r+o[1].length;if(e===s)return[i+1,t];if(e<s){t=t.slice();var a=e-r,l=[o[0],o[1].slice(0,a)],u=[o[0],o[1].slice(a)];return t.splice(i,1,l,u),[i+1,t]}r=s}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=r[1],o=r[0],s=i[o],a=i[o+1];if(null==s)return t;if(0!==s[0])return t;if(null!=a&&s[1]+a[1]===a[1]+s[1])return i.splice(o,2,a,s),u(i,o,2);if(null!=a&&0===a[1].indexOf(s[1])){i.splice(o,2,[a[0],s[1]],[0,s[1]]);var l=a[1].slice(s[1].length);return l.length>0&&i.splice(o+2,0,[a[0],l]),u(i,o,3)}return t}(f,l)),f=function(t){for(var e=!1,r=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},i=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},o=2;o<t.length;o+=1)0===t[o-2][0]&&i(t[o-2][1])&&t[o-1][0]===n&&r(t[o-1][1])&&1===t[o][0]&&r(t[o][1])&&(e=!0,t[o-1][1]=t[o-2][1].slice(-1)+t[o-1][1],t[o][1]=t[o-2][1].slice(-1)+t[o][1],t[o-2][1]=t[o-2][1].slice(0,-1));if(!e)return t;var s=[];for(o=0;o<t.length;o+=1)t[o][1].length>0&&s.push(t[o]);return s}(f)}function i(t,e,n,i){var o=t.substring(0,n),s=e.substring(0,i),a=t.substring(n),l=e.substring(i),u=r(o,s),c=r(a,l);return u.concat(c)}function o(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(t){t.push([0,""]);for(var e,r=0,i=0,l=0,u="",c="";r<t.length;)switch(t[r][0]){case 1:l++,c+=t[r][1],r++;break;case n:i++,u+=t[r][1],r++;break;case 0:i+l>1?(0!==i&&0!==l&&(0!==(e=o(c,u))&&(r-i-l>0&&0==t[r-i-l-1][0]?t[r-i-l-1][1]+=c.substring(0,e):(t.splice(0,0,[0,c.substring(0,e)]),r++),c=c.substring(e),u=u.substring(e)),0!==(e=s(c,u))&&(t[r][1]=c.substring(c.length-e)+t[r][1],c=c.substring(0,c.length-e),u=u.substring(0,u.length-e))),0===i?t.splice(r-l,i+l,[1,c]):0===l?t.splice(r-i,i+l,[n,u]):t.splice(r-i-l,i+l,[n,u],[1,c]),r=r-i-l+(i?1:0)+(l?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,l=0,i=0,u="",c=""}""===t[t.length-1][1]&&t.pop();var d=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),d=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),d=!0)),r++;d&&a(t)}var l=r;function u(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];
vendor: 4,289 bytes, line 2
2i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}l.INSERT=1,l.DELETE=n,l.EQUAL=0,t.exports=l},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),s.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,s=i.length,a=new Array(s);o<s;o++)a[o]=i[o].fn;return a},s.prototype.emit=function(t,e,n,i,o,s){var a=r?r+t:t;if(!this._events[a])return!1;var l,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(t,e,n){var i=new o(e,n||this),s=r?r+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},s.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),s=r?r+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},s.prototype.removeListener=function(t,e,n,o){var s=r?r+t:t;if(!this._events[s])return this;if(!e)return 0==--this._eventsCount?this._events=new i:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[s]);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==e||o&&!a[l].once||n&&a[l].context!==n)&&u.push(a[l]);u.length?this._events[s]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new i:delete this._events[s]}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=r,s.EventEmitter=s,void 0!==t&&(t.exports=s)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var 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},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);
vendor: 7,289 bytes, line 2
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=v(n(3)),a=v(n(2)),l=v(n(0)),u=v(n(5)),c=v(n(10)),d=v(n(9)),h=n(36),f=n(37),p=v(n(13)),m=n(26),g=n(38),y=n(39),_=n(40);function v(t){return t&&t.__esModule?t:{default:t}}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=(0,c.default)("quill:clipboard"),M="__ql-matcher",S=[[Node.TEXT_NODE,Y],[Node.TEXT_NODE,P],["br",function(t,e){return T(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===L(t).fontStyle&&(n.italic=!0),r.fontWeight&&(L(t).fontWeight.startsWith("bold")||parseInt(L(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=E(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new a.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=l.default.query(t);if(null==n||"list-item"!==n.blotName||!T(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new a.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",O.bind(O,"bold")],["i",O.bind(O,"italic")],["style",function(){return new a.default}]],C=[h.AlignAttribute,g.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),A=[h.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,y.FontStyle,_.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),x=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],S.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],s=e[1];(n.matchVisual||s!==R)&&r.addMatcher(o,s)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,b({},p.default.blotName,e[p.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),s=o[0],l=o[1],u=k(this.container,s,l);return T(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new a.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,u.default.sources.USER),e.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),s=o[0],a=o[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(s),(function(t){t[M]=t[M]||[],t[M].push(a)}))}})),[e,n]}}]),e}(d.default);function E(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return E(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,s.default)({},b({},e,n),r.attributes))}),new a.default)}function L(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function T(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function D(t){if(0===t.childNodes.length)return!1;var e=L(t);return["block","list-item"].indexOf(e.display)>-1}function k(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var o=k(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(i,t)}),o),o=(i[M]||[]).reduce((function(t,e){return e(i,t)}),o)),r.concat(o)}),new a.default):new a.default}function O(t,e,n){return E(n,t,!0)}function I(t,e){var n=l.default.Attributor.Attribute.keys(t),r=l.default.Attributor.Class.keys(t),i=l.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=l.default.query(e,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=C[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=A[e])||n.attrName!==e&&n.keyName!==e||(n=A[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=E(e,o)),e}function N(t,e){var n=l.default.query(t);if(null==n)return e;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new a.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=E(e,n.blotName,n.formats(t)));return e}function P(t,e){return T(e,"\n")||(D(t)||e.length()>0&&t.nextSibling&&D(t.nextSibling))&&e.insert("\n"),e}function R(t,e){if(D(t)&&null!=t.nextElementSibling&&!T(e,"\n\n")){var n=t.offsetHeight+parseFloat(L(t).marginTop)+parseFloat(L(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function Y(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!L(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u
vendor: 5,794 bytes, line 2
200a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&D(t.parentNode)||null!=t.previousSibling&&D(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&D(t.parentNode)||null!=t.nextSibling&&D(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}x.DEFAULTS={matchers:[],matchVisual:!0},e.default=x,e.matchAttributor=I,e.matchBlot=N,e.matchNewline=P,e.matchSpacing=R,e.matchText=Y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(6);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=s)&&r.__esModule?r:{default:r}).default);u.blotName="bold",u.tagName=["STRONG","B"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(2)),s=c(n(0)),a=c(n(5)),l=c(n(10)),u=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=(0,l.default)("quill:toolbar"),f=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,o=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var s=document.createElement("div");m(s,o.options.container),t.container.parentNode.insertBefore(s,t.container),o.container=s}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e){t===a.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=r(t,1)[0];o.update(e)})),o):(i=h.error("Container required for toolbar",o.options),d(o,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,t);if(null==s.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var l=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var u=t.options[t.selectedIndex];l=!u.hasAttribute("selected")&&(u.value||!1)}else l=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),d=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,l);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+n)))return;
vendor: 13,150 bytes, line 2
2e.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,l)),a.default.sources.USER)}else e.quill.format(n,l,a.default.sources.USER);e.update(d)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var i=r(n,2),o=i[0],s=i[1];if("SELECT"===s.tagName){var a=void 0;if(null==t)a=null;else if(null==e[o])a=s.querySelector("option[selected]");else if(!Array.isArray(e[o])){var l=e[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==t)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var u=e[o]===s.getAttribute("value")||null!=e[o]&&e[o].toString()===s.getAttribute("value")||null==e[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",u)}else s.classList.toggle("ql-active",null!=e[o])}))}}]),e}(u.default);function p(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function m(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)p(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):p(n,e,r)}})),t.appendChild(n)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=s.default.query(e,s.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,a.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",a.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",t,a.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,a.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,a.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",t,a.default.sources.USER)}}},e.default=f,e.addControls=m},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(((r=s)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=s)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var s=i.bottom-i.top,a=t.bottom-t.top+s;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=f(n(3)),a=f(n(8)),l=n(43),u=f(l),c=f(n(27)),d=n(15),h=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(t){function e(t,n){p(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return g(e,t),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default),this.tooltip=new v(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(u.default);_.DEFAULTS=(0,s.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var v=function(t){function e(t,n){p(this,e);var r=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return g(e,t),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,a.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(e,n,i){if(null!=e){if(0===e.length&&i===a.default.sources.USER){var o=t.quill.scroll.descendant(c.default,e.index),s=r(o,2),l=s[0],u=s[1];if(null!=l){t.linkRange=new d.Range(e.index-u,l.length());var h=c.default.formats(l.domNode);return t.preview.textContent=h,t.preview.setAttribute("href",h),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(l.BaseTooltip);v.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=_},function(t,e,n){"use strict";
vendor: 19,293 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r=P(n(29)),i=n(36),o=n(38),s=n(64),a=P(n(65)),l=P(n(66)),u=n(67),c=P(u),d=n(37),h=n(26),f=n(39),p=n(40),m=P(n(56)),g=P(n(68)),y=P(n(27)),_=P(n(69)),v=P(n(70)),b=P(n(71)),w=P(n(72)),M=P(n(73)),S=n(13),C=P(S),A=P(n(74)),x=P(n(75)),E=P(n(57)),L=P(n(41)),T=P(n(28)),D=P(n(59)),k=P(n(60)),O=P(n(61)),I=P(n(108)),N=P(n(62));function P(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":a.default,"formats/code-block":C.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":S.Code,"formats/italic":g.default,"formats/link":y.default,"formats/script":_.default,"formats/strike":v.default,"formats/underline":b.default,"formats/image":w.default,"formats/video":M.default,"formats/list/item":u.ListItem,"modules/formula":A.default,"modules/syntax":x.default,"modules/toolbar":E.default,"themes/bubble":I.default,"themes/snow":N.default,"ui/icons":L.default,"ui/picker":T.default,"ui/icon-picker":k.default,"ui/color-picker":D.default,"ui/tooltip":O.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),d=new c("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var a=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="blockquote",a.tagName="blockquote",e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){return s(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=l(n(0)),s=l(n(4)),a=l(n(25));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,[{key:"format",value:function(t,n){t!==f.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(s.default);h.blotName="list-item",h.tagName="LI";var f=function(t){function e(t){u(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return d(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof h)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(a.default);f.blotName="list",f.scope=o.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[h],e.ListItem=h,e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(56);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var a=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="italic",a.tagName=["EM","I"],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(6);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=s)&&r.__esModule?r:{default:r}).default);u.blotName="script",u.tagName=["SUB","SUP"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var a=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="strike",a.tagName="S",e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var a=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="underline",a.tagName="U",e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r},l=n(27);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=["alt","height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(4),a=n(27),l=(r=a)&&r.__esModule?r:{default:r};function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=["height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";
vendor: 9,319 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=l(n(35)),s=l(n(5)),a=l(n(9));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,null,[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(o.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var f=function(t){function e(){u(this,e);var t=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return d(e,t),r(e,null,[{key:"register",value:function(){s.default.register(h,!0)}}]),e}(a.default);e.FormulaBlot=h,e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=l(n(0)),s=l(n(5)),a=l(n(9));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(l(n(13)).default);h.className="ql-syntax";var f=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),p=function(t){function e(t,n){u(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return d(e,t),r(e,null,[{key:"register",value:function(){s.default.register(f,!0),s.default.register(h,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=e&&this.quill.setSelection(e,s.default.sources.SILENT)}}}]),e}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=h,e.CodeToken=f,e.default=p},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
2 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";
vendor: 4,232 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=d(n(3)),s=d(n(8)),a=n(43),l=d(a),u=n(15),c=d(n(41));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return p(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new y(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(l.default);g.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var y=function(t){function e(t,n){h(this,e);var r=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===s.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===s.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var a=o[o.length-1],l=r.quill.getIndex(a),c=Math.min(a.length()-1,e.index+e.length-l),d=r.quill.getBounds(new u.Range(l,c));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return p(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(a.BaseTooltip);y.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=y,e.default=g},function(t,e,n){t.exports=n(63)}]).default},t.exports=r()},4238:(t,e,n)=>{"use strict";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)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
2if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.Z=void 0;var l=function(){function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"defaultOptions",{sourceAttr:"href",overlay:!0,overlayOpacity:.7,spinner:!0,nav:!0,navText:["&lsaquo;","&rsaquo;"],captions:!0,captionDelay:0,captionSelector:"img",captionType:"attr",captionsData:"title",captionPosition:"bottom",captionClass:"",close:!0,closeText:"&times;",swipeClose:!0,showCounter:!0,fileExt:"png|jpg|jpeg|gif|webp",animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:"simple-lightbox",widthRatio:.8,heightRatio:.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!0,alertError:!0,alertErrorMessage:"Image not found, next image will be loaded",additionalHtml:!1,history:!0,throttleInterval:0,doubleTapZoom:2,maxZoom:10,htmlClass:"has-lightbox",rtl:!1,fixedClass:"sl-fixed",fadeSpeed:300,uniqueImages:!0,focus:!0,scrollZoom:!0,scrollZoomFactor:.5}),a(this,"transitionPrefix",void 0),a(this,"isPassiveEventsSupported",void 0),a(this,"transitionCapable",!1),a(this,"isTouchDevice","ontouchstart"in window),a(this,"isAppleDevice",/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),a(this,"initialLocationHash",void 0),a(this,"pushStateSupport","pushState"in history),a(this,"isOpen",!1),a(this,"isAnimating",!1),a(this,"isClosing",!1),a(this,"isFadeIn",!1),a(this,"urlChangedOnce",!1),a(this,"hashReseted",!1),a(this,"historyHasChanges",!1),a(this,"historyUpdateTimeout",null),a(this,"currentImage",void 0),a(this,"eventNamespace","simplelightbox"),a(this,"domNodes",{}),a(this,"loadedImages",[]),a(this,"initialImageIndex",0),a(this,"currentImageIndex",0),a(this,"initialSelector",null),a(this,"globalScrollbarWidth",0),a(this,"controlCoordinates",{swipeDiff:0,swipeYDiff:0,swipeStart:0,swipeEnd:0,swipeYStart:0,swipeYEnd:0,mousedown:!1,imageLeft:0,zoomed:!1,containerHeight:0,containerWidth:0,containerOffsetX:0,containerOffsetY:0,imgHeight:0,imgWidth:0,capture:!1,initialOffsetX:0,initialOffsetY:0,initialPointerOffsetX:0,initialPointerOffsetY:0,initialPointerOffsetX2:0,initialPointerOffsetY2:0,initialScale:1,initialPinchDistance:0,pointerOffsetX:0,pointerOffsetY:0,pointerOffsetX2:0,pointerOffsetY2:0,targetOffsetX:0,targetOffsetY:0,targetScale:0,pinchOffsetX:0,pinchOffsetY:0,limitOffsetX:0,limitOffsetY:0,scaleDifference:0,targetPinchDistance:0,touchCount:0,doubleTapped:!1,touchmoveCount:0}),this.options=Object.assign(this.defaultOptions,n),this.isPassiveEventsSupported=this.checkPassiveEventsSupport(),"string"==typeof e?(this.initialSelector=e,this.elements=Array.from(document.querySelectorAll(e))):this.elements=void 0!==e.length&&e.length>0?Array.from(e):[e],this.relatedElements=[],this.transitionPrefix=this.calculateTransitionPrefix(),this.transitionCapable=!1!==this.transitionPrefix,this.initialLocationHash=this.hash,this.options.rel&&(this.elements=this.getRelated(this.options.rel)),this.options.uniqueImages){var i=[];this.elements=Array.from(this.elements).filter((function(t){var e=t.getAttribute(r.options.sourceAttr);return-1===i.indexOf(e)&&(i.push(e),!0)}))}this.createDomNodes(),this.options.close&&this.domNodes.wrapper.appendChild(this.domNodes.closeButton),this.options.nav&&this.domNodes.wrapper.appendChild(this.domNodes.navigation),this.options.spinner&&this.domNodes.wrapper.appendChild(this.domNodes.spinner),this.addEventListener(this.elements,"click."+this.eventNamespace,(function(t){if(r.isValidLink(t.currentTarget)){if(t.preventDefault(),r.isAnimating)return!1;r.initialImageIndex=r.elements.indexOf(t.currentTarget),r.openImage(t.currentTarget)}})),this.options.docClose&&this.addEventListener(this.domNodes.wrapper,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],(function(t){r.isOpen&&t.target===t.currentTarget&&r.close()})),this.options.disableRightClick&&this.addEventListener(document.body,"contextmenu."+this.eventNamespace,(function(t){t.target.parentElement.classList.contains("sl-image")&&t.preventDefault()})),this.options.enableKeyboard&&this.addEventListener(document.body,"keyup."+this.eventNamespace,this.throttle((function(t){if(r.controlCo
2ordinates.swipeDiff=0,r.isAnimating&&"Escape"===t.key)return r.currentImage.setAttribute("src",""),r.isAnimating=!1,r.close();r.isOpen&&(t.preventDefault(),"Escape"===t.key&&r.close(),!r.isAnimating&&["ArrowLeft","ArrowRight"].indexOf(t.key)>-1&&r.loadImage("ArrowRight"===t.key?1:-1))}),this.options.throttleInterval)),this.addEvents()}var e,n,o;return e=t,n=[{key:"checkPassiveEventsSupport",value:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}return t}},{key:"createDomNodes",value:function(){this.domNodes.overlay=document.createElement("div"),this.domNodes.overlay.classList.add("sl-overlay"),this.domNodes.overlay.dataset.opacityTarget=this.options.overlayOpacity,this.domNodes.closeButton=document.createElement("button"),this.domNodes.closeButton.classList.add("sl-close"),this.domNodes.closeButton.innerHTML=this.options.closeText,this.domNodes.spinner=document.createElement("div"),this.domNodes.spinner.classList.add("sl-spinner"),this.domNodes.spinner.innerHTML="<div></div>",this.domNodes.navigation=document.createElement("div"),this.domNodes.navigation.classList.add("sl-navigation"),this.domNodes.navigation.innerHTML='<button class="sl-prev">'.concat(this.options.navText[0],'</button><button class="sl-next">').concat(this.options.navText[1],"</button>"),this.domNodes.counter=document.createElement("div"),this.domNodes.counter.classList.add("sl-counter"),this.domNodes.counter.innerHTML='<span class="sl-current"></span>/<span class="sl-total"></span>',this.domNodes.caption=document.createElement("div"),this.domNodes.caption.classList.add("sl-caption","pos-"+this.options.captionPosition),this.options.captionClass&&this.domNodes.caption.classList.add(this.options.captionClass),this.domNodes.image=document.createElement("div"),this.domNodes.image.classList.add("sl-image"),this.domNodes.wrapper=document.createElement("div"),this.domNodes.wrapper.classList.add("sl-wrapper"),this.domNodes.wrapper.setAttribute("tabindex",-1),this.domNodes.wrapper.setAttribute("role","dialog"),this.domNodes.wrapper.setAttribute("aria-hidden",!1),this.options.className&&this.domNodes.wrapper.classList.add(this.options.className),this.options.rtl&&this.domNodes.wrapper.classList.add("sl-dir-rtl")}},{key:"throttle",value:function(t,e){var n;return function(){n||(t.apply(this,arguments),n=!0,setTimeout((function(){return n=!1}),e))}}},{key:"isValidLink",value:function(t){return!this.options.fileExt||t.getAttribute(this.options.sourceAttr)&&new RegExp("("+this.options.fileExt+")$","i").test(t.getAttribute(this.options.sourceAttr))}},{key:"calculateTransitionPrefix",value:function(){var t=(document.body||document.documentElement).style;return"transition"in t?"":"WebkitTransition"in t?"-webkit-":"MozTransition"in t?"-moz-":"OTransition"in t&&"-o"}},{key:"toggleScrollbar",value:function(t){var e=0,n=[].slice.call(document.querySelectorAll("."+this.options.fixedClass));if("hide"===t){var r=window.innerWidth;if(!r){var i=document.documentElement.getBoundingClientRect();r=i.right-Math.abs(i.left)}if(document.body.clientWidth<r||this.isAppleDevice){var o=document.createElement("div"),s=parseInt(document.body.style.paddingRight||0,10);o.classList.add("sl-scrollbar-measure"),document.body.appendChild(o),e=o.offsetWidth-o.clientWidth,document.body.removeChild(o),document.body.dataset.originalPaddingRight=s,(e>0||0==e&&this.isAppleDevice)&&(document.body.classList.add("hidden-scroll"),document.body.style.paddingRight=s+e+"px",n.forEach((function(t){var n=t.style.paddingRight,r=window.getComputedStyle(t)["padding-right"];t.dataset.originalPaddingRight=n,t.style.paddingRight="".concat(parseFloat(r)+e,"px")})))}}else document.body.classList.remove("hidden-scroll"),document.body.style.paddingRight=document.body.dataset.originalPaddingRight,n.forEach((function(t){var e=t.dataset.originalPaddingRight;void 0!==e&&(t.style.paddingRight=e)}));return e}},{key:"close",value:function(){var t=this;if(!this.isOpen||this.isAnimating||this.isClosing)return!1;this.isClosing=!0;var e=this.relatedElements[this.currentImageIndex];for(var n in e.dispatchEvent(new Event("close.simplelightbox")),this.options.history&&(this.historyHasChanges=!1,this.hashReseted||this.resetHash()),this.removeEventListener(document,"focusin."+this.eventNamespace),this.fadeOut(this.domNodes.overlay,this.options.fadeSpeed),this.fadeOut(document.querySelectorAll(".sl-image img,  .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter"),this.options.fadeSpeed,(function(){t.options.disableScroll&&t.toggleScrollbar("show"),t.options.htmlClass&&""!==t.options.htmlClass&&document.querySelector("html").classList.remove(t.options.htmlClass),document.body.removeChild(t.domNodes.wrapper),document.body.removeChild(t.domNodes.overlay),t.domNodes.additionalHtml=null,e.dispatchEvent(new Event("closed.simplelightbox")),t.isClosing=!1})),this.currentImage=null,this.isOpen=!1,this.isAnimating=!1,this.controlCo
2ordinates)this.controlCoordinates[n]=0;this.controlCoordinates.mousedown=!1,this.controlCoordinates.zoomed=!1,this.controlCoordinates.capture=!1,this.controlCoordinates.initialScale=this.minMax(1,1,this.options.maxZoom),this.controlCoordinates.doubleTapped=!1}},{key:"hash",get:function(){return window.location.hash.substring(1)}},{key:"preload",value:function(){var t=this,e=this.currentImageIndex,n=this.relatedElements.length,r=e+1<0?n-1:e+1>=n-1?0:e+1,i=e-1<0?n-1:e-1>=n-1?0:e-1,o=new Image,s=new Image;o.addEventListener("load",(function(n){var r=n.target.getAttribute("src");-1===t.loadedImages.indexOf(r)&&t.loadedImages.push(r),t.relatedElements[e].dispatchEvent(new Event("nextImageLoaded."+t.eventNamespace))})),o.setAttribute("src",this.relatedElements[r].getAttribute(this.options.sourceAttr)),s.addEventListener("load",(function(n){var r=n.target.getAttribute("src");-1===t.loadedImages.indexOf(r)&&t.loadedImages.push(r),t.relatedElements[e].dispatchEvent(new Event("prevImageLoaded."+t.eventNamespace))})),s.setAttribute("src",this.relatedElements[i].getAttribute(this.options.sourceAttr))}},{key:"loadImage",value:function(t){var e=this,n=t;this.options.rtl&&(t=-t),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event("change."+this.eventNamespace)),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event((1===t?"next":"prev")+"."+this.eventNamespace));var r=this.currentImageIndex+t;if(this.isAnimating||(r<0||r>=this.relatedElements.length)&&!1===this.options.loop)return!1;this.currentImageIndex=r<0?this.relatedElements.length-1:r>this.relatedElements.length-1?0:r,this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.options.animationSlide&&this.slide(this.options.animationSpeed/1e3,-100*n-this.controlCoordinates.swipeDiff+"px"),this.fadeOut(this.domNodes.image,this.options.fadeSpeed,(function(){e.isAnimating=!0,e.isClosing?e.isAnimating=!1:setTimeout((function(){var t=e.relatedElements[e.currentImageIndex];e.currentImage.setAttribute("src",t.getAttribute(e.options.sourceAttr)),-1===e.loadedImages.indexOf(t.getAttribute(e.options.sourceAttr))&&e.show(e.domNodes.spinner),e.domNodes.image.contains(e.domNodes.caption)&&e.domNodes.image.removeChild(e.domNodes.caption),e.adjustImage(n),e.options.preloading&&e.preload()}),100)}))}},{key:"adjustImage",value:function(t){var e=this;if(!this.currentImage)return!1;var n=new Image,r=window.innerWidth*this.options.widthRatio,i=window.innerHeight*this.options.heightRatio;n.setAttribute("src",this.currentImage.getAttribute("src")),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.zoomPanElement(0,0,1),n.addEventListener("error",(function(n){e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("error."+e.eventNamespace)),e.isAnimating=!1,e.isOpen=!0,e.domNodes.spinner.style.display="none";var r=1===t||-1===t;if(e.initialImageIndex===e.currentImageIndex&&r)return e.close();e.options.alertError&&alert(e.options.alertErrorMessage),e.loadImage(r?t:1)})),n.addEventListener("load",(function(n){void 0!==t&&(e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("changed."+e.eventNamespace)),e.relatedElements[e.currentImageIndex].dispatchEvent(new Event((1===t?"nextDone":"prevDone")+"."+e.eventNamespace))),e.options.history&&e.updateURL(),-1===e.loadedImages.indexOf(e.currentImage.getAttribute("src"))&&e.loadedImages.push(e.currentImage.getAttribute("src"));var o,s,a=n.target.width,l=n.target.height;if(e.options.scaleImageToRatio||a>r||l>i){var u=a/l>r/i?a/r:l/i;a/=u,l/=u}e.domNodes.image.style.top=(window.innerHeight-l)/2+"px",e.domNodes.image.style.left=(window.innerWidth-a-e.globalScrollbarWidth)/2+"px",e.domNodes.image.style.width=a+"px",e.domNodes.image.style.height=l+"px",e.domNodes.spinner.style.display="none",e.options.focus&&e.forceFocus(),e.fadeIn(e.currentImage,e.options.fadeSpeed,(function(){e.options.focus&&e.domNodes.wrapper.focus()})),e.isOpen=!0,"string"==typeof e.options.captionSelector?o="self"===e.options.captionSelector?e.relatedElements[e.currentImageIndex]:e.relatedElements[e.currentImageIndex].querySelector(e.options.captionSelector):"function"==typeof e.o
2ptions.captionSelector&&(o=e.options.captionSelector(e.relatedElements[e.currentImageIndex])),e.options.captions&&o&&(s="data"===e.options.captionType?o.dataset[e.options.captionsData]:"text"===e.options.captionType?o.innerHTML:o.getAttribute(e.options.captionsData)),e.options.loop?1===e.relatedElements.length?e.hide(e.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):e.show(e.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):(0===e.currentImageIndex&&e.hide(e.domNodes.navigation.querySelector(".sl-prev")),e.currentImageIndex>=e.relatedElements.length-1&&e.hide(e.domNodes.navigation.querySelector(".sl-next")),e.currentImageIndex>0&&e.show(e.domNodes.navigation.querySelector(".sl-prev")),e.currentImageIndex<e.relatedElements.length-1&&e.show(e.domNodes.navigation.querySelector(".sl-next"))),1===t||-1===t?(e.options.animationSlide&&(e.slide(0,100*t+"px"),setTimeout((function(){e.slide(e.options.animationSpeed/1e3,"0px")}),50)),e.fadeIn(e.domNodes.image,e.options.fadeSpeed,(function(){e.isAnimating=!1,e.setCaption(s,a)}))):(e.isAnimating=!1,e.setCaption(s,a)),e.options.additionalHtml&&!e.domNodes.additionalHtml&&(e.domNodes.additionalHtml=document.createElement("div"),e.domNodes.additionalHtml.classList.add("sl-additional-html"),e.domNodes.additionalHtml.innerHTML=e.options.additionalHtml,e.domNodes.image.appendChild(e.domNodes.additionalHtml))}))}},{key:"zoomPanElement",value:function(t,e,n){this.currentImage.style[this.transitionPrefix+"transform"]="translate("+t+","+e+") scale("+n+")"}},{key:"minMax",value:function(t,e,n){return t<e?e:t>n?n:t}},{key:"setZoomData",value:function(t,e,n){this.currentImage.dataset.scale=t,this.currentImage.dataset.translateX=e,this.currentImage.dataset.translateY=n}},{key:"hashchangeHandler",value:function(){this.isOpen&&this.hash===this.initialLocationHash&&(this.hashReseted=!0,this.close())}},{key:"addEvents",value:function(){var t=this;if(this.addEventListener(window,"resize."+this.eventNamespace,(function(e){t.isOpen&&t.adjustImage()})),this.addEventListener(this.domNodes.closeButton,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],this.close.bind(this)),this.options.history&&setTimeout((function(){t.addEventListener(window,"hashchange."+t.eventNamespace,(function(e){t.isOpen&&t.hashchangeHandler()}))}),40),this.addEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace,(function(e){if(!e.currentTarget.tagName.match(/button/i))return!0;e.preventDefault(),t.controlCoordinates.swipeDiff=0,t.loadImage(e.currentTarget.classList.contains("sl-next")?1:-1)})),this.options.scrollZoom){var e=1;this.addEventListener(this.domNodes.image,["mousewheel","DOMMouseScroll"],(function(n){if(t.controlCoordinates.mousedown||t.isAnimating||t.isClosing||!t.isOpen)return!0;0==t.controlCoordinates.containerHeight&&(t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY)),n.preventDefault();var r=n.delta||n.wheelDelta;void 0===r&&(r=n.detail),r=Math.max(-1,Math.min(1,r)),e+=r*t.options.scrollZoomFactor*e,e=Math.max(1,Math.min(t.options.maxZoom,e)),t.controlCoordinates.targetScale=e;var i=document.documentElement.scrollTop||document.body.scrollTop;t.controlCoordinates.pinchOffsetX=n.pageX,t.controlCoordinates.pinchOffsetY=n.pageY-i||0,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCo
2ordinates.scaleDifference=t.controlCoordinates.targetScale-t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.initialOffsetX-(t.controlCoordinates.pinchOffsetX-t.controlCoordinates.containerOffsetX-t.controlCoordinates.containerWidth/2-t.controlCoordinates.initialOffsetX)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,-1*t.controlCoordinates.limitOffsetX,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.initialOffsetY-(t.controlCoordinates.pinchOffsetY-t.controlCoordinates.containerOffsetY-t.controlCoordinates.containerHeight/2-t.controlCoordinates.initialOffsetY)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,-1*t.controlCoordinates.limitOffsetY,t.controlCoordinates.limitOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale),t.controlCoordinates.targetScale>1?(t.controlCoordinates.zoomed=!0,(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&"none"!==t.domNodes.caption.style.display&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed)):(1===t.controlCoordinates.initialScale&&(t.controlCoordinates.zoomed=!1,"none"===t.domNodes.caption.style.display&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=null,t.controlCoordinates.capture=!1),t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance,t.controlCoordinates.initialScale=t.controlCoordinates.targetScale,t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.setZoomData(t.controlCoordinates.targetScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale)}))}this.addEventListener(this.domNodes.image,["touchstart."+this.eventNamespace,"mousedown."+this.eventNamespace],(function(e){if("A"===e.target.tagName&&"touchstart"===e.type)return!0;if("mousedown"===e.type)e.preventDefault(),t.controlCoordinates.initialPointerOffsetX=e.clientX,t.controlCoordinates.initialPointerOffsetY=e.clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY),t.controlCoordinates.capture=!0;else{if(t.controlCoordinates.touchCount=e.touches.length,t.controlCoordinates.initialPointerOffsetX=e.touches[0].clientX,t.controlCoordinates.initialPointerOffsetY=e.touches[0].clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,1===t.controlCoordinates.touchCount){if(t.controlCoordinates.doubleTapped)return t.currentImage.classList.add("sl-transition"),t.controlCoordinates.zoomed?(t.controlCoordinates.initialScale=1,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCo
2ordinates.initialScale),t.controlCoordinates.zoomed=!1):(t.controlCoordinates.initialScale=t.options.doubleTapZoom,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&"none"!==t.domNodes.caption.style.display&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed),t.controlCoordinates.zoomed=!0),setTimeout((function(){t.currentImage&&t.currentImage.classList.remove("sl-transition")}),200),!1;t.controlCoordinates.doubleTapped=!0,setTimeout((function(){t.controlCoordinates.doubleTapped=!1}),300),t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY)}else 2===t.controlCoordinates.touchCount&&(t.controlCoordinates.initialPointerOffsetX2=e.touches[1].clientX,t.controlCoordinates.initialPointerOffsetY2=e.touches[1].clientY,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY),t.controlCoordinates.pinchOffsetX=(t.controlCoordinates.initialPointerOffsetX+t.controlCoordinates.initialPointerOffsetX2)/2,t.controlCoordinates.pinchOffsetY=(t.controlCoordinates.initialPointerOffsetY+t.controlCoordinates.initialPointerOffsetY2)/2,t.controlCoordinates.initialPinchDistance=Math.sqrt((t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialPointerOffsetX2)*(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialPointerOffsetX2)+(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialPointerOffsetY2)*(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialPointerOffsetY2)));t.controlCoordinates.capture=!0}return!!t.controlCoordinates.mousedown||(t.transitionCapable&&(t.controlCoordinates.imageLeft=parseInt(t.domNodes.image.style.left,10)),t.controlCoordinates.mousedown=!0,t.controlCoordinates.swipeDiff=0,t.controlCoordinates.swipeYDiff=0,t.controlCoordinates.swipeStart=e.pageX||e.touches[0].pageX,t.controlCoordinates.swipeYStart=e.pageY||e.touches[0].pageY,!1)})),this.addEventListener(this.domNodes.image,["touchmove."+this.eventNamespace,"mousemove."+this.eventNamespace,"MSPointerMove"],(function(e){if(!t.controlCoordinates.mousedown)return!0;if("touchmove"===e.type){if(!1===t.controlCoordinates.capture)return!1;t.controlCoordinates.pointerOffsetX=e.touches[0].clientX,t.controlCoordinates.pointerOffsetY=e.touches[0].clientY,t.controlCoordinates.touchCount=e.touches.length,t.controlCoordinates.touchmoveCount++,t.controlCoordinates.touchCount>1?(t.controlCoordinates.pointerOffsetX2=e.touches[1].clientX,t.controlCoordinates.pointerOffsetY2=e.touches[1].clientY,t.controlCoordinates.targetPinchDistance=Math.sqrt((t.controlCoordinates.pointerOffsetX-t.controlCoordinates.pointerOffsetX2)*(t.controlCoordinates.pointerOffsetX-t.controlCoordinates.pointerOffsetX2)+(t.controlCoordinates.pointerOffsetY-t.controlCoordinates.pointerOffsetY2)*(t.controlCoordinates.pointerOffsetY-t.controlCoordinates.pointerOffsetY2)),null===t.controlCoordinates.initialPinchDistance&&(t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance),Math.abs(t.controlCoordinates.initialPinchDistance-t.controlCoordinates.targetPinchDistance)>=1&&(t.controlCoordinates.targetScale=t.minMax(t.controlCoordinates.targetPinchDistance/t.controlCoordinates.initialPinchDistance*t.controlCoordinates.initialScale,1,t.options.maxZoom),t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.scaleDifference=t.controlCoordinates.targetScale-t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCo
vendor: 4,109 bytes, line 2
2ordinates.initialOffsetX-(t.controlCoordinates.pinchOffsetX-t.controlCoordinates.containerOffsetX-t.controlCoordinates.containerWidth/2-t.controlCoordinates.initialOffsetX)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,-1*t.controlCoordinates.limitOffsetX,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.initialOffsetY-(t.controlCoordinates.pinchOffsetY-t.controlCoordinates.containerOffsetY-t.controlCoordinates.containerHeight/2-t.controlCoordinates.initialOffsetY)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,-1*t.controlCoordinates.limitOffsetY,t.controlCoordinates.limitOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale),t.controlCoordinates.targetScale>1&&(t.controlCoordinates.zoomed=!0,(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&"none"!==t.domNodes.caption.style.display&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance,t.controlCoordinates.initialScale=t.controlCoordinates.targetScale,t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY)):(t.controlCoordinates.targetScale=t.controlCoordinates.initialScale,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.pointerOffsetX-(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialOffsetX),-1*t.controlCoordinates.limitOffsetX,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.pointerOffsetY-(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialOffsetY),-1*t.controlCoordinates.limitOffsetY,t.controlCoordinates.limitOffsetY),Math.abs(t.controlCoordinates.targetOffsetX)===Math.abs(t.controlCoordinates.limitOffsetX)&&(t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialPointerOffsetX=t.controlCoordinates.pointerOffsetX),Math.abs(t.controlCoordinates.targetOffsetY)===Math.abs(t.controlCoordinates.limitOffsetY)&&(t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.controlCoordinates.initialPointerOffsetY=t.controlCoordinates.pointerOffsetY),t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale))}if("mousemove"===e.type&&t.controlCoordinates.mousedown){if("touchmove"==e.type)return!0;if(e.preventDefault(),!1===t.controlCoordinates.capture)return!1;t.controlCoordinates.pointerOffsetX=e.clientX,t.controlCoordinates.pointerOffsetY=e.clientY,t.controlCoordinates.targetScale=t.controlCoordinates.initialScale,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.pointerOffsetX-(t.controlCoordinates.initialPointerOffsetX-t.controlCo
2ordinates.initialOffsetX),-1*t.controlCoordinates.limitOffsetX,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.pointerOffsetY-(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialOffsetY),-1*t.controlCoordinates.limitOffsetY,t.controlCoordinates.limitOffsetY),Math.abs(t.controlCoordinates.targetOffsetX)===Math.abs(t.controlCoordinates.limitOffsetX)&&(t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialPointerOffsetX=t.controlCoordinates.pointerOffsetX),Math.abs(t.controlCoordinates.targetOffsetY)===Math.abs(t.controlCoordinates.limitOffsetY)&&(t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.controlCoordinates.initialPointerOffsetY=t.controlCoordinates.pointerOffsetY),t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale)}t.controlCoordinates.zoomed||(t.controlCoordinates.swipeEnd=e.pageX||e.touches[0].pageX,t.controlCoordinates.swipeYEnd=e.pageY||e.touches[0].pageY,t.controlCoordinates.swipeDiff=t.controlCoordinates.swipeStart-t.controlCoordinates.swipeEnd,t.controlCoordinates.swipeYDiff=t.controlCoordinates.swipeYStart-t.controlCoordinates.swipeYEnd,t.options.animationSlide&&t.slide(0,-t.controlCoordinates.swipeDiff+"px"))})),this.addEventListener(this.domNodes.image,["touchend."+this.eventNamespace,"mouseup."+this.eventNamespace,"touchcancel."+this.eventNamespace,"mouseleave."+this.eventNamespace,"pointerup","pointercancel","MSPointerUp","MSPointerCancel"],(function(e){if(t.isTouchDevice&&"touchend"===e.type&&(t.controlCoordinates.touchCount=e.touches.length,0===t.controlCoordinates.touchCount?(t.currentImage&&t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),1===t.controlCoordinates.initialScale&&(t.controlCoordinates.zoomed=!1,"none"===t.domNodes.caption.style.display&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=null,t.controlCoordinates.capture=!1):1===t.controlCoordinates.touchCount?(t.controlCoordinates.initialPointerOffsetX=e.touches[0].clientX,t.controlCoordinates.initialPointerOffsetY=e.touches[0].clientY):t.controlCoordinates.touchCount>1&&(t.controlCoordinates.initialPinchDistance=null)),t.controlCoordinates.mousedown){t.controlCoordinates.mousedown=!1;var n=!0;t.options.loop||(0===t.currentImageIndex&&t.controlCoordinates.swipeDiff<0&&(n=!1),t.currentImageIndex>=t.relatedElements.length-1&&t.controlCoordinates.swipeDiff>0&&(n=!1)),Math.abs(t.controlCoordinates.swipeDiff)>t.options.swipeTolerance&&n?t.loadImage(t.controlCoordinates.swipeDiff>0?1:-1):t.options.animationSlide&&t.slide(t.options.animationSpeed/1e3,"0px"),t.options.swipeClose&&Math.abs(t.controlCoordinates.swipeYDiff)>50&&Math.abs(t.controlCoordinates.swipeDiff)<t.options.swipeTolerance&&t.close()}})),this.addEventListener(this.domNodes.image,["dblclick"],(function(e){if(!t.isTouchDevice)return t.controlCoordinates.initialPointerOffsetX=e.clientX,t.controlCoordinates.initialPointerOffsetY=e.clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.currentImage.classList.add("sl-transition"),t.controlCoordinates.zoomed?(t.controlCoordinates.initialScale=1,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),t.controlCoordinates.zoomed=!1,"none"===t.domNodes.caption.style.display&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)):(t.controlCo
2ordinates.initialScale=t.options.doubleTapZoom,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&"none"!==t.domNodes.caption.style.display&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed),t.controlCoordinates.zoomed=!0),setTimeout((function(){t.currentImage&&(t.currentImage.classList.remove("sl-transition"),t.currentImage.style[t.transitionPrefix+"transform-origin"]=null)}),200),t.controlCoordinates.capture=!0,!1}))}},{key:"getDimensions",value:function(t){var e=window.getComputedStyle(t),n=t.offsetHeight,r=t.offsetWidth,i=parseFloat(e.borderTopWidth);return{height:n-parseFloat(e.borderBottomWidth)-i-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom),width:r-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)}}},{key:"updateHash",value:function(){var t="pid="+(this.currentImageIndex+1),e=window.location.href.split("#")[0]+"#"+t;this.hashReseted=!1,this.pushStateSupport?window.history[this.historyHasChanges?"replaceState":"pushState"]("",document.title,e):this.historyHasChanges?window.location.replace(e):window.location.hash=t,this.historyHasChanges||(this.urlChangedOnce=!0),this.historyHasChanges=!0}},{key:"resetHash",value:function(){this.hashReseted=!0,this.urlChangedOnce?history.back():this.pushStateSupport?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash="",clearTimeout(this.historyUpdateTimeout)}},{key:"updateURL",value:function(){clearTimeout(this.historyUpdateTimeout),this.historyHasChanges?this.historyUpdateTimeout=setTimeout(this.updateHash.bind(this),800):this.updateHash()}},{key:"setCaption",value:function(t,e){var n=this;this.options.captions&&t&&""!==t&&void 0!==t&&(this.hide(this.domNodes.caption),this.domNodes.caption.style.width=e+"px",this.domNodes.caption.innerHTML=t,this.domNodes.image.appendChild(this.domNodes.caption),setTimeout((function(){n.fadeIn(n.domNodes.caption,n.options.fadeSpeed)}),this.options.captionDelay))}},{key:"slide",value:function(t,e){if(!this.transitionCapable)return this.domNodes.image.style.left=e;this.domNodes.image.style[this.transitionPrefix+"transform"]="translateX("+e+")",this.domNodes.image.style[this.transitionPrefix+"transition"]=this.transitionPrefix+"transform "+t+"s linear"}},{key:"getRelated",value:function(t){return t&&!1!==t&&"nofollow"!==t?Array.from(this.elements).filter((function(e){return e.getAttribute("rel")===t})):this.elements}},{key:"openImage",value:function(t){var e=this;t.dispatchEvent(new Event("show."+this.eventNamespace)),this.options.disableScroll&&(this.globalScrollbarWidth=this.toggleScrollbar("hide")),this.options.htmlClass&&""!==this.options.htmlClass&&document.querySelector("html").classList.add(this.options.htmlClass),document.body.appendChild(this.domNodes.wrapper),this.domNodes.wrapper.appendChild(this.domNodes.image),this.options.overlay&&document.body.appendChild(this.domNodes.overlay),this.relatedElements=this.getRelated(t.rel),this.options.showCounter&&(1==this.relatedElements.length&&this.domNodes.wrapper.contains(this.domNodes.counter)?this.domNodes.wrapper.removeChild(this.domNodes.counter):this.relatedElements.length>1&&!this.domNodes.wrapper.contains(this.domNodes.counter)&&this.domNodes.wrapper.appendChild(this.domNodes.counter)),this.isAnimating=!0,this.currentImageIndex=this.relatedElements.indexOf(t);var n=t.getAttribute(this.options.sourceAttr);this.currentImage=document.createElement("img"),this.currentImage.style.display="none",this.currentImage.setAttribute("src",n),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,-1===this.loadedImages.indexOf(n)&&this.loadedImages.push(n),this.domNodes.image.innerHTML="",this.domNodes.image.setAttribute("style",""),this.domNodes.image.appendChild(this.currentImage),this.fadeIn(this.domNodes.overlay,this.options.fadeSpeed),this.fadeIn([this.domNodes.counter,this.domNodes.navigation,this.domNodes.closeButton],this.options.fadeSpeed),this.show(this.domNodes.spinner),this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.domNodes.counter.querySelector(".sl-total").innerHTML=this.relatedElements.length,this.adjustImage(),this.options.preloading&&this.preload(),setTimeout((function(){t.dispatchEvent(new Event("shown."+e.eventNamespace))}),this.options.animationSpeed)}},{key:"forceFocus",value:function(){var t=this;this.removeEventListener(document,"focusin."+this.eventNamespace),this.addEventListener(document,"focusin."+this.eventNamespace,(function(e){document===e.target||t.domNodes.wrapper===e.target||t.domNodes.wrapper.contains(e.target)||t.domNodes.wrapper.focu
2s()}))}},{key:"addEventListener",value:function(t,e,n,o){t=this.wrap(t),e=this.wrap(e);var s,a=i(t);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.namespaces||(l.namespaces={});var u,c=i(e);try{for(c.s();!(u=c.n()).done;){var d=u.value,h=o||!1;["touchstart","touchmove"].indexOf(d.split(".")[0])>=0&&this.isPassiveEventsSupported&&("object"===r(h)?h.passive=!0:h={passive:!0}),l.namespaces[d]=n,l.addEventListener(d.split(".")[0],n,h)}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}}},{key:"removeEventListener",value:function(t,e){t=this.wrap(t),e=this.wrap(e);var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o,s=n.value,a=i(e);try{for(a.s();!(o=a.n()).done;){var l=o.value;s.namespaces&&s.namespaces[l]&&(s.removeEventListener(l.split(".")[0],s.namespaces[l]),delete s.namespaces[l])}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}}},{key:"fadeOut",value:function(t,e,n){var r,o=this,s=i(t=this.wrap(t));try{for(s.s();!(r=s.n()).done;){var a=r.value;a.style.opacity=parseFloat(a)||window.getComputedStyle(a).getPropertyValue("opacity")}}catch(t){s.e(t)}finally{s.f()}this.isFadeIn=!1;var l=16.66666/(e||this.options.fadeSpeed);!function e(){var r=parseFloat(t[0].style.opacity);if((r-=l)<0){var s,a=i(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;u.style.display="none",u.style.opacity=1}}catch(t){a.e(t)}finally{a.f()}n&&n.call(o,t)}else{var c,d=i(t);try{for(d.s();!(c=d.n()).done;)c.value.style.opacity=r}catch(t){d.e(t)}finally{d.f()}requestAnimationFrame(e)}}()}},{key:"fadeIn",value:function(t,e,n,r){var o,s=this,a=i(t=this.wrap(t));try{for(a.s();!(o=a.n()).done;){var l=o.value;l.style.opacity=0,l.style.display=r||"block"}}catch(t){a.e(t)}finally{a.f()}this.isFadeIn=!0;var u=parseFloat(t[0].dataset.opacityTarget||1),c=16.66666*u/(e||this.options.fadeSpeed);!function e(){var r=parseFloat(t[0].style.opacity);if((r+=c)>u){var o,a=i(t);try{for(a.s();!(o=a.n()).done;)o.value.style.opacity=u}catch(t){a.e(t)}finally{a.f()}n&&n.call(s,t)}else{var l,d=i(t);try{for(d.s();!(l=d.n()).done;)l.value.style.opacity=r}catch(t){d.e(t)}finally{d.f()}if(!s.isFadeIn)return;requestAnimationFrame(e)}}()}},{key:"hide",value:function(t){var e,n=i(t=this.wrap(t));try{for(n.s();!(e=n.n()).done;){var r=e.value;"none"!=r.style.display&&(r.dataset.initialDisplay=r.style.display),r.style.display="none"}}catch(t){n.e(t)}finally{n.f()}}},{key:"show",value:function(t,e){var n,r=i(t=this.wrap(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;o.style.display=o.dataset.initialDisplay||e||"block"}}catch(t){r.e(t)}finally{r.f()}}},{key:"wrap",value:function(t){return"function"==typeof t[Symbol.iterator]&&"string"!=typeof t?t:[t]}},{key:"on",value:function(t,e){t=this.wrap(t);var n,r=i(this.elements);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.fullyNamespacedEvents||(o.fullyNamespacedEvents={});var s,a=i(t);try{for(a.s();!(s=a.n()).done;){var l=s.value;o.fullyNamespacedEvents[l]=e,o.addEventListener(l,e)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"off",value:function(t){t=this.wrap(t);var e,n=i(this.elements);try{for(n.s();!(e=n.n()).done;){var r,o=e.value,s=i(t);try{for(s.s();!(r=s.n()).done;){var a=r.value;void 0!==o.fullyNamespacedEvents&&a in o.fullyNamespacedEvents&&o.removeEventListener(a,o.fullyNamespacedEvents[a])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){n.e(t)}finally{n.f()}return this}},{key:"open",value:function(t){t=t||this.elements[0],"undefined"!=typeof jQuery&&t instanceof jQuery&&(t=t.get(0)),this.initialImageIndex=this.elements.indexOf(t),this.initialImageIndex>-1&&this.openImage(t)}},{key:"next",value:function(){this.loadImage(1)}},{key:"prev",value:function(){this.loadImage(-1)}},{key:"getLighboxData",value:function(){return{currentImageIndex:this.currentImageIndex,currentImage:this.currentImage,globalScrollbarWidth:this.globalScrollbarWidth}}},{key:"destroy",value:function(){this.off(["close."+this.eventNamespace,"closed."+this.eventNamespace,"nextImageLoaded."+this.eventNamespace,"prevImageLoaded."+this.eventNamespace,"change."+this.eventNamespace,"nextDone."+this.eventNamespace,"prevDone."+this.eventNamespace,"error."+this.eventNamespace,"changed."+this.eventNamespace,"next."+this.eventNamespace,"prev."+this.eventNamespace,"show."+this.eventNamespace,"shown."+this.eventNamespace]),this.removeEventListener(this.elements,"click."+this.eventNamespace),this.removeEventListener(document,"focusin."+this.eventNamespace),this.removeEventListener(document.body,"contextmenu."+this.eventNamespace),this.removeEventListener(document.body,"keyup."+this.eventNamespace),this.removeEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace),this.removeEventListener(this.domNodes.closeButton,"click."+this.eventNamespace),this.removeEventListener(window,"resize."+this.eventNamespace),this.removeEventListener(window,"hashchange."+this.eventNamespace),this.close(),this.isOpen&&(document.body.removeChild(this.domNodes.wrapper),document.body.removeChild(this.domNodes.overlay)),this.elements=null}},{key:"refresh",value:function(){if(!this.initialSelector)throw"refreshing only works when you initialize using a selector!";var t=this.options,e=this.initialSelector;return this.destroy(),this.constructor(e,t),this}}],n&&s(e.prototype,n),o&&s(e,o),t}(),u=l;e.Z=u,n.g.SimpleLightbox=l},3379:(t,e,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);
2if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],l=e.base?o[0]+e.base:o[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=a(c),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:c,updater:g(h,e),references:1}),r.push(c)}return r}function u(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var c,d=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function h(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function f(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,m=0;function g(t,e){var n,r,i;if(e.singleton){var o=m++;n=p||(p=u(e)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=u(e),r=f.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=l(t,e),u=0;u<n.length;u++){var c=a(n[u]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}n=o}}}},6250:function(t,e,n){var r,i;(function(){}).call(this),function(){null==window.Set&&(window.Set=function(){function t(){this.clear()}return t.prototype.clear=function(){return this.values=[]},t.prototype.has=function(t){return-1!==this.values.indexOf(t)},t.prototype.add=function(t){return this.has(t)||this.values.push(t),this},t.prototype.delete=function(t){var e;return-1!==(e=this.values.indexOf(t))&&(this.values.splice(e,1),!0)},t.prototype.forEach=function(){var t;return(t=this.values).forEach.apply(t,arguments)},t}())}.call(this),function(e){function n(){}function r(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(t,this)}function i(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void d((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}o(e.promise,r)}else(1===t._state?o:s)(e.promise,t._value)})))}function o(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof r)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void u(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t._state=1,t._value=e,a(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,a(t)}function a(t){2===t._state&&0===t._deferreds.length&&setTimeout((function(){t._handled||h(t._value)}),1);for(var e=0,n=t._deferreds.length;n>e;e++)i(t,t._deferreds[e]);t._deferreds=null}function l(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function u(t,e){var n=!1;try{t((function(t){n||(n=!0,o(e,t))}),(function(t){n||(n=!0,s(e,t))}))}catch(t){if(n)return;n=!0,s(e,t)}}var c=setTimeout,d="function"==typeof setImmediate&&setImmediate||function(t){c(t,1)},h=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};r.prototype.catch=function(t){return this.then(null,t)},r.prototype.then=function(t,e){var o=new r(n);return i(this,new l(t,e,o)),o},r.all=function(t){var e=Array.prototype.slice.call(t);return new r((function(t,n){function r(o,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(t){r(o,t)}),n)}e[o]=s,0==--i&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)r(o,e[o])}))},r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r((function(e){e(t)}))}
2,r.reject=function(t){return new r((function(e,n){n(t)}))},r.race=function(t){return new r((function(e,n){for(var r=0,i=t.length;i>r;r++)t[r].then(e,n)}))},r._setImmediateFn=function(t){d=t},r._setUnhandledRejectionFn=function(t){h=t},t.exports?t.exports=r:e.Promise||(e.Promise=r)}(this),function(){var t="object"==typeof window.customElements,e="function"==typeof document.registerElement;t||e||("undefined"==typeof WeakMap&&function(){var t=Object.defineProperty,e=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+e+++"__"};n.prototype={set:function(e,n){var r=e[this.name];return r&&r[0]===e?r[1]=n:t(e,this.name,{value:[e,n],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];return!(!e||e[0]!==t)&&(e[0]=e[1]=void 0,!0)},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},window.WeakMap=n}(),function(t){function e(t){y.push(t),g||(g=!0,c(n))}function n(){g=!1;var t=y;y=[],t.sort((function(t,e){return t.uid_-e.uid_}));var e=!1;t.forEach((function(t){var n=t.takeRecords();(function(t){t.nodes_.forEach((function(e){var n=d.get(e);n&&n.forEach((function(e){e.observer===t&&e.removeTransientObservers()}))}))})(t),n.length&&(t.callback_(n,t),e=!0)})),e&&n()}function r(t,e){for(var n=t;n;n=n.parentNode){var r=d.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i],s=o.options;if(n===t||s.subtree){var a=e(s);a&&o.enqueue(a)}}}}function i(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++_}function o(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function s(t,e){return p=new o(t,e)}function a(t){return m||(m=function(t){var e=new o(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}(p),m.oldValue=t,m)}function l(t,e){return t===e?t:m&&function(t){return t===m||t===p}(t)?m:null}function u(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}if(!t.JsMutationObserver){var c,d=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))c=setTimeout;else if(window.setImmediate)c=window.setImmediate;else{var h=[],f=String(Math.random());window.addEventListener("message",(function(t){if(t.data===f){var e=h;h=[],e.forEach((function(t){t()}))}})),c=function(t){h.push(t),window.postMessage(f,"*")}}var p,m,g=!1,y=[],_=0;i.prototype={observe:function(t,e){if(t=function(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n=d.get(t);n||d.set(t,n=[]);for(var r,i=0;i<n.length;i++)if(n[i].observer===this){(r=n[i]).removeListeners(),r.options=e;break}r||(r=new u(this,t,e),n.push(r),this.nodes_.push(t)),r.addListeners()},disconnect:function(){this.nodes_.forEach((function(t){for(var e=d.get(t),n=0;n<e.length;n++){var r=e[n];if(r.observer===this){r.removeListeners(),e.splice(n,1);break}}}),this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},u.prototype={enqueue:function(t){var n=this.observer.records_,r=n.length;if(n.length>0){var i=l(n[r-1],t);if(i)return void(n[r-1]=i)}else e(this.observer);n[r]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;
2e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=d.get(t);e||d.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach((function(t){this.removeListeners_(t);for(var e=d.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}}),this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,i=t.target;(l=new s("attributes",i)).attributeName=e,l.attributeNamespace=n;var o=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;r(i,(function(t){return!t.attributes||t.attributeFilter&&t.attributeFilter.length&&-1===t.attributeFilter.indexOf(e)&&-1===t.attributeFilter.indexOf(n)?void 0:t.attributeOldValue?a(o):l}));break;case"DOMCharacterDataModified":var l=s("characterData",i=t.target);o=t.prevValue;r(i,(function(t){return t.characterData?t.characterDataOldValue?a(o):l:void 0}));break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var u,c,d=t.target;"DOMNodeInserted"===t.type?(u=[d],c=[]):(u=[],c=[d]);var h=d.previousSibling,f=d.nextSibling;(l=s("childList",t.target.parentNode)).addedNodes=u,l.removedNodes=c,l.previousSibling=h,l.nextSibling=f,r(t.relatedNode,(function(t){return t.childList?l:void 0}))}p=m=void 0}},t.JsMutationObserver=i,t.MutationObserver||(t.MutationObserver=i,i._isPolyfilled=!0)}}(self),function(){"use strict";if(!window.performance||!window.performance.now){var t=Date.now();window.performance={now:function(){return Date.now()-t}}}window.requestAnimationFrame||(window.requestAnimationFrame=function(){var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?function(e){return t((function(){e(performance.now())}))}:function(t){return window.setTimeout(t,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)});var e=function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}();if(!e){var n=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(n.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var r=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||r&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,Boolean(e.bubbles),Boolean(e.cancelable),e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||r&&"function"!=typeof window.Event){var i=window.Event;window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,Boolean(e.bubbles),Boolean(e.cancelable)),n},window.Event.prototype=i.prototype}}(window.WebComponents),window.CustomElements=window.CustomElements||{flags:{}},function(t){var e=t.flags,n=[];t.addModule=function(t){n.push(t)},t.initializeModules=function(){n.forEach((function(e){e(t)}))},t.hasNative=Boolean(document.registerElement),t.isIE=/Trident/.test(navigator.userAgent),t.useNative=!e.register&&t.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.CustomElements.addModule((function(t){function e(t,e){n(t,(function(t){return!!e(t)||void r(t,e)})),r(t,e)}function n(t,e,r){var i=t.firstElementChild;if(!i)for(i=t.firstChild;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.nextSibling;for(;i;)!0!==e(i,r)&&n(i,e,r),i=i.nextElementSibling;return null}function r(t,n){for(var r=t.shadowRoot;r;)e(r,n),r=r.olderShadowRoot}function i(t,e,n){if(t=window.wrap(t),!(n.indexOf(t)>=0)){n.push(t);for(var r,s=t.querySelectorAll("link[rel="+o+"]"),a=0,l=s.length;l>a&&(r=s[a]);a++)r.import&&i(r.import,e,n);e(t)}}var o=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";t.forDocumentTree=function(t,e){i(t,e,[])},t.forSubtree=e})),window.CustomElements.addModule((function(t){function e(t,e){return n(t,e)||r(t,e)}function n(e,n){return!!t.upgrade(e,n)||void(n&&s(e))}function r(t,e){p(t,(function(t){return!!n(t,e)||void 0}))}function i(t){_.push(t),y||(y=!0,setTimeout(o))}function o(){y=!1;for(var t,e=_,n=0,r=e.length;r>n&&(t=e[n]);n++)t();_=[]}function s(t){g?i((function(){a(t)})):a(t)}function a(t){t.__upgraded__&&!t.__attached&&(t.__attached=!0,t.attachedCallback&&t.attachedCallback())}function l(t){g?i((function(){u(t)})):u(t)}function u(t){t.__upgraded__&&t.__attached&&(t.__attached=!1,t.detachedCallback&&t.detachedCallback())}function c(t,n){if(f.dom){var r=n[0];if(r&&"childList"===r.type&&r.addedNodes&&r.addedNodes){for(var i=r.addedNodes[0];i&&i!==document&&!i.host;)i=i.parentNode;var o=i&&(i.URL||i._URL||i.host&&i.host.localName)||"";o=o.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",n.length,o||"")}var s=function(t){for(var e=t,n=window.wrap(document);e;){if(e==n)return!0;e=e.parentNode||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host}}(t);
2n.forEach((function(t){"childList"===t.type&&(v(t.addedNodes,(function(t){t.localName&&e(t,s)})),v(t.removedNodes,(function(t){t.localName&&function(t){l(t),p(t,(function(t){l(t)}))}(t)})))})),f.dom&&console.groupEnd()}function d(t){if(!t.__observer){var e=new MutationObserver(c.bind(this,t));e.observe(t,{childList:!0,subtree:!0}),t.__observer=e}}function h(t){t=window.wrap(t),f.dom&&console.group("upgradeDocument: ",t.baseURI.split("/").pop()),e(t,t===window.wrap(document)),d(t),f.dom&&console.groupEnd()}var f=t.flags,p=t.forSubtree,m=t.forDocumentTree,g=window.MutationObserver._isPolyfilled&&f["throttle-attached"];t.hasPolyfillMutations=g,t.hasThrottledAttached=g;var y=!1,_=[],v=Array.prototype.forEach.call.bind(Array.prototype.forEach),b=Element.prototype.createShadowRoot;b&&(Element.prototype.createShadowRoot=function(){var t=b.call(this);return window.CustomElements.watchShadow(this),t}),t.watchShadow=function(t){if(t.shadowRoot&&!t.shadowRoot.__watched){f.dom&&console.log("watching shadow-root for: ",t.localName);for(var e=t.shadowRoot;e;)d(e),e=e.olderShadowRoot}},t.upgradeDocumentTree=function(t){m(t,h)},t.upgradeDocument=h,t.upgradeSubtree=r,t.upgradeAll=e,t.attached=s,t.takeRecords=function(t){for((t=window.wrap(t))||(t=window.wrap(document));t.parentNode;)t=t.parentNode;var e=t.__observer;e&&(c(t,e.takeRecords()),o())}})),window.CustomElements.addModule((function(t){function e(e,i,o){return r.upgrade&&console.group("upgrade:",e.localName),i.is&&e.setAttribute("is",i.is),n(e,i),e.__upgraded__=!0,function(t){t.createdCallback&&t.createdCallback()}(e),o&&t.attached(e),t.upgradeSubtree(e,o),r.upgrade&&console.groupEnd(),e}function n(t,e){Object.__proto__||function(t,e,n){for(var r={},i=e;i!==n&&i!==HTMLElement.prototype;){for(var o,s=Object.getOwnPropertyNames(i),a=0;o=s[a];a++)r[o]||(Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o)),r[o]=1);i=Object.getPrototypeOf(i)}}(t,e.prototype,e.native),t.__proto__=e.prototype}var r=t.flags;t.upgrade=function(n,r){if("template"===n.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(n),!n.__upgraded__&&n.nodeType===Node.ELEMENT_NODE){var i=n.getAttribute("is"),o=t.getRegisteredDefinition(n.localName)||t.getRegisteredDefinition(i);if(o&&(i&&o.tag==n.localName||!i&&!o.extends))return e(n,o,r)}},t.upgradeWithDefinition=e,t.implementPrototype=n})),window.CustomElements.addModule((function(t){function e(t){if(!t.setAttribute._polyfilled){var e=t.setAttribute;t.setAttribute=function(t,r){n.call(this,t,r,e)};var r=t.removeAttribute;t.removeAttribute=function(t){n.call(this,t,null,r)},t.setAttribute._polyfilled=!0}}function n(t,e,n){t=t.toLowerCase();var r=this.getAttribute(t);n.apply(this,arguments);var i=this.getAttribute(t);this.attributeChangedCallback&&i!==r&&this.attributeChangedCallback(t,r,i)}function r(t){var e=i(t);return e?r(e.extends).concat([e]):[]}function i(t){return t?m[t.toLowerCase()]:void 0}function o(t){return function(){return function(t){return d(y(t.tag),t)}(t)}}function s(t,e){t&&(t=t.toLowerCase()),e&&(e=e.toLowerCase());var n,r=i(e||t);if(r){if(t==r.tag&&e==r.is)return new r.ctor;if(!e&&!r.is)return new r.ctor}return e?((n=s(t)).setAttribute("is",e),n):(n=y(t),t.indexOf("-")>=0&&h(n,HTMLElement),n)}function a(t,e){var n=t[e];t[e]=function(){var t=n.apply(this,arguments);return c(t),t}}var l,u=(t.isIE,t.upgradeDocumentTree),c=t.upgradeAll,d=t.upgradeWithDefinition,h=t.implementPrototype,f=t.useNative,p=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],m={},g="http://www.w3.org/1999/xhtml",y=document.createElement.bind(document),_=document.createElementNS.bind(document);l=Object.__proto__||f?function(t,e){return t instanceof e}:function(t,e){if(t instanceof e)return!0;for(var n=t;n;){if(n===e.prototype)return!0;n=n.__proto__}return!1},a(Node.prototype,"cloneNode"),a(document,"importNode"),document.registerElement=function(n,s){var a=s||{};if(!n)throw new Error("document.registerElement: first argument `name` must not be empty");if(n.indexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(n)+"'.");if(function(t){for(var e=0;e<p.length;e++)if(t===p[e])return!0}(n))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(n)+"'. The type name is invali
2d.");if(i(n))throw new Error("DuplicateDefinitionError: a type with name '"+String(n)+"' is already registered");return a.prototype||(a.prototype=Object.create(HTMLElement.prototype)),a.__name=n.toLowerCase(),a.extends&&(a.extends=a.extends.toLowerCase()),a.lifecycle=a.lifecycle||{},a.ancestry=r(a.extends),function(t){for(var e,n=t.extends,r=0;e=t.ancestry[r];r++)n=e.is&&e.tag;t.tag=n||t.__name,n&&(t.is=t.__name)}(a),function(t){if(!Object.__proto__){var e=HTMLElement.prototype;if(t.is){var n=document.createElement(t.tag);e=Object.getPrototypeOf(n)}for(var r,i=t.prototype,o=!1;i;)i==e&&(o=!0),(r=Object.getPrototypeOf(i))&&(i.__proto__=r),i=r;o||console.warn(t.tag+" prototype not found in prototype chain for "+t.is),t.native=e}}(a),e(a.prototype),function(t,e){m[t]=e}(a.__name,a),a.ctor=o(a),a.ctor.prototype=a.prototype,a.prototype.constructor=a.ctor,t.ready&&u(document),a.ctor},document.createElement=s,document.createElementNS=function(t,e,n){return t===g?s(e,n):_(t,e)},t.registry=m,t.instanceof=l,t.reservedTagList=p,t.getRegisteredDefinition=i,document.register=document.registerElement})),function(t){function e(){o(window.wrap(document)),window.CustomElements.ready=!0,(window.requestAnimationFrame||function(t){setTimeout(t,16)})((function(){setTimeout((function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}))}))}var n=t.useNative,r=t.initializeModules;if(t.isIE,n){var i=function(){};t.watchShadow=i,t.upgrade=i,t.upgradeAll=i,t.upgradeDocumentTree=i,t.upgradeSubtree=i,t.takeRecords=i,t.instanceof=function(t,e){return t instanceof e}}else r();var o=t.upgradeDocumentTree,s=t.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(t){return t}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(t){t.import&&s(wrap(t.import))}),"complete"===document.readyState||t.flags.eager)e();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var a=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(a,e)}else e()}(window.CustomElements))}.call(this),function(){}.call(this),function(){(function(){(function(){this.Trix={VERSION:"1.2.3",ZERO_WIDTH_SPACE:"\ufeff",NON_BREAKING_SPACE:" ",OBJECT_REPLACEMENT_CHARACTER:"",browser:{composesExistingText:/Android.*Chrome/.test(navigator.userAgent),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:function(){var t,e,n;if("undefined"==typeof InputEvent)return!1;for(t=0,e=(n=["data","getTargetRanges","inputType"]).length;e>t;t++)if(!(n[t]in InputEvent.prototype))return!1;return!0}()},config:{}}}).call(this)}).call(this);var o=this.Trix;(function(){(function(){o.BasicObject=function(){function t(){}var e,n,r;return t.proxyMethod=function(t){var r,i,o,s,a;return o=n(t),r=o.name,s=o.toMethod,a=o.toProperty,i=o.optional,this.prototype[r]=function(){var t,n;return t=null!=s?i?"function"==typeof this[s]?this[s]():void 0:this[s]():null!=a?this[a]:void 0,i?null!=(n=null!=t?t[r]:void 0)?e.call(n,t,arguments):void 0:(n=t[r],e.call(n,t,arguments))}},n=function(t){var e,n;if(!(n=t.match(r)))throw new Error("can't parse @proxyMethod expression: "+t);return e={name:n[4]},null!=n[2]?e.toMethod=n[1]:e.toProperty=n[1],null!=n[3]&&(e.optional=!0),e},e=Function.prototype.apply,r=/^(.+?)(\(\))?(\?)?\.(.+?)$/,t}()}).call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.Object=function(e){function n(){this.id=++r}var r;return t(n,e),r=0,n.fromJSONString=function(t){return this.fromJSON(JSON.parse(t))},n.prototype.hasSameConstructorAs=function(t){return this.constructor===(null!=t?t.constructor:void 0)},n.prototype.isEqualTo=function(t){return this===t},n.prototype.inspect=function(){var t,e,n;return t=function(){var t,r,i;for(e in i=[],r=null!=(t=this.contentsForInspection())?t:{})n=r[e],i.push(e+"="+n);return i}.call(this),"#<"+this.constructor.name+":"+this.id+(t.length?" "+t.join(", "):"")+">"},n.prototype.contentsForInspection=function(){},n.prototype.toJSONString=function(){return JSON.stringify(this)},n.prototype.toUTF16String=function(){return o.UTF16String.box(this)},n.prototype.getCacheKey=function(){return this.id.toString()},n}(o.BasicObject)}.call(this),function(){o.extend=function(t){var e,n;for(e in t)n=t[e],this[e]=n;return this}}.call(this),function(){o.extend({defer:function(t){return setTimeout(t,1)}})}.call(this),function(){var t,e;o.extend({normalizeSpaces:function(t){return t.replace(RegExp(""+o.ZERO_WIDTH_SPACE,"g"),"").replace(RegExp(""+o.NON_BREAKING_SPACE,"g")," ")},normalizeNewlines:function(t){return t.replace(/\r\n/g,"\n")},breakableWhitespacePattern:RegExp("[^\\S"+o.NON_BREAKING_SPACE+"]"),squishBreakableWhitespace:function(t){return t.replace(RegExp(""+o.breakableWhitespacePattern.source,"g")," ").replace(/\ {2,}/g," ")},escapeHTML:function(t){var e;return(e=document.createElement("div")).textContent=t,e.innerHTML},summarizeStringChange:function(t,n){var r,i,s,a;return t=o.UTF16String.box(t),(n=o.UTF16String.box(n)).length<t.length?(a=(i=e(t,n))[0],r=i[1]):(r=(s=e(n,t))[0],a=s[1]),{added:r,removed:a}}}),e=function(e,n){var r,i,s,a,l;return e.isEqualTo(n)?["",""]:(s=(a=(i=t(e,n)).utf16String.length)?(l=i.offset,r=e.codepoints.slice(0,l).concat(e.codepoints.slice(l+a)),t(n,o.UTF16String.fromCodepoints(r))):t(n,e),[i.utf16String.toString(),s.utf16String.toString()])},t=function(t,e){var n,r,i;for(n=0,r=t.length,i=e.length;r>n&&t.charAt(n).isEqualTo(e.charAt(n));)n++;for(;r>n+1&&t.charAt(r-1).isEqualTo(e.charAt(i-1));)r--,i--;return{utf16String:t.slice(n,r),offset:n}}}.call(this),function(){o.extend({copyObject:function(t){var e,n,r;for(e in null==t&&(t={}),n={},t)r=t[e],n[e]=r;return n},objectsAreEqual:function(t,e){var n;if(null==t&&(t={}),null==e&&(e={}),Object.keys(t).length!==Object.keys(e).length)return!1;for(n in t)if(t[n]!==e[n])return!1;return!0}})}.call(this),function(){var t=[].slice;o.extend({arraysAreEqual:function(t,e){var n,r,i;if(null==t&&(t=[]),null==e&&(e=[]),t.length!==e.length)return!1;for(r=n=0,i=t.length;i>n;r=++n)if(t[r]!==e[r])return!1;return!0},arrayStartsWith:function(t,e){return null==t&&(t=[]),null==e&&(e=[]),o.arraysAreEqual(t.slice(0,e.length),e)},spliceArray:function(){var e,n,r;
2return n=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],(r=n.slice(0)).splice.apply(r,e),r},summarizeArrayChange:function(t,e){var n,r,i,o,s,a,l,u,c,d,h;for(null==t&&(t=[]),null==e&&(e=[]),n=[],d=[],i=new Set,o=0,l=t.length;l>o;o++)h=t[o],i.add(h);for(r=new Set,s=0,u=e.length;u>s;s++)h=e[s],r.add(h),i.has(h)||n.push(h);for(a=0,c=t.length;c>a;a++)h=t[a],r.has(h)||d.push(h);return{added:n,removed:d}}})}.call(this),function(){var t,e,n,r;t=null,e=null,r=null,n=null,o.extend({getAllAttributeNames:function(){return null!=t?t:t=o.getTextAttributeNames().concat(o.getBlockAttributeNames())},getBlockConfig:function(t){return o.config.blockAttributes[t]},getBlockAttributeNames:function(){return null!=e?e:e=Object.keys(o.config.blockAttributes)},getTextConfig:function(t){return o.config.textAttributes[t]},getTextAttributeNames:function(){return null!=r?r:r=Object.keys(o.config.textAttributes)},getListAttributeNames:function(){var t,e;return null!=n?n:n=function(){var n,r;for(t in r=[],n=o.config.blockAttributes)null!=(e=n[t].listAttribute)&&r.push(e);return r}()}})}.call(this),function(){var t,e,n,r,i,s=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=document.documentElement,e=null!=(n=null!=(r=null!=(i=t.matchesSelector)?i:t.webkitMatchesSelector)?r:t.msMatchesSelector)?n:t.mozMatchesSelector,o.extend({handleEvent:function(e,n){var r,i,s,a,l,u,c,d,h,f,p;return l=(c=null!=n?n:{}).onElement,a=c.matchingSelector,p=c.withCallback,s=c.inPhase,u=c.preventDefault,h=c.times,r=null!=l?l:t,d=a,p,f="capturing"===s,i=function(t){var e;return null!=h&&0==--h&&i.destroy(),null!=(e=o.findClosestElementFromNode(t.target,{matchingSelector:d}))&&(null!=p&&p.call(e,t,e),u)?t.preventDefault():void 0},i.destroy=function(){return r.removeEventListener(e,i,f)},r.addEventListener(e,i,f),i},handleEventOnce:function(t,e){return null==e&&(e={}),e.times=1,o.handleEvent(t,e)},triggerEvent:function(e,n){var r,i,s,a,l,u,c;return u=(c=null!=n?n:{}).onElement,i=c.bubbles,s=c.cancelable,r=c.attributes,a=null!=u?u:t,i=!1!==i,s=!1!==s,(l=document.createEvent("Events")).initEvent(e,i,s),null!=r&&o.extend.call(l,r),a.dispatchEvent(l)},elementMatchesSelector:function(t,n){return 1===(null!=t?t.nodeType:void 0)?e.call(t,n):void 0},findClosestElementFromNode:function(t,e){var n,r,i;for(n=(r=null!=e?e:{}).matchingSelector,i=r.untilNode;null!=t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;if(null!=t){if(null==n)return t;if(t.closest&&null==i)return t.closest(n);for(;t&&t!==i;){if(o.elementMatchesSelector(t,n))return t;t=t.parentNode}}},findInnerElement:function(t){for(;null!=t?t.firstElementChild:void 0;)t=t.firstElementChild;return t},innerElementIsActive:function(t){return document.activeElement!==t&&o.elementContainsNode(t,document.activeElement)},elementContainsNode:function(t,e){if(t&&e)for(;e;){if(e===t)return!0;e=e.parentNode}},findNodeFromContainerAndOffset:function(t,e){var n;if(t)return t.nodeType===Node.TEXT_NODE?t:0===e?null!=(n=t.firstChild)?n:t:t.childNodes.item(e-1)},findElementFromContainerAndOffset:function(t,e){var n;return n=o.findNodeFromContainerAndOffset(t,e),o.findClosestElementFromNode(n)},findChildIndexOfNode:function(t){var e;if(null!=t?t.parentNode:void 0){for(e=0;t=t.previousSibling;)e++;return e}},removeNode:function(t){var e;return null!=t&&null!=(e=t.parentNode)?e.removeChild(t):void 0},walkTree:function(t,e){var n,r,i,o,s;return r=(i=null!=e?e:{}).onlyNodesOfType,o=i.usingFilter,n=i.expandEntityReferences,s=function(){switch(r){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}}(),document.createTreeWalker(t,s,null!=o?o:null,!0===n)},tagName:function(t){var e;return null!=t&&null!=(e=t.tagName)?e.toLowerCase():void 0},makeElement:function(t,e){var n,r,i,o,s,a,l,u,c,d;if(null==e&&(e={}),"object"==typeof t?t=(e=t).tagName:e={attributes:e},r=document.createElement(t),null!=e.editable&&(null==e.attributes&&(e.attributes={}),e.attributes.contenteditable=e.editable),e.attributes)for(o in a=e.attributes)d=a[o],r.setAttribute(o,d);if(e.style)for(o in l=e.style)d=l[o],r.style[o]=d;if(e.data)for(o in u=e.data)d=u[o],r.dataset[o]=d;if(e.className)for(i=0,s=(c=e.className.split(" ")).length;s>i;i++)n=c[i],r.classList.add(n);return e.textContent&&(r.textContent=e.textContent),r},getBlockTagNames:function(){var t,e;return null!=o.blockTagNames?o.blockTagNames:o.blockTagNames=function(){var n,r;for(t in r=[],n=o.config.blockAttributes)(e=n[t].tagName)&&r.push(e);return r}()},nodeIsBlockContainer:function(t){return o.nodeIsBlockStartComment(null!=t?t.firstChild:void 0)},nodeProbablyIsBlockContainer:function(t){var e,n;return e=o.tagName(t),s.call(o.getBlockTagNames(),e)>=0&&(n=o.tagName(t.firstChild),s.call(o.getBlockTagNames(),n)<0)},nodeIsBlockStart:function(t,e){return(null!=e?e:{strict:!0}).strict?o.nodeIsBlockStartComment(t):o.nodeIsBlockStartComment(t)||!o.nodeIsBlockStartComment(t.firstChild)&&o.nodeProbablyIsBlockContainer(t)},nodeIsBlockStartComment:function(t){return o.nodeIsCommentNode(t)&&"block"===(null!=t?t.data:void 0)},nodeIsCommentNode:function(t){return(null!=t?t.nodeType:void 0)===Node.COMMENT_NODE},nodeIsCursorTarget:function(t,e){var n;return n=(null!=e?e:{}).name,t?o.nodeIsTextNode(t)?t.data===o.ZERO_WIDTH_SPACE?!n||t.parentNode.dataset.trixCursorTarget===n:void 0:o.nodeIsCursorTarget(t.firstChild):void 0},nodeIsAttachmentElement:function(t){return o.elementMatchesSelector(t,o.AttachmentView.attachmentSelector)},nodeIsEmptyTextNode:function(t){return o.nodeIsTextNode(t)&&""===(null!=t?t.data:void 0)},nodeIsTextNode:function(t){return(null!=t?t.nodeType:void 0)===Node.TEXT_NODE}})}.call(this),function(){var t,e,n,r,i;t=o.copyObject,r=o.objectsAreEqual,o.extend({normalizeRange:n=function(t){var n;if(null!=t)return Array.isArray(t)||(t=[t,t]),[e(t[0]),e(null!=(n=t[1])?n:t[0])]},rangeIsCollapsed:function(t){var e,r,o;if(null!=t)return o=(r=n(t))[0],e=r[1],i(o,e)},rangesAreEqual:function(t,e){var r,o,s,a,l,u;if(null!=t&&null!=e)return o=(s=n(t))[0],r=s[1],u=(a=n(e))[0],l=a[1],i(o,u)&&i(r,l)}}),e=function(e){return"number"==typeof e?e:t(e)},i=function(t,e){return"number"==typeof t?t===e:r(t,e)}}.call(this),function(){var t,e,n,r,i,s,a;o.registerElement=function(t,e){var n,o;return null==e&&(e={}),t=t.toLowerCase(),e=a(e),(n=(o=s(e)).defaultCSS)&&(delete o.defaultCSS,r(n,t)),i(t,o)},r=function(t,e){return n(e).textContent=t.replace(/%t/g,e)},n=function(e){var n,r;return(n=document.createElement("style")).setAttribute("type","text/css"),n.setAttribute("data-tag-name",e.toLowerCase()),(r=t())&&n.setAttribute("nonce",r),document.head.insertBefore(n,document.head.firstChild),n},t=function(){var t;return(t=e("trix-csp-nonce")||e("csp-nonce"))?t.getAttribute("content"):void 0},e=function(t){return document.head.querySelector("meta[name="+t+"]")},s=function(t){var e,n,r;for(e in n={},t)r=t[e],n[e]="function"==typeof r?{value:r}:r;return n},a=function(){var t;return t=function(t){var e,n,r,i,o;for(e={},n=0,i=(o=["initialize","connect","disconnect"]).length;i>n;n++)e[r=o[n]]=t[r],delete t[r];return e},window.customElements?function(e){var n,r,i,o,s;
2return s=t(e),i=s.initialize,n=s.connect,r=s.disconnect,i&&(o=n,n=function(){return this.initialized||(this.initialized=!0,i.call(this)),null!=o?o.call(this):void 0}),n&&(e.connectedCallback=n),r&&(e.disconnectedCallback=r),e}:function(e){var n,r,i,o;return i=(o=t(e)).initialize,n=o.connect,r=o.disconnect,i&&(e.createdCallback=i),n&&(e.attachedCallback=n),r&&(e.detachedCallback=r),e}}(),i=window.customElements?function(t,e){var n;return n=function(){return"object"==typeof Reflect?Reflect.construct(HTMLElement,[],n):HTMLElement.apply(this)},Object.setPrototypeOf(n.prototype,HTMLElement.prototype),Object.setPrototypeOf(n,HTMLElement),Object.defineProperties(n.prototype,e),window.customElements.define(t,n),n}:function(t,e){var n,r;return r=Object.create(HTMLElement.prototype,e),n=document.registerElement(t,{prototype:r}),Object.defineProperty(r,"constructor",{value:n}),n}}.call(this),function(){var t,e;o.extend({getDOMSelection:function(){var t;return(t=window.getSelection()).rangeCount>0?t:void 0},getDOMRange:function(){var e,n;return(e=null!=(n=o.getDOMSelection())?n.getRangeAt(0):void 0)&&!t(e)?e:void 0},setDOMRange:function(t){var e;return(e=window.getSelection()).removeAllRanges(),e.addRange(t),o.selectionChangeObserver.update()}}),t=function(t){return e(t.startContainer)||e(t.endContainer)},e=function(t){return!Object.getPrototypeOf(t)}}.call(this),function(){var t;t={"application/x-trix-feature-detection":"test"},o.extend({dataTransferIsPlainText:function(t){var e,n,r;return r=t.getData("text/plain"),n=t.getData("text/html"),r&&n?(e=(new DOMParser).parseFromString(n,"text/html").body).textContent===r?!e.querySelector("*"):void 0:null!=r?r.length:void 0},dataTransferIsWritable:function(e){var n,r;if(null!=(null!=e?e.setData:void 0)){for(n in t)if(r=t[n],!function(){try{return e.setData(n,r),e.getData(n)===r}catch(t){}}())return;return!0}},keyEventIsKeyboardCommand:/Mac|^iP/.test(navigator.platform)?function(t){return t.metaKey}:function(t){return t.ctrlKey}})}.call(this),function(){}.call(this),function(){var t,e=function(t,e){function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},n={}.hasOwnProperty;t=o.arraysAreEqual,o.Hash=function(n){function r(t){null==t&&(t={}),this.values=s(t),r.__super__.constructor.apply(this,arguments)}var i,s,a,l,u;return e(r,n),r.fromCommonAttributesOfObjects=function(t){var e,n,r,o,s,a;if(null==t&&(t=[]),!t.length)return new this;for(r=(e=i(t[0])).getKeys(),n=0,o=(a=t.slice(1)).length;o>n;n++)s=a[n],r=e.getKeysCommonToHash(i(s)),e=e.slice(r);return e},r.box=function(t){return i(t)},r.prototype.add=function(t,e){return this.merge(l(t,e))},r.prototype.remove=function(t){return new o.Hash(s(this.values,t))},r.prototype.get=function(t){return this.values[t]},r.prototype.has=function(t){return t in this.values},r.prototype.merge=function(t){return new o.Hash(a(this.values,u(t)))},r.prototype.slice=function(t){var e,n,r,i;for(i={},e=0,r=t.length;r>e;e++)n=t[e],this.has(n)&&(i[n]=this.values[n]);return new o.Hash(i)},r.prototype.getKeys=function(){return Object.keys(this.values)},r.prototype.getKeysCommonToHash=function(t){var e,n,r,o,s;for(t=i(t),s=[],e=0,r=(o=this.getKeys()).length;r>e;e++)n=o[e],this.values[n]===t.values[n]&&s.push(n);return s},r.prototype.isEqualTo=function(e){return t(this.toArray(),i(e).toArray())},r.prototype.isEmpty=function(){return 0===this.getKeys().length},r.prototype.toArray=function(){var t,e,n;return(null!=this.array?this.array:this.array=function(){var r;for(t in e=[],r=this.values)n=r[t],e.push(t,n);return e}.call(this)).slice(0)},r.prototype.toObject=function(){return s(this.values)},r.prototype.toJSON=function(){return this.toObject()},r.prototype.contentsForInspection=function(){return{values:JSON.stringify(this.values)}},l=function(t,e){var n;return(n={})[t]=e,n},a=function(t,e){var n,r,i;for(n in r=s(t),e)i=e[n],r[n]=i;return r},s=function(t,e){var n,r,i,o,s;for(o={},n=0,i=(s=Object.keys(t).sort()).length;i>n;n++)(r=s[n])!==e&&(o[r]=t[r]);return o},i=function(t){return t instanceof o.Hash?t:new o.Hash(t)},u=function(t){return t instanceof o.Hash?t.values:t},r}(o.Object)}.call(this),function(){o.ObjectGroup=function(){function t(t,e){var n,r;this.objects=null!=t?t:[],r=e.depth,(n=e.asTree)&&(this.depth=r,this.objects=this.constructor.groupObjects(this.objects,{asTree:n,depth:this.depth+1}))}return t.groupObjects=function(t,e){var n,r,i,o,s,a,l,u,c;for(null==t&&(t=[]),i=(c=null!=e?e:{}).depth,(n=c.asTree)&&null==i&&(i=0),u=[],s=0,a=t.length;a>s;s++){if(l=t[s],o){if(("function"==typeof l.canBeGrouped?l.canBeGrouped(i):void 0)&&("function"==typeof(r=o[o.length-1]).canBeGroupedWith?r.canBeGroupedWith(l,i):void 0)){o.push(l);continue}u.push(new this(o,{depth:i,asTree:n})),o=null}("function"==typeof l.canBeGrouped?l.canBeGrouped(i):void 0)?o=[l]:u.push(l)}return o&&u.push(new this(o,{depth:i,asTree:n})),u},t.prototype.getObjects=function(){return this.objects},t.prototype.getDepth=function(){return this.depth},t.prototype.getCacheKey=function(){var t,e,n,r,i;for(e=["objectGroup"],t=0,n=(i=this.getObjects()).length;n>t;t++)r=i[t],e.push(r.getCacheKey());return e.join("/")},t}()}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.ObjectMap=function(e){function n(t){var e,n,r,i,o;for(null==t&&(t=[]),this.objects={},r=0,i=t.length;i>r;r++)o=t[r],n=JSON.stringify(o),null==(e=this.objects)[n]&&(e[n]=o)}return t(n,e),n.prototype.find=function(t){var e;return e=JSON.stringify(t),this.objects[e]},n}(o.BasicObject)}.call(this),function(){o.ElementStore=function(){function t(t){this.reset(t)}var e;return t.prototype.add=function(t){var n;return n=e(t),this.elements[n]=t},t.prototype.remove=function(t){var n,r;return n=e(t),(r=this.elements[n])?(delete this.elements[n],r):void 0},t.prototype.reset=function(t){var e,n,r;for(null==t&&(t=[]),this.elements={},n=0,r=t.length;r>n;n++)e=t[n],this.add(e);return t},e=function(t){return t.dataset.trixStoreKey},t}()}.call(this),function(){}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.Operation=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n.prototype.isPerforming=function(){return!0===this.performing},n.prototype.hasPerformed=function(){return!0===this.performed},n.prototype.hasSucceeded=function(){return this.performed&&this.succeeded},n.prototype.hasFailed=function(){return this.performed&&!this.succeeded},n.prototype.getPromise=function(){return null!=this.promise?this.promise:this.promise=new Promise(function(t){return function(e,n){return t.performing=!0,t.perform((function(r,i){return t.succeeded=r,t.performing=!1,t.performed=!0,t.succeeded?e(i):n(i)}))}}(this))},n.prototype.perform=function(t){return t(!1)},n.prototype.release=function(){var t;return null!=(t=this.promise)&&"function"==typeof t.cancel&&t.cancel(),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null},n.proxyMethod("getPromise().then"),n.proxyMethod("getPromise().catch"),n}(o.BasicObject)}.call(this),function(){var t,e,n,r,i,s={}.hasOwnProperty;o.UTF16String=function(t){function e(t,e){this.ucs2String=t,this.co
2depoints=e,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}return function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.box=function(t){return null==t&&(t=""),t instanceof this?t:this.fromUCS2String(null!=t?t.toString():void 0)},e.fromUCS2String=function(t){return new this(t,r(t))},e.fromCodepoints=function(t){return new this(i(t),t)},e.prototype.offsetToUCS2Offset=function(t){return i(this.codepoints.slice(0,Math.max(0,t))).length},e.prototype.offsetFromUCS2Offset=function(t){return r(this.ucs2String.slice(0,Math.max(0,t))).length},e.prototype.slice=function(){var t;return this.constructor.fromCodepoints((t=this.codepoints).slice.apply(t,arguments))},e.prototype.charAt=function(t){return this.slice(t,t+1)},e.prototype.isEqualTo=function(t){return this.constructor.box(t).ucs2String===this.ucs2String},e.prototype.toJSON=function(){return this.ucs2String},e.prototype.getCacheKey=function(){return this.ucs2String},e.prototype.toString=function(){return this.ucs2String},e}(o.BasicObject),t=1===("function"==typeof Array.from?Array.from("👼").length:void 0),e=null!=("function"==typeof" ".codePointAt?" ".codePointAt(0):void 0),n=" 👼"===("function"==typeof String.fromCodePoint?String.fromCodePoint(32,128124):void 0),r=t&&e?function(t){return Array.from(t).map((function(t){return t.codePointAt(0)}))}:function(t){var e,n,r,i,o;for(i=[],e=0,r=t.length;r>e;)(o=t.charCodeAt(e++))>=55296&&56319>=o&&r>e&&(56320==(64512&(n=t.charCodeAt(e++)))?o=((1023&o)<<10)+(1023&n)+65536:e--),i.push(o);return i},i=n?function(t){return String.fromCodePoint.apply(String,t)}:function(t){var e,n,r;return e=function(){var e,i,o;for(o=[],e=0,i=t.length;i>e;e++)r=t[e],n="",r>65535&&(r-=65536,n+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),o.push(n+String.fromCharCode(r));return o}(),e.join("")}}.call(this),function(){}.call(this),function(){}.call(this),function(){o.config.lang={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption…",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL…",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"}}.call(this),function(){o.config.css={attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"}}.call(this),function(){var t;o.config.blockAttributes=t={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test:function(e){return o.tagName(e.parentNode)===t[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test:function(e){return o.tagName(e.parentNode)===t[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}}}.call(this),function(){var t,e;t=o.config.lang,e=[t.bytes,t.KB,t.MB,t.GB,t.TB,t.PB],o.config.fileSize={prefix:"IEC",precision:2,formatter:function(n){var r,i;switch(n){case 0:return"0 "+t.bytes;case 1:return"1 "+t.byte;default:return r=function(){switch(this.prefix){case"SI":return 1e3;case"IEC":return 1024}}
2.call(this),i=Math.floor(Math.log(n)/Math.log(r)),(n/Math.pow(r,i)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"")+" "+e[i]}}}}.call(this),function(){o.config.textAttributes={bold:{tagName:"strong",inheritable:!0,parser:function(t){var e;return"bold"===(e=window.getComputedStyle(t)).fontWeight||e.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:function(t){return"italic"===window.getComputedStyle(t).fontStyle}},href:{groupTagName:"a",parser:function(t){var e,n;return n="a:not("+o.AttachmentView.attachmentSelector+")",(e=o.findClosestElementFromNode(t,{matchingSelector:n}))?e.getAttribute("href"):void 0}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}}}.call(this),function(){var t,e,n;n=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],e="data-trix-serialized-attributes",t=new RegExp("\x3c!--block--\x3e","g"),o.extend({serializers:{"application/json":function(t){var e;if(t instanceof o.Document)e=t;else{if(!(t instanceof HTMLElement))throw new Error("unserializable object");e=o.Document.fromHTML(t.innerHTML)}return e.toSerializableDocument().toJSONString()},"text/html":function(r){var i,s,a,l,u,c,d,h,f,p,m,g,y,_,v,b,w;if(r instanceof o.Document)l=o.DocumentView.render(r);else{if(!(r instanceof HTMLElement))throw new Error("unserializable object");l=r.cloneNode(!0)}for(u=0,f=(_=l.querySelectorAll("[data-trix-serialize=false]")).length;f>u;u++)a=_[u],o.removeNode(a);for(c=0,p=n.length;p>c;c++)for(i=n[c],d=0,m=(v=l.querySelectorAll("["+i+"]")).length;m>d;d++)(a=v[d]).removeAttribute(i);for(h=0,g=(b=l.querySelectorAll("[data-trix-serialized-attributes]")).length;g>h;h++){a=b[h];try{for(y in s=JSON.parse(a.getAttribute(e)),a.removeAttribute(e),s)w=s[y],a.setAttribute(y,w)}catch(t){}}return l.innerHTML.replace(t,"")}},deserializers:{"application/json":function(t){return o.Document.fromJSONString(t)},"text/html":function(t){return o.Document.fromHTML(t)}},serializeToContentType:function(t,e){var n;if(n=o.serializers[e])return n(t);throw new Error("unknown content type: "+e)},deserializeFromContentType:function(t,e){var n;if(n=o.deserializers[e])return n(t);throw new Error("unknown content type: "+e)}})}.call(this),function(){var t;t=o.config.lang,o.config.toolbar={getDefaultHTML:function(){return'<div class="trix-button-row">\n  <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="'+t.bold+'" tabindex="-1">'+t.bold+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="'+t.italic+'" tabindex="-1">'+t.italic+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="'+t.strike+'" tabindex="-1">'+t.strike+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="'+t.link+'" tabindex="-1">'+t.link+'</button>\n  </span>\n\n  <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="'+t.heading1+'" tabindex="-1">'+t.heading1+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="'+t.quote+'" tabindex="-1">'+t.quote+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="'+t.code+'" tabindex="-1">'+t.code+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="'+t.bullets+'" tabindex="-1">'+t.bullets+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="'+t.numbers+'" tabindex="-1">'+t.numbers+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="'+t.outdent+'" tabindex="-1">'+t.outdent+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="'+t.indent+'" tabindex="-1">
2'+t.indent+'</button>\n  </span>\n\n  <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="'+t.attachFiles+'" tabindex="-1">'+t.attachFiles+'</button>\n  </span>\n\n  <span class="trix-button-group-spacer"></span>\n\n  <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="'+t.undo+'" tabindex="-1">'+t.undo+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="'+t.redo+'" tabindex="-1">'+t.redo+'</button>\n  </span>\n</div>\n\n<div class="trix-dialogs" data-trix-dialogs>\n  <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">\n    <div class="trix-dialog__link-fields">\n      <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="'+t.urlPlaceholder+'" aria-label="'+t.url+'" required data-trix-input>\n      <div class="trix-button-group">\n        <input type="button" class="trix-button trix-button--dialog" value="'+t.link+'" data-trix-method="setAttribute">\n        <input type="button" class="trix-button trix-button--dialog" value="'+t.unlink+'" data-trix-method="removeAttribute">\n      </div>\n    </div>\n  </div>\n</div>'}}}.call(this),function(){o.config.undoInterval=5e3}.call(this),function(){o.config.attachments={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}}}.call(this),function(){o.config.keyNames={8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"}}.call(this),function(){o.config.input={level2Enabled:!0,getLevel:function(){return this.level2Enabled&&o.browser.supportsInputEvents?2:0},pickFiles:function(t){var e;return(e=o.makeElement("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId})).addEventListener("change",(function(){return t(e.files),o.removeNode(e)})),o.removeNode(document.getElementById(this.fileInputId)),document.body.appendChild(e),e.click()},fileInputId:"trix-file-input-"+Date.now().toString(16)}}.call(this),function(){}.call(this),function(){o.registerElement("trix-toolbar",{defaultCSS:"%t {\n  display: block;\n}\n\n%t {\n  white-space: nowrap;\n}\n\n%t [data-trix-dialog] {\n  display: none;\n}\n\n%t [data-trix-dialog][data-trix-active] {\n  display: block;\n}\n\n%t [data-trix-dialog] [data-trix-validate]:invalid {\n  background-color: #ffdddd;\n}",initialize:function(){return""===this.innerHTML?this.innerHTML=o.config.toolbar.getDefaultHTML():void 0}})}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty,n=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};o.ObjectView=function(e){function r(t,e){this.object=t,this.options=null!=e?e:{},this.childViews=[],this.rootView=this}return t(r,e),r.prototype.getNodes=function(){var t,e,n,r,i;for(null==this.nodes&&(this.nodes=this.createNodes()),i=[],t=0,e=(r=this.nodes).length;e>t;t++)n=r[t],i.push(n.cloneNode(!0));return i},r.prototype.invalidate=function(){var t;return this.nodes=null,this.childViews=[],null!=(t=this.parentView)?t.invalidate():void 0},r.prototype.invalidateViewForObject=function(t){var e;return null!=(e=this.findViewForObject(t))?e.invalidate():void 0},r.prototype.findOrCreateCachedChildView=function(t,e){var n;return(n=this.getCachedViewForObject(e))?this.recordChildView(n):(n=this.createChildView.apply(this,arguments),this.cacheViewForObject(n,e)),n},r.prototype.createChildView=function(t,e,n){var r;return null==n&&(n={}),e instanceof o.ObjectGroup&&(n.viewClass=t,t=o.ObjectGroupView),r=new t(e,n),this.recordChildView(r)},r.prototype.recordChildView=function(t){return t.parentView=this,t.rootView=this.root
2View,this.childViews.push(t),t},r.prototype.getAllChildViews=function(){var t,e,n,r,i;for(i=[],e=0,n=(r=this.childViews).length;n>e;e++)t=r[e],i.push(t),i=i.concat(t.getAllChildViews());return i},r.prototype.findElement=function(){return this.findElementForObject(this.object)},r.prototype.findElementForObject=function(t){var e;return(e=null!=t?t.id:void 0)?this.rootView.element.querySelector("[data-trix-id='"+e+"']"):void 0},r.prototype.findViewForObject=function(t){var e,n,r,i;for(e=0,n=(r=this.getAllChildViews()).length;n>e;e++)if((i=r[e]).object===t)return i},r.prototype.getViewCache=function(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?null!=this.viewCache?this.viewCache:this.viewCache={}:void 0},r.prototype.isViewCachingEnabled=function(){return!1!==this.shouldCacheViews},r.prototype.enableViewCaching=function(){return this.shouldCacheViews=!0},r.prototype.disableViewCaching=function(){return this.shouldCacheViews=!1},r.prototype.getCachedViewForObject=function(t){var e;return null!=(e=this.getViewCache())?e[t.getCacheKey()]:void 0},r.prototype.cacheViewForObject=function(t,e){var n;return null!=(n=this.getViewCache())?n[e.getCacheKey()]=t:void 0},r.prototype.garbageCollectCachedViews=function(){var t,e,r,i,o,s;if(t=this.getViewCache()){for(e in s=this.getAllChildViews().concat(this),r=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],n.push(o.object.getCacheKey());return n}(),i=[],t)n.call(r,e)<0&&i.push(delete t[e]);return i}},r}(o.BasicObject)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.ObjectGroupView=function(e){function n(){n.__super__.constructor.apply(this,arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}return t(n,e),n.prototype.getChildViews=function(){var t,e,n,r;if(!this.childViews.length)for(t=0,e=(r=this.objectGroup.getObjects()).length;e>t;t++)n=r[t],this.findOrCreateCachedChildView(this.viewClass,n,this.options);return this.childViews},n.prototype.createNodes=function(){var t,e,n,r,i,o,s,a;for(t=this.createContainerElement(),e=0,r=(s=this.getChildViews()).length;r>e;e++)for(n=0,i=(a=s[e].getNodes()).length;i>n;n++)o=a[n],t.appendChild(o);return[t]},n.prototype.createContainerElement=function(t){return null==t&&(t=this.objectGroup.getDepth()),this.getChildViews()[0].createContainerElement(t)},n}(o.ObjectView)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.Controller=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return t(n,e),n}(o.BasicObject)}.call(this),function(){var t,e,n,r,i,s,a=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty,u=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=o.findClosestElementFromNode,n=o.nodeIsEmptyTextNode,e=o.nodeIsBlockStartComment,r=o.normalizeSpaces,i=o.summarizeStringChange,s=o.tagName,o.MutationObserver=function(o){function l(t){this.element=t,this.didMutate=function(t,e){return function(){return t.apply(e,arguments)}}(this.didMutate,this),this.observer=new window.MutationObserver(this.didMutate),this.start()}var c,d,h;return a(l,o),"["+(d="data-trix-mutable")+"]",h={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},l.prototype.start=function(){return this.reset(),this.observer.observe(this.element,h)},l.prototype.stop=function(){return this.observer.disconnect()},l.prototype.didMutate=function(t){var e,n;return(e=this.mutations).push.apply(e,this.findSignificantMutations(t)),this.mutations.length?(null!=(n=this.delegate)&&"function"==typeof n.elementDidMutate&&n.elementDidMutate(this.getMutationSummary()),this.reset()):void 0},l.prototype.reset=function(){return this.mutations=[]},l.prototype.findSignificantMutations=function(t){var e,n,r,i;for(i=[],e=0,n=t.length;n>e;e++)r=t[e],this.mutationIsSignificant(r)&&i.push(r);return i},l.prototype.mutationIsSignificant=function(t){var e,n,r,i;if(this.nodeIsMutable(t.target))return!1;for(e=0,n=(i=this.nodesModifiedByMutation(t)).length;n>e;e++)if(r=i[e],this.nodeIsSignificant(r))return!0;return!1},l.prototype.nodeIsSignificant=function(t){return t!==this.element&&!this.nodeIsMutable(t)&&!n(t)},l.prototype.nodeIsMutable=function(e){return t(e,{matchingSelector:"[data-trix-mutable]"})},l.prototype.nodesModifiedByMutation=function(t){var e;switch(e=[],t.type){case"attributes":t.attributeName!==d&&e.push(t.target);break;case"characterData":e.push(t.target.parentNode),e.push(t.target);break;case"childList":e.push.apply(e,t.addedNodes),e.push.apply(e,t.removedNodes
2)}return e},l.prototype.getMutationSummary=function(){return this.getTextMutationSummary()},l.prototype.getTextMutationSummary=function(){var t,e,n,r,i,o,s,a,l,c,d;for(n=(a=this.getTextChangesFromCharacterData()).additions,i=a.deletions,o=0,s=(l=(d=this.getTextChangesFromChildList()).additions).length;s>o;o++)e=l[o],u.call(n,e)<0&&n.push(e);return i.push.apply(i,d.deletions),c={},(t=n.join(""))&&(c.textAdded=t),(r=i.join(""))&&(c.textDeleted=r),c},l.prototype.getMutationsByType=function(t){var e,n,r,i,o;for(o=[],e=0,n=(i=this.mutations).length;n>e;e++)(r=i[e]).type===t&&o.push(r);return o},l.prototype.getTextChangesFromChildList=function(){var t,n,i,o,s,a,l,u,d,h;for(t=[],l=[],n=0,o=(a=this.getMutationsByType("childList")).length;o>n;n++)s=a[n],t.push.apply(t,s.addedNodes),l.push.apply(l,s.removedNodes);return 0===t.length&&1===l.length&&e(l[0])?(d=[],h=["\n"]):(d=c(t),h=c(l)),{additions:function(){var t,e,n;for(n=[],i=t=0,e=d.length;e>t;i=++t)(u=d[i])!==h[i]&&n.push(r(u));return n}(),deletions:function(){var t,e,n;for(n=[],i=t=0,e=h.length;e>t;i=++t)(u=h[i])!==d[i]&&n.push(r(u));return n}()}},l.prototype.getTextChangesFromCharacterData=function(){var t,e,n,o,s,a,l,u;return(e=this.getMutationsByType("characterData")).length&&(u=e[0],n=e[e.length-1],s=r(u.oldValue),o=r(n.target.data),t=(a=i(s,o)).added,l=a.removed),{additions:t?[t]:[],deletions:l?[l]:[]}},c=function(t){var e,n,r,i;for(null==t&&(t=[]),i=[],e=0,n=t.length;n>e;e++)switch(r=t[e],r.nodeType){case Node.TEXT_NODE:i.push(r.data);break;case Node.ELEMENT_NODE:"br"===s(r)?i.push("\n"):i.push.apply(i,c(r.childNodes))}return i},l}(o.BasicObject)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.FileVerificationOperation=function(e){function n(t){this.file=t}return t(n,e),n.prototype.perform=function(t){var e;return(e=new FileReader).onerror=function(){return t(!1)},e.onload=function(n){return function(){e.onerror=null;try{e.abort()}catch(t){}return t(!0,n.file)}}(this),e.readAsArrayBuffer(this.file)},n}(o.Operation)}.call(this),function(){var t,e,n=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;t=o.handleEvent,e=o.innerElementIsActive,o.InputController=function(r){function i(e){var n;for(n in this.element=e,this.mutationObserver=new o.MutationObserver(this.element),this.mutationObserver.delegate=this,this.events)t(n,{onElement:this.element,withCallback:this.handlerFor(n)})}return n(i,r),i.prototype.events={},i.prototype.elementDidMutate=function(){},i.prototype.editorWillSyncDocumentView=function(){return this.mutationObserver.stop()},i.prototype.editorDidSyncDocumentView=function(){return this.mutationObserver.start()},i.prototype.requestRender=function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidRequestRender?t.inputControllerDidRequestRender():void 0},i.prototype.requestReparse=function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidRequestReparse&&t.inputControllerDidRequestReparse(),this.requestRender()},i.prototype.attachFiles=function(t){var e,n;return n=function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(new o.FileVerificationOperation(e));return i}(),Promise.all(n).then(function(t){return function(e){return t.handleInput((function(){var t,n;return null!=(t=this.delegate)&&t.inputControllerWillAttachFiles(),null!=(n=this.responder)&&n.insertFiles(e),this.requestRender()}))}}(this))},i.prototype.handlerFor=function(t){return function(n){return function(r){return r.defaultPrevented?void 0:n.handleInput((function(){return e(this.element)?void 0:(this.eventName=t,this.events[t].call(this,r))}))}}(this)},i.prototype.handleInput=function(t){var e,n;try{return null!=(e=this.delegate)&&e.inputControllerWillHandleInput(),t.call(this)}finally{null!=(n=this.delegate)&&n.inputControllerDidHandleInput()}},i}(o.BasicObject)}.call(this),function(){var t,e,n,r,i,s,a,l,u,c,d,h,f=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty,m=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};u=o.makeElement,c=o.objectsAreEqual,o.tagName,e=o.browser,a=o.keyEventIsKeyboardCommand,r=o.dataTransferIsWritable,n=o.dataTransferIsPlainText,l=o.config.keyNames,o.Level0InputController=function(e){function s(){s.__super__.constructor.apply(this,arguments),this.resetInputSummary()}var p;return f(s,e),p=0,s.prototype.setInputSummary=function(t){var e,n;for(e in null==t&&(t={}),this.inputSummary.eventName=this.eventName,t)n=t[e],this.inputSummary[e]=n;return this.inputSummary},s.prototype.resetInputSummary=function(){return this.inputSummary={}},s.prototype.reset=function(){return this.resetInputSummary(),o.selectionChangeObserver.reset()},s.prototype.elementDidMutate=function(t){var e;return this.isComposing()?null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidAllowUnhandledInput?e.inputControllerDidAllowUnhandledInput():void 0:this.handleInput((function(){return this.mutationIsSignificant(t)&&(this.mutationIsExpected(t)?this.requestRender():this.requestReparse()),this.reset()}))},s.prototype.mutationIsExpected=function(t){var e,n,r,i,o,s,a,l,u;return s=t.textAdded,a=t.textDeleted,!!this.inputSummary.preferDocument||(e=null!=s?s===this.inputSummary.textAdded:!this.inputSummary.textAdded,n=null!=a?this.inputSummary.didDelete:!this.inputSummary.didDelete,u="\n"===a&&!n,!!(((l=("\n"===s||" \n"===s)&&!e)&&!u||u&&!l)&&(i=this.getSelectedRange())&&(r=l?s.replace(/\n$/,"").length||-1:(null!=s?s.length:void 0)||1,null!=(o=this.responder)?o.positionIsBlockBreak(i[1]+r):void 0))||e&&n)},s.prototype.mutationIsSignificant=function(t){var e,n,r;return r=Object.keys(t).length>0,e=""===(null!=(n=this.compositionInput)?n.getEndData():void 0),r||!e},s.prototype.events={keydown:function(t){var e,n,r,i,s,u,c,d,h;if(this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0,i=l[t.keyCode]){for(n=this.keys,r=0,u=(d=["ctrl","alt","shift","meta"]).length;u>r;r++)t[(c=d[r])+"Key"]&&("ctrl"===c&&(c="control"),n=null!=n?n[c]:void 0);null!=(null!=n?n[i]:void 0)&&(this.setInputSummary({keyName:i}),o.selectionChangeObserver.reset(),n[i].call(this,t))}return a(t)&&(e=String.fromCharCode(t.keyCode).toLowerCase())&&(s=function(){var e,n,r,i;for(i=[],e=0,n=(r=["alt","shift"]).length;n>e;e++)t[(c=r[e])+"Key"]&&i.push(c);return i}(),s.push(e),null!=(h=this.delegate)?h.inputControllerDidReceiveKeyboardCommand(s):void 0)?t.preventDefault():void 0},keypress:function(t){var e,n,r;if(null==this.inputSummary.eventName&&!t.metaKey&&(!t.ctrlKey||t.altKey))return(r=h(t))?(null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.insertString(r),this.setInputSummary({textAdded:r,didDelete:this.selectionIsExpanded()})):void 0},textInput:function(t){var e,n,r,i;return e=t.data,(i=this.inputSummary.textAdded)&&i!==e&&i.toUpperCase()===e?(n=this.getSelectedRange(),this.setSelectedRange([n[0],n[1]+i.length]),null!=(r=this.responder)&&r.insertString(e),this.setInputSummary({textAdded:e}),this.setSelectedRange(n)):void 0},dragenter:function(t){return t.preventDefault()},dragstart:function(t){var e;return t.target,this.serializeSelectionToDataTransfer(t.dataTransfer),this.draggedRange=this.getSelectedRange(),null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidStartDrag?e.inputControllerDidStartDrag():void 0},dragover:function(t){var e,n;return!this.draggedRange&&!this.canAcceptDataTransfer(t.dataTransfer)||(t.preventDefault(),e={x:t.clientX,y:t.clientY},c(e,this.draggingPoint))?void 0:(this.draggingPoint=e,null!=(n=this.delegate)&&"function"==typeof n.inputControllerDidReceiveDragOverPoint?n.inputControllerDidReceiveDragOverPoint(this.draggingPoint):void 0)},dragend:function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidCancelDrag&&t.inputControllerDidCancelDrag(),this.draggedRange=null,this.draggingPoint=null},drop:function(t){var e,n,r,i,s,a,l,u,c;
2return t.preventDefault(),r=null!=(s=t.dataTransfer)?s.files:void 0,i={x:t.clientX,y:t.clientY},null!=(a=this.responder)&&a.setLocationRangeFromPointRange(i),(null!=r?r.length:void 0)?this.attachFiles(r):this.draggedRange?(null!=(l=this.delegate)&&l.inputControllerWillMoveText(),null!=(u=this.responder)&&u.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()):(n=t.dataTransfer.getData("application/x-trix-document"))&&(e=o.Document.fromJSONString(n),null!=(c=this.responder)&&c.insertDocument(e),this.requestRender()),this.draggedRange=null,this.draggingPoint=null},cut:function(t){var e,n;return(null!=(e=this.responder)?e.selectionIsExpanded():void 0)&&(this.serializeSelectionToDataTransfer(t.clipboardData)&&t.preventDefault(),null!=(n=this.delegate)&&n.inputControllerWillCutText(),this.deleteInDirection("backward"),t.defaultPrevented)?this.requestRender():void 0},copy:function(t){var e;return(null!=(e=this.responder)?e.selectionIsExpanded():void 0)&&this.serializeSelectionToDataTransfer(t.clipboardData)?t.preventDefault():void 0},paste:function(t){var e,r,s,a,l,u,c,h,f,g,y,_,v,b,w,M,S,C,A,x,E,L;return e=null!=(h=t.clipboardData)?h:t.testClipboardData,c={clipboard:e},null==e||d(t)?void this.getPastedHTMLUsingHiddenElement(function(t){return function(e){var n,r,i;return c.type="text/html",c.html=e,null!=(n=t.delegate)&&n.inputControllerWillPaste(c),null!=(r=t.responder)&&r.insertHTML(c.html),t.requestRender(),null!=(i=t.delegate)?i.inputControllerDidPaste(c):void 0}}(this)):((a=e.getData("URL"))?(c.type="URL",c.href=a,c.string=(u=e.getData("public.url-name"))?o.squishBreakableWhitespace(u).trim():a,null!=(f=this.delegate)&&f.inputControllerWillPaste(c),this.setInputSummary({textAdded:c.string,didDelete:this.selectionIsExpanded()}),null!=(w=this.responder)&&w.insertText(o.Text.textForStringWithAttributes(c.string,{href:c.href})),this.requestRender(),null!=(M=this.delegate)&&M.inputControllerDidPaste(c)):n(e)?(c.type="text/plain",c.string=e.getData("text/plain"),null!=(S=this.delegate)&&S.inputControllerWillPaste(c),this.setInputSummary({textAdded:c.string,didDelete:this.selectionIsExpanded()}),null!=(C=this.responder)&&C.insertString(c.string),this.requestRender(),null!=(A=this.delegate)&&A.inputControllerDidPaste(c)):(l=e.getData("text/html"))?(c.type="text/html",c.html=l,null!=(x=this.delegate)&&x.inputControllerWillPaste(c),null!=(E=this.responder)&&E.insertHTML(c.html),this.requestRender(),null!=(L=this.delegate)&&L.inputControllerDidPaste(c)):m.call(e.types,"Files")>=0&&(s=null!=(g=e.items)&&null!=(y=g[0])&&"function"==typeof y.getAsFile?y.getAsFile():void 0)&&(!s.name&&(r=i(s))&&(s.name="pasted-file-"+ ++p+"."+r),c.type="File",c.file=s,null!=(_=this.delegate)&&_.inputControllerWillAttachFiles(),null!=(v=this.responder)&&v.insertFile(c.file),this.requestRender(),null!=(b=this.delegate)&&b.inputControllerDidPaste(c)),t.preventDefault())},compositionstart:function(t){return this.getCompositionInput().start(t.data)},compositionupdate:function(t){return this.getCompositionInput().update(t.data)},compositionend:function(t){return this.getCompositionInput().end(t.data)},beforeinput:function(){return this.inputSummary.didInput=!0},input:function(t){return this.inputSummary.didInput=!0,t.stopPropagation()}},s.prototype.keys={backspace:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},delete:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},return:function(){var t,e;return this.setInputSummary({preferDocument:!0}),null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(e=this.responder)?e.insertLineBreak():void 0},tab:function(t){var e,n;return(null!=(e=this.responder)?e.canIncreaseNestingLevel():void 0)?(null!=(n=this.responder)&&n.increaseNestingLevel(),this.requestRender(),t.preventDefault()):void 0},left:function(t){var e;return this.selectionIsInCursorTarget()?(t.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("backward"):void 0):void 0},right:function(t){var e;return this.selectionIsInCursorTarget()?(t.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("forward"):void 0):void 0},control:{d:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},h:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},o:function(t){var e,n;return t.preventDefault(),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.insertString("\n",{updatePosition:!1}),this.requestRender()}},shift:{return:function(t){var e,n;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.insertString("\n"),this.requestRender(),t.preventDefault()},tab:function(t){var e,n;return(null!=(e=this.responder)?e.canDecreaseNestingLevel():void 0)?(null!=(n=this.responder)&&n.decreaseNestingLevel(),this.requestRender(),t.preventDefault()):void 0},left:function(t){return this.selectionIsInCursorTarget()?(t.preventDefault(),this.expandSelectionInDirection("backward")):void 0},right:function(t){return this.selectionIsInCursorTarget()?(t.preventDefault(),this.expandSelectionInDirection("forward")):void 0}},alt:{backspace:function(){var t;return this.setInputSummary({preferDocument:!1}),null!=(t=this.delegate)?t.inputControllerWillPerformTyping():void 0}},meta:{backspace:function(){var t;return this.setInputSummary({preferDocument:!1}),null!=(t=this.delegate)?t.inputControllerWillPerformTyping():void 0}}},s.prototype.getCompositionInput=function(){return this.isComposing()?this.compositionInput:this.compositionInput=new t(this)},s.prototype.isComposing=function(){return null!=this.compositionInput&&!this.compositionInput.isEnded()},s.prototype.deleteInDirection=function(t,e){var n;return!1!==(null!=(n=this.responder)?n.deleteInDirection(t):void 0)?this.setInputSummary({didDelete:!0}):e?(e.preventDefault(),this.requestRender()):void 0},s.prototype.serializeSelectionToDataTransfer=function(t){var e,n;if(r(t))return e=null!=(n=this.responder)?n.getSelectedDocument().toSerializableDocument():void 0,t.setData("application/x-trix-document",JSON.stringify(e)),t.setData("text/html",o.DocumentView.render(e).innerHTML),t.setData("text/plain",e.toString().replace(/\n$/,"")),!0},s.prototype.canAcceptDataTransfer=function(t){var e,n,r,i,o;for(o={},e=0,n=(i=null!=(r=null!=t?t.types:void 0)?r:[]).length;n>e;e++)o[i[e]]=!0;return o.Files||o["application/x-trix-document"]||o["text/html"]||o["text/plain"]},s.prototype.getPastedHTMLUsingHiddenElement=function(t){var e,n,r;return n=this.getSelectedRange(),r={position:"absolute",left:window.pageXOffset+"px",to
2p:window.pageYOffset+"px",opacity:0},e=u({style:r,tagName:"div",editable:!0}),document.body.appendChild(e),e.focus(),requestAnimationFrame(function(r){return function(){var i;return i=e.innerHTML,o.removeNode(e),r.setSelectedRange(n),t(i)}}(this))},s.proxyMethod("responder?.getSelectedRange"),s.proxyMethod("responder?.setSelectedRange"),s.proxyMethod("responder?.expandSelectionInDirection"),s.proxyMethod("responder?.selectionIsInCursorTarget"),s.proxyMethod("responder?.selectionIsExpanded"),s}(o.InputController),i=function(t){var e,n;return null!=(e=t.type)&&null!=(n=e.match(/\/(\w+)$/))?n[1]:void 0},s=null!=("function"==typeof" ".codePointAt?" ".codePointAt(0):void 0),h=function(t){var e;return t.key&&s&&t.key.codePointAt(0)===t.keyCode?t.key:(null===t.which?e=t.keyCode:0!==t.which&&0!==t.charCode&&(e=t.charCode),null!=e&&"escape"!==l[e]?o.UTF16String.fromCodepoints([e]).toString():void 0)},d=function(t){var e,n,r,i,o,s,a,l,u;if(a=t.clipboardData){if(m.call(a.types,"text/html")>=0){for(r=0,s=(l=a.types).length;s>r;r++)if(u=l[r],e=/^CorePasteboardFlavorType/.test(u),n=/^dyn\./.test(u)&&a.getData(u),e||n)return!0;return!1}return i=m.call(a.types,"com.apple.webarchive")>=0,o=m.call(a.types,"com.apple.flat-rtfd")>=0,i||o}},t=function(t){function n(t){var e;this.inputController=t,e=this.inputController,this.responder=e.responder,this.delegate=e.delegate,this.inputSummary=e.inputSummary,this.data={}}return f(n,t),n.prototype.start=function(t){var e,n;return this.data.start=t,this.isSignificant()?("keypress"===this.inputSummary.eventName&&this.inputSummary.textAdded&&null!=(e=this.responder)&&e.deleteInDirection("left"),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=null!=(n=this.responder)?n.getSelectedRange():void 0):void 0},n.prototype.update=function(t){var e;return this.data.update=t,this.isSignificant()&&(e=this.selectPlaceholder())?(this.forgetPlaceholder(),this.range=e):void 0},n.prototype.end=function(t){var e,n,r,i;return this.data.end=t,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.setSelectedRange(this.range),null!=(r=this.responder)&&r.insertString(this.data.end),null!=(i=this.responder)?i.setSelectedRange(this.range[0]+this.data.end.length):void 0):null!=this.data.start||null!=this.data.update?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset()},n.prototype.getEndData=function(){return this.data.end},n.prototype.isEnded=function(){return null!=this.getEndData()},n.prototype.isSignificant=function(){return!e.composesExistingText||this.inputSummary.didInput},n.prototype.canApplyToDocument=function(){var t,e;return 0===(null!=(t=this.data.start)?t.length:void 0)&&(null!=(e=this.data.end)?e.length:void 0)>0&&null!=this.range},n.proxyMethod("inputController.setInputSummary"),n.proxyMethod("inputController.requestRender"),n.proxyMethod("inputController.requestReparse"),n.proxyMethod("responder?.selectionIsExpanded"),n.proxyMethod("responder?.insertPlaceholder"),n.proxyMethod("responder?.selectPlaceholder"),n.proxyMethod("responder?.forgetPlaceholder"),n}(o.BasicObject)}.call(this),function(){var t,e,n,r=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty,a=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=o.dataTransferIsPlainText,e=o.keyEventIsKeyboardCommand,n=o.objectsAreEqual,o.Level2InputController=function(s){function l(){return this.render=r(this.render,this),l.__super__.constructor.apply(this,arguments)}var u,c,d,h,f,p;return i(l,s),l.prototype.elementDidMutate=function(){var t;return this.scheduledRender?this.composing&&null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidAllowUnhandledInput?t.inputControllerDidAllowUnhandledInput():void 0:this.reparse()},l.prototype.scheduleRender=function(){return null!=this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)},l.prototype.render=function(){var t;return cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||null!=(t=this.delegate)&&t.render(),"function"==typeof this.afterRender&&this.afterRender(),this.afterRender=null},l.prototype.reparse=function(){var t;return null!=(t=this.delegate)?t.reparse():void 0},l.prototype.events={keydown:function(t){var n,r,i,o;if(e(t)){if(n=c(t),null!=(o=this.delegate)?o.inputControllerDidReceiveKeyboardCommand(n):void 0)return t.preventDefault()}
2else if(i=t.key,t.altKey&&(i+="+Alt"),t.shiftKey&&(i+="+Shift"),r=this.keys[i])return this.withEvent(t,r)},paste:function(t){var e,n,r,i,s,a,l,u,c;return d(t)?(t.preventDefault(),this.attachFiles(t.clipboardData.files)):h(t)?(t.preventDefault(),n={type:"text/plain",string:t.clipboardData.getData("text/plain")},null!=(r=this.delegate)&&r.inputControllerWillPaste(n),null!=(i=this.responder)&&i.insertString(n.string),this.render(),null!=(s=this.delegate)?s.inputControllerDidPaste(n):void 0):(e=null!=(a=t.clipboardData)?a.getData("URL"):void 0)?(t.preventDefault(),n={type:"URL",href:e,string:e},null!=(l=this.delegate)&&l.inputControllerWillPaste(n),null!=(u=this.responder)&&u.insertText(o.Text.textForStringWithAttributes(n.string,{href:n.href})),this.render(),null!=(c=this.delegate)?c.inputControllerDidPaste(n):void 0):void 0},beforeinput:function(t){var e;return(e=this.inputTypes[t.inputType])?(this.withEvent(t,e),this.scheduleRender()):void 0},input:function(){return o.selectionChangeObserver.reset()},dragstart:function(t){var e,n;return(null!=(e=this.responder)?e.selectionContainsAttachments():void 0)?(t.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:null!=(n=this.responder)?n.getSelectedRange():void 0,point:f(t)}):void 0},dragenter:function(t){return u(t)?t.preventDefault():void 0},dragover:function(t){var e,r;return this.dragging&&(t.preventDefault(),e=f(t),!n(e,this.dragging.point))?(this.dragging.point=e,null!=(r=this.responder)?r.setLocationRangeFromPointRange(e):void 0):void 0},drop:function(t){var e,n,r,i;return this.dragging?(t.preventDefault(),null!=(n=this.delegate)&&n.inputControllerWillMoveText(),null!=(r=this.responder)&&r.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender()):u(t)?(t.preventDefault(),e=f(t),null!=(i=this.responder)&&i.setLocationRangeFromPointRange(e),this.attachFiles(t.dataTransfer.files)):void 0},dragend:function(){var t;return this.dragging?(null!=(t=this.responder)&&t.setSelectedRange(this.dragging.range),this.dragging=null):void 0},compositionend:function(){return this.composing?(this.composing=!1,this.scheduleRender()):void 0}},l.prototype.keys={ArrowLeft:function(){var t,e;return(null!=(t=this.responder)?t.shouldManageMovingCursorInDirection("backward"):void 0)?(this.event.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("backward"):void 0):void 0},ArrowRight:function(){var t,e;return(null!=(t=this.responder)?t.shouldManageMovingCursorInDirection("forward"):void 0)?(this.event.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("forward"):void 0):void 0},Backspace:function(){var t,e,n;return(null!=(t=this.responder)?t.shouldManageDeletingInDirection("backward"):void 0)?(this.event.preventDefault(),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.deleteInDirection("backward"),this.render()):void 0},Tab:function(){var t,e;return(null!=(t=this.responder)?t.canIncreaseNestingLevel():void 0)?(this.event.preventDefault(),null!=(e=this.responder)&&e.increaseNestingLevel(),this.render()):void 0},"Tab+Shift":function(){var t,e;return(null!=(t=this.responder)?t.canDecreaseNestingLevel():void 0)?(this.event.preventDefault(),null!=(e=this.responder)&&e.decreaseNestingLevel(),this.render()):void 0}},l.prototype.inputTypes={deleteByComposition:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut:function(){return this.deleteInDirection("backward")},deleteByDrag:function(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var t;return this.deleteByDragRange=null!=(t=this.responder)?t.getSelectedRange():void 0}))},deleteCompositionText:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent:function(){return this.deleteInDirection("backward")},deleteContentBackward:function(){return this.deleteInDirection("backward")},deleteContentForward:function(){return this.deleteInDirection("forward")},deleteEntireSoftLine:function(){return this.deleteInDirection("forward")},deleteHardLineBackward:function(){return this.deleteInDirection("backward")},deleteHardLineForward:function(){return this.deleteInDirection("forward")},deleteSoftLineBackward:function(){return this.deleteInDirection("backward")},deleteSoftLineForward:function(){return this.deleteInDirection("forward")},deleteWordBackward:function(){return this.deleteInDirection("backward")}
2,deleteWordForward:function(){return this.deleteInDirection("forward")},formatBackColor:function(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold:function(){return this.toggleAttributeIfSupported("bold")},formatFontColor:function(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName:function(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent:function(){var t;return(null!=(t=this.responder)?t.canIncreaseNestingLevel():void 0)?this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.increaseNestingLevel():void 0})):void 0},formatItalic:function(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter:function(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull:function(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft:function(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight:function(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent:function(){var t;return(null!=(t=this.responder)?t.canDecreaseNestingLevel():void 0)?this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.decreaseNestingLevel():void 0})):void 0},formatRemove:function(){return this.withTargetDOMRange((function(){var t,e,n,r;for(t in r=[],null!=(e=this.responder)?e.getCurrentAttributes():void 0)r.push(null!=(n=this.responder)?n.removeCurrentAttribute(t):void 0);return r}))},formatSetBlockTextDirection:function(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection:function(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough:function(){return this.toggleAttributeIfSupported("strike")},formatSubscript:function(){return this.toggleAttributeIfSupported("sub")},formatSuperscript:function(){return this.toggleAttributeIfSupported("sup")},formatUnderline:function(){return this.toggleAttributeIfSupported("underline")},historyRedo:function(){var t;return null!=(t=this.delegate)?t.inputControllerWillPerformRedo():void 0},historyUndo:function(){var t;return null!=(t=this.delegate)?t.inputControllerWillPerformUndo():void 0},insertCompositionText:function(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition:function(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop:function(){var t,e;return(t=this.deleteByDragRange)?(this.deleteByDragRange=null,null!=(e=this.delegate)&&e.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.moveTextFromRange(t):void 0}))):void 0},insertFromPaste:function(){var e,n,r,i,s,a,l,u,c,d;return e=this.event.dataTransfer,s={dataTransfer:e},(n=e.getData("URL"))?(s.type="URL",s.href=n,s.string=(i=e.getData("public.url-name"))?o.squishBreakableWhitespace(i).trim():n,null!=(a=this.delegate)&&a.inputControllerWillPaste(s),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertText(o.Text.textForStringWithAttributes(s.string,{href:s.href})):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(s):void 0}}(this)):t(e)?(s.type="text/plain",s.string=e.getData("text/plain"),null!=(l=this.delegate)&&l.inputControllerWillPaste(s),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertString(s.string):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(s):void 0}}(this)):(r=e.getData("text/html"))?(s.type="text/html",s.html=r,null!=(u=this.delegate)&&u.inputControllerWillPaste(s),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertHTML(s.html):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(s):void 0}}(this)):(null!=(c=e.files)?c.length:void 0)?(s.type="File",s.file=e.files[0],null!=(d=this.delegate)&&d.inputControllerWillPaste(s),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertFile(s.file):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(s):void 0}}(this)):void 0},insertFromYank:function(){return this.insertString(this.event.data)},insertLineBreak:function(){return this.insertString("\n")},insertLink:function(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList:function(){return this.toggleAttributeIfSupported("number")},insertParagraph:function(){var t;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertLineBreak():void 0}))},insertReplacementText:function(){return this.insertString(this.event.dataTransfer.getData("text/plain"),{updatePosition:!1})},insertText:function(){var t,e;return this.insertString(null!=(t=this.event.data)?t:null!=(e=this.event.dataTransfer)?e.getData("text/plain"):void 0)},insertTranspose:function(){return this.insertString(this.event.data)},insertUnorderedList:function(){return this.toggleAttributeIfSupported("bullet")}},l.prototype.insertString=function(t,e){var n;return null==t&&(t=""),null!=(n=this.delegate)&&n.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var n;return null!=(n=this.responder)?n.insertString(t,e):void 0}))},l.prototype.toggleAttributeIfSupported=function(t){var e;return a.call(o.getAllAttributeNames(),t)>=0?(null!=(e=this.delegate)&&e.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.toggleCurrentAttribute(t):void 0}))):void 0},l.prototype.activateAttributeIfSupported=function(t,e){var n;return a.call(o.getAllAttributeNames(),t)>=0?(null!=(n=this.delegate)&&n.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var n;return null!=(n=this.responder)?n.setCurrentAttribute(t,e):void 0}))):void 0},l.prototype.deleteInDirection=function(t,e){var n,r,i;return(null!=e?e:{recordUndoEntry:!0}).recordUndoEntry&&null!=(i=this.delegate)&&i.inputControllerWillPerformTyping(),r=function(e){return function(){var n;return null!=(n=e.responder)?n.deleteInDirection(t):void 0}}(this),(n=this.getTargetDOMRange({minLength:2}))?this.withTargetDOMRange(n,r):r()},l.prototype.withTargetDOMRange=function(t,e){var n;return"function"==typeof t&&(e=t,t=this.getTargetDOMRange()),t?null!=(n=this.responder)?n.withTargetDOMRange(t,e.bind(this)):void 0:(o.selectionChangeObserver.reset(),e.call(this))},l.prototype.getTargetDOMRange=function(t){var e,n,r,i;return r=(null!=t?t:{minLength:0}).minLength,(i="function"==typeof(e=this.event).getTargetRanges?e.getTargetRanges():void 0)&&i.length&&(n=p(i[0]),0===r||n.toString().length>=r)?n:void 0},p=function(t){var e;return(e=document.createRange()).setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),e},l.prototype.withEvent=function(t,e){var n;this.event=t;try{n=e.call(this)}finally{this.event=null}return n},u=function(t){var e,n;return a.call(null!=(e=null!=(n=t.dataTransfer)?n.types:void 0)?e:[],"Files")>=0},d=function(t){var e;
2return(e=t.clipboardData)?a.call(e.types,"Files")>=0&&1===e.types.length&&e.files.length>=1:void 0},h=function(t){var e;return(e=t.clipboardData)?a.call(e.types,"text/plain")>=0&&1===e.types.length:void 0},c=function(t){var e;return e=[],t.altKey&&e.push("alt"),t.shiftKey&&e.push("shift"),e.push(t.key),e},f=function(t){return{x:t.clientX,y:t.clientY}},l}(o.InputController)}.call(this),function(){var t,e,n,r,i,s,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},d=function(t,e){function n(){this.constructor=t}for(var r in e)h.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h={}.hasOwnProperty;e=o.defer,n=o.escapeHTML,r=o.handleEvent,a=o.makeElement,u=o.tagName,l=o.config,s=l.lang,t=l.css,i=l.keyNames,o.AttachmentEditorController=function(l){function h(t,e,n,r){this.attachmentPiece=t,this.element=e,this.container=n,this.options=null!=r?r:{},this.didBlurCaption=c(this.didBlurCaption,this),this.didChangeCaption=c(this.didChangeCaption,this),this.didInputCaption=c(this.didInputCaption,this),this.didKeyDownCaption=c(this.didKeyDownCaption,this),this.didClickActionButton=c(this.didClickActionButton,this),this.didClickToolbar=c(this.didClickToolbar,this),this.attachment=this.attachmentPiece.attachment,"a"===u(this.element)&&(this.element=this.element.firstChild),this.install()}var f;return d(h,l),f=function(t){return function(){var e;return(e=t.apply(this,arguments)).do(),null==this.undos&&(this.undos=[]),this.undos.push(e.undo)}},h.prototype.install=function(){return this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()?this.installCaptionEditor():void 0},h.prototype.uninstall=function(){var t,e;for(this.savePendingCaption();e=this.undos.pop();)e();return null!=(t=this.delegate)?t.didUninstallAttachmentEditor(this):void 0},h.prototype.savePendingCaption=function(){var t,e,n;return null!=this.pendingCaption?(t=this.pendingCaption,this.pendingCaption=null,t?null!=(e=this.delegate)&&"function"==typeof e.attachmentEditorDidRequestUpdatingAttributesForAttachment?e.attachmentEditorDidRequestUpdatingAttributesForAttachment({caption:t},this.attachment):void 0:null!=(n=this.delegate)&&"function"==typeof n.attachmentEditorDidRequestRemovingAttributeForAttachment?n.attachmentEditorDidRequestRemovingAttributeForAttachment("caption",this.attachment):void 0):void 0},h.prototype.makeElementMutable=f((function(){return{do:function(t){return function(){return t.element.dataset.trixMutable=!0}}(this),undo:function(t){return function(){return delete t.element.dataset.trixMutable}}(this)}})),h.prototype.addToolbar=f((function(){var e,i,l;return(e=a({tagName:"div",className:t.attachmentToolbar,data:{trixMutable:!0}})).innerHTML='<div class="trix-button-row">\n  <span class="trix-button-group trix-button-group--actions">\n    <button type="button" data-trix-action="remove" class="trix-button trix-button--remove" title="'+s.remove+'">'+s.remove+"</button>\n  </span>\n</div>",this.attachment.isPreviewable()&&(i=n(this.attachment.getFilename()),l=n(this.attachment.getFormattedFilesize()),e.innerHTML+='<div class="'+t.attachmentMetadataContainer+'">\n  <span class="'+t.attachmentMetadata+'">\n    <span class="'+t.attachmentName+'" title="'+i+'">'+i+'</span>\n    <span class="'+t.attachmentSize+'">'+l+"</span>\n  </span>\n</div>"),r("click",{onElement:e,withCallback:this.didClickToolbar}),r("click",{onElement:e,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),{do:function(t){return function(){return t.element.appendChild(e)}}(this),undo:function(){return o.removeNode(e)}}})),h.prototype.installCaptionEditor=f((function(){var n,i,l,u,c;return(u=a({tagName:"textarea",className:t.attachmentCaptionEditor,attributes:{placeholder:s.captionPlaceholder},data:{trixMutable:!0}})).value=this.attachmentPiece.getCaption(),(c=u.cloneNode()).classList.add("trix-autoresize-clone"),c.tabIndex=-1,n=function(){return c.value=u.value,u.style.height=c.scrollHeight+"px"},r("input",{onElement:u,withCallback:n}),r("input",{onElement:u,withCallback:this.didInputCaption}),r("keydown",{onElement:u,withCallback:this.didKeyDownCaption}),r("change",{onElement:u,withCallback:this.didChangeCaption}),r("blur",{onElement:u,withCallback:this.didBlurCaption}),l=this.element.querySelector("figcaption"),i=l.cloneNode(),{do:function(r){return function(){return l.style.display="none",i.appendChild(u),i.appendChild(c),i.classList.add(t.attachmentCaption+"--editing"),l.parentElement.insertBefore(i,l),n(),r.options.editCaption?e((function(){return u.focus()})):void 0}}(this),undo:function(){return o.removeNode(i),l.style.display=null}}})),h.prototype.didClickToolbar=function(t){return t.preventDefault(),t.stopPropagation()},h.prototype.didClickActionButton=function(t){var e;if("remove"===t.target.getAttribute("data-trix-action"))return null!=(e=this.delegate)?e.attachmentEditorDidRequestRemovalOfAttachment(this.attachment):void 0},h.prototype.didKeyDownCaption=function(t){var e;return"return"===i[t.keyCode]?(t.preventDefault(),this.savePendingCaption(),null!=(e=this.delegate)&&"function"==typeof e.attachmentEditorDidRequestDeselectingAttachment?e.attachmentEditorDidRequestDeselectingAttachment(this.attachment):void 0):void 0},h.prototype.didInputCaption=function(t){return this.pendingCaption=t.target.value.replace(/\s/g," ").trim()},h.prototype.didChangeCaption=function(){return this.savePendingCaption()},h.prototype.didBlurCaption=function(){return this.savePendingCaption()},h}(o.BasicObject)}.call(this),function(){var t,e,n,r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;n=o.makeElement,t=o.config.css,o.AttachmentView=function(i){function s(){s.__super__.constructor.apply(this,arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}var a;return r(s,i),s.attachmentSelector="[data-trix-attachment]",s.prototype.createContentNodes=function(){return[]},s.prototype.createNodes=function(){var e,r,i,o,s,l,u;if(e=o=n({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),(r=this.getHref())&&(o=n({tagName:"a",editable:!1,attributes:{href:r,tabindex:-1}}),e.appendChild(o)),this.attachment.hasContent())o.innerHTML=this.attachment.getContent();else for(i=0,s=(u=this.createContentNodes()).length;s>i;i++)l=u[i],o.appendChild(l);return o.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=n({tagName:"progress",attributes:{class:t.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),e.appendChild(this.progressElement)),[a("left"),e,a("right")]},s.prototype.createCaptionElement=function(){var e,r,i,o,s,a,l;return i=n({tagName:"figcaption",className:t.attachmentCaption}),(e=this.attachmentPiece.getCaption())?(i.classList.add(t.attachmentCaption+"--edited"),i.textContent=e):((r=this.getCaptionConfig()).name&&(o=this.attachment.getFilename()),r.size&&(a=this.attachment.getFormattedFilesize()),o&&(s=n({tagName:"span",className:t.attachmentName,textContent:o}),i.appendChild(s)),a&&(o&&i.appendChild(document.createTextNode(" ")),l=n({tagName:"span",className:t.attachmentSize,textContent:a}),i.appendChild(l))),i},s.prototype.getClassName=function(){var e,n;return n=[t.attachment,t.attachment+"--"+this.attachment.getType()],(e=this.attachment.getExtension())&&n.push(t.attachment+"--"+e),n.join(" ")},s.prototype.getData=function(){var t,e;return e={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},(t=this.attachmentPiece.attributes).isEmpty()||(e.trixAttributes=JSON.stringify(t)),this.attachment.isPending()&&(e.trixSerialize=!1),e},s.prototype.getHref=function(){return e(this.attachment.getContent(),"a")?void 0:this.attachment.getHref()},s.prototype.getCaptionConfig=function(){var t,e,n;return n=this.attachment.getType(),t=o.copyObject(null!=(e=o.config.attachments[n])?e.caption:void 0),"file"===n&&(t.name=!0),t},s.prototype.findProgressElement=function(){var t;return null!=(t=this.findElement())?t.querySelector("progress"):void 0},a=function(t){return n({tagName:"span",textContent:o.ZERO_WIDTH_SPACE,data:{trixCursorTarget:t,trixSerialize:!1}})},s.prototype.attachmentDidChangeUploadProgress=function(){var t,e;return e=this.attachment.getUploadProgress(),null!=(t=this.findProgressElement())?t.value=e:void 0},s}(o.ObjectView),e=function(t,e){var r;return(r=n("div")).innerHTML=null!=t?t:"",r.querySelector(e)}}.call(this),function(){var t,e=function(t,e){function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},n={}.hasOwnProperty;t=o.makeElement,o.PreviewableAttachmentView=function(n){function r(){r.__super__.constructor.apply(this,arguments),this.attachment.previewDelegate=this}return e(r,n),r.prototype.createContentNodes=function(){return this.image=t({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]},r.prototype.createCaptionElement=function(){var t;return(t=r.__super__.createCaptionElement.apply(this,arguments)).textContent||t.setAttribute("data-trix-placeholder",o.config.lang.captionPlaceholder),t},r.prototype.refresh=function(t){var e;return null==t&&(t=null!=(e=this.findElement())?e.querySelector("img"):void 0),t?this.updateAttributesForImage(t):void 0},r.prototype.updateAttributesForImage=function(t){var e,n,r,i,o,s;return o=this.attachment.getURL(),n=this.attachment.getPreviewURL(),t.src=n||o,n===o?t.removeAttribute("data-trix-serialized-attributes"):(r=JSON.stringify({src:o}),t.setAttribute("data-trix-serialized-attributes",r)),s=this.attachment.getWidth(),e=this.attachment.getHeight(),null!=s&&(t.width=s),null!=e&&(t.height=e),i=["imageElement",this.attachment.id,t.src,t.width,t.height].join("/"),t.dataset.trixStoreKey=i},r.prototype.attachmentDidChangeAttributes=function(){return this.refresh(this.image),this.refresh()},r}(o.AttachmentView)}.call(this),function(){var t,e,n,r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;n=o.makeElement,t=o.findInnerElement,e=o.getTextConfig,o.PieceView=function(i){function s(){var t;s.__super__.constructor.apply(this,arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),t=this.options,this.textConfig=t.textConfig,this.context=t.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}var a;return r(s,i),s.prototype.createNodes=function(){var e,n,r,i,o,s;if(s=this.attachment?this.createAttachmentNodes():this.createStringNodes(),e=this.createElement()){for(r=t(e),n=0,i=s.length;i>n;n++)o=s[n],r.appendChild(o);s=[e]}return s},s.prototype.createAttachmentNodes=function(){var t;return t=this.attachment.isPreviewable()?o.PreviewableAttachmentView:o.AttachmentView,this.createChildView(t,this.piece.attachment,{piece:this.piece}).getNodes()},s.prototype.createStringNodes=function(){var t,e,r,i,o,s,a,l,u;if(null!=(a=this.textConfig)?a.plaintext:void 0)return[document.createTextNode(this.string)];for(s=[],r=e=0,i=(l=this.string.split("\n")).length;i>e;r=++e)u=l[r],r>0&&(t=n("br"),s.push(t)),u.length&&(o=document.createTextNode(this.preserveSpaces(u)),s.push(o));return s},s.prototype.createElement=function(){var t,r,i,o,s,a,l,u,c;for(o in u={},a=this.attributes)if(c=a[o],(t=e(o))&&(t.tagName&&(s=n(t.tagName),i?(i.appendChild(s),i=s):r=i=s),t.styleProperty&&(u[t.styleProperty]=c),t.style))for(o in l=t.style)c=l[o],u[o]=c;if(Object.keys(u).length)for(o in null==r&&(r=n("span")),u)c=u[o],r.style[o]=c;return r},s.prototype.createContainerElement=function(){var t,r,i,o,s;for(i in o=this.attributes)if(s=o[i],(r=e(i))&&r.groupTagName)return(t={})[i]=s,n(r.groupTagName,t)},a=o.NON_BREAKING_SPACE,s.prototype.preserveSpaces=function(t){return this.context.
2isLast&&(t=t.replace(/\ $/,a)),t=t.replace(/(\S)\ {3}(\S)/g,"$1 "+a+" $2").replace(/\ {2}/g,a+" ").replace(/\ {2}/g," "+a),(this.context.isFirst||this.context.followsWhitespace)&&(t=t.replace(/^\ /,a)),t},s}(o.ObjectView)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.TextView=function(e){function n(){n.__super__.constructor.apply(this,arguments),this.text=this.object,this.textConfig=this.options.textConfig}var r;return t(n,e),n.prototype.createNodes=function(){var t,e,n,i,s,a,l,u,c,d;for(a=[],i=(u=o.ObjectGroup.groupObjects(this.getPieces())).length-1,n=e=0,s=u.length;s>e;n=++e)l=u[n],t={},0===n&&(t.isFirst=!0),n===i&&(t.isLast=!0),r(c)&&(t.followsWhitespace=!0),d=this.findOrCreateCachedChildView(o.PieceView,l,{textConfig:this.textConfig,context:t}),a.push.apply(a,d.getNodes()),c=l;return a},n.prototype.getPieces=function(){var t,e,n,r,i;for(i=[],t=0,e=(r=this.text.getPieces()).length;e>t;t++)(n=r[t]).hasAttribute("blockBreak")||i.push(n);return i},r=function(t){return/\s$/.test(null!=t?t.toString():void 0)},n}(o.ObjectView)}.call(this),function(){var t,e,n,r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;n=o.makeElement,e=o.getBlockConfig,t=o.config.css,o.BlockView=function(i){function s(){s.__super__.constructor.apply(this,arguments),this.block=this.object,this.attributes=this.block.getAttributes()}return r(s,i),s.prototype.createNodes=function(){var t,r,i,s,a,l,u,c;if(a=[document.createComment("block")],this.block.isEmpty()?a.push(n("br")):(u=null!=(l=e(this.block.getLastAttribute()))?l.text:void 0,c=this.findOrCreateCachedChildView(o.TextView,this.block.text,{textConfig:u}),a.push.apply(a,c.getNodes()),this.shouldAddExtraNewlineElement()&&a.push(n("br"))),this.attributes.length)return a;for(t=n(o.config.blockAttributes.default.tagName),r=0,i=a.length;i>r;r++)s=a[r],t.appendChild(s);return[t]},s.prototype.createContainerElement=function(r){var i,o,s;return i=this.attributes[r],o={tagName:e(i).tagName},"attachmentGallery"===i&&(s=this.block.getBlockBreakPosition(),o.className=t.attachmentGallery+" "+t.attachmentGallery+"--"+s),n(o)},s.prototype.shouldAddExtraNewlineElement=function(){return/\n\n$/.test(this.block.toString())},s}(o.ObjectView)}.call(this),function(){var t,e,n=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;t=o.defer,e=o.makeElement,o.DocumentView=function(r){function i(){i.__super__.constructor.apply(this,arguments),this.element=this.options.element,this.elementStore=new o.ElementStore,this.setDocument(this.object)}var s,a,l;return n(i,r),i.render=function(t){var n,r;
2return(r=new this(t,{element:n=e("div")})).render(),r.sync(),n},i.prototype.setDocument=function(t){return t.isEqualTo(this.document)?void 0:this.document=this.object=t},i.prototype.render=function(){var t,n,r,i,s,a,l;if(this.childViews=[],this.shadowElement=e("div"),!this.document.isEmpty()){for(a=[],t=0,n=(s=o.ObjectGroup.groupObjects(this.document.getBlocks(),{asTree:!0})).length;n>t;t++)i=s[t],l=this.findOrCreateCachedChildView(o.BlockView,i),a.push(function(){var t,e,n,i;for(i=[],t=0,e=(n=l.getNodes()).length;e>t;t++)r=n[t],i.push(this.shadowElement.appendChild(r));return i}.call(this));return a}},i.prototype.isSynced=function(){return s(this.shadowElement,this.element)},i.prototype.sync=function(){var t;for(t=this.createDocumentFragmentForSync();this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(t),this.didSync()},i.prototype.didSync=function(){return this.elementStore.reset(a(this.element)),t(function(t){return function(){return t.garbageCollectCachedViews()}}(this))},i.prototype.createDocumentFragmentForSync=function(){var t,e,n,r,i,o,s,l,u,c;for(e=document.createDocumentFragment(),n=0,i=(l=this.shadowElement.childNodes).length;i>n;n++)s=l[n],e.appendChild(s.cloneNode(!0));for(r=0,o=(u=a(e)).length;o>r;r++)t=u[r],(c=this.elementStore.remove(t))&&t.parentNode.replaceChild(c,t);return e},a=function(t){return t.querySelectorAll("[data-trix-store-key]")},s=function(t,e){return l(t.innerHTML)===l(e.innerHTML)},l=function(t){return t.replace(/&nbsp;/g," ")},i}(o.ObjectView)}.call(this),function(){var t,e,n,r,i,s=function(t,e){return function(){return t.apply(e,arguments)}},a=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l={}.hasOwnProperty;n=o.findClosestElementFromNode,r=o.handleEvent,i=o.innerElementIsActive,e=o.defer,t=o.AttachmentView.attachmentSelector,o.CompositionController=function(l){function u(e,n){this.element=e,this.composition=n,this.didClickAttachment=s(this.didClickAttachment,this),this.didBlur=s(this.didBlur,this),this.didFocus=s(this.didFocus,this),this.documentView=new o.DocumentView(this.composition.document,{element:this.element}),r("focus",{onElement:this.element,withCallback:this.didFocus}),r("blur",{onElement:this.element,withCallback:this.didBlur}),r("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),r("mousedown",{onElement:this.element,matchingSelector:t,withCallback:this.didClickAttachment}),r("click",{onElement:this.element,matchingSelector:"a"+t,preventDefault:!0})}return a(u,l),u.prototype.didFocus=function(){var t,e,n;return t=function(t){return function(){var e;return t.focused?void 0:(t.focused=!0,null!=(e=t.delegate)&&"function"==typeof e.compositionControllerDidFocus?e.compositionControllerDidFocus():void 0)}}(this),null!=(e=null!=(n=this.blurPromise)?n.then(t):void 0)?e:t()},u.prototype.didBlur=function(){return this.blurPromise=new Promise(function(t){return function(n){return e((function(){var e;return i(t.element)||(t.focused=null,null!=(e=t.delegate)&&"function"==typeof e.compositionControllerDidBlur&&e.compositionControllerDidBlur()),t.blurPromise=null,n()}))}}(this))},u.prototype.didClickAttachment=function(t,e){var r,i,o;return r=this.findAttachmentForElement(e),i=null!=n(t.target,{matchingSelector:"figcaption"}),null!=(o=this.delegate)&&"function"==typeof o.compositionControllerDidSelectAttachment?o.compositionControllerDidSelectAttachment(r,{editCaption:i}):void 0},u.prototype.getSerializableElement=function(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element},u.prototype.render=function(){var t,e,n;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&(null!=(t=this.delegate)&&"function"==typeof t.compositionControllerWillSyncDocumentView&&t.compositionControllerWillSyncDocumentView(),this.documentView.sync(),null!=(e=this.delegate)&&"function"==typeof e.compositionControllerDidSyncDocumentView&&e.compositionControllerDidSyncDocumentView()),null!=(n=this.delegate)&&"function"==typeof n.compositionControllerDidRender?n.compositionControllerDidRender():void 0},u.prototype.rerenderViewForObject=function(t){return this.invalidateViewForObject(t),this.render()},u.prototype.invalidateViewForObject=function(t){return this.documentView.invalidateViewForObject(t)},u.prototype.isViewCachingEnabled=function(){return this.documentView.isViewCachingEnabled()},u.prototype.enableViewCaching=function(){return this.documentView.enableViewCaching()},u.prototype.disableViewCaching=function(){return this.documentView.disableViewCaching()},u.prototype.refreshViewCache=function(){return this.documentView.garbageCollectCachedViews()},u.prototype.isEditingAttachment=function(){return null!=this.attachmentEditor},u.prototype.installAttachmentEditorForAttachment=function(t,e){var n,r,i;if((null!=(i=this.attachmentEditor)?i.attachment:void 0)!==t&&(r=this.documentView.findElementForOb
2ject(t)))return this.uninstallAttachmentEditor(),n=this.composition.document.getAttachmentPieceForAttachment(t),this.attachmentEditor=new o.AttachmentEditorController(n,r,this.element,e),this.attachmentEditor.delegate=this},u.prototype.uninstallAttachmentEditor=function(){var t;return null!=(t=this.attachmentEditor)?t.uninstall():void 0},u.prototype.didUninstallAttachmentEditor=function(){return this.attachmentEditor=null,this.render()},u.prototype.attachmentEditorDidRequestUpdatingAttributesForAttachment=function(t,e){var n;return null!=(n=this.delegate)&&"function"==typeof n.compositionControllerWillUpdateAttachment&&n.compositionControllerWillUpdateAttachment(e),this.composition.updateAttributesForAttachment(t,e)},u.prototype.attachmentEditorDidRequestRemovingAttributeForAttachment=function(t,e){var n;return null!=(n=this.delegate)&&"function"==typeof n.compositionControllerWillUpdateAttachment&&n.compositionControllerWillUpdateAttachment(e),this.composition.removeAttributeForAttachment(t,e)},u.prototype.attachmentEditorDidRequestRemovalOfAttachment=function(t){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionControllerDidRequestRemovalOfAttachment?e.compositionControllerDidRequestRemovalOfAttachment(t):void 0},u.prototype.attachmentEditorDidRequestDeselectingAttachment=function(t){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionControllerDidRequestDeselectingAttachment?e.compositionControllerDidRequestDeselectingAttachment(t):void 0},u.prototype.canSyncDocumentView=function(){return!this.isEditingAttachment()},u.prototype.findAttachmentForElement=function(t){return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId,10))},u}(o.BasicObject)}.call(this),function(){var t,e,n,r=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;e=o.handleEvent,n=o.triggerEvent,t=o.findClosestElementFromNode,o.ToolbarController=function(o){function s(t){this.element=t,this.didKeyDownDialogInput=r(this.didKeyDownDialogInput,this),this.didClickDialogButton=r(this.didClickDialogButton,this),this.didClickAttributeButton=r(this.didClickAttributeButton,this),this.didClickActionButton=r(this.didClickActionButton,this),this.attributes={},this.actions={},this.resetDialogInputs(),e("mousedown",{onElement:this.element,matchingSelector:a,withCallback:this.didClickActionButton}),e("mousedown",{onElement:this.element,matchingSelector:l,withCallback:this.didClickAttributeButton}),e("click",{onElement:this.element,matchingSelector:g,preventDefault:!0}),e("click",{onElement:this.element,matchingSelector:u,withCallback:this.didClickDialogButton}),e("keydown",{onElement:this.element,matchingSelector:c,withCallback:this.didKeyDownDialogInput})}var a,l,u,c,d,h,f,p,m,g;return i(s,o),g=(l="[data-trix-attribute]")+", "+(a="[data-trix-action]"),(d="[data-trix-dialog]")+"[data-trix-active]",u=d+" [data-trix-method]",c=d+" [data-trix-input]",s.prototype.didClickActionButton=function(t,e){var n,r,i;return null!=(r=this.delegate)&&r.toolbarDidClickButton(),t.preventDefault(),n=h(e),this.getDialog(n)?this.toggleDialog(n):null!=(i=this.delegate)?i.toolbarDidInvokeAction(n):void 0},s.prototype.didClickAttributeButton=function(t,e){var n,r,i;return null!=(r=this.delegate)&&r.toolbarDidClickButton(),t.preventDefault(),n=f(e),this.getDialog(n)?this.toggleDialog(n):null!=(i=this.delegate)&&i.toolbarDidToggleAttribute(n),this.refreshAttributeButtons()},s.prototype.didClickDialogButton=function(e,n){var r;return r=t(n,{matchingSelector:d}),this[n.getAttribute("data-trix-method")].call(this,r)},s.prototype.didKeyDownDialogInput=function(t,e){var n,r;return 13===t.keyCode&&(t.preventDefault(),n=e.getAttribute("name"),r=this.getDialog(n),this.setAttribute(r)),27===t.keyCode?(t.preventDefault(),this.hideDialog()):void 0},s.prototype.updateActions=function(t){return this.actions=t,this.refreshActionButtons()},s.prototype.refreshActionButtons=function(){return this.eachActionButton(function(t){return function(e,n){return e.disabled=!1===t.actions[n]}}(this))},s.prototype.eachActionButton=function(t){var e,n,r,i,o;for(o=[],n=0,r=(i=this.element.querySelectorAll(a)).length;r>n;n++)e=i[n],o.push(t(e,h(e)));return o},s.prototype.updateAttributes=function(t){return this.attributes=t,this.refreshAttributeButtons()},s.prototype.refreshAttributeButtons=function(){return this.eachAttributeButton(function(t){return function(e,n){return e.disabled=!1===t.attributes[n],t.attributes[n]||t.dialogIsVisible(n)?(e.setAttribute("data-trix-active",""),e.classList.add("trix-active")):(e.removeAttribute("data-trix-active"),e.classList.remove("trix-active"))}}(this))},s.prototype.eachAttributeButton=function(t){var e,n,r,i,o;for(o=[],n=0,r=(i=this.element.querySelectorAll(l)).length;r>n;n++)e=i[n],o.push(t(e,f(e)));return o},s.prototype.applyKeyboardCommand=function(t){var e,r,i,o,s,a;for(o=JSON.stringify(t.sort()),i=0,s=(a=this.element.querySelectorAll("[data-trix-key]")).length;s>i;i++)if(r=(e=a[i]).getAttribute("data-trix-key").split("+"),JSON.stringify(r.sort())===o)return n("mousedown",{onElement:e}),!0;return!1},s.prototype.dialogIsVisible=function(t){var e;return(e=this.getDialog(t))?e.hasAttribute("data-trix-active"):void 0},s.prototype.toggleDialog=function(t){return this.dialogIsVisible(t)?this.hideDialog():this.showDialog(t)}
2,s.prototype.showDialog=function(t){var e,n,r,i,o,s,a,l,u;for(this.hideDialog(),null!=(s=this.delegate)&&s.toolbarWillShowDialog(),(n=this.getDialog(t)).setAttribute("data-trix-active",""),n.classList.add("trix-active"),r=0,o=(a=n.querySelectorAll("input[disabled]")).length;o>r;r++)a[r].removeAttribute("disabled");return(e=f(n))&&(i=m(n,t))&&(i.value=null!=(l=this.attributes[e])?l:"",i.select()),null!=(u=this.delegate)?u.toolbarDidShowDialog(t):void 0},s.prototype.setAttribute=function(t){var e,n,r;return e=f(t),(n=m(t,e)).willValidate&&!n.checkValidity()?(n.setAttribute("data-trix-validate",""),n.classList.add("trix-validate"),n.focus()):(null!=(r=this.delegate)&&r.toolbarDidUpdateAttribute(e,n.value),this.hideDialog())},s.prototype.removeAttribute=function(t){var e,n;return e=f(t),null!=(n=this.delegate)&&n.toolbarDidRemoveAttribute(e),this.hideDialog()},s.prototype.hideDialog=function(){var t,e;return(t=this.element.querySelector("[data-trix-dialog][data-trix-active]"))?(t.removeAttribute("data-trix-active"),t.classList.remove("trix-active"),this.resetDialogInputs(),null!=(e=this.delegate)?e.toolbarDidHideDialog(p(t)):void 0):void 0},s.prototype.resetDialogInputs=function(){var t,e,n,r,i;for(i=[],t=0,n=(r=this.element.querySelectorAll(c)).length;n>t;t++)(e=r[t]).setAttribute("disabled","disabled"),e.removeAttribute("data-trix-validate"),i.push(e.classList.remove("trix-validate"));return i},s.prototype.getDialog=function(t){return this.element.querySelector("[data-trix-dialog="+t+"]")},m=function(t,e){return null==e&&(e=f(t)),t.querySelector("[data-trix-input][name='"+e+"']")},h=function(t){return t.getAttribute("data-trix-action")},f=function(t){var e;return null!=(e=t.getAttribute("data-trix-attribute"))?e:t.getAttribute("data-trix-dialog-attribute")},p=function(t){return t.getAttribute("data-trix-dialog")},s}(o.BasicObject)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.ImagePreloadOperation=function(e){function n(t){this.url=t}return t(n,e),n.prototype.perform=function(t){var e;return(e=new Image).onload=function(n){return function(){return e.width=n.width=e.naturalWidth,e.height=n.height=e.naturalHeight,t(!0,e)}}(this),e.onerror=function(){return t(!1)},e.src=this.url},n}(o.Operation)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e=function(t,e){function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},n={}.hasOwnProperty;o.Attachment=function(n){function r(e){null==e&&(e={}),this.releaseFile=t(this.releaseFile,this),r.__super__.constructor.apply(this,arguments),this.attributes=o.Hash.box(e),this.didChangeAttributes()}return e(r,n),r.previewablePattern=/^image(\/(gif|png|jpe?g)|$)/,r.attachmentForFile=function(t){var e;return(e=new this(this.attributesForFile(t))).setFile(t),e},r.attributesForFile=function(t){return new o.Hash({filename:t.name,filesize:t.size,contentType:t.type})},r.fromJSON=function(t){return new this(t)},r.prototype.getAttribute=function(t){return this.attributes.get(t)},r.prototype.hasAttribute=function(t){return this.attributes.has(t)},r.prototype.getAttributes=function(){return this.attributes.toObject()},r.prototype.setAttributes=function(t){var e,n,r;return null==t&&(t={}),e=this.attributes.merge(t),this.attributes.isEqualTo(e)?void 0:(this.attributes=e,this.didChangeAttributes(),null!=(n=this.previewDelegate)&&"function"==typeof n.attachmentDidChangeAttributes&&n.attachmentDidChangeAttributes(this),null!=(r=this.delegate)&&"function"==typeof r.attachmentDidChangeAttributes?r.attachmentDidChangeAttributes(this):void 0)},r.prototype.didChangeAttributes=function(){return this.isPreviewable()?this.preloadURL():void 0},r.prototype.isPending=function(){return null!=this.file&&!(this.getURL()||this.getHref())},r.prototype.isPreviewable=function(){return this.attributes.has("previewable")?this.attributes.get("previewable"):this.constructor.previewablePattern.test(this.getContentType())},r.prototype.getType=function(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"},r.prototype.getURL=function(){return this.attributes.get("url")},r.prototype.getHref=function(){return this.attributes.get("href")},r.prototype.getFilename=function(){var t;return null!=(t=this.attributes.get("filename"))?t:""},r.prototype.getFilesize=function(){return this.attributes.get("filesize")},r.prototype.getFormattedFilesize=function(){var t;
2return"number"==typeof(t=this.attributes.get("filesize"))?o.config.fileSize.formatter(t):""},r.prototype.getExtension=function(){var t;return null!=(t=this.getFilename().match(/\.(\w+)$/))?t[1].toLowerCase():void 0},r.prototype.getContentType=function(){return this.attributes.get("contentType")},r.prototype.hasContent=function(){return this.attributes.has("content")},r.prototype.getContent=function(){return this.attributes.get("content")},r.prototype.getWidth=function(){return this.attributes.get("width")},r.prototype.getHeight=function(){return this.attributes.get("height")},r.prototype.getFile=function(){return this.file},r.prototype.setFile=function(t){return this.file=t,this.isPreviewable()?this.preloadFile():void 0},r.prototype.releaseFile=function(){return this.releasePreloadedFile(),this.file=null},r.prototype.getUploadProgress=function(){var t;return null!=(t=this.uploadProgress)?t:0},r.prototype.setUploadProgress=function(t){var e;return this.uploadProgress!==t?(this.uploadProgress=t,null!=(e=this.uploadProgressDelegate)&&"function"==typeof e.attachmentDidChangeUploadProgress?e.attachmentDidChangeUploadProgress(this):void 0):void 0},r.prototype.toJSON=function(){return this.getAttributes()},r.prototype.getCacheKey=function(){return[r.__super__.getCacheKey.apply(this,arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")},r.prototype.getPreviewURL=function(){return this.previewURL||this.preloadingURL},r.prototype.setPreviewURL=function(t){var e,n;return t!==this.getPreviewURL()?(this.previewURL=t,null!=(e=this.previewDelegate)&&"function"==typeof e.attachmentDidChangeAttributes&&e.attachmentDidChangeAttributes(this),null!=(n=this.delegate)&&"function"==typeof n.attachmentDidChangePreviewURL?n.attachmentDidChangePreviewURL(this):void 0):void 0},r.prototype.preloadURL=function(){return this.preload(this.getURL(),this.releaseFile)},r.prototype.preloadFile=function(){return this.file?(this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)):void 0},r.prototype.releasePreloadedFile=function(){return this.fileObjectURL?(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null):void 0},r.prototype.preload=function(t,e){return t&&t!==this.getPreviewURL()?(this.preloadingURL=t,new o.ImagePreloadOperation(t).then(function(n){return function(r){var i,o;return o=r.width,i=r.height,n.getWidth()&&n.getHeight()||n.setAttributes({width:o,height:i}),n.preloadingURL=null,n.setPreviewURL(t),"function"==typeof e?e():void 0}}(this)).catch(function(t){return function(){return t.preloadingURL=null,"function"==typeof e?e():void 0}}(this))):void 0},r}(o.Object)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.Piece=function(e){function n(t,e){null==e&&(e={}),n.__super__.constructor.apply(this,arguments),this.attributes=o.Hash.box(e)}return t(n,e),n.types={},n.registerType=function(t,e){return e.type=t,this.types[t]=e},n.fromJSON=function(t){var e;return(e=this.types[t.type])?e.fromJSON(t):void 0},n.prototype.copyWithAttributes=function(t){return new this.constructor(this.getValue(),t)},n.prototype.copyWithAdditionalAttributes=function(t){return this.copyWithAttributes(this.attributes.merge(t))},n.prototype.copyWithoutAttribute=function(t){return this.copyWithAttributes(this.attributes.remove(t))},n.prototype.copy=function(){return this.copyWithAttributes(this.attributes)},n.prototype.getAttribute=function(t){return this.attributes.get(t)},n.prototype.getAttributesHash=function(){return this.attributes},n.prototype.getAttributes=function(){return this.attributes.toObject()},n.prototype.getCommonAttributes=function(){var t,e,n;return(n=pieceList.getPieceAtIndex(0))?(t=n.attributes,e=t.getKeys(),pieceList.eachPiece((function(n){return e=t.getKeysCommonToHash(n.attributes),t=t.slice(e)})),t.toObject()):{}},n.prototype.hasAttribute=function(t){return this.attributes.has(t)},n.prototype.hasSameStringValueAsPiece=function(t){return null!=t&&this.toString()===t.toString()},n.prototype.hasSameAttributesAsPiece=function(t){return null!=t&&(this.attributes===t.attributes||this.attributes.isEqualTo(t.attributes))},n.prototype.isBlockBreak=function(){return!1},n.prototype.isEqualTo=function(t){return n.__super__.isEqualTo.apply(this,arguments)||this.hasSameConstructorAs(t)&&this.hasSameStringValueAsPiece(t)&&this.hasSameAttributesAsPiece(t)},n.prototype.isEmpty=function(){return 0===this.length},n.prototype.isSerializable=function(){return!0},n.prototype.toJSON=function(){return{type:this.constructor.type,attributes:this.getAttributes()}},n.prototype.contentsForInspection=function(){return{type:this.constructor.type,attributes:this.attributes.inspect()}},n.prototype.canBeGrouped=function(){return this.hasAttribute("href")},n.prototype.canBeGroupedWith=function(t){return this.getAttribute("href")===t.getAttribute("href")},n.prototype.getLength=function(){return this.length},n.prototype.canBeConsolidatedWith=function(){return!1},n}(o.Object)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.Piece.registerType("attachment",o.AttachmentPiece=function(e){function n(t){this.attachment=t,n.__super__.constructor.apply(this,arguments),this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}return t(n,e),n.fromJSON=function(t){return new this(o.Attachment.fromJSON(t.attachment),t.attributes)},n.permittedAttributes=["caption","presentation"],n.prototype.ensureAttachmentExclusivelyHasAttribute=function(t){return this.hasAttribute(t)?(this.attachment.hasAttribute(t)||this.attachment.setAttributes(this.attributes.slice(t)),this.attributes=this.attributes.remove(t)):void 0},n.prototype.removeProhibitedAttributes=function(){var t;return(t=this.attributes.slice(this.constructor.permittedAttributes)).isEqualTo(this.attributes)?void 0:this.attributes=t},n.prototype.getValue=function(){return this.attachment},n.prototype.isSerializable=function(){return!this.attachment.isPending()},n.prototype.getCaption=function(){var t;return null!=(t=this.attributes.get("caption"))?t:""},n.prototype.isEqualTo=function(t){var e;return n.__super__.isEqualTo.apply(this,arguments)&&this.attachment.id===(null!=t&&null!=(e=t.attachment)?e.id:void 0)},n.prototype.toString=function(){return o.OBJECT_REPLACEMENT_CHARACTER},n.prototype.toJSON=function(){var t;return(t=n.__super__.toJSON.apply(this,arguments)).attachment=this.attachment,t},n.prototype.getCacheKey=function(){return[n.__super__.getCacheKey.apply(this,arguments),this.attachment.getCacheKey()].join("/")},n.prototype.toConsole=function(){return JSON.stringify(this.toString())},n}(o.Piece))}.call(this),function(){var t,e=function(t,e){function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},n={}.hasOwnProperty;t=o.normalizeNewlines,o.Piece.registerType("string",o.StringPiece=function(n){function r(e){r.__super__.constructor.apply(this,arguments),this.string=t(e),this.length=this.string.length}return e(r,n),r.fromJSON=function(t){return new this(t.string,t.attributes)},r.prototype.getValue=function(){return this.string},r.prototype.toString=function(){return this.string.toString()},r.prototype.isBlockBreak=function(){return"\n"===this.toString()&&!0===this.getAttribute("blockBreak")},r.prototype.toJSON=function(){var t;
2return(t=r.__super__.toJSON.apply(this,arguments)).string=this.string,t},r.prototype.canBeConsolidatedWith=function(t){return null!=t&&this.hasSameConstructorAs(t)&&this.hasSameAttributesAsPiece(t)},r.prototype.consolidateWith=function(t){return new this.constructor(this.toString()+t.toString(),this.attributes)},r.prototype.splitAtOffset=function(t){var e,n;return 0===t?(e=null,n=this):t===this.length?(e=this,n=null):(e=new this.constructor(this.string.slice(0,t),this.attributes),n=new this.constructor(this.string.slice(t),this.attributes)),[e,n]},r.prototype.toConsole=function(){var t;return(t=this.string).length>15&&(t=t.slice(0,14)+"…"),JSON.stringify(t.toString())},r}(o.Piece))}.call(this),function(){var t,e=function(t,e){function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},n={}.hasOwnProperty,r=[].slice;t=o.spliceArray,o.SplittableList=function(n){function i(t){null==t&&(t=[]),i.__super__.constructor.apply(this,arguments),this.objects=t.slice(0),this.length=this.objects.length}var o,s,a;return e(i,n),i.box=function(t){return t instanceof this?t:new this(t)},i.prototype.indexOf=function(t){return this.objects.indexOf(t)},i.prototype.splice=function(){var e;return e=1<=arguments.length?r.call(arguments,0):[],new this.constructor(t.apply(null,[this.objects].concat(r.call(e))))},i.prototype.eachObject=function(t){var e,n,r,i,o,s;for(s=[],n=e=0,r=(o=this.objects).length;r>e;n=++e)i=o[n],s.push(t(i,n));return s},i.prototype.insertObjectAtIndex=function(t,e){return this.splice(e,0,t)},i.prototype.insertSplittableListAtIndex=function(t,e){return this.splice.apply(this,[e,0].concat(r.call(t.objects)))},i.prototype.insertSplittableListAtPosition=function(t,e){var n,r,i;return r=(i=this.splitObjectAtPosition(e))[0],n=i[1],new this.constructor(r).insertSplittableListAtIndex(t,n)},i.prototype.editObjectAtIndex=function(t,e){return this.replaceObjectAtIndex(e(this.objects[t]),t)},i.prototype.replaceObjectAtIndex=function(t,e){return this.splice(e,1,t)},i.prototype.removeObjectAtIndex=function(t){return this.splice(t,1)},i.prototype.getObjectAtIndex=function(t){return this.objects[t]},i.prototype.getSplittableListInRange=function(t){var e,n,r,i;return n=(r=this.splitObjectsAtRange(t))[0],e=r[1],i=r[2],new this.constructor(n.slice(e,i+1))},i.prototype.selectSplittableList=function(t){var e,n;return n=function(){var n,r,i,o;for(o=[],n=0,r=(i=this.objects).length;r>n;n++)e=i[n],t(e)&&o.push(e);return o}.call(this),new this.constructor(n)},i.prototype.removeObjectsInRange=function(t){var e,n,r,i;return n=(r=this.splitObjectsAtRange(t))[0],e=r[1],i=r[2],new this.constructor(n).splice(e,i-e+1)},i.prototype.transformObjectsInRange=function(t,e){var n,r,i,o,s,a,l;return s=this.splitObjectsAtRange(t),o=s[0],r=s[1],a=s[2],l=function(){var t,s,l;for(l=[],n=t=0,s=o.length;s>t;n=++t)i=o[n],l.push(n>=r&&a>=n?e(i):i);return l}(),new this.constructor(l)},i.prototype.splitObjectsAtRange=function(t){var e,n,r,i,s;return n=(i=this.splitObjectAtPosition(a(t)))[0],e=i[1],r=i[2],[n=(s=new this.constructor(n).splitObjectAtPosition(o(t)+r))[0],e,s[1]-1]},i.prototype.getObjectAtPosition=function(t){var e,n;return e=(n=this.findIndexAndOffsetAtPosition(t)).index,n.offset,this.objects[e]},i.prototype.splitObjectAtPosition=function(t){var e,n,r,i,o,s,a,l,u;return e=(o=this.findIndexAndOffsetAtPosition(t)).index,i=o.offset,r=this.objects.slice(0),null!=e?0===i?(l=e,u=0):(n=(s=this.getObjectAtIndex(e).splitAtOffset(i))[0],a=s[1],r.splice(e,1,n,a),l=e+1,u=n.getLength()-i):(l=r.length,u=0),[r,l,u]},i.prototype.consolidate=function(){var t,e,n,r,i,o;for(r=[],i=this.objects[0],t=0,e=(o=this.objects.slice(1)).length;e>t;t++)n=o[t],("function"==typeof i.canBeConsolidatedWith?i.canBeConsolidatedWith(n):void 0)?i=i.consolidateWith(n):(r.push(i),i=n);return null!=i&&r.push(i),new this.constructor(r)},i.prototype.consolidateFromIndexToIndex=function(t,e){var n,i;return i=this.objects.slice(0).slice(t,e+1),n=new this.constructor(i).consolidate().toArray(),this.splice.apply(this,[t,i.length].concat(r.call(n)))},i.prototype.findIndexAndOffsetAtPosition=function(t){var e,n,r,i,o,s;for(e=0,r=n=0,i=(s=this.objects).length;i>n;r=++n){if(o=e+s[r].getLength(),t>=e&&o>t)return{index:r,offset:t-e};e=o}return{index:null,offset:null}},i.prototype.findPositionAtIndexAndOffset=function(t,e){var n,r,i,o,s,a;for(s=0,n=r=0,i=(a=this.objects).length;i>r;n=++r)if(o=a[n],t>n)s+=o.getLength();else if(n===t){s+=e;break}return s},i.prototype.getEndPosition=function(){var t,e;return null!=this.endPosition?this.endPosition:this.endPosition=function(){var n,r,i;for(e=0,n=0,r=(i=this.objects).length;r>n;n++)t=i[n],e+=t.getLength();return e}.call(this)},i.prototype.toString=function(){return this.objects.join("")},i.prototype.toArray=function(){return this.objects.slice(0)},i.prototype.toJSON=function(){return this.toArray()},i.prototype.isEqualTo=function(t){return i.__super__.isEqualTo.apply(this,arguments)||s(this.objects,null!=t?t.objects:void 0)},s=function(t,e){var n,r,i,o,s;if(null==e&&(e=[]),t.length!==e.length)return!1;for(s=!0,r=n=0,i=t.length;i>n;r=++n)o=t[r],s&&!o.isEqualTo(e[r])&&(s=!1);return s},i.prototype.contentsForInspection=function(){var t;return{objects:"["+function(){var e,n,r,i;for(i=[],e=0,n=(r=this.objects).length;n>e;e++)t=r[e],i.push(t.inspect());return i}.call(this).join(", ")+"]"}},a=function(t){return t[0]},o=function(t){return t[1]},i}(o.Object)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.Text=function(e){function n(t){var e;null==t&&(t=[]),n.__super__.constructor.apply(this,arguments),this.pieceList=new o.SplittableList(function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)(e=t[n]).isEmpty()||i.push(e);return i}())}return t(n,e),n.textForAttachmentWithAttributes=function(t,e){return new this([new o.AttachmentPiece(t,e)])},n.textForStringWithAttributes=function(t,e){return new this([new o.StringPiece(t,e)])},n.fromJSON=function(t){var e;return new this(function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(o.Piece.fromJSON(e));return i}())},n.prototype.copy=function(){return this.copyWithPieceList(this.pieceList)},n.prototype.copyWithPieceList=function(t){return new this.constructor(t.consolidate().toArray())},n.prototype.copyUsingObjectMap=function(t){var e,n;return n=function(){var n,r,i,o,s;for(s=[],n=0,r=(i=this.getPieces()).length;r>n;n++)e=i[n],s.push(null!=(o=t.find(e))?o:e);return s}.call(this),new this.constructor(n)},n.prototype.appendText=function(t){return this.insertTextAtPosition(t,this.getLength())},n.prototype.insertTextAtPosition=function(t,e){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList,e))},n.prototype.removeTextAtRange=function(t){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t))},n.prototype.replaceTextAtRange=function(t,e){return this.removeTextAtRange(e).insertTextAtPosition(t,e[0])},n.prototype.moveTextFromRangeToPosition=function(t,e){var n,r;if(!(t[0]<=e&&e<=t[1]))return n=(r=this.getTextAtRange(t)).getLength(),t[0]<e&&(e-=n),this.removeTextAtRange(t).insertTextAtPosition(r,e)},n.prototype.addAttributeAtRange=function(t,e,n){var r;return(r={})[t]=e,this.addAttributesAtRange(r,n)},n.prototype.addAttributesAtRange=function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithAdditionalAttributes(t)})))},n.prototype.removeAttributeAtRange=function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithoutAttribute(t)})))},n.prototype.setAttributesAtRange=function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithAttributes(t)})))},n.prototype.getAttributesAtPosition=function(t){var e,n;return null!=(e=null!=(n=this.pieceList.getObjectAtPosition(t))?n.getAttributes():void 0)?e:{}},n.prototype.getCommonAttributes=function(){var t,e;return t=function(){var t,n,r,i;for(i=[],t=0,n=(r=this.pieceList.toArray()).length;n>t;t++)e=r[t],i.push(e.getAttributes());return i}.call(this),o.Hash.fromCommonAttributesOfObjects(t).toObject()},n.prototype.getCommonAttributesAtRange=function(t){var e;return null!=(e=this.getTextAtRange(t).getCommonAttributes())?e:{}},n.prototype.getExpandedRangeForAttributeAtOffset=function(t,e){var n,r,i;for(n=i=e,r=this.getLength();n>0&&this.getCommonAttributesAtRange([n-1,i])[t];)n--;for(;r>i&&this.getCommonAttributesAtRange([e,i+1])[t];)i++;return[n,i]},n.prototype.getTextAtRange=function(t){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t))},n.prototype.getStringAtRange=function(t){return this.pieceList.getSplittableListInRange(t).toString()}
2,n.prototype.getStringAtPosition=function(t){return this.getStringAtRange([t,t+1])},n.prototype.startsWithString=function(t){return this.getStringAtRange([0,t.length])===t},n.prototype.endsWithString=function(t){var e;return e=this.getLength(),this.getStringAtRange([e-t.length,e])===t},n.prototype.getAttachmentPieces=function(){var t,e,n,r,i;for(i=[],t=0,e=(r=this.pieceList.toArray()).length;e>t;t++)null!=(n=r[t]).attachment&&i.push(n);return i},n.prototype.getAttachments=function(){var t,e,n,r,i;for(i=[],t=0,e=(r=this.getAttachmentPieces()).length;e>t;t++)n=r[t],i.push(n.attachment);return i},n.prototype.getAttachmentAndPositionById=function(t){var e,n,r,i,o,s;for(i=0,e=0,n=(o=this.pieceList.toArray()).length;n>e;e++){if((null!=(s=(r=o[e]).attachment)?s.id:void 0)===t)return{attachment:r.attachment,position:i};i+=r.length}return{attachment:null,position:null}},n.prototype.getAttachmentById=function(t){var e,n;return e=(n=this.getAttachmentAndPositionById(t)).attachment,n.position,e},n.prototype.getRangeOfAttachment=function(t){var e,n;return t=(n=this.getAttachmentAndPositionById(t.id)).attachment,e=n.position,null!=t?[e,e+1]:void 0},n.prototype.updateAttributesForAttachment=function(t,e){var n;return(n=this.getRangeOfAttachment(e))?this.addAttributesAtRange(t,n):this},n.prototype.getLength=function(){return this.pieceList.getEndPosition()},n.prototype.isEmpty=function(){return 0===this.getLength()},n.prototype.isEqualTo=function(t){var e;return n.__super__.isEqualTo.apply(this,arguments)||(null!=t&&null!=(e=t.pieceList)?e.isEqualTo(this.pieceList):void 0)},n.prototype.isBlockBreak=function(){return 1===this.getLength()&&this.pieceList.getObjectAtIndex(0).isBlockBreak()},n.prototype.eachPiece=function(t){return this.pieceList.eachObject(t)},n.prototype.getPieces=function(){return this.pieceList.toArray()},n.prototype.getPieceAtPosition=function(t){return this.pieceList.getObjectAtPosition(t)},n.prototype.contentsForInspection=function(){return{pieceList:this.pieceList.inspect()}},n.prototype.toSerializableText=function(){var t;return t=this.pieceList.selectSplittableList((function(t){return t.isSerializable()})),this.copyWithPieceList(t)},n.prototype.toString=function(){return this.pieceList.toString()},n.prototype.toJSON=function(){return this.pieceList.toJSON()},n.prototype.toConsole=function(){var t;return JSON.stringify(function(){var e,n,r,i;for(i=[],e=0,n=(r=this.pieceList.toArray()).length;n>e;e++)t=r[e],i.push(JSON.parse(t.toConsole()));return i}.call(this))},n}(o.Object)}.call(this),function(){var t,e,n,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty,a=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},l=[].slice;t=o.arraysAreEqual,r=o.spliceArray,e=o.getBlockConfig,o.getBlockAttributeNames,n=o.getListAttributeNames,o.Block=function(s){function u(t,e){null==t&&(t=new o.Text),null==e&&(e=[]),u.__super__.constructor.apply(this,arguments),this.text=d(t),this.attributes=e}var c,d,h,f,p,m,g,y,_;return i(u,s),u.fromJSON=function(t){return new this(o.Text.fromJSON(t.text),t.attributes)},u.prototype.isEmpty=function(){return this.text.isBlockBreak()},u.prototype.isEqualTo=function(e){return u.__super__.isEqualTo.apply(this,arguments)||this.text.isEqualTo(null!=e?e.text:void 0)&&t(this.attributes,null!=e?e.attributes:void 0)},u.prototype.copyWithText=function(t){return new this.constructor(t,this.attributes)},u.prototype.copyWithoutText=function(){return this.copyWithText(null)},u.prototype.copyWithAttributes=function(t){return new this.constructor(this.text,t)},u.prototype.copyWithoutAttributes=function(){return this.copyWithAttributes(null)},u.prototype.copyUsingObjectMap=function(t){var e;return this.copyWithText((e=t.find(this.text))?e:this.text.copyUsingObjectMap(t))},u.prototype.addAttribute=function(t){var e;return e=this.attributes.concat(f(t)),this.copyWithAttributes(e)},u.prototype.removeAttribute=function(t){var n,r;return r=e(t).listAttribute,n=m(m(this.attributes,t),r),this.copyWithAttributes(n)},u.prototype.removeLastAttribute=function(){return this.removeAttribute(this.getLastAttribute())},u.prototype.getLastAttribute=function(){return p(this.attributes)},u.prototype.getAttributes=function(){return this.attributes.slice(0)},u.prototype.getAttributeLevel=function(){return this.attributes.length},u.prototype.getAttributeAtLevel=function(t){return this.attributes[t-1]},u.prototype.hasAttribute=function(t){return a.call(this.attributes,t)>=0},u.prototype.hasAttributes=function(){return this.getAttributeLevel()>0},u.prototype.getLastNestableAttribute=function(){return p(this.getNestableAttributes())},u.prototype.getNestableAttributes=function(){var t,n,r,i,o;for(o=[],n=0,r=(i=this.attributes).length;r>n;n++)t=i[n],e(t).nestable&&o.push(t);return o},u.prototype.getNestingLevel=function(){return this.getNestableAttributes().length},u.prototype.decreaseNestingLevel=function(){var t;return(t=this.getLastNestableAttribute())?this.removeAttribute(t):this},u.prototype.increaseNestingLevel=function(){var t,e,n;return(t=this.getLastNestableAttribute())?(n=this.attributes.lastIndexOf(t),e=r.apply(null,[this.attributes,n+1,0].c
2oncat(l.call(f(t)))),this.copyWithAttributes(e)):this},u.prototype.getListItemAttributes=function(){var t,n,r,i,o;for(o=[],n=0,r=(i=this.attributes).length;r>n;n++)t=i[n],e(t).listAttribute&&o.push(t);return o},u.prototype.isListItem=function(){var t;return null!=(t=e(this.getLastAttribute()))?t.listAttribute:void 0},u.prototype.isTerminalBlock=function(){var t;return null!=(t=e(this.getLastAttribute()))?t.terminal:void 0},u.prototype.breaksOnReturn=function(){var t;return null!=(t=e(this.getLastAttribute()))?t.breakOnReturn:void 0},u.prototype.findLineBreakInDirectionFromPosition=function(t,e){var n,r;return r=this.toString(),-1!==(n=function(){switch(t){case"forward":return r.indexOf("\n",e);case"backward":return r.slice(0,e).lastIndexOf("\n")}}())?n:void 0},u.prototype.contentsForInspection=function(){return{text:this.text.inspect(),attributes:this.attributes}},u.prototype.toString=function(){return this.text.toString()},u.prototype.toJSON=function(){return{text:this.text,attributes:this.attributes}},u.prototype.getLength=function(){return this.text.getLength()},u.prototype.canBeConsolidatedWith=function(t){return!this.hasAttributes()&&!t.hasAttributes()},u.prototype.consolidateWith=function(t){var e,n;return e=o.Text.textForStringWithAttributes("\n"),n=this.getTextWithoutBlockBreak().appendText(e),this.copyWithText(n.appendText(t.text))},u.prototype.splitAtOffset=function(t){var e,n;return 0===t?(e=null,n=this):t===this.getLength()?(e=this,n=null):(e=this.copyWithText(this.text.getTextAtRange([0,t])),n=this.copyWithText(this.text.getTextAtRange([t,this.getLength()]))),[e,n]},u.prototype.getBlockBreakPosition=function(){return this.text.getLength()-1},u.prototype.getTextWithoutBlockBreak=function(){return g(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()},u.prototype.canBeGrouped=function(t){return this.attributes[t]},u.prototype.canBeGroupedWith=function(t,r){var i,o,s,l;return o=(s=t.getAttributes())[r],(i=this.attributes[r])===o&&!(!1===e(i).group&&(l=s[r+1],a.call(n(),l)<0))},d=function(t){return t=_(t),c(t)},_=function(t){var e,n,r,i,s,a;return i=!1,a=t.getPieces(),n=2<=a.length?l.call(a,0,e=a.length-1):(e=0,[]),null==(r=a[e++])?t:(n=function(){var t,e,r;for(r=[],t=0,e=n.length;e>t;t++)(s=n[t]).isBlockBreak()?(i=!0,r.push(y(s))):r.push(s);return r}(),i?new o.Text(l.call(n).concat([r])):t)},h=o.Text.textForStringWithAttributes("\n",{blockBreak:!0}),c=function(t){return g(t)?t:t.appendText(h)},g=function(t){var e;return 0!==(e=t.getLength())&&t.getTextAtRange([e-1,e]).isBlockBreak()},y=function(t){return t.copyWithoutAttribute("blockBreak")},f=function(t){var n;return null!=(n=e(t).listAttribute)?[n,t]:[t]},p=function(t){return t.slice(-1)[0]},m=function(t,e){var n;return-1===(n=t.lastIndexOf(e))?t:r(t,n,1)},u}(o.Object)}.call(this),function(){var t,e,n,r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,s=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},a=[].slice;e=o.tagName,n=o.walkTree,t=o.nodeIsAttachmentElement,o.HTMLSanitizer=function(i){function l(t,e){var n;n=null!=e?e:{},this.allowedAttributes=n.allowedAttributes,this.forbiddenProtocols=n.forbiddenProtocols,null==this.allowedAttributes&&(this.allowedAttributes=u),null==this.forbiddenProtocols&&(this.forbiddenProtocols=c),this.body=d(t)}var u,c,d,h;return r(l,i),u="style href src width height class".split(" "),c="javascript:".split(" "),l.sanitize=function(t,e){var n;return(n=new this(t,e)).sanitize(),n},l.prototype.sanitize=function(){return this.sanitizeElements(),this.normalizeListElementNesting()},l.prototype.getHTML=function(){return this.body.innerHTML},l.prototype.getBody=function(){return this.body},l.prototype.sanitizeElements=function(){var t,e,r,i,s;for(s=n(this.body),i=[];s.nextNode();)switch(r=s.currentNode,r.nodeType){case Node.ELEMENT_NODE:h(r)?i.push(r):this.sanitizeElement(r);break;case Node.COMMENT_NODE:i.push(r)}for(t=0,e=i.length;e>t;t++)r=i[t],o.removeNode(r);return this.body},l.prototype.sanitizeElement=function(t){var e,n,r,i,o;for(t.hasAttribute("href")&&(i=t.protocol,s.call(this.forbiddenProtocols,i)>=0&&t.removeAttribute("href")),e=0,n=(o=a.call(t.attributes)).length;n>e;e++)r=o[e].name,s.call(this.allowedAttributes,r)>=0||0===r.indexOf("data-trix")||t.removeAttribute(r);return t},l.prototype.normalizeListElementNesting=function(){var t,n,r,i,o;for(t=0,n=(o=a.call(this.body.querySelectorAll("ul,ol"))).length;n>t;t++)(i=(r=o[t]).previousElementSibling)&&"li"===e(i)&&i.appendChild(r);return this.body},h=function(n){return(null!=n?n.nodeType:void 0)!==Node.ELEMENT_NODE||t(n)?void 0:"script"===e(n)||"false"===n.getAttribute("data-trix-serialize")},d=function(t){var e,n,r,i,o;for(null==t&&(t=""),t=t.replace(/<\/html[^>]*>[^]*$/i,"</html>"),(e=document.implementation.createHTMLDocument("")).documentElement.innerHTML=t,r=0,i=(o=e.head.querySelectorAll("style")).length;i>r;r++)n=o[r],e.body.appendChild(n);return e.body},l}(o.BasicObject)}.call(this),function(){var t,e,n,r,i,s,a,l,u,c,d,h=function(t,e){function n(){this.constructor=t}for(var r in e)f.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty,p=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=o.arraysAreEqual,s=o.makeElement,c=o.tagName,i=o.getBlockTagNames,d=o.walkTree,r=o.findClosestElementFromNode,n=o.elementContainsNode,a=o.nodeIsAttachmentElement,l=o.normalizeSpaces,e=o.breakableWhitespacePattern,u=o.squishBreakableWhitespace,o.HTMLParser=function(f){function m(t,e){this.html=t,this.referenceElement=(null!=e?e:{}).referenceElement,this.blocks=[],this.blockElements=[],this.processedElements=[]}var g,y,_,v,b,w,M,S,C,A,x,E;return h(m,f),m.parse=function(t,e){var n;return(n=new this(t,e)).parse(),n},m.prototype.getDocument=function(){return o.Document.fromJSON(this.blocks)},m.prototype.parse=function(){var t,e;try{for(this.createHiddenContainer(),t=o.HTMLSanitizer.sanitize(this.html).getHTML(),this.containerElement.innerHTML=t,e=d(this.containerElement,{usingFilter:S});e.nextNode();)this.processNode(e.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}},m.prototype.createHiddenContainer=function(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=s({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))},m.prototype.removeHiddenContainer=function(){return o.removeNode(this.containerElement)},S=function(t){return"style"===c(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},m.prototype.processNode=function(t){switch(t.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(t))return this.appendBlockForTextNode(t),this.processTextNode(t);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(t),this.processElement(t)}},m.prototype.appendBlockForTextNode=function(e){var n,r,i;return(r=e.parentNode)===this.currentBlockElement||r!==this.containerElement&&!this.isBlockElement(r)?void 0:(n=this.getBlockAttributes(r),t(n,null!=(i=this.currentBlock)?i.attributes:void 0)?void 0:(this.currentBlock=this.appendBlockForAttributesWithElement(n,r),this.currentBlockElement=r))},m.prototype.appendBlockForElement=function(e){var r,i,o,s;if(o=this.isBlockElement(e),i=n(this.currentBlockElement,e),o&&!this.isBlockElement(e.firstChild)){if(!(this.isInsignificantTextNode(e.firstChild)&&this.isBlockElement(e.firstElementChild)||(r=this.getBlockAttributes(e),i&&t(r,this.currentBlock.attributes))))return this.currentBlock=this.appendBlockForAttributesWithElement(r,e),this.currentBlockElement=e}else if(this.currentBlockElement&&!i&&!o)return(s=this.findParentBlockElement(e))?this.appendBlockForElement(s):(this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null)},m.prototype.findParentBlockElement=function(t){var e;
2for(e=t.parentElement;e&&e!==this.containerElement;){if(this.isBlockElement(e)&&p.call(this.blockElements,e)>=0)return e;e=e.parentElement}return null},m.prototype.processTextNode=function(t){var e,n;return n=t.data,y(t.parentNode)||(n=u(n),x(null!=(e=t.previousSibling)?e.textContent:void 0)&&(n=w(n))),this.appendStringWithAttributes(n,this.getTextAttributes(t.parentNode))},m.prototype.processElement=function(t){var e,n,r,i,o;if(a(t))return e=_(t),Object.keys(e).length&&(i=this.getTextAttributes(t),this.appendAttachmentWithAttributes(e,i),t.innerHTML=""),this.processedElements.push(t);switch(c(t)){case"br":return this.isExtraBR(t)||this.isBlockElement(t.nextSibling)||this.appendStringWithAttributes("\n",this.getTextAttributes(t)),this.processedElements.push(t);case"img":for(n in e={url:t.getAttribute("src"),contentType:"image"},r=b(t))o=r[n],e[n]=o;return this.appendAttachmentWithAttributes(e,this.getTextAttributes(t)),this.processedElements.push(t);case"tr":if(t.parentNode.firstChild!==t)return this.appendStringWithAttributes("\n");break;case"td":if(t.parentNode.firstChild!==t)return this.appendStringWithAttributes(" | ")}},m.prototype.appendBlockForAttributesWithElement=function(t,e){var n;return this.blockElements.push(e),n=g(t),this.blocks.push(n),n},m.prototype.appendEmptyBlock=function(){return this.appendBlockForAttributesWithElement([],null)},m.prototype.appendStringWithAttributes=function(t,e){return this.appendPiece(A(t,e))},m.prototype.appendAttachmentWithAttributes=function(t,e){return this.appendPiece(C(t,e))},m.prototype.appendPiece=function(t){return 0===this.blocks.length&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(t)},m.prototype.appendStringToTextAtIndex=function(t,e){var n,r;return"string"===(null!=(n=(r=this.blocks[e].text)[r.length-1])?n.type:void 0)?n.string+=t:r.push(A(t))},m.prototype.prependStringToTextAtIndex=function(t,e){var n,r;return"string"===(null!=(n=(r=this.blocks[e].text)[0])?n.type:void 0)?n.string=t+n.string:r.unshift(A(t))},A=function(t,e){return null==e&&(e={}),"string",{string:t=l(t),attributes:e,type:"string"}},C=function(t,e){return null==e&&(e={}),"attachment",{attachment:t,attributes:e,type:"attachment"}},g=function(t){return null==t&&(t={}),{text:[],attributes:t}},m.prototype.getTextAttributes=function(t){var e,n,i,s,l,u,c,d,h,f,p,m,g;for(e in i={},f=o.config.textAttributes)if((l=f[e]).tagName&&r(t,{matchingSelector:l.tagName,untilNode:this.containerElement}))i[e]=!0;else if(l.parser){if(g=l.parser(t)){for(n=!1,u=0,h=(p=this.findBlockElementAncestors(t)).length;h>u;u++)if(s=p[u],l.parser(s)===g){n=!0;break}n||(i[e]=g)}}else l.styleProperty&&(g=t.style[l.styleProperty])&&(i[e]=g);if(a(t)&&(c=t.getAttribute("data-trix-attributes")))for(d in m=JSON.parse(c))g=m[d],i[d]=g;return i},m.prototype.getBlockAttributes=function(t){var e,n,r,i;for(n=[];t&&t!==this.containerElement;){for(e in i=o.config.blockAttributes)!1!==(r=i[e]).parse&&c(t)===r.tagName&&(("function"==typeof r.test?r.test(t):void 0)||!r.test)&&(n.push(e),r.listAttribute&&n.push(r.listAttribute));t=t.parentNode}return n.reverse()},m.prototype.findBlockElementAncestors=function(t){var e,n;for(e=[];t&&t!==this.containerElement;)n=c(t),p.call(i(),n)>=0&&e.push(t),t=t.parentNode;return e},_=function(t){return JSON.parse(t.getAttribute("data-trix-attachment"))},b=function(t){var e,n,r;return r=t.getAttribute("width"),n=t.getAttribute("height"),e={},r&&(e.width=parseInt(r,10)),n&&(e.height=parseInt(n,10)),e},m.prototype.isBlockElement=function(t){var e;if((null!=t?t.nodeType:void 0)===Node.ELEMENT_NODE&&!a(t)&&!r(t,{matchingSelector:"td",untilNode:this.containerElement}))return e=c(t),p.call(i(),e)>=0||"block"===window.getComputedStyle(t).display},m.prototype.isInsignificantTextNode=function(t){var e,n,r;if((null!=t?t.nodeType:void 0)===Node.TEXT_NODE&&E(t.data)&&(n=t.parentNode,r=t.previousSibling,e=t.nextSibling,(!M(n.previousSibling)||this.isBlockElement(n.previousSibling))&&!y(n)))return!r||this.isBlockElement(r)||!e||this.isBlockElement(e)},m.prototype.isExtraBR=function(t){return"br"===c(t)&&this.isBlockElement(t.parentNode)&&t.parentNode.lastChild===t},y=function(t){var e;return"pre"===(e=window.getComputedStyle(t).whiteSpace)||"pre-wrap"===e||"pre-line"===e},M=function(t){return t&&!x(t.textContent)},m.prototype.translateBlockElementMarginsToNewlines=function(){var t,e,n,r,i,o,s;for(t=this.getMarginOfDefaultBlockElement(),s=[],n=e=0,r=(o=this.blocks).length;r>e;n=++e)o[n],(i=this.getMarginOfBlockElementAtIndex(n))&&(i.top>2*t.top&&this.prependStringToTextAtIndex("\n",n),s.push(i.bottom>2*t.bottom?this.appendStringToTextAtIndex("\n",n):void 0));return s},m.prototype.getMarginOfBlockElementAtIndex=function(t){var e,n;return!(e=this.blockElements[t])||!e.textContent||(n=c(e),p.call(i(),n)>=0||p.call(this.processedElements,e)>=0)?void 0:v(e)},m.prototype.getMarginOfDefaultBlockElement=function(){var t;return t=s(o.config.blockAttributes.default.tagName),this.containerElement.appendChild(t),v(t)},v=function(t){var e;return"block"===(e=window.getComputedStyle(t)).display?{top:parseInt(e.marginTop),bottom:parseInt(e.marginBottom)}:void 0},w=function(t){return t.replace(RegExp("^"+e.source+"+"),"")},E=function(t){return RegExp("^"+e.source+"*$").test(t)},x=function(t){return/\s$/.test(t)},m}(o.BasicObject)}.call(this),function(){var t,e,n,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty,a=[].slice,l=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=o.arraysAreEqual,n=o.normalizeRange,r=o.rangeIsCollapsed,e=o.getBlockConfig,o.Document=function(s){function u(t){null==t&&(t=[]),u.__super__.constructor.apply(this,arguments),0===t.length&&(t=[new o.Block]),this.blockList=o.SplittableList.box(t)}var c;return i(u,s),u.fromJSON=function(t){var e,n;return n=function(){var n,r,i;for(i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(o.Block.fromJSON(e));return i}(),new this(n)},u.fromHTML=function(t,e){return o.HTMLParser.parse(t,e).getDocument()},u.fromString=function(t,e){var n;return n=o.Text.textForStringWithAttributes(t,e),new this([new o.Block(n)])},u.prototype.isEmpty=function(){var t;return 1===this.blockList.length&&((t=this.getBlockAtIndex(0)).isEmpty()&&!t.hasAttributes())},u.prototype.copy=function(t){var e;return null==t&&(t={}),e=t.consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray(),new this.constructor(e)},u.prototype.copyUsingObjectsFromDocument=function(t){var e;return e=new o.ObjectMap(t.getObjects()),this.copyUsingObjectMap(e)},u.prototype.copyUsingObjectMap=function(t){var e,n,r;return n=function(){var n,i,o,s;for(s=[],n=0,i=(o=this.getBlocks()).length;i>n;n++)e=o[n],s.push((r=t.find(e))?r:e.copyUsingObjectMap(t));return s}.call(this),new this.constructor(n)},u.prototype.copyWithBaseBlockAttributes=function(t){var e,n,r;return null==t&&(t=[]),r=function(){var r,i,o,s;for(s=[],r=0,i=(o=this.getBlocks()).length;i>r;r++)n=o[r],e=t.concat(n.getAttributes()),s.push(n.copyWithAttributes(e));return s}.call(this),new this.constructor(r)},u.prototype.replaceBlock=function(t,e){var n;return-1===(n=this.blockList.indexOf(t))?this:new this.constructor(this.blockList.replaceObjectAtIndex(e,n))},u.prototype.insertDocumentAtRange=function(t,e){var i,o,s,a,l,u,c;return o=t.blockList,l=(e=n(e))[0],s=(u=this.locationFromPosition(l)).index,a=u.offset,c=this,i=this.getBlockAtPosition(l),r(e)&&i.isEmpty()&&!i.hasAttributes()?c=new this.constructor(c.blockList.removeObjectAtIndex(s)):i.getBlockBreakPosition()===a&&l++,c=c.removeTextAtRange(e),new this.constructor(c.blockList.insertSplittableListAtPosition(o,l))},u.prototype.mergeDocumentAtRange=function(e,r){var i,o,s,a,l,u,c,d,h,f,p,m;return p=(r=n(r))[0],f=this.locationFromPosition(p),o=this.getBlockAtIndex(f.index).getAttributes(),i=e.getBaseBlockAttributes(),m=o.slice(-i.length),t(i,m)?(c=o.slice(0,-i.length),u=e.copyWithBaseBlockAttributes(c)):u=e.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(o),s=u.getBlockCount(),a=u.getBlockAtIndex(0),t(o,a.getAttributes())?(l=a.getTextWithoutBlockBreak(),h=this.insertTextAtRange(l,r),s>1&&(u=new this.constructor(u.getBlocks().slice(1)),d=p+l.getLength(),h=h.insertDocumentAtRange(u,d))):h=this.insertDocumentAtRange(u,r),h},u.prototype.insertTextAtRange=function(t,e){var r,i,o,s,a;return a=(e=n(e))[0],i=(s=this.locationFromPosition(a)).index,o=s.offset,r=this.removeTextAtRange(e),new this.constructor(r.blockList.editObjectAtIndex(i,(function(e){return e.copyWithText(e.text.insertTextAtPosition(t,o))})))},u.prototype.removeTextAtRange=function(t){var e,i,o,s,a,l,u,c,d,h,f,p,m,g,y,_,v,b;return c=(h=t=n(t))[0],_=h[1],r(t)?this:(l=(f=this.locationRangeFromRange(t))[0],g=f[1],a=l.index,u=l.offset,s=this.getBlockAtIndex(a),m=g.index,y=g.offset,p=this.getBlockAtIndex(m),_-c==1&&s.getBlockBreakPosition()===u&&p.getBlockBreakPosition()!==y&&"\n"===p.text.getStringAtPosition(y)?o=this.blockList.editObjectAtIndex(m,(function(t){return t.copyWithText(t.text.removeTextAtRange([y,y+1]))})):(d=s.text.getTextAtRange([0,u]),v=p.text.getTextAtRange([y,p.getLength()]),b=d.appendText(v),i=a!==m&&0===u&&s.getAttributeLevel()>=p.getAttributeLevel()?p.copyWithText(b):s.copyWithText(b),e=m+1-a,o=this.blockList.splice(a,e,i)),new this.constructor(o))},u.prototype.moveTextFromRangeToPosition=function(t,e){var r,i,o,s,l,u,c,d,h,f;return h=(u=t=n(t))[0],o=u[1],e>=h&&o>=e?this:(i=this.getDocumentAtRange(t),d=this.removeTextAtRange(t),(l=e>h)&&(e-=i.getLength()),s=(c=i.getBlocks())[0],0===(r=2<=c.length?a.call(c,1):[]).length?(f=s.getTextWithoutBlockBreak(),l&&(e+=1)):f=s.text,d=d.insertTextAtRange(f,e),0===r.length?d:(i=new this.constructor(r),e+=f.getLength(),d.insertDocumentAtRange(i,e)))},u.prototype.addAttributeAtRange=function(t,n,r){var i;return i=this.blockList,this.eachBlockAtRange(r,(function(r,o,s){return i=i.editObjectAtIndex(s,(function(){return e(t)?r.addAttribute(t,n):o[0]===o[1]?r:r.copyWithText(r.text.addAttributeAtRange(t,n,o))}))})),new this.constructor(i)},u.prototype.addAttribute=function(t,e){var n;return n=this.blockList,this.eachBlock((function(r,i){return n=n.editObjectAtIndex(i,(function(){return r.addAttribute(t,e)}))}
2)),new this.constructor(n)},u.prototype.removeAttributeAtRange=function(t,n){var r;return r=this.blockList,this.eachBlockAtRange(n,(function(n,i,o){return e(t)?r=r.editObjectAtIndex(o,(function(){return n.removeAttribute(t)})):i[0]!==i[1]?r=r.editObjectAtIndex(o,(function(){return n.copyWithText(n.text.removeAttributeAtRange(t,i))})):void 0})),new this.constructor(r)},u.prototype.updateAttributesForAttachment=function(t,e){var n,r,i;return r=this.getRangeOfAttachment(e)[0],n=this.locationFromPosition(r).index,i=this.getTextAtIndex(n),new this.constructor(this.blockList.editObjectAtIndex(n,(function(n){return n.copyWithText(i.updateAttributesForAttachment(t,e))})))},u.prototype.removeAttributeForAttachment=function(t,e){var n;return n=this.getRangeOfAttachment(e),this.removeAttributeAtRange(t,n)},u.prototype.insertBlockBreakAtRange=function(t){var e,r,i,s;return s=(t=n(t))[0],i=this.locationFromPosition(s).offset,r=this.removeTextAtRange(t),0===i&&(e=[new o.Block]),new this.constructor(r.blockList.insertSplittableListAtPosition(new o.SplittableList(e),s))},u.prototype.applyBlockAttributeAtRange=function(t,n,r){var i,o,s,a;return o=(s=this.expandRangeToLineBreaksAndSplitBlocks(r)).document,r=s.range,(i=e(t)).listAttribute?(a=(o=o.removeLastListAttributeAtRange(r,{exceptAttributeName:t})).convertLineBreaksToBlockBreaksInRange(r),o=a.document,r=a.range):o=i.exclusive?o.removeBlockAttributesAtRange(r):i.terminal?o.removeLastTerminalAttributeAtRange(r):o.consolidateBlocksAtRange(r),o.addAttributeAtRange(t,n,r)},u.prototype.removeLastListAttributeAtRange=function(t,n){var r;return null==n&&(n={}),r=this.blockList,this.eachBlockAtRange(t,(function(t,i,o){var s;if((s=t.getLastAttribute())&&e(s).listAttribute&&s!==n.exceptAttributeName)return r=r.editObjectAtIndex(o,(function(){return t.removeAttribute(s)}))})),new this.constructor(r)},u.prototype.removeLastTerminalAttributeAtRange=function(t){var n;return n=this.blockList,this.eachBlockAtRange(t,(function(t,r,i){var o;if((o=t.getLastAttribute())&&e(o).terminal)return n=n.editObjectAtIndex(i,(function(){return t.removeAttribute(o)}))})),new this.constructor(n)},u.prototype.removeBlockAttributesAtRange=function(t){var e;return e=this.blockList,this.eachBlockAtRange(t,(function(t,n,r){return t.hasAttributes()?e=e.editObjectAtIndex(r,(function(){return t.copyWithoutAttributes()})):void 0})),new this.constructor(e)},u.prototype.expandRangeToLineBreaksAndSplitBlocks=function(t){var e,r,i,o,s,a,l,u,c;return c=(a=t=n(t))[0],o=a[1],u=this.locationFromPosition(c),i=this.locationFromPosition(o),l=(e=this).getBlockAtIndex(u.index),null!=(u.offset=l.findLineBreakInDirectionFromPosition("backward",u.offset))&&(s=e.positionFromLocation(u),e=e.insertBlockBreakAtRange([s,s+1]),i.index+=1,i.offset-=e.getBlockAtIndex(u.index).getLength(),u.index+=1),u.offset=0,0===i.offset&&i.index>u.index?(i.index-=1,i.offset=e.getBlockAtIndex(i.index).getBlockBreakPosition()):("\n"===(r=e.getBlockAtIndex(i.index)).text.getStringAtRange([i.offset-1,i.offset])?i.offset-=1:i.offset=r.findLineBreakInDirectionFromPosition("forward",i.offset),i.offset!==r.getBlockBreakPosition()&&(s=e.positionFromLocation(i),e=e.insertBlockBreakAtRange([s,s+1]))),c=e.positionFromLocation(u),o=e.positionFromLocation(i),{document:e,range:t=n([c,o])}},u.prototype.convertLineBreaksToBlockBreaksInRange=function(t){var e,r,i;return r=(t=n(t))[0],i=this.getStringAtRange(t).slice(0,-1),e=this,i.replace(/.*?\n/g,(function(t){return r+=t.length,e=e.insertBlockBreakAtRange([r-1,r])})),{document:e,range:t}},u.prototype.consolidateBlocksAtRange=function(t){var e,r,i,o,s;return s=(i=t=n(t))[0],r=i[1],o=this.locationFromPosition(s).index,e=this.locationFromPosition(r).index,new this.constructor(this.blockList.consolidateFromIndexToIndex(o,e))},u.prototype.getDocumentAtRange=function(t){var e;return t=n(t),e=this.blockList.getSplittableListInRange(t).toArray(),new this.constructor(e)},u.prototype.getStringAtRange=function(t){var e,r;return(r=t=n(t))[r.length-1]!==this.getLength()&&(e=-1),this.getDocumentAtRange(t).toString().slice(0,e)},u.prototype.getBlockAtIndex=function(t){return this.blockList.getObjectAtIndex(t)},u.prototype.getBlockAtPosition=function(t){var e;return e=this.locationFromPosition(t).index,this.getBlockAtIndex(e)},u.prototype.getTextAtIndex=function(t){var e;return null!=(e=this.getBlockAtIndex(t))?e.text:void 0},u.prototype.getTextAtPosition=function(t){var e;return e=this.locationFromPosition(t).index,this.getTextAtIndex(e)},u.prototype.getPieceAtPosition=function(t){var e,n,r;return e=(r=this.locationFromPosition(t)).index,n=r.offset,this.getTextAtIndex(e).getPieceAtPosition(n)},u.prototype.getCharacterAtPosition=function(t){var e,n,r;return e=(r=this.locationFromPosition(t)).index,n=r.offset,this.getTextAtIndex(e).getStringAtRange([n,n+1])},u.prototype.getLength=function(){return this.blockList.getEndPosition()},u.prototype.getBlocks=function(){return this.blockList.toArray()},u.prototype.getBlockCount=function(){return this.blockList.length},u.prototype.getEditCount=function(){return this.editCount},u.prototype.eachBlock=function(t){return this.blockList.eachObject(t)},u.prototype.eachBlockAtRange=function(t,e){var r,i,o,s,a,l,u,c,d,h,f,p;if(f=(l=t=n(t))[0],o=l[1],h=this.locationFromPosition(f),i=this.locationFromPosition(o),h.index===i.index)return r=this.getBlockAtIndex(h.index),p=[h.offset,i.offset],e(r,p,h.index);for(d=[],a=s=u=h.index,c=i.index;c>=u?c>=s:s>=c;a=c>=u?++s:--s)(r=this.getBlockAtIndex(a))?(p=function(){switch(a){case h.index:return[h.offset,r.text.getLength()];case i.index:return[0,i.offset];default:return[0,r.text.getLength()]}}(),d.push(e(r,p,a))):d.push(void 0);return d},u.prototype.getCommonAttributesAtRange=function(t){var e,i,s;return i=(t=n(t))[0],r(t)?this.getCommonAttributesAtPosition(i):(s=[],e=[],this.eachBlockAtRange(t,(function(t,n){return n[0]!==n[1]?(s.push(t.text.getCommonAttributesAtRange(n)),e.push(c(t))):void 0})),o.Hash.fromCommonAttributesOfObjects(s).merge(o.Hash.fromCommonAttributesOfObjects(e)).toObject())},u.prototype.getCommonAttributesAtPosition=function(t){var e,n,r,i,s,a,u,d,h,f;if(s=(h=this.locationFromPosition(t)).index,d=h.offset,!(r=this.getBlockAtIndex(s)))return{};for(u in i=c(r),e=r.text.getAttributesAtPosition(d),n=r.text.getAttributesAtPosition(d-1),a=function(){var t,e;for(u in e=[],t=o.config.textAttributes)(f=t[u]).inheritable&&e.push(u);return e}(),n)((f=n[u])===e[u]||l.call(a,u)>=0)&&(i[u]=f);return i},u.prototype.getRangeOfCommonAttributeAtPosition=function(t,e){var r,i,o,s,a,l,u,c;return o=(a=this.locationFromPosition(e)).index,s=a.offset,c=(l=this.getTextAtIndex(o).getExpandedRangeForAttributeAtOffset(t,s))[0],i=l[1],u=this.positionFromLocation({index:o,offset:c}),r=this.positionFromLocation({index:o,offset:i}),n([u,r])},u.prototype.getBaseBlockAttributes=function(){var t,e,n,r,i,o,s;for(t=this.getBlockAtIndex(0).getAttributes(),n=r=1,s=this.getBlockCount();s>=1?s>r:r>s;n=s>=1?++r:--r)e=this.getBlockAtIndex(n).getAttributes(),o=Math.min(t.length,e.length),t=function(){var n,r,s;for(s=[],i=n=0,r=o;(r>=0?r>n:n>r)&&e[i]===t[i];i=r>=0?++n:--n)s.push(e[i]);return s}();return t},c=function(t){var e,n;return n={},(e=t.getLastAttribute())&&(n[e]=!0),n},u.prototype.getAttachmentById=function(t){var e,n,r,i;for(n=0,r=(i=this.getAttachments()).length;r>n;n++)if((e=i[n]).id===t)return e},u.prototype.getAttachmentPieces=function(){var t;return t=[],this.blockList.eachObject((function(e){var n;return n=e.text,t=t.concat(n.getAttachmentPieces())})),t},u.prototype.getAttachments=function(){var t,e,n,r,i;for(i=[],t=0,e=(r=this.getAttachmentPieces()).length;e>t;t++)n=r[t],i.push(n.attachment);return i},u.prototype.getRangeOfAttachment=function(t){var e,r,i,o,s,a,l;for(o=0,r=e=0,i=(s=this.blockList.toArray()).length;i>e;r=++e){if(l=(a=s[r].text).getRangeOfAttachment(t))return n([o+l[0],o+l[1]]);o+=a.getLength()}},u.prototype.getLocationRangeOfAttachment=function(t){var e;return e=this.getRangeOfAttachment(t),this.locationRangeFromRange(e)},u.prototype.getAttachmentPieceForAttachment=function(t){var e,n,r,i;for(e=0,n=(i=this.getAttachmentPieces()).length;n>e;e++)if((r=i[e]).attachment===t)return r},u.prototype.findRangesForBlockAttribute=function(t){var e,n,r,i,o,s,a;for(o=0,s=[],n=0,r=(a=this.getBlocks()).length;r>n;n++)i=(e=a[n]).getLength(),e.hasAttribute(t)&&s.push([o,o+i]),o+=i;return s},u.prototype.findRangesForTextAttribute=function(t,e){var n,r,i,o,s,a,l,u,c,d;for(d=(null!=e?e:{}).withValue,a=0,l=[],u=[],o=function(e){return null!=d?e.getAttribute(t)===d:e.hasAttribute(t)},n=0,r=(c=this.getPieces()).length;r>n;n++)i=(s=c[n]).getLength(),o(s)&&(l[1]===a?l[1]=a+i:u.push(l=[a,a+i])),a+=i;return u},u.prototype.locationFromPosition=function(t){var e,n;return null!=(n=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,t))).index?n:{index:(e=this.getBlocks()).length-1,offset:e[e.length-1].getLength()}},u.prototype.positionFromLocation=function(t){return this.blockList.findPositionAtIndexAndOffset(t.index,t.offset)},u.prototype.locationRangeFromPosition=function(t){return n(this.locationFromPosition(t))},u.prototype.locationRangeFromRange=function(t){var e,r,i,o;if(t=n(t))return o=t[0],r=t[1],i=this.locationFromPosition(o),e=this.locationFromPosition(r),n([i,e])},u.prototype.rangeFromLocationRange=function(t){var e,i;return t=n(t),e=this.positionFromLocation(t[0]),r(t)||(i=this.positionFromLocation(t[1])),n([e,i])},u.prototype.isEqualTo=function(t){return this.blockList.isEqualTo(null!=t?t.blockList:void 0)},u.prototype.getTexts=function(){var t,e,n,r,i;for(i=[],e=0,n=(r=this.getBlocks()).length;n>e;e++)t=r[e],i.push(t.text);return i},u.prototype.getPieces=function(){var t,e,n,r,i;for(n=[],t=0,e=(r=this.getTexts()).length;e>t;t++)i=r[t],n.push.apply(n,i.getPieces());return n},u.prototype.getObjects=function(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())},u.prototype.toSerializableDocument=function(){var t;return t=[],this.blockList.eachObject((function(e){return t.push(e.copyWithText(e.text.toSerializableText()))}
2)),new this.constructor(t)},u.prototype.toString=function(){return this.blockList.toString()},u.prototype.toJSON=function(){return this.blockList.toJSON()},u.prototype.toConsole=function(){var t;return JSON.stringify(function(){var e,n,r,i;for(i=[],e=0,n=(r=this.blockList.toArray()).length;n>e;e++)t=r[e],i.push(JSON.parse(t.text.toConsole()));return i}.call(this))},u}(o.Object)}.call(this),function(){o.LineBreakInsertion=function(){function t(t){var e;this.composition=t,this.document=this.composition.document,e=this.composition.getSelectedRange(),this.startPosition=e[0],this.endPosition=e[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}return t.prototype.shouldInsertBlockBreak=function(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?0!==this.startLocation.offset:this.breaksOnReturn&&"\n"!==this.nextCharacter},t.prototype.shouldBreakFormattedBlock=function(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&"\n"===this.nextCharacter||"\n"===this.previousCharacter)},t.prototype.shouldDecreaseListLevel=function(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()},t.prototype.shouldPrependListItem=function(){return this.block.isListItem()&&0===this.startLocation.offset&&!this.block.isEmpty()},t.prototype.shouldRemoveLastBlockAttribute=function(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()},t}()}.call(this),function(){var t,e,n,r,i,s,a,l,u,c,d=function(t,e){function n(){this.constructor=t}for(var r in e)h.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},h={}.hasOwnProperty;s=o.normalizeRange,u=o.rangesAreEqual,l=o.rangeIsCollapsed,a=o.objectsAreEqual,t=o.arrayStartsWith,c=o.summarizeArrayChange,n=o.getAllAttributeNames,r=o.getBlockConfig,i=o.getTextConfig,e=o.extend,o.Composition=function(h){function f(){this.document=new o.Document,this.attachments=[],this.currentAttributes={},this.revision=0}return d(f,h),f.prototype.setDocument=function(t){var e;return t.isEqualTo(this.document)?void 0:(this.document=t,this.refreshAttachments(),this.revision++,null!=(e=this.delegate)&&"function"==typeof e.compositionDidChangeDocument?e.compositionDidChangeDocument(t):void 0)},f.prototype.getSnapshot=function(){return{document:this.document,selectedRange:this.getSelectedRange()}},f.prototype.loadSnapshot=function(t){var e,n,r,i;return e=t.document,i=t.selectedRange,null!=(n=this.delegate)&&"function"==typeof n.compositionWillLoadSnapshot&&n.compositionWillLoadSnapshot(),this.setDocument(null!=e?e:new o.Document),this.setSelection(null!=i?i:[0,0]),null!=(r=this.delegate)&&"function"==typeof r.compositionDidLoadSnapshot?r.compositionDidLoadSnapshot():void 0},f.prototype.insertText=function(t,e){var n,r,i,o;return o=(null!=e?e:{updatePosition:!0}).updatePosition,r=this.getSelectedRange(),this.setDocument(this.document.insertTextAtRange(t,r)),n=(i=r[0])+t.getLength(),o&&this.setSelection(n),this.notifyDelegateOfInsertionAtRange([i,n])},f.prototype.insertBlock=function(t){var e;return null==t&&(t=new o.Block),e=new o.Document([t]),this.insertDocument(e)},f.prototype.insertDocument=function(t){var e,n,r;return null==t&&(t=new o.Document),n=this.getSelectedRange(),this.setDocument(this.document.insertDocumentAtRange(t,n)),e=(r=n[0])+t.getLength(),this.setSelection(e),this.notifyDelegateOfInsertionAtRange([r,e])},f.prototype.insertString=function(t,e){var n,r;return n=this.getCurrentTextAttributes(),r=o.Text.textForStringWithAttributes(t,n),this.insertText(r,e)},f.prototype.insertBlockBreak=function(){var t,e,n;return e=this.getSelectedRange(),this.setDocument(this.document.insertBlockBreakAtRange(e)),t=(n=e[0])+1,this.setSelection(t),this.notifyDelegateOfInsertionAtRange([n,t])},f.prototype.insertLineBreak=function(){var t,e;return(e=new o.LineBreakInsertion(this)).shouldDecreaseListLevel()?(this.decreaseListLevel(),this.setSelection(e.startPosition)):e.shouldPrependListItem()?(t=new o.Document([e.block.copyWithoutText()]),this.insertDocument(t)):e.shouldInsertBlockBreak()?this.insertBlockBreak():e.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():e.shouldBreakFormattedBlock()?this.breakFormattedBlock(e):this.insertString("\n")},f.prototype.insertHTML=function(t){var e,n,r,i;return e=o.Document.fromHTML(t),r=this.getSelectedRange(),this.setDocument(this.document.mergeDocumentAtRange(e,r)),n=(i=r[0])+e.getLength()-1,this.setSelection(n),this.notifyDelegateOfInsertionAtRange([i,n])},f.prototype.replaceHTML=function(t){var e,n,r;return e=o.Document.fromHTML(t).copyUsingObjectsFromDocument(this.document),n=this.getLocationRange({strict:!1}),r=this.document.rangeFromLocationRange(n),this.setDocument(e),this.setSelection(r)},f.prototype.insertFile=function(t){return this.insertFiles([t])},f.prototype.insertFiles=function(t){var e,n,r,i,s,a;for(n=[],i=0,s=t.length;s>i;i++)r=t[i],(null!=(a=this.delegate)?a.compositionShouldAcceptFile
2(r):void 0)&&(e=o.Attachment.attachmentForFile(r),n.push(e));return this.insertAttachments(n)},f.prototype.insertAttachment=function(t){return this.insertAttachments([t])},f.prototype.insertAttachments=function(t){var e,n,r,i,s,a,l,u,c;for(u=new o.Text,i=0,s=t.length;s>i;i++)c=(e=t[i]).getType(),a=null!=(l=o.config.attachments[c])?l.presentation:void 0,r=this.getCurrentTextAttributes(),a&&(r.presentation=a),n=o.Text.textForAttachmentWithAttributes(e,r),u=u.appendText(n);return this.insertText(u)},f.prototype.shouldManageDeletingInDirection=function(t){var e;if(e=this.getLocationRange(),l(e)){if("backward"===t&&0===e[0].offset)return!0;if(this.shouldManageMovingCursorInDirection(t))return!0}else if(e[0].index!==e[1].index)return!0;return!1},f.prototype.deleteInDirection=function(t,e){var n,r,i,o,s,a,u,c;return o=(null!=e?e:{}).length,s=this.getLocationRange(),a=this.getSelectedRange(),(u=l(a))?i="backward"===t&&0===s[0].offset:c=s[0].index!==s[1].index,!(i&&this.canDecreaseBlockAttributeLevel()&&(r=this.getBlock(),r.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(a[0]),r.isEmpty()))&&(u&&(a=this.getExpandedRangeInDirection(t,{length:o}),"backward"===t&&(n=this.getAttachmentAtRange(a))),n?(this.editAttachment(n),!1):(this.setDocument(this.document.removeTextAtRange(a)),this.setSelection(a[0]),!i&&!c&&void 0))},f.prototype.moveTextFromRange=function(t){var e;return e=this.getSelectedRange()[0],this.setDocument(this.document.moveTextFromRangeToPosition(t,e)),this.setSelection(e)},f.prototype.removeAttachment=function(t){var e;return(e=this.document.getRangeOfAttachment(t))?(this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(e)),this.setSelection(e[0])):void 0},f.prototype.removeLastBlockAttribute=function(){var t,e,n,r;return r=(n=this.getSelectedRange())[0],e=n[1],t=this.document.getBlockAtPosition(e),this.removeCurrentAttribute(t.getLastAttribute()),this.setSelection(r)}," ",f.prototype.insertPlaceholder=function(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")},f.prototype.selectPlaceholder=function(){return null!=this.placeholderPosition?(this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+" ".length]),this.getSelectedRange()):void 0},f.prototype.forgetPlaceholder=function(){return this.placeholderPosition=null},f.prototype.hasCurrentAttribute=function(t){var e;return null!=(e=this.currentAttributes[t])&&!1!==e},f.prototype.toggleCurrentAttribute=function(t){var e;return(e=!this.currentAttributes[t])?this.setCurrentAttribute(t,e):this.removeCurrentAttribute(t)},f.prototype.canSetCurrentAttribute=function(t){return r(t)?this.canSetCurrentBlockAttribute(t):this.canSetCurrentTextAttribute(t)},f.prototype.canSetCurrentTextAttribute=function(){var t,e,n,r;if(t=this.getSelectedDocument()){for(e=0,n=(r=t.getAttachments()).length;n>e;e++)if(!r[e].hasContent())return!1;return!0}},f.prototype.canSetCurrentBlockAttribute=function(){var t;if(t=this.getBlock())return!t.isTerminalBlock()},f.prototype.setCurrentAttribute=function(t,e){return r(t)?this.setBlockAttribute(t,e):(this.setTextAttribute(t,e),this.currentAttributes[t]=e,this.notifyDelegateOfCurrentAttributesChange())},f.prototype.setTextAttribute=function(t,e){var n,r;if(n=this.getSelectedRange())return n[0]!==n[1]?this.setDocument(this.document.addAttributeAtRange(t,e,n)):"href"===t?(r=o.Text.textForStringWithAttributes(e,{href:e}),this.insertText(r)):void 0},f.prototype.setBlockAttribute=function(t,e){var n;if(n=this.getSelectedRange())return this.canSetCurrentAttribute(t)?(this.getBlock(),this.setDocument(this.document.applyBlockAttributeAtRange(t,e,n)),this.setSelection(n)):void 0},f.prototype.removeCurrentAttribute=function(t){return r(t)?(this.removeBlockAttribute(t),this.updateCurrentAttributes()):(this.removeTextAttribute(t),delete this.currentAttributes[t],this.notifyDelegateOfCurrentAttributesChange())},f.prototype.removeTextAttribute=function(t){var e;if(e=this.getSelectedRange())return this.setDocument(this.document.removeAttributeAtRange(t,e))},f.prototype.removeBlockAttribute=function(t){var e;if(e=this.getSelectedRange())return this.setDocument(this.document.removeAttributeAtRange(t,e))},f.prototype.canDecreaseNestingLevel=function(){var t;return(null!=(t=this.getBlock())?t.getNestingLevel():void 0)>0},f.prototype.canIncreaseNestingLevel=function(){var e,n,i;if(e=this.getBlock())return null!=(i=r(e.getLastNestableAttribute()))&&i.listAttribute?(n=this.getPreviousBlock())?t(n.getListItemAttributes(),e.getListItemAttributes()):void 0:e.getNestingLevel()>0},f.prototype.decreaseNestingLevel=function(){var t;if(t=this.getBlock())return this.setDocument(this.document.replaceBlock(t,t.decreaseNestingLevel()))},f.prototype.increaseNestingLevel=function(){var t;if(t=this.getBlock())return this.setDocument(this.document.replaceBlock(t,t.increaseNestingLevel()))},f.prototype.canDecreaseBlockAttributeLevel=function(){var t;return(null!=(t=this.getBlock())?t.getAttributeLevel():void 0)>0},f.prototype.decreaseBlockAttributeLevel=function(){var t,e;return(t=null!=(e=this.getBlock())?e.getLastAttribute():void 0)?this.removeCurrentAttribute(t):void 0},f.prototype.decreaseListLevel=function(){var t,e,n,r,i,o;for(o=this.getSelectedRange()[0],n=i=this.document.locationFromPosition(o).index,t=this.getBlock().getAttributeLevel();(e=this.document.getBlockAtIndex(n+1))&&e.isListItem()&&e.getAttributeLevel()>t;)n++;return o=this.document.positionFromLocation({index:i,offset:0}),r=this.document.positionFromLocation({index:n,offset:0}),this.setDocument(this.document.removeLastListAttributeAtRange([o,r]))},f.prototype.updateCurrentAttributes=function(){var t,e,r,i,o,s;if(s=this.getSelectedRange({ignoreLock:!0})){for(e=this.document.getCommonAttributesAtRange(s),r=0,i=(o=n()).length;i>r;r++)e[t=o[r]]||this.canSetCurrentAttribute(t)||(e[t]=!1);if(!a(e,this.currentAttributes))return this.currentAttributes=e,this.notifyDelegateOfCurrentAttributesChange()}},f.prototype.getCurrentAttributes=function(){return e.call({},this.currentAttributes)},f.prototype.getCurrentTextAttributes=function(){var t,e,n,r;for(e in t={},n=this.currentAttributes)!1!==(r=n[e])&&i(e)&&(t[e]=r);return t},f.prototype.freezeSelection=function(){return this.setCurrentAttribute("frozen",!0)},f.prototype.thawSelection=function(){return this.removeCurrentAttribute("frozen")},f.prototype.hasFrozenSelection=function(){return this.hasCurrentAttribute("frozen")},f.proxyMethod("getSelectionManager().getPointRange"),f.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),f.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),f.proxyMethod("getSelectionManager().locationIsCursorTarget"),f.proxyMethod("getSelectionManager().selectionIsExpanded"),f.proxyMethod("delegate?.getSelectionManager"),f.prototype.setSelection=function(t){var e,n;return e=this.document.locationRangeFromRange(t),null!=(n=this.delegate)?n.compositionDidRequestChangingSelectionToLocationRange(e):void 0},f.prototype.getSelectedRange=function(){var t;return(t=this.getLocationRange())?this.document.rangeFromLocationRange(t):void 0},f.prototype.setSelectedRange=function(t){var e;
2return e=this.document.locationRangeFromRange(t),this.getSelectionManager().setLocationRange(e)},f.prototype.getPosition=function(){var t;return(t=this.getLocationRange())?this.document.positionFromLocation(t[0]):void 0},f.prototype.getLocationRange=function(t){var e,n;return null!=(e=null!=(n=this.targetLocationRange)?n:this.getSelectionManager().getLocationRange(t))?e:s({index:0,offset:0})},f.prototype.withTargetLocationRange=function(t,e){var n;this.targetLocationRange=t;try{n=e()}finally{this.targetLocationRange=null}return n},f.prototype.withTargetRange=function(t,e){var n;return n=this.document.locationRangeFromRange(t),this.withTargetLocationRange(n,e)},f.prototype.withTargetDOMRange=function(t,e){var n;return n=this.createLocationRangeFromDOMRange(t,{strict:!1}),this.withTargetLocationRange(n,e)},f.prototype.getExpandedRangeInDirection=function(t,e){var n,r,i,o;return r=(null!=e?e:{}).length,o=(i=this.getSelectedRange())[0],n=i[1],"backward"===t?r?o-=r:o=this.translateUTF16PositionFromOffset(o,-1):r?n+=r:n=this.translateUTF16PositionFromOffset(n,1),s([o,n])},f.prototype.shouldManageMovingCursorInDirection=function(t){var e;return!!this.editingAttachment||(e=this.getExpandedRangeInDirection(t),null!=this.getAttachmentAtRange(e))},f.prototype.moveCursorInDirection=function(t){var e,n,r,i;return this.editingAttachment?r=this.document.getRangeOfAttachment(this.editingAttachment):(i=this.getSelectedRange(),r=this.getExpandedRangeInDirection(t),n=!u(i,r)),this.setSelectedRange("backward"===t?r[0]:r[1]),n&&(e=this.getAttachmentAtRange(r))?this.editAttachment(e):void 0},f.prototype.expandSelectionInDirection=function(t,e){var n,r;return n=(null!=e?e:{}).length,r=this.getExpandedRangeInDirection(t,{length:n}),this.setSelectedRange(r)},f.prototype.expandSelectionForEditing=function(){return this.hasCurrentAttribute("href")?this.expandSelectionAroundCommonAttribute("href"):void 0},f.prototype.expandSelectionAroundCommonAttribute=function(t){var e,n;return e=this.getPosition(),n=this.document.getRangeOfCommonAttributeAtPosition(t,e),this.setSelectedRange(n)},f.prototype.selectionContainsAttachments=function(){var t;return(null!=(t=this.getSelectedAttachments())?t.length:void 0)>0},f.prototype.selectionIsInCursorTarget=function(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())},f.prototype.positionIsCursorTarget=function(t){var e;return(e=this.document.locationFromPosition(t))?this.locationIsCursorTarget(e):void 0},f.prototype.positionIsBlockBreak=function(t){var e;return null!=(e=this.document.getPieceAtPosition(t))?e.isBlockBreak():void 0},f.prototype.getSelectedDocument=function(){var t;return(t=this.getSelectedRange())?this.document.getDocumentAtRange(t):void 0},f.prototype.getSelectedAttachments=function(){var t;return null!=(t=this.getSelectedDocument())?t.getAttachments():void 0},f.prototype.getAttachments=function(){return this.attachments.slice(0)},f.prototype.refreshAttachments=function(){var t,e,n,r,i,o,s,a,l,u,d,h;for(n=this.document.getAttachments(),t=(a=c(this.attachments,n)).added,d=a.removed,this.attachments=n,r=0,o=d.length;o>r;r++)(e=d[r]).delegate=null,null!=(l=this.delegate)&&"function"==typeof l.compositionDidRemoveAttachment&&l.compositionDidRemoveAttachment(e);for(h=[],i=0,s=t.length;s>i;i++)(e=t[i]).delegate=this,h.push(null!=(u=this.delegate)&&"function"==typeof u.compositionDidAddAttachment?u.compositionDidAddAttachment(e):void 0);return h},f.prototype.attachmentDidChangeAttributes=function(t){var e;return this.revision++,null!=(e=this.delegate)&&"function"==typeof e.compositionDidEditAttachment?e.compositionDidEditAttachment(t):void 0},f.prototype.attachmentDidChangePreviewURL=function(t){var e;return this.revision++,null!=(e=this.delegate)&&"function"==typeof e.compositionDidChangeAttachmentPreviewURL?e.compositionDidChangeAttachmentPreviewURL(t):void 0},f.prototype.editAttachment=function(t,e){var n;if(t!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=t,null!=(n=this.delegate)&&"function"==typeof n.compositionDidStartEditingAttachment?n.compositionDidStartEditingAttachment(this.editingAttachment,e):void 0},f.prototype.stopEditingAttachment=function(){var t;if(this.editingAttachment)return null!=(t=this.delegate)&&"function"==typeof t.compositionDidStopEditingAttachment&&t.compositionDidStopEditingAttachment(this.editingAttachment),this.editingAttachment=null},f.prototype.updateAttributesForAttachment=function(t,e){return this.setDocument(this.document.updateAttributesForAttachment(t,e))},f.prototype.removeAttributeForAttachment=function(t,e){return this.setDocument(this.document.removeAttributeForAttachment(t,e))},f.prototype.breakFormattedBlock=function(t){var e,n,r,i,s;return n=t.document,e=t.block,s=[(i=t.startPosition)-1,i],e.getBlockBreakPosition()===t.startLocation.offset?(e.breaksOnReturn()&&"\n"===t.nextCharacter?i+=1:n=n.removeTextAtRange(s),s=[i,i]):"\n"===t.nextCharacter?"\n"===t.previousCharacter?s=[i-1,i+1]:(s=[i,i+1],i+=1):t.startLocation.offset-1!=0&&(i+=1),r=new o.Document([e.removeLastAttribute().copyWithoutText()]),this.setDocument(n.insertDocumentAtRange(r,s)),this.setSelection(i)},f.prototype.getPreviousBlock=function(){var t,e;return(e=this.getLocationRange())&&(t=e[0].index)>0?this.document.getBlockAtIndex(t-1):void 0},f.prototype.getBlock=function(){var t;return(t=this.getLocationRange())?this.document.getBlockAtIndex(t[0].index):void 0},f.prototype.getAttachmentAtRange=function(t){var e;return(e=this.document.getDocumentAtRange(t)).toString()===o.OBJECT_REPLACEMENT_CHARACTER+"\n"?e.getAttachments()[0]:void 0},f.prototype.notifyDelegateOfCurrentAttributesChange=function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.compositionDidChangeCurrentAttributes?t.compositionDidChangeCurrentAttributes(this.currentAttributes):void 0},f.prototype.notifyDelegateOfInsertionAtRange=function(t){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionDidPerformInsertionAtRange?e.compositionDidPerformInsertionAtRange(t):void 0},f.prototype.translateUTF16PositionFromOffset=function(t,e){var n,r;return n=(r=this.document.toUTF16String()).offsetFromUCS2Offset(t),r.offsetToUCS2Offset(n+e)},f}(o.BasicObject)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.UndoManager=function(e){function n(t){this.composition=t,this.undoEntries=[],this.redoEntries=[]}var r;return t(n,e),n.prototype.recordUndoEntry=function(t,e){var n,i,o,s,a;return i=(s=null!=e?e:{}).context,n=s.consolidatable,o=this.undoEntries.slice(-1)[0],n&&r(o,t,i)?void 0:(a=this.createEntry({description:t,context:i}),this.undoEntries.push(a),this.redoEntries=[])},n.prototype.undo=function(){var t,e;return(e=this.undoEntries.pop())?(t=this.createEntry(e),this.redoEntries.push(t),this.composition.loadSnapsh
2ot(e.snapshot)):void 0},n.prototype.redo=function(){var t,e;return(t=this.redoEntries.pop())?(e=this.createEntry(t),this.undoEntries.push(e),this.composition.loadSnapshot(t.snapshot)):void 0},n.prototype.canUndo=function(){return this.undoEntries.length>0},n.prototype.canRedo=function(){return this.redoEntries.length>0},n.prototype.createEntry=function(t){var e,n,r;return n=(r=null!=t?t:{}).description,e=r.context,{description:null!=n?n.toString():void 0,context:JSON.stringify(e),snapshot:this.composition.getSnapshot()}},r=function(t,e,n){return(null!=t?t.description:void 0)===(null!=e?e.toString():void 0)&&(null!=t?t.context:void 0)===JSON.stringify(n)},n}(o.BasicObject)}.call(this),function(){var t;o.attachmentGalleryFilter=function(e){var n;return(n=new t(e)).perform(),n.getSnapshot()},t=function(){function t(t){this.document=t.document,this.selectedRange=t.selectedRange}var e;return e="attachmentGallery","presentation","gallery",t.prototype.perform=function(){return this.removeBlockAttribute(),this.applyBlockAttribute()},t.prototype.getSnapshot=function(){return{document:this.document,selectedRange:this.selectedRange}},t.prototype.removeBlockAttribute=function(){var t,n,r,i,o;for(o=[],t=0,n=(i=this.findRangesOfBlocks()).length;n>t;t++)r=i[t],o.push(this.document=this.document.removeAttributeAtRange(e,r));return o},t.prototype.applyBlockAttribute=function(){var t,n,r,i,o,s;for(r=0,s=[],t=0,n=(o=this.findRangesOfPieces()).length;n>t;t++)(i=o[t])[1]-i[0]>1&&(i[0]+=r,i[1]+=r,"\n"!==this.document.getCharacterAtPosition(i[1])&&(this.document=this.document.insertBlockBreakAtRange(i[1]),i[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),i[1]++,r++),0!==i[0]&&"\n"!==this.document.getCharacterAtPosition(i[0]-1)&&(this.document=this.document.insertBlockBreakAtRange(i[0]),i[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),i[0]++,r++),s.push(this.document=this.document.applyBlockAttributeAtRange(e,!0,i)));return s},t.prototype.findRangesOfBlocks=function(){return this.document.findRangesForBlockAttribute(e)},t.prototype.findRangesOfPieces=function(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})},t.prototype.moveSelectedRangeForward=function(){return this.selectedRange[0]+=1,this.selectedRange[1]+=1},t}()}.call(this),function(){o.Editor=function(){function t(t,n,r){this.composition=t,this.selectionManager=n,this.element=r,this.insertFiles=function(t,e){return function(){return t.apply(e,arguments)}}(this.insertFiles,this),this.undoManager=new o.UndoManager(this.composition),this.filters=e.slice(0)}var e;return e=[o.attachmentGalleryFilter],t.prototype.loadDocument=function(t){return this.loadSnapshot({document:t,selectedRange:[0,0]})},t.prototype.loadHTML=function(t){return null==t&&(t=""),this.loadDocument(o.Document.fromHTML(t,{referenceElement:this.element}))},t.prototype.loadJSON=function(t){var e,n;return e=t.document,n=t.selectedRange,e=o.Document.fromJSON(e),this.loadSnapshot({document:e,selectedRange:n})},t.prototype.loadSnapshot=function(t){return this.undoManager=new o.UndoManager(this.composition),this.composition.loadSnapshot(t)},t.prototype.getDocument=function(){return this.composition.document},t.prototype.getSelectedDocument=function(){return this.composition.getSelectedDocument()},t.prototype.getSnapshot=function(){return this.composition.getSnapshot()},t.prototype.toJSON=function(){return this.getSnapshot()},t.prototype.deleteInDirection=function(t){return this.composition.deleteInDirection(t)},t.prototype.insertAttachment=function(t){return this.composition.insertAttachment(t)},t.prototype.insertAttachments=function(t){return this.composition.insertAttachments(t)},t.prototype.insertDocument=function(t){return this.composition.insertDocument(t)},t.prototype.insertFile=function(t){return this.composition.insertFile(t)},t.prototype.insertFiles=function(t){return this.composition.insertFiles(t)},t.prototype.insertHTML=function(t){return this.composition.insertHTML(t)},t.prototype.insertString=function(t){return this.composition.insertString(t)},t.prototype.insertText=function(t){return this.composition.insertText(t)},t.prototype.insertLineBreak=function(){return this.composition.insertLineBreak()},t.prototype.getSelectedRange=function(){return this.composition.getSelectedRange()},t.prototype.getPosition=function(){return this.composition.getPosition()},t.prototype.getClientRectAtPosition=function(t){var e;return e=this.getDocument().locationRangeFromRange([t,t+1]),this.selectionManager.getClientRectAtLocationRange(e)},t.prototype.expandSelectionInDirection=function(t){return this.composition.expandSelectionInDirection(t)},t.prototype.moveCursorInDirection=function(t){return this.composition.moveCursorInDirection(t)},t.prototype.setSelectedRange=function(t){return this.composition.setSelectedRange(t)}
2,t.prototype.activateAttribute=function(t,e){return null==e&&(e=!0),this.composition.setCurrentAttribute(t,e)},t.prototype.attributeIsActive=function(t){return this.composition.hasCurrentAttribute(t)},t.prototype.canActivateAttribute=function(t){return this.composition.canSetCurrentAttribute(t)},t.prototype.deactivateAttribute=function(t){return this.composition.removeCurrentAttribute(t)},t.prototype.canDecreaseNestingLevel=function(){return this.composition.canDecreaseNestingLevel()},t.prototype.canIncreaseNestingLevel=function(){return this.composition.canIncreaseNestingLevel()},t.prototype.decreaseNestingLevel=function(){return this.canDecreaseNestingLevel()?this.composition.decreaseNestingLevel():void 0},t.prototype.increaseNestingLevel=function(){return this.canIncreaseNestingLevel()?this.composition.increaseNestingLevel():void 0},t.prototype.canRedo=function(){return this.undoManager.canRedo()},t.prototype.canUndo=function(){return this.undoManager.canUndo()},t.prototype.recordUndoEntry=function(t,e){var n,r,i;return r=(i=null!=e?e:{}).context,n=i.consolidatable,this.undoManager.recordUndoEntry(t,{context:r,consolidatable:n})},t.prototype.redo=function(){return this.canRedo()?this.undoManager.redo():void 0},t.prototype.undo=function(){return this.canUndo()?this.undoManager.undo():void 0},t}()}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.ManagedAttachment=function(e){function n(t,e){var n;this.attachmentManager=t,this.attachment=e,n=this.attachment,this.id=n.id,this.file=n.file}return t(n,e),n.prototype.remove=function(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)},n.proxyMethod("attachment.getAttribute"),n.proxyMethod("attachment.hasAttribute"),n.proxyMethod("attachment.setAttribute"),n.proxyMethod("attachment.getAttributes"),n.proxyMethod("attachment.setAttributes"),n.proxyMethod("attachment.isPending"),n.proxyMethod("attachment.isPreviewable"),n.proxyMethod("attachment.getURL"),n.proxyMethod("attachment.getHref"),n.proxyMethod("attachment.getFilename"),n.proxyMethod("attachment.getFilesize"),n.proxyMethod("attachment.getFormattedFilesize"),n.proxyMethod("attachment.getExtension"),n.proxyMethod("attachment.getContentType"),n.proxyMethod("attachment.getFile"),n.proxyMethod("attachment.setFile"),n.proxyMethod("attachment.releaseFile"),n.proxyMethod("attachment.getUploadProgress"),n.proxyMethod("attachment.setUploadProgress"),n}(o.BasicObject)}.call(this),function(){var t=function(t,n){function r(){this.constructor=t}for(var i in n)e.call(n,i)&&(t[i]=n[i]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},e={}.hasOwnProperty;o.AttachmentManager=function(e){function n(t){var e,n,r;for(null==t&&(t=[]),this.managedAttachments={},n=0,r=t.length;r>n;n++)e=t[n],this.manageAttachment(e)}return t(n,e),n.prototype.getAttachments=function(){var t,e,n,r;for(e in r=[],n=this.managedAttachments)t=n[e],r.push(t);return r},n.prototype.manageAttachment=function(t){var e,n;return null!=(e=this.managedAttachments)[n=t.id]?e[n]:e[n]=new o.ManagedAttachment(this,t)},n.prototype.attachmentIsManaged=function(t){return t.id in this.managedAttachments},n.prototype.requestRemovalOfAttachment=function(t){var e;return this.attachmentIsManaged(t)&&null!=(e=this.delegate)&&"function"==typeof e.attachmentManagerDidRequestRemovalOfAttachment?e.attachmentManagerDidRequestRemovalOfAttachment(t):void 0},n.prototype.unmanageAttachment=function(t){var e;return e=this.managedAttachments[t.id],delete this.managedAttachments[t.id],e},n}(o.BasicObject)}.call(this),function(){var t,e,n,r,i,s,a,l,u,c,d;t=o.elementContainsNode,e=o.findChildIndexOfNode,i=o.nodeIsBlockStart,s=o.nodeIsBlockStartComment,r=o.nodeIsBlockContainer,a=o.nodeIsCursorTarget,l=o.nodeIsEmptyTextNode,u=o.nodeIsTextNode,n=o.nodeIsAttachmentElement,c=o.tagName,d=o.walkTree,o.LocationMapper=function(){function o(t){this.element=t}var h,f,p,m;return o.prototype.findLocationFromContainerAndOffset=function(n,r,o){var s,l,c,h,m,g,y;for(g=(null!=o?o:{strict:!0}).strict,l=0,c=!1,h={index:0,offset:0},(s=this.findAttachmentElementParentForNode(n))&&(n=s.parentNode,r=e(s)),y=d(this.element,{usingFilter:p});y.nextNode();){if((m=y.currentNode)===n&&u(n)){a(m)||(h.offset+=r);break}if(m.parentNode===n){if(l++===r)break}else if(!t(n,m)&&l>0)break;i(m,{strict:g})?(c&&h.index++,h.offset=0,c=!0):h.offset+=f(m)}return h},o.prototype.findContainerAndOffsetFromLocation=function(t){var n,o,s,l,c;if(0===t.index&&0===t.offset){for(n=this.element,l=0;n.firstChild;)if(n=n.firstChild,r(n)){l=1;break}return[n,l]}if(o=(c=this.findNodeAndOffsetFromLocation(t))[0],s=c[1],o){if(u(o))0===f(
2o)?(n=o.parentNode.parentNode,l=e(o.parentNode),a(o,{name:"right"})&&l++):(n=o,l=t.offset-s);else{if(n=o.parentNode,!i(o.previousSibling)&&!r(n))for(;o===n.lastChild&&(o=n,n=n.parentNode,!r(n)););l=e(o),0!==t.offset&&l++}return[n,l]}},o.prototype.findNodeAndOffsetFromLocation=function(t){var e,n,r,i,o,s,l,c;for(l=0,n=0,r=(c=this.getSignificantNodesForIndex(t.index)).length;r>n;n++){if(e=c[n],i=f(e),t.offset<=l+i)if(u(e)){if(o=e,s=l,t.offset===s&&a(o))break}else o||(o=e,s=l);if((l+=i)>t.offset)break}return[o,s]},o.prototype.findAttachmentElementParentForNode=function(t){for(;t&&t!==this.element;){if(n(t))return t;t=t.parentNode}},o.prototype.getSignificantNodesForIndex=function(t){var e,n,r,i,o;for(r=[],o=d(this.element,{usingFilter:h}),i=!1;o.nextNode();)if(n=o.currentNode,s(n)){if(null!=e?e++:e=0,e===t)i=!0;else if(i)break}else i&&r.push(n);return r},f=function(t){return t.nodeType===Node.TEXT_NODE?a(t)?0:t.textContent.length:"br"===c(t)||n(t)?1:0},h=function(t){return m(t)===NodeFilter.FILTER_ACCEPT?p(t):NodeFilter.FILTER_REJECT},m=function(t){return l(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},p=function(t){return n(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},o}()}.call(this),function(){var t,e,n=[].slice;t=o.getDOMRange,e=o.setDOMRange,o.PointMapper=function(){function r(){}return r.prototype.createDOMRangeFromPoint=function(n){var r,i,o,s,a,l,u,c;if(u=n.x,c=n.y,document.caretPositionFromPoint)return o=(a=document.caretPositionFromPoint(u,c)).offsetNode,i=a.offset,(r=document.createRange()).setStart(o,i),r;if(document.caretRangeFromPoint)return document.caretRangeFromPoint(u,c);if(document.body.createTextRange){s=t();try{(l=document.body.createTextRange()).moveToPoint(u,c),l.select()}catch(t){}return r=t(),e(s),r}},r.prototype.getClientRectsForDOMRange=function(t){var e;return[(e=n.call(t.getClientRects()))[0],e[e.length-1]]},r}()}.call(this),function(){var t,e=function(t,e){return function(){return t.apply(e,arguments)}},n=function(t,e){function n(){this.constructor=t}for(var i in e)r.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty,i=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};t=o.getDOMRange,o.SelectionChangeObserver=function(r){function o(){this.run=e(this.run,this),this.update=e(this.update,this),this.selectionManagers=[]}var s;return n(o,r),o.prototype.start=function(){return this.started?void 0:(this.started=!0,"onselectionchange"in document?document.addEventListener("selectionchange",this.update,!0):this.run())},o.prototype.stop=function(){return this.started?(this.started=!1,document.removeEventListener("selectionchange",this.update,!0)):void 0},o.prototype.registerSelectionManager=function(t){return i.call(this.selectionManagers,t)<0?(this.selectionManagers.push(t),this.start()):void 0},o.prototype.unregisterSelectionManager=function(t){var e;return this.selectionManagers=function(){var n,r,i,o;for(o=[],n=0,r=(i=this.selectionManagers).length;r>n;n++)(e=i[n])!==t&&o.push(e);return o}.call(this),0===this.selectionManagers.length?this.stop():void 0},o.prototype.notifySelectionManagersOfSelectionChange=function(){var t,e,n,r,i;for(r=[],t=0,e=(n=this.selectionManagers).length;e>t;t++)i=n[t],r.push(i.selectionDidChange());return r},o.prototype.update=function(){var e;return e=t(),s(e,this.domRange)?void 0:(this.domRange=e,this.notifySelectionManagersOfSelectionChange())},o.prototype.reset=function(){return this.domRange=null,this.update()},o.prototype.run=function(){return this.started?(this.update(),requestAnimationFrame(this.run)):void 0},s=function(t,e){return(null!=t?t.startContainer:void 0)===(null!=e?e.startContainer:void 0)&&(null!=t?t.startOffset:void 0)===(null!=e?e.startOffset:void 0)&&(null!=t?t.endContainer:void 0)===(null!=e?e.endContainer:void 0)&&(null!=t?t.endOffset:void 0)===(null!=e?e.endOffset:void 0)},o}(o.BasicObject),null==o.selectionChangeObserver&&(o.selectionChangeObserver=new o.SelectionChangeObserver)}.call(this),function(){var t,e,n,r,i,s,a,l,u,c,d=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function n(){this.constructor=t}for(var r in e)f.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty;n=o.getDOMSelection,e=o.getDOMRange,c=o.setDOMRange,t=o.elementContainsNode,s=o.nodeIsCursorTarget,i=o.innerElementIsActive,r=o.handleEvent,a=o.normalizeRange,l=o.rangeIsCollapsed,u=o.rangesAreEqual,o.SelectionManager=function(f){function p(t){this.element=t,this.selectionDidChange=d(this.selectionDidChange,this),this.didMouseDown=d(this.didMouseDown,this),this.locationMapper=new o.LocationMapper(this.element),this.pointMapper=new o.PointMapper,this.lockCount=0,r("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}return h(p,f),p.prototype.getLocationRange=function(t){var n;return null==t&&(t={}),!1===t.strict?this.createLocationRangeFromDOMRange(e(),{strict:!1}):t.ignoreLock?this.currentLocationRange:null!=(n=this.lockedLocationRange)?n:this.currentLocationRange},p.prototype.setLocationRange=function(t){var e;if(!this.lockedLocationRange)return t=a(t),(e=this.createDOMRangeFromLocationRange(t))?(c(e),this.updateCurrentLocationRange(t)):void 0},p.prototype.setLocationRangeFromPointRange=function(t){var e,n;return t=a(t),n=this.getLocationAtPoint(t[0]),e=this.getLocationAtPoint(t[1]),this.setLocationRange([n,e])},p.prototype.getClientRectAtLocationRange=function(t){var e;return(e=this.createDOMRangeFromLocationRange(t))?this.getClientRectsForDOMRange(e)[1]:void 0},p.prototype.locationIsCursorTarget=function(t){var e,n;return e=(n=this.findNodeAndOffsetFromLocation(t))[0],n[1],s(e)},p.prototype.lock=function(){return 0==this.lockCount++?(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange()):void 0},p.prototype.unlock=function(){var t;return 0==--this.lockCount&&(t=this.lockedLocationRange,this.lockedLocationRange=null,null!=t)?this.setLocationRange(t):void 0},p.prototype.clearSelection=function(){var t;return null!=(t=n())?t.removeAllRanges():void 0},p.prototype.selectionIsCollapsed=function(){var t;return!0===(null!=(t=e())?t.collapsed:void 0)},p.prototype.selectionIsExpanded=function(){return!this.selectionIsCollapsed()},p.prototype.createLocationRangeFromDOMRange=function(t,e){var n,r;if(null!=t&&this.domRangeWithinElement(t)&&(r=this.findLocationFromContainerAndOffset(t.startContainer,t.startOffset,e)))return t.collapsed||(n=this.findLocationFromContainerAndOffset(t.endContainer,t.endOffset,e)),a([r,n])},p.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),p.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),p.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),p.proxyMethod("pointMapper.createDOMRangeFromPoint"),p.proxyMethod("pointMapper.getClientRectsForDOMRange"),p.prototype.didMouseDown=function(){return this.pauseTemporarily()},p.prototype.pauseTemporarily=function(){var e,n,i,o;return this.paused=!0,n=function(e){return function(){var n,r;for(e.paused=!1,clearTimeout(o),n=0,r=i.length;r>n;n++)i[n].destroy();return t(document,e.element)?e.selectionDidChange():void 0}}(this),o=setTimeout(n,200),i=function(){var t,i,o,s;for(s=[],t=0,i=(o=["mousemove","keydown"]).length;i>t;
2t++)e=o[t],s.push(r(e,{onElement:document,withCallback:n}));return s}()},p.prototype.selectionDidChange=function(){return this.paused||i(this.element)?void 0:this.updateCurrentLocationRange()},p.prototype.updateCurrentLocationRange=function(t){var n;return(null!=t?t:t=this.createLocationRangeFromDOMRange(e()))&&!u(t,this.currentLocationRange)?(this.currentLocationRange=t,null!=(n=this.delegate)&&"function"==typeof n.locationRangeDidChange?n.locationRangeDidChange(this.currentLocationRange.slice(0)):void 0):void 0},p.prototype.createDOMRangeFromLocationRange=function(t){var e,n,r,i;return r=this.findContainerAndOffsetFromLocation(t[0]),n=l(t)?r:null!=(i=this.findContainerAndOffsetFromLocation(t[1]))?i:r,null!=r&&null!=n?((e=document.createRange()).setStart.apply(e,r),e.setEnd.apply(e,n),e):void 0},p.prototype.getLocationAtPoint=function(t){var e,n;return(e=this.createDOMRangeFromPoint(t))&&null!=(n=this.createLocationRangeFromDOMRange(e))?n[0]:void 0},p.prototype.domRangeWithinElement=function(e){return e.collapsed?t(this.element,e.startContainer):t(this.element,e.startContainer)&&t(this.element,e.endContainer)},p}(o.BasicObject)}.call(this),function(){var t,e,n,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty,a=[].slice;n=o.rangeIsCollapsed,r=o.rangesAreEqual,e=o.objectsAreEqual,t=o.getBlockConfig,o.EditorController=function(s){function l(t){var e,n;this.editorElement=t.editorElement,e=t.document,n=t.html,this.selectionManager=new o.SelectionManager(this.editorElement),this.selectionManager.delegate=this,this.composition=new o.Composition,this.composition.delegate=this,this.attachmentManager=new o.AttachmentManager(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=new(o["Level"+o.config.input.getLevel()+"InputController"])(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new o.CompositionController(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new o.ToolbarController(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new o.Editor(this.composition,this.selectionManager,this.editorElement),null!=e?this.editor.loadDocument(e):this.editor.loadHTML(n)}var u;return i(l,s),l.prototype.registerSelectionManager=function(){return o.selectionChangeObserver.registerSelectionManager(this.selectionManager)},l.prototype.unregisterSelectionManager=function(){return o.selectionChangeObserver.unregisterSelectionManager(this.selectionManager)},l.prototype.render=function(){return this.compositionController.render()},l.prototype.reparse=function(){return this.composition.replaceHTML(this.editorElement.innerHTML)},l.prototype.compositionDidChangeDocument=function(){return this.notifyEditorElement("document-change"),this.handlingInput?void 0:this.render()},l.prototype.compositionDidChangeCurrentAttributes=function(t){return this.currentAttributes=t,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})},l.prototype.compositionDidPerformInsertionAtRange=function(t){return this.pasting?this.pastedRange=t:void 0},l.prototype.compositionShouldAcceptFile=function(t){return this.notifyEditorElement("file-accept",{file:t})},l.prototype.compositionDidAddAttachment=function(t){var e;return e=this.attachmentManager.manageAttachment(t),this.notifyEditorElement("attachment-add",{attachment:e})},l.prototype.compositionDidEditAttachment=function(t){var e;return this.compositionController.rerenderViewForObject(t),e=this.attachmentManager.manageAttachment(t),this.notifyEditorElement("attachment-edit",{attachment:e}),this.notifyEditorElement("change")},l.prototype.compositionDidChangeAttachmentPreviewURL=function(t){return this.compositionController.invalidateViewForObject(t),this.notifyEditorElement("change")},l.prototype.compositionDidRemoveAttachment=function(t){var e;return e=this.attachmentManager.unmanageAttachment(t),this.notifyEditorElement("attachment-remove",{attachment:e})},l.prototype.compositionDidStartEditingAttachment=function(t,e){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(t),this.compositionController.installAttachmentEditorForAttachment(t,e),this.selectionManager.setLocationRange(this.attachmentLocationRange)},l.prototype.compositionDidStopEditingAttachment=function(){return this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null},l.prototype.compositionDidRequestChangingSelectionToLocationRange=function(t){return!this.loadingSnapshot||this.isFocused()?(this.requestedLocationRange=t,this.compositionRevisionWhe
2nLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()):void 0},l.prototype.compositionWillLoadSnapshot=function(){return this.loadingSnapshot=!0},l.prototype.compositionDidLoadSnapshot=function(){return this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1},l.prototype.getSelectionManager=function(){return this.selectionManager},l.proxyMethod("getSelectionManager().setLocationRange"),l.proxyMethod("getSelectionManager().getLocationRange"),l.prototype.attachmentManagerDidRequestRemovalOfAttachment=function(t){return this.removeAttachment(t)},l.prototype.compositionControllerWillSyncDocumentView=function(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()},l.prototype.compositionControllerDidSyncDocumentView=function(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")},l.prototype.compositionControllerDidRender=function(){return null!=this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision},l.prototype.compositionControllerDidFocus=function(){return this.toolbarController.hideDialog(),this.notifyEditorElement("focus")},l.prototype.compositionControllerDidBlur=function(){return this.notifyEditorElement("blur")},l.prototype.compositionControllerDidSelectAttachment=function(t,e){return this.toolbarController.hideDialog(),this.composition.editAttachment(t,e)},l.prototype.compositionControllerDidRequestDeselectingAttachment=function(t){var e,n;return e=null!=(n=this.attachmentLocationRange)?n:this.composition.document.getLocationRangeOfAttachment(t),this.selectionManager.setLocationRange(e[1])},l.prototype.compositionControllerWillUpdateAttachment=function(t){return this.editor.recordUndoEntry("Edit Attachment",{context:t.id,consolidatable:!0})},l.prototype.compositionControllerDidRequestRemovalOfAttachment=function(t){return this.removeAttachment(t)},l.prototype.inputControllerWillHandleInput=function(){return this.handlingInput=!0,this.requestedRender=!1},l.prototype.inputControllerDidRequestRender=function(){return this.requestedRender=!0},l.prototype.inputControllerDidHandleInput=function(){return this.handlingInput=!1,this.requestedRender?(this.requestedRender=!1,this.render()):void 0},l.prototype.inputControllerDidAllowUnhandledInput=function(){return this.notifyEditorElement("change")},l.prototype.inputControllerDidRequestReparse=function(){return this.reparse()},l.prototype.inputControllerWillPerformTyping=function(){return this.recordTypingUndoEntry()},l.prototype.inputControllerWillPerformFormatting=function(t){return this.recordFormattingUndoEntry(t)},l.prototype.inputControllerWillCutText=function(){return this.editor.recordUndoEntry("Cut")},l.prototype.inputControllerWillPaste=function(t){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:t})},l.prototype.inputControllerDidPaste=function(t){return t.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:t})},l.prototype.inputControllerWillMoveText=function(){return this.editor.recordUndoEntry("Move")},l.prototype.inputControllerWillAttachFiles=function(){return this.editor.recordUndoEntry("Drop Files")},l.prototype.inputControllerWillPerformUndo=function(){return this.editor.undo()},l.prototype.inputControllerWillPerformRedo=function(){return this.editor.redo()},l.prototype.inputControllerDidReceiveKeyboardCommand=function(t){return this.toolbarController.applyKeyboardCommand(t)},l.prototype.inputControllerDidStartDrag=function(){return this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()},l.prototype.inputControllerDidReceiveDragOverPoint=function(t){return this.selectionManager.setLocationRangeFromPointRange(t)},l.prototype.inputControllerDidCancelDrag=function(){return this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null},l.prototype.locationRangeDidChange=function(t){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!r(this.attachmentLocationRange,t)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")},l.prototype.toolbarDidClickButton=function(){return this.getLocationRange()?void 0:this.setLocationRange({index:0,offset:0})},l.prototype.toolbarDidInvokeAction=function(t){return this.invokeAction(t)},l.prototype.toolbarDidToggleAttribute=function(t){return this.recordFormattingUndoEntry(t),this.composition.toggleCurrentAttribute(t),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarDidUpdateAttribute=function(t,e){return this.recordFormattingUndoEntry(t),this.composition.setCurrentAttribute(t,e),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarDidRemoveAttribute=function(t){return this.recordFormattingUndoEntry(t),this.composition.removeCurrentAttribute(t),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarWillShowDialog=function(){return this.composition.expandSelectionForEditing(),this.freezeSelection()},l.prototype.toolbarDidShowDialog=function(t){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:t})},l.prototype.toolbarDidHideDialog=function(t){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:t})},l.prototype.freezeSelection=function(){return this.selectionFrozen?void 0:(this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render())},l.prototype.thawSelection=function(){return this.selectionFrozen?(this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()):void 0},l.prototype.actions={undo:{test:function(){return this.editor.canUndo()},perform:function(){return this.editor.undo()}},redo:{test:function(){return this.editor.canRedo()},perform:function(){return this.editor.redo()}},link:{test:function(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test:function(){return this.editor.canIncreaseNestingLevel()},perform:function(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test:function(){return this.editor.canDecreaseNestingLevel()},perform:function(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:function(){return!0},perform:function(){return o.config.input.pickFiles(this.editor.insertFiles)}}},l.prototype.canInvokeAction=function(t){var e,n;return!!this.actionIsExternal(t)||!!(null!=(e=this.actions[t])&&null!=(n=e.test)?n.c
2all(this):void 0)},l.prototype.invokeAction=function(t){var e,n;return this.actionIsExternal(t)?this.notifyEditorElement("action-invoke",{actionName:t}):null!=(e=this.actions[t])&&null!=(n=e.perform)?n.call(this):void 0},l.prototype.actionIsExternal=function(t){return/^x-./.test(t)},l.prototype.getCurrentActions=function(){var t,e;for(t in e={},this.actions)e[t]=this.canInvokeAction(t);return e},l.prototype.updateCurrentActions=function(){var t;return t=this.getCurrentActions(),e(t,this.currentActions)?void 0:(this.currentActions=t,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions}))},l.prototype.runEditorFilters=function(){var t,e,n,r,i,o,s,a;for(a=this.composition.getSnapshot(),n=0,r=(i=this.editor.filters).length;r>n;n++)e=i[n],t=a.document,s=a.selectedRange,null==(a=null!=(o=e.call(this.editor,a))?o:{}).document&&(a.document=t),null==a.selectedRange&&(a.selectedRange=s);return u(a,this.composition.getSnapshot())?void 0:this.composition.loadSnapshot(a)},u=function(t,e){return r(t.selectedRange,e.selectedRange)&&t.document.isEqualTo(e.document)},l.prototype.updateInputElement=function(){var t,e;return t=this.compositionController.getSerializableElement(),e=o.serializeToContentType(t,"text/html"),this.editorElement.setInputElementValue(e)},l.prototype.notifyEditorElement=function(t,e){switch(t){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(t,e)},l.prototype.removeAttachment=function(t){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(t),this.render()},l.prototype.recordFormattingUndoEntry=function(e){var r,i;return r=t(e),i=this.selectionManager.getLocationRange(),r||!n(i)?this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0}):void 0},l.prototype.recordTypingUndoEntry=function(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})},l.prototype.getUndoContext=function(){var t;return t=1<=arguments.length?a.call(arguments,0):[],[this.getLocationContext(),this.getTimeContext()].concat(a.call(t))},l.prototype.getLocationContext=function(){var t;return t=this.selectionManager.getLocationRange(),n(t)?t[0].index:t},l.prototype.getTimeContext=function(){return o.config.undoInterval>0?Math.floor((new Date).getTime()/o.config.undoInterval):0},l.prototype.isFocused=function(){var t;return this.editorElement===(null!=(t=this.editorElement.ownerDocument)?t.activeElement:void 0)},l}(o.Controller)}.call(this),function(){var t,e,n,r,i,s,a,l,u,c,d,h,f,p;e=o.browser,i=o.makeElement,s=o.triggerEvent,n=o.handleEvent,r=o.handleEventOnce,t=o.AttachmentView.attachmentSelector,o.registerElement("trix-editor",(h=0,l=function(t){return!document.querySelector(":focus")&&t.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===t?t.focus():void 0},f=function(t){return t.hasAttribute("contenteditable")?void 0:(t.setAttribute("contenteditable",""),r("focus",{onElement:t,withCallback:function(){return u(t)}}))},a=function(t){return t.hasAttribute("role")?void 0:t.setAttribute("role","textbox")},u=function(t){return d(t),p(t)},d=function(t){return("function"==typeof document.queryCommandSupported?document.queryCommandSupported("enableObjectResizing"):void 0)?(document.execCommand("enableObjectResizing",!1,!1),n("mscontrolselect",{onElement:t,preventDefault:!0})):void 0},p=function(){var t;return!("function"==typeof document.queryCommandSupported?document.queryCommandSupported("DefaultParagraphSeparator"):void 0)||"div"!==(t=o.config.blockAttributes.default.tagName)&&"p"!==t?void 0:document.execCommand("DefaultParagraphSeparator",!1,t)},c=e.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"},{defaultCSS:"%t {\n  display: block;\n}\n\n%t:empty:not(:focus)::before {\n  content: attr(placeholder);\n  color: graytext;\n  cursor: text;\n}\n\n%t a[contenteditable=false] {\n  cursor: text;\n}\n\n%t img {\n  max-width: 100%;\n  height: auto;\n}\n\n%t "+t+" figcaption textarea {\n  resize: none;\n}\n\n%t "+t+" figcaption textarea.trix-autoresize-clone {\n  position: absolute;\n  left: -9999px;\n  max-height: 0px;\n}\n\n%t "+t+" figcaption[data-trix-placeholder]:empty::before {\n  content: attr(data-trix-placeholder);\n  color: graytext;\n}\n\n%t [data-trix-cursor-target] {\n  display: "+c.display+" !important;\n  width: "+c.width+" !important;\n  padding: 0 !important;\n  margin: 0 !important;\n  border: none !important;\n}\n\n%t [data-trix-cursor-target=left] {\n  vertical-align: top !important;\n  margin-left: -1px !important;\n}\n\n%t [data-trix-cursor-target=right] {\n  vertical-align: bottom !important;\n  margin-right: -1px !important;\n}",trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++h),this.trixId)}},toolbarElement:{get:function(){var t,e,n;return this.hasAttribute("toolbar")?null!=(e=this.ownerDocument)?e.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(n="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",n),t=i("trix-toolbar",{id:n}),this.parentNode.insertBefore(t,this),t):void 0}},inputElement:{get:function(){var t,e,n;return this.hasAttribute("input")?null!=(n=this.ownerDocument)?n.getElementById(this.getAttribute("input")):void 0:this.parentNode?(e="trix-input-"+this.trixId,this.setAttribute("input",e),t=i("input",{type:"hidden",id:e}),this.parentNode.insertBefore(t,this.nextElementSibling),t):void 0}},editor:{get:function(){var t;return null!=(t=this.editorController)?t.editor:void 0}},name:{get:function(){var t;return null!=(t=this.inputElement)?t.name:void 0}},value:{get:function(){var t;return null!=(t=this.inputElement)?t.value:void 0},set:function(t){var e;return this.defaultValue=t,null!=(e=this.editor)?e.loadHTML(this.defaultValue):void 0}},notify:function(t,e){return this.editorController?s("trix-"+t,{onElement:this,attributes:e}):void 0},setInputElementValue:function(t){var e;return null!=(e=this.inputElement)?e.value=t:void 0},initialize:function(){return f(this),a(this)},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(s("trix-before-initialize",{onElement:this}),this.editorController=new o.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(t){return function(){return s("trix-initialize",{onElement:t})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),l(this))},disconnect:function(){var t;return null!=(t=this.editorController)&&t.unregisterSelectionManager(),this.unregisterResetListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},resetBubbled:function(t){var e;return t.target!==(null!=(e=this.inputElement)?e.form:void 0)||t.defaultPrevented?void 0:this.reset()},reset:function(){return this.value=this.defaultValue}}))}.call(this),function(){}.call(this)}).call(this),t.exports?t.exports=o:void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)}.call(this)},8593:t=>{"use strict";
2t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,t=[],r.O=(e,n,i,o)=>{if(!n){var s=1/0;for(c=0;c<t.length;c++){for(var[n,i,o]=t[c],a=!0,l=0;l<n.length;l++)(!1&o||s>=o)&&Object.keys(r.O).every((t=>r.O[t](n[l])))?n.splice(l--,1):(a=!1,o<s&&(s=o));if(a){t.splice(c--,1);var u=i();void 0!==u&&(e=u)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[n,i,o]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={773:0,170:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var i,o,[s,a,l]=n,u=0;if(s.some((e=>0!==t[e]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var c=l(r)}for(e&&e(n);u<s.length;u++)o=s[u],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return r.O(c)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),r.nc=void 0,r.O(void 0,[170],(()=>r(3638)));var i=r.O(void 0,[170],(()=>r(2584)));i=r.O(i)})();

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