![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/sketch/snow2014/dist/ |
Upload File : |
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";(function(t){var i=n(2),r=n.n(i);function o(e){this.au=t.navigator&&navigator.userAgent||"",this.rulesheet=e,this.os=this.detectByRules(this.rulesheet.os),this.device=this.detectByRules(this.rulesheet.device),this.engine=this.detectByRules(this.rulesheet.engine),this.browser=this.detectByRules(this.rulesheet.browser),this.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,this.isCococ=navigator.userAgent.toLowerCase().indexOf("coc_coc_browser")>=1,this.isSafari=!this.isCococ&&navigator.userAgent.toLowerCase().indexOf("safari")>-1&&navigator.userAgent.toLowerCase().indexOf("win")<0&&navigator.userAgent.toLowerCase().indexOf("android")<0,this.isMobile=navigator.userAgent.indexOf("KFFOWI")>-1||navigator.userAgent.toLowerCase().indexOf("mobile")>-1,this.hasTouch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,this.isTouchDevice=this.isMobile&&this.hasTouch,this.supportPassiveEvent=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}()}o.prototype.detectByRules=function(t){for(var e={},n=0;n<t.length;++n){var i=t[n],r=i[0],o=i[1];if("function"==typeof o&&(o=o(this.au.toLowerCase())),Object.prototype.toString.call(o).indexOf("RegExp")){var a=this.au.toLowerCase().match(o);if(a){e.type=r,a[1]&&(e.version=a[1]);break}}else"string"==typeof o&&this.au.toLowerCase().indexOf(o)>=0&&(e.type=r)}return e},e.a=new o(r.a)}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(e){const n=e.external,i=/\b(?:msie |ie |trident\/[0-9].*rv[ :])([0-9.]+)/,r=/\bbb10\b.+?\bversion\/([\d.]+)/,o=/\bblackberry\b.+\bversion\/([\d.]+)/,a=/\bblackberry\d+\/([\d.]+)/,s=[["wp",function(t){return-1!==t.indexOf("windows phone ")?/\bwindows phone (?:os )?([0-9.]+)/:-1!==t.indexOf("xblwp")?/\bxblwp([0-9.]+)/:-1!==t.indexOf("zunewp")?/\bzunewp([0-9.]+)/:"windows phone"}],["windows",/\bwindows nt ([0-9.]+)/],["macosx",/\bmac os x ([0-9._]+)/],["ios",function(t){return/\bcpu(?: iphone)? os /.test(t)?/\bcpu(?: iphone)? os ([0-9._]+)/:-1!==t.indexOf("iph os ")?/\biph os ([0-9_]+)/:/\bios\b/}],["yunos",/\baliyunos ([0-9.]+)/],["android",function(t){return t.indexOf("android")>=0?/\bandroid[ \/-]?([0-9.x]+)?/:t.indexOf("adr")>=0?t.indexOf("mqqbrowser")>=0?/\badr[ ]\(linux; u; ([0-9.]+)?/:/\badr(?:[ ]([0-9.]+))?/:"android"}],["chromeos",/\bcros i686 ([0-9.]+)/],["linux","linux"],["windowsce",/\bwindows ce(?: ([0-9.]+))?/],["symbian",/\bsymbian(?:os)?\/([0-9.]+)/],["blackberry",function(t){const e=t.match(r)||t.match(o)||t.match(a);return e?{version:e[1]}:"blackberry"}],["ie",/\rv\:\/([0-9.]+)/]],c=[["edgehtml",/edge\/([0-9.]+)/],["trident",i],["blink",function(){return"chrome"in e&&"CSS"in e&&/\bapplewebkit[\/]?([0-9.+]+)/}],["webkit",/\bapplewebkit[\/]?([0-9.+]+)/],["gecko",function(t){const e=t.match(/\brv:([\d\w.]+).*\bgecko\/(\d+)/);if(e)return{version:e[1]+"."+e[2]}}],["presto",/\bpresto\/([0-9.]+)/],["androidwebkit",/\bandroidwebkit\/([0-9.]+)/],["coolpadwebkit",/\bcoolpadwebkit\/([0-9.]+)/],["u2",/\bu2\/([0-9.]+)/],["u3",/\bu3\/([0-9.]+)/]],u=[["coccoc",/coc\_coc\_browser\/([0-9.]+)/],["edge",/edge\/([0-9.]+)/],["chrome-edge",/chrome.+edg\/([0-9.]+)/],["sogou",function(t){return t.indexOf("sogoumobilebrowser")>=0?/sogoumobilebrowser\/([0-9.]+)/:t.indexOf("sogoumse")>=0||/ se ([0-9.x]+)/}],["maxthon",function(){try{if(n&&(n.mxVersion||n.max_version))return{version:n.mxVersion||n.max_version}}catch(t){}return/\b(?:maxthon|mxbrowser)(?:[ \/]([0-9.]+))?/}],["micromessenger",/\bmicromessenger\/([\d.]+)/],["qq",/\bm?qqbrowser\/([0-9.]+)/],["green","greenbrowser"],["tt",/\btencenttraveler ([0-9.]+)/],["liebao",function(t){if(t.indexOf("liebaofast")>=0)return/\bliebaofast\/([0-9.]+)/;if(-1===t.indexOf("lbbrowser"))return!1;var e;try{n&&n.LiebaoGetVersion&&(e=n.LiebaoGetVersion())}catch(t){}return{version:e||"-1"}}],["tao",/\btaobrowser\/([0-9.]+)/],["coolnovo",/\bcoolnovo\/([0-9.]+)/],["saayaa","saayaa"],["baidu",/\b(?:ba?idubrowser|baiduhd)[ \/]([0-9.x]+)/],["ie",i],["mi",/\bmiuibrowser\/([0-9.]+)/],["opera",function(t){const e=/\bopera.+version\/([0-9.ab]+)/;return e.test(t)?e:/\bopr\/([0-9.]+)/}],["oupeng",/\boupeng\/([0-9.]+)/],["yandex",/yabrowser\/([0-9.]+)/],["ali-ap",function(t){return t.indexOf("aliapp")>0?/\baliapp\(ap\/([0-9.]+)\)/:/\balipayclient\/([0-9.]+)\b/}],["ali-ap-pd",/\baliapp\(ap-pd\/([0-9.]+)\)/],["ali-am",/\baliapp\(am\/([0-9.]+)\)/],["ali-tb",/\baliapp\(tb\/([0-9.]+)\)/],["ali-tb-pd",/\baliapp\(tb-pd\/([0-9.]+)\)/],["ali-tm",/\baliapp\(tm\/([0-9.]+)\)/],["ali-tm-pd",/\baliapp\(tm-pd\/([0-9.]+)\)/],["uc",function(t){return t.indexOf("ucbrowser/")>=0?/\bucbrowser\/([0-9.]+)/:t.indexOf("ubrowser/")>=0?/\bubrowser\/([0-9.]+)/:/\buc\/[0-9]/.test(t)?/\buc\/([0-9.]+)/:t.indexOf("ucweb")>=0?/\bucweb([0-9.]+)?/:/\b(?:ucbrowser|uc)\b/}],["baiduboxapp",function(t){var e,n=0;return!!/ baiduboxapp\//i.test(t)&&((e=/([\d+.]+)_(?:diordna|enohpi)_/.exec(t))?n=(e=e[1].split(".")).reverse().join("."):(e=/baiduboxapp\/([\d+.]+)/.exec(t))&&(n=e[1]),{version:n})}],["oppobrowser",/\boppobrowser\/([0-9.]+)/],["chrome",/ (?:chrome|crios|crmo)\/([0-9.]+)/],["android",function(t){if(-1!==t.indexOf("android"))return/\bversion\/([0-9.]+(?: beta)?)/}],["blackberry",function(t){const e=t.match(r)||t.match(o)||t.match(a);return e?{version:e[1]}:"blackberry"}],["safari",/\bversion\/([0-9.]+(?: beta)?)(?: mobile(?:\/[a-z0-9]+)?)? safari\//],["webview",/\bcpu(?: iphone)? os (?:[0-9._]+).+\bapplewebkit\b/],["firefox",/\bfirefox\/([0-9.ab]+)/],["nokia",/\bnokiabrowser\/([0-9.]+)/]];t.exports={device:[["nokia",function(t){return-1!==t.indexOf("nokia ")?/\bnokia ([0-9]+)?/:/\bnokia([a-z0-9]+)?/}],["samsung",function(t){return-1!==t.indexOf("samsung")?/\bsamsung(?:[ \-](?:sgh|gt|sm))?-([a-z0-9]+)/:/\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/}],["wp",function(t){return-1!==t.indexOf("windows phone ")||-1!==t.indexOf("xblwp")||-1!==t.indexOf("zunewp")||-1!==t.indexOf("windows ce")}],["pc","windows"],["ipad","ipad"],["ipod","ipod"],["iphone",/\biphone\b|\biph(\d)/],["mac","macintosh"],["mi",/\bmi[ \-]?([a-z0-9 ]+(?= build|\)))/],["hongmi",/\bhm[ \-]?([a-z0-9]+)/],["aliyun",/\baliyunos\b(?:[\-](\d+))?/],["meizu",function(t){return t.indexOf("meizu")>=0?/\bmeizu[\/ ]([a-z0-9]+)\b/:/\bm([0-9cx]{1,4})\b/}],["nexus",/\bnexus ([0-9s.]+)/],["huawei",function(t){const e=/\bmediapad (.+?)(?= build\/huaweimediapad\b)/;return-1!==t.indexOf("huawei-huawei")?/\bhuawei\-huawei\-([a-z0-9\-]+)/:e.test(t)?e:/\bhuawei[ _\-]?([a-z0-9]+)/}],["lenovo",function(t){return-1!==t.indexOf("lenovo-lenovo")?/\blenovo\-lenovo[ \-]([a-z0-9]+)/:/\blenovo[ \-]?([a-z0-9]+)/}],["zte",function(t){return/\bzte\-[tu]/.test(t)?/\bzte-[tu][ _\-]?([a-su-z0-9\+]+)/:/\bzte[ _\-]?([a-su-z0-9\+]+)/}],["vivo",/\bvivo(?: ([a-z0-9]+))?/],["htc",function(t){return/\bhtc[a-z0-9 _\-]+(?= build\b)/.test(t)?/\bhtc[ _\-]?([a-z0-9 ]+(?= build))/:/\bhtc[ _\-]?([a-z0-9 ]+)/}],["oppo",/\boppo[_ ]([a-z0-9]+)/],["konka",/\bkonka[_\-]([a-z0-9]+)/],["sonyericsson",/\bmt([a-z0-9]+)/],["coolpad",/\bcoolpad[_ ]?([a-z0-9]+)/],["lg",/\blg[\-]([a-z0-9]+)/],["android",/\bandroid\b|\badr\b/],["blackberry",function(t){return t.indexOf("blackberry")>=0?/\bblackberry\s?(\d+)/:"bb10"}]],os:s,browser:u,engine:c,re_msie:i}}).call(this,n(1))},function(t,e,n){t.exports=n(4)},function(t,e,n){"use strict";function i(t){this.path=t.path}n.r(e),i.prototype.match=function(t,e){if(e.id&&(!t.getAttribute||t.getAttribute("id")!=e.id))return!1;if(e.tagName){var n=!1;if(t._azar_extendTags&&t._azar_extendTags[e.tagName]&&(n=!0),!(n=n||(t.tagName||"").toUpperCase()==e.tagName.toUpperCase()))return!1}if(e.classList)for(var i=0;i<e.classList.length;++i)if(!t.classList||!t.classList.contains(e.classList[i]))return!1;if(e.attributes)for(var r in e.attributes){if(t.attr){if(t.attr(r)!=e.attributes[r])return!1}else if(t.getAttribute&&t.getAttribute(r)!=e.attributes[r])return!1}return!0},i.prototype.findFirst=function(t,e){for(var n,i=[{e:t,i:0}];i.length>0;){var r=!1,o=(n=i.shift()).e,a=n.i;if(this.match(o,this.path[a]))if(this.path[a].childCombinate){for(var s=a,c=o,u=!0;u&&s>0&&this.path[s].childCombinate;)c.parentNode&&this.match(c.parentNode,this.path[s-1])?(c=c.parentNode,s--):u=!1;u&&(r=!0)}else r=!0;if(r&&a+1==this.path.length&&(!e||e&&e(o)))return o;if(o.childNodes)for(var h=o.childNodes.length,l=0;l<h;++l)o.childNodes[l].tagName&&i.push({e:o.childNodes[l],i:a+(r&&a+1<this.path.length?1:0)})}},i.prototype.findAll=function(t,e){for(var n,i=[],r=[{e:t,i:0}];r.length>0;){var o=!1,a=(n=r.shift()).e,s=n.i;if(this.match(a,this.path[s]))if(this.path[s].childCombinate){for(var c=s,u=a,h=!0;h&&c>0&&this.path[c].childCombinate;)u.parentNode&&this.match(u.parentNode,this.path[c-1])?(u=u.parentNode,c--):h=!1;h&&(o=!0)}else o=!0;if(o&&s+1==this.path.length&&(!e||e&&e(a))&&i.push(a),a.childNodes)for(var l=a.childNodes.length,d=0;d<l;++d)a.childNodes[d].tagName&&r.push({e:a.childNodes[d],i:s+(o&&s+1<this.path.length?1:0)})}return i};var r=/[a-zA-Z0-9\-_]+/,o=new RegExp("\\."+r.source),a=new RegExp("#"+r.source),s=new RegExp(/"(([^"\\]*|(\\.))*)"/.source+"|"+/true|false/.source),c=new RegExp("\\[\\s*("+r.source+")\\s*(=\\s*("+s.source+"))\\]"),u=new RegExp(["(",r.source,"|",c.source,"|",o.source,"|",a.source,")+"].join(""));i.__tagRegex=new RegExp(u.source+"|\\>","g"),i.__tagNameRegex=new RegExp("^"+r.source,"i"),i.__classRegex=new RegExp(o.source,"g"),i.__idRegex=new RegExp(a.source,"i"),i.__attrRegex=new RegExp(c.source,"g"),i.parseQuery=function(t){var e={},n=(t=t.replace(i.__attrRegex,(function(t,n,i,r){return e.attributes=e.attributes||{},e.attributes[n]=!i||JSON.parse(r),""}))).match(this.__classRegex),r=t.match(this.__idRegex),o=t.match(this.__tagNameRegex);return r&&r.length>0&&(e.id=r[0].substring(1)),o&&o.length>0&&(e.tagName=o[0].trim()),n&&n.length>0&&(e.classList=n.map((function(t){return t.substring(1)}))),e},i.compileJSPath=function(t){for(var e=t.match(this.__tagRegex)||[""],n=[],r=!1,o=0;o<e.length;++o){var a=e[o];if(">"==a)r=!0;else{var s=this.parseQuery(a);s.childCombinate=r,n.push(s),r=!1}}return new i({path:n})};var h=i,l={overrideMethod:function(t,e,n){if(void 0===t[e])t[e]=n;else{var i=t[e];t[e]=function(t,e){return function(){var n=this.super;this.super=t;var i=e.apply(this,arguments);return this.super=n,i}}(i,n)}},extends:function(t,e){for(var n in e)"constructor"!==n&&"__proto__"!==n&&("function"==typeof e[n]?l.overrideMethod(t,n,e[n]):void 0!==e[n]&&null!==e[n]&&(t[n]=e[n]))},inherit:function(t,e){Object.keys(e).forEach((function(n){if("constructor"!==n&&"function"==typeof e[n]){var i=e[n],r=t[n];t[n]=r?function(){var t=this.super;this.super=i;var e=r.apply(this,arguments);return this.super=t,e}:i}}))},drillProperty:function(t,e,n,i){if("string"==typeof n)i=i||n,Object.defineProperty(t,n,{set:function(t){e[i]=t},get:function(){return e[i]}});else if(n instanceof Array)for(var r=0;r<n.length;++r)l.drillProperty(t,e,n[r],n[r]);else for(var o in n)l.drillProperty(t,e,o,n[o])},bindFunctions:function(t,e){var n={};for(var i in e)n[i]=e[i].bind(t);return n},inheritCreator:function(t,e){var n;if(e.property&&t.property)for(n in t.property)e.property[n]||(e.property[n]=t.property[n]);for(n in t.prototype)e.prototype[n]?e.prototype[n]=function(t,e){return function(){var n=this.super;this.super=t;var i=e.apply(this,arguments);return this.super=n,i}}(t.prototype[n],e.prototype[n]):e.prototype[n]=t.prototype[n]},mixClass:function(t){for(var e={},n=1;n<arguments.length;++n)Object.assign(e,Object.getOwnPropertyDescriptors(arguments[n].prototype));Object.defineProperties(t.prototype,e),t.prototype.constructor=t}},d=l;function p(t){var e=t.toString();return e=(e=e.substr("function ".length)).substr(0,e.indexOf("("))}function f(){this._azar_extendEvents=this._azar_extendEvents||{supported:{},prioritize:{},nonprioritize:{}},this.__azar_force=!("object"==typeof Node?this instanceof Node:this&&"object"==typeof this&&"number"==typeof this.nodeType&&"string"==typeof this.nodeName)}f.prototype.defineEvent=function(t){if(t instanceof Array)for(var e=0;e<t.length;++e)this._azar_extendEvents.supported[t[e]]=!0;else this._azar_extendEvents.supported[t]=!0;return this},f.prototype.isSupportedEvent=function(t){return this.__azar_force||!!this._azar_extendEvents.supported[t]},f.prototype.emit=function(t,e){this.fire.apply(this,arguments)},f.prototype.fire=function(t,e){var n=Array.prototype.slice.call(arguments,1);if(this.isSupportedEvent(t)){var i,r;if(this._azar_extendEvents.prioritize[t])for(i=this._azar_extendEvents.prioritize[t].slice(),r=0;r<i.length;++r)try{i[r].wrappedCallback.apply(this,n)}catch(t){console.error(t)}if(this._azar_extendEvents.nonprioritize[t])for(i=this._azar_extendEvents.nonprioritize[t].slice(),r=0;r<i.length;++r)try{i[r].wrappedCallback.apply(this,n)}catch(t){console.error(t)}}else{if(!this.dispatchEvent)throw new Error("Not support event "+t);var o=new Event(t);e&&Object.assign(o,e),this.dispatchEvent(o)}return this},f.prototype.eventEmittorOnWithTime=function(t,e,n,i){if("object"==typeof e){for(var r in e)this.eventEmittorOnWithTime(t,r,e[r]);return this}if("object"==typeof n)return this.eventEmittorOnWithTime(t,e,n.callback,n.cap);for(var o=this._azar_extendEvents[i?"prioritize":"nonprioritize"][e]||[],a=-1,s=0;s<o.length;++s)if(o[s].wrappedCallback==n){a=s;break}if(a<0){var c={isOnce:t,eventName:e,callback:n,cap:!!i};c.wrappedCallback=t?function(){c.callback.apply(this,arguments),this.off(c.eventName,c.wrappedCallback,c.cap)}:c.callback,this.isSupportedEvent(e)||(this.addEventListener?this.addEventListener(e,c.wrappedCallback,!!i):this.attachEvent("on"+e,n,!!i)),o.push(c),this._azar_extendEvents[i?"prioritize":"nonprioritize"][e]=o}else console.warn("dupplicate event");return this},f.prototype.on=function(t,e,n){return this.eventEmittorOnWithTime(!1,t,e,n),this},f.prototype.once=function(t,e,n){return this.eventEmittorOnWithTime(!0,t,e,n),this},f.prototype.off=function(t,e,n){if("object"==typeof t){for(var i in t)this.off(i,t[i]);return this}if("object"==typeof e)return this.off(t,e.callback,e.cap);for(var r=this._azar_extendEvents[n?"prioritize":"nonprioritize"][t]||[],o=[],a=0;a<r.length;++a){var s=r[a];s.wrappedCallback==e?this.isSupportedEvent(t)||(this.removeEventListener?this.removeEventListener(s.eventName,s.wrappedCallback,!!s.cap):this.detachEvent("on"+s.eventName,s.wrappedCallback,!!s.cap)):o.push(s)}return this._azar_extendEvents[n?"prioritize":"nonprioritize"][t]=o,this};var b=["altKey","bubbles","button","buttons","cancelBubble","cancelable","clientX","clientY","composed","ctrlKey","currentTarget","defaultPrevented","deltaMode","deltaX","deltaY","deltaZ","detail","eventPhase","explicitOriginalTarget","isTrusted","layerX","layerY","metaKey","movementX","movementY","mozInputSource","mozPressure","offsetX","offsetY","originalTarget","pageX","pageY","rangeOffset","rangeParent","region","relatedTarget","returnValue","screenX","screenY","shiftKey","srcElement","target","timeStamp","type","deltaMode","deltaX","deltaY","deltaZ","preventDefault"],m=["clientX","clientY","force","identifier","pageX","pageY","rotationAngle","screenX","screenY","target"];function g(t,e){for(var n,i,r={},o=0;o<m.length;++o)void 0!==(i=t[n=m[o]])&&(r[n]="function"==typeof i?t[n].bind(t):t[n]);return Object.assign(r,t),e&&Object.assign(r,e),r}f.isMouseRight=function(t){var e=!1;return"which"in t?e=3==t.which:"button"in t&&(e=2==t.button),e},f.isMouseLeft=function(){var t=!1;return"which"in event?t=1==event.which:"button"in event&&(t=1==event.button),t},f.hitElement=function(t,e){for(var n=e.target;n;){if(n==t)return!0;n=n.parentElement}return!1},f.copyEvent=function(t,e){for(var n,i,r={},o=0;o<b.length;++o)void 0!==(i=t[n=b[o]])&&(r[n]="function"==typeof i?t[n].bind(t):t[n]);return Object.assign(r,t),e&&Object.assign(r,e),t.changedTouches&&(r.changedTouches=Array.prototype.map.call(t.changedTouches,(function(t){return g(t)}))),t.touches&&(r.touches=Array.prototype.map.call(t.touches,(function(t){return g(t)}))),r},f.eventProperties=b;var v,y=f,w=n(0);function x(){y.call(this),this._azar_extendAttributes=this._azar_extendAttributes||{},this._azar_extendTags={},this.eventHandler={}}d.mixClass(x,y),x.prototype.init=function(t){Object.assign(this,t||{})},x.prototype.eventHandler={},x.prototype.super=function(){},x.prototype.defineAttribute=function(t,e){this._azar_extendAttributes[t]=e},x.prototype.defineAttributes=function(t){for(var e in t)this.defineAttribute(e,t[e])},x.prototype.attr=function(){if(1==arguments.length){if("string"==typeof arguments[0])return this._azar_extendAttributes[arguments[0]]?this._azar_extendAttributes[arguments[0]].get.call(this):this.getAttribute(arguments[0]);for(var t in arguments[0])this.attr(t,arguments[0][t])}else 2==arguments.length&&(null==arguments[1]?this._azar_extendAttributes[arguments[0]]?this._azar_extendAttributes[arguments[0]].remove.call(this,arguments[1]):this.removeAttribute(arguments[0]):this._azar_extendAttributes[arguments[0]]?this._azar_extendAttributes[arguments[0]].set.call(this,arguments[1]):this.setAttribute(arguments[0],arguments[1]));return this},x.prototype.addStyle=function(t,e){if("string"==typeof t)t.indexOf("-")>=0?this.style.setProperty(t,e):this.style[t]=e;else for(var n in t)this.addStyle(n,t[n]);return this},x.prototype.removeStyle=function(t){var e;if(t.charAt)t.indexOf("-")>=0?this.style.removeProperty(t):(this.style[t]=null,delete this.style[t]);else if(t.map&&t.forEach)for(var n=0;n<t.length;++n)this.removeStyle(t[n]);else for(e in t)this.removeStyle(e);return this},x.prototype.addChild=function(t){if(t.indexOf&&t.map&&t.forEach)for(var e=0;e<t.length;++e)this.appendChild(t[e]);else this.appendChild(t);return this},x.prototype.addTo=function(t){if(!t||!t.appendChild)throw Error("Can not append to "+t+"!");return t.addChild?t.addChild(this):t.appendChild(this),this},x.prototype.selfRemove=function(){return this.parentElement&&this.parentElement.removeChild(this),this},x.prototype.selfReplace=function(t){return this.parentElement&&this.parentElement.replaceChild(t,this),this},x.prototype.clearChild=function(){for(;this.firstChild;)this.removeChild(this.firstChild);return this},x.prototype.containsClass=function(t){if(t.forEach&&t.map){for(var e=0;e<t.length;++e)if(!this.classList.containsClass(t[e]))return!1;return!0}return this.classList.contains(t)},x.prototype.addClass=function(t){if(t&&t.forEach&&t.map)for(var e=0;e<t.length;++e)this.classList.add(t[e]);else this.classList.add(t);return this},x.prototype.removeClass=function(t){if(t&&t.forEach&&t.map)for(var e=0;e<t.length;++e)this.classList.remove(t[e]);else this.classList.remove(t);return this},x.prototype.getComputedStyleValue=function(t){return window.getComputedStyle(this).getPropertyValue(t)},x.prototype.getFontSize=function(){return parseFloat(this.getComputedStyleValue("font-size").replace("px",""))},x.prototype.findChildAfter=function(t){for(var e=0,n=0;n<this.childNodes.length;++n)if(t==this.childNodes[n]){e=n+1;break}if(this.childNodes[e])return this.childNodes[e]},x.prototype.findChildBefore=function(t){for(var e=0,n=0;n<this.childNodes.length;++n)if(t==this.childNodes[n]){e=n-1;break}if(this.childNodes[e])return this.childNodes[e]},x.prototype.addChildBefore=function(t,e){return this.insertBefore(t,e),this},x.prototype.addChildAfter=function(t,e){var n=this.findChildAfter(e);return n?this.addChildBefore(t,n):this.addChild(t)},x.prototype.getBoundingRecursiveRect=function(t){var e,n;void 0===t&&(t=1e4);for(var i=1e6,r={left:i,right:-i,top:i,bottom:-i,width:0,height:0},o=[{e:this,d:0}];o.length>0;)if((e=o.pop()).e.getBoundingClientRect){var a=e.e.getBoundingClientRect();if(!a||!(a.width||a.height||a.left||a.right))continue;r.left=Math.min(r.left,a.left),r.top=Math.min(r.top,a.top),r.bottom=Math.max(r.bottom,a.bottom),r.right=Math.max(r.right,a.right),r.height=r.bottom-r.top,r.width=r.right-r.left;var s=e.e.childNodes;if(s&&s.length>0&&e.d<t)for(var c=0;c<s.length;++c)n={e:s[c],d:e.d+1},o.push(n)}return r},x.prototype.isDescendantOf=function(t){for(var e=this;e;){if(e===t)return!0;e=e.parentNode}return!1},x.prototype.getCSSRules=function(){var t=document.styleSheets,e=[];for(var n in this.matches=this.matches||this.webkitMatchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector,t)if(!t[n].href){var i=t[n].rules||t[n].cssRules;for(var r in i)this.matches(i[r].selectorText)&&e.push(i[r])}return e},x.prototype.afterDisplayed=function(t){t||(t=2851200);var e=this;return new Promise((function(n,i){!function i(){if(t<0);else{t--;var r=e.getBoundingClientRect();if(!(r.width>0||r.height>0))return void setTimeout(i,33);n()}}()}))},v=x.prototype.on,w.a.isSafari&&!w.a.isMobile&&(x.prototype.on=function(){if(!this.isSupportedEvent("mouseleave")&&"mouseleave"==arguments[0]){this.defineEvent("mouseleave");var t=function(t){var e=this.getBoundingClientRect(),n=!1;n|=t.clientX<e.left+1,n|=t.clientX>=e.right-1,n|=t.clientY<e.top+1,(n|=t.clientY>=e.bottom-1)&&this.emit("mouseleave",t)};this.addEventListener("mouseleave",t,!0)}return v.apply(this,arguments),this}),w.a.isFirefox&&(x.prototype.on=function(){if(!this.isSupportedEvent("wheel")&&"wheel"==arguments[0]){this.defineEvent("wheel");var t=function(t){var e=t.absolEvent;if(!e){e=Object.assign({},t);for(var n=0;n<x.eventProperties.length;++n){var i=x.eventProperties[n];"function"==typeof e[i]&&(e[i]=e[i].bind(t))}e.preventDefault=function(){t.preventDefault()},e.mozFixWheelScale||(e.mozDeltaY=t.deltaY,e.mozFixWheelScale=!0,Object.defineProperty(e,"deltaY",{get:function(){return 100*this.mozDeltaY/3}})),t.absolEvent=e}this.emit("wheel",e)};this.addEventListener("wheel",t)}return v.apply(this,arguments),this}),x.eventProperties=["altKey","bubbles","button","buttons","cancelBubble","cancelable","clientX","clientY","composed","ctrlKey","currentTarget","defaultPrevented","deltaMode","deltaX","deltaY","deltaZ","detail","eventPhase","explicitOriginalTarget","isTrusted","layerX","layerY","metaKey","movementX","movementY","mozInputSource","mozPressure","offsetX","offsetY","originalTarget","pageX","pageY","rangeOffset","rangeParent","region","relatedTarget","returnValue","screenX","screenY","shiftKey","srcElement","target","timeStamp","type","deltaMode","deltaX","deltaY","deltaZ"];var _=x;function E(){_.call(this)}_.prototype.afterAttached=function(){if(this.isDescendantOf(document.body))return Promise.resolve();var t,e=this.$attachhook||this.querySelector(".absol-attachhook");e||("svg"===this.tagName.toLowerCase()||this.getBBox?((e=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttributeNS(null,"href",""),t=E):((e=document.createElement("img")).src="",t=E),e.classList.add("absol-attachhook"),Object.assign(e,t.prototype),t.call(e),e.defineEvent("attached"),this.$attachhook=e,this.$attachhook.on("error",(function(t){console.log("error"),this.isDescendantOf(document.body)&&this.emit("attached",t,this)})),this.appendChild(e));return new Promise((function(t){e.once("attached",t)}))},d.mixClass(E,_),E.prototype.attr=function(){if(1==arguments.length){if("string"==typeof arguments[0])return this._azar_extendAttributes[arguments[0]]?this._azar_extendAttributes[arguments[0]].get.call(this):this.getAttributeNS(null,arguments[0]);for(var t in arguments[0])this.attr(t,arguments[0][t])}else 2==arguments.length&&(null==arguments[1]?this._azar_extendAttributes[arguments[0]]?this._azar_extendAttributes[arguments[0]].remove.call(this,arguments[1]):this.removeAttributeNS(null,arguments[0]):this._azar_extendAttributes[arguments[0]]?this._azar_extendAttributes[arguments[0]].set.call(this,arguments[1]):this.setAttributeNS(null,arguments[0],arguments[1]));return this};var z=E;function O(){this.elts=[],this.cache=[],this.cacheOf=null,this.lastResizeTime=0,window.addEventListener("resize",this.update.bind(this)),this.goDownAndCache=this.goDownAndCache.bind(this),this.notifyToElt=this.notifyToElt.bind(this)}O.prototype.goDownAndCache=function(t){this.notifyToElt(t)&&this.cache.push(t),t.childNodes&&Array.prototype.forEach.call(t.childNodes,this.goDownAndCache)},O.prototype.notifyToElt=function(t){return"function"==typeof t.requestUpdateSize?(t.requestUpdateSize(),!0):"function"==typeof t.updateSize?(t.updateSize(),!0):"function"==typeof t.onresize?(t.onresize(),!0):void 0},O.prototype.update=function(){var t=(new Date).getTime();t-100>this.lastResizeTime&&(this.removeTrash(),this.cache=void 0),this.lastResizeTime=t,null!==this.cacheOf&&(this.cache=void 0,this.cacheOf=null),void 0===this.cache?(this.cache=[],this.elts.forEach(this.goDownAndCache)):this.cache.forEach(this.notifyToElt)},O.prototype.removeTrash=function(){this.elts=this.elts.filter((function(t){return _.prototype.isDescendantOf.call(t,document.body)}))},O.prototype.updateUp=function(t){for(;t;){if("function"==typeof t.requestUpdateSize)return t.requestUpdateSize(),!0;if("function"==typeof t.updateSize)return t.updateSize(),!0;if("function"==typeof t.onresize)return t.onresize(),!0;t=t.parentElement}},O.prototype.updateDown=function(t){var e=(new Date).getTime();e-100>this.lastResizeTime&&(this.cache=void 0),this.lastResizeTime=e,this.cacheOf!==t&&(this.cache=void 0,this.cacheOf=t),void 0===this.cache?(this.cache=[],this.goDownAndCache(t)):this.cache.forEach(this.notifyToElt)},O.prototype.add=function(t){for(var e=0;e<this.elts.length;++e)if(_.prototype.isDescendantOf.call(t,this.elts[e]))return!1;return this.elts=this.elts.filter((function(e){return!_.prototype.isDescendantOf.call(e,t)})),this.elts.push(t),!0};var C=new O;var S=function(){var t=N.ShareInstance._({tag:"img",class:"absol-attachhook",extendEvent:["attached"],style:{display:"none"},attr:{src:""},on:{error:function(t){!this._attached&&this.isDescendantOf(document.body)&&(this._attached=!0,this.emit("attached",t,this))}}});return t._attached=!1,Object.defineProperty(t,"attached",{get:function(){return this._attached}}),t.resetState=function(){this._attached=!1,this.src=""},t},A=function(){var t=document.createElement("div");t.innerHTML='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>';var e=t.childNodes[0],n=Object.getOwnPropertyDescriptors(_.prototype);return Object.defineProperties(e,n),_.call(e),e};function N(t){this.defaultTag="div",t=t||{},this.creator=t.creator||{},Object.defineProperties(this.creator,{svg:{set:function(){},get:function(){return A}},attachhook:{set:function(){},get:function(){return S}}}),this["$ ".trim()]=this.$.bind(this),this["_ ".trim()]=this._.bind(this),this.$$=this.$$.bind(this),this.buildDom=this._}N.prototype.fromCode=function(t){var e="div";(t=t.trim().replace(/>\s+</gm,"><")).startsWith("<td")||t.startsWith("<th")&&!t.startsWith("<thead")?e="tr":t.startsWith("<tr")?e="tbody":(t.startsWith("<thead")||t.startsWith("<tbody"))&&(e="table");var n=document.createElement(e);n.innerHTML=t;var i=n.childNodes[0],r=Object.getOwnPropertyDescriptors(_.prototype);return Object.defineProperties(i,r),_.call(i),i},N.prototype.$=function(t,e,n){var i;return(i=N.isDomNode(t)?t:this.select(t,e,n))&&this.attach(i),i},N.prototype.selectAttacth=N.prototype.$,N.prototype.select=function(t,e,n){return e=e||document.documentElement,h.compileJSPath(t).findFirst(e,n)};var T={AElementNS:{constructor:z,prototypeKeys:Object.keys(z.prototype)},AElement:{constructor:_,prototypeKeys:Object.keys(_.prototype)}};function k(t,e){var n=!0;return t.complete||(n=!1),0===t.naturalWidth&&(n=!1),n?Promise.resolve():new Promise((function(n){t.addEventListener?t.addEventListener("load",n,!1):t.attachEvent("onload",n,!1),setTimeout(n,e||5e3)}))}function R(t,e){var n=t.cloneNode();if(t.childNodes)for(var i=Array.prototype.map.call(t.childNodes,(function(t){return R(t,e)})),r=0;r<i.length;++r)n.appendChild(i[r]);return e&&e(t,n)||n}function L(t,e){if(!t.getAttribute&&!t.getAttributeNS)return e;if(!e.getAttribute&&!e.getAttributeNS)return e;var n=_.prototype.getCSSRules.call(t).reduce((function(t,e){for(var n=0;n<e.style.length;++n)t[e.style[n]]=!0;return t}),{});for(var i in n)e.style[i]=_.prototype.getComputedStyleValue.call(t,i);return e}N.prototype.attach=function(t){if(!t.attr){for(var e,n=t.getBBox&&"svg"!==t.tagName?T.AElementNS:T.AElement,i=n.constructor,r=i.prototype,o=n.prototypeKeys,a=o.length,s=0;s<a;++s)t[e=o[s]]=r[e];Object.assign(t,i.prototype),i.call(t)}},N.prototype.makeNewElement=function(t){return document.createElement(t)},N.prototype.makeNewTextNode=function(t){return document.createTextNode(t)},N.prototype._=function(t,e){var n,i;if(N.isDomNode(t))n=t,t={},e=!0;else if(t.charAt)if("<"==(t=t.trim())[0])n=this.fromCode(t),t={};else{var r=h.parseQuery(t);(t={}).tag=r.tagName||this.defaultTag,r.classList&&r.classList.length>0&&(t.class=r.classList),r.id&&(t.id=r.id),r.attributes&&(t.attr=r.attributes)}if(t.text||""===t.text)return this.makeNewTextNode(t.text);if(t.tag=t.tag||this.defaultTag,i=t.tag.prototype?t.tag:this.creator[t.tag],t.tag.prototype&&(t.tag=t.tag.tag),t.elt?n=t.elt:n||(i?n=i.render?i.render(t.data):i(t.data):(n=this.makeNewElement(t.tag),Object.assign(n,t.data))),this.attach(n),i&&(n._azar_extendTags=n._azar_extendTags||{},n._azar_extendTags[t.tag]=i,i.property&&Object.defineProperties(n,i.property),i.prototype&&d.extends(n,i.prototype),i.attribute&&n.defineAttributes(i.attribute),i.render)){if(i.eventHandler){n.eventHandler=n.eventHandler||{};var o=d.bindFunctions(n,i.eventHandler||i.prototype.eventHandler);for(var a in o){if(n.eventHandler[a])throw new Error("Same name of eventHandler["+a+"]");n.eventHandler[a]=o[a]}}i.call(n)}if(t.extendEvent&&n.defineEvent(t.extendEvent),t.attr&&n.attr(t.attr),t.on&&n.on(t.on),t.once&&n.once(t.once),t.class&&n.addClass(t.class),t.style&&n.addStyle(t.style),t.id&&n.attr("id",t.id),e||n.init(t.props),t.child){t.child=t.child instanceof Array?t.child:[t.child];for(var s=0;s<t.child.length;++s)n.addChild(this._(t.child[s],!1,!0))}return n},N.prototype.create=N.prototype._,N.prototype.$$=function(t,e){var n=this,i=[];return this.selectAttacth(t,e,(function(t){n.attach(t),i.push(t)})),i},N.prototype.install=function(t,e){var n=this;if(1==arguments.length)if(t.creator&&t.create&&t.select){var i=t.creator;Object.keys(i).forEach((function(t){if(!t.startsWith("_")&&!t.startsWith("$")){var e=i[t];"function"==typeof e&&n.creator[t]!=e&&(n.creator[t]=e)}}))}else if("function"==typeof t){var r=t.tag||p(t)||t.name;r?this.creator[r.toLowerCase()]=t:console.error("No ident name of creator function",t)}else t instanceof Array?t.forEach((function(t){var e=t.tag||p(t)||t.name;e&&(n.creator[e.toLowerCase()]=t)})):"object"==typeof t?Object.keys(t).forEach((function(e){if(!e.startsWith("_")&&!e.startsWith("$")){var i=t[e];"function"==typeof i&&n.creator[e]!=i&&(n.creator[e]=i)}})):console.error("Unknown data",t);else 2==arguments.length?t instanceof Array?(e.creator&&(e=e.creator),t.forEach((function(t){var i=e[t];"function"==typeof i&&n.creator[t]!=i&&(n.creator[t]=i)}))):t instanceof RegExp?(e.creator&&(e=e.creator),Object.keys(e).forEach((function(i){if(i.match(t)){var r=e[i];"function"==typeof r&&n.creator[i]!=r&&(n.creator[i]=r)}}))):"string"==typeof t&&t.length>0&&("function"==typeof e?this.creator[t]=e:console.error("arg1 is not a function")):console.error("Invalid param");return this},N.prototype.require=function(t){return this.creator[t]||null},N.isDomNode=function(t){return"object"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},N.activeFullScreen=function(t){t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(_.ALLOW_KEYBOARD_INPUT):t.msRequestFullscreen&&t.msRequestFullscreen()},N.deactiveFullScreen=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},N.isFullScreen=function(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)},N.traceOutBoundingClientRect=function(t){for(var e=N.getScreenSize(),n=0,i=e.width,r=0,o=e.height;t;){var a="visible"!==_.prototype.getComputedStyleValue.call(t,"overflow-x"),s="visible"!==_.prototype.getComputedStyleValue.call(t,"overflow-y"),c="html"===t.tagName.toLowerCase();if(a||s||c){var u=t.getBoundingClientRect();(a||c)&&(n=Math.max(n,u.left),i=Math.min(i,u.right)),(s||c)&&(r=Math.max(r,u.top),o=Math.min(o,u.bottom))}if(c)break;t=t.parentElement}return{left:n,right:i,top:r,bottom:o,width:i-n,height:o-r}},N.fontFaceIsLoaded=function(t,e){e=e||0;var n=this.ShareInstance._({tag:"span",style:{visibility:"hidden",position:"fixed",top:"-9999px",left:"-9999px","font-size":"256px"},props:{innerHTML:"Test string long long long"}});return n.addTo(document.body),n.afterAttached().then((function(){var i=n.getBoundingClientRect().width;return n.addStyle("font-family",t),new Promise((function(t,r){!function e(r){r<0?(t(!1),n.selfRemove()):requestAnimationFrame((function(){n.getBoundingClientRect().width!=i?(t(!0),n.selfRemove()):e(r-10)}))}(e)}))}))},N.getScreenSize=function(){var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return{WIDTH:t,HEIGHT:e,width:t,height:e}},N.waitImageLoaded=k,N.waitIFrameLoaded=function(t){return new Promise((function(e,n){document.all?t.onreadystatechange=function(){"complete"!==t.readyState&&"loaded"!==t.readyState||e()}:t.onload=e,setTimeout(e,5e3)}))},N.imageToCanvas=function(t){if("string"==typeof t&&(t=N.ShareInstance.$(t)),"img"===t.tagName.toLowerCase()){var e=N.ShareInstance._("div");e.addStyle({position:"fixed",top:"0",left:"0",zIndex:"-10000",opacity:"0"}).addTo(document.body);var n=document.createElement("canvas");return e.addChild(n),N.waitImageLoaded(t).then((function(){return n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0),e.selfRemove(),n}))}throw new Error("AElement must be image")},N.ShareInstance=new N,N.scrollWidthPromise,N.documentReady=new Promise((function(t){document.body?t():window.addEventListener("load",t)})),N.getScrollSize=function(){return N.scrollWidthPromise||(N.scrollWidthPromise=new Promise((function(t){N.documentReady.then((function(){var e=N.ShareInstance._({style:{"z-index":"-100",opacity:"0",width:"100px",height:"100px",overflow:"scroll",top:"0",left:"0","box-sizing":"content-box",position:"fixed"}}).addTo(document.body),n=N.ShareInstance._({style:{width:"100%",height:"100%"}}).addTo(e);requestAnimationFrame((function(){var i=e.getBoundingClientRect(),r=n.getBoundingClientRect();t({width:i.width-r.width,height:i.height-r.height}),e.selfRemove()}))}))}))),N.scrollWidthPromise},N.depthClone=R,N.depthCloneWithStyle=function(t,e){return R(t,(function(t,n){(t.getAttribute||t.getAttributeNS)&&(L(t,n),e&&e(t,n))}))},N.copyStyleRule=L,N.getConstructDescriptor=function(t){var e={};e.tag=t.tagName.toLowerCase();var n,i=t.getAttribute("class");i&&(n=i.trim().split(/\s+/)),n&&n.length>0&&(e.class=n);var r,o=t.getAttribute("style");o&&(r=function(t){return t.split(";").map((function(t){var e=t.split(":");if(e.length<2)return null;var n=e.shift().trim(),i=e.join(":").trim();return 0==n.length||0==i.length?null:[n,i]})).filter((function(t){return null!=t})).reduce((function(t,e){return t[e[0]]=e[1],t}),{})}(o));for(var a,s,c,u,h,l,d=t.attributes,p={},f={},b={},m=0;m<d.length;++m)s=(a=d[m]).nodeName,c=a.nodeValue,"style"!=s&&"class"!=s&&((u=s.match(/^on(.+)/))?f[u[1]]=new Function("event","sender",c):(h=s.match(/^prop-(.+)/))?b[h[1]]=c:p[s]=c);for(l in r){e.style=r;break}for(l in p){e.attr=p;break}for(l in f){e.on=f;break}for(l in b){e.props=b;break}return e},N.addToResizeSystem=function(t){C.add(t)},N.updateResizeSystem=function(){C.update()},N.updateSizeUp=function(t){C.updateUp(t)};var P=N;function j(t,e){this.x=t,this.y=e}j.prototype.copy=function(){return new j(this.x,this.y)},j.prototype.toString=function(){return"("+this.x+", "+this.y+")"},j.prototype.abs=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},j.prototype.normalized=function(){var t=this.abs();return 0==t&&(t=1),this.div(t)},j.prototype.mult=function(t){return new j(this.x*t,this.y*t)},j.prototype.div=function(t){return new j(this.x/t,this.y/t)},j.prototype.dist=function(t){var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},j.prototype.sub=function(t){return new j(this.x-t.x,this.y-t.y)},j.prototype.add=function(t){return new j(this.x+t.x,this.y+t.y)},j.prototype.inv=function(){return new j(-this.x,-this.y)},j.prototype.linear=function(t,e){return new j(this.x*(1-e)+t.x*e,this.y*(1-e)+t.y*e)},j.prototype.dot=function(t){return this.x*t.x+this.y*t.y},j.prototype.direction=function(){return Math.atan2(this.y,this.x)},j.prototype.translate=function(t,e){return this.add(new j(t,e))},j.prototype.rotate=function(t){var e=Math.sin(t),n=Math.cos(t);return new j(this.x*n-this.y*e,this.x*e+this.y*n)},j.prototype.rotate90=function(){return new j(-this.y,this.x)},j.fromDirection=function(t){return new j(Math.cos(t),Math.sin(t))},j.make=function(t,e){return t instanceof Array?new j(t[0],t[1]):t instanceof j?t.copy():new j(t,e)};var M=j,F=P.ShareInstance._,D=(P.ShareInstance.$,F("canvas").addTo(document.body)),W=D.getContext("2d"),B=[],I=new Promise((function(t){D.on("click",t)})),Y=new Image;Y.src="./SNOW.png";var q=new Image;q.src="./ILU.png";var X=F("audio");X.src="./letitgo.mp3",B.push(new Promise((function(t){X.once("loadedmetadata",t)})).then((function(){I.then((function(){X.volume=.1,X.play(),setTimeout((function t(){X.volume+.05>=1?X.volume=1:(X.volume+=.05,setTimeout(t,50))}),200)}))}))),B.push(k(Y).then((function(){Y.width=Y.naturalWidth,Y.height=Y.naturalHeight}))),B.push(k(q).then((function(){q.width=q.naturalWidth,q.height=q.naturalHeight})));var H=Array(300).fill(0),$=Array(300),K=D.getBoundingClientRect(),V=K.width,U=K.height,Z=3;function G(){for(var t=0;t<$.length;t++)$[t]=new M(Math.random()*(V+150)-130,Math.random()*U),H[t]=30*Math.random()+2;H[0]=30}function J(){W.clearRect(0,0,V,U),$.forEach((function(t,e){var n=H[e]/Y.height,i=0===e?q:Y;W.drawImage(i,0,0,i.width,i.height,t.x,t.y,i.width*n,i.height*n)}))}function Q(){K=D.getBoundingClientRect(),V=K.width,U=K.height,D.width=V,D.height=U,G()}function tt(t){(t.changedTouches?t.changedTouches[0].clientX:t.clientX)<V/2?Z-=1:Z+=1}Q(),window.addEventListener("resize",Q),D.on("mousedown",tt),D.on("touchstart",tt),Promise.all(B).then((function(){var t;G(),J();var e=(new Date).getTime();setInterval((function(){var n;t=e,e=(new Date).getTime(),n=(e-t)/1e3,$.forEach((function(t,e){t.y>U&&(t.y=-50),t.x<-200?t.x=V+100*Math.random():t.x>V+101&&(t.x=-100-100*Math.random()),t.x+=Z*Math.sqrt(H[e])*n,t.y+=2*H[e]*n})),J()}),1e3/30)})),window.p=$}]);