quidphp-browser
Advanced tools
Comparing version 5.31.2 to 5.31.3
@@ -1,1 +0,1 @@ | ||
function _typeof(t){return _typeof="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},_typeof(t)}!function(){var t={155:function(t){var e,r,n=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(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,c=[],a=!1,l=-1;function h(){a&&u&&(a=!1,u.length?c=u.concat(c):l=-1,c.length&&f())}function f(){if(!a){var t=s(h);a=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,a=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||a||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},505:function(t,e,r){"use strict";r.d(e,{Arr:function(){return O},ArrLike:function(){return D},Bool:function(){return C},Component:function(){return _},Datetime:function(){return n},Debug:function(){return i},Env:function(){return s},Factory:function(){return u},Func:function(){return F},Html:function(){return c},Integer:function(){return R},Json:function(){return a},Nav:function(){return l},Num:function(){return I},Obj:function(){return B},Pojo:function(){return W},Scalar:function(){return q},Shortcut:function(){return U},Str:function(){return M},Test:function(){return X},TestSuite:function(){return h},Tool:function(){return Q},Validate:function(){return f},Vari:function(){return p}});var n={now:function(){return(new Date).getTime()},localeFormat:function(t,e,r){return M.typecheck(t),(e=M.isNotEmpty(e)?new Date(e):new Date).toLocaleString(t,r)},year:function(){return(new Date).getFullYear()},ymd:function(t,e,r,n){var i=R.is(t)?new Date(1e3*t):new Date;return i.setHours(0,0,0),R.is(n)&&i.setDate(n),R.is(r)&&i.setMonth(r-1),R.is(e)&&i.setFullYear(e),i.toISOString().substr(0,10)},his:function(t){return(R.is(t)?new Date(1e3*t):new Date).toTimeString().split(" ")[0]}},i=new function(){var t=!1;this.status=function(e){return q.is(e)&&(t=e),t},this.is=function(e){return!0===t||t===e},this.assertThrow=function(t){if(!0!==t)throw new Error},this.logError=function(t){console.error("Catched",t)}},o=r(155),s={isNode:function(){return void 0!==o&&void 0!==o.release&&"node"===o.release.name},isBrowser:function(){return!this.isNode()},isWindow:function(t){var e=!1;return this.isBrowser()&&B.is(t)&&(e=t instanceof Window||t.window===t),e},isTarget:function(t){var e=!1;return this.isBrowser()&&B.is(t)&&(e=t instanceof HTMLElement||t instanceof HTMLTemplateElement||t instanceof DocumentFragment||t===document||this.isWindow(t)||O.in(t.nodeType,[Node.TEXT_NODE,Node.DOCUMENT_TYPE_NODE])),e}};function u(t){var e=Object.create(!0===t?{}:t||null),r=Array.prototype.slice.call(arguments,1);return Object.assign.apply(null,[e].concat(r)),e}var c={valueAttr:{br:"data-value",hr:"data-value",img:"src",meta:"content",link:"href",input:"value"},htmlEscapes:{"&":"&","<":"<",">":">",'"':""","'":"'"},isSelfClosing:function(t){return O.in(t,["br","hr","img","meta","link","input"])},escape:function(t){var e=this;return M.typecheck(t),t.replace(/[&<>"']/g,(function(t){return e.htmlEscapes[t]}))},start:function(t,e,r){var n="";M.typecheck(t,!0);var i=this.isSelfClosing(t),o=this.attr(r,t,e);return n+="<",n+=t,M.isNotEmpty(o)&&(n+=" ",n+=o),!0===i?n+="/>":(n+=">",n+=this.value(e)),n},end:function(t){var e="";return M.typecheck(t,!0),!1===this.isSelfClosing(t)&&(e+="</",e+=t,e+=">"),e},value:function(t,e){return!0===t?t=!0===e?1:" ":!1===t&&(t=!0===e?0:""),!0!==e&&(W.is(t)&&(t=W.values(t)),O.is(t)&&(t=t.join(", "))),M.cast(t,!0)},attr:function(t,e,r){var n=this.isSelfClosing(e);if(t=this.attrToPojo(t),!0===n&&W.keyExists(e,this.valueAttr)){var i=W.get(e,this.valueAttr);null!=i&&(null!=W.get(i,t)&&null==r||(t[i]=this.value(r,!0)))}return t=this.prepareAttr(t),W.str(t,"="," ",!0)},attrToPojo:function(t){var e={};return M.isNotEmpty(t)&&(e={class:t}),W.is(t)&&(e=t),e},prepareAttr:function(t){var e={};W.typecheck(t);var r=function(t,e){return{key:M.fromCamelCase("-",t),value:C.is(e)?C.toInt(e):e}};return W.each(t,(function(t,n){var i=r(n,t);n=i.key,t=i.value,"class"===n&&O.is(t)?t=t.join(" "):"data"===n&&W.is(t)&&(W.each(t,(function(t,n){var i=r(n,t),o="data-"+i.key;e[o]=i.value})),t=null),null!=t&&(e[n]=t)})),e},tag:function(t,e,r){return this.start(t,e,r)+this.end(t)},tagCond:function(t,e,r){return p.isNotEmpty(this.value(e))?this.tag(t,e,r):""},div:function(t,e){return this.tag("div",t,e)},span:function(t,e){return this.tag("span",t,e)},ul:function(t,e){return this.tag("ul",t,e)},li:function(t,e){return this.tag("li",t,e)},input:function(t,e){return this.tag("input",t,W.replace({type:"text"},this.attrToPojo(e)))},button:function(t,e){return this.tag("button",t,W.replace({type:"button"},this.attrToPojo(e)))}},a={encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(M.typecheck(t))},recode:function(t){return this.decode(this.encode(t))}},l={isFirst:function(t,e){return t===this.getFirst(e)},hasPrev:function(t,e,r){return null!=this.getPrev(t,e,r)},hasNext:function(t,e,r){return null!=this.getNext(t,e,r)},isLast:function(t,e){return t===this.getLast(e)},isIndex:function(t,e){return this.getIndex(t,e)===t},getFirst:function(t){return R.isPositive(t)?0:null},getPrev:function(t,e,r){var n=null;if(R.isPositive(e)){var i=e-1,o=(t=R.is(t)?t:i)-1;o<0?!0===r&&(n=i):n=o}return n},getNext:function(t,e,r){var n=null;if(R.isPositive(e)){var i=e-1,o=(t=R.is(t)?t:-1)+1;o>i?!0===r&&(n=0):n=o}return n},getLast:function(t){return R.isPositive(t)?t-1:null},getIndex:function(t,e){return R.is(t)&&t>=0&&R.isPositive(e)&&t<e?t:null},index:function(t,e,r,n){var i=null;return R.isPositive(r)&&("first"===t?i=this.getFirst(r):"last"===t?i=this.getLast(r):"prev"===t?i=this.getPrev(e,r,n):"next"===t?i=this.getNext(e,r,n):R.is(t)&&(i=this.getIndex(t,r))),i},indexObj:function(t,e,r,n){var i=null;if(B.typechecks(r,!1),null!=r){var o=O.length(r);B.is(t)&&(t=O.search(t,r)),B.is(e)&&(e=O.search(e,r));var s=this.index(t,e,o,n);R.is(s)&&(i=O.get(s,r))}return i}};function h(t){return W.each(t,(function(t,e){return t()}))}var f={isNumericDash:function(t){return this.regex(t,"^[0-9-]+$")},isEmail:function(t){return this.regex(t,/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{1,4})+$/)},isRegexStr:function(t){return M.isNotEmpty(t)||t instanceof RegExp},regex:function(t,e){var r=!1;return M.is(t)&&this.isRegexStr(e)&&new RegExp(e).test(t)&&(r=!0),r},trigger:function(t,e,r){var n=this.required(t,e);return!0===n&&(n=this.pattern(t,r)),n},required:function(t,e){var r=!0;return C.is(e)&&(e=C.toInt(e)),I.isPositive(e)&&(t=M.cast(t),(t=M.trim(t)).length||(r=!1)),r},pattern:function(t,e){var r=!0;return M.isNotEmpty(e)&&(t=M.cast(t)).length&&!this.regex(t,e)&&(r=!1),r}},p={is:function(t){return void 0!==t},isEmpty:function(t){var e=!0;return O.is(t)||M.is(t)?e=!(t.length>0):q.is(t)?e=!t:s.isTarget(t)?e=!1:null!=t&&this.eachProto(t,(function(){return e=!1,!1})),e},isNotEmpty:function(t){return!this.isEmpty(t)},isReallyEmpty:function(t){return!I.is(t)&&!C.is(t)&&this.isEmpty(t)},isNotReallyEmpty:function(t){return!this.isReallyEmpty(t)},isNull:function(t){return null===t},isUndefined:function(t){return void 0===t},isEqual:function(){var t,e=null;return D.each(arguments,(function(r){if(e=a.encode(r),void 0!==t)return e===t;t=e}))},isEqualStrict:function(){var t;return D.each(arguments,(function(e){if(void 0!==t)return Object.is(t,e);t=e}))},type:function(t){var e=_typeof(t),r={};if(null==t)e=t+"";else if("function"===e){var n=r.toString.call(t);e=r[n]||"object"}return e},check:function(t,e){if(t!==e)throw new Error([t,e]);return t},eachProto:function(t,e){var r,n,i=null;if(F.is(e))for(r in i=!0,t)if(n=t[r],!1===e.call(n,n,r,t)){i=!1;break}return i}},d={is:function(t){return Array.isArray(t)},in:function(t,e){return this.is(e)?Array.prototype.includes.call(e,t):null},keys:function(t){return this.typecheck(t),Array.from(Array.prototype.keys.call(t))},valueFirst:function(t){return this.typecheck(t),t.length?t[0]:void 0},valueLast:function(t){return this.typecheck(t),t.length?t[t.length-1]:void 0},keyFirst:function(t){return this.typecheck(t),t.length?0:void 0},keyLast:function(t){return this.typecheck(t),t.length?t.length-1:void 0},search:function(t,e){var r=null;return this.typecheck(e),r=-1===(r=Array.prototype.indexOf.call(e,t))?null:r},slice:function(t,e,r){return this.typecheck(r),t=R.is(t)?t:0,e=R.is(e)?e:void 0,Array.prototype.slice.call(r,t,e)},sliceStart:function(t,e){return this.slice(t,!0,e)},merge:function(t){this.typecheck(t);var e=D.sliceStart(1,arguments);return Array.prototype.concat.apply(t,e)},clean:function(t){return this.filter(t,(function(t){return p.isNotReallyEmpty(t)}))},valueStrip:function(t,e){return this.filter(e,(function(e){return e!==t}))},find:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.find.call(t,e)},some:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.some.call(t,e)},every:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.every.call(t,e)},map:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.map.call(t,e)},filter:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.filter.call(t,e)},reduce:function(t,e,r){return this.typecheck(e),F.typecheck(r),Array.prototype.reduce.call(e,r,t)},column:function(t,e){var r=[];return M.typecheck(t,!0),this.each(e,(function(e){W.is(e)&&W.keyExists(t,e)&&r.push(e[t])})),r},new:function(){return[]}},y={mergeRef:function(t){this.typecheck(t);var e=t,r=D.sliceStart(1,arguments);return this.each(r,(function(t){O.is(t)||(t=[t]),Array.prototype.push.apply(e,t)})),e},reverseRef:function(t){return this.typecheck(t),t.reverse()},spliceValue:function(t,e,r){var n=this.search(t,e);this.typecheck(e);var i=[n,1];return void 0!==r&&i.push(r),Array.prototype.splice.apply(e,i)}},v={timeouts:function(t,e,r,n){return R.typecheck(e),R.typecheck(r),F.typecheck(n),O.each(t,(function(t,i){var o=e+i*r;F.timeout(o,(function(){n(t,i,o)}))}))},oddEven:function(t,e,r){return F.typechecks([e,r],!1),O.each(t,(function(t,n){var i=n+1;I.isOdd(i)?null!=e&&e(t,n):null!=r&&r(t,n)}))}},g={is:function(t){var e=!1;if(!(O.is(t)||q.is(t)||F.is(t)||s.isWindow(t))){var r=p.type(t),n=!!t&&"length"in t&&t.length;e="array"===r||0===n||"number"==typeof n&&n>0&&n-1 in t}return e},toArray:function(t){return O.is(t)?t:this.is(t)?Array.from(t):null}},m={is:function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},noop:function(){return function(){}},async:function(t,e){return this.timeout(0,t,e)},timeout:function(t,e,r){return this.typecheck(e),R.is(t)||(t=0),setTimeout(e.bind(r),t)},debounce:function(t,e){R.typecheck(t),this.typecheck(e);var r,n=this;return function(){var i=this,o=arguments;r&&clearTimeout(r),r=n.timeout(t,(function(){e.apply(i,o)}))}},debounceOnce:function(t,e){var r=!1;return Func.typecheck(e),this.debounce(t,(function(){var t=arguments;!1===r&&(e.apply(this,t),r=!0)}))},throttle:function(t,e){R.typecheck(t),this.typecheck(e);var r=this,n=!0;return function(){var i=this;!0===n&&(e.apply(i,arguments),n=!1,r.timeout(t,(function(){n=!0})))}}},k={is:function(t){return I.is(t)&&parseInt(t)===t},cast:function(t){return q.isNotBool(t)&&""!==t?parseInt(t):null},toBool:function(t){var e=null;return this.typecheck(t),1===t?e=!0:0===t&&(e=!1),e},toggle:function(t){var e=null;return this.typecheck(t),1===t?e=0:0===t&&(e=1),e},range:function(t,e,r){var n=null;if(t=null==t?1:t,r=null==r?1:r,this.isPositive(t,!0)&&this.isPositive(e,!0)&&this.isPositive(r)){var i=Math.floor((e-t)/r)+1,o=Array(i).fill(t);n=O.map(o,(function(t,e){return t+e*r}))}return n},unique:function(t){var e=0;return function(){return e++}}()},S={is:function(t){var e=!1,r=p.type(t);return"number"!==r&&"string"!==r||(e=!isNaN(t-parseFloat(t))),e},isEmpty:function(t){return!!this.is(t)&&p.isEmpty(this.cast(t))},isNotEmpty:function(t){return!!this.is(t)&&p.isNotEmpty(this.cast(t))},isPositive:function(t,e){var r=!1;return this.is(t)&&((t=this.cast(t))>0||!0===e&&0===t)&&(r=!0),r},isNegative:function(t,e){var r=!1;return this.is(t)&&((t=this.cast(t))<0||!0===e&&0===t)&&(r=!0),r},isOdd:function(t){return this.is(t)&&!R.is(t/2)},isEven:function(t){return this.is(t)&&R.is(t/2)},isNan:function(t){return isNaN(t)},cast:function(t){return q.isNotBool(t)&&""!==t?parseFloat(t):null},str:function(t){return this.typecheck(t),Number(t).toString()}},A={decimal:function(t,e){return this.typecheck(t),e=R.is(e)?e:2,t.toFixed(e)},round:function(t){return t=this.cast(t),this.typecheck(t),Math.round(t)},floor:function(t){return t=this.cast(t),this.typecheck(t),Math.floor(t)},ceil:function(t){return t=this.cast(t),this.typecheck(t),Math.ceil(t)}},b={is:function(t){return"object"===p.type(t)},isEqual:function(){var t=!1,e=Array.from(arguments);return e.length>1&&this.is(e[0])&&(t=p.isEqual.apply(null,e)),t},length:function(t){return this.typecheck(t),Object.keys(t).length}},w={isKey:function(t){return q.isNotBool(t)},keyExists:function(t,e){return!(!this.isKey(t)||!this.is(e))&&e.hasOwnProperty(t)},keys:function(t){return this.typecheck(t),Object.keys(t)},values:function(t){return this.typecheck(t),Object.values(t)},get:function(t,e){return this.typecheck(e),this.keyExists(t,e)?e[t]:void 0},toArray:function(t){return this.typecheck(t),Array.from(this.values(t))},valueFirst:function(t){var e,r=this.keys(t);return null!=r&&(e=t[r[0]]),e},valueLast:function(t){var e,r=this.keys(t);return null!=r&&(e=t[r[r.length-1]]),e},find:function(t,e){var r;return F.typecheck(e),this.each(t,(function(t,n){if(e(t,n))return r=t,!1})),r},findKey:function(t,e){var r=null;return F.typecheck(e),this.each(t,(function(t,n){if(e(t,n))return r=n,!1})),r},some:function(t,e){var r=!1;return F.typecheck(e),this.each(t,(function(t,n){if(e(t,n))return r=!0,!1})),r},every:function(t,e){var r=!0;return F.typecheck(e),this.each(t,(function(t,n){if(!e(t,n))return r=!1})),r},reduce:function(t,e,r){return F.typecheck(r),this.each(e,(function(e,n){t=r(t,e,n)})),t},accumulate:function(t,e,r){return F.typecheck(r),this.each(e,(function(e,n){var i=r(e,n);if(null==i)return!0;O.is(t)?t.push(i):W.is(t)?t[n]=i:t+=i})),t},str:function(t,e,r,n){return e=M.is(e)?e:"=",r=M.is(r)?r:" ",this.reduce("",t,(function(t,i,o){if(M.isNotEmpty(o))return i=M.cast(i,!0),!0===n&&(i=M.quote(i,!1,!0)),t.length&&(t+=r),t+=o,(t+=e)+i}))},climb:function(t,e){M.is(t)&&(t=M.explode("/",t)),O.typecheck(t),this.typecheck(e);var r=this;return O.each(t,(function(t){if(!r.keyExists(t,e))return e=void 0,!1;e=e[t]})),e}},E={each:function(t,e){var r=!0;F.typecheck(e);for(var n,i=this.keys(t),o=0;o<i.length;o++)if(!1===e(t[n=i[o]],n)){r=!1;break}return r}},N={copy:function(t){return this.typecheck(t),Object.assign(this.new(),t)},new:function(){return{}},filter:function(t,e){var r=this.new();F.typecheck(e);var n=!Array.isArray(r);return this.each(t,(function(t,i){var o=e(t,i);i=!1===n?r.length:i,o&&(r[i]=t)})),r},map:function(t,e){var r=this.new();return F.typecheck(e),this.each(t,(function(t,n){var i=e(t,n);r[n]=i})),r}},H={set:function(t,e,r){var n=this.copy(r);return n[t]=e,n},unset:function(t,e){var r=this.copy(e);return delete r[t],r},unsets:function(t,e){var r=this.copy(e),n=this;return O.each(t,(function(t){n.keyExists(t,e)&&delete r[t]})),r},replace:function(){var t=this.new(),e=Array.from(arguments);if(e.length>0){var r=this;O.each(e,(function(e){r.typecheck(e,!1),null!=e&&(t=Object.assign(t,e))}))}return t}},T={setRef:function(t,e,r){return this.typecheck(r),r[t]=e,r},unsetRef:function(t,e){return this.typecheck(e),this.keyExists(t,e)&&delete e[t],e},unsetsRef:function(t,e){this.typecheck(e);var r=this;return O.each(t,(function(t){r.keyExists(t,e)&&delete e[t]})),e}},P={is:function(t){return null!=t&&"object"==_typeof(t)&&Object.getPrototypeOf(t)===Object.prototype&&"[object Object]"===t.toString()},gets:function(t,e){var r={};this.typecheck(e);var n=this;return O.each(t,(function(t){r[t]=n.keyExists(t,e)?e[t]:void 0})),r},replaceRecursive:function(){var t=null,e=Array.from(arguments);if(e.length>0){t=this.copy(e[0]);var r=this,n=O.sliceStart(1,e);O.each(n,(function(e){null!=e&&r.each(e,(function(e,n){r.is(t[n])&&r.keyExists(n,t)?t[n]=r.replaceRecursive(t[n],e):t[n]=e}))}))}return t}},x={is:function(t){var e=!1,r=_typeof(t);return"boolean"!==r&&"number"!==r&&"string"!==r||(e=!0),e},isNotBool:function(t){return this.is(t)&&!C.is(t)},cast:function(t,e){return null!=t&&null!=e&&(O.in(e,[!0,"json"])?t=a.decode(t):"int"===e?t=R.cast(t):"num"===e?t=I.cast(t):"bool"===e&&this.is(t)&&(t=this.toBool(t))),t},toBool:function(t){var e=null;return this.typecheck(t),O.in(t,[1,"1",!0,"true"])?e=!0:O.in(t,[0,"0",!1,"false"])&&(e=!1),e}},j={is:function(t){return"string"==typeof t},isStart:function(t,e){return this.is(t)&&this.is(e)?e.startsWith(t):null},isEnd:function(t,e){return this.is(t)&&this.is(e)?e.endsWith(t):null},isEqual:function(t,e){return this.cast(t)===this.cast(e)},in:function(t,e){return this.is(e)&&this.is(t)?e.includes(t):null},icompare:function(t,e){return!(!this.is(t)||!this.is(e))&&t.toUpperCase()===e.toUpperCase()},cast:function(t,e){var r="";return null!=t&&(r=B.is(t)&&!0===e?a.encode(t):String(t)),r},toNum:function(t){return this.typecheck(t),I.cast(t)},toInt:function(t){return this.typecheck(t),R.cast(t)},pos:function(t,e){this.typecheck(e);var r=e.indexOf(t);return r=-1===r?null:r},lower:function(t){return this.typecheck(t),t.toLowerCase()},lowerFirst:function(t){return this.typecheck(t),this.isNotEmpty(t)?t.charAt(0).toLowerCase()+t.slice(1):null},upper:function(t){return this.typecheck(t),t.toUpperCase()},upperFirst:function(t){return this.typecheck(t),this.isNotEmpty(t)?t.charAt(0).toUpperCase()+t.slice(1):null},trim:function(t){return this.typecheck(t),t.trim()},quote:function(t,e,r){this.typecheck(t);var n=!0===e?'"':"'";return!0===r&&(t=c.escape(t)),n+t+n},sub:function(t,e,r){return this.typecheck(r),R.typecheck(t),r.substring(t,!0===e?void 0:e)},excerpt:function(t,e,r){var n=this.sub(0,t,e);return n!==e&&this.isNotEmpty(r)&&(n+=r),n},explode:function(t,e,r){this.typechecks([t,e]);var n=e.split(t);return!0===r&&(n=O.clean(n)),n},explodeIndex:function(t,e,r){var n,i=this.explode(e,r);return R.is(t)&&this.isNotEmpty(i[t])&&(n=i[t]),n},removeAllWhitespace:function(t){return this.typecheck(t),t.replace(/\s/g,"")},fromCamelCase:function(t,e){return this.typecheck(t),(e=this.trim(e)).replace(/[\w]([A-Z])/g,(function(e){return e[0]+t+e[1]})).toLowerCase()},toCamelCase:function(t,e){var r=null,n=this;e=this.trim(e);var i=this.explode(t,e,!0);return i=O.map(i,(function(t,e){return 0==e?n.lower(t):n.upperFirst(t)})),r=i.join(""),r=this.removeAllWhitespace(r)},slug:function(t){return(t=this.lower(t)).replace(/ /g,"-").replace(/[^\w-]+/g,"").replace(/--/g,"-")},keepNumber:function(t){return this.typecheck(t),t.replace(/[^0-9]/g,"")},replace:function(t,e){return this.typecheck(e),W.each(t,(function(t,r){e=e.replace(r,t)})),e}},L={is:function(t){return"object"!==p.type(t)},are:function(t){var e=this;return!!O.is(t)&&O.each(t,(function(t){return e.is(t)}))},isEmpty:function(t){return!!this.is(t)&&p.isEmpty(t)},isNotEmpty:function(t){return!!this.is(t)&&p.isNotEmpty(t)},typecheck:function(t,e){if((!0===e&&!this.isNotEmpty(t)||!0!==e&&!this.is(t))&&(!1!==e||null!=t))throw new Error(t);return t},typechecks:function(t,e){if(!O.is(t))throw new Error(t);var r=this;return O.each(t,(function(t){r.typecheck(t,e)})),t}},O=u(L,b,w,E,N,H,T,d,y,v),D=u(L,b,w,E,N,d,g,v),C=u(L,{is:function(t){return"boolean"==typeof t},toInt:function(t){var e=null;return this.typecheck(t),!0===t?e=1:!1===t&&(e=0),e},toggle:function(t){var e=null;return this.typecheck(t),!0===t?e=!1:!1===t&&(e=!0),e}}),F=u(L,b,m),R=u(L,S,k),I=u(L,S,A),B=u(L,b,w,E,N,H,T,{keyExists:function(t,e){return!(!this.isKey(t)||!this.is(e))&&t in e}}),W=u(L,b,w,E,N,H,T,P),q=u(L,x),M=u(L,b,w,E,j),Q={Type:L,ArrLoop:v},X={},_={},U={d:console.log,assert:i.assertThrow.bind(i),logError:i.logError.bind(i)}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=function(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.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(function(){"use strict";r.r(n),r.d(n,{Arr:function(){return t.Arr},ArrLike:function(){return t.ArrLike},Bool:function(){return t.Bool},Browser:function(){return e},Component:function(){return t.Component},Datetime:function(){return t.Datetime},Debug:function(){return t.Debug},Doc:function(){return H},Dom:function(){return i},Ele:function(){return T},Env:function(){return t.Env},Evt:function(){return E},Factory:function(){return t.Factory},Func:function(){return t.Func},HistoryState:function(){return o},Html:function(){return t.Html},Integer:function(){return t.Integer},Json:function(){return t.Json},Nav:function(){return t.Nav},Nod:function(){return P},Num:function(){return t.Num},Obj:function(){return t.Obj},Pojo:function(){return t.Pojo},Request:function(){return s},Scalar:function(){return t.Scalar},Shortcut:function(){return t.Shortcut},Str:function(){return t.Str},Target:function(){return x},Test:function(){return t.Test},TestSuite:function(){return t.TestSuite},Tool:function(){return t.Tool},Uri:function(){return u},Validate:function(){return t.Validate},Vari:function(){return t.Vari},Win:function(){return N},Xhr:function(){return c}});var t=r(505),e={isOldIe:function(){return t.Str.in("MSIE ",window.navigator.userAgent)},isIe11:function(){return t.Str.in("Trident/",window.navigator.userAgent)},isIe:function(){return this.isOldIe()||this.isIe11()},isUnsupported:function(t){return!(!0!==t||!this.isIe11())||this.isOldIe()},allowsCookie:function(){return navigator.cookieEnabled}},i={selectorInput:function(t){return"input,select,textarea,button"+(!0!==t?"[type='submit']":"")},htmlStr:function(e){var r="";return t.Str.is(e)?r=e:t.Scalar.is(e)?r=t.Str.cast(e):H.is(e)?r=H.getHtml(e):(T.is(e)||T.are(e))&&(r=T.getOuterHtml(e)),r},htmlNodes:function(e,r){var n=[];return t.Str.is(e)?n=this.parse(e):H.is(e)?(e=H.realNode(e),n.push(!0===r?H.clone(e):e)):T.are(e)?n=!0===r?T.clones(e):e:T.is(e)&&n.push(!0===r?T.clone(e):e),n},safeHtml:function(e){return t.Str.typecheck(e),e=(e=(e=e.replace(/<\!DOCTYPE[^>]*>/i,"")).replace(/<(html|head|body)([\s\>])/gi,'<div data-tag="$1"$2')).replace(/<\/(html|head|body)\>/gi,"</div>"),t.Str.trim(e)},parse:function(t){t=this.safeHtml(t);var e=document.createElement("template");e.innerHTML=t;var r=e.content;return H.children(r,null,!0)},parseOne:function(e){return t.Arr.valueFirst(this.parse(e))},querySelector:function(e,r){var n=void 0;t.Str.typecheck(e);var i=this.parse(r);if(t.Arr.isNotEmpty(i)){var o=T.mergedQsa(i,e);if(t.Arr.isNotEmpty(o)){var s=t.Arr.valueFirst(o);n=T.getHtml(s)}}return n},doc:function(e){var r={doc:this.parse(e),docEle:[],html:null,htmlAttr:null,head:null,headAttr:null,title:"?",titleHtml:"?",meta:null,body:null,bodyAttr:null};if(t.Arr.accumulate(r.docEle,r.doc,(function(t){return T.is(t)?t:null})),r.html=T.find(r.docEle,"[data-tag='html']")||t.Arr.valueFirst(r.docEle),null!=r.html&&(T.removeAttr(r.html,"data-tag"),r.htmlAttr=T.attr(r.html),r.head=T.scopedQuery(r.html,"[data-tag='head']"),r.body=T.scopedQuery(r.html,"[data-tag='body']"),null!=r.head)){var n=T.scopedQuery(r.head,"title");T.removeAttr(r.head,"data-tag"),r.headAttr=T.attr(r.head),r.title=null!=n?T.getText(n):"?",r.titleHtml=t.Str.replace({"<":"<",">":">"," & ":" & "},r.title),r.meta=T.scopedQueryAll(r.head,"meta")}if(null!=r.body)T.removeAttr(r.body,"data-tag"),r.bodyAttr=T.attr(r.body);else{var i=T.getOuterHtml(r.doc),o=t.Html.div(i,{dataTag:"body"});r.body=this.parseOne(o)}return r}},o={is:function(e){var r=!1;return t.Pojo.is(e)&&t.Str.is(e.url)&&t.Num.is(e.timestamp)&&(r=!0),r},isChangeValid:function(t,e,r){var n=!1;if(this.is(t)&&this.is(e)){var i=u.isInternal(t.url,e.url),o=u.hasExtension(t.url),s=u.isHashChange(t.url,e.url),c=u.isSameWithHash(t.url,e.url);!0===i&&!1===o&&!1===s&&!1===c&&(r&&!1!==u.isSamePathQuery(t.url,e.url)||(n=!0))}return n},make:function(e,r,n){t.Str.typecheck(e);var i=u.absolute(e,!0),o=t.Str.isEnd("#",e),s=t.Str.isEnd("#",i);return!0===n&&!0===s?i=i.slice(0,-1):!0!==n&&!0===o&&!1===s&&(i+="#"),{url:i,title:r||null,timestamp:t.Datetime.now()}}},s={relative:function(t){var e=window.location.pathname+window.location.search;return!0===t&&window.location.hash&&(e+=u.makeHash(window.location.hash,!0)),e},absolute:function(){return window.location.href},scheme:function(e){var r=location.protocol;return!0!==e&&(r=r.substring(0,t.Str.pos(":",r))),r},host:function(){return location.hostname},schemeHost:function(){return location.origin},fragment:function(){return u.makeHash(window.location.hash)},parse:function(){return new URL(this.absolute())}},u={isInternal:function(e,r){var n=!1;if(t.Str.is(e)){r=t.Str.is(r)?this.parse(r):s.parse();var i=this.parse(e);i.protocol===r.protocol&&i.host===r.host&&(n=!0)}return n},isExternal:function(t,e){return!this.isInternal(t,e)},hasExtension:function(t){return null!=this.extension(t)},hasFragment:function(e){var r=!1;if(t.Str.is(e)){var n=this.parse(e);t.Str.isNotEmpty(n.hash)&&(r=!0)}return r},isOnlyHash:function(e){return t.Str.length(e)>1&&t.Str.isStart("#",e)},isSamePathQuery:function(e,r){var n=!1;if(t.Str.is(e)){r=t.Str.is(r)?this.parse(r):s.parse();var i=this.parse(e);i.pathname===r.pathname&&i.search===r.search&&(n=!0)}return n},isSamePathQueryHash:function(e,r){var n=!1;if(t.Str.is(e)){r=t.Str.is(r)?this.parse(r):s.parse();var i=this.parse(e);i.pathname===r.pathname&&i.search===r.search&&i.hash===r.hash&&(n=!0)}return n},isHashChange:function(e,r){var n=!1;if(t.Str.is(e)){r=t.Str.is(r)?this.parse(r):s.parse();var i=this.parse(e);i.protocol===r.protocol&&i.host===r.host&&i.pathname===r.pathname&&i.search===r.search&&(t.Str.isNotEmpty(i.hash)||t.Str.isNotEmpty(r.hash))&&i.hash!==r.hash&&(n=!0)}return n},isSameWithHash:function(t,e){return this.hasFragment(t)&&t===e},relative:function(t,e){return this.build(this.parse(t),!1,e)},absolute:function(t,e){return this.build(this.parse(t),!0,e)},path:function(t){return this.parse(t).pathname},query:function(t){return this.makeQuery(this.parse(t).search).toString()},fragment:function(t){return this.makeHash(this.parse(t).hash,!1)},basename:function(e){var r=null,n=this.path(e);return t.Str.is(n)&&(r=n.substr(n.lastIndexOf("/")+1)),r},filename:function(e){var r=null,n=this.basename(e);return t.Str.is(n)&&(r=n.replace(/\.[^.$]+$/,"")),r},extension:function(e){var r=null,n=this.parse(e),i=/(?:\.([^.]+))?$/.exec(n.pathname);return t.Arr.is(i)&&2===i.length&&(r=i[1]),r},parse:function(e){t.Str.typecheck(e);var r=s.schemeHost();return t.Str.isStart("#",e)&&(e=s.relative()+e),new URL(e,r)},build:function(e,r,n){var i="";if(t.Obj.typecheck(e),!0===r&&(i+=t.Str.is(e.protocol)?e.protocol:s.scheme(!0),i+="//",i+=t.Str.is(e.host)?e.host:s.host()),i+=e.pathname,e.search){var o=(e.search instanceof URLSearchParams?e.search:this.makeQuery(e.search)).toString();t.Str.isNotEmpty(o)&&(i+="?"+o)}return e.hash&&!0===n&&(i+=this.makeHash(e.hash,!0)),i},makeQuery:function(e){var r=t.Str.is(e)?new URLSearchParams(e):new URLSearchParams;return t.Pojo.is(e)&&t.Pojo.each(e,(function(t,e){t=null==t?"":t,r.append(e,t)})),r},makeHash:function(e,r){var n="";if(t.Str.isNotEmpty(e)){n=e;var i=t.Str.isStart("#",n);!0===r?n=i?n:"#"+n:i&&(n=t.Str.sub(1,!0,n))}else!0===r&&(n="#");return n},getMailto:function(e){var r=null;if(t.Str.typecheck(e),t.Str.isNotEmpty(e)){var n=e.replace(/mailto:/,"");t.Validate.isEmail(n)&&(r=n)}return r}},c=new function(){var e=this;this.isStatusSuccess=function(e){return t.Integer.is(e)&&e>=200&&e<400},this.isResponseJson=function(e){var r=!1;if(e instanceof XMLHttpRequest){var n=e.getResponseHeader("Content-Type");t.Str.in("/json",n)&&(r=!0)}return r},this.trigger=function(i,o){i=n.call(this,i),t.Str.typecheck(i.url,!0);var s=new XMLHttpRequest;return s.open(i.method,i.url,!0),s.timeout=i.timeout,s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.ontimeout=function(){r("error",s,i,o)},s.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var t=e.isStatusSuccess(this.status);!1===t?r("error",s,i,o):!0===t&&r("success",s,i,o),r("complete",s,i,o)}},null!=s.upload&&s.upload.addEventListener("progress",(function(e){if(t.Func.is(i.progress)&&!0===e.lengthComputable){var n=parseInt(e.loaded/e.total*100);r("progress",s,i,o,n,e)}})),r("before",s,i,o),s.send(i.data),s},this.configFromString=function(e){return t.Str.typecheck(e,!0),{url:e}};var r=function(e,r,n,i){var o=t.Pojo.get(e,n),s=t.Pojo.is(i)?t.Pojo.get(e,i):null,u=t.ArrLike.sliceStart(4,arguments);u.push(r),t.Func.is(o)&&o.apply(r,u),t.Func.is(s)&&s.apply(r,u)},n=function(e){if(t.Pojo.is(e)&&t.Str.is(e.uri)&&(e.url=e.uri),e=t.Pojo.replace({url:void 0,method:void 0,data:void 0,timeout:1e4},e),t.Str.is(e.method)||(e.method="get"),e.method=e.method.toUpperCase(),t.Pojo.is(e.data))if("POST"===e.method)e.data=this.pojoToFormData(e.data);else{var r=u.parse(e.url),n=u.makeQuery(e.data).toString();r.search=n,e.url=r.toString()}return!e.data instanceof FormData&&(e.data=null),e};this.configFromNode=function(e,r,i){T.typecheck(e);var u=t.Pojo.is(r)?r:{},a=T.tag(e);return null==u.method&&(u=s(u,e,a)),null==(u=o(u,e,a)).data&&(u=c(u,e,a)),!0===i&&(u=this.configNodeEvents(e,u)),n.call(this,u)},this.configNodeEvents=function(r,n){var i=this;return T.typecheck(r),t.Pojo.typecheck(n),n.before=function(t){x.triggerHandler(r,"ajax:before",t)},n.progress=function(t,e,n){x.triggerHandler(r,"ajax:progress",t,e,n)},n.success=function(e){var n=t.Str.isNotEmpty(e.responseText)&&i.isResponseJson(e)?t.Json.decode(e.responseText):e.responseText;x.triggerHandler(r,"ajax:success",n,e)},n.error=function(t){var n=e.parseError(t.responseText);x.triggerHandler(r,"ajax:error",n,t)},n.complete=function(t){x.triggerHandler(r,"ajax:complete",t)},n},this.pojoToFormData=function(e){t.Pojo.typecheck(e);var r=new FormData;return t.Pojo.each(e,(function(t,e){r.append(e,t)})),r},this.parseError=function(e){var r="";if(t.Str.isNotEmpty(e)){var n;r=e;var o=i.parseOne(e);if(null!=o){var s=P.scopedQuery(o,".ajax-parse-error");if(null!=s&&(n=T.getOuterHtml(s)),t.Vari.isEmpty(n)){var u=P.scopedQuery(o,"body,[data-tag='body']");null!=u&&(n=T.getHtml(u))}t.Str.isNotEmpty(n)&&(r=n)}}return r};var o=function(e,r,n){if(null==e.url&&(e.url=x.triggerHandler(r,"ajax:getUrl")),null==e.url&&(e.url=T.getUri(r)),null!=e.url&&"form"===n&&t.Str.icompare(e.method,"get")){var i=T.triggerHandler(r,"form:serialize"),o=u.parse(e.url);null!=i&&null!=o&&(o.search=i,e.url=u.build(o))}return e},s=function(t,e,r){return t.method=x.triggerHandler(e,"ajax:getMethod"),null==t.method&&(t.method="form"===r?T.getAttr(e,"method")||"get":T.getAttr(e,"data-method")||"get"),t},c=function(e,r,n){if(e.data=x.triggerHandler(r,"ajax:getData"),null==e.data&&"form"===n&&t.Str.icompare(e.method,"post")){var i=new FormData(r),o=x.triggerHandler(r,"form:getClickedSubmit");if(null!=o){var s=T.getAttr(o,"name");if(t.Str.isNotEmpty(s)){var u=T.getValue(o);i.append(s,u)}}e.data=i}return e}},a={hasData:function(t,e){return void 0!==this.getData(t,e)},getDataKey:function(){return"_quid_"},allData:function(e,r){var n=void 0;this.typecheck(e);var i=this.getDataKey(),o=t.Pojo.is(e[i]);return o||!0!==r||(o=!0,e[i]={}),!0===o&&(n=e[i]),n},getData:function(e,r){t.Str.typecheck(r);var n=this.allData(e);return null!=n?t.Pojo.get(r,n):void 0},flashData:function(t,e){var r=this.getData(t,e);return this.removeData(t,e),r},setData:function(e,r,n){e=this.toArray(e),t.Str.typecheck(r,!0);var i=this;t.Arr.each(e,(function(e){var o=i.allData(e,!0);void 0===n?t.Pojo.unsetRef(r,o):t.Pojo.setRef(r,n,o)}))},removeData:function(t,e){return this.setData(t,e,void 0)},getOrSetData:function(t,e,r){var n=void 0,i=this.getData(t,e);return null==i&&null!=r?(this.setData(t,e,r),n=r):n=i,n}},l={is:function(t){return this.isCurrent(t)||this.isFragment(t)||this.isTemplate(t)},isCurrent:function(t){return t===document},isFragment:function(t){return t instanceof DocumentFragment},getDimension:function(e){this.typecheck(e);var r={width:0,height:0};if(this.isCurrent(e))r.width=t.Num.round(document.documentElement.scrollWidth),r.height=t.Num.round(document.documentElement.scrollHeight);else{var n=this.children(e);t.Arr.each(n,(function(t){var e=T.getDimension(t);r.width+=e.width,r.height+=e.height}))}return r}},h={is:function(t){return t instanceof HTMLElement},isVisible:function(t){return!(!this.is(t)||!t.offsetWidth&&!t.offsetHeight)},isHidden:function(t){return!!this.is(t)&&!this.isVisible(t)},isTag:function(t,e){return this.is(t)&&this.tag(t)===e},isFocused:function(t){return t===document.activeElement},isFocusable:function(e){var r=!1;if(this.is(e)){var n=this.tag(e),i=this.getDimension(e);(this.match(e,"[tabindex]")||t.Arr.in(n,["input","textarea","select","a","button"]))&&i.width>0&&i.height>0&&(r=!0)}return r},isScrollable:function(e,r){var n=!1;if(this.is(e)&&"visible"!==this.getCss(e,"overflow")){var i=this.getScroll(e);n=t.Arr.in(r,["x","horizontal"])?i.scrollableX:t.Arr.in(r,["y","vertical"])?i.scrollableY:!0===i.scrollableX?i.scrollableX:i.scrollableY}return n},hasAttr:function(e,r){return!(!this.is(e)||!t.Str.is(r))&&e.hasAttribute(r)},hasClass:function(e,r){return!(!this.is(e)||!t.Str.is(r))&&e.classList.contains(r)},tag:function(e){var r=null,n=this.getProp(e,"tagName");return t.Str.is(n)&&(r=n.toLowerCase()),r},css:function(e,r,n){var i={};this.typecheck(e);for(var o=window.getComputedStyle(e,n),s=0;s<o.length;s++){var u=o.item(s);(null==r||t.Str.isStart(r,u))&&(i[u]=o.getPropertyValue(u))}return i},getCss:function(r,n,i,o){var s=void 0;if(this.typecheck(r),t.Str.typecheck(n),e.isIe11()&&t.Arr.in(n,["width","height"])){var u=this.getDimension(r);s=t.Num.ceil(u[n])+"px"}else s=window.getComputedStyle(r,o).getPropertyValue(n);return t.Scalar.cast(s,i)},attr:function(e,r){var n={};this.typecheck(e);var i=e.attributes;return t.ArrLike.each(i,(function(e){var i=e.name;(null==r||t.Str.isStart(r,i))&&(n[i]=e.value)})),n},attrStr:function(e,r){var n=null,i=this.attr(e,r);return null!=i&&(n=t.Obj.str(i,"="," ",!0)),n},getAttr:function(e,r,n){var i=void 0;return this.typecheck(e),this.hasAttr(e,r)&&(i=e.getAttribute(r),i=t.Scalar.cast(i,n)),i},dataAttr:function(t){return this.attr(t,"data-")},getValue:function(e,r,n){var i=void 0;return this.typecheck(e),i=e.value,i=t.Str.cast(i),!0===r&&(i=t.Str.trim(i)),null!=n&&(i=t.Scalar.cast(i,n)),i},getDimension:function(e,r){this.typecheck(e),r=!0===r?"block":r;var n,i,o,s=t.Str.isNotEmpty(r);s&&(n=e.style.display,i=e.style.width,o=e.style.height,e.style.display=r,e.style.width="auto",e.style.height="auto");var u=this.getBoundingRect(e);return s&&(e.style.display=n,e.style.width=i,e.style.height=o),{width:t.Num.ceil(u.width),height:t.Num.ceil(u.height)}},getBoundingRect:function(t){return this.typecheck(t),t.getBoundingClientRect()},getScroll:function(e){var r=null;this.typecheck(e);var n=this.tag(e);if(t.Arr.in(n,["html","body"]))r=N.getScroll();else{var i=this.getBoundingRect(e);(r={top:t.Num.ceil(e.scrollTop),left:t.Num.ceil(e.scrollLeft),width:t.Num.ceil(e.scrollWidth),height:t.Num.ceil(e.scrollHeight),innerWidth:t.Num.ceil(i.width),innerHeight:t.Num.ceil(i.height),scrollableX:!1,scrollableY:!1}).innerWidth>0&&r.innerHeight>0&&(r.width>r.innerWidth&&(r.scrollableX=!0),r.height>r.innerHeight&&(r.scrollableY=!0))}return r},getOffset:function(t){return{parent:this.getOffsetParent(t),doc:this.getOffsetDoc(t),win:this.getOffsetWin(t)}},getOffsetParent:function(e){return this.typecheck(e),{top:t.Num.ceil(e.offsetTop),left:t.Num.ceil(e.offsetLeft)}},getOffsetDoc:function(e){var r=this.getBoundingRect(e),n=N.getScroll();return{top:t.Num.ceil(r.top+n.top),left:t.Num.ceil(r.left+n.left)}},getOffsetWin:function(e){var r=this.getBoundingRect(e);return{top:t.Num.ceil(r.top),left:t.Num.ceil(r.left)}},setAttr:function(e,r,n){e=this.toArray(e),t.Str.typecheck(r,!0),t.Obj.is(n)&&(n=t.Json.encode(n)),t.Bool.is(n)&&(n=t.Bool.toInt(n)),t.Arr.each(e,(function(t){void 0===n?t.removeAttribute(r):t.setAttribute(r,n)}))},removeAttr:function(t,e){return this.setAttr(t,e,void 0)},toggleAttr:function(e,r,n){e=this.toArray(e),t.Str.typecheck(r,!0);var i=this,o=t.Bool.is(n)?t.Bool.toInt(n):null;t.Arr.each(e,(function(t){var e=o;null==e&&(e=1!==(e=i.getAttr(t,r,"int"))),i.setAttr(t,r,e)}))},setsAttr:function(e,r){e=this.toArray(e),t.Pojo.typecheck(r);var n=this;t.Arr.each(e,(function(e){t.Pojo.each(r,(function(t,r){n.setAttr(e,r,t)}))}))},emptyAttr:function(e){e=this.toArray(e);var r=this;t.Arr.each(e,(function(e){t.ArrLike.each(e.attributes,(function(t){null!=t&&r.removeAttr(e,t.name)}))}))},addId:function(e,r){e=this.toArray(e),t.Str.typecheck(r);var n=this;t.Arr.each(e,(function(e){if(!n.match(e,"[id]")){var i=r+t.Integer.unique();n.setProp(e,"id",i)}}))},setCss:function(e,r,n){this.typecheck(e),t.Str.typecheck(r),r=t.Str.toCamelCase("-",r),null==n&&(n=""),e.style[r]=n},setValue:function(e,r){this.typecheck(e),r=t.Str.cast(r,!0),e.value=r},toggleClass:function(e,r,n){e=this.toArray(e),t.Str.typecheck(r,!0),t.Arr.each(e,(function(t){t.classList.toggle(r,n)}))},setDimension:function(e,r,n){this.typecheck(e),t.Scalar.is(r)&&(r=!1===(r=!0===r?this.getDimension(e,r).width:r)?void 0:r,r=t.Num.is(r)?r+"px":r,this.setCss(e,"width",r)),t.Scalar.is(n)&&(n=!1===(n=!0===n?this.getDimension(e,n).height:n)?void 0:n,n=t.Num.is(n)?n+"px":n,this.setCss(e,"height",n))},setScroll:function(e,r,n){this.typecheck(e),t.Num.is(r)&&(e.scrollTop=r>0?r:0),t.Num.is(n)&&(e.scrollLeft=n>0?n:0)},focus:function(e,r){if(this.typecheck(e),!0===r){var n=N.getScroll();e.focus(),t.Func.timeout(0,(function(){N.setScroll(n.top,n.left)}))}else e.focus()},getUri:function(t){return"form"===this.tag(t)?this.getAttr(t,"action"):this.getAttr(t,"href")||this.getAttr(t,"data-href")},serialize:function(e,r,n){e=this.toArray(e);var i=u.makeQuery();r=t.Str.is(r)?r:"name",n=t.Str.is(n)?n:"value";var o=this;return t.Arr.each(e,(function(t){var e=o.getProp(t,r),s=o.getProp(t,n);i.append(e,s)})),i.toString()},prepend:function(t,e){this.typecheck(t),e=i.htmlNodes(e),t.prepend.apply(t,e)},append:function(t,e){this.typecheck(t),e=i.htmlNodes(e),t.append.apply(t,e)},insertBefore:function(e,r){return this.typecheck(e),r=i.htmlNodes(r),t.Arr.accumulate([],r,(function(t){return e.insertAdjacentElement("beforebegin",t)}))},insertAfter:function(e,r){return this.typecheck(e),r=i.htmlNodes(r),t.Arr.accumulate([],r,(function(t){return e.insertAdjacentElement("afterend",t)}))},wrapAll:function(e,r){var n=null;if(e=this.toArray(e,!0),r=i.htmlNodes(r),t.Arr.isNotEmpty(r)){n=t.Arr.valueFirst(r);var o=t.Arr.valueFirst(e);this.insertBefore(o,r),this.append(n,e)}return n}},f={specialKeyCode:[9,10,13,16,17,18,19,20,27,32,33,34,35,36,37,38,39,40,45,46,91,92,93,112,113,114,115,116,117,118,119,120,121,122,123,144,145],support:function(){var t={passive:!1,once:!1};try{var e={get passive(){return t.passive=!0,!1},get once(){return t.once=!0,!1}};window.addEventListener("test-support",null,e),window.removeEventListener("test-support",null,e)}catch(e){t.passive=!1,t.once=!1}return t}(),is:function(t){return t instanceof Event},isSpecialKeyCode:function(e){var r=!1;return this.typecheck(e),t.Integer.is(e.keyCode)&&t.Arr.in(e.keyCode,this.specialKeyCode)&&(r=!0),r},preventStop:function(t,e){return this.typecheck(t),t.preventDefault(),!0===e?t.stopImmediatePropagation():t.stopPropagation(),!1},nameFromType:function(e){t.Str.typecheck(e,!0);var r="event";return(t.Str.in(".",e)||t.Str.in(":",e))&&(r="customEvent"),r},createFromType:function(t,e){var r=null,n=this.nameFromType(t);return"customEvent"===n?r=new CustomEvent(t,e):"event"===n&&(r=new Event(t,e)),r},getTriggerTarget:function(t){var e=null;return this.typecheck(t),t.target&&(e=null!=t.triggerTarget?t.triggerTarget:t.target),e}},p={isTriggerHandlerEqual:function(e,r,n){e=this.toArray(e);var i=t.Arr.merge([r],t.ArrLike.sliceStart(3,arguments)),o=this;return t.Arr.every(e,(function(e){var r=t.Arr.merge([e],i);return o.triggerHandler.apply(o,r)===n}))},allHandler:function(t,e){return this.typecheck(t),this.getOrSetData(t,"_handler_",!0===e?{}:void 0)},getHandler:function(e,r){t.Str.typecheck(r);var n=this.allHandler(e);return null!=n?t.Pojo.get(r,n):void 0},setHandler:function(e,r,n){t.Str.typecheck(r,!0),t.Func.typecheck(n),e=this.toArray(e);var i=this;t.Arr.each(e,(function(e){var o=i.allHandler(e,!0);t.Pojo.setRef(r,n,o)}))},setsHandler:function(e,r,n){t.Str.typecheck(r,!0),t.Pojo.typecheck(n);var i=this;t.Pojo.each(n,(function(t,n){var o=r+n;i.setHandler(e,o,t)}))},removeHandler:function(e,r){t.Str.typecheck(r,!0),e=this.toArray(e);var n=this;t.Arr.each(e,(function(e){var i=n.allHandler(e,!0);t.Pojo.unsetRef(r,i)}))},triggerHandler:function(e,r){var n=void 0;this.typecheck(e),t.Str.typecheck(r,!0);var i=this.getHandler(e,r);if(t.Func.is(i)){var o=t.ArrLike.sliceStart(2,arguments);n=i.apply(e,o)}return n},triggersHandler:function(e,r){e=this.toArray(e);var n=this,i=t.ArrLike.sliceStart(2,arguments);return t.Arr.accumulate([],e,(function(e){return n.triggerHandler.apply(n,t.Arr.merge([e,r],i))}))}},d=new function(){this.addListener=function(r,n,i,o,s,u){var c=null;t.Str.typecheck(n,!0),r=this.toArray(r);var a=this;if(t.Arr.isNotEmpty(r)){u=Object.assign({capture:!1,once:!1},u);var l=!0===E.support.once?u:u.capture,h=e.call(this,n,i,s,l,u);t.Arr.each(r,(function(e){e.addEventListener(n,h,l),(t.Str.isNotEmpty(o)||!0===o)&&a.registerListener(e,o,n,h,l)})),c=[n,h,l]}return c},this.registerListener=function(e,r,n,i,o){t.Str.typecheck(n,!0),r=!0===r?n:r,t.Str.typecheck(r,!0);var s=this.getOrSetData(e,"rel",{}),u=[n,i,o];t.Pojo.setRef(r,u,s)},this.addListenerOnce=function(t,e,r,n,i,o){return this.addListener(t,e,r,n,i,Object.assign({},o,{once:!0}))},this.addDelegatedListener=function(t,e,r,n,i,o){return this.addListener(t,e,n,i,r,o)},this.addPassiveListener=function(t,e,r,n,i,o){return this.addListener(t,e,r,n,i,Object.assign({},o,{passive:!0}))},this.removeListener=function(e,r){e=this.toArray(e);var n=this;t.Arr.each(e,(function(e){if(t.Str.isNotEmpty(r)){var i=r,o=n.getData(e,"rel");t.Pojo.is(o)&&(r=t.Pojo.get(i,o),t.Pojo.unsetRef(i,o))}t.Arr.is(r)&&e.removeEventListener.apply(e,r)}))},this.trigger=function(e,r,n){if(t.Str.typecheck(r,!0),e=this.toArray(e),t.Arr.isNotEmpty(e)){var i=E.createFromType(r,n);t.Arr.each(e,(function(t){t.dispatchEvent(i)}))}},this.triggerBubble=function(e,r){var n=t.ArrLike.sliceStart(2,arguments),i={bubbles:!0,cancelable:!0,detail:n};return this.trigger(e,r,i)},this.triggerNoBubble=function(e,r){var n=t.ArrLike.sliceStart(2,arguments),i={bubbles:!1,cancelable:!0,detail:n};return this.trigger(e,r,i)},this.triggerSetup=function(e){var r=t.ArrLike.sliceStart(1,arguments),n=t.Arr.merge([e,"component:setup"],r);this.triggerNoBubble.apply(this,n),n=t.Arr.merge([e,"component:ready"],r),this.triggerNoBubble.apply(this,n)},this.triggerTeardown=function(e){var r=t.Arr.merge([e,"component:teardown"],t.ArrLike.sliceStart(1,arguments));return this.triggerNoBubble.apply(this,r)};var e=function(e,n,i,o,s){var u=this;return function c(a){var l=null==i,h=this;if(!0===s.once&&!1===E.support.once&&u.removeListener(a.target,[e,c,o]),t.Str.isNotEmpty(i)&&null!=a.target&&(l=r.call(this,a,i),h=a.triggerTarget),!0===l){var f=[a],p=a.detail;f=t.Arr.merge(f,p),n.apply(h,f)}}},r=function(e,r){var n,i=e.target,o=P.scopedQueryAll(this,r),s=i;return n=!!t.Arr.in(i,o)||t.Arr.some(o,(function(t){if(t.contains(i))return s=P.closest(i,r),!0})),e.delegateTarget=this,e.triggerTarget=s,n}},y={is:function(t){return T.is(t)||H.is(t)||this.isText(t)||this.isDoctype(t)},isText:function(t){return null!=t&&t.nodeType===Node.TEXT_NODE},isDoctype:function(t){return null!=t&&t.nodeType===Node.DOCUMENT_TYPE_NODE},isTemplate:function(t){return t instanceof HTMLTemplateElement},realNode:function(t){var e=t;return this.isTemplate(t)&&(e=t.content),e},getText:function(t){return this.typecheck(t),null!=t.textContent?t.textContent:void 0},setText:function(e,r){this.typecheck(e),t.Str.typecheck(r,!1),null!=e.textContent&&(r=null==r?"":r,e.textContent=r)},clone:function(t){return this.typecheck(t),t.cloneNode(!0)},clones:function(e){var r=this;return this.toArray(e),t.Arr.accumulate([],e,(function(t){return r.clone(t)}))},remove:function(e){var r=this.toArray(e);t.Arr.each(r,(function(t){t.remove()}))}},v={isEmpty:function(e){return!!this.is(e)&&t.Str.isEmpty(this.getHtml(e))},isNotEmpty:function(e){return!!this.is(e)&&t.Str.isNotEmpty(this.getHtml(e))},getHtml:function(t){var e=P.children(t,null,!0);return T.getOuterHtml(e)},setHtml:function(e,r,n){this.typecheck(e),e=this.realNode(e);var o=P.children(e,null,!0);t.Pojo.is(r)&&(r=t.Json.encode(r)),r=i.htmlNodes(r,n),P.remove(o),t.Arr.each(r,(function(t){e.appendChild(t)}))},replaceHtml:function(e,r){var n=!1;t.Str.typecheck(r);var i=this.getHtml(e),o=document.createElement("div");return this.setHtml(o,r),i!==this.getHtml(o)&&(n=!0,this.setHtml(e,r)),n},getOuterHtml:function(e){return e=P.toArray(e),t.Arr.accumulate("",e,(function(t){var e="";return null!=t.outerHTML?e=t.outerHTML:null!=t.textContent&&(e=t.textContent),e}))}},g={blur:function(t){this.typecheck(t),t.blur()}},m={scopedQuery:function(t,e,r){var n=null;return t=this.realNode(t),P.typecheck(t),null!=t&&(e=H.is(t)?e:":scope "+e,n=t.querySelector(e)),!0===r&&T.typecheck(n),n},scopedQueryAll:function(e,r,n){var i=null;return e=this.realNode(e),P.typecheck(e),null!=e&&(r=H.is(e)?r:":scope "+r,(i=e.querySelectorAll(r))instanceof NodeList&&(i=t.ArrLike.toArray(i))),!0===n&&T.typechecks(i,!0),i},mergedQsa:function(e,r,n){var i=null,o=this;return null!=(e=this.toArray(e))&&(i=[],t.Arr.each(e,(function(e){t.Arr.mergeRef(i,o.scopedQueryAll(e,r))}))),!0===n&&T.typechecks(i,!0),i},closest:function(e,r){return e=this.realNode(e),this.typecheck(e),t.Str.typecheck(r),e.closest(r)},closestParent:function(t,e){var r=this.parent(t);return null!=r?this.closest(r,e):null},match:function(e,r){return e=this.realNode(e),P.typecheck(e),t.Str.typecheck(r),!H.is(e)&&e.matches(r)},some:function(e,r){t.Str.typecheck(r),e=this.toArray(e);var n=this;return t.Arr.some(e,(function(t){return n.match(t,r)}))},every:function(e,r){t.Str.typecheck(r),e=this.toArray(e);var n=this;return t.Arr.every(e,(function(t){return n.match(t,r)}))},filter:function(e,r){t.Str.typecheck(r),e=this.toArray(e);var n=this;return t.Arr.filter(e,(function(t){return n.match(t,r)}))},find:function(e,r){t.Str.typecheck(r),e=this.toArray(e);var n=this;return t.Arr.find(e,(function(t){return n.match(t,r)}))},parent:function(t,e){var r=null;t=this.realNode(t),P.typecheck(t);var n=t.parentNode;return P.is(n)&&(null==e||P.match(n,e))&&(r=n),r},parents:function(t,e,r){var n=[];for(t=this.realNode(t),P.typecheck(t);(t=P.parent(t))&&(null==r||!P.match(t,r));)(null==e||P.match(t,e))&&n.push(t);return n},prev:function(t,e){var r=null;t=this.realNode(t),this.typecheck(t);var n=t.previousElementSibling;return this.is(n)&&(null==e||this.match(n,e))&&(r=n),r},prevs:function(t,e,r){var n=[];for(t=this.realNode(t),this.typecheck(t);(t=this.prev(t))&&(null==r||!this.match(t,r));)(null==e||this.match(t,e))&&n.push(t);return n},next:function(t,e){var r=null;t=this.realNode(t),this.typecheck(t);var n=t.nextElementSibling;return this.is(n,!0)&&(null==e||this.match(n,e))&&(r=n),r},nexts:function(t,e,r){var n=[];for(t=this.realNode(t),this.typecheck(t);(t=this.next(t))&&(null==r||!this.match(t,r));)(null==e||this.match(t,e))&&n.push(t);return n},children:function(e,r,n){e=this.realNode(e),P.typecheck(e);var i,o=null!=e.children;return i=!0===n?t.ArrLike.toArray(e.childNodes):!0===o?t.ArrLike.toArray(e.children):t.ArrLike.accumulate([],e.childNodes,(function(t){return T.is(t)?t:null})),null==r?i:P.filter(i,r)},realNode:function(t){return t}},k={is:function(t){return P.is(t)||N.is(t)},are:function(e){var r=this;return e=t.ArrLike.toArray(e),!!t.Arr.is(e)&&t.Arr.every(e,(function(t){return r.is(t)}))},typecheck:function(t,e){var r=!1;if(this.is(t)||!1===e&&null==t||(r=!0),!0===r)throw new Error(t);return t},typechecks:function(e,r){var n=!1,i=this.are(e);if((!i||!0===i&&!0===r&&t.Arr.isEmpty(e))&&(n=!0),!0===n)throw new Error(e);return e},getProp:function(e,r){return this.typecheck(e),t.Obj.get(r,e)},setProp:function(e,r,n){t.Str.typecheck(r),e=this.toArray(e),t.Arr.each(e,(function(e){t.Obj.setRef(r,n,e)}))},propStr:function(e,r,n){e=this.toArray(e),t.Str.typecheck(r,!0),n=t.Str.isNotEmpty(n)?n:"-";var i=this;return t.Arr.reduce("",e,(function(t,e){return(t+=t.length?n:"")+i.getProp(e,r)}))},propObj:function(e,r,n){var i={};e=this.toArray(e);var o=this;return t.Str.typecheck(r,!0),t.Str.typecheck(n,!0),t.Arr.each(e,(function(t){var e=o.getProp(t,r),s=o.getProp(t,n);i[e]=s})),i},toArray:function(e){return this.is(e)?e=[e]:t.ArrLike.is(e)?e=t.ArrLike.toArray(e):null==e&&(e=[]),this.typechecks.call(this,e)}},S={is:function(t){return this.isCurrent(t)||this.isProxy(t)},isCurrent:function(t){return t instanceof Window},isProxy:function(e){return t.Obj.is(e)&&!(e instanceof Window)&&e.window===e},hasHistoryApi:function(){var t=!1;return window.history&&window.history.pushState&&window.history.replaceState&&(navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)||(t=!0)),t},isScrollable:function(e){var r=this.getScroll();return t.Arr.in(e,["x","horizontal"])?r.scrollableX:t.Arr.in(e,["y","vertical"])?r.scrollableY:!0===r.scrollableX?r.scrollableX:r.scrollableY},getScroll:function(){var e=t.Pojo.replace({top:t.Num.round(window.pageYOffset),left:t.Num.round(window.pageXOffset),width:t.Num.round(document.documentElement.scrollWidth),height:t.Num.round(document.documentElement.scrollHeight),innerWidth:t.Num.round(window.innerWidth),innerHeight:t.Num.round(window.innerHeight),scrollableX:!1,scrollableY:!1});return e.innerWidth>0&&e.innerHeight>0&&(e.width>e.innerWidth+1&&(e.scrollableX=!0),e.height>e.innerHeight+1&&(e.scrollableY=!0)),e},setScroll:function(t,e){e=e>0?e:0,t=t>0?t:0,window.scrollTo(e,t)},focus:function(t){this.typecheck(t),t.focus()},getDimension:function(){return{width:t.Num.round(window.innerWidth),height:t.Num.round(window.innerHeight)}}},A=t.Factory,b=t.Shortcut,w=t.Tool,E=A(w.Type,f),N=A(k,a,p,d,g,S),H=A(k,a,p,d,m,y,v,l),T=A(k,a,p,d,m,y,g,v,h,w.ArrLoop),P=A(k,a,p,d,m,y),x=A(k,a,p,d);b.getAttr=T.getAttr.bind(T),b.setAttr=T.setAttr.bind(T),b.toggleAttr=T.toggleAttr.bind(T),b.setCss=T.setCss.bind(T),b.toggleClass=T.toggleClass.bind(T),b.getHtml=T.getHtml.bind(T),b.setHtml=T.setHtml.bind(T),b.qs=P.scopedQuery.bind(P),b.qsa=P.scopedQueryAll.bind(P),b.getProp=x.getProp.bind(x),b.setProp=x.setProp.bind(x),b.getData=x.getData.bind(x),b.setData=x.setData.bind(x),b.setHdlr=x.setHandler.bind(x),b.setHdlrs=x.setsHandler.bind(x),b.allHdlr=x.allHandler.bind(x),b.trigHdlr=x.triggerHandler.bind(x),b.trigHdlrs=x.triggersHandler.bind(x),b.ael=x.addListener.bind(x),b.aelDelegate=x.addDelegatedListener.bind(x),b.aelPassive=x.addPassiveListener.bind(x),b.aelOnce=x.addListenerOnce.bind(x),b.rel=x.removeListener.bind(x),b.trigEvt=x.triggerNoBubble.bind(x),b.trigBubble=x.triggerBubble.bind(x),b.trigSetup=x.triggerSetup.bind(x),b.trigTeardown=x.triggerTeardown.bind(x)})(),window.Quid=n}(); | ||
!function(){var t={155:function(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 u,c=[],a=!1,l=-1;function h(){a&&u&&(a=!1,u.length?c=u.concat(c):l=-1,c.length&&f())}function f(){if(!a){var t=s(h);a=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,a=!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 p(t,e){this.fun=t,this.array=e}function d(){}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];c.push(new p(t,e)),1!==c.length||a||s(f)},p.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=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,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}},505:function(t,e,n){"use strict";n.d(e,{Arr:function(){return O},ArrLike:function(){return D},Bool:function(){return C},Component:function(){return U},Datetime:function(){return r},Debug:function(){return i},Env:function(){return s},Factory:function(){return u},Func:function(){return F},Html:function(){return c},Integer:function(){return R},Json:function(){return a},Nav:function(){return l},Num:function(){return I},Obj:function(){return B},Pojo:function(){return W},Scalar:function(){return q},Shortcut:function(){return V},Str:function(){return M},Test:function(){return X},TestSuite:function(){return h},Tool:function(){return Q},Validate:function(){return f},Vari:function(){return p}});var r={now:function(){return(new Date).getTime()},localeFormat:function(t,e,n){return M.typecheck(t),(e=M.isNotEmpty(e)?new Date(e):new Date).toLocaleString(t,n)},year:function(){return(new Date).getFullYear()},ymd:function(t,e,n,r){let i=R.is(t)?new Date(1e3*t):new Date;return i.setHours(0,0,0),R.is(r)&&i.setDate(r),R.is(n)&&i.setMonth(n-1),R.is(e)&&i.setFullYear(e),i.toISOString().substr(0,10)},his:function(t){return(R.is(t)?new Date(1e3*t):new Date).toTimeString().split(" ")[0]}},i=new function(){let t=!1;this.status=function(e){return q.is(e)&&(t=e),t},this.is=function(e){return!0===t||t===e},this.assertThrow=function(t){if(!0!==t)throw new Error},this.logError=function(t){console.error("Catched",t)}},o=n(155),s={isNode:function(){return void 0!==o&&void 0!==o.release&&"node"===o.release.name},isBrowser:function(){return!this.isNode()},isWindow:function(t){let e=!1;return this.isBrowser()&&B.is(t)&&(e=t instanceof Window||t.window===t),e},isTarget:function(t){let e=!1;return this.isBrowser()&&B.is(t)&&(e=t instanceof HTMLElement||t instanceof HTMLTemplateElement||t instanceof DocumentFragment||t===document||this.isWindow(t)||O.in(t.nodeType,[Node.TEXT_NODE,Node.DOCUMENT_TYPE_NODE])),e}};function u(t){const e=Object.create(!0===t?{}:t||null),n=Array.prototype.slice.call(arguments,1);return Object.assign.apply(null,[e].concat(n)),e}var c={valueAttr:{br:"data-value",hr:"data-value",img:"src",meta:"content",link:"href",input:"value"},htmlEscapes:{"&":"&","<":"<",">":">",'"':""","'":"'"},isSelfClosing:function(t){return O.in(t,["br","hr","img","meta","link","input"])},escape:function(t){const e=this;return M.typecheck(t),t.replace(/[&<>"']/g,(function(t){return e.htmlEscapes[t]}))},start:function(t,e,n){let r="";M.typecheck(t,!0);const i=this.isSelfClosing(t),o=this.attr(n,t,e);return r+="<",r+=t,M.isNotEmpty(o)&&(r+=" ",r+=o),!0===i?r+="/>":(r+=">",r+=this.value(e)),r},end:function(t){let e="";M.typecheck(t,!0);return!1===this.isSelfClosing(t)&&(e+="</",e+=t,e+=">"),e},value:function(t,e){return!0===t?t=!0===e?1:" ":!1===t&&(t=!0===e?0:""),!0!==e&&(W.is(t)&&(t=W.values(t)),O.is(t)&&(t=t.join(", "))),M.cast(t,!0)},attr:function(t,e,n){let r="";const i=this.isSelfClosing(e);if(t=this.attrToPojo(t),!0===i&&W.keyExists(e,this.valueAttr)){const r=W.get(e,this.valueAttr);if(null!=r){null!=W.get(r,t)&&null==n||(t[r]=this.value(n,!0))}}return t=this.prepareAttr(t),r=W.str(t,"="," ",!0),r},attrToPojo:function(t){let e={};return M.isNotEmpty(t)&&(e={class:t}),W.is(t)&&(e=t),e},prepareAttr:function(t){let e={};W.typecheck(t);const n=function(t,e){return{key:M.fromCamelCase("-",t),value:C.is(e)?C.toInt(e):e}};return W.each(t,(function(t,r){const i=n(r,t);r=i.key,t=i.value,"class"===r&&O.is(t)?t=t.join(" "):"data"===r&&W.is(t)&&(W.each(t,(function(t,r){const i=n(r,t),o="data-"+i.key;e[o]=i.value})),t=null),null!=t&&(e[r]=t)})),e},tag:function(t,e,n){return this.start(t,e,n)+this.end(t)},tagCond:function(t,e,n){return p.isNotEmpty(this.value(e))?this.tag(t,e,n):""},div:function(t,e){return this.tag("div",t,e)},span:function(t,e){return this.tag("span",t,e)},ul:function(t,e){return this.tag("ul",t,e)},li:function(t,e){return this.tag("li",t,e)},input:function(t,e){return this.tag("input",t,W.replace({type:"text"},this.attrToPojo(e)))},button:function(t,e){return this.tag("button",t,W.replace({type:"button"},this.attrToPojo(e)))}},a={encode:function(t){return JSON.stringify(t)},decode:function(t){return JSON.parse(M.typecheck(t))},recode:function(t){return this.decode(this.encode(t))}},l={isFirst:function(t,e){return t===this.getFirst(e)},hasPrev:function(t,e,n){return null!=this.getPrev(t,e,n)},hasNext:function(t,e,n){return null!=this.getNext(t,e,n)},isLast:function(t,e){return t===this.getLast(e)},isIndex:function(t,e){return this.getIndex(t,e)===t},getFirst:function(t){return R.isPositive(t)?0:null},getPrev:function(t,e,n){let r=null;if(R.isPositive(e)){const i=e-1,o=(t=R.is(t)?t:i)-1;o<0?!0===n&&(r=i):r=o}return r},getNext:function(t,e,n){let r=null;if(R.isPositive(e)){const i=e-1,o=(t=R.is(t)?t:-1)+1;o>i?!0===n&&(r=0):r=o}return r},getLast:function(t){return R.isPositive(t)?t-1:null},getIndex:function(t,e){return R.is(t)&&t>=0&&R.isPositive(e)&&t<e?t:null},index:function(t,e,n,r){let i=null;return R.isPositive(n)&&("first"===t?i=this.getFirst(n):"last"===t?i=this.getLast(n):"prev"===t?i=this.getPrev(e,n,r):"next"===t?i=this.getNext(e,n,r):R.is(t)&&(i=this.getIndex(t,n))),i},indexObj:function(t,e,n,r){let i=null;if(B.typechecks(n,!1),null!=n){const o=O.length(n);B.is(t)&&(t=O.search(t,n)),B.is(e)&&(e=O.search(e,n));const s=this.index(t,e,o,r);R.is(s)&&(i=O.get(s,n))}return i}};function h(t){return W.each(t,(function(t,e){return t()}))}var f={isNumericDash:function(t){return this.regex(t,"^[0-9-]+$")},isEmail:function(t){return this.regex(t,/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{1,4})+$/)},isRegexStr:function(t){return M.isNotEmpty(t)||t instanceof RegExp},regex:function(t,e){let n=!1;if(M.is(t)&&this.isRegexStr(e)){new RegExp(e).test(t)&&(n=!0)}return n},trigger:function(t,e,n){let r=this.required(t,e);return!0===r&&(r=this.pattern(t,n)),r},required:function(t,e){let n=!0;return C.is(e)&&(e=C.toInt(e)),I.isPositive(e)&&(t=M.cast(t),(t=M.trim(t)).length||(n=!1)),n},pattern:function(t,e){let n=!0;return M.isNotEmpty(e)&&(t=M.cast(t)).length&&!this.regex(t,e)&&(n=!1),n}},p={is:function(t){return void 0!==t},isEmpty:function(t){let e=!0;return O.is(t)||M.is(t)?e=!(t.length>0):q.is(t)?e=!t:s.isTarget(t)?e=!1:null!=t&&this.eachProto(t,(function(){return e=!1,!1})),e},isNotEmpty:function(t){return!this.isEmpty(t)},isReallyEmpty:function(t){return!I.is(t)&&!C.is(t)&&this.isEmpty(t)},isNotReallyEmpty:function(t){return!this.isReallyEmpty(t)},isNull:function(t){return null===t},isUndefined:function(t){return void 0===t},isEqual:function(){let t,e=!1,n=null;return e=D.each(arguments,(function(e){if(n=a.encode(e),void 0!==t)return n===t;t=n})),e},isEqualStrict:function(){let t,e=!1;return e=D.each(arguments,(function(e){if(void 0!==t)return Object.is(t,e);t=e})),e},type:function(t){let e=typeof t;const n={};if(null==t)e=t+"";else if("function"===e){const r=n.toString.call(t);e=n[r]||"object"}return e},check:function(t,e){if(t!==e)throw new Error([t,e]);return t},eachProto:function(t,e){let n=null;if(F.is(e)){var r,i;let o;for(r in n=!0,t)if(i=t[r],o=e.call(i,i,r,t),!1===o){n=!1;break}}return n}};const d={is:function(t){return Array.isArray(t)},in:function(t,e){return this.is(e)?Array.prototype.includes.call(e,t):null},keys:function(t){return this.typecheck(t),Array.from(Array.prototype.keys.call(t))},valueFirst:function(t){return this.typecheck(t),t.length?t[0]:void 0},valueLast:function(t){return this.typecheck(t),t.length?t[t.length-1]:void 0},keyFirst:function(t){return this.typecheck(t),t.length?0:void 0},keyLast:function(t){return this.typecheck(t),t.length?t.length-1:void 0},search:function(t,e){let n=null;return this.typecheck(e),n=Array.prototype.indexOf.call(e,t),n=-1===n?null:n,n},slice:function(t,e,n){let r=null;return this.typecheck(n),t=R.is(t)?t:0,e=R.is(e)?e:void 0,r=Array.prototype.slice.call(n,t,e),r},sliceStart:function(t,e){return this.slice(t,!0,e)},merge:function(t){let e=null;this.typecheck(t);const n=D.sliceStart(1,arguments);return e=Array.prototype.concat.apply(t,n),e},clean:function(t){return this.filter(t,(function(t){return p.isNotReallyEmpty(t)}))},valueStrip:function(t,e){return this.filter(e,(function(e){return e!==t}))},find:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.find.call(t,e)},some:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.some.call(t,e)},every:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.every.call(t,e)},map:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.map.call(t,e)},filter:function(t,e){return this.typecheck(t),F.typecheck(e),Array.prototype.filter.call(t,e)},reduce:function(t,e,n){return this.typecheck(e),F.typecheck(n),Array.prototype.reduce.call(e,n,t)},column:function(t,e){const n=[];return M.typecheck(t,!0),this.each(e,(function(e){W.is(e)&&W.keyExists(t,e)&&n.push(e[t])})),n},new:function(){return[]}},y={mergeRef:function(t){this.typecheck(t);let e=t;const n=D.sliceStart(1,arguments);return this.each(n,(function(t){O.is(t)||(t=[t]),Array.prototype.push.apply(e,t)})),e},reverseRef:function(t){return this.typecheck(t),t.reverse()},spliceValue:function(t,e,n){let r=null,i=this.search(t,e);this.typecheck(e);let o=[i,1];return void 0!==n&&o.push(n),r=Array.prototype.splice.apply(e,o),r}},g={timeouts:function(t,e,n,r){return R.typecheck(e),R.typecheck(n),F.typecheck(r),O.each(t,(function(t,i){const o=e+i*n;F.timeout(o,(function(){r(t,i,o)}))}))},oddEven:function(t,e,n){return F.typechecks([e,n],!1),O.each(t,(function(t,r){const i=r+1;I.isOdd(i)?null!=e&&e(t,r):null!=n&&n(t,r)}))}};var m={is:function(t){let e=!1;if(!(O.is(t)||q.is(t)||F.is(t)||s.isWindow(t))){const n=p.type(t),r=!!t&&"length"in t&&t.length;e="array"===n||0===r||"number"==typeof r&&r>0&&r-1 in t}return e},toArray:function(t){return O.is(t)?t:this.is(t)?Array.from(t):null}},v={is:function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},noop:function(){return function(){}},async:function(t,e){return this.timeout(0,t,e)},timeout:function(t,e,n){return this.typecheck(e),R.is(t)||(t=0),setTimeout(e.bind(n),t)},debounce:function(t,e){R.typecheck(t),this.typecheck(e);const n=this;let r;return function(){const i=this,o=arguments;r&&clearTimeout(r),r=n.timeout(t,(function(){e.apply(i,o)}))}},debounceOnce:function(t,e){let n=!1;return Func.typecheck(e),this.debounce(t,(function(){const t=arguments;!1===n&&(e.apply(this,t),n=!0)}))},throttle:function(t,e){R.typecheck(t),this.typecheck(e);const n=this;let r=!0;return function(){const i=this;!0===r&&(e.apply(i,arguments),r=!1,n.timeout(t,(function(){r=!0})))}}},k={is:function(t){return I.is(t)&&parseInt(t)===t},cast:function(t){return q.isNotBool(t)&&""!==t?parseInt(t):null},toBool:function(t){let e=null;return this.typecheck(t),1===t?e=!0:0===t&&(e=!1),e},toggle:function(t){let e=null;return this.typecheck(t),1===t?e=0:0===t&&(e=1),e},range:function(t,e,n){let r=null;if(t=null==t?1:t,n=null==n?1:n,this.isPositive(t,!0)&&this.isPositive(e,!0)&&this.isPositive(n)){const i=Math.floor((e-t)/n)+1,o=Array(i).fill(t);r=O.map(o,(function(t,e){return t+e*n}))}return r},unique:function(t){let e=0;return function(){return e++}}()};const A={is:function(t){let e=!1;const n=p.type(t);return"number"!==n&&"string"!==n||(e=!isNaN(t-parseFloat(t))),e},isEmpty:function(t){return!!this.is(t)&&p.isEmpty(this.cast(t))},isNotEmpty:function(t){return!!this.is(t)&&p.isNotEmpty(this.cast(t))},isPositive:function(t,e){let n=!1;return this.is(t)&&((t=this.cast(t))>0||!0===e&&0===t)&&(n=!0),n},isNegative:function(t,e){let n=!1;return this.is(t)&&((t=this.cast(t))<0||!0===e&&0===t)&&(n=!0),n},isOdd:function(t){return this.is(t)&&!R.is(t/2)},isEven:function(t){return this.is(t)&&R.is(t/2)},isNan:function(t){return isNaN(t)},cast:function(t){return q.isNotBool(t)&&""!==t?parseFloat(t):null},str:function(t){return this.typecheck(t),Number(t).toString()}},S={decimal:function(t,e){return this.typecheck(t),e=R.is(e)?e:2,t.toFixed(e)},round:function(t){return t=this.cast(t),this.typecheck(t),Math.round(t)},floor:function(t){return t=this.cast(t),this.typecheck(t),Math.floor(t)},ceil:function(t){return t=this.cast(t),this.typecheck(t),Math.ceil(t)}},b={is:function(t){return"object"===p.type(t)},isEqual:function(){let t=!1;const e=Array.from(arguments);return e.length>1&&this.is(e[0])&&(t=p.isEqual.apply(null,e)),t},length:function(t){this.typecheck(t);return Object.keys(t).length}},w={isKey:function(t){return q.isNotBool(t)},keyExists:function(t,e){return!(!this.isKey(t)||!this.is(e))&&e.hasOwnProperty(t)},keys:function(t){return this.typecheck(t),Object.keys(t)},values:function(t){return this.typecheck(t),Object.values(t)},get:function(t,e){return this.typecheck(e),this.keyExists(t,e)?e[t]:void 0},toArray:function(t){return this.typecheck(t),Array.from(this.values(t))},valueFirst:function(t){let e;const n=this.keys(t);if(null!=n){e=t[n[0]]}return e},valueLast:function(t){let e;const n=this.keys(t);if(null!=n){e=t[n[n.length-1]]}return e},find:function(t,e){let n;return F.typecheck(e),this.each(t,(function(t,r){if(e(t,r))return n=t,!1})),n},findKey:function(t,e){let n=null;return F.typecheck(e),this.each(t,(function(t,r){if(e(t,r))return n=r,!1})),n},some:function(t,e){let n=!1;return F.typecheck(e),this.each(t,(function(t,r){if(e(t,r))return n=!0,!1})),n},every:function(t,e){let n=!0;return F.typecheck(e),this.each(t,(function(t,r){if(!e(t,r))return n=!1})),n},reduce:function(t,e,n){return F.typecheck(n),this.each(e,(function(e,r){t=n(t,e,r)})),t},accumulate:function(t,e,n){return F.typecheck(n),this.each(e,(function(e,r){const i=n(e,r);if(null==i)return!0;O.is(t)?t.push(i):W.is(t)?t[r]=i:t+=i})),t},str:function(t,e,n,r){return e=M.is(e)?e:"=",n=M.is(n)?n:" ",this.reduce("",t,(function(t,i,o){if(M.isNotEmpty(o))return i=M.cast(i,!0),!0===r&&(i=M.quote(i,!1,!0)),t.length&&(t+=n),t+=o,t+=e,t+=i}))},climb:function(t,e){M.is(t)&&(t=M.explode("/",t)),O.typecheck(t),this.typecheck(e);const n=this;return O.each(t,(function(t){if(!n.keyExists(t,e))return e=void 0,!1;e=e[t]})),e}},E={each:function(t,e){let n=!0;F.typecheck(e);let r,i,o,s=this.keys(t);for(var u=0;u<s.length;u++)if(r=s[u],i=t[r],o=e(i,r),!1===o){n=!1;break}return n}},N={copy:function(t){return this.typecheck(t),Object.assign(this.new(),t)},new:function(){return{}},filter:function(t,e){let n=this.new();F.typecheck(e);const r=!Array.isArray(n);return this.each(t,(function(t,i){const o=e(t,i);i=!1===r?n.length:i,o&&(n[i]=t)})),n},map:function(t,e){let n=this.new();return F.typecheck(e),this.each(t,(function(t,r){const i=e(t,r);n[r]=i})),n}},H={set:function(t,e,n){let r=this.copy(n);return r[t]=e,r},unset:function(t,e){let n=this.copy(e);return delete n[t],n},unsets:function(t,e){let n=this.copy(e);const r=this;return O.each(t,(function(t){r.keyExists(t,e)&&delete n[t]})),n},replace:function(){let t=this.new(),e=Array.from(arguments);if(e.length>0){const n=this;O.each(e,(function(e){n.typecheck(e,!1),null!=e&&(t=Object.assign(t,e))}))}return t}},T={setRef:function(t,e,n){return this.typecheck(n),n[t]=e,n},unsetRef:function(t,e){return this.typecheck(e),this.keyExists(t,e)&&delete e[t],e},unsetsRef:function(t,e){this.typecheck(e);const n=this;return O.each(t,(function(t){n.keyExists(t,e)&&delete e[t]})),e}};var P={is:function(t){return null!=t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype&&"[object Object]"===t.toString()},gets:function(t,e){let n={};this.typecheck(e);const r=this;return O.each(t,(function(t){n[t]=r.keyExists(t,e)?e[t]:void 0})),n},replaceRecursive:function(){let t=null,e=Array.from(arguments);if(e.length>0){t=this.copy(e[0]);const n=this,r=O.sliceStart(1,e);O.each(r,(function(e){null!=e&&n.each(e,(function(e,r){n.is(t[r])&&n.keyExists(r,t)?t[r]=n.replaceRecursive(t[r],e):t[r]=e}))}))}return t}},x={is:function(t){let e=!1;const n=typeof t;return"boolean"!==n&&"number"!==n&&"string"!==n||(e=!0),e},isNotBool:function(t){return this.is(t)&&!C.is(t)},cast:function(t,e){return null!=t&&null!=e&&(O.in(e,[!0,"json"])?t=a.decode(t):"int"===e?t=R.cast(t):"num"===e?t=I.cast(t):"bool"===e&&this.is(t)&&(t=this.toBool(t))),t},toBool:function(t){let e=null;return this.typecheck(t),O.in(t,[1,"1",!0,"true"])?e=!0:O.in(t,[0,"0",!1,"false"])&&(e=!1),e}},j={is:function(t){return"string"==typeof t},isStart:function(t,e){return this.is(t)&&this.is(e)?e.startsWith(t):null},isEnd:function(t,e){return this.is(t)&&this.is(e)?e.endsWith(t):null},isEqual:function(t,e){return this.cast(t)===this.cast(e)},in:function(t,e){return this.is(e)&&this.is(t)?e.includes(t):null},icompare:function(t,e){return!(!this.is(t)||!this.is(e))&&t.toUpperCase()===e.toUpperCase()},cast:function(t,e){let n="";return null!=t&&(n=B.is(t)&&!0===e?a.encode(t):String(t)),n},toNum:function(t){return this.typecheck(t),I.cast(t)},toInt:function(t){return this.typecheck(t),R.cast(t)},pos:function(t,e){this.typecheck(e);let n=e.indexOf(t);return n=-1===n?null:n,n},lower:function(t){return this.typecheck(t),t.toLowerCase()},lowerFirst:function(t){return this.typecheck(t),this.isNotEmpty(t)?t.charAt(0).toLowerCase()+t.slice(1):null},upper:function(t){return this.typecheck(t),t.toUpperCase()},upperFirst:function(t){return this.typecheck(t),this.isNotEmpty(t)?t.charAt(0).toUpperCase()+t.slice(1):null},trim:function(t){return this.typecheck(t),t.trim()},quote:function(t,e,n){let r=null;this.typecheck(t);const i=!0===e?'"':"'";return!0===n&&(t=c.escape(t)),r=i+t+i,r},sub:function(t,e,n){return this.typecheck(n),R.typecheck(t),n.substring(t,!0===e?void 0:e)},excerpt:function(t,e,n){let r=this.sub(0,t,e);return r!==e&&this.isNotEmpty(n)&&(r+=n),r},explode:function(t,e,n){this.typechecks([t,e]);let r=e.split(t);return!0===n&&(r=O.clean(r)),r},explodeIndex:function(t,e,n){let r;const i=this.explode(e,n);return R.is(t)&&this.isNotEmpty(i[t])&&(r=i[t]),r},removeAllWhitespace:function(t){return this.typecheck(t),t.replace(/\s/g,"")},fromCamelCase:function(t,e){return this.typecheck(t),(e=this.trim(e)).replace(/[\w]([A-Z])/g,(function(e){return e[0]+t+e[1]})).toLowerCase()},toCamelCase:function(t,e){let n=null;const r=this;e=this.trim(e);let i=this.explode(t,e,!0);return i=O.map(i,(function(t,e){return 0==e?r.lower(t):r.upperFirst(t)})),n=i.join(""),n=this.removeAllWhitespace(n),n},slug:function(t){return(t=this.lower(t)).replace(/ /g,"-").replace(/[^\w-]+/g,"").replace(/--/g,"-")},keepNumber:function(t){return this.typecheck(t),t.replace(/[^0-9]/g,"")},replace:function(t,e){return this.typecheck(e),W.each(t,(function(t,n){e=e.replace(n,t)})),e}},L={is:function(t){return"object"!==p.type(t)},are:function(t){const e=this;return!!O.is(t)&&O.each(t,(function(t){return e.is(t)}))},isEmpty:function(t){return!!this.is(t)&&p.isEmpty(t)},isNotEmpty:function(t){return!!this.is(t)&&p.isNotEmpty(t)},typecheck:function(t,e){if((!0===e&&!this.isNotEmpty(t)||!0!==e&&!this.is(t))&&(!1!==e||null!=t))throw new Error(t);return t},typechecks:function(t,e){if(!O.is(t))throw new Error(t);{const n=this;O.each(t,(function(t){n.typecheck(t,e)}))}return t}};const O=u(L,b,w,E,N,H,T,d,y,g),D=u(L,b,w,E,N,d,m,g),C=u(L,{is:function(t){return"boolean"==typeof t},toInt:function(t){let e=null;return this.typecheck(t),!0===t?e=1:!1===t&&(e=0),e},toggle:function(t){let e=null;return this.typecheck(t),!0===t?e=!1:!1===t&&(e=!0),e}}),F=u(L,b,v),R=u(L,A,k),I=u(L,A,S),B=u(L,b,w,E,N,H,T,{keyExists:function(t,e){return!(!this.isKey(t)||!this.is(e))&&t in e}}),W=u(L,b,w,E,N,H,T,P),q=u(L,x),M=u(L,b,w,E,j),Q={Type:L,ArrLoop:g},X={},U={},V={d:console.log,assert:i.assertThrow.bind(i),logError:i.logError.bind(i)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r),n.d(r,{Arr:function(){return t.Arr},ArrLike:function(){return t.ArrLike},Bool:function(){return t.Bool},Browser:function(){return e},Component:function(){return t.Component},Datetime:function(){return t.Datetime},Debug:function(){return t.Debug},Doc:function(){return H},Dom:function(){return i},Ele:function(){return T},Env:function(){return t.Env},Evt:function(){return E},Factory:function(){return t.Factory},Func:function(){return t.Func},HistoryState:function(){return o},Html:function(){return t.Html},Integer:function(){return t.Integer},Json:function(){return t.Json},Nav:function(){return t.Nav},Nod:function(){return P},Num:function(){return t.Num},Obj:function(){return t.Obj},Pojo:function(){return t.Pojo},Request:function(){return s},Scalar:function(){return t.Scalar},Shortcut:function(){return t.Shortcut},Str:function(){return t.Str},Target:function(){return x},Test:function(){return t.Test},TestSuite:function(){return t.TestSuite},Tool:function(){return t.Tool},Uri:function(){return u},Validate:function(){return t.Validate},Vari:function(){return t.Vari},Win:function(){return N},Xhr:function(){return c}});var t=n(505),e={isOldIe:function(){return t.Str.in("MSIE ",window.navigator.userAgent)},isIe11:function(){return t.Str.in("Trident/",window.navigator.userAgent)},isIe:function(){return this.isOldIe()||this.isIe11()},isUnsupported:function(t){return!(!0!==t||!this.isIe11())||this.isOldIe()},allowsCookie:function(){return navigator.cookieEnabled}},i={selectorInput:function(t){var e="input,select,textarea,button";return e+=!0!==t?"[type='submit']":""},htmlStr:function(e){var n="";return t.Str.is(e)?n=e:t.Scalar.is(e)?n=t.Str.cast(e):H.is(e)?n=H.getHtml(e):(T.is(e)||T.are(e))&&(n=T.getOuterHtml(e)),n},htmlNodes:function(e,n){var r=[];return t.Str.is(e)?r=this.parse(e):H.is(e)?(e=H.realNode(e),r.push(!0===n?H.clone(e):e)):T.are(e)?r=!0===n?T.clones(e):e:T.is(e)&&r.push(!0===n?T.clone(e):e),r},safeHtml:function(e){return t.Str.typecheck(e),e=(e=(e=e.replace(/<\!DOCTYPE[^>]*>/i,"")).replace(/<(html|head|body)([\s\>])/gi,'<div data-tag="$1"$2')).replace(/<\/(html|head|body)\>/gi,"</div>"),e=t.Str.trim(e)},parse:function(t){t=this.safeHtml(t);var e=document.createElement("template");e.innerHTML=t;var n=e.content;return H.children(n,null,!0)},parseOne:function(e){return t.Arr.valueFirst(this.parse(e))},querySelector:function(e,n){var r=void 0;t.Str.typecheck(e);var i=this.parse(n);if(t.Arr.isNotEmpty(i)){var o=T.mergedQsa(i,e);if(t.Arr.isNotEmpty(o)){var s=t.Arr.valueFirst(o);r=T.getHtml(s)}}return r},doc:function(e){var n={doc:this.parse(e),docEle:[],html:null,htmlAttr:null,head:null,headAttr:null,title:"?",titleHtml:"?",meta:null,body:null,bodyAttr:null};if(t.Arr.accumulate(n.docEle,n.doc,(function(t){return T.is(t)?t:null})),n.html=T.find(n.docEle,"[data-tag='html']")||t.Arr.valueFirst(n.docEle),null!=n.html&&(T.removeAttr(n.html,"data-tag"),n.htmlAttr=T.attr(n.html),n.head=T.scopedQuery(n.html,"[data-tag='head']"),n.body=T.scopedQuery(n.html,"[data-tag='body']"),null!=n.head)){var r=T.scopedQuery(n.head,"title");T.removeAttr(n.head,"data-tag"),n.headAttr=T.attr(n.head),n.title=null!=r?T.getText(r):"?",n.titleHtml=t.Str.replace({"<":"<",">":">"," & ":" & "},n.title),n.meta=T.scopedQueryAll(n.head,"meta")}if(null!=n.body)T.removeAttr(n.body,"data-tag"),n.bodyAttr=T.attr(n.body);else{var i=T.getOuterHtml(n.doc),o=t.Html.div(i,{dataTag:"body"});n.body=this.parseOne(o)}return n}},o={is:function(e){var n=!1;return t.Pojo.is(e)&&t.Str.is(e.url)&&t.Num.is(e.timestamp)&&(n=!0),n},isChangeValid:function(t,e,n){var r=!1;if(this.is(t)&&this.is(e)){var i=u.isInternal(t.url,e.url),o=u.hasExtension(t.url),s=u.isHashChange(t.url,e.url),c=u.isSameWithHash(t.url,e.url);!0===i&&!1===o&&!1===s&&!1===c&&(n&&!1!==u.isSamePathQuery(t.url,e.url)||(r=!0))}return r},make:function(e,n,r){t.Str.typecheck(e);var i=u.absolute(e,!0),o=t.Str.isEnd("#",e),s=t.Str.isEnd("#",i);return!0===r&&!0===s?i=i.slice(0,-1):!0!==r&&!0===o&&!1===s&&(i+="#"),{url:i,title:n||null,timestamp:t.Datetime.now()}}},s={relative:function(t){var e=window.location.pathname+window.location.search;return!0===t&&window.location.hash&&(e+=u.makeHash(window.location.hash,!0)),e},absolute:function(){return window.location.href},scheme:function(e){var n=location.protocol;return!0!==e&&(n=n.substring(0,t.Str.pos(":",n))),n},host:function(){return location.hostname},schemeHost:function(){return location.origin},fragment:function(){return u.makeHash(window.location.hash)},parse:function(){return new URL(this.absolute())}},u={isInternal:function(e,n){var r=!1;if(t.Str.is(e)){n=t.Str.is(n)?this.parse(n):s.parse();var i=this.parse(e);i.protocol===n.protocol&&i.host===n.host&&(r=!0)}return r},isExternal:function(t,e){return!this.isInternal(t,e)},hasExtension:function(t){return null!=this.extension(t)},hasFragment:function(e){var n=!1;if(t.Str.is(e)){var r=this.parse(e);t.Str.isNotEmpty(r.hash)&&(n=!0)}return n},isOnlyHash:function(e){return t.Str.length(e)>1&&t.Str.isStart("#",e)},isSamePathQuery:function(e,n){var r=!1;if(t.Str.is(e)){n=t.Str.is(n)?this.parse(n):s.parse();var i=this.parse(e);i.pathname===n.pathname&&i.search===n.search&&(r=!0)}return r},isSamePathQueryHash:function(e,n){var r=!1;if(t.Str.is(e)){n=t.Str.is(n)?this.parse(n):s.parse();var i=this.parse(e);i.pathname===n.pathname&&i.search===n.search&&i.hash===n.hash&&(r=!0)}return r},isHashChange:function(e,n){var r=!1;if(t.Str.is(e)){n=t.Str.is(n)?this.parse(n):s.parse();var i=this.parse(e);i.protocol===n.protocol&&i.host===n.host&&i.pathname===n.pathname&&i.search===n.search&&(t.Str.isNotEmpty(i.hash)||t.Str.isNotEmpty(n.hash))&&i.hash!==n.hash&&(r=!0)}return r},isSameWithHash:function(t,e){return this.hasFragment(t)&&t===e},relative:function(t,e){return this.build(this.parse(t),!1,e)},absolute:function(t,e){return this.build(this.parse(t),!0,e)},path:function(t){return this.parse(t).pathname},query:function(t){return this.makeQuery(this.parse(t).search).toString()},fragment:function(t){return this.makeHash(this.parse(t).hash,!1)},basename:function(e){var n=null,r=this.path(e);return t.Str.is(r)&&(n=r.substr(r.lastIndexOf("/")+1)),n},filename:function(e){var n=null,r=this.basename(e);return t.Str.is(r)&&(n=r.replace(/\.[^.$]+$/,"")),n},extension:function(e){var n=null,r=this.parse(e),i=/(?:\.([^.]+))?$/.exec(r.pathname);return t.Arr.is(i)&&2===i.length&&(n=i[1]),n},parse:function(e){t.Str.typecheck(e);var n=s.schemeHost();return t.Str.isStart("#",e)&&(e=s.relative()+e),new URL(e,n)},build:function(e,n,r){var i="";if(t.Obj.typecheck(e),!0===n&&(i+=t.Str.is(e.protocol)?e.protocol:s.scheme(!0),i+="//",i+=t.Str.is(e.host)?e.host:s.host()),i+=e.pathname,e.search){var o=(e.search instanceof URLSearchParams?e.search:this.makeQuery(e.search)).toString();t.Str.isNotEmpty(o)&&(i+="?"+o)}return e.hash&&!0===r&&(i+=this.makeHash(e.hash,!0)),i},makeQuery:function(e){var n=t.Str.is(e)?new URLSearchParams(e):new URLSearchParams;return t.Pojo.is(e)&&t.Pojo.each(e,(function(t,e){t=null==t?"":t,n.append(e,t)})),n},makeHash:function(e,n){var r="";if(t.Str.isNotEmpty(e)){r=e;var i=t.Str.isStart("#",r);!0===n?r=i?r:"#"+r:i&&(r=t.Str.sub(1,!0,r))}else!0===n&&(r="#");return r},getMailto:function(e){var n=null;if(t.Str.typecheck(e),t.Str.isNotEmpty(e)){var r=e.replace(/mailto:/,"");t.Validate.isEmail(r)&&(n=r)}return n}},c=new function(){var e=this;this.isStatusSuccess=function(e){return t.Integer.is(e)&&e>=200&&e<400},this.isResponseJson=function(e){var n=!1;if(e instanceof XMLHttpRequest){var r=e.getResponseHeader("Content-Type");t.Str.in("/json",r)&&(n=!0)}return n},this.trigger=function(i,o){i=r.call(this,i),t.Str.typecheck(i.url,!0);var s=new XMLHttpRequest;return s.open(i.method,i.url,!0),s.timeout=i.timeout,s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.ontimeout=function(){n("error",s,i,o)},s.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var t=e.isStatusSuccess(this.status);!1===t?n("error",s,i,o):!0===t&&n("success",s,i,o),n("complete",s,i,o)}},null!=s.upload&&s.upload.addEventListener("progress",(function(e){if(t.Func.is(i.progress)&&!0===e.lengthComputable){var r=parseInt(e.loaded/e.total*100);n("progress",s,i,o,r,e)}})),n("before",s,i,o),s.send(i.data),s},this.configFromString=function(e){return t.Str.typecheck(e,!0),{url:e}};var n=function(e,n,r,i){var o=t.Pojo.get(e,r),s=t.Pojo.is(i)?t.Pojo.get(e,i):null,u=t.ArrLike.sliceStart(4,arguments);u.push(n),t.Func.is(o)&&o.apply(n,u),t.Func.is(s)&&s.apply(n,u)},r=function(e){if(t.Pojo.is(e)&&t.Str.is(e.uri)&&(e.url=e.uri),e=t.Pojo.replace({url:void 0,method:void 0,data:void 0,timeout:1e4},e),t.Str.is(e.method)||(e.method="get"),e.method=e.method.toUpperCase(),t.Pojo.is(e.data))if("POST"===e.method)e.data=this.pojoToFormData(e.data);else{var n=u.parse(e.url),r=u.makeQuery(e.data).toString();n.search=r,e.url=n.toString()}return!e.data instanceof FormData&&(e.data=null),e};this.configFromNode=function(e,n,i){T.typecheck(e);var u=t.Pojo.is(n)?n:{},a=T.tag(e);return null==u.method&&(u=s(u,e,a)),null==(u=o(u,e,a)).data&&(u=c(u,e,a)),!0===i&&(u=this.configNodeEvents(e,u)),u=r.call(this,u)},this.configNodeEvents=function(n,r){var i=this;return T.typecheck(n),t.Pojo.typecheck(r),r.before=function(t){x.triggerHandler(n,"ajax:before",t)},r.progress=function(t,e,r){x.triggerHandler(n,"ajax:progress",t,e,r)},r.success=function(e){var r=t.Str.isNotEmpty(e.responseText)&&i.isResponseJson(e)?t.Json.decode(e.responseText):e.responseText;x.triggerHandler(n,"ajax:success",r,e)},r.error=function(t){var r=e.parseError(t.responseText);x.triggerHandler(n,"ajax:error",r,t)},r.complete=function(t){x.triggerHandler(n,"ajax:complete",t)},r},this.pojoToFormData=function(e){t.Pojo.typecheck(e);var n=new FormData;return t.Pojo.each(e,(function(t,e){n.append(e,t)})),n},this.parseError=function(e){var n="";if(t.Str.isNotEmpty(e)){var r;n=e;var o=i.parseOne(e);if(null!=o){var s=P.scopedQuery(o,".ajax-parse-error");if(null!=s&&(r=T.getOuterHtml(s)),t.Vari.isEmpty(r)){var u=P.scopedQuery(o,"body,[data-tag='body']");null!=u&&(r=T.getHtml(u))}t.Str.isNotEmpty(r)&&(n=r)}}return n};var o=function(e,n,r){if(null==e.url&&(e.url=x.triggerHandler(n,"ajax:getUrl")),null==e.url&&(e.url=T.getUri(n)),null!=e.url&&"form"===r&&t.Str.icompare(e.method,"get")){var i=T.triggerHandler(n,"form:serialize"),o=u.parse(e.url);null!=i&&null!=o&&(o.search=i,e.url=u.build(o))}return e},s=function(t,e,n){return t.method=x.triggerHandler(e,"ajax:getMethod"),null==t.method&&(t.method="form"===n?T.getAttr(e,"method")||"get":T.getAttr(e,"data-method")||"get"),t},c=function(e,n,r){if(e.data=x.triggerHandler(n,"ajax:getData"),null==e.data&&"form"===r&&t.Str.icompare(e.method,"post")){var i=new FormData(n),o=x.triggerHandler(n,"form:getClickedSubmit");if(null!=o){var s=T.getAttr(o,"name");if(t.Str.isNotEmpty(s)){var u=T.getValue(o);i.append(s,u)}}e.data=i}return e}},a={hasData:function(t,e){return void 0!==this.getData(t,e)},getDataKey:function(){return"_quid_"},allData:function(e,n){var r=void 0;this.typecheck(e);var i=this.getDataKey(),o=t.Pojo.is(e[i]);return o||!0!==n||(o=!0,e[i]={}),!0===o&&(r=e[i]),r},getData:function(e,n){t.Str.typecheck(n);var r=this.allData(e);return null!=r?t.Pojo.get(n,r):void 0},flashData:function(t,e){var n=this.getData(t,e);return this.removeData(t,e),n},setData:function(e,n,r){e=this.toArray(e),t.Str.typecheck(n,!0);var i=this;t.Arr.each(e,(function(e){var o=i.allData(e,!0);void 0===r?t.Pojo.unsetRef(n,o):t.Pojo.setRef(n,r,o)}))},removeData:function(t,e){return this.setData(t,e,void 0)},getOrSetData:function(t,e,n){var r=void 0,i=this.getData(t,e);return null==i&&null!=n?(this.setData(t,e,n),r=n):r=i,r}},l={is:function(t){return this.isCurrent(t)||this.isFragment(t)||this.isTemplate(t)},isCurrent:function(t){return t===document},isFragment:function(t){return t instanceof DocumentFragment},getDimension:function(e){this.typecheck(e);var n={width:0,height:0};if(this.isCurrent(e))n.width=t.Num.round(document.documentElement.scrollWidth),n.height=t.Num.round(document.documentElement.scrollHeight);else{var r=this.children(e);t.Arr.each(r,(function(t){var e=T.getDimension(t);n.width+=e.width,n.height+=e.height}))}return n}},h={is:function(t){return t instanceof HTMLElement},isVisible:function(t){return!!this.is(t)&&!(!t.offsetWidth&&!t.offsetHeight)},isHidden:function(t){return!!this.is(t)&&!this.isVisible(t)},isTag:function(t,e){return this.is(t)&&this.tag(t)===e},isFocused:function(t){return t===document.activeElement},isFocusable:function(e){var n=!1;if(this.is(e)){var r=this.tag(e),i=this.getDimension(e);(this.match(e,"[tabindex]")||t.Arr.in(r,["input","textarea","select","a","button"]))&&i.width>0&&i.height>0&&(n=!0)}return n},isScrollable:function(e,n){var r=!1;if(this.is(e)&&"visible"!==this.getCss(e,"overflow")){var i=this.getScroll(e);r=t.Arr.in(n,["x","horizontal"])?i.scrollableX:t.Arr.in(n,["y","vertical"])?i.scrollableY:!0===i.scrollableX?i.scrollableX:i.scrollableY}return r},hasAttr:function(e,n){return!(!this.is(e)||!t.Str.is(n))&&e.hasAttribute(n)},hasClass:function(e,n){return!(!this.is(e)||!t.Str.is(n))&&e.classList.contains(n)},tag:function(e){var n=null,r=this.getProp(e,"tagName");return t.Str.is(r)&&(n=r.toLowerCase()),n},css:function(e,n,r){var i={};this.typecheck(e);for(var o=window.getComputedStyle(e,r),s=0;s<o.length;s++){var u=o.item(s);(null==n||t.Str.isStart(n,u))&&(i[u]=o.getPropertyValue(u))}return i},getCss:function(n,r,i,o){var s=void 0;if(this.typecheck(n),t.Str.typecheck(r),e.isIe11()&&t.Arr.in(r,["width","height"])){var u=this.getDimension(n);s=t.Num.ceil(u[r])+"px"}else{s=window.getComputedStyle(n,o).getPropertyValue(r)}return s=t.Scalar.cast(s,i)},attr:function(e,n){var r={};this.typecheck(e);var i=e.attributes;return t.ArrLike.each(i,(function(e){var i=e.name;(null==n||t.Str.isStart(n,i))&&(r[i]=e.value)})),r},attrStr:function(e,n){var r=null,i=this.attr(e,n);return null!=i&&(r=t.Obj.str(i,"="," ",!0)),r},getAttr:function(e,n,r){var i=void 0;return this.typecheck(e),this.hasAttr(e,n)&&(i=e.getAttribute(n),i=t.Scalar.cast(i,r)),i},dataAttr:function(t){return this.attr(t,"data-")},getValue:function(e,n,r){var i=void 0;return this.typecheck(e),i=e.value,i=t.Str.cast(i),!0===n&&(i=t.Str.trim(i)),null!=r&&(i=t.Scalar.cast(i,r)),i},getDimension:function(e,n){this.typecheck(e),n=!0===n?"block":n;var r,i,o,s=t.Str.isNotEmpty(n);s&&(r=e.style.display,i=e.style.width,o=e.style.height,e.style.display=n,e.style.width="auto",e.style.height="auto");var u=this.getBoundingRect(e);return s&&(e.style.display=r,e.style.width=i,e.style.height=o),{width:t.Num.ceil(u.width),height:t.Num.ceil(u.height)}},getBoundingRect:function(t){return this.typecheck(t),t.getBoundingClientRect()},getScroll:function(e){var n=null;this.typecheck(e);var r=this.tag(e);if(t.Arr.in(r,["html","body"]))n=N.getScroll();else{var i=this.getBoundingRect(e);(n={top:t.Num.ceil(e.scrollTop),left:t.Num.ceil(e.scrollLeft),width:t.Num.ceil(e.scrollWidth),height:t.Num.ceil(e.scrollHeight),innerWidth:t.Num.ceil(i.width),innerHeight:t.Num.ceil(i.height),scrollableX:!1,scrollableY:!1}).innerWidth>0&&n.innerHeight>0&&(n.width>n.innerWidth&&(n.scrollableX=!0),n.height>n.innerHeight&&(n.scrollableY=!0))}return n},getOffset:function(t){return{parent:this.getOffsetParent(t),doc:this.getOffsetDoc(t),win:this.getOffsetWin(t)}},getOffsetParent:function(e){return this.typecheck(e),{top:t.Num.ceil(e.offsetTop),left:t.Num.ceil(e.offsetLeft)}},getOffsetDoc:function(e){var n=this.getBoundingRect(e),r=N.getScroll();return{top:t.Num.ceil(n.top+r.top),left:t.Num.ceil(n.left+r.left)}},getOffsetWin:function(e){var n=this.getBoundingRect(e);return{top:t.Num.ceil(n.top),left:t.Num.ceil(n.left)}},setAttr:function(e,n,r){e=this.toArray(e),t.Str.typecheck(n,!0),t.Obj.is(r)&&(r=t.Json.encode(r)),t.Bool.is(r)&&(r=t.Bool.toInt(r)),t.Arr.each(e,(function(t){void 0===r?t.removeAttribute(n):t.setAttribute(n,r)}))},removeAttr:function(t,e){return this.setAttr(t,e,void 0)},toggleAttr:function(e,n,r){e=this.toArray(e),t.Str.typecheck(n,!0);var i=this,o=t.Bool.is(r)?t.Bool.toInt(r):null;t.Arr.each(e,(function(t){var e=o;null==e&&(e=1!==(e=i.getAttr(t,n,"int"))),i.setAttr(t,n,e)}))},setsAttr:function(e,n){e=this.toArray(e),t.Pojo.typecheck(n);var r=this;t.Arr.each(e,(function(e){t.Pojo.each(n,(function(t,n){r.setAttr(e,n,t)}))}))},emptyAttr:function(e){e=this.toArray(e);var n=this;t.Arr.each(e,(function(e){t.ArrLike.each(e.attributes,(function(t){null!=t&&n.removeAttr(e,t.name)}))}))},addId:function(e,n){e=this.toArray(e),t.Str.typecheck(n);var r=this;t.Arr.each(e,(function(e){if(!r.match(e,"[id]")){var i=n+t.Integer.unique();r.setProp(e,"id",i)}}))},setCss:function(e,n,r){this.typecheck(e),t.Str.typecheck(n),n=t.Str.toCamelCase("-",n),null==r&&(r=""),e.style[n]=r},setValue:function(e,n){this.typecheck(e),n=t.Str.cast(n,!0),e.value=n},toggleClass:function(e,n,r){e=this.toArray(e),t.Str.typecheck(n,!0),t.Arr.each(e,(function(t){t.classList.toggle(n,r)}))},setDimension:function(e,n,r){this.typecheck(e),t.Scalar.is(n)&&(n=!1===(n=!0===n?this.getDimension(e,n).width:n)?void 0:n,n=t.Num.is(n)?n+"px":n,this.setCss(e,"width",n)),t.Scalar.is(r)&&(r=!1===(r=!0===r?this.getDimension(e,r).height:r)?void 0:r,r=t.Num.is(r)?r+"px":r,this.setCss(e,"height",r))},setScroll:function(e,n,r){this.typecheck(e),t.Num.is(n)&&(e.scrollTop=n>0?n:0),t.Num.is(r)&&(e.scrollLeft=r>0?r:0)},focus:function(e,n){if(this.typecheck(e),!0===n){var r=N.getScroll();e.focus(),t.Func.timeout(0,(function(){N.setScroll(r.top,r.left)}))}else e.focus()},getUri:function(t){return"form"===this.tag(t)?this.getAttr(t,"action"):this.getAttr(t,"href")||this.getAttr(t,"data-href")},serialize:function(e,n,r){e=this.toArray(e);var i=u.makeQuery();n=t.Str.is(n)?n:"name",r=t.Str.is(r)?r:"value";var o=this;return t.Arr.each(e,(function(t){var e=o.getProp(t,n),s=o.getProp(t,r);i.append(e,s)})),i.toString()},prepend:function(t,e){this.typecheck(t),e=i.htmlNodes(e),t.prepend.apply(t,e)},append:function(t,e){this.typecheck(t),e=i.htmlNodes(e),t.append.apply(t,e)},insertBefore:function(e,n){return this.typecheck(e),n=i.htmlNodes(n),t.Arr.accumulate([],n,(function(t){return e.insertAdjacentElement("beforebegin",t)}))},insertAfter:function(e,n){return this.typecheck(e),n=i.htmlNodes(n),t.Arr.accumulate([],n,(function(t){return e.insertAdjacentElement("afterend",t)}))},wrapAll:function(e,n){var r=null;if(e=this.toArray(e,!0),n=i.htmlNodes(n),t.Arr.isNotEmpty(n)){r=t.Arr.valueFirst(n);var o=t.Arr.valueFirst(e);this.insertBefore(o,n),this.append(r,e)}return r}},f={specialKeyCode:[9,10,13,16,17,18,19,20,27,32,33,34,35,36,37,38,39,40,45,46,91,92,93,112,113,114,115,116,117,118,119,120,121,122,123,144,145],support:function(){var t={passive:!1,once:!1};try{var e={get passive(){return t.passive=!0,!1},get once(){return t.once=!0,!1}};window.addEventListener("test-support",null,e),window.removeEventListener("test-support",null,e)}catch(e){t.passive=!1,t.once=!1}return t}(),is:function(t){return t instanceof Event},isSpecialKeyCode:function(e){var n=!1;return this.typecheck(e),t.Integer.is(e.keyCode)&&t.Arr.in(e.keyCode,this.specialKeyCode)&&(n=!0),n},preventStop:function(t,e){return this.typecheck(t),t.preventDefault(),!0===e?t.stopImmediatePropagation():t.stopPropagation(),!1},nameFromType:function(e){t.Str.typecheck(e,!0);var n="event";return(t.Str.in(".",e)||t.Str.in(":",e))&&(n="customEvent"),n},createFromType:function(t,e){var n=null,r=this.nameFromType(t);return"customEvent"===r?n=new CustomEvent(t,e):"event"===r&&(n=new Event(t,e)),n},getTriggerTarget:function(t){var e=null;return this.typecheck(t),t.target&&(e=null!=t.triggerTarget?t.triggerTarget:t.target),e}},p={isTriggerHandlerEqual:function(e,n,r){e=this.toArray(e);var i=t.Arr.merge([n],t.ArrLike.sliceStart(3,arguments)),o=this;return t.Arr.every(e,(function(e){var n=t.Arr.merge([e],i);return o.triggerHandler.apply(o,n)===r}))},allHandler:function(t,e){return this.typecheck(t),this.getOrSetData(t,"_handler_",!0===e?{}:void 0)},getHandler:function(e,n){t.Str.typecheck(n);var r=this.allHandler(e);return null!=r?t.Pojo.get(n,r):void 0},setHandler:function(e,n,r){t.Str.typecheck(n,!0),t.Func.typecheck(r),e=this.toArray(e);var i=this;t.Arr.each(e,(function(e){var o=i.allHandler(e,!0);t.Pojo.setRef(n,r,o)}))},setsHandler:function(e,n,r){t.Str.typecheck(n,!0),t.Pojo.typecheck(r);var i=this;t.Pojo.each(r,(function(t,r){var o=n+r;i.setHandler(e,o,t)}))},removeHandler:function(e,n){t.Str.typecheck(n,!0),e=this.toArray(e);var r=this;t.Arr.each(e,(function(e){var i=r.allHandler(e,!0);t.Pojo.unsetRef(n,i)}))},triggerHandler:function(e,n){var r=void 0;this.typecheck(e),t.Str.typecheck(n,!0);var i=this.getHandler(e,n);if(t.Func.is(i)){var o=t.ArrLike.sliceStart(2,arguments);r=i.apply(e,o)}return r},triggersHandler:function(e,n){e=this.toArray(e);var r=this,i=t.ArrLike.sliceStart(2,arguments);return t.Arr.accumulate([],e,(function(e){return r.triggerHandler.apply(r,t.Arr.merge([e,n],i))}))}},d=new function(){this.addListener=function(n,r,i,o,s,u){var c=null;t.Str.typecheck(r,!0),n=this.toArray(n);var a=this;if(t.Arr.isNotEmpty(n)){u=Object.assign({capture:!1,once:!1},u);var l=!0===E.support.once?u:u.capture,h=e.call(this,r,i,s,l,u);t.Arr.each(n,(function(e){e.addEventListener(r,h,l),(t.Str.isNotEmpty(o)||!0===o)&&a.registerListener(e,o,r,h,l)})),c=[r,h,l]}return c},this.registerListener=function(e,n,r,i,o){t.Str.typecheck(r,!0),n=!0===n?r:n,t.Str.typecheck(n,!0);var s=this.getOrSetData(e,"rel",{}),u=[r,i,o];t.Pojo.setRef(n,u,s)},this.addListenerOnce=function(t,e,n,r,i,o){return this.addListener(t,e,n,r,i,Object.assign({},o,{once:!0}))},this.addDelegatedListener=function(t,e,n,r,i,o){return this.addListener(t,e,r,i,n,o)},this.addPassiveListener=function(t,e,n,r,i,o){return this.addListener(t,e,n,r,i,Object.assign({},o,{passive:!0}))},this.removeListener=function(e,n){e=this.toArray(e);var r=this;t.Arr.each(e,(function(e){if(t.Str.isNotEmpty(n)){var i=n,o=r.getData(e,"rel");t.Pojo.is(o)&&(n=t.Pojo.get(i,o),t.Pojo.unsetRef(i,o))}t.Arr.is(n)&&e.removeEventListener.apply(e,n)}))},this.trigger=function(e,n,r){if(t.Str.typecheck(n,!0),e=this.toArray(e),t.Arr.isNotEmpty(e)){var i=E.createFromType(n,r);t.Arr.each(e,(function(t){t.dispatchEvent(i)}))}},this.triggerBubble=function(e,n){var r=t.ArrLike.sliceStart(2,arguments),i={bubbles:!0,cancelable:!0,detail:r};return this.trigger(e,n,i)},this.triggerNoBubble=function(e,n){var r=t.ArrLike.sliceStart(2,arguments),i={bubbles:!1,cancelable:!0,detail:r};return this.trigger(e,n,i)},this.triggerSetup=function(e){var n=t.ArrLike.sliceStart(1,arguments),r=t.Arr.merge([e,"component:setup"],n);this.triggerNoBubble.apply(this,r),r=t.Arr.merge([e,"component:ready"],n),this.triggerNoBubble.apply(this,r)},this.triggerTeardown=function(e){var n=t.Arr.merge([e,"component:teardown"],t.ArrLike.sliceStart(1,arguments));return this.triggerNoBubble.apply(this,n)};var e=function(e,r,i,o,s){var u=this;return function c(a){var l=null==i,h=this;if(!0===s.once&&!1===E.support.once&&u.removeListener(a.target,[e,c,o]),t.Str.isNotEmpty(i)&&null!=a.target&&(l=n.call(this,a,i),h=a.triggerTarget),!0===l){var f=[a],p=a.detail;f=t.Arr.merge(f,p),r.apply(h,f)}}},n=function(e,n){var r=!1,i=e.target,o=P.scopedQueryAll(this,n),s=i;return r=!!t.Arr.in(i,o)||t.Arr.some(o,(function(t){if(t.contains(i))return s=P.closest(i,n),!0})),e.delegateTarget=this,e.triggerTarget=s,r}},y={is:function(t){return T.is(t)||H.is(t)||this.isText(t)||this.isDoctype(t)},isText:function(t){return null!=t&&t.nodeType===Node.TEXT_NODE},isDoctype:function(t){return null!=t&&t.nodeType===Node.DOCUMENT_TYPE_NODE},isTemplate:function(t){return t instanceof HTMLTemplateElement},realNode:function(t){var e=t;return this.isTemplate(t)&&(e=t.content),e},getText:function(t){return this.typecheck(t),null!=t.textContent?t.textContent:void 0},setText:function(e,n){this.typecheck(e),t.Str.typecheck(n,!1),null!=e.textContent&&(n=null==n?"":n,e.textContent=n)},clone:function(t){return this.typecheck(t),t.cloneNode(!0)},clones:function(e){var n=this;this.toArray(e);return t.Arr.accumulate([],e,(function(t){return n.clone(t)}))},remove:function(e){var n=this.toArray(e);t.Arr.each(n,(function(t){t.remove()}))}},g={isEmpty:function(e){return!!this.is(e)&&t.Str.isEmpty(this.getHtml(e))},isNotEmpty:function(e){return!!this.is(e)&&t.Str.isNotEmpty(this.getHtml(e))},getHtml:function(t){var e=P.children(t,null,!0);return T.getOuterHtml(e)},setHtml:function(e,n,r){this.typecheck(e),e=this.realNode(e);var o=P.children(e,null,!0);t.Pojo.is(n)&&(n=t.Json.encode(n)),n=i.htmlNodes(n,r),P.remove(o),t.Arr.each(n,(function(t){e.appendChild(t)}))},replaceHtml:function(e,n){var r=!1;t.Str.typecheck(n);var i=this.getHtml(e),o=document.createElement("div");return this.setHtml(o,n),i!==this.getHtml(o)&&(r=!0,this.setHtml(e,n)),r},getOuterHtml:function(e){return e=P.toArray(e),t.Arr.accumulate("",e,(function(t){var e="";return null!=t.outerHTML?e=t.outerHTML:null!=t.textContent&&(e=t.textContent),e}))}},m={blur:function(t){this.typecheck(t),t.blur()}},v={scopedQuery:function(t,e,n){var r=null;return t=this.realNode(t),P.typecheck(t),null!=t&&(e=H.is(t)?e:":scope "+e,r=t.querySelector(e)),!0===n&&T.typecheck(r),r},scopedQueryAll:function(e,n,r){var i=null;return e=this.realNode(e),P.typecheck(e),null!=e&&(n=H.is(e)?n:":scope "+n,(i=e.querySelectorAll(n))instanceof NodeList&&(i=t.ArrLike.toArray(i))),!0===r&&T.typechecks(i,!0),i},mergedQsa:function(e,n,r){var i=null,o=this;return null!=(e=this.toArray(e))&&(i=[],t.Arr.each(e,(function(e){t.Arr.mergeRef(i,o.scopedQueryAll(e,n))}))),!0===r&&T.typechecks(i,!0),i},closest:function(e,n){return e=this.realNode(e),this.typecheck(e),t.Str.typecheck(n),e.closest(n)},closestParent:function(t,e){var n=this.parent(t);return null!=n?this.closest(n,e):null},match:function(e,n){return e=this.realNode(e),P.typecheck(e),t.Str.typecheck(n),!H.is(e)&&e.matches(n)},some:function(e,n){t.Str.typecheck(n),e=this.toArray(e);var r=this;return t.Arr.some(e,(function(t){return r.match(t,n)}))},every:function(e,n){t.Str.typecheck(n),e=this.toArray(e);var r=this;return t.Arr.every(e,(function(t){return r.match(t,n)}))},filter:function(e,n){t.Str.typecheck(n),e=this.toArray(e);var r=this;return t.Arr.filter(e,(function(t){return r.match(t,n)}))},find:function(e,n){t.Str.typecheck(n),e=this.toArray(e);var r=this;return t.Arr.find(e,(function(t){return r.match(t,n)}))},parent:function(t,e){var n=null;t=this.realNode(t),P.typecheck(t);var r=t.parentNode;return P.is(r)&&(null==e||P.match(r,e))&&(n=r),n},parents:function(t,e,n){var r=[];for(t=this.realNode(t),P.typecheck(t);(t=P.parent(t))&&(null==n||!P.match(t,n));)(null==e||P.match(t,e))&&r.push(t);return r},prev:function(t,e){var n=null;t=this.realNode(t),this.typecheck(t);var r=t.previousElementSibling;return this.is(r)&&(null==e||this.match(r,e))&&(n=r),n},prevs:function(t,e,n){var r=[];for(t=this.realNode(t),this.typecheck(t);(t=this.prev(t))&&(null==n||!this.match(t,n));)(null==e||this.match(t,e))&&r.push(t);return r},next:function(t,e){var n=null;t=this.realNode(t),this.typecheck(t);var r=t.nextElementSibling;return this.is(r,!0)&&(null==e||this.match(r,e))&&(n=r),n},nexts:function(t,e,n){var r=[];for(t=this.realNode(t),this.typecheck(t);(t=this.next(t))&&(null==n||!this.match(t,n));)(null==e||this.match(t,e))&&r.push(t);return r},children:function(e,n,r){e=this.realNode(e),P.typecheck(e);var i,o=null!=e.children;return i=!0===r?t.ArrLike.toArray(e.childNodes):!0===o?t.ArrLike.toArray(e.children):t.ArrLike.accumulate([],e.childNodes,(function(t){return T.is(t)?t:null})),null==n?i:P.filter(i,n)},realNode:function(t){return t}},k={is:function(t){return P.is(t)||N.is(t)},are:function(e){var n=this;return e=t.ArrLike.toArray(e),!!t.Arr.is(e)&&t.Arr.every(e,(function(t){return n.is(t)}))},typecheck:function(t,e){var n=!1;if(this.is(t)||!1===e&&null==t||(n=!0),!0===n)throw new Error(t);return t},typechecks:function(e,n){var r=!1,i=this.are(e);if((!i||!0===i&&!0===n&&t.Arr.isEmpty(e))&&(r=!0),!0===r)throw new Error(e);return e},getProp:function(e,n){return this.typecheck(e),t.Obj.get(n,e)},setProp:function(e,n,r){t.Str.typecheck(n),e=this.toArray(e),t.Arr.each(e,(function(e){t.Obj.setRef(n,r,e)}))},propStr:function(e,n,r){e=this.toArray(e),t.Str.typecheck(n,!0),r=t.Str.isNotEmpty(r)?r:"-";var i=this;return t.Arr.reduce("",e,(function(t,e){return(t+=t.length?r:"")+i.getProp(e,n)}))},propObj:function(e,n,r){var i={};e=this.toArray(e);var o=this;return t.Str.typecheck(n,!0),t.Str.typecheck(r,!0),t.Arr.each(e,(function(t){var e=o.getProp(t,n),s=o.getProp(t,r);i[e]=s})),i},toArray:function(e){return this.is(e)?e=[e]:t.ArrLike.is(e)?e=t.ArrLike.toArray(e):null==e&&(e=[]),this.typechecks.call(this,e)}},A={is:function(t){return this.isCurrent(t)||this.isProxy(t)},isCurrent:function(t){return t instanceof Window},isProxy:function(e){return t.Obj.is(e)&&!(e instanceof Window)&&e.window===e},hasHistoryApi:function(){var t=!1;return window.history&&window.history.pushState&&window.history.replaceState&&(navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)||(t=!0)),t},isScrollable:function(e){var n=this.getScroll();return t.Arr.in(e,["x","horizontal"])?n.scrollableX:t.Arr.in(e,["y","vertical"])?n.scrollableY:!0===n.scrollableX?n.scrollableX:n.scrollableY},getScroll:function(){var e=t.Pojo.replace({top:t.Num.round(window.pageYOffset),left:t.Num.round(window.pageXOffset),width:t.Num.round(document.documentElement.scrollWidth),height:t.Num.round(document.documentElement.scrollHeight),innerWidth:t.Num.round(window.innerWidth),innerHeight:t.Num.round(window.innerHeight),scrollableX:!1,scrollableY:!1});return e.innerWidth>0&&e.innerHeight>0&&(e.width>e.innerWidth+1&&(e.scrollableX=!0),e.height>e.innerHeight+1&&(e.scrollableY=!0)),e},setScroll:function(t,e){e=e>0?e:0,t=t>0?t:0,window.scrollTo(e,t)},focus:function(t){this.typecheck(t),t.focus()},getDimension:function(){return{width:t.Num.round(window.innerWidth),height:t.Num.round(window.innerHeight)}}},S=t.Factory,b=t.Shortcut,w=t.Tool,E=S(w.Type,f),N=S(k,a,p,d,m,A),H=S(k,a,p,d,v,y,g,l),T=S(k,a,p,d,v,y,m,g,h,w.ArrLoop),P=S(k,a,p,d,v,y),x=S(k,a,p,d);b.getAttr=T.getAttr.bind(T),b.setAttr=T.setAttr.bind(T),b.toggleAttr=T.toggleAttr.bind(T),b.setCss=T.setCss.bind(T),b.toggleClass=T.toggleClass.bind(T),b.getHtml=T.getHtml.bind(T),b.setHtml=T.setHtml.bind(T),b.qs=P.scopedQuery.bind(P),b.qsa=P.scopedQueryAll.bind(P),b.getProp=x.getProp.bind(x),b.setProp=x.setProp.bind(x),b.getData=x.getData.bind(x),b.setData=x.setData.bind(x),b.setHdlr=x.setHandler.bind(x),b.setHdlrs=x.setsHandler.bind(x),b.allHdlr=x.allHandler.bind(x),b.trigHdlr=x.triggerHandler.bind(x),b.trigHdlrs=x.triggersHandler.bind(x),b.ael=x.addListener.bind(x),b.aelDelegate=x.addDelegatedListener.bind(x),b.aelPassive=x.addPassiveListener.bind(x),b.aelOnce=x.addListenerOnce.bind(x),b.rel=x.removeListener.bind(x),b.trigEvt=x.triggerNoBubble.bind(x),b.trigBubble=x.triggerBubble.bind(x),b.trigSetup=x.triggerSetup.bind(x),b.trigTeardown=x.triggerTeardown.bind(x)}(),window.Quid=r}(); |
{ | ||
"/dist/browser-es.js": "/dist/browser-es.js", | ||
"/dist/browser-test-es.js": "/dist/browser-test-es.js", | ||
"/dist/browser.js": "/dist/browser.js", | ||
"/dist/browser-test.js": "/dist/browser-test.js" | ||
} |
{ | ||
"name": "quidphp-browser", | ||
"version": "5.31.2", | ||
"version": "5.31.3", | ||
"description": "JavaScript module with helpers for the browser", | ||
@@ -34,4 +34,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"laravel-mix": "^6.0.43" | ||
"laravel-mix": "^6.0.43", | ||
"laravel-mix-polyfill": "^3.0.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264614
2
27
3178