UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

5 lines 2.27 kB
/*! * (C) Fentrica http://fentrica.com - Seee LICENSE.md */ import{b as r}from"./p-Ca1ORAt0.js";import{S as n}from"./p-BCe7Jf0F.js";import{i as e}from"./p-t09QJ_DI.js";import{i as t}from"./p-C_HhfJYh.js";import{i,a as u}from"./p-B8THl2h4.js";import{e as a,i as f,f as o,a as s}from"./p-CozWii6U.js";import{b as c}from"./p-Cdm8hPvp.js";import{d as v}from"./p-BkGzfcoF.js";var l=n?n.isConcatSpreadable:undefined;function m(r){return t(r)||e(r)||!!(l&&r&&r[l])}function p(n,e,t,i,u){var a=-1,f=n.length;t||(t=m);u||(u=[]);while(++a<f){var o=n[a];if(t(o)){{r(u,o)}}else{u[u.length]=o}}return u}function d(r,n){var e=r.length;r.sort(n);while(e--){r[e]=r[e].value}return r}function h(r,n){if(r!==n){var e=r!==undefined,t=r===null,u=r===r,a=i(r);var f=n!==undefined,o=n===null,s=n===n,c=i(n);if(!o&&!c&&!a&&r>n||a&&f&&s&&!o&&!c||t&&f&&s||!e&&s||!u){return 1}if(!t&&!a&&!c&&r<n||c&&e&&u&&!t&&!a||o&&e&&u||!f&&u||!s){return-1}}return 0}function j(r,n,e){var t=-1,i=r.criteria,u=n.criteria,a=i.length,f=e.length;while(++t<a){var o=h(i[t],u[t]);if(o){if(t>=f){return o}var s=e[t];return o*(s=="desc"?-1:1)}}return r.index-n.index}function w(r,n,e){if(n.length){n=u(n,(function(r){if(t(r)){return function(n){return a(n,r.length===1?r[0]:r)}}return r}))}else{n=[f]}var i=-1;n=u(n,c(s));var v=o(r,(function(r,e,t){var a=u(n,(function(n){return n(r)}));return{criteria:a,index:++i,value:r}}));return d(v,(function(r,n){return j(r,n,e)}))}function b(r,n,e){switch(e.length){case 0:return r.call(n);case 1:return r.call(n,e[0]);case 2:return r.call(n,e[0],e[1]);case 3:return r.call(n,e[0],e[1],e[2])}return r.apply(n,e)}var C=Math.max;function A(r,n,e){n=C(n===undefined?r.length-1:n,0);return function(){var t=arguments,i=-1,u=C(t.length-n,0),a=Array(u);while(++i<u){a[i]=t[n+i]}i=-1;var f=Array(n+1);while(++i<n){f[i]=t[i]}f[n]=e(a);return b(r,this,f)}}function B(r){return function(){return r}}var J=!v?f:function(r,n){return v(r,"toString",{configurable:true,enumerable:false,value:B(n),writable:true})};var g=800,x=16;var y=Date.now;function z(r){var n=0,e=0;return function(){var t=y(),i=x-(t-e);e=t;if(i>0){if(++n>=g){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var D=z(J);export{p as a,w as b,A as o,D as s}; //# sourceMappingURL=p-BqlmSTpF.js.map