w-comor-hapi
Advanced tools
Comparing version 1.0.3 to 1.0.4
/*! | ||
* ht-client v1.0.3 | ||
* ht-client v1.0.4 | ||
* (c) 2018-2019 yuda-lyu(semisphere) | ||
* Released under the MIT License. | ||
*/(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("axios")):"function"==typeof define&&define.amd?define(["axios"],t):(e=e||self,e["ht-client"]=t(e.axios))})(this,function(e){'use strict';var re=String.prototype;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":we&&we in Object(e)?ye(e):_e(e)}function n(e){return null!=e&&"object"==t(e)}function i(e){return"symbol"==t(e)||ke(e)&&Ae(e)=="[object Symbol]"}function a(e,o){if(ie(e))return!1;var r=t(e);return!!("number"==r||"symbol"==r||"boolean"==r||null==e||Se(e))||Te.test(e)||!ve.test(e)||null!=o&&e in Object(o)}function s(e){var o=t(e);return null!=e&&("object"==o||"function"==o)}function l(e){return!!Fe&&Fe in e}function c(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function d(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function p(e){var o=t(e);return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==e:null===e}function g(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function u(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function o(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(u.Cache||st),o}function f(e){if("string"==typeof e)return e;if(ie(e))return pt(e,f)+"";if(Se(e))return ft?ft.call(e):"";var t=e+"";return"0"==t&&1/e==-gt?"-0":t}function b(){var e,t,o=new Promise(function(){e=arguments[0],t=arguments[1]});return o.resolve=e,o.reject=t,o}function h(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function m(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t}function y(e){var t=Object.prototype.toString.call(e);return"[object String]"===t}function j(e){return!!(y(e)&&""!==e)}function x(e,t){return!!m(e)&&!!j(t)&&t in e}function _(e,o){var r=t(e);return o=null==o?9007199254740991:o,!!o&&("number"==r||"symbol"!=r&&zt.test(e))&&-1<e&&0==e%1&&e<o}function w(e){var t=this.__data__=new rt(e);this.size=t.size}function A(e,t,o){var r=e[t];no.call(e,t)&&Je(r,o)&&(o!==void 0||t in e)||oo(e,t,o)}function k(e,t,o,r,n,i){var a,s=1&t,l=2&t;if(o&&(a=n?o(e,r,n,i):o(e)),void 0!==a)return a;if(!Ie(e))return e;var c=ie(e);if(!c){var d=er(e),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Ot(e))return bo(e,s);if("[object Object]"!=d&&"[object Arguments]"!=d&&(!p||n)){if(!kr[d])return n?e:{};a=fr(e,d,s)}else if(a=l||p?{}:mr(e),!s)return l?Co(e,fo(a,e)):ko(e,so(a,e))}else if(a=rr(e),!s)return ho(e,a);i||(i=new Jt);var g=i.get(e);if(g)return g;i.set(e,a),Ar(e)?e.forEach(function(r){a.add(k(r,t,o,r,e,i))}):xr(e)&&e.forEach(function(r,n){a.set(n,k(r,t,o,n,e,i))});var u=4&t?l?Eo:Po:l?keysIn:Qt,f=c?void 0:u(e);return xt(f||e,function(r,n){f&&(n=r,r=e[n]),io(a,n,k(r,t,o,n,e,i))}),a}function S(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}function v(e){return e===void 0||null===e}function T(e){var t={};for(var o in e)t[o]=e[o];return t}function I(e){e=T(e||{}),e.whiteList=e.whiteList||Ir.whiteList,e.onAttr=e.onAttr||Ir.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Ir.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Ir.safeAttrValue,this.options=e}function O(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]}}function z(e){return e.replace(Ur,"<").replace(Dr,">")}function C(e){return e.replace(Wr,""")}function F(e){return e.replace(Mr,"\"")}function P(e){return e.replace(Nr,function(e,t){var o=String.fromCharCode;return"x"===t[0]||"X"===t[0]?o(parseInt(t.substr(1),16)):o(parseInt(t,10))})}function E(e){return e.replace(Rr,":").replace(Hr," ")}function L(e){for(var t="",o=0,r=e.length;o<r;o++)t+=32>e.charCodeAt(o)?" ":e.charAt(o);return Er.trim(t)}function V(e){return e=F(e),e=P(e),e=E(e),e=L(e),e}function B(e){return e=C(e),e=z(e),e}function U(e){var t=Er.spaceIndex(e);if(-1===t)var o=e.slice(1,-1);else var o=e.slice(1,t+1);return o=Er.trim(o).toLowerCase(),"/"===o.slice(0,1)&&(o=o.slice(1)),"/"===o.slice(-1)&&(o=o.slice(0,-1)),o}function D(e){return"</"===e.slice(0,2)}function W(e,t){for(;t<e.length;t++){var o=e[t];if(" "!==o)return"="===o?t:-1}}function M(e,t){for(;0<t;t--){var o=e[t];if(" "!==o)return"="===o?t:-1}}function N(e){return!(("\""!==e[0]||"\""!==e[e.length-1])&&("'"!==e[0]||"'"!==e[e.length-1]))}function R(e){return N(e)?e.substr(1,e.length-2):e}function H(e){return e===void 0||null===e}function X(e){var t=Er.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};e=Er.trim(e.slice(t+1,-1));var o="/"===e[e.length-1];return o&&(e=Er.trim(e.slice(0,-1))),{html:e,closing:o}}function q(e){var t={};for(var o in e)t[o]=e[o];return t}function $(e){e=q(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error("Notes: cannot use these two options \"stripIgnoreTag\" and \"onIgnoreTag\" at the same time"),e.onIgnoreTag=Yr.onIgnoreTagStripAll),e.whiteList=e.whiteList||Yr.whiteList,e.onTag=e.onTag||Yr.onTag,e.onTagAttr=e.onTagAttr||Yr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Yr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Yr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Yr.safeAttrValue,e.escapeHtml=e.escapeHtml||Yr.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Jr(e.css))}function Q(e){var t=Object.prototype.toString.call(e);return"[object Array]"===t}function G(e){function r(e){return rn(e,{onIgnoreTagAttr:function(e,t,o){if("style"===t)return t+"=\""+rn.escapeAttrValue(o)+"\""}})}function n(e){return Q(e)||m(e)?(Kt(e,function(t,o){e[o]=n(t)}),e):y(e)?r(e):e}var i=n(Sr(e));return i}function Y(e){var t=Object.prototype.toString.call(e);return"[object Number]"===t}function Z(e){var t=!1;return j(e)?t=!isNaN(+e):Y(e)&&(t=!0),t}function K(e){if(!Z(e))return 0;var t=bn(e);return t}function J(e){return!!Z(e)&&(e=K(e),mn(e))}function ee(e){if(!Z(e))return 0;e=K(e);var t=_n(e);return"0"===t+""?0:t}function te(e){if(!J(e))return!1;var t=0<ee(e);return t}function oe(){var e,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:32,o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],n=[],a=o.length;if(te(t))for(e=0;e<t;e++)n[e]=o[0|Math.random()*a];else if("rfc4122"===t){n[8]=n[13]=n[18]=n[23]="-",n[14]="4";var s;for(e=0;36>e;e++)n[e]||(s=0|16*Math.random(),n[e]=o[19===e?8|3&s:s])}else return"";var l=n.join("");return l}e=e&&e.hasOwnProperty("default")?e["default"]:e;var ne=Array.isArray,ie=ne,ae="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,se="object"==t(ae)&&ae&&ae.Object===Object&&ae,le=se,ce="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,de=le||ce||Function("return this")(),pe=de,ge=pe.Symbol,ue=ge,fe=Object.prototype,be=fe.hasOwnProperty,he=fe.toString,me=ue?ue.toStringTag:void 0,ye=function(e){var t=be.call(e,me),o=e[me];try{e[me]=void 0;var r=!0}catch(t){}var n=he.call(e);return r&&(t?e[me]=o:delete e[me]),n},je=Object.prototype,xe=je.toString,_e=function(e){return xe.call(e)},we=ue?ue.toStringTag:void 0,Ae=r,ke=n,Se=i,ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Ie=s,Oe=function(e){if(!Ie(e))return!1;var t=Ae(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},ze=pe["__core-js_shared__"],Ce=ze,Fe=function(){var e=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pe=Function.prototype,Ee=Pe.toString,Le=function(e){if(null!=e){try{return Ee.call(e)}catch(t){}try{return e+""}catch(t){}}return""},Ve=/[\\^$.*+?()[\]{}|]/g,Be=/^\[object .+?Constructor\]$/,Ue=Function.prototype,De=Object.prototype,We=Ue.toString,Me=De.hasOwnProperty,Ne=RegExp("^"+We.call(Me).replace(Ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=function(e){if(!Ie(e)||l(e))return!1;var t=Oe(e)?Ne:Be;return t.test(Le(e))},He=function(e,t){return null==e?void 0:e[t]},Xe=function(e,t){var o=He(e,t);return Re(o)?o:void 0},qe=Xe(Object,"create"),$e=qe,Qe=Object.prototype,Ge=Qe.hasOwnProperty,Ye=Object.prototype,Ze=Ye.hasOwnProperty;c.prototype.clear=function(){this.__data__=$e?$e(null):{},this.size=0},c.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},c.prototype.get=function(e){var t=this.__data__;if($e){var o=t[e];return o==="__lodash_hash_undefined__"?void 0:o}return Ge.call(t,e)?t[e]:void 0},c.prototype.has=function(e){var t=this.__data__;return $e?t[e]!==void 0:Ze.call(t,e)},c.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=$e&&void 0===t?"__lodash_hash_undefined__":t,this};var Ke=c,Je=function(e,t){return e===t||e!==e&&t!==t},et=function(e,t){for(var o=e.length;o--;)if(Je(e[o][0],t))return o;return-1},tt=Array.prototype,ot=tt.splice;d.prototype.clear=function(){this.__data__=[],this.size=0},d.prototype["delete"]=function(e){var t=this.__data__,o=et(t,e);if(0>o)return!1;var r=t.length-1;return o==r?t.pop():ot.call(t,o,1),--this.size,!0},d.prototype.get=function(e){var t=this.__data__,o=et(t,e);return 0>o?void 0:t[o][1]},d.prototype.has=function(e){return-1<et(this.__data__,e)},d.prototype.set=function(e,t){var o=this.__data__,r=et(o,e);return 0>r?(++this.size,o.push([e,t])):o[r][1]=t,this};var rt=d,nt=Xe(pe,"Map"),it=nt,at=function(e,t){var o=e.__data__;return p(t)?o["string"==typeof t?"string":"hash"]:o.map};g.prototype.clear=function(){this.size=0,this.__data__={hash:new Ke,map:new(it||rt),string:new Ke}},g.prototype["delete"]=function(e){var t=at(this,e)["delete"](e);return this.size-=t?1:0,t},g.prototype.get=function(e){return at(this,e).get(e)},g.prototype.has=function(e){return at(this,e).has(e)},g.prototype.set=function(e,t){var o=at(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this};var st=g;u.Cache=st;var lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ct=/\\(\\)?/g,dt=function(e){var t=u(e,function(e){return 500===o.size&&o.clear(),e}),o=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(lt,function(e,o,r,n){t.push(r?n.replace(ct,"$1"):o||e)}),t}),pt=function(e,t){for(var o=-1,r=null==e?0:e.length,n=Array(r);++o<r;)n[o]=t(e[o],o,e);return n},gt=1/0,ut=ue?ue.prototype:void 0,ft=ut?ut.toString:void 0,bt=function(e){return null==e?"":f(e)},ht=function(e,t){return ie(e)?e:a(e,t)?[e]:dt(bt(e))},mt=function(e){if("string"==typeof e||Se(e))return e;var t=e+"";return"0"==t&&1/e==-(1/0)?"-0":t},yt=function(e,t){t=ht(t,e);for(var o=0,r=t.length;null!=e&&o<r;)e=e[mt(t[o++])];return o&&o==r?e:void 0},jt=function(e,t,o){var r=null==e?void 0:yt(e,t);return r===void 0?o:r},xt=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!(!1===t(e[o],o,e)););return e},_t=function(e){return function(t,o,r){for(var n=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++n];if(!1===o(i[l],l,i))break}return t}}(),wt=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r},At=function(e){return ke(e)&&Ae(e)=="[object Arguments]"},kt=Object.prototype,St=kt.hasOwnProperty,vt=kt.propertyIsEnumerable,Tt=At(function(){return arguments}())?At:function(e){return ke(e)&&St.call(e,"callee")&&!vt.call(e,"callee")},It=function(){return!1},Ot=o(function(e,t){var o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===o,i=n?pe.Buffer:void 0,a=i?i.isBuffer:void 0;e.exports=a||It}),zt=/^(?:0|[1-9]\d*)$/,Ct=function(e){return"number"==typeof e&&-1<e&&0==e%1&&e<=9007199254740991},Ft={};Ft["[object Float32Array]"]=Ft["[object Float64Array]"]=Ft["[object Int8Array]"]=Ft["[object Int16Array]"]=Ft["[object Int32Array]"]=Ft["[object Uint8Array]"]=Ft["[object Uint8ClampedArray]"]=Ft["[object Uint16Array]"]=Ft["[object Uint32Array]"]=!0,Ft["[object Arguments]"]=Ft["[object Array]"]=Ft["[object ArrayBuffer]"]=Ft["[object Boolean]"]=Ft["[object DataView]"]=Ft["[object Date]"]=Ft["[object Error]"]=Ft["[object Function]"]=Ft["[object Map]"]=Ft["[object Number]"]=Ft["[object Object]"]=Ft["[object RegExp]"]=Ft["[object Set]"]=Ft["[object String]"]=Ft["[object WeakMap]"]=!1;var Pt=function(e){return function(t){return e(t)}},Et=o(function(e,t){var o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===o,i=n&&le.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=a}),Lt=Et&&Et.isTypedArray,Vt=Lt?Pt(Lt):function(e){return ke(e)&&Ct(e.length)&&!!Ft[Ae(e)]},Bt=Object.prototype,Ut=Bt.hasOwnProperty,Dt=function(e,t){var o=ie(e),r=!o&&Tt(e),n=!o&&!r&&Ot(e),i=!o&&!r&&!n&&Vt(e),a=o||r||n||i,s=a?wt(e.length,String):[],l=s.length;for(var c in e)(t||Ut.call(e,c))&&!(a&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_(c,l)))&&s.push(c);return s},Wt=Object.prototype,Mt=function(e){var t=e&&e.constructor,o="function"==typeof t&&t.prototype||Wt;return e===o},Nt=function(e,t){return function(o){return e(t(o))}},Rt=Nt(Object.keys,Object),Ht=Object.prototype,Xt=Ht.hasOwnProperty,qt=function(e){if(!Mt(e))return Rt(e);var t=[];for(var o in Object(e))Xt.call(e,o)&&"constructor"!=o&&t.push(o);return t},$t=function(e){return null!=e&&Ct(e.length)&&!Oe(e)},Qt=function(e){return $t(e)?Dt(e):qt(e)},Gt=function(e,t){return function(o,r){if(null==o)return o;if(!$t(o))return e(o,r);for(var n=o.length,i=t?n:-1,a=Object(o);(t?i--:++i<n)&&!(!1===r(a[i],i,a)););return o}}(function(e,t){return e&&_t(e,t,Qt)}),Yt=function(e){return e},Zt=function(e){return"function"==typeof e?e:Yt},Kt=function(e,t){var o=ie(e)?xt:Gt;return o(e,Zt(t))};w.prototype.clear=function(){this.__data__=new rt,this.size=0},w.prototype["delete"]=function(e){var t=this.__data__,o=t["delete"](e);return this.size=t.size,o},w.prototype.get=function(e){return this.__data__.get(e)},w.prototype.has=function(e){return this.__data__.has(e)},w.prototype.set=function(e,t){var o=this.__data__;if(o instanceof rt){var r=o.__data__;if(!it||199>r.length)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new st(r)}return o.set(e,t),this.size=o.size,this};var Jt=w,eo=function(){try{var e=Xe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),to=eo,oo=function(e,t,o){"__proto__"==t&&to?to(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o},ro=Object.prototype,no=ro.hasOwnProperty,io=A,ao=function(e,t,o,r){var n=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(o[s],e[s],s,o,e):void 0;l===void 0&&(l=e[s]),n?oo(o,s,l):io(o,s,l)}return o},so=function(e,t){return e&&ao(t,Qt(t),e)},lo=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t},co=Object.prototype,po=co.hasOwnProperty,go=function(e){if(!Ie(e))return lo(e);var t=Mt(e),o=[];for(var r in e)("constructor"!=r||!t&&po.call(e,r))&&o.push(r);return o},uo=function(e){return $t(e)?Dt(e,!0):go(e)},fo=function(e,t){return e&&ao(t,uo(t),e)},bo=o(function(e,t){var o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===o,i=n?pe.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,r=a?a(o):new e.constructor(o);return e.copy(r),r}}),ho=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t},mo=function(e,t){for(var o=-1,r=null==e?0:e.length,n=0,i=[];++o<r;){var a=e[o];t(a,o,e)&&(i[n++]=a)}return i},yo=function(){return[]},jo=Object.prototype,xo=jo.propertyIsEnumerable,_o=Object.getOwnPropertySymbols,wo=_o?function(e){return null==e?[]:(e=Object(e),mo(_o(e),function(t){return xo.call(e,t)}))}:yo,Ao=wo,ko=function(e,t){return ao(e,Ao(e),t)},So=function(e,t){for(var o=-1,r=t.length,n=e.length;++o<r;)e[n+o]=t[o];return e},vo=Nt(Object.getPrototypeOf,Object),To=vo,Io=Object.getOwnPropertySymbols,Oo=Io?function(e){for(var t=[];e;)So(t,Ao(e)),e=To(e);return t}:yo,zo=Oo,Co=function(e,t){return ao(e,zo(e),t)},Fo=function(e,t,o){var r=t(e);return ie(e)?r:So(r,o(e))},Po=function(e){return Fo(e,Qt,Ao)},Eo=function(e){return Fo(e,uo,zo)},Lo=Xe(pe,"DataView"),Vo=Lo,Bo=Xe(pe,"Promise"),Uo=Bo,Do=Xe(pe,"Set"),Wo=Do,Mo=Xe(pe,"WeakMap"),No=Mo,Ro="[object Map]",Ho="[object Promise]",Xo="[object Set]",qo="[object WeakMap]",$o="[object DataView]",Qo=Le(Vo),Go=Le(it),Yo=Le(Uo),Zo=Le(Wo),Ko=Le(No),Jo=Ae;(Vo&&Jo(new Vo(new ArrayBuffer(1)))!=$o||it&&Jo(new it)!=Ro||Uo&&Jo(Uo.resolve())!=Ho||Wo&&Jo(new Wo)!=Xo||No&&Jo(new No)!=qo)&&(Jo=function(e){var t=Ae(e),o=t=="[object Object]"?e.constructor:void 0,r=o?Le(o):"";if(r)switch(r){case Qo:return $o;case Go:return Ro;case Yo:return Ho;case Zo:return Xo;case Ko:return qo;}return t});var er=Jo,tr=Object.prototype,or=tr.hasOwnProperty,rr=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&or.call(e,"index")&&(o.index=e.index,o.input=e.input),o},nr=pe.Uint8Array,ir=nr,ar=function(e){var t=new e.constructor(e.byteLength);return new ir(t).set(new ir(e)),t},sr=function(e,t){var o=t?ar(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)},lr=/\w*$/,cr=function(e){var t=new e.constructor(e.source,lr.exec(e));return t.lastIndex=e.lastIndex,t},dr=ue?ue.prototype:void 0,pr=dr?dr.valueOf:void 0,gr=function(e){return pr?Object(pr.call(e)):{}},ur=function(e,t){var o=t?ar(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)},fr=function(e,t,o){var r=e.constructor;return"[object ArrayBuffer]"===t?ar(e):"[object Boolean]"===t||"[object Date]"===t?new r(+e):"[object DataView]"===t?sr(e,o):"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t?ur(e,o):"[object Map]"===t?new r:"[object Number]"===t||"[object String]"===t?new r(e):"[object RegExp]"===t?cr(e):"[object Set]"===t?new r:"[object Symbol]"===t?gr(e):void 0},br=Object.create,hr=function(){function e(){}return function(t){if(!Ie(t))return{};if(br)return br(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),mr=function(e){return"function"!=typeof e.constructor||Mt(e)?{}:hr(To(e))},yr=Et&&Et.isMap,jr=yr?Pt(yr):function(e){return ke(e)&&er(e)=="[object Map]"},xr=jr,_r=Et&&Et.isSet,wr=_r?Pt(_r):function(e){return ke(e)&&er(e)=="[object Set]"},Ar=wr,kr={};kr["[object Arguments]"]=kr["[object Array]"]=kr["[object ArrayBuffer]"]=kr["[object DataView]"]=kr["[object Boolean]"]=kr["[object Date]"]=kr["[object Float32Array]"]=kr["[object Float64Array]"]=kr["[object Int8Array]"]=kr["[object Int16Array]"]=kr["[object Int32Array]"]=kr["[object Map]"]=kr["[object Number]"]=kr["[object Object]"]=kr["[object RegExp]"]=kr["[object Set]"]=kr["[object String]"]=kr["[object Symbol]"]=kr["[object Uint8Array]"]=kr["[object Uint8ClampedArray]"]=kr["[object Uint16Array]"]=kr["[object Uint32Array]"]=!0,kr["[object Error]"]=kr["[object Function]"]=kr["[object WeakMap]"]=!1;var Sr=function(e){return k(e,5)},vr=/javascript\s*\:/img,Tr=S(),Ir={whiteList:Tr,getDefaultWhiteList:S,onAttr:function(){},onIgnoreAttr:function(){},safeAttrValue:function(e,t){return vr.test(t)?"":t}},Or={indexOf:function(e,t){var o,r;if(Array.prototype.indexOf)return e.indexOf(t);for(o=0,r=e.length;o<r;o++)if(e[o]===t)return o;return-1},forEach:function(e,t,o){var r,n;if(Array.prototype.forEach)return e.forEach(t,o);for(r=0,n=e.length;r<n;r++)t.call(o,e[r],r,e)},trim:function(e){return re.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return re.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},zr=function(e,t){function o(){if(!n){var o=Or.trim(e.slice(a,s)),r=o.indexOf(":");if(-1!==r){var i=Or.trim(o.slice(0,r)),c=Or.trim(o.slice(r+1));if(i){var d=t(a,l.length,i,c,o);d&&(l+=d+"; ")}}}a=s+1}e=Or.trimRight(e),";"!==e[e.length-1]&&(e+=";");for(var r=e.length,n=!1,a=0,s=0,l="";s<r;s++){var d=e[s];if("/"===d&&"*"===e[s+1]){var c=e.indexOf("*/",s+2);if(-1===c)break;s=c+1,a=s+1,n=!1}else if("("===d)n=!0;else if(")"===d)n=!1;else if(!(";"===d))"\n"===d&&o();else if(n);else o()}return Or.trim(l)};I.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,o=t.options,r=o.whiteList,n=o.onAttr,i=o.onIgnoreAttr,a=o.safeAttrValue,s=zr(e,function(e,t,o,s,l){var c=r[o],d=!1;if(!0===c?d=c:"function"==typeof c?d=c(s):c instanceof RegExp&&(d=c.test(s)),!0!==d&&(d=!1),s=a(o,s),!!s){var p={position:t,sourcePosition:e,source:l,isWhite:d};if(d){var g=n(o,s,p);return v(g)?o+":"+s:g}var g=i(o,s,p);if(!v(g))return g}});return s};var Cr=I,Fr=o(function(e,t){function o(e,t){var o=new Cr(t);return o.process(e)}for(var r in t=e.exports=o,t.FilterCSS=Cr,Ir)t[r]=Ir[r];"undefined"!=typeof window&&(window.filterCSS=e.exports)}),Pr=Fr.FilterCSS,Er={indexOf:function(e,t){var o,r;if(Array.prototype.indexOf)return e.indexOf(t);for(o=0,r=e.length;o<r;o++)if(e[o]===t)return o;return-1},forEach:function(e,t,o){var r,n;if(Array.prototype.forEach)return e.forEach(t,o);for(r=0,n=e.length;r<n;r++)t.call(o,e[r],r,e)},trim:function(e){return re.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,o=t.exec(e);return o?o.index:-1}},Lr=Fr.FilterCSS,Vr=Fr.getDefaultWhiteList,Br=new Lr,Ur=/</g,Dr=/>/g,Wr=/"/g,Mr=/"/g,Nr=/&#([a-zA-Z0-9]*);?/gim,Rr=/:?/gim,Hr=/&newline;?/gim,Xr=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,qr=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,$r=/u\s*r\s*l\s*\(.*/gi,Qr=/<!--[\s\S]*?-->/g,Gr=O(),Yr={whiteList:Gr,getDefaultWhiteList:O,onTag:function(){},onIgnoreTag:function(){},onTagAttr:function(){},onIgnoreTagAttr:function(){},safeAttrValue:function(e,t,o,r){if(o=V(o),"href"===t||"src"===t){if(o=Er.trim(o),"#"===o)return"#";if("http://"!==o.substr(0,7)&&"https://"!==o.substr(0,8)&&"mailto:"!==o.substr(0,7)&&"tel:"!==o.substr(0,4)&&"#"!==o[0]&&"/"!==o[0])return""}else if("background"===t){if(Xr.lastIndex=0,Xr.test(o))return"";}else if("style"===t){if(qr.lastIndex=0,qr.test(o))return"";if($r.lastIndex=0,$r.test(o)&&(Xr.lastIndex=0,Xr.test(o)))return"";!1!==r&&(r=r||Br,o=r.process(o))}return o=B(o),o},escapeHtml:z,escapeQuote:C,unescapeQuote:F,escapeHtmlEntities:P,escapeDangerHtml5Entities:E,clearNonPrintableCharacter:L,friendlyAttrValue:V,escapeAttrValue:B,onIgnoreTagStripAll:function(){return""},StripTagBody:function(e,t){function o(t){return!!r||-1!==Er.indexOf(e,t)}"function"!=typeof t&&(t=function(){});var r=!Array.isArray(e),n=[],i=!1;return{onIgnoreTag:function(e,r,a){if(o(e)){if(a.isClosing){var s=a.position+10;return n.push([!1===i?a.position:i,s]),i=!1,"[/removed]"}return i||(i=a.position),"[removed]"}return t(e,r,a)},remove:function(e){var t="",o=0;return Er.forEach(n,function(r){t+=e.slice(o,r[0]),o=r[1]}),t+=e.slice(o),t}}},stripCommentTag:function(e){return e.replace(Qr,"")},stripBlankChar:function(e){var t=e.split("");return t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(31>=t)||10===t||13===t)}),t.join("")},cssFilter:Br,getDefaultCSSWhiteList:Vr},Zr=/[^a-zA-Z0-9_:\.\-]/gim,Kr={parseTag:function(e,t,o){"user strict";var r="",n=0,i=!1,a=!1,s=0,l=e.length,d="",p="";for(s=0;s<l;s++){var g=e.charAt(s);if(!1===i){if("<"===g){i=s;continue}}else if(!1===a){if("<"===g){r+=o(e.slice(n,s)),i=s,n=s;continue}if(">"===g){r+=o(e.slice(n,i)),p=e.slice(i,s+1),d=U(p),r+=t(i,r.length,d,p,D(p)),n=s+1,i=!1;continue}if(("\""===g||"'"===g)&&"="===e.charAt(s-1)){a=g;continue}}else if(g===a){a=!1;continue}}return n<e.length&&(r+=o(e.substr(n))),r},parseAttr:function(e,t){"user strict";function o(e,o){if(e=Er.trim(e),e=e.replace(Zr,"").toLowerCase(),!(1>e.length)){var r=t(e,o||"");r&&n.push(r)}}for(var r=0,n=[],a=!1,s=e.length,l=0;l<s;l++){var d,p,g=e.charAt(l);if(!1===a&&"="===g){a=e.slice(r,l),r=l+1;continue}if(!1!==a&&l===r&&("\""===g||"'"===g)&&"="===e.charAt(l-1))if(p=e.indexOf(g,l+1),-1===p)break;else{d=Er.trim(e.slice(r+1,p)),o(a,d),a=!1,l=p,r=l+1;continue}if(/\s|\n|\t/.test(g))if(e=e.replace(/\s|\n|\t/g," "),!1===a){if(p=W(e,l),-1===p){d=Er.trim(e.slice(r,l)),o(d),a=!1,r=l+1;continue}else{l=p-1;continue}}else if(p=M(e,l-1),-1===p){d=Er.trim(e.slice(r,l)),d=R(d),o(a,d),a=!1,r=l+1;continue}else continue}return r<e.length&&(!1===a?o(e.slice(r)):o(a,R(Er.trim(e.slice(r))))),Er.trim(n.join(" "))}},Jr=Fr.FilterCSS,en=Kr.parseTag,tn=Kr.parseAttr;$.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,o=t.options,r=o.whiteList,n=o.onTag,i=o.onIgnoreTag,a=o.onTagAttr,s=o.onIgnoreTagAttr,l=o.safeAttrValue,c=o.escapeHtml,d=t.cssFilter;o.stripBlankChar&&(e=Yr.stripBlankChar(e)),o.allowCommentTag||(e=Yr.stripCommentTag(e));var p=!1;if(o.stripIgnoreTagBody){var p=Yr.StripTagBody(o.stripIgnoreTagBody,i);i=p.onIgnoreTag}var g=en(e,function(e,t,o,p,g){var u={sourcePosition:e,position:t,isClosing:g,isWhite:r.hasOwnProperty(o)},f=n(o,p,u);if(!H(f))return f;if(u.isWhite){if(u.isClosing)return"</"+o+">";var b=X(p),h=r[o],m=tn(b.html,function(e,t){var r=-1!==Er.indexOf(h,e),n=a(o,e,t,r);if(!H(n))return n;if(r)return t=l(o,e,t,d),t?e+"=\""+t+"\"":e;var n=s(o,e,t,r);return H(n)?void 0:n}),p="<"+o;return m&&(p+=" "+m),b.closing&&(p+=" /"),p+=">",p}var f=i(o,p,u);return H(f)?c(p):f},c);return p&&(g=p.remove(g)),g};var on=$,rn=o(function(e,t){function o(e,t){var o=new on(t);return o.process(e)}for(var r in t=e.exports=o,t.filterXSS=o,t.FilterXSS=on,Yr)t[r]=Yr[r];for(var r in Kr)t[r]=Kr[r];"undefined"!=typeof window&&(window.filterXSS=e.exports),function(){return"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=e.exports)}),nn=rn.filterXSS,an=rn.FilterXSS,sn=0/0,ln=/^\s+|\s+$/g,cn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,pn=/^0o[0-7]+$/i,gn=parseInt,un=function(e){if("number"==typeof e)return e;if(Se(e))return sn;if(Ie(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ie(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ln,"");var o=dn.test(e);return o||pn.test(e)?gn(e.slice(2),o?2:8):cn.test(e)?sn:+e},fn=1/0,bn=function(e){if(!e)return 0===e?e:0;if(e=un(e),e===fn||e===-fn){var t=0>e?-1:1;return 1.7976931348623157e+308*t}return e===e?e:0},hn=function(e){var t=bn(e),o=t%1;return t===t?o?t-o:t:0},mn=function(e){return"number"==typeof e&&e==hn(e)},yn=pe.isFinite,jn=Math.min,xn=function(e){var t=Math[e];return function(e,o){if(e=un(e),o=null==o?0:jn(hn(o),292),o&&yn(e)){var r=(bt(e)+"e").split("e"),n=t(r[0]+"e"+(+r[1]+o));return r=(bt(n)+"e").split("e"),+(r[0]+"e"+(+r[1]-o))}return t(e)}}("round"),_n=xn;return function(t){function o(){function o(o,r){var n=b();o=G(o);var i={method:"POST",url:t.url,data:o};return"upload file"===r&&(i.headers={"Content-Type":"multipart/form-data"}),"download file"===r&&(i.responseType="blob"),e(i).then(function(e){n.resolve(e.data.output)})["catch"](function(e){var t=jt(e,"response.data");e=t?t:"can not connection",n.reject(e)}),n}function s(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n={clientId:i,token:t.token,func:e,input:r},a="";return jt(r,"mode")&&(a=r.mode),o(n,a)}t.url||(t.url="http://localhost:8080/api"),t.token||(t.token="*"),s("getFuncs").then(function(e){if("sys"===jt(e,"sys")&&x(e,"funcs")){var o=e.funcs;a={};for(var l=function(e){var t=o[e];a[t]=function(e){return s(t,e)}},c=0;c<o.length;c++)l(c);n.resolve(a)}else{h(t.error)&&t.error("no funcs"),r()}})["catch"](function(e){h(t.error)&&t.error(e),r()})}function r(){setTimeout(function(){h(t.reconn)&&t.reconn(),o()},1e3)}var n=b(),a={},i=oe();return o(),n}}); | ||
*/(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("axios")):"function"==typeof define&&define.amd?define(["axios"],t):(e=e||self,e["ht-client"]=t(e.axios))})(this,function(e){'use strict';var ne=String.prototype;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e,t,o,r,n,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(r,n)}function n(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Se&&Se in Object(e)?we(e):Ae(e)}function i(e){return null!=e&&"object"==t(e)}function a(e){return"symbol"==t(e)||Ie(e)&&Te(e)=="[object Symbol]"}function l(e,o){if(de(e))return!1;var r=t(e);return!!("number"==r||"symbol"==r||"boolean"==r||null==e||Le(e))||Ee.test(e)||!Oe.test(e)||null!=o&&e in Object(o)}function s(e){var o=t(e);return null!=e&&("object"==o||"function"==o)}function c(e){return!!Ve&&Ve in e}function d(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function p(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function g(e){var o=t(e);return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==e:null===e}function u(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function o(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(h.Cache||pt),o}function y(e){if("string"==typeof e)return e;if(de(e))return yt(e,y)+"";if(Le(e))return mt?mt.call(e):"";var t=e+"";return"0"==t&&1/e==-ft?"-0":t}function f(e,t,o){var r=e[t];It.call(e,t)&&rt(r,o)&&(o!==void 0||t in e)||St(e,t,o)}function b(e,o){var r=t(e);return o=null==o?9007199254740991:o,!!o&&("number"==r||"symbol"!=r&&Ot.test(e))&&-1<e&&0==e%1&&e<o}function m(){var e,t,o=new Promise(function(){e=arguments[0],t=arguments[1]});return o.resolve=e,o.reject=t,o}function x(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function j(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t}function _(e){var t=Object.prototype.toString.call(e);return"[object String]"===t}function w(e){return!!(_(e)&&""!==e)}function k(e,t){return!!j(e)&&!!w(t)&&t in e}function v(e){var t=this.__data__=new lt(e);this.size=t.size}function A(e,t,o,r,n,i){var a,l=1&t,s=2&t;if(o&&(a=n?o(e,r,n,i):o(e)),void 0!==a)return a;if(!ze(e))return e;var c=de(e);if(!c){var d=lr(e),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Gt(e))return wo(e,l);if("[object Object]"!=d&&"[object Arguments]"!=d&&(!p||n)){if(!Er[d])return n?e:{};a=_r(e,d,l)}else if(a=s||p?{}:vr(e),!l)return s?Uo(e,_o(a,e)):Eo(e,yo(a,e))}else if(a=dr(e),!l)return ko(e,a);i||(i=new uo);var g=i.get(e);if(g)return g;i.set(e,a),Or(e)?e.forEach(function(r){a.add(A(r,t,o,r,e,i))}):Tr(e)&&e.forEach(function(r,n){a.set(n,A(r,t,o,n,e,i))});var u=4&t?s?Mo:No:s?keysIn:lo,h=c?void 0:u(e);return Ct(h||e,function(r,n){h&&(n=r,r=e[n]),Lt(a,n,A(r,t,o,n,e,i))}),a}function S(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}function T(e){return e===void 0||null===e}function I(e){var t={};for(var o in e)t[o]=e[o];return t}function L(e){e=I(e||{}),e.whiteList=e.whiteList||Pr.whiteList,e.onAttr=e.onAttr||Pr.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Pr.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Pr.safeAttrValue,this.options=e}function O(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]}}function E(e){return e.replace(Xr,"<").replace(Hr,">")}function z(e){return e.replace(qr,""")}function F(e){return e.replace($r,"\"")}function C(e){return e.replace(Qr,function(e,t){var o=String.fromCharCode;return"x"===t[0]||"X"===t[0]?o(parseInt(t.substr(1),16)):o(parseInt(t,10))})}function P(e){return e.replace(Yr,":").replace(Jr," ")}function V(e){for(var t="",o=0,r=e.length;o<r;o++)t+=32>e.charCodeAt(o)?" ":e.charAt(o);return Mr.trim(t)}function B(e){return e=F(e),e=C(e),e=P(e),e=V(e),e}function U(e){return e=z(e),e=E(e),e}function D(e){var t=Mr.spaceIndex(e);if(-1===t)var o=e.slice(1,-1);else var o=e.slice(1,t+1);return o=Mr.trim(o).toLowerCase(),"/"===o.slice(0,1)&&(o=o.slice(1)),"/"===o.slice(-1)&&(o=o.slice(0,-1)),o}function N(e){return"</"===e.slice(0,2)}function M(e,t){for(;t<e.length;t++){var o=e[t];if(" "!==o)return"="===o?t:-1}}function W(e,t){for(;0<t;t--){var o=e[t];if(" "!==o)return"="===o?t:-1}}function G(e){return!(("\""!==e[0]||"\""!==e[e.length-1])&&("'"!==e[0]||"'"!==e[e.length-1]))}function R(e){return G(e)?e.substr(1,e.length-2):e}function X(e){return e===void 0||null===e}function H(e){var t=Mr.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};e=Mr.trim(e.slice(t+1,-1));var o="/"===e[e.length-1];return o&&(e=Mr.trim(e.slice(0,-1))),{html:e,closing:o}}function q(e){var t={};for(var o in e)t[o]=e[o];return t}function $(e){e=q(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error("Notes: cannot use these two options \"stripIgnoreTag\" and \"onIgnoreTag\" at the same time"),e.onIgnoreTag=rn.onIgnoreTagStripAll),e.whiteList=e.whiteList||rn.whiteList,e.onTag=e.onTag||rn.onTag,e.onTagAttr=e.onTagAttr||rn.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||rn.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||rn.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||rn.safeAttrValue,e.escapeHtml=e.escapeHtml||rn.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new ln(e.css))}function Q(e){var t=Object.prototype.toString.call(e);return"[object Array]"===t}function Y(e){function r(e){return pn(e,{onIgnoreTagAttr:function(e,t,o){if("style"===t)return t+"=\""+pn.escapeAttrValue(o)+"\""}})}function n(e){return Q(e)||j(e)?(go(e,function(t,o){e[o]=n(t)}),e):_(e)?r(e):e}var i=n(zr(e));return i}function J(e){var t=Object.prototype.toString.call(e);return"[object Number]"===t}function Z(e){var t=!1;return w(e)?t=!isNaN(+e):J(e)&&(t=!0),t}function K(e){if(!Z(e))return 0;var t=wn(e);return t}function ee(e){return!!Z(e)&&(e=K(e),vn(e))}function te(e){if(!Z(e))return 0;e=K(e);var t=In(e);return"0"===t+""?0:t}function oe(e){if(!ee(e))return!1;var t=0<te(e);return t}function re(){var e,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:32,o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],n=[],a=o.length;if(oe(t))for(e=0;e<t;e++)n[e]=o[0|Math.random()*a];else if("rfc4122"===t){n[8]=n[13]=n[18]=n[23]="-",n[14]="4";var l;for(e=0;36>e;e++)n[e]||(l=0|16*Math.random(),n[e]=o[19===e?8|3&l:l])}else return"";var s=n.join("");return s}e=e&&e.hasOwnProperty("default")?e["default"]:e;var ie="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,ae=o(function(e){var o=function(e){function o(e,t,o,r){var i=t&&t.prototype instanceof n?t:n,a=Object.create(i.prototype),l=new u(r||[]);return a._invoke=c(e,o,l),a}function r(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}function n(){}function i(){}function a(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function o(n,i,a,l){var s=r(e[n],e,i);if("throw"===s.type)l(s.arg);else{var c=s.arg,d=c.value;return d&&"object"===t(d)&&m.call(d,"__await")?Promise.resolve(d.__await).then(function(e){o("next",e,a,l)},function(e){o("throw",e,a,l)}):Promise.resolve(d).then(function(e){c.value=e,a(c)},function(e){return o("throw",e,a,l)})}}function n(e,t){function r(){return new Promise(function(r,n){o(e,t,r,n)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(e,t,o){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return y()}for(o.method=i,o.arg=a;;){var l=o.delegate;if(l){var s=d(l,o);if(s){if(s===k)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var c=r(e,t,o);if("normal"===c.type){if(n=o.done?"completed":"suspendedYield",c.arg===k)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n="completed",o.method="throw",o.arg=c.arg)}}}function d(e,t){var o=e.iterator[t.method];if(o===f){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=f,d(e,t),"throw"===t.method))return k;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var n=r(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,k;var i=n.arg;if(!i)return t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,k;if(i.done)t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=f);else return i;return t.delegate=null,k}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function g(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function u(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function h(e){if(e){var t=e[j];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(m.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=f,t.done=!0,t};return r.next=r}}return{next:y}}function y(){return{value:f,done:!0}}var f,b=Object.prototype,m=b.hasOwnProperty,x="function"==typeof Symbol?Symbol:{},j=x.iterator||"@@iterator",_=x.asyncIterator||"@@asyncIterator",w=x.toStringTag||"@@toStringTag";e.wrap=o;var k={},v={};v[j]=function(){return this};var A=Object.getPrototypeOf,S=A&&A(A(h([])));S&&S!==b&&m.call(S,j)&&(v=S);var T=a.prototype=n.prototype=Object.create(v);return i.prototype=T.constructor=a,a.constructor=i,a[w]=i.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,!(w in e)&&(e[w]="GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},l(s.prototype),s.prototype[_]=function(){return this},e.AsyncIterator=s,e.async=function(t,r,n,i){var a=new s(o(t,r,n,i));return e.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},l(T),T[w]="Generator",T[j]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var o in e)t.push(o);return t.reverse(),function o(){for(;t.length;){var r=t.pop();if(r in e)return o.value=r,o.done=!1,o}return o.done=!0,o}},e.values=h,u.prototype={constructor:u,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(g),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=f)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,o.next=t,r&&(o.method="next",o.arg=f),!!r}if(this.done)throw e;for(var o=this,r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r],a=n.completion;if("root"===n.tryLoc)return t("end");if(n.tryLoc<=this.prev){var l=m.call(n,"catchLoc"),s=m.call(n,"finallyLoc");if(l&&s){if(this.prev<n.catchLoc)return t(n.catchLoc,!0);if(this.prev<n.finallyLoc)return t(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return t(n.catchLoc,!0);}else if(!s)throw new Error("try statement without catch or finally");else if(this.prev<n.finallyLoc)return t(n.finallyLoc)}}},abrupt:function(e,t){for(var o,r=this.tryEntries.length-1;0<=r;--r)if(o=this.tryEntries[r],o.tryLoc<=this.prev&&m.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,k):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),k},finish:function(e){for(var t,o=this.tryEntries.length-1;0<=o;--o)if(t=this.tryEntries[o],t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),g(t),k},catch:function(e){for(var t,o=this.tryEntries.length-1;0<=o;--o)if(t=this.tryEntries[o],t.tryLoc===e){var r=t.completion;if("throw"===r.type){var n=r.arg;g(t)}return n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:h(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=f),k}},e}(e.exports);try{regeneratorRuntime=o}catch(e){Function("r","regeneratorRuntime = r")(o)}}),le=ae,se=function(e){return function(){var t=this,o=arguments;return new Promise(function(n,i){function a(e){r(s,n,i,a,l,"next",e)}function l(e){r(s,n,i,a,l,"throw",e)}var s=e.apply(t,o);a(void 0)})}},ce=Array.isArray,de=ce,pe="object"==t(ie)&&ie&&ie.Object===Object&&ie,ge=pe,ue="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,he=ge||ue||Function("return this")(),ye=he,fe=ye.Symbol,be=fe,me=Object.prototype,xe=me.hasOwnProperty,je=me.toString,_e=be?be.toStringTag:void 0,we=function(e){var t=xe.call(e,_e),o=e[_e];try{e[_e]=void 0;var r=!0}catch(t){}var n=je.call(e);return r&&(t?e[_e]=o:delete e[_e]),n},ke=Object.prototype,ve=ke.toString,Ae=function(e){return ve.call(e)},Se=be?be.toStringTag:void 0,Te=n,Ie=i,Le=a,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,ze=s,Fe=function(e){if(!ze(e))return!1;var t=Te(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},Ce=ye["__core-js_shared__"],Pe=Ce,Ve=function(){var e=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Be=Function.prototype,Ue=Be.toString,De=function(e){if(null!=e){try{return Ue.call(e)}catch(t){}try{return e+""}catch(t){}}return""},Ne=/[\\^$.*+?()[\]{}|]/g,Me=/^\[object .+?Constructor\]$/,We=Function.prototype,Ge=Object.prototype,Re=We.toString,Xe=Ge.hasOwnProperty,He=RegExp("^"+Re.call(Xe).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=function(e){if(!ze(e)||c(e))return!1;var t=Fe(e)?He:Me;return t.test(De(e))},$e=function(e,t){return null==e?void 0:e[t]},Qe=function(e,t){var o=$e(e,t);return qe(o)?o:void 0},Ye=Qe(Object,"create"),Je=Ye,Ze=Object.prototype,Ke=Ze.hasOwnProperty,et=Object.prototype,tt=et.hasOwnProperty;d.prototype.clear=function(){this.__data__=Je?Je(null):{},this.size=0},d.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},d.prototype.get=function(e){var t=this.__data__;if(Je){var o=t[e];return o==="__lodash_hash_undefined__"?void 0:o}return Ke.call(t,e)?t[e]:void 0},d.prototype.has=function(e){var t=this.__data__;return Je?t[e]!==void 0:tt.call(t,e)},d.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Je&&void 0===t?"__lodash_hash_undefined__":t,this};var ot=d,rt=function(e,t){return e===t||e!==e&&t!==t},nt=function(e,t){for(var o=e.length;o--;)if(rt(e[o][0],t))return o;return-1},it=Array.prototype,at=it.splice;p.prototype.clear=function(){this.__data__=[],this.size=0},p.prototype["delete"]=function(e){var t=this.__data__,o=nt(t,e);if(0>o)return!1;var r=t.length-1;return o==r?t.pop():at.call(t,o,1),--this.size,!0},p.prototype.get=function(e){var t=this.__data__,o=nt(t,e);return 0>o?void 0:t[o][1]},p.prototype.has=function(e){return-1<nt(this.__data__,e)},p.prototype.set=function(e,t){var o=this.__data__,r=nt(o,e);return 0>r?(++this.size,o.push([e,t])):o[r][1]=t,this};var lt=p,st=Qe(ye,"Map"),ct=st,dt=function(e,t){var o=e.__data__;return g(t)?o["string"==typeof t?"string":"hash"]:o.map};u.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(ct||lt),string:new ot}},u.prototype["delete"]=function(e){var t=dt(this,e)["delete"](e);return this.size-=t?1:0,t},u.prototype.get=function(e){return dt(this,e).get(e)},u.prototype.has=function(e){return dt(this,e).has(e)},u.prototype.set=function(e,t){var o=dt(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this};var pt=u;h.Cache=pt;var gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/\\(\\)?/g,ht=function(e){var t=h(e,function(e){return 500===o.size&&o.clear(),e}),o=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gt,function(e,o,r,n){t.push(r?n.replace(ut,"$1"):o||e)}),t}),yt=function(e,t){for(var o=-1,r=null==e?0:e.length,n=Array(r);++o<r;)n[o]=t(e[o],o,e);return n},ft=1/0,bt=be?be.prototype:void 0,mt=bt?bt.toString:void 0,xt=function(e){return null==e?"":y(e)},jt=function(e,t){return de(e)?e:l(e,t)?[e]:ht(xt(e))},_t=function(e){if("string"==typeof e||Le(e))return e;var t=e+"";return"0"==t&&1/e==-(1/0)?"-0":t},wt=function(e,t){t=jt(t,e);for(var o=0,r=t.length;null!=e&&o<r;)e=e[_t(t[o++])];return o&&o==r?e:void 0},kt=function(e,t,o){var r=null==e?void 0:wt(e,t);return r===void 0?o:r},vt=function(){try{var e=Qe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),At=vt,St=function(e,t,o){"__proto__"==t&&At?At(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o},Tt=Object.prototype,It=Tt.hasOwnProperty,Lt=f,Ot=/^(?:0|[1-9]\d*)$/,Et=b,zt=function(e,t,o,r){if(!ze(e))return e;t=jt(t,e);for(var n=-1,i=t.length,a=e;null!=a&&++n<i;){var l=_t(t[n]),s=o;if(n!=i-1){var c=a[l];s=r?r(c,l,a):void 0,s===void 0&&(s=ze(c)?c:Et(t[n+1])?[]:{})}Lt(a,l,s),a=a[l]}return e},Ft=function(e,t,o){return null==e?e:zt(e,t,o)},Ct=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!(!1===t(e[o],o,e)););return e},Pt=function(e){return function(t,o,r){for(var n=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++n];if(!1===o(i[s],s,i))break}return t}}(),Vt=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r},Bt=function(e){return Ie(e)&&Te(e)=="[object Arguments]"},Ut=Object.prototype,Dt=Ut.hasOwnProperty,Nt=Ut.propertyIsEnumerable,Mt=Bt(function(){return arguments}())?Bt:function(e){return Ie(e)&&Dt.call(e,"callee")&&!Nt.call(e,"callee")},Wt=function(){return!1},Gt=o(function(e,t){var o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===o,i=n?ye.Buffer:void 0,a=i?i.isBuffer:void 0;e.exports=a||Wt}),Rt=function(e){return"number"==typeof e&&-1<e&&0==e%1&&e<=9007199254740991},Xt={};Xt["[object Float32Array]"]=Xt["[object Float64Array]"]=Xt["[object Int8Array]"]=Xt["[object Int16Array]"]=Xt["[object Int32Array]"]=Xt["[object Uint8Array]"]=Xt["[object Uint8ClampedArray]"]=Xt["[object Uint16Array]"]=Xt["[object Uint32Array]"]=!0,Xt["[object Arguments]"]=Xt["[object Array]"]=Xt["[object ArrayBuffer]"]=Xt["[object Boolean]"]=Xt["[object DataView]"]=Xt["[object Date]"]=Xt["[object Error]"]=Xt["[object Function]"]=Xt["[object Map]"]=Xt["[object Number]"]=Xt["[object Object]"]=Xt["[object RegExp]"]=Xt["[object Set]"]=Xt["[object String]"]=Xt["[object WeakMap]"]=!1;var Ht=function(e){return function(t){return e(t)}},qt=o(function(e,t){var o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===o,i=n&&ge.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=a}),$t=qt&&qt.isTypedArray,Qt=$t?Ht($t):function(e){return Ie(e)&&Rt(e.length)&&!!Xt[Te(e)]},Yt=Object.prototype,Jt=Yt.hasOwnProperty,Zt=function(e,t){var o=de(e),r=!o&&Mt(e),n=!o&&!r&&Gt(e),i=!o&&!r&&!n&&Qt(e),a=o||r||n||i,l=a?Vt(e.length,String):[],s=l.length;for(var c in e)(t||Jt.call(e,c))&&!(a&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Et(c,s)))&&l.push(c);return l},Kt=Object.prototype,eo=function(e){var t=e&&e.constructor,o="function"==typeof t&&t.prototype||Kt;return e===o},to=function(e,t){return function(o){return e(t(o))}},oo=to(Object.keys,Object),ro=Object.prototype,no=ro.hasOwnProperty,io=function(e){if(!eo(e))return oo(e);var t=[];for(var o in Object(e))no.call(e,o)&&"constructor"!=o&&t.push(o);return t},ao=function(e){return null!=e&&Rt(e.length)&&!Fe(e)},lo=function(e){return ao(e)?Zt(e):io(e)},so=function(e,t){return function(o,r){if(null==o)return o;if(!ao(o))return e(o,r);for(var n=o.length,i=t?n:-1,a=Object(o);(t?i--:++i<n)&&!(!1===r(a[i],i,a)););return o}}(function(e,t){return e&&Pt(e,t,lo)}),co=function(e){return e},po=function(e){return"function"==typeof e?e:co},go=function(e,t){var o=de(e)?Ct:so;return o(e,po(t))};v.prototype.clear=function(){this.__data__=new lt,this.size=0},v.prototype["delete"]=function(e){var t=this.__data__,o=t["delete"](e);return this.size=t.size,o},v.prototype.get=function(e){return this.__data__.get(e)},v.prototype.has=function(e){return this.__data__.has(e)},v.prototype.set=function(e,t){var o=this.__data__;if(o instanceof lt){var r=o.__data__;if(!ct||199>r.length)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new pt(r)}return o.set(e,t),this.size=o.size,this};var uo=v,ho=function(e,t,o,r){var n=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(o[l],e[l],l,o,e):void 0;s===void 0&&(s=e[l]),n?St(o,l,s):Lt(o,l,s)}return o},yo=function(e,t){return e&&ho(t,lo(t),e)},fo=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t},bo=Object.prototype,mo=bo.hasOwnProperty,xo=function(e){if(!ze(e))return fo(e);var t=eo(e),o=[];for(var r in e)("constructor"!=r||!t&&mo.call(e,r))&&o.push(r);return o},jo=function(e){return ao(e)?Zt(e,!0):xo(e)},_o=function(e,t){return e&&ho(t,jo(t),e)},wo=o(function(e,t){var o=t&&!t.nodeType&&t,r=o&&!0&&e&&!e.nodeType&&e,n=r&&r.exports===o,i=n?ye.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,r=a?a(o):new e.constructor(o);return e.copy(r),r}}),ko=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t},vo=function(e,t){for(var o=-1,r=null==e?0:e.length,n=0,i=[];++o<r;){var a=e[o];t(a,o,e)&&(i[n++]=a)}return i},Ao=function(){return[]},So=Object.prototype,To=So.propertyIsEnumerable,Io=Object.getOwnPropertySymbols,Lo=Io?function(e){return null==e?[]:(e=Object(e),vo(Io(e),function(t){return To.call(e,t)}))}:Ao,Oo=Lo,Eo=function(e,t){return ho(e,Oo(e),t)},zo=function(e,t){for(var o=-1,r=t.length,n=e.length;++o<r;)e[n+o]=t[o];return e},Fo=to(Object.getPrototypeOf,Object),Co=Fo,Po=Object.getOwnPropertySymbols,Vo=Po?function(e){for(var t=[];e;)zo(t,Oo(e)),e=Co(e);return t}:Ao,Bo=Vo,Uo=function(e,t){return ho(e,Bo(e),t)},Do=function(e,t,o){var r=t(e);return de(e)?r:zo(r,o(e))},No=function(e){return Do(e,lo,Oo)},Mo=function(e){return Do(e,jo,Bo)},Wo=Qe(ye,"DataView"),Go=Wo,Ro=Qe(ye,"Promise"),Xo=Ro,Ho=Qe(ye,"Set"),qo=Ho,$o=Qe(ye,"WeakMap"),Qo=$o,Yo="[object Map]",Jo="[object Promise]",Zo="[object Set]",Ko="[object WeakMap]",er="[object DataView]",tr=De(Go),or=De(ct),rr=De(Xo),nr=De(qo),ir=De(Qo),ar=Te;(Go&&ar(new Go(new ArrayBuffer(1)))!=er||ct&&ar(new ct)!=Yo||Xo&&ar(Xo.resolve())!=Jo||qo&&ar(new qo)!=Zo||Qo&&ar(new Qo)!=Ko)&&(ar=function(e){var t=Te(e),o=t=="[object Object]"?e.constructor:void 0,r=o?De(o):"";if(r)switch(r){case tr:return er;case or:return Yo;case rr:return Jo;case nr:return Zo;case ir:return Ko;}return t});var lr=ar,sr=Object.prototype,cr=sr.hasOwnProperty,dr=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&cr.call(e,"index")&&(o.index=e.index,o.input=e.input),o},pr=ye.Uint8Array,gr=pr,ur=function(e){var t=new e.constructor(e.byteLength);return new gr(t).set(new gr(e)),t},hr=function(e,t){var o=t?ur(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)},yr=/\w*$/,fr=function(e){var t=new e.constructor(e.source,yr.exec(e));return t.lastIndex=e.lastIndex,t},br=be?be.prototype:void 0,mr=br?br.valueOf:void 0,xr=function(e){return mr?Object(mr.call(e)):{}},jr=function(e,t){var o=t?ur(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)},_r=function(e,t,o){var r=e.constructor;return"[object ArrayBuffer]"===t?ur(e):"[object Boolean]"===t||"[object Date]"===t?new r(+e):"[object DataView]"===t?hr(e,o):"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t?jr(e,o):"[object Map]"===t?new r:"[object Number]"===t||"[object String]"===t?new r(e):"[object RegExp]"===t?fr(e):"[object Set]"===t?new r:"[object Symbol]"===t?xr(e):void 0},wr=Object.create,kr=function(){function e(){}return function(t){if(!ze(t))return{};if(wr)return wr(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),vr=function(e){return"function"!=typeof e.constructor||eo(e)?{}:kr(Co(e))},Ar=qt&&qt.isMap,Sr=Ar?Ht(Ar):function(e){return Ie(e)&&lr(e)=="[object Map]"},Tr=Sr,Ir=qt&&qt.isSet,Lr=Ir?Ht(Ir):function(e){return Ie(e)&&lr(e)=="[object Set]"},Or=Lr,Er={};Er["[object Arguments]"]=Er["[object Array]"]=Er["[object ArrayBuffer]"]=Er["[object DataView]"]=Er["[object Boolean]"]=Er["[object Date]"]=Er["[object Float32Array]"]=Er["[object Float64Array]"]=Er["[object Int8Array]"]=Er["[object Int16Array]"]=Er["[object Int32Array]"]=Er["[object Map]"]=Er["[object Number]"]=Er["[object Object]"]=Er["[object RegExp]"]=Er["[object Set]"]=Er["[object String]"]=Er["[object Symbol]"]=Er["[object Uint8Array]"]=Er["[object Uint8ClampedArray]"]=Er["[object Uint16Array]"]=Er["[object Uint32Array]"]=!0,Er["[object Error]"]=Er["[object Function]"]=Er["[object WeakMap]"]=!1;var zr=function(e){return A(e,5)},Fr=/javascript\s*\:/img,Cr=S(),Pr={whiteList:Cr,getDefaultWhiteList:S,onAttr:function(){},onIgnoreAttr:function(){},safeAttrValue:function(e,t){return Fr.test(t)?"":t}},Vr={indexOf:function(e,t){var o,r;if(Array.prototype.indexOf)return e.indexOf(t);for(o=0,r=e.length;o<r;o++)if(e[o]===t)return o;return-1},forEach:function(e,t,o){var r,n;if(Array.prototype.forEach)return e.forEach(t,o);for(r=0,n=e.length;r<n;r++)t.call(o,e[r],r,e)},trim:function(e){return ne.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return ne.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Br=function(e,t){function o(){if(!n){var o=Vr.trim(e.slice(a,l)),r=o.indexOf(":");if(-1!==r){var i=Vr.trim(o.slice(0,r)),c=Vr.trim(o.slice(r+1));if(i){var d=t(a,s.length,i,c,o);d&&(s+=d+"; ")}}}a=l+1}e=Vr.trimRight(e),";"!==e[e.length-1]&&(e+=";");for(var r=e.length,n=!1,a=0,l=0,s="";l<r;l++){var d=e[l];if("/"===d&&"*"===e[l+1]){var c=e.indexOf("*/",l+2);if(-1===c)break;l=c+1,a=l+1,n=!1}else if("("===d)n=!0;else if(")"===d)n=!1;else if(!(";"===d))"\n"===d&&o();else if(n);else o()}return Vr.trim(s)};L.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,o=t.options,r=o.whiteList,n=o.onAttr,i=o.onIgnoreAttr,a=o.safeAttrValue,l=Br(e,function(e,t,o,l,s){var c=r[o],d=!1;if(!0===c?d=c:"function"==typeof c?d=c(l):c instanceof RegExp&&(d=c.test(l)),!0!==d&&(d=!1),l=a(o,l),!!l){var p={position:t,sourcePosition:e,source:s,isWhite:d};if(d){var g=n(o,l,p);return T(g)?o+":"+l:g}var g=i(o,l,p);if(!T(g))return g}});return l};var Ur=L,Dr=o(function(e,t){function o(e,t){var o=new Ur(t);return o.process(e)}for(var r in t=e.exports=o,t.FilterCSS=Ur,Pr)t[r]=Pr[r];"undefined"!=typeof window&&(window.filterCSS=e.exports)}),Nr=Dr.FilterCSS,Mr={indexOf:function(e,t){var o,r;if(Array.prototype.indexOf)return e.indexOf(t);for(o=0,r=e.length;o<r;o++)if(e[o]===t)return o;return-1},forEach:function(e,t,o){var r,n;if(Array.prototype.forEach)return e.forEach(t,o);for(r=0,n=e.length;r<n;r++)t.call(o,e[r],r,e)},trim:function(e){return ne.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,o=t.exec(e);return o?o.index:-1}},Wr=Dr.FilterCSS,Gr=Dr.getDefaultWhiteList,Rr=new Wr,Xr=/</g,Hr=/>/g,qr=/"/g,$r=/"/g,Qr=/&#([a-zA-Z0-9]*);?/gim,Yr=/:?/gim,Jr=/&newline;?/gim,Zr=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,Kr=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,en=/u\s*r\s*l\s*\(.*/gi,tn=/<!--[\s\S]*?-->/g,on=O(),rn={whiteList:on,getDefaultWhiteList:O,onTag:function(){},onIgnoreTag:function(){},onTagAttr:function(){},onIgnoreTagAttr:function(){},safeAttrValue:function(e,t,o,r){if(o=B(o),"href"===t||"src"===t){if(o=Mr.trim(o),"#"===o)return"#";if("http://"!==o.substr(0,7)&&"https://"!==o.substr(0,8)&&"mailto:"!==o.substr(0,7)&&"tel:"!==o.substr(0,4)&&"#"!==o[0]&&"/"!==o[0])return""}else if("background"===t){if(Zr.lastIndex=0,Zr.test(o))return"";}else if("style"===t){if(Kr.lastIndex=0,Kr.test(o))return"";if(en.lastIndex=0,en.test(o)&&(Zr.lastIndex=0,Zr.test(o)))return"";!1!==r&&(r=r||Rr,o=r.process(o))}return o=U(o),o},escapeHtml:E,escapeQuote:z,unescapeQuote:F,escapeHtmlEntities:C,escapeDangerHtml5Entities:P,clearNonPrintableCharacter:V,friendlyAttrValue:B,escapeAttrValue:U,onIgnoreTagStripAll:function(){return""},StripTagBody:function(e,t){function o(t){return!!r||-1!==Mr.indexOf(e,t)}"function"!=typeof t&&(t=function(){});var r=!Array.isArray(e),n=[],i=!1;return{onIgnoreTag:function(e,r,a){if(o(e)){if(a.isClosing){var l=a.position+10;return n.push([!1===i?a.position:i,l]),i=!1,"[/removed]"}return i||(i=a.position),"[removed]"}return t(e,r,a)},remove:function(e){var t="",o=0;return Mr.forEach(n,function(r){t+=e.slice(o,r[0]),o=r[1]}),t+=e.slice(o),t}}},stripCommentTag:function(e){return e.replace(tn,"")},stripBlankChar:function(e){var t=e.split("");return t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(31>=t)||10===t||13===t)}),t.join("")},cssFilter:Rr,getDefaultCSSWhiteList:Gr},nn=/[^a-zA-Z0-9_:\.\-]/gim,an={parseTag:function(e,t,o){"user strict";var r="",n=0,i=!1,a=!1,l=0,s=e.length,d="",p="";for(l=0;l<s;l++){var g=e.charAt(l);if(!1===i){if("<"===g){i=l;continue}}else if(!1===a){if("<"===g){r+=o(e.slice(n,l)),i=l,n=l;continue}if(">"===g){r+=o(e.slice(n,i)),p=e.slice(i,l+1),d=D(p),r+=t(i,r.length,d,p,N(p)),n=l+1,i=!1;continue}if(("\""===g||"'"===g)&&"="===e.charAt(l-1)){a=g;continue}}else if(g===a){a=!1;continue}}return n<e.length&&(r+=o(e.substr(n))),r},parseAttr:function(e,t){"user strict";function o(e,o){if(e=Mr.trim(e),e=e.replace(nn,"").toLowerCase(),!(1>e.length)){var r=t(e,o||"");r&&n.push(r)}}for(var r=0,n=[],a=!1,l=e.length,s=0;s<l;s++){var d,p,g=e.charAt(s);if(!1===a&&"="===g){a=e.slice(r,s),r=s+1;continue}if(!1!==a&&s===r&&("\""===g||"'"===g)&&"="===e.charAt(s-1))if(p=e.indexOf(g,s+1),-1===p)break;else{d=Mr.trim(e.slice(r+1,p)),o(a,d),a=!1,s=p,r=s+1;continue}if(/\s|\n|\t/.test(g))if(e=e.replace(/\s|\n|\t/g," "),!1===a){if(p=M(e,s),-1===p){d=Mr.trim(e.slice(r,s)),o(d),a=!1,r=s+1;continue}else{s=p-1;continue}}else if(p=W(e,s-1),-1===p){d=Mr.trim(e.slice(r,s)),d=R(d),o(a,d),a=!1,r=s+1;continue}else continue}return r<e.length&&(!1===a?o(e.slice(r)):o(a,R(Mr.trim(e.slice(r))))),Mr.trim(n.join(" "))}},ln=Dr.FilterCSS,sn=an.parseTag,cn=an.parseAttr;$.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,o=t.options,r=o.whiteList,n=o.onTag,i=o.onIgnoreTag,a=o.onTagAttr,l=o.onIgnoreTagAttr,s=o.safeAttrValue,c=o.escapeHtml,d=t.cssFilter;o.stripBlankChar&&(e=rn.stripBlankChar(e)),o.allowCommentTag||(e=rn.stripCommentTag(e));var p=!1;if(o.stripIgnoreTagBody){var p=rn.StripTagBody(o.stripIgnoreTagBody,i);i=p.onIgnoreTag}var g=sn(e,function(e,t,o,p,g){var u={sourcePosition:e,position:t,isClosing:g,isWhite:r.hasOwnProperty(o)},h=n(o,p,u);if(!X(h))return h;if(u.isWhite){if(u.isClosing)return"</"+o+">";var y=H(p),f=r[o],b=cn(y.html,function(e,t){var r=-1!==Mr.indexOf(f,e),n=a(o,e,t,r);if(!X(n))return n;if(r)return t=s(o,e,t,d),t?e+"=\""+t+"\"":e;var n=l(o,e,t,r);return X(n)?void 0:n}),p="<"+o;return b&&(p+=" "+b),y.closing&&(p+=" /"),p+=">",p}var h=i(o,p,u);return X(h)?c(p):h},c);return p&&(g=p.remove(g)),g};var dn=$,pn=o(function(e,t){function o(e,t){var o=new dn(t);return o.process(e)}for(var r in t=e.exports=o,t.filterXSS=o,t.FilterXSS=dn,rn)t[r]=rn[r];for(var r in an)t[r]=an[r];"undefined"!=typeof window&&(window.filterXSS=e.exports),function(){return"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=e.exports)}),gn=pn.filterXSS,un=pn.FilterXSS,hn=0/0,yn=/^\s+|\s+$/g,fn=/^[-+]0x[0-9a-f]+$/i,bn=/^0b[01]+$/i,mn=/^0o[0-7]+$/i,xn=parseInt,jn=function(e){if("number"==typeof e)return e;if(Le(e))return hn;if(ze(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ze(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(yn,"");var o=bn.test(e);return o||mn.test(e)?xn(e.slice(2),o?2:8):fn.test(e)?hn:+e},_n=1/0,wn=function(e){if(!e)return 0===e?e:0;if(e=jn(e),e===_n||e===-_n){var t=0>e?-1:1;return 1.7976931348623157e+308*t}return e===e?e:0},kn=function(e){var t=wn(e),o=t%1;return t===t?o?t-o:t:0},vn=function(e){return"number"==typeof e&&e==kn(e)},An=ye.isFinite,Sn=Math.min,Tn=function(e){var t=Math[e];return function(e,o){if(e=jn(e),o=null==o?0:Sn(kn(o),292),o&&An(e)){var r=(xt(e)+"e").split("e"),n=t(r[0]+"e"+(+r[1]+o));return r=(xt(n)+"e").split("e"),+(r[0]+"e"+(+r[1]-o))}return t(e)}}("round"),In=Tn;return function(t){function o(){function o(o,r){var n=m();o=Y(o);var i={method:"POST",url:t.url,data:o};return"upload file"===r&&(i.headers={"Content-Type":"multipart/form-data"}),"download file"===r&&(i.responseType="blob"),e(i).then(function(e){n.resolve(e.data.output)})["catch"](function(e){var t=kt(e,"response.data");e=t?t:"can not connection",n.reject(e)}),n}function l(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n={clientId:i,token:t.token,func:e,input:r},a="";return kt(r,"mode")&&(a=r.mode),o(n,a)}t.url||(t.url="http://localhost:8080/api"),t.token||(t.token="*"),l("getFuncs").then(function(e){if("sys"===kt(e,"sys")&&k(e,"funcs")){var o=e.funcs;a={};for(var s=function(e){var t=o[e],r=function(){var e=se(le.mark(function e(o){return le.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,o));case 1:case"end":return e.stop();}},e)}));return function(){return e.apply(this,arguments)}}();Ft(a,t,r)},c=0;c<o.length;c++)s(c);n.resolve(a)}else{x(t.error)&&t.error("no funcs"),r()}})["catch"](function(e){x(t.error)&&t.error(e),r()})}function r(){setTimeout(function(){x(t.reconn)&&t.reconn(),o()},1e3)}var n=m(),a={},i=re();return o(),n}}); | ||
//# sourceMappingURL=ht-client.umd.js.map |
/*! | ||
* ht-server v1.0.3 | ||
* ht-server v1.0.4 | ||
* (c) 2018-2019 yuda-lyu(semisphere) | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"name": "w-comor-hapi", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A http communicator in nodejs and browser. Mapping functions in nodejs to end points.", | ||
@@ -48,3 +48,3 @@ "main": "dist/ht-server.umd.js", | ||
"vue-template-compiler": "^2.6.10", | ||
"wsemi": "^1.1.15" | ||
"wsemi": "^1.1.16" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
@@ -59,5 +59,19 @@ # w-comor-hapi | ||
funcs: { | ||
add: function({ p1, p2 }) { | ||
'group.plus': function({ p1, p2 }) { | ||
return new Promise(function(resolve, reject) { | ||
setTimeout(function() { | ||
resolve(p1 * p2) | ||
}, random(100, 3000)) | ||
}) | ||
}, | ||
'group.div': function({ p1, p2 }) { | ||
return new Promise(function(resolve, reject) { | ||
setTimeout(function() { | ||
resolve(p1 / p2) | ||
}, random(100, 3000)) | ||
}) | ||
}, | ||
'add': function({ p1, p2 }) { | ||
return new Promise(function(resolve, reject) { | ||
setTimeout(function() { | ||
resolve(p1 + p2) | ||
@@ -67,5 +81,12 @@ }, random(100, 3000)) | ||
}, | ||
minu: function({ p1, p2 }) { | ||
'addHide': function({ p1, p2 }) { | ||
return new Promise(function(resolve, reject) { | ||
setTimeout(function() { | ||
resolve(p1 + p2) | ||
}, random(100, 3000)) | ||
}) | ||
}, | ||
'minu': function({ p1, p2 }) { | ||
return new Promise(function(resolve, reject) { | ||
setTimeout(function() { | ||
resolve(p1 - p2) | ||
@@ -103,2 +124,16 @@ }, random(100, 3000)) | ||
function core(ps) { | ||
wo.group.plus(ps) | ||
.then(function(r) { | ||
console.log('client nodejs: plus(' + JSON.stringify(ps) + ')=' + r) | ||
}) | ||
.catch(function(err) { | ||
console.log('client nodejs: plus: catch: ', err) | ||
}) | ||
wo.group.div(ps) | ||
.then(function(r) { | ||
console.log('client nodejs: div(' + JSON.stringify(ps) + ')=' + r) | ||
}) | ||
.catch(function(err) { | ||
console.log('client nodejs: div: catch: ', err) | ||
}) | ||
wo.add(ps) | ||
@@ -131,3 +166,3 @@ .then(function(r) { | ||
.catch(function(err) { | ||
console.log('client nodejs: catch', err) | ||
console.log('client nodejs: catch: ', err) | ||
}) | ||
@@ -149,3 +184,3 @@ ``` | ||
```alias | ||
<script src="https://cdn.jsdelivr.net/npm/w-comor-hapi@1.0.3/dist/ht-client.umd.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/w-comor-hapi@1.0.4/dist/ht-client.umd.js"></script> | ||
``` | ||
@@ -174,2 +209,16 @@ #### Example for `ht-client`: | ||
function core(ps) { | ||
wo.group.plus(ps) | ||
.then(function(r) { | ||
console.log('client web: plus(' + JSON.stringify(ps) + ')=' + r) | ||
}) | ||
.catch(function(err) { | ||
console.log('client web: plus: catch: ', err) | ||
}) | ||
wo.group.div(ps) | ||
.then(function(r) { | ||
console.log('client web: div(' + JSON.stringify(ps) + ')=' + r) | ||
}) | ||
.catch(function(err) { | ||
console.log('client web: div: catch: ', err) | ||
}) | ||
wo.add(ps) | ||
@@ -202,4 +251,4 @@ .then(function(r) { | ||
.catch(function(err) { | ||
console.log('client web: catch', err) | ||
console.log('client web: catch: ', err) | ||
}) | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
751880
1970
247
4