|
|
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("te",[],e):"object"==typeof exports?exports.te=e():t.te=e()}(this,function(){return i=[function(t,e,i){var i=i(44),n=Function.prototype,s=n.call,n=i&&n.bind.bind(s,s);t.exports=i?n:function(t){return function(){return s.apply(t,arguments)}}},function(t,e,i){var i=i(72),n=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(i,t,e){!function(t){function e(t){return t&&t.Math==Math&&t}i.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}.call(this,e(119))},function(t,e,i){var n=i(3),s=i(54),o=i(12),a=i(76),r=i(75),i=i(74),l=n.Symbol,c=s("wks"),h=i?l.for||l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(c[t]=r&&o(l,t)?l[t]:h("Symbol."+t)),c[t]}},function(t,e,i){var i=i(44),n=Function.prototype.call;t.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,i){"use strict";var n=i(31),s=i(93),o=i(38),a=i(20),r=i(14).f,l=i(96),c=i(100),h=i(19),i=i(11),d="Array Iterator",u=a.set,p=a.getterFor(d),a=(t.exports=l(Array,"Array",function(t,e){u(this,{type:d,target:n(t),index:0,kind:e})},function(){var t=p(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==i?n:"values"==i?e[n]:[n,e[n]],!1)},"values"),o.Arguments=o.Array);if(s("keys"),s("values"),s("entries"),!h&&i&&"values"!==a.name)try{r(a,"name",{value:"values"})}catch(t){}},function(t,e,i){"use strict";var n=i(10),i=i(63);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,i){"use strict";var n=i(10),s=i(83).includes,o=i(2),i=i(93);n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(t){return s(this,t,1<arguments.length?arguments[1]:void 0)}}),i("includes")},function(t,e,i){function n(e,t){if(e){if(e[h]!==u)try{c(e,h,u)}catch(t){e[h]=u}if(e[d]||c(e,d,t),a[t])for(var i in l)if(e[i]!==l[i])try{c(e,i,l[i])}catch(t){e[i]=l[i]}}}var s,o=i(3),a=i(135),r=i(136),l=i(6),c=i(26),i=i(4),h=i("iterator"),d=i("toStringTag"),u=l.values;for(s in a)n(o[s]&&o[s].prototype,s);n(r,"DOMTokenList")},function(t,e,i){var c=i(3),h=i(51).f,d=i(26),u=i(16),p=i(56),f=i(80),m=i(62);t.exports=function(t,e){var i,n,s,o=t.target,a=t.global,r=t.stat,l=a?c:r?c[o]||p(o,{}):(c[o]||{}).prototype;if(l)for(i in e){if(n=e[i],s=t.dontCallGetSet?(s=h(l,i))&&s.value:l[i],!m(a?i:o+(r?".":"#")+i,t.forced)&&void 0!==s){if(typeof n==typeof s)continue;f(n,s)}(t.sham||s&&s.sham)&&d(n,"sham",!0),u(l,i,n,t)}}},function(t,e,i){i=i(2);t.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,i){var n=i(0),s=i(23),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(s(t),e)}},function(t,e,i){var n=i(15),s=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw o(s(t)+" is not an object")}},function(t,e,i){var n=i(11),s=i(77),o=i(78),a=i(13),r=i(53),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";e.f=n?o?function(t,e,i){var n;return a(t),e=r(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]&&(n=h(t,e))&&n[p]&&(t[e]=i.value,i={configurable:(u in i?i:n)[u],enumerable:(d in i?i:n)[d],writable:!1}),c(t,e,i)}:c:function(t,e,i){if(a(t),e=r(e),a(i),s)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(1),i=i(72),s=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===s}:function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,i){var a=i(1),r=i(14),l=i(79),c=i(56);t.exports=function(t,e,i,n){var s=(n=n||{}).enumerable,o=void 0!==n.name?n.name:e;if(a(i)&&l(i,o,n),n.global)s?t[e]=i:c(e,
|
|
|
|
function ml(t){return getComputedStyle(t)}function p(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}}function gl(t){var e=document.createElement("div");return e.className=t,e}var _l="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function vl(t,e){if(_l)return _l.call(t,e);throw new Error("No element matching method supported")}function bl(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function yl(t,e){return Array.prototype.filter.call(t.children,function(t){return vl(t,e)})}var B={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},wl={x:null,y:null};function xl(t,e){var t=t.element.classList,i=B.state.scrolling(e);t.contains(i)?clearTimeout(wl[e]):t.add(i)}function Cl(t,e){wl[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(B.state.scrolling(e))},t.settings.scrollingThreshold)}function kl(t){this.element=t,this.handlers={}}function Al(){this.eventElements=[]}t={isEmpty:{configurable:!0}};kl.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},kl.prototype.unbind=function(e,i){var n=this;this.handlers[e]=this.handlers[e].filter(function(t){return!(!i||t===i)||(n.element.removeEventListener(e,t,!1),!1)})},kl.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},t.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(kl.prototype,t);function Sl(t){var e;return"function"==typeof window.CustomEvent?new CustomEvent(t):((e=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,void 0),e)}function Tl(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}var e=t,t=i,i=n,n=s,a=(s=o)[0],r=s[1],l=s[2],c=s[3],h=s[4],s=s[5],d=(void 0===i&&(i=!0),void 0===n&&(n=!1),e.element);e.reach[c]=null,d[l]<1&&(e.reach[c]="start"),d[l]>e[a]-e[r]-1&&(e.reach[c]="end"),t&&(d.dispatchEvent(Sl("ps-scroll-"+c)),t<0?d.dispatchEvent(Sl("ps-scroll-"+h)):0<t&&d.dispatchEvent(Sl("ps-scroll-"+s)),i)&&(xl(l=e,a=c),Cl(l,a));e.reach[c]&&(t||n)&&d.dispatchEvent(Sl("ps-"+c+"-reach-"+e.reach[c]))}function f(t){return parseInt(t,10)||0}Al.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new kl(e),this.eventElements.push(t)),t},Al.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},Al.prototype.unbind=function(t,e,i){t=this.eventElement(t);t.unbind(e,i),t.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(t),1)},Al.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},Al.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var Ol={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function El(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect(),n=(t.containerWidth=Math.round(n.width),t.containerHeight=Math.round(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)
|