253 lines
1.2 MiB
253 lines
1.2 MiB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OptimalSelect=t():e.OptimalSelect=t()}(this,function(){return i=[function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertNodeList=function(e){for(var t=e.length,i=new Array(t),r=0;r<t;r++)i[r]=e[r];return i},t.escapeValue=function(e){return e&&e.replace(/['"`\\/:\?&!#$%^()[\]{|}*+;,.<=>@~]/g,"\\$&").replace(/\n/g,"A")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCommonAncestor=function(e){for(var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).root,r=void 0===t?document:t,n=[],i=(e.forEach(function(e,t){for(var i=[];e!==r;)e=e.parentNode,i.unshift(e);n[t]=i}),n.sort(function(e,t){return e.length-t.length}),n.shift()),s=null,o=0,a=i.length;o<a;o++)if("break"===function(){var t=i[o];if(n.some(function(e){return!e.some(function(e){return e===t})}))return"break";s=t}())break;return s},t.getCommonProperties=function(e){var l={classes:[],attributes:{},tag:null};return e.forEach(function(e){var i,r,n,t,s=l.classes,o=l.attributes,a=l.tag;void 0!==s&&((i=e.getAttribute("class"))?(i=i.trim().split(" "),s.length?(s=s.filter(function(t){return i.some(function(e){return e===t})})).length?l.classes=s:delete l.classes:l.classes=i):delete l.classes),void 0!==o&&(r=e.attributes,n=Object.keys(r).reduce(function(e,t){var t=r[t],i=t.name;return t&&"class"!==i&&(e[i]=t.value),e},{}),s=Object.keys(n),t=Object.keys(o),s.length?t.length?(o=t.reduce(function(e,t){var i=o[t];return i===n[t]&&(e[t]=i),e},{}),Object.keys(o).length?l.attributes=o:delete l.attributes):l.attributes=n:delete l.attributes),void 0!==a&&(s=e.tagName.toLowerCase(),a?s!==a&&delete l.tag:l.tag=s)}),l}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=t.length?(0,h.convertNodeList)(t):[t]);if(!t.length||t.some(function(e){return 1!==e.nodeType}))throw new Error('Invalid input - to compare HTMLElements its necessary to provide a reference of the selected node(s)! (missing "elements")');(0,u.default)(t[0],i);var r=e.replace(/> /g,">").split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/);if(r.length<2)return c("",e,"",t);var n=[r.pop()];for(;1<r.length;){var s=r.pop(),o=r.join(" "),a=n.join(" "),l=o+" "+a;document.querySelectorAll(l).length!==t.length&&n.unshift(c(o,s,a,t))}n.unshift(r[0]),(r=n)[0]=c("",r[0],r.slice(1).join(" "),t),r[r.length-1]=c(r.slice(0,-1).join(" "),r[r.length-1],"",t);return r.join(" ").replace(/>/g,"> ").trim()};var r=i(3),u=(r=r)&&r.__esModule?r:{default:r},h=i(0);function c(i,r,n,s){if(i.length&&(i+=" "),n.length&&(n=" "+n),/\[*\]/.test(r)){var e=r.replace(/=.*$/,"]"),o=""+i+e+n;if(p(document.querySelectorAll(o),s))r=e;else for(var a=document.querySelectorAll(""+i+e),l=0,t=a.length;l<t;l++)if("break"===function(){var e,t=a[l];if(s.some(function(e){return t.contains(e)}))return e=t.tagName.toLowerCase(),o=""+i+e+n,p(document.querySelectorAll(o),s)&&(r=e),"break"}())break}if(/>/.test(r)&&(e=r.replace(/>/,""),o=""+i+e+n,p(document.querySelectorAll(o),s)&&(r=e)),/:nth-child/.test(r)&&(e=r.replace(/nth-child/g,"nth-of-type"),o=""+i+e+n,p(document.querySelectorAll(o),s)&&(r=e)),/\.\S+\.\S+/.test(r)){for(var u=r.trim().split(".").slice(1).map(function(e){return"."+e}).sort(function(e,t){return e.length-t.length});u.length;){var h=r.replace(u.shift(),"").trim();if(!(o=(""+i+h+n).trim()).length||">"===o.charAt(0)||">"===o.charAt(o.length-1))break;p(document.querySelectorAll(o),s)&&(r=h)}if((u=r&&r.match(/\./g))&&2<u.length)for(var c=document.querySelectorAll(""+i+r),l=0,t=c.length;l<t;l++)if("break"===function(){var e,t=c[l];if(s.some(function(e){return t.contains(e)}))return e=t.tagName.toLowerCase(),o=""+i+e+n,p(document.querySelectorAll(o),s)&&(r=e),"break"}())break}return r}function p(i,e){var r=i.length;return r===e.length&&e.every(function(e){for(var t=0;t<r;t++)if(i[t]===e)return!0;return!1})}e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f="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},m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var i=t,r=[],n=!0,t=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!i||r.length!==i);n=!0);}catch(e){t=!0,s=e}finally{try{!n&&a.return&&a.return()}finally{if(t)throw s}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")};function _(e,i){e.forEach(function(e){var t=!0;i(e,function(){return t=!1}),e.childTags&&t&&_(e.childTags,i)})}function g(e,t,i){for(;e.parent;){if(i(e=e.parent))return e;if(e===t)break}return null}t.default=function(e,t){return!1;var i=Object.getPrototypeOf(!0);Object.getOwnPropertyDescriptor(i,"childTags")||Object.defineProperty(i,"childTags",{enumerable:!0,get:function(){return this.children.filter(function(e){return"tag"===e.type||"script"===e.type||"style"===e.type})}});Object.getOwnPropertyDescriptor(i,"attributes")||Object.defineProperty(i,"attributes",{enumerable:!0,get:function(){var r=this.attribs,e=Object.keys(r),t=e.reduce(function(e,t,i){return e[i]={name:t,value:r[t]},e},{});return Object.defineProperty(t,"length",{enumerable:!1,configurable:!1,value:e.length}),t}});i.getAttribute||(i.getAttribute=function(e){return this.attribs[e]||null});i.getElementsByTagName||(i.getElementsByTagName=function(t){var i=[];return _(this.childTags,function(e){e.name!==t&&"*"!==t||i.push(e)}),i});i.getElementsByClassName||(i.getElementsByClassName=function(e){var i=e.trim().replace(/\s+/g," ").split(" "),r=[];return _([this],function(e){var t=e.attribs.class;t&&i.every(function(e){return-1<t.indexOf(e)})&&r.push(e)}),r});i.querySelectorAll||(i.querySelectorAll=function(e){var i=this,r=(e=e.replace(/(>)(\S)/g,"$1 $2").trim()).split(" ").reverse().map(function(e,t){var i,r,n,s=0===t,t=e.split(":"),e=m(t,2),o=e[0],t=e[1],a=null,l=null;switch(!0){case/>/.test(o):l=function(t){return function(e){return e(t.parent)&&t.parent}};break;case/^\./.test(o):var u=o.substr(1).split(".");a=function(e){var t=e.attribs.class;return t&&u.every(function(e){return-1<t.indexOf(e)})},l=function(e,t){return s?e.getElementsByClassName(u.join(" ")):"function"==typeof e?e(a):g(e,t,a)};break;case/^\[/.test(o):var h=o.replace(/\[|\]|"/g,"").split("="),h=m(h,2),c=h[0],p=h[1];a=function(e){return-1<Object.keys(e.attribs).indexOf(c)&&(!p||e.attribs[c]===p)},l=function(e,t){if(s){r=[],_([e],function(e){a(e)&&r.push(e)});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof e?e(a):g(e,t,a)};break;case/^#/.test(o):var d=o.substr(1);a=function(e){return e.attribs.id===d},l=function(e,t){if(s){r=[],_([e],function(e,t){a(e)&&(r.push(e),t())});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof e?e(a):g(e,t,a)};break;case/\*/.test(o):a=function(e){return!0},l=function(e,t){if(s){r=[],_([e],function(e){return r.push(e)});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof e?e(a):g(e,t,a)};break;default:a=function(e){return e.name===o},l=function(e,t){if(s){r=[],_([e],function(e){a(e)&&r.push(e)});var i={v:r};if("object"===(void 0===i?"undefined":f(i)))return i.v}var r;return"function"==typeof e?e(a):g(e,t,a)}}return t?(e=t.match(/-(child|type)\((\d+)\)$/),i=e[1],r=parseInt(e[2],10)-1,n=function(t){if(t){var e=t.parent.childTags;if((e="type"===i?e.filter(a):e).findIndex(function(e){return e===t})===r)return!0}return!1},function(e){e=l(e);return s?e.reduce(function(e,t){return n(t)&&e.push(t),e},[]):n(e)&&e}):l}),e=r.shift(),n=r.length;return e(this).filter(function(e){for(var t=0;t<n;){if(!(e=r[t](e,i)))return!1;t+=1}return!0})});i.contains||(i.contains=function(i){var r=!1;return _([this],function(e,t){e===i&&(r=!0,t())}),r});return!0},e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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.getSingleSelector=h,t.getMultiSelector=c,t.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(!e.length||e.name?h:c)(e,t)};var s=u(i(3)),n=u(i(5)),o=u(i(2)),a=i(0),l=i(1);function u(e){return e&&e.__esModule?e:{default:e}}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(1!==(e=3===e.nodeType?e.parentNode:e).nodeType)throw new Error('Invalid input - only HTMLElements or representations of them are supported! (not "'+(void 0===e?"undefined":r(e))+'")');(0,s.default)(e,t);var i=(0,n.default)(e,t);return(0,o.default)(i,e,t)}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if((e=Array.isArray(e)?e:(0,a.convertNodeList)(e)).some(function(e){return 1!==e.nodeType}))throw new Error("Invalid input - only an Array of HTMLElements or representations of them is supported!");(0,s.default)(e[0],t);var i=h((0,l.getCommonAncestor)(e,t),t),r=function(e){var e=(0,l.getCommonProperties)(e),t=e.classes,i=e.attributes,e=e.tag,r=[];e&&r.push(e);t&&(e=t.map(function(e){return"."+e}).join(""),r.push(e));i&&(t=Object.keys(i).reduce(function(e,t){return e.push("["+t+'="'+i[t]+'"]'),e},[]).join(""),r.push(t));return[r.join("")]}(e)[0],i=(0,o.default)(i+" "+r,e,t),n=(0,a.convertNodeList)(document.querySelectorAll(i));return e.every(function(t){return n.some(function(e){return e===t})})?i:console.warn("\n The selected elements can't be efficiently mapped.\n Its probably best to use multiple single selectors instead!\n ",e)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=t.root,r=void 0===i?document:i,i=t.skip,n=void 0===i?null:i,i=t.priority,s=void 0===i?["id","class","href","src"]:i,i=t.ignore,o=void 0===i?{}:i,a=[],l=e,u=a.length,h=!1,c=n&&(Array.isArray(n)?n:[n]).map(function(t){return"function"!=typeof t?function(e){return e===t}:t});Object.keys(o).forEach(function(e){"class"===e&&(h=!0);var i=o[e];"function"!=typeof i&&("boolean"==typeof(i="string"==typeof(i="number"==typeof i?i.toString():i)?new RegExp((0,p.escapeValue)(i).replace(/\\/g,"\\\\")):i)&&(i=i?/(?:)/:/.^/),o[e]=function(e,t){return i.test(t)})}),h&&function(){var r=o.attribute;o.attribute=function(e,t,i){return o.class(t)||r&&r(e,t,i)}}();for(;l!==r;){if(!0!==function(t){return n&&c.some(function(e){return e(t)})}(l)){if(d(s,l,o,a,r))break;if(f(l,o,a,r))break;d(s,l,o,a),a.length===u&&f(l,o,a),a.length===u&&!function(e,t,i,r){for(var n=t.parentNode,s=n.childTags||n.children,o=0,a=s.length;o<a;o++){var l,u,h=s[o];if(h===t)return(l=m(e,h,i))?(u="> "+l+":nth-child("+(o+1)+")",r.unshift(u)):console.warn("\n Element couldn't be matched through strict ignore pattern!\n ",h,i,l)}}(s,l,o,a)}l=l.parentNode,u=a.length}l===r&&(t=m(s,l,o),a.unshift(t));return a.join(" ")};var p=i(0),c={attribute:function(e){return-1<["style","data-reactid","data-react-checksum"].indexOf(e)}};function d(e,t,i,r,n){n=4<arguments.length&&void 0!==n?n:t.parentNode,e=s(e,t,i);if(e&&1===n.querySelectorAll(e).length)return r.unshift(e),1}function s(i,e,t){for(var r=e.attributes,n=Object.keys(r).sort(function(e,t){e=i.indexOf(r[e].name),t=i.indexOf(r[t].name);return-1===t?-1===e?0:-1:e-t}),s=0,o=n.length;s<o;s++){var a=n[s],a=r[a],l=a.name,a=(0,p.escapeValue)(a.value),u=t[l]||t.attribute,h=c[l]||c.attribute;if(!_(u,l,a,h))return u="["+l+'="'+a+'"]',!1===/\b\d/.test(a)&&("id"===l&&(u="#"+a),"class"===l&&(u="."+a.trim().replace(/\s+/g,"."))),u}return null}function f(e,t,i,r){r=3<arguments.length&&void 0!==r?r:e.parentNode,e=n(e,t);if(e&&1===r.getElementsByTagName(e).length)return i.unshift(e),1}function n(e,t){e=e.tagName.toLowerCase();return _(t.tag,null,e)?null:e}function m(e,t,i){return s(e,t,i)||n(t,i)}function _(e,t,i,r){return!i||(e=e||r)&&e(t,i,r)}e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.common=t.optimize=t.getMultiSelector=t.getSingleSelector=t.select=void 0;var r=i(4),n=(Object.defineProperty(t,"getSingleSelector",{enumerable:!0,get:function(){return r.getSingleSelector}}),Object.defineProperty(t,"getMultiSelector",{enumerable:!0,get:function(){return r.getMultiSelector}}),o(r)),s=o(i(2)),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}}(i(1));function o(e){return e&&e.__esModule?e:{default:e}}t.select=n.default,t.optimize=s.default,t.common=i,t.default=n.default}],n={},r.m=i,r.c=n,r.i=function(e){return e},r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6);function r(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,n}),!function(n,F,h){"use strict";var N=["","webkit","Moz","MS","ms","o"],z=F.createElement("div"),B="function",s=Math.round,c=Math.abs,U=Date.now;function j(e,t,i){return setTimeout(Y(e,i),t)}function i(e,t,i){return Array.isArray(e)&&(o(e,i[t],i),1)}function o(e,t,i){if(e)if(e.forEach)e.forEach(t,i);else if(e.length!==h)for(r=0;r<e.length;)t.call(i,e[r],r,e),r++;else for(var r in e)e.hasOwnProperty(r)&&t.call(i,e[r],r,e)}function G(i,e,t){var r="DEPRECATED METHOD: "+e+"\n"+t+" AT \n";return function(){var e=new Error("get-stack-trace"),e=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",t=n.console&&(n.console.warn||n.console.log);return t&&t.call(n.console,r,e),i.apply(this,arguments)}}var a="function"!=typeof Object.assign?function(e){if(e===h||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(r!==h&&null!==r)for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}return t}:Object.assign,X=G(function(e,t,i){for(var r=Object.keys(t),n=0;n<r.length;)i&&e[r[n]]!==h||(e[r[n]]=t[r[n]]),n++;return e},"extend","Use `assign`."),H=G(function(e,t){return X(e,t,!0)},"merge","Use `assign`.");function e(e,t,i){var t=t.prototype,r=e.prototype=Object.create(t);r.constructor=e,r._super=t,i&&a(r,i)}function Y(e,t){return function(){return e.apply(t,arguments)}}function W(e,t){return typeof e==B?e.apply(t&&t[0]||h,t):e}function V(e,t){return e===h?t:e}function t(t,e,i){o(u(e),function(e){t.addEventListener(e,i,!1)})}function r(t,e,i){o(u(e),function(e){t.removeEventListener(e,i,!1)})}function q(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function l(e,t){return-1<e.indexOf(t)}function u(e){return e.trim().split(/\s+/g)}function p(e,t,i){if(e.indexOf&&!i)return e.indexOf(t);for(var r=0;r<e.length;){if(i&&e[r][i]==t||!i&&e[r]===t)return r;r++}return-1}function d(e){return Array.prototype.slice.call(e,0)}function K(e,i,t){for(var r=[],n=[],s=0;s<e.length;){var o=i?e[s][i]:e[s];p(n,o)<0&&r.push(e[s]),n[s]=o,s++}return r=t?i?r.sort(function(e,t){return e[i]>t[i]}):r.sort():r}function f(e,t){for(var i,r=t[0].toUpperCase()+t.slice(1),n=0;n<N.length;){if((i=(i=N[n])?i+r:t)in e)return i;n++}return h}var Z=1;function J(e){e=e.ownerDocument||e;return e.defaultView||e.parentWindow||n}var Q="ontouchstart"in n,$=f(n,"PointerEvent")!==h,ee=Q&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),m="touch",te="mouse",ie=25,_=1,g=4,v=8,y=1,b=2,x=4,T=8,w=16,E=b|x,S=T|w,re=E|S,ne=["x","y"],A=["clientX","clientY"];function k(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){W(t.options.enable,[t])&&i.handler(e)},this.init()}function se(e,t,i){var r=i.pointers.length,n=i.changedPointers.length,s=t&_&&r-n==0,r=t&(g|v)&&r-n==0,n=(i.isFirst=!!s,i.isFinal=!!r,s&&(e.session={}),i.eventType=t,e),r=i,s=n.session,t=r.pointers,o=t.length,o=(s.firstInput||(s.firstInput=oe(r)),1<o&&!s.firstMultiple?s.firstMultiple=oe(r):1===o&&(s.firstMultiple=!1),s.firstInput),a=s.firstMultiple,l=(a||o).center,u=r.center=ae(t),o=(r.timeStamp=U(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=he(l,u),r.distance=P(l,u),function(e,t){var i=t.center,r=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};t.eventType!==_&&s.eventType!==g||(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=e.offsetDelta={x:i.x,y:i.y});t.deltaX=n.x+(i.x-r.x),t.deltaY=n.y+(i.y-r.y)}(s,r),r.offsetDirection=ue(r.deltaX,r.deltaY),le(r.deltaTime,r.deltaX,r.deltaY)),l=(r.overallVelocityX=o.x,r.overallVelocityY=o.y,r.overallVelocity=c(o.x)>c(o.y)?o.x:o.y,r.scale=a?function(e,t){return P(t[0],t[1],A)/P(e[0],e[1],A)}(a.pointers,t):1,r.rotation=a?function(e,t){return he(t[1],t[0],A)+he(e[1],e[0],A)}(a.pointers,t):0,r.maxPointers=!s.prevInput||r.pointers.length>s.prevInput.maxPointers?r.pointers.length:s.prevInput.maxPointers,function(e,t){var i,r,n,s=e.lastInterval||t,o=t.timeStamp-s.timeStamp;{var a,l;t.eventType!=v&&(ie<o||s.velocity===h)?(a=t.deltaX-s.deltaX,l=t.deltaY-s.deltaY,o=le(o,a,l),r=o.x,n=o.y,i=c(o.x)>c(o.y)?o.x:o.y,a=ue(a,l),e.lastInterval=t):(i=s.velocity,r=s.velocityX,n=s.velocityY,a=s.direction)}t.velocity=i,t.velocityX=r,t.velocityY=n,t.direction=a}(s,r),n.element);q(r.srcEvent.target,l)&&(l=r.srcEvent.target),r.target=l,e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function oe(e){for(var t=[],i=0;i<e.pointers.length;)t[i]={clientX:s(e.pointers[i].clientX),clientY:s(e.pointers[i].clientY)},i++;return{timeStamp:U(),pointers:t,center:ae(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ae(e){var t=e.length;if(1===t)return{x:s(e[0].clientX),y:s(e[0].clientY)};for(var i=0,r=0,n=0;n<t;)i+=e[n].clientX,r+=e[n].clientY,n++;return{x:s(i/t),y:s(r/t)}}function le(e,t,i){return{x:t/e||0,y:i/e||0}}function ue(e,t){return e===t?y:c(e)>=c(t)?e<0?b:x:t<0?T:w}function P(e,t,i){var r=t[(i=i||ne)[0]]-e[i[0]],t=t[i[1]]-e[i[1]];return Math.sqrt(r*r+t*t)}function he(e,t,i){var r=t[(i=i||ne)[0]]-e[i[0]],t=t[i[1]]-e[i[1]];return 180*Math.atan2(t,r)/Math.PI}k.prototype={handler:function(){},init:function(){this.evEl&&t(this.element,this.evEl,this.domHandler),this.evTarget&&t(this.target,this.evTarget,this.domHandler),this.evWin&&t(J(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&r(this.element,this.evEl,this.domHandler),this.evTarget&&r(this.target,this.evTarget,this.domHandler),this.evWin&&r(J(this.element),this.evWin,this.domHandler)}};var ce={mousedown:_,mousemove:2,mouseup:g};function O(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,k.apply(this,arguments)}e(O,k,{handler:function(e){var t=ce[e.type];t&_&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=g),this.pressed&&(t&g&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:te,srcEvent:e}))}});var pe={pointerdown:_,pointermove:2,pointerup:g,pointercancel:v,pointerout:v},de={2:m,3:"pen",4:te,5:"kinect"},fe="pointerdown",me="pointermove pointerup pointercancel";function _e(){this.evEl=fe,this.evWin=me,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}n.MSPointerEvent&&!n.PointerEvent&&(fe="MSPointerDown",me="MSPointerMove MSPointerUp MSPointerCancel"),e(_e,k,{handler:function(e){var t=this.store,i=!1,r=e.type.toLowerCase().replace("ms",""),r=pe[r],n=de[e.pointerType]||e.pointerType,s=n==m,o=p(t,e.pointerId,"pointerId");r&_&&(0===e.button||s)?o<0&&(t.push(e),o=t.length-1):r&(g|v)&&(i=!0),o<0||(t[o]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:n,srcEvent:e}),i&&t.splice(o,1))}});var ge={touchstart:_,touchmove:2,touchend:g,touchcancel:v};function ve(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,k.apply(this,arguments)}e(ve,k,{handler:function(e){var t,i=ge[e.type];i===_&&(this.started=!0),this.started&&(t=function(e,t){var i=d(e.touches),e=d(e.changedTouches);t&(g|v)&&(i=K(i.concat(e),"identifier",!0));return[i,e]}.call(this,e,i),i&(g|v)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:m,srcEvent:e}))}});var ye={touchstart:_,touchmove:2,touchend:g,touchcancel:v};function be(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},k.apply(this,arguments)}e(be,k,{handler:function(e){var t=ye[e.type],i=function(e,t){var i=d(e.touches),r=this.targetIds;if(t&(2|_)&&1===i.length)return r[i[0].identifier]=!0,[i,i];var n,s,o=d(e.changedTouches),a=[],l=this.target;if(s=i.filter(function(e){return q(e.target,l)}),t===_)for(n=0;n<s.length;)r[s[n].identifier]=!0,n++;n=0;for(;n<o.length;)r[o[n].identifier]&&a.push(o[n]),t&(g|v)&&delete r[o[n].identifier],n++;if(a.length)return[K(s.concat(a),"identifier",!0),a]}.call(this,e,t);i&&this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:m,srcEvent:e})}});var xe=2500;function Te(){k.apply(this,arguments);var e=Y(this.handler,this);this.touch=new be(this.manager,e),this.mouse=new O(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function we(e){var t,i,e=e.changedPointers[0];e.identifier===this.primaryTouch&&(t={x:e.clientX,y:e.clientY},this.lastTouches.push(t),i=this.lastTouches,setTimeout(function(){var e=i.indexOf(t);-1<e&&i.splice(e,1)},xe))}e(Te,k,{handler:function(e,t,i){var r=i.pointerType==m,n=i.pointerType==te;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(r)!function(e,t){e&_?(this.primaryTouch=t.changedPointers[0].identifier,we.call(this,t)):e&(g|v)&&we.call(this,t)}.call(this,t,i);else if(n&&function(e){for(var t=e.srcEvent.clientX,i=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var n=this.lastTouches[r],s=Math.abs(t-n.x),n=Math.abs(i-n.y);if(s<=25&&n<=25)return!0}return!1}.call(this,i))return;this.callback(e,t,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ee,Se,Ae=f(z.style,"touchAction"),ke=Ae!==h,Pe="compute",Oe="manipulation",R="none",C="pan-x",M="pan-y",Re=ke&&(Ee={},Se=n.CSS&&n.CSS.supports,["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){Ee[e]=!Se||n.CSS.supports("touch-action",e)}),Ee);function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==Pe&&(e=this.compute()),ke&&this.manager.element.style&&Re[e]&&(this.manager.element.style[Ae]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e,t,i=[],r=(o(this.manager.recognizers,function(e){W(e.options.enable,[e])&&(i=i.concat(e.getTouchAction()))}),i.join(" "));return l(r,R)||(e=l(r,C),t=l(r,M),e&&t)?R:e||t?e?C:M:l(r,Oe)?Oe:"auto"},preventDefaults:function(e){var t=e.srcEvent,i=e.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,n=l(r,R)&&!Re[R],s=l(r,M)&&!Re[M],r=l(r,C)&&!Re[C];if(n){var o=1===e.pointers.length,a=e.distance<2,e=e.deltaTime<250;if(o&&a&&e)return}return r&&s?void 0:n||s&&i&E||r&&i&S?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function I(e){this.options=a({},this.defaults,e||{}),this.id=Z++,this.manager=null,this.options.enable=V(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Me(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ie(e){return e==w?"down":e==T?"up":e==b?"left":e==x?"right":""}function De(e,t){t=t.manager;return t?t.get(e):e}function D(){I.apply(this,arguments)}function Le(){D.apply(this,arguments),this.pX=null,this.pY=null}function Fe(){D.apply(this,arguments)}function Ne(){I.apply(this,arguments),this._timer=null,this._input=null}function ze(){D.apply(this,arguments)}function Be(){D.apply(this,arguments)}function Ue(){I.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function L(e,t){return(t=t||{}).recognizers=V(t.recognizers,L.defaults.preset),new je(e,t)}I.prototype={defaults:{},set:function(e){return a(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){var t;return i(e,"recognizeWith",this)||((t=this.simultaneous)[(e=De(e,this)).id]||(t[e.id]=e).recognizeWith(this)),this},dropRecognizeWith:function(e){return i(e,"dropRecognizeWith",this)||(e=De(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){var t;return i(e,"requireFailure",this)||-1===p(t=this.requireFail,e=De(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){return i(e,"dropRequireFailure",this)||(e=De(e,this),-1<(e=p(this.requireFail,e))&&this.requireFail.splice(e,1)),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(t){var i=this,e=this.state;function r(e){i.manager.emit(e,t)}e<8&&r(i.options.event+Me(e)),r(i.options.event),t.additionalEvent&&r(t.additionalEvent),8<=e&&r(i.options.event+Me(e))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){e=a({},e);W(this.options.enable,[this,e])?(56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)):(this.reset(),this.state=32)},process:function(e){},getTouchAction:function(){},reset:function(){}},e(D,I,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,i=e.eventType,r=6&t,e=this.attrTest(e);return r&&(i&v||!e)?16|t:r||e?i&g?8|t:2&t?4|t:2:32}}),e(Le,D,{defaults:{event:"pan",threshold:10,pointers:1,direction:re},getTouchAction:function(){var e=this.options.direction,t=[];return e&E&&t.push(M),e&S&&t.push(C),t},directionTest:function(e){var t=this.options,i=!0,r=e.distance,n=e.direction,s=e.deltaX,o=e.deltaY;return n&t.direction||(r=t.direction&E?(n=0===s?y:s<0?b:x,i=s!=this.pX,Math.abs(e.deltaX)):(n=0===o?y:o<0?T:w,i=o!=this.pY,Math.abs(e.deltaY))),e.direction=n,i&&r>t.threshold&&n&t.direction},attrTest:function(e){return D.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ie(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),e(Fe,D,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[R]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){var t;1!==e.scale&&(t=e.scale<1?"in":"out",e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),e(Ne,I,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,r=e.distance<t.threshold,n=e.deltaTime>t.time;if(this._input=e,!r||!i||e.eventType&(g|v)&&!n)this.reset();else if(e.eventType&_)this.reset(),this._timer=j(function(){this.state=8,this.tryEmit()},t.time,this);else if(e.eventType&g)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&g?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=U(),this.manager.emit(this.options.event,this._input)))}}),e(ze,D,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[R]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),e(Be,D,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:E|S,pointers:1},getTouchAction:function(){return Le.prototype.getTouchAction.call(this)},attrTest:function(e){var t,i=this.options.direction;return i&(E|S)?t=e.overallVelocity:i&E?t=e.overallVelocityX:i&S&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&e.eventType&g},emit:function(e){var t=Ie(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),e(Ue,I,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Oe]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,r=e.distance<t.threshold,n=e.deltaTime<t.time;if(this.reset(),e.eventType&_&&0===this.count)return this.failTimeout();if(r&&n&&i){if(e.eventType!=g)return this.failTimeout();r=!this.pTime||e.timeStamp-this.pTime<t.interval,n=!this.pCenter||P(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,n&&r?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=j(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=j(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),L.VERSION="2.0.7",L.defaults={domEvents:!1,touchAction:Pe,enable:!0,inputTarget:null,inputClass:null,preset:[[ze,{enable:!1}],[Fe,{enable:!1},["rotate"]],[Be,{direction:E}],[Le,{direction:E},["swipe"]],[Ue],[Ue,{event:"doubletap",taps:2},["tap"]],[Ne]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function je(e,t){this.options=a({},L.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((t=this).options.inputClass||($?_e:ee?be:Q?Te:O))(t,se),this.touchAction=new Ce(this,this.options.touchAction),Ge(this,!0),o(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Ge(i,r){var n,s=i.element;s.style&&(o(i.options.cssProps,function(e,t){n=f(s.style,t),r?(i.oldCssProps[n]=s.style[n],s.style[n]=e):s.style[n]=i.oldCssProps[n]||""}),r||(i.oldCssProps={}))}je.prototype={set:function(e){return a(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);for(var i,r=this.recognizers,n=t.curRecognizer,s=((!n||8&n.state)&&(n=t.curRecognizer=null),0);s<r.length;)i=r[s],2===t.stopped||n&&i!=n&&!i.canRecognizeWith(n)?i.reset():i.recognize(e),!n&&14&i.state&&(n=t.curRecognizer=i),s++}},get:function(e){if(e instanceof I)return e;for(var t=this.recognizers,i=0;i<t.length;i++)if(t[i].options.event==e)return t[i];return null},add:function(e){var t;return i(e,"add",this)?this:((t=this.get(e.options.event))&&this.remove(t),this.recognizers.push(e),(e.manager=this).touchAction.update(),e)},remove:function(e){var t;return!i(e,"remove",this)&&(e=this.get(e))&&-1!==(e=p(t=this.recognizers,e))&&(t.splice(e,1),this.touchAction.update()),this},on:function(e,t){var i;if(e!==h&&t!==h)return i=this.handlers,o(u(e),function(e){i[e]=i[e]||[],i[e].push(t)}),this},off:function(e,t){var i;if(e!==h)return i=this.handlers,o(u(e),function(e){t?i[e]&&i[e].splice(p(i[e],t),1):delete i[e]}),this},emit:function(e,t){this.options.domEvents&&(i=e,r=t,(n=F.createEvent("Event")).initEvent(i,!0,!0),(n.gesture=r).target.dispatchEvent(n));var i,r,n,s=this.handlers[e]&&this.handlers[e].slice();if(s&&s.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](t),o++}},destroy:function(){this.element&&Ge(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(L,{INPUT_START:_,INPUT_MOVE:2,INPUT_END:g,INPUT_CANCEL:v,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:y,DIRECTION_LEFT:b,DIRECTION_RIGHT:x,DIRECTION_UP:T,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:E,DIRECTION_VERTICAL:S,DIRECTION_ALL:re,Manager:je,Input:k,TouchAction:Ce,TouchInput:be,MouseInput:O,PointerEventInput:_e,TouchMouseInput:Te,SingleTouchInput:ve,Recognizer:I,AttrRecognizer:D,Tap:Ue,Pan:Le,Swipe:Be,Pinch:Fe,Rotate:ze,Press:Ne,on:t,off:r,each:o,merge:H,extend:X,assign:a,inherit:e,bindFn:Y,prefixed:f}),(void 0!==n?n:"undefined"!=typeof self?self:{}).Hammer=L,"function"==typeof define&&define.amd?define(function(){return L}):"undefined"!=typeof module&&module.exports?module.exports=L:n.Hammer=L}(window,document),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).propagating=t()}(this,function(){"use strict";var u=null;return function r(n,e){var s,o,a=e||{preventDefault:!1};return n.Manager?((s=n).assign(e=function(e,t){var i=Object.create(a);return t&&s.assign(i,t),r(new s(e,i),i)},s),e.Manager=function(e,t){var i=Object.create(a);return t&&s.assign(i,t),r(new s.Manager(e,i),i)},e):(o=Object.create(n),(e=n.element).hammer||(e.hammer=[]),e.hammer.push(o),n.on("hammer.input",function(e){!0!==a.preventDefault&&a.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(u=e.target)}),o._handlers={},o.on=function(e,i){return t(e).forEach(function(e){var t=o._handlers[e];t||(o._handlers[e]=t=[],n.on(e,l)),t.push(i)}),o},o.off=function(e,i){return t(e).forEach(function(e){var t=o._handlers[e];t&&(0<(t=i?t.filter(function(e){return e!==i}):[]).length?o._handlers[e]=t:(n.off(e,l),delete o._handlers[e]))}),o},o.emit=function(e,t){u=t.target,n.emit(e,t)},o.destroy=function(){var e=n.element.hammer,t=e.indexOf(o);-1!==t&&e.splice(t,1),e.length||delete n.element.hammer,o._handlers={},n.destroy()},o);function t(e){return e.match(/[^ ]+/g)}function l(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}for(var t=!1,i=(e.stopPropagation=function(){t=!0},e.srcEvent.stopPropagation.bind(e.srcEvent)),r=("function"==typeof i&&(e.srcEvent.stopPropagation=function(){i(),e.stopPropagation()}),e.firstTarget=u);r&&!t;){var n=r.hammer;if(n)for(var s,o=0;o<n.length;o++)if(s=n[o]._handlers[e.type])for(var a=0;a<s.length&&!t;a++)s[a](e);r=r.parentNode}}}});var PIXI=function($){"use strict";var I=setTimeout;function D(e){return Boolean(e&&void 0!==e.length)}function L(){}function F(e){if(!(this instanceof F))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],G(e,this)}function N(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,F._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?z:B)(r.promise,i._value);else{try{e=t(i._value)}catch(e){return void B(r.promise,e)}z(r.promise,e)}}))}function z(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if(e instanceof F)return t._state=3,t._value=e,void U(t);if("function"==typeof i)return void G((r=i,n=e,function(){r.apply(n,arguments)}),t)}t._state=1,t._value=e,U(t)}catch(e){B(t,e)}var r,n}function B(e,t){e._state=2,e._value=t,U(e)}function U(e){2===e._state&&0===e._deferreds.length&&F._immediateFn(function(){e._handled||F._unhandledRejectionFn(e._value)});for(var t=0,i=e._deferreds.length;t<i;t++)N(e,e._deferreds[t]);e._deferreds=null}function j(e,t,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=i}function G(e,t){var i=!1;try{e(function(e){i||(i=!0,z(t,e))},function(e){i||(i=!0,B(t,e))})}catch(e){i||(i=!0,B(t,e))}}F.prototype.catch=function(e){return this.then(null,e)},F.prototype.then=function(e,t){var i=new this.constructor(L);return N(this,new j(e,t,i)),i},F.prototype.finally=function(t){var i=this.constructor;return this.then(function(e){return i.resolve(t()).then(function(){return e})},function(e){return i.resolve(t()).then(function(){return i.reject(e)})})},F.all=function(t){return new F(function(n,s){if(!D(t))return s(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return n([]);var a=o.length;for(var e=0;e<o.length;e++)!function t(i,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(i,e)},s)}o[i]=e,0==--a&&n(o)}catch(e){s(e)}}(e,o[e])})},F.allSettled=function(i){return new this(function(n,e){if(!i||void 0===i.length)return e(new TypeError(typeof i+" "+i+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var s=Array.prototype.slice.call(i);if(0===s.length)return n([]);var o=s.length;for(var t=0;t<s.length;t++)!function t(i,e){if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(i,e)},function(e){s[i]={status:"rejected",reason:e},0==--o&&n(s)})}s[i]={status:"fulfilled",value:e},0==--o&&n(s)}(t,s[t])})},F.resolve=function(t){return t&&"object"==typeof t&&t.constructor===F?t:new F(function(e){e(t)})},F.reject=function(i){return new F(function(e,t){t(i)})},F.race=function(n){return new F(function(e,t){if(!D(n))return t(new TypeError("Promise.race accepts an array"));for(var i=0,r=n.length;i<r;i++)F.resolve(n[i]).then(e,t)})},F._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){I(e,0)},F._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var X=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;for(var W,e=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;var r,n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===n.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var i,r=arguments,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var o in i=Object(r[s]))H.call(i,o)&&(n[o]=i[o]);if(X)for(var a=X(i),l=0;l<a.length;l++)Y.call(i,a[l])&&(n[a[l]]=i[a[l]])}return n},V=("undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof global&&(global.globalThis=global)),globalThis.Promise||(globalThis.Promise=F),Object.assign||(Object.assign=e),Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),globalThis.performance&&globalThis.performance.now||(W=Date.now(),globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-W}),Date.now()),q=["ms","moz","webkit","o"],K=0;K<q.length&&!globalThis.requestAnimationFrame;++K){var Z=q[K];globalThis.requestAnimationFrame=globalThis[Z+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[Z+"CancelAnimationFrame"]||globalThis[Z+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),i=16+V-t;return i<0&&(i=0),V=t,globalThis.self.setTimeout(function(){V=Date.now(),e(performance.now())},i)}),globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(e){return clearTimeout(e)}),Math.sign||(Math.sign=function(e){return 0===(e=Number(e))||isNaN(e)?e:0<e?1:-1}),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}),globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array),globalThis.Float32Array||(globalThis.Float32Array=Array),globalThis.Uint32Array||(globalThis.Uint32Array=Array),globalThis.Uint16Array||(globalThis.Uint16Array=Array),globalThis.Uint8Array||(globalThis.Uint8Array=Array),globalThis.Int32Array||(globalThis.Int32Array=Array),(e={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",(e=Io=Io||{})[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",(e=_o=_o||{})[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",(e=Tr=Tr||{})[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",(e={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(e={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",(e=no=no||{})[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",(e=Xt=Xt||{}).LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",(e=Sr=Sr||{})[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH";function J(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&1<e.maxTouchPoints&&"undefined"==typeof MSStream}var e={createCanvas:function(e,t){var i=document.createElement("canvas");return i.width=e,i.height=t,i},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return null!=(e=document.baseURI)?e:window.location.href},fetch:function(e,t){return fetch(e,t)}},t=/iPhone/i,Q=/iPod/i,ie=/iPad/i,re=/\biOS-universal(?:.+)Mac\b/i,ne=/\bAndroid(?:.+)Mobile\b/i,se=/Android/i,i=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,r=/Silk/i,n=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,o=/BlackBerry/i,oe=/BB10/i,a=/Opera Mini/i,ae=/\b(CriOS|Chrome)(?:.+)Mobile/i,le=/Mobile(?:.+)Firefox\b/i;f=globalThis.navigator,Xe={userAgent:"",platform:"",maxTouchPoints:0},f||"undefined"==typeof navigator?"string"==typeof f?Xe.userAgent=f:f&&f.userAgent&&(Xe={userAgent:f.userAgent,platform:f.platform,maxTouchPoints:f.maxTouchPoints||0}):Xe={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},void 0!==(d=(f=void 0!==(d=(f=Xe.userAgent).split("[FBAN"))[1]?d[0]:f).split("Twitter"))[1]&&(f=d[0]),ue=f,(f={apple:{phone:(d=function(e){return e.test(ue)})(t)&&!d(n),ipod:d(Q),tablet:!d(t)&&(d(ie)||J(Xe))&&!d(n),universal:d(re),device:(d(t)||d(Q)||d(ie)||d(re)||J(Xe))&&!d(n)},amazon:{phone:d(i),tablet:!d(i)&&d(r),device:d(i)||d(r)},android:{phone:!d(n)&&d(i)||!d(n)&&d(ne),tablet:!d(n)&&!d(i)&&!d(ne)&&(d(r)||d(se)),device:!d(n)&&(d(i)||d(r)||d(ne)||d(se))||d(/\bokhttp\b/i)},windows:{phone:d(n),tablet:d(s),device:d(n)||d(s)},other:{blackberry:d(o),blackberry10:d(oe),opera:d(a),firefox:d(le),chrome:d(ae),device:d(o)||d(oe)||d(a)||d(le)||d(ae)},any:!1,phone:!1,tablet:!1}).any=f.apple.device||f.android.device||f.windows.device||f.other.device,f.phone=f.apple.phone||f.android.phone||f.windows.phone,f.tablet=f.apple.tablet||f.android.tablet||f.windows.tablet;var ue,he=f;var R={ADAPTER:e,MIPMAP_TEXTURES:Tr.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Sr.NONE,SPRITE_MAX_TEXTURES:(t=32,Q=!0,(he.tablet||he.phone)&&(he.apple.device&&(rt=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(rt[1],10)<11&&(Q=!1),he.android.device&&(rt=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(rt[1],10)<7&&(Q=!1)),Q?t:4),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:no.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:_o.CLAMP,SCALE_MODE:Io.LINEAR,PRECISION_VERTEX:Xt.HIGH,PRECISION_FRAGMENT:he.apple.device?Xt.HIGH:Xt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!he.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pe(e,t,i){return e(i={path:t,exports:{},require:function(e,t){throw null==t&&i.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},i.exports),i.exports}var ie=pe(function(e){var r=Object.prototype.hasOwnProperty,f="~";function i(){}function s(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function n(e,t,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new s(i,r||e,n),r=f?f+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],i]:e._events[r].push(i):(e._events[r]=i,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function t(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(f=!1)),t.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)r.call(e,t)&&i.push(f?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},t.prototype.listeners=function(e){var e=f?f+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var i=0,r=t.length,n=new Array(r);i<r;i++)n[i]=t[i].fn;return n},t.prototype.listenerCount=function(e){e=f?f+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,i,r,n,s){var o=arguments,a=f?f+e:e;if(!this._events[a])return!1;var l,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,r),!0;case 5:return u.fn.call(u.context,t,i,r,n),!0;case 6:return u.fn.call(u.context,t,i,r,n,s),!0}for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=o[d];u.fn.apply(u.context,l)}else for(var c,p=u.length,d=0;d<p;d++)switch(u[d].once&&this.removeListener(e,u[d].fn,void 0,!0),h){case 1:u[d].fn.call(u[d].context);break;case 2:u[d].fn.call(u[d].context,t);break;case 3:u[d].fn.call(u[d].context,t,i);break;case 4:u[d].fn.call(u[d].context,t,i,r);break;default:if(!l)for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=o[c];u[d].fn.apply(u[d].context,l)}return!0},t.prototype.on=function(e,t,i){return n(this,e,t,i,!1)},t.prototype.once=function(e,t,i){return n(this,e,t,i,!0)},t.prototype.removeListener=function(e,t,i,r){e=f?f+e:e;if(this._events[e])if(t){var n=this._events[e];if(n.fn)n.fn!==t||r&&!n.once||i&&n.context!==i||l(this,e);else{for(var s=0,o=[],a=n.length;s<a;s++)(n[s].fn!==t||r&&!n[s].once||i&&n[s].context!==i)&&o.push(n[s]);o.length?this._events[e]=1===o.length?o[0]:o:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=f?f+e:e,this._events[e]&&l(this,e)):(this._events=new i,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=f,e.exports=t.EventEmitter=t}),de=fe,re=fe;function fe(e,t,i){i=i||2;var r,n,s,o,a,l=t&&t.length,u=l?t[0]*i:e.length,h=me(e,0,u,i,!0),c=[];if(h&&h.next!==h.prev){if(l&&(h=function(e,t,i,r){var n,s,o,a,l=[];for(n=0,s=t.length;n<s;n++)a=t[n]*r,o=n<s-1?t[n+1]*r:e.length,(a=me(e,a,o,r,!1))===a.next&&(a.steiner=!0),l.push(function(e){var t=e,i=e;for(;(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next,t!==e;);return i}(a));for(l.sort(ve),n=0;n<l.length;n++)i=function(e,t){var i=function(e,t){var i,r=t,n=e.x,s=e.y,o=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var a=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=n&&o<a&&(o=a,i=r.x<r.next.x?r:r.next,a===n))return i}}while(r=r.next,r!==t);if(!i)return null;var l,u=i,h=i.x,c=i.y,p=1/0;r=i;for(;n>=r.x&&r.x>=h&&n!==r.x&&be(s<c?n:o,s,h,c,s<c?o:n,s,r.x,r.y)&&(l=Math.abs(s-r.y)/(n-r.x),Ae(r,e)&&(l<p||l===p&&(r.x>i.x||r.x===i.x&&function(e,t){return xe(e.prev,e,t.prev)<0&&xe(t.next,e,e.next)<0}(i,r)))&&(i=r,p=l)),r=r.next,r!==u;);return i}(e,t);return i?(_e(e=ke(i,e),e.next),_e(i,i.next)):t}(l[n],i);return i}(e,t,h,i)),e.length>80*i){for(var p=r=e[0],d=n=e[1],f=i;f<u;f+=i)(s=e[f])<p&&(p=s),(o=e[f+1])<d&&(d=o),r<s&&(r=s),n<o&&(n=o);a=0!==(a=Math.max(r-p,n-d))?32767/a:0}ge(h,c,i,p,d,a,0)}return c}function me(e,t,i,r,n){var s,o;if(n===0<Ce(e,t,i,r))for(s=t;s<i;s+=r)o=Pe(s,e[s],e[s+1],o);else for(s=i-r;t<=s;s-=r)o=Pe(s,e[s],e[s+1],o);return o&&Te(o,o.next)&&(Oe(o),o=o.next),o}function _e(e,t){if(!e)return e;t=t||e;var i,r=e;do{if(i=!1,r.steiner||!Te(r,r.next)&&0!==xe(r.prev,r,r.next))r=r.next;else{if(Oe(r),(r=t=r.prev)===r.next)break;i=!0}}while(i||r!==t);return t}function ge(e,t,i,r,n,s,o){if(e){if(!o&&s){for(var a=e,l=r,u=n,h=s,c=a;0===c.z&&(c.z=ye(c.x,c.y,l,u,h)),c.prevZ=c.prev,c.nextZ=c.next,(c=c.next)!==a;);c.prevZ.nextZ=null,c.prevZ=null;var p,d,f,m,_,g,v,y,b=c,x=1;do{for(d=b,_=b=null,g=0;d;){for(g++,f=d,p=v=0;p<x&&(v++,f=f.nextZ);p++);for(y=x;0<v||0<y&&f;)0!==v&&(0===y||!f||d.z<=f.z)?(d=(m=d).nextZ,v--):(f=(m=f).nextZ,y--),_?_.nextZ=m:b=m,m.prevZ=_,_=m;d=f}}while(_.nextZ=null,x*=2,1<g)}for(var T,w,E=e;e.prev!==e.next;)if(T=e.prev,w=e.next,s?function(e,t,i,r){var n=e.prev,s=e,o=e.next;if(0<=xe(n,s,o))return;var a=n.x,l=s.x,u=o.x,h=n.y,c=s.y,p=o.y,d=a<l?a<u?a:u:l<u?l:u,f=h<c?h<p?h:p:c<p?c:p,m=l<a?u<a?a:u:u<l?l:u,_=c<h?p<h?h:p:p<c?c:p,g=ye(d,f,t,i,r),v=ye(m,_,t,i,r),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=g&&b&&b.z<=v;){if(y.x>=d&&y.x<=m&&y.y>=f&&y.y<=_&&y!==n&&y!==o&&be(a,h,l,c,u,p,y.x,y.y)&&0<=xe(y.prev,y,y.next))return;if(y=y.prevZ,b.x>=d&&b.x<=m&&b.y>=f&&b.y<=_&&b!==n&&b!==o&&be(a,h,l,c,u,p,b.x,b.y)&&0<=xe(b.prev,b,b.next))return;b=b.nextZ}for(;y&&y.z>=g;){if(y.x>=d&&y.x<=m&&y.y>=f&&y.y<=_&&y!==n&&y!==o&&be(a,h,l,c,u,p,y.x,y.y)&&0<=xe(y.prev,y,y.next))return;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=d&&b.x<=m&&b.y>=f&&b.y<=_&&b!==n&&b!==o&&be(a,h,l,c,u,p,b.x,b.y)&&0<=xe(b.prev,b,b.next))return;b=b.nextZ}return 1}(e,r,n,s):function(e){var t=e.prev,i=e,e=e.next;if(0<=xe(t,i,e))return;var r=t.x,n=i.x,s=e.x,o=t.y,a=i.y,l=e.y,u=r<n?r<s?r:s:n<s?n:s,h=o<a?o<l?o:l:a<l?a:l,c=n<r?s<r?r:s:s<n?n:s,p=a<o?l<o?o:l:l<a?a:l,d=e.next;for(;d!==t;){if(d.x>=u&&d.x<=c&&d.y>=h&&d.y<=p&&be(r,o,n,a,s,l,d.x,d.y)&&0<=xe(d.prev,d,d.next))return;d=d.next}return 1}(e))t.push(T.i/i|0),t.push(e.i/i|0),t.push(w.i/i|0),Oe(e),e=w.next,E=w.next;else if((e=w)===E){o?1===o?ge(e=function(e,t,i){var r=e;do{var n=r.prev,s=r.next.next}while(!Te(n,s)&&we(n,r,r.next,s)&&Ae(n,s)&&Ae(s,n)&&(t.push(n.i/i|0),t.push(r.i/i|0),t.push(s.i/i|0),Oe(r),Oe(r.next),r=e=s),r=r.next,r!==e);return _e(r)}(_e(e),t,i),t,i,r,n,s,2):2===o&&function(e,t,i,r,n,s){var o=e;do{for(var a,l=o.next.next;l!==o.prev;){if(o.i!==l.i&&function(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&we(i,i.next,e,t))return 1}while(i=i.next,i!==e);return}(e,t)&&(Ae(e,t)&&Ae(t,e)&&function(e,t){var i=e,r=!1,n=(e.x+t.x)/2,s=(e.y+t.y)/2;for(;i.y>s!=i.next.y>s&&i.next.y!==i.y&&n<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next,i!==e;);return r}(e,t)&&(xe(e.prev,e,t.prev)||xe(e,t.prev,t))||Te(e,t)&&0<xe(e.prev,e,e.next)&&0<xe(t.prev,t,t.next))}(o,l))return a=ke(o,l),o=_e(o,o.next),a=_e(a,a.next),ge(o,t,i,r,n,s,0),ge(a,t,i,r,n,s,0);l=l.next}}while(o=o.next,o!==e)}(e,t,i,r,n,s):ge(_e(e),t,i,r,n,s,1);break}}}function ve(e,t){return e.x-t.x}function ye(e,t,i,r,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function be(e,t,i,r,n,s,o,a){return(e-o)*(s-a)<=(n-o)*(t-a)&&(i-o)*(t-a)<=(e-o)*(r-a)&&(n-o)*(r-a)<=(i-o)*(s-a)}function xe(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Te(e,t){return e.x===t.x&&e.y===t.y}function we(e,t,i,r){var n=Se(xe(e,t,i)),s=Se(xe(e,t,r)),o=Se(xe(i,r,e)),a=Se(xe(i,r,t));return n!==s&&o!==a||(0===n&&Ee(e,i,t)||(0===s&&Ee(e,r,t)||(0===o&&Ee(i,e,r)||!(0!==a||!Ee(i,t,r)))))}function Ee(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function Se(e){return 0<e?1:e<0?-1:0}function Ae(e,t){return xe(e.prev,e,e.next)<0?0<=xe(e,t,e.next)&&0<=xe(e,e.prev,t):xe(e,t,e.prev)<0||xe(e,e.next,t)<0}function ke(e,t){var i=new Re(e.i,e.x,e.y),r=new Re(t.i,t.x,t.y),n=e.next,s=t.prev;return(e.next=t).prev=e,(i.next=n).prev=i,(r.next=i).prev=r,(s.next=r).prev=s,r}function Pe(e,t,i,r){e=new Re(e,t,i);return r?(e.next=r.next,(e.prev=r).next.prev=e,r.next=e):(e.prev=e).next=e,e}function Oe(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Re(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ce(e,t,i,r){for(var n=0,s=t,o=i-r;s<i;s+=r)n+=(e[o]-e[s])*(e[s+1]+e[o+1]),o=s;return n}fe.deviation=function(e,t,i,r){var n=t&&t.length,s=n?t[0]*i:e.length,o=Math.abs(Ce(e,0,s,i));if(n)for(var a=0,l=t.length;a<l;a++){var u=t[a]*i,h=a<l-1?t[a+1]*i:e.length;o-=Math.abs(Ce(e,u,h,i))}for(var c=0,a=0;a<r.length;a+=3){var p=r[a]*i,d=r[a+1]*i,f=r[a+2]*i;c+=Math.abs((e[p]-e[f])*(e[1+d]-e[1+p])-(e[p]-e[d])*(e[1+f]-e[1+p]))}return 0===o&&0===c?0:Math.abs((c-o)/o)},fe.flatten=function(e){for(var t=e[0][0].length,i={vertices:[],holes:[],dimensions:t},r=0,n=0;n<e.length;n++){for(var s=0;s<e[n].length;s++)for(var o=0;o<t;o++)i.vertices.push(e[n][s][o]);0<n&&(r+=e[n-1].length,i.holes.push(r))}return i},de.default=re;var Me=pe(function(e,t){var i=ce,r=t&&!t.nodeType&&t,t=e&&!e.nodeType&&e,n="object"==typeof ce&&ce;n.global!==n&&n.window!==n&&n.self!==n||(i=n);var s,o,_=2147483647,g=36,v=26,a=38,l=700,u=/^xn--/,h=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-1,y=Math.floor,b=String.fromCharCode;function x(e){throw RangeError(p[e])}function f(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}function m(e,t){var i=e.split("@"),r="",i=(1<i.length&&(r=i[0]+"@",e=i[1]),(e=e.replace(c,".")).split("."));return r+f(i,t).join(".")}function T(e){for(var t,i,r=[],n=0,s=e.length;n<s;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<s?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}function w(e){return f(e,function(e){var t="";return 65535<e&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=b(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,i){var r=0;for(e=i?y(e/l):e>>1,e+=y(e/t);d*v>>1<e;r+=g)e=y(e/d);return y(r+(d+1)*e/(e+a))}function A(e){var t,i,r,n,s,o,a,l=[],u=e.length,h=0,c=128,p=72,d=e.lastIndexOf("-");for(d<0&&(d=0),i=0;i<d;++i)128<=e.charCodeAt(i)&&x("not-basic"),l.push(e.charCodeAt(i));for(r=0<d?d+1:0;r<u;){for(n=h,s=1,o=g;u<=r&&x("invalid-input"),a=e.charCodeAt(r++),(g<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:g)||a>y((_-h)/s))&&x("overflow"),h+=a*s,!(a<(a=o<=p?1:p+v<=o?v:o-p));o+=g)s>y(_/(a=g-a))&&x("overflow"),s*=a;p=S(h-n,t=l.length+1,0==n),y(h/t)>_-c&&x("overflow"),c+=y(h/t),h%=t,l.splice(h++,0,c)}return w(l)}function k(e){for(var t,i,r,n,s,o,a,l,u,h,c=[],p=(e=T(e)).length,d=128,f=72,m=t=0;m<p;++m)(a=e[m])<128&&c.push(b(a));for(i=r=c.length,r&&c.push("-");i<p;){for(n=_,m=0;m<p;++m)d<=(a=e[m])&&a<n&&(n=a);for(n-d>y((_-t)/(l=i+1))&&x("overflow"),t+=(n-d)*l,d=n,m=0;m<p;++m)if((a=e[m])<d&&++t>_&&x("overflow"),a==d){for(s=t,o=g;!(s<(u=o<=f?1:f+v<=o?v:o-f));o+=g)c.push(b(E(u+(h=s-u)%(u=g-u),0))),s=y(h/u);c.push(b(E(s,0))),f=S(t,l,i==r),t=0,++i}++t,++d}return c.join("")}if(s={version:"1.3.2",ucs2:{decode:T,encode:w},decode:A,encode:k,toASCII:function(e){return m(e,function(e){return h.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return u.test(e)?A(e.slice(4).toLowerCase()):e})}},r&&t)if(e.exports==r)t.exports=s;else for(o in s)s.hasOwnProperty(o)&&(r[o]=s[o]);else i.punycode=s}),Ie=function(e){return"string"==typeof e},De=function(e){return"object"==typeof e&&null!==e},Le=function(e){return null===e},Fe=function(e){return null==e};function Ne(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"==typeof e&&0!==e.length){var s=/\+/g,t=(e=e.split(t),1e3),o=(r&&"number"==typeof r.maxKeys&&(t=r.maxKeys),e.length);0<t&&t<o&&(o=t);for(var a=0;a<o;++a){var l,u=e[a].replace(s,"%20"),h=u.indexOf(i),h=0<=h?(l=u.substr(0,h),u.substr(h+1)):(l=u,""),u=decodeURIComponent(l),h=decodeURIComponent(h);Object.prototype.hasOwnProperty.call(n,u)?Array.isArray(n[u])?n[u].push(h):n[u]=[n[u],h]:n[u]=h}}return n}function ze(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Be(i,r,n,e){return r=r||"&",n=n||"=","object"==typeof(i=null===i?void 0:i)?Object.keys(i).map(function(e){var t=encodeURIComponent(ze(e))+n;return Array.isArray(i[e])?i[e].map(function(e){return t+encodeURIComponent(ze(e))}).join(r):t+encodeURIComponent(ze(i[e]))}).join(r):e?encodeURIComponent(ze(e))+n+encodeURIComponent(ze(i)):""}function Ue(e,t){return it(e,!1,!0).resolve(t)}function je(e){return(e=Ie(e)?it(e):e)instanceof He?e.format():He.prototype.format.call(e)}var Ge=pe(function(e,t){t.decode=t.parse=Ne,t.encode=t.stringify=Be}),Xe=it;function He(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Ye=/^([a-z0-9.+-]+:)/i,We=/:[0-9]*$/,Ve=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),qe=["'"].concat(i),Ke=["%","/","?",";","#"].concat(qe),Ze=["/","?","#"],Je=/^[+a-z0-9A-Z_-]{0,63}$/,Qe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$e={javascript:!0,"javascript:":!0},et={javascript:!0,"javascript:":!0},tt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function it(e,t,i){var r;return e&&De(e)&&e instanceof He?e:((r=new He).parse(e,t,i),r)}He.prototype.parse=function(e,t,i){if(!Ie(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),r=-1!==r&&r<e.indexOf("#")?"?":"#",n=e.split(r);n[0]=n[0].replace(/\\/g,"/");var s=(s=e=n.join(r)).trim();if(!i&&1===e.split("#").length){n=Ve.exec(s);if(n)return this.path=s,this.href=s,this.pathname=n[1],n[2]?(this.search=n[2],this.query=t?Ge.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var o,r=Ye.exec(s);if(r&&(o=(r=r[0]).toLowerCase(),this.protocol=o,s=s.substr(r.length)),!(i||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))||!(b="//"===s.substr(0,2))||r&&et[r]||(s=s.substr(2),this.slashes=!0),!et[r]&&(b||r&&!tt[r])){for(var a=-1,l=0;l<Ze.length;l++)-1!==(u=s.indexOf(Ze[l]))&&(-1===a||u<a)&&(a=u);-1!==(e=-1===a?s.lastIndexOf("@"):s.lastIndexOf("@",a))&&(n=s.slice(0,e),s=s.slice(e+1),this.auth=decodeURIComponent(n));for(var u,a=-1,l=0;l<Ke.length;l++)-1!==(u=s.indexOf(Ke[l]))&&(-1===a||u<a)&&(a=u);-1===a&&(a=s.length),this.host=s.slice(0,a),s=s.slice(a),this.parseHost(),this.hostname=this.hostname||"";i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i)for(var h=this.hostname.split(/\./),l=0,c=h.length;l<c;l++){var p=h[l];if(p&&!p.match(Je)){for(var d="",f=0,m=p.length;f<m;f++)127<p.charCodeAt(f)?d+="x":d+=p[f];if(!d.match(Je)){var _=h.slice(0,l),g=h.slice(l+1),v=p.match(Qe);v&&(_.push(v[1]),g.unshift(v[2])),g.length&&(s="/"+g.join(".")+s),this.hostname=_.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),i||(this.hostname=Me.toASCII(this.hostname));var y=this.port?":"+this.port:"",b=this.hostname||"";this.host=b+y,this.href+=this.host,i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!$e[o])for(l=0,c=qe.length;l<c;l++){var x,T=qe[l];-1!==s.indexOf(T)&&((x=encodeURIComponent(T))===T&&(x=escape(T)),s=s.split(T).join(x))}r=s.indexOf("#"),-1!==r&&(this.hash=s.substr(r),s=s.slice(0,r)),e=s.indexOf("?");return-1!==e?(this.search=s.substr(e),this.query=s.substr(e+1),t&&(this.query=Ge.parse(this.query)),s=s.slice(0,e)):t&&(this.search="",this.query={}),s&&(this.pathname=s),tt[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(y=this.pathname||"",n=this.search||"",this.path=y+n),this.href=this.format(),this},He.prototype.format=function(){var e=this.auth||"",t=(e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@"),this.protocol||""),i=this.pathname||"",r=this.hash||"",n=!1,s="",e=(this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&De(this.query)&&Object.keys(this.query).length&&(s=Ge.stringify(this.query)),this.search||s&&"?"+s||"");return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||tt[t])&&!1!==n?(n="//"+(n||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):n=n||"",r&&"#"!==r.charAt(0)&&(r="#"+r),e&&"?"!==e.charAt(0)&&(e="?"+e),t+n+(i=i.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(e=e.replace("#","%23"))+r},He.prototype.resolve=function(e){return this.resolveObject(it(e,!1,!0)).format()},He.prototype.resolveObject=function(e){Ie(e)&&((p=new He).parse(e,!1,!0),e=p);for(var t=new He,i=Object.keys(this),r=0;r<i.length;r++){var n=i[r];t[n]=this[n]}if(t.hash=e.hash,""!==e.href)if(e.slashes&&!e.protocol){for(var s=Object.keys(e),o=0;o<s.length;o++){var a=s[o];"protocol"!==a&&(t[a]=e[a])}tt[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/")}else if(e.protocol&&e.protocol!==t.protocol)if(tt[e.protocol]){if(t.protocol=e.protocol,e.host||et[e.protocol])t.pathname=e.pathname;else{for(var l=(e.pathname||"").split("/");l.length&&!(e.host=l.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),t.pathname=l.join("/")}t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(p=t.pathname||"",d=t.search||"",t.path=p+d),t.slashes=t.slashes||e.slashes}else for(var u=Object.keys(e),h=0;h<u.length;h++){var c=u[h];t[c]=e[c]}else{var p=t.pathname&&"/"===t.pathname.charAt(0),d=e.host||e.pathname&&"/"===e.pathname.charAt(0),p=d||p||t.host&&e.pathname,f=p,m=t.pathname&&t.pathname.split("/")||[],l=e.pathname&&e.pathname.split("/")||[],_=t.protocol&&!tt[t.protocol];if(_&&(t.hostname="",t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===l[0]?l[0]=e.host:l.unshift(e.host)),e.host=null),p=p&&(""===l[0]||""===m[0])),d)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,m=l;else if(l.length)(m=m||[]).pop(),m=m.concat(l),t.search=e.search,t.query=e.query;else if(!Fe(e.search))return _&&(t.hostname=t.host=m.shift(),(b=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=b.shift(),t.host=t.hostname=b.shift())),t.search=e.search,t.query=e.query,Le(t.pathname)&&Le(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(m.length){for(var g=m.slice(-1)[0],d=(t.host||e.host||1<m.length)&&("."===g||".."===g)||""===g,v=0,y=m.length;0<=y;y--)"."===(g=m[y])?m.splice(y,1):".."===g?(m.splice(y,1),v++):v&&(m.splice(y,1),v--);if(!p&&!f)for(;v--;)m.unshift("..");!p||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),d&&"/"!==m.join("/").substr(-1)&&m.push("");var b,f=""===m[0]||m[0]&&"/"===m[0].charAt(0);_&&(t.hostname=t.host=!f&&m.length?m.shift():"",(b=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=b.shift(),t.host=t.hostname=b.shift())),(p=p||t.host&&m.length)&&!f&&m.unshift(""),m.length?t.pathname=m.join("/"):(t.pathname=null,t.path=null),Le(t.pathname)&&Le(t.search)||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes}else t.pathname=null,t.search?t.path="/"+t.search:t.path=null}return t.href=t.format(),t},He.prototype.parseHost=function(){var e=this.host,t=We.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};$.ENV=void 0,(r=$.ENV||($.ENV={}))[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2",$.RENDERER_TYPE=void 0,(ne=$.RENDERER_TYPE||($.RENDERER_TYPE={}))[ne.UNKNOWN=0]="UNKNOWN",ne[ne.WEBGL=1]="WEBGL",ne[ne.CANVAS=2]="CANVAS",$.BUFFER_BITS=void 0,(se=$.BUFFER_BITS||($.BUFFER_BITS={}))[se.COLOR=16384]="COLOR",se[se.DEPTH=256]="DEPTH",se[se.STENCIL=1024]="STENCIL",$.BLEND_MODES=void 0,(n=$.BLEND_MODES||($.BLEND_MODES={}))[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",$.DRAW_MODES=void 0,(s=$.DRAW_MODES||($.DRAW_MODES={}))[s.POINTS=0]="POINTS",s[s.LINES=1]="LINES",s[s.LINE_LOOP=2]="LINE_LOOP",s[s.LINE_STRIP=3]="LINE_STRIP",s[s.TRIANGLES=4]="TRIANGLES",s[s.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",s[s.TRIANGLE_FAN=6]="TRIANGLE_FAN",$.FORMATS=void 0,(o=$.FORMATS||($.FORMATS={}))[o.RGBA=6408]="RGBA",o[o.RGB=6407]="RGB",o[o.RG=33319]="RG",o[o.RED=6403]="RED",o[o.RGBA_INTEGER=36249]="RGBA_INTEGER",o[o.RGB_INTEGER=36248]="RGB_INTEGER",o[o.RG_INTEGER=33320]="RG_INTEGER",o[o.RED_INTEGER=36244]="RED_INTEGER",o[o.ALPHA=6406]="ALPHA",o[o.LUMINANCE=6409]="LUMINANCE",o[o.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",o[o.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",o[o.DEPTH_STENCIL=34041]="DEPTH_STENCIL",$.TARGETS=void 0,(oe=$.TARGETS||($.TARGETS={}))[oe.TEXTURE_2D=3553]="TEXTURE_2D",oe[oe.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",oe[oe.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",oe[oe.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",oe[oe.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",oe[oe.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",oe[oe.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",oe[oe.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",oe[oe.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",$.TYPES=void 0,(a=$.TYPES||($.TYPES={}))[a.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",a[a.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",a[a.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",a[a.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",a[a.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",a[a.UNSIGNED_INT=5125]="UNSIGNED_INT",a[a.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",a[a.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",a[a.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",a[a.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",a[a.BYTE=5120]="BYTE",a[a.SHORT=5122]="SHORT",a[a.INT=5124]="INT",a[a.FLOAT=5126]="FLOAT",a[a.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",a[a.HALF_FLOAT=36193]="HALF_FLOAT",$.SAMPLER_TYPES=void 0,(le=$.SAMPLER_TYPES||($.SAMPLER_TYPES={}))[le.FLOAT=0]="FLOAT",le[le.INT=1]="INT",le[le.UINT=2]="UINT",$.SCALE_MODES=void 0,(d=$.SCALE_MODES||($.SCALE_MODES={}))[d.NEAREST=0]="NEAREST",d[d.LINEAR=1]="LINEAR",$.WRAP_MODES=void 0,(ae=$.WRAP_MODES||($.WRAP_MODES={}))[ae.CLAMP=33071]="CLAMP",ae[ae.REPEAT=10497]="REPEAT",ae[ae.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",$.MIPMAP_MODES=void 0,(f=$.MIPMAP_MODES||($.MIPMAP_MODES={}))[f.OFF=0]="OFF",f[f.POW2=1]="POW2",f[f.ON=2]="ON",f[f.ON_MANUAL=3]="ON_MANUAL",$.ALPHA_MODES=void 0,(Tr=$.ALPHA_MODES||($.ALPHA_MODES={}))[Tr.NPM=0]="NPM",Tr[Tr.UNPACK=1]="UNPACK",Tr[Tr.PMA=2]="PMA",Tr[Tr.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",Tr[Tr.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",Tr[Tr.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",Tr[Tr.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",$.CLEAR_MODES=void 0,(Sr=$.CLEAR_MODES||($.CLEAR_MODES={}))[Sr.NO=0]="NO",Sr[Sr.YES=1]="YES",Sr[Sr.AUTO=2]="AUTO",Sr[Sr.BLEND=0]="BLEND",Sr[Sr.CLEAR=1]="CLEAR",Sr[Sr.BLIT=2]="BLIT",$.GC_MODES=void 0,(rt=$.GC_MODES||($.GC_MODES={}))[rt.AUTO=0]="AUTO",rt[rt.MANUAL=1]="MANUAL",$.PRECISION=void 0,(Q=$.PRECISION||($.PRECISION={})).LOW="lowp",Q.MEDIUM="mediump",Q.HIGH="highp",$.MASK_TYPES=void 0,(t=$.MASK_TYPES||($.MASK_TYPES={}))[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",$.COLOR_MASK_BITS=void 0,(no=$.COLOR_MASK_BITS||($.COLOR_MASK_BITS={}))[no.RED=1]="RED",no[no.GREEN=2]="GREEN",no[no.BLUE=4]="BLUE",no[no.ALPHA=8]="ALPHA",$.MSAA_QUALITY=void 0,(_o=$.MSAA_QUALITY||($.MSAA_QUALITY={}))[_o.NONE=0]="NONE",_o[_o.LOW=2]="LOW",_o[_o.MEDIUM=4]="MEDIUM",_o[_o.HIGH=8]="HIGH",$.BUFFER_TYPE=void 0,(Io=$.BUFFER_TYPE||($.BUFFER_TYPE={}))[Io.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",Io[Io.ARRAY_BUFFER=34962]="ARRAY_BUFFER",Io[Io.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER";var rt,nt={parse:Xe,format:je,resolve:Ue};function st(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ot(e){return e.split("?")[0].split("#")[0]}var at,lt={toPosix:function(e){return t="\\",i="/",e.replace(new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),i);var t,i},isUrl:function(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:function(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol:function(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol:function(e){st(e),e=this.toPosix(e);var t="",i=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),n=/^[^/:]+:\//.exec(e);return(i||r||n)&&(i=(null==i?void 0:i[0])||(null==r?void 0:r[0])||(null==n?void 0:n[0]),e=e.slice((t=i).length)),t},toAbsolute:function(e,t,i){return this.isDataUrl(e)?e:(t=ot(this.toPosix(null!=t?t:R.ADAPTER.getBaseUrl())),i=ot(this.toPosix(null!=i?i:this.rootname(t))),st(e),(e=this.toPosix(e)).startsWith("/")?lt.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(t,e))},normalize:function(e){var t,i,r;return st(e=this.toPosix(e)),0===e.length?".":(t="",i=e.startsWith("/"),this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length)),r=e.endsWith("/"),0<(e=function(e,t){for(var i,r="",n=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)i=e.charCodeAt(a);else{if(47===i)break;i=47}if(47===i){if(s!==a-1&&1!==o)if(s!==a-1&&2===o){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(2<r.length){var l=r.lastIndexOf("/");if(l!==r.length-1){n=-1===l?(r="",0):(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",s=a,o=n=0;continue}t&&(0<r.length?r+="/..":r="..",n=2)}else 0<r.length?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),n=a-s-1;s=a,o=0}else 46===i&&-1!==o?++o:o=-1}return r}(e,!1)).length&&r&&(e+="/"),i?"/"+e:t+e)},isAbsolute:function(e){return st(e),e=this.toPosix(e),!!this.hasProtocol(e)||e.startsWith("/")},join:function(){for(var e,t=arguments,i=[],r=0;r<arguments.length;r++)i[r]=t[r];if(0===i.length)return".";for(var n=0;n<i.length;++n){var s,o=i[n];st(o),0<o.length&&(void 0===e?e=o:(s=null!=(s=i[n-1])?s:"",this.extname(s)?e+="/../"+o:e+="/"+o))}return void 0===e?".":this.normalize(e)},dirname:function(e){if(st(e),0===e.length)return".";for(var t=47===(e=this.toPosix(e)).charCodeAt(0),i=-1,r=!0,n=this.getProtocol(e),s=e,o=(e=e.slice(n.length)).length-1;1<=o;--o)if(47===e.charCodeAt(o)){if(!r){i=o;break}}else r=!1;return-1===i?t?"/":this.isUrl(s)?n+e:n:t&&1===i?"//":n+e.slice(0,i)},rootname:function(e){st(e);var t,i="";return i=(e=this.toPosix(e)).startsWith("/")?"/":this.getProtocol(e),this.isUrl(e)&&!(i=-1!==(t=e.indexOf("/",i.length))?e.slice(0,t):e).endsWith("/")&&(i+="/"),i},basename:function(e,t){st(e),t&&st(t),e=this.toPosix(e);var i=0,r=-1,n=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var s=t.length-1,o=-1,a=e.length-1;0<=a;--a){var l=e.charCodeAt(a);if(47===l){if(!n){i=a+1;break}}else-1===o&&(n=!1,o=a+1),0<=s&&(l===t.charCodeAt(s)?-1==--s&&(r=a):(s=-1,r=o))}return i===r?r=o:-1===r&&(r=e.length),e.slice(i,r)}for(a=e.length-1;0<=a;--a)if(47===e.charCodeAt(a)){if(!n){i=a+1;break}}else-1===r&&(n=!1,r=a+1);return-1===r?"":e.slice(i,r)},extname:function(e){st(e);for(var t=-1,i=0,r=-1,n=!0,s=0,o=(e=this.toPosix(e)).length-1;0<=o;--o){var a=e.charCodeAt(o);if(47===a){if(n)continue;i=o+1;break}-1===r&&(n=!1,r=o+1),46===a?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1)}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===i+1?"":e.slice(t,r)},parse:function(e){st(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){(e=this.toPosix(e)).charCodeAt(0);for(var i,r,n=this.isAbsolute(e),s=(t.root=this.rootname(e),r=n||this.hasProtocol(e)?1:0,-1),o=0,a=-1,l=!0,u=e.length-1,h=0;r<=u;--u){if(47===(i=e.charCodeAt(u))){if(l)continue;o=u+1;break}-1===a&&(l=!1,a=u+1),46===i?-1===s?s=u:1!==h&&(h=1):-1!==s&&(h=-1)}-1===s||-1===a||0===h||1===h&&s===a-1&&s===o+1?-1!==a&&(t.base=t.name=0===o&&n?e.slice(1,a):e.slice(o,a)):(0===o&&n?(t.name=e.slice(1,s),t.base=e.slice(1,a)):(t.name=e.slice(o,s),t.base=e.slice(o,a)),t.ext=e.slice(s,a)),t.dir=this.dirname(e)}return t},sep:"/",delimiter:":"},ut=(R.RETINA_PREFIX=/@([0-9\.]+)x/,R.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1);function ht(e){var t;ut||(-1<R.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")?(t=globalThis.console).log.apply(t,["\n %c %c %c PixiJS 6.5.5 - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"]):globalThis.console&&globalThis.console.log("PixiJS 6.5.5 - "+e+" - http://www.pixijs.com/"),ut=!0)}function ct(){return at=void 0===at?function(){var e,t,i,r,n={stencil:!0,failIfMajorPerformanceCaveat:R.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{return R.ADAPTER.getWebGLRenderingContext()?(i=!(!(t=(e=R.ADAPTER.createCanvas()).getContext("webgl",n)||e.getContext("experimental-webgl",n))||!t.getContextAttributes().stencil),t&&(r=t.getExtension("WEBGL_lose_context"))&&r.loseContext(),t=null,i):!1}catch(e){return!1}}():at}var pt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function dt(e,t){return(t=void 0===t?[]:t)[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t}function ft(e){e=e.toString(16);return"#"+("000000".substring(0,6-e.length)+e)}function mt(e){return"string"==typeof e&&"#"===(e=pt[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)}var _t=function(){for(var e=[],t=[],i=0;i<32;i++)t[e[i]=i]=i;e[$.BLEND_MODES.NORMAL_NPM]=$.BLEND_MODES.NORMAL,e[$.BLEND_MODES.ADD_NPM]=$.BLEND_MODES.ADD,e[$.BLEND_MODES.SCREEN_NPM]=$.BLEND_MODES.SCREEN,t[$.BLEND_MODES.NORMAL]=$.BLEND_MODES.NORMAL_NPM,t[$.BLEND_MODES.ADD]=$.BLEND_MODES.ADD_NPM,t[$.BLEND_MODES.SCREEN]=$.BLEND_MODES.SCREEN_NPM;var r=[];return r.push(t),r.push(e),r}();function gt(e,t){return _t[t?1:0][e]}function vt(e,t,i,r){return i=i||new Float32Array(4),r||void 0===r?(i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t):(i[0]=e[0],i[1]=e[1],i[2]=e[2]),i[3]=t,i}function yt(e,t){return 1===t?(255*t<<24)+e:0===t?0:(255*t<<24)+(((e>>16&255)*t+.5|0)<<16)+(((e>>8&255)*t+.5|0)<<8)+((255&e)*t+.5|0)}function bt(e,t,i,r){return(i=i||new Float32Array(4))[0]=(e>>16&255)/255,i[1]=(e>>8&255)/255,i[2]=(255&e)/255,!r&&void 0!==r||(i[0]*=t,i[1]*=t,i[2]*=t),i[3]=t,i}function xt(e,t){var i=6*e;if((t=(t=void 0===t?null:t)||new Uint16Array(i)).length!==i)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+i);for(var r=0,n=0;r<i;r+=6,n+=4)t[r+0]=n+0,t[r+1]=n+1,t[r+2]=n+2,t[r+3]=n+0,t[r+4]=n+2,t[r+5]=n+3;return t}function Tt(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var wt={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function Et(e){return e+=0===e?1:0,--e,(e=(e=(e=(e=(e|=e>>>1)|e>>>2)|e>>>4)|e>>>8)|e>>>16)+1}function St(e){return!(e&e-1||!e)}function At(e){var t=(65535<e?1:0)<<4,i=(255<(e>>>=t)?1:0)<<3;return(t|=i)|(i=(15<(e>>>=i)?1:0)<<2)|(i=(3<(e>>>=i)?1:0)<<1)|(e>>>=i)>>1}function kt(e,t,i){var r=e.length;if(!(r<=t||0===i)){for(var n=r-(i=r<t+i?r-t:i),s=t;s<n;++s)e[s]=e[s+i];e.length=n}}function Pt(e){return 0===e?0:e<0?-1:1}var Ot=0;function Rt(){return++Ot}var Ct={};function Mt(e,t,i){var r;void 0===i&&(i=3),Ct[t]||(void 0===(r=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e):(r=r.split("\n").splice(i).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+"\nDeprecated since v"+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e),console.warn(r))),Ct[t]=!0)}var It={},Dt=Object.create(null),Lt=Object.create(null);Nt.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},Nt.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},Nt.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(Nt.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0});var Ft=Nt;function Nt(e,t,i){this.canvas=R.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||R.RESOLUTION,this.resize(e,t)}function zt(e){for(var t,i,r=e.width,n=e.height,e=e.getContext("2d"),s=e.getImageData(0,0,r,n).data,o=s.length,a={top:null,left:null,right:null,bottom:null},l=null,u=0;u<o;u+=4)0!==s[u+3]&&(t=u/4%r,i=~~(u/4/r),null===a.top&&(a.top=i),(null===a.left||t<a.left)&&(a.left=t),(null===a.right||a.right<t)&&(a.right=1+t),(null===a.bottom||a.bottom<i)&&(a.bottom=i));return null!==a.top&&(l=e.getImageData(a.left,a.top,r=a.right-a.left,n=a.bottom-a.top+1)),{height:n,width:r,data:l}}var Bt,Ut=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function jt(e,t){if(void 0===t&&(t=globalThis.location),0===e.indexOf("data:"))return"";t=t||globalThis.location,(Bt=Bt||document.createElement("a")).href=e;var e=nt.parse(Bt.href),i=!e.port&&""===t.port||e.port===t.port;return e.hostname===t.hostname&&i&&e.protocol===t.protocol?"":"anonymous"}function Gt(e,t){e=R.RETINA_PREFIX.exec(e);return e?parseFloat(e[1]):void 0!==t?t:1}var Xt={__proto__:null,BaseTextureCache:Lt,CanvasRenderTarget:Ft,DATA_URI:Ut,ProgramCache:It,TextureCache:Dt,clearTextureCache:function(){for(var e in Dt)delete Dt[e];for(e in Lt)delete Lt[e]},correctBlendMode:gt,createIndicesForQuads:xt,decomposeDataUri:function(e){if(e=Ut.exec(e))return{mediaType:e[1]?e[1].toLowerCase():void 0,subType:e[2]?e[2].toLowerCase():void 0,charset:e[3]?e[3].toLowerCase():void 0,encoding:e[4]?e[4].toLowerCase():void 0,data:e[5]}},deprecation:Mt,destroyTextureCache:function(){for(var e in Dt)Dt[e].destroy();for(e in Lt)Lt[e].destroy()},determineCrossOrigin:jt,getBufferType:Tt,getResolutionOfUrl:Gt,hex2rgb:dt,hex2string:ft,interleaveTypedArrays:function(e,t){for(var i=0,r=0,n={},s=0;s<e.length;s++)r+=t[s],i+=e[s].length;for(var o=new ArrayBuffer(4*i),a=null,l=0,s=0;s<e.length;s++){var u=t[s],h=e[s],c=Tt(h);n[c]||(n[c]=new wt[c](o));for(var a=n[c],p=0;p<h.length;p++)a[(p/u|0)*r+l+p%u]=h[p];l+=u}return new Float32Array(o)},isPow2:St,isWebGLSupported:ct,log2:At,nextPow2:Et,path:lt,premultiplyBlendMode:_t,premultiplyRgba:vt,premultiplyTint:yt,premultiplyTintToRgba:bt,removeItems:kt,rgb2hex:function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},sayHello:ht,sign:Pt,skipHello:function(){ut=!0},string2hex:mt,trimCanvas:zt,uid:Rt,url:nt,isMobile:he,EventEmitter:ie,earcut:de},Ht=2*Math.PI,Yt=180/Math.PI,Wt=Math.PI/180,ee=($.SHAPES=void 0,(re=$.SHAPES||($.SHAPES={}))[re.POLY=0]="POLY",re[re.RECT=1]="RECT",re[re.CIRC=2]="CIRC",re[re.ELIP=3]="ELIP",re[re.RREC=4]="RREC",Vt.prototype.clone=function(){return new Vt(this.x,this.y)},Vt.prototype.copyFrom=function(e){return this.set(e.x,e.y),this},Vt.prototype.copyTo=function(e){return e.set(this.x,this.y),e},Vt.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},Vt.prototype.set=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=e),this.x=e,this.y=t,this},Vt.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},Vt);function Vt(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.x=0,this.y=0,this.x=e,this.y=t}var qt=[new ee,new ee,new ee,new ee],w=(Object.defineProperty(Kt.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(Kt.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(Kt.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(Kt.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(Kt,"EMPTY",{get:function(){return new Kt(0,0,0,0)},enumerable:!1,configurable:!0}),Kt.prototype.clone=function(){return new Kt(this.x,this.y,this.width,this.height)},Kt.prototype.copyFrom=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},Kt.prototype.copyTo=function(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},Kt.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height)},Kt.prototype.intersects=function(e,t){var i,r,n,s,o,a,l,u,h,c,p,d,f;return t?(i=this.left,r=this.right,n=this.top,s=this.bottom,!(r<=i||s<=n)&&(o=qt[0].set(e.left,e.top),f=qt[1].set(e.left,e.bottom),a=qt[2].set(e.right,e.top),l=qt[3].set(e.right,e.bottom),!(a.x<=o.x||f.y<=o.y)&&(0!==(u=Math.sign(t.a*t.d-t.b*t.c))&&(t.apply(o,o),t.apply(f,f),t.apply(a,a),t.apply(l,l),!(Math.max(o.x,f.x,a.x,l.x)<=i||Math.min(o.x,f.x,a.x,l.x)>=r||Math.max(o.y,f.y,a.y,l.y)<=n||Math.min(o.y,f.y,a.y,l.y)>=s)&&(h=(t=u*(f.y-o.y))*i+(f=u*(o.x-f.x))*n,c=t*r+f*n,p=t*i+f*s,d=t*r+f*s,!(Math.max(h,c,p,d)<=t*o.x+f*o.y||Math.min(h,c,p,d)>=t*l.x+f*l.y)&&(p=(h=u*(o.y-a.y))*i+(c=u*(a.x-o.x))*n,d=h*r+c*n,t=h*i+c*s,f=h*r+c*s,!(Math.max(p,d,t,f)<=h*o.x+c*o.y||Math.min(p,d,t,f)>=h*l.x+c*l.y))))))):(u=(this.x<e.x?e:this).x,!((this.right>e.right?e:this).right<=u)&&(this.y<e.y?e:this).y<(this.bottom>e.bottom?e:this).bottom)},Kt.prototype.pad=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=e),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this},Kt.prototype.fit=function(e){var t=Math.max(this.x,e.x),i=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),e=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(i-t,0),this.y=r,this.height=Math.max(e-r,0),this},Kt.prototype.ceil=function(e,t){void 0===e&&(e=1),void 0===t&&(t=.001);var i=Math.ceil((this.x+this.width-t)*e)/e,r=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=i-this.x,this.height=r-this.y,this},Kt.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),i=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),e=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=i-t,this.y=r,this.height=e-r,this},Kt.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},Kt);function Kt(e,t,i,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===i&&(i=0),void 0===r&&(r=0),this.x=Number(e),this.y=Number(t),this.width=Number(i),this.height=Number(r),this.type=$.SHAPES.RECT}Jt.prototype.clone=function(){return new Jt(this.x,this.y,this.radius)},Jt.prototype.contains=function(e,t){var i;return!(this.radius<=0)&&(i=this.radius*this.radius,e=this.x-e,t=this.y-t,(e*=e)+(t*=t)<=i)},Jt.prototype.getBounds=function(){return new w(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},Jt.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"};var Zt=Jt;function Jt(e,t,i){void 0===t&&(t=0),void 0===i&&(i=0),this.x=e=void 0===e?0:e,this.y=t,this.radius=i,this.type=$.SHAPES.CIRC}$t.prototype.clone=function(){return new $t(this.x,this.y,this.width,this.height)},$t.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e=(e-this.x)/this.width,t=(t-this.y)/this.height,(e*=e)+(t*=t)<=1)},$t.prototype.getBounds=function(){return new w(this.x-this.width,this.y-this.height,this.width,this.height)},$t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"};var Qt=$t;function $t(e,t,i,r){void 0===t&&(t=0),void 0===i&&(i=0),void 0===r&&(r=0),this.x=e=void 0===e?0:e,this.y=t,this.width=i,this.height=r,this.type=$.SHAPES.ELIP}ti.prototype.clone=function(){var e=new ti(this.points.slice());return e.closeStroke=this.closeStroke,e},ti.prototype.contains=function(e,t){for(var i=!1,r=this.points.length/2,n=0,s=r-1;n<r;s=n++){var o=this.points[2*n],a=this.points[2*n+1],l=this.points[2*s],u=this.points[2*s+1];t<a!=t<u&&e<(t-a)/(u-a)*(l-o)+o&&(i=!i)}return i},ti.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce(function(e,t){return e+", "+t},"")+"]"};var ei=ti;function ti(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];var r=Array.isArray(t[0])?t[0]:t;if("number"!=typeof r[0]){for(var n=[],s=0,o=r.length;s<o;s++)n.push(r[s].x,r[s].y);r=n}this.points=r,this.type=$.SHAPES.POLY,this.closeStroke=!0}ri.prototype.clone=function(){return new ri(this.x,this.y,this.width,this.height,this.radius)},ri.prototype.contains=function(e,t){if(!(this.width<=0||this.height<=0)&&e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+i&&t<=this.y+this.height-i||e>=this.x+i&&e<=this.x+this.width-i)return!0;var r=e-(this.x+i),n=t-(this.y+i),s=i*i;if(r*r+n*n<=s)return!0;if((r=e-(this.x+this.width-i))*r+n*n<=s)return!0;if(r*r+(n=t-(this.y+this.height-i))*n<=s)return!0;if((r=e-(this.x+i))*r+n*n<=s)return!0}return!1},ri.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"};var ii=ri;function ri(e,t,i,r,n){void 0===t&&(t=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===n&&(n=20),this.x=e=void 0===e?0:e,this.y=t,this.width=i,this.height=r,this.radius=n,this.type=$.SHAPES.RREC}si.prototype.clone=function(e,t){return new si(e=void 0===e?this.cb:e,t=void 0===t?this.scope:t,this._x,this._y)},si.prototype.set=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=e),this._x===e&&this._y===t||(this._x=e,this._y=t,this.cb.call(this.scope)),this},si.prototype.copyFrom=function(e){return this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this},si.prototype.copyTo=function(e){return e.set(this._x,this._y),e},si.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},si.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(si.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(si.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0});var ni=si;function si(e,t,i,r){void 0===r&&(r=0),this._x=i=void 0===i?0:i,this._y=r,this.cb=e,this.scope=t}ai.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},ai.prototype.set=function(e,t,i,r,n,s){return this.a=e,this.b=t,this.c=i,this.d=r,this.tx=n,this.ty=s,this},ai.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));t=t||this.array;return e?(t[0]=this.a,t[1]=this.b,t[2]=0,t[3]=this.c,t[4]=this.d,t[5]=0,t[6]=this.tx,t[7]=this.ty):(t[0]=this.a,t[1]=this.c,t[2]=this.tx,t[3]=this.b,t[4]=this.d,t[5]=this.ty,t[6]=0,t[7]=0),t[8]=1,t},ai.prototype.apply=function(e,t){t=t||new ee;var i=e.x,e=e.y;return t.x=this.a*i+this.c*e+this.tx,t.y=this.b*i+this.d*e+this.ty,t},ai.prototype.applyInverse=function(e,t){t=t||new ee;var i=1/(this.a*this.d+this.c*-this.b),r=e.x,e=e.y;return t.x=this.d*i*r+-this.c*i*e+(this.ty*this.c-this.tx*this.d)*i,t.y=this.a*i*e+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,t},ai.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},ai.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},ai.prototype.rotate=function(e){var t=Math.cos(e),e=Math.sin(e),i=this.a,r=this.c,n=this.tx;return this.a=i*t-this.b*e,this.b=i*e+this.b*t,this.c=r*t-this.d*e,this.d=r*e+this.d*t,this.tx=n*t-this.ty*e,this.ty=n*e+this.ty*t,this},ai.prototype.append=function(e){var t=this.a,i=this.b,r=this.c,n=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*i+e.b*n,this.c=e.c*t+e.d*r,this.d=e.c*i+e.d*n,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*i+e.ty*n+this.ty,this},ai.prototype.setTransform=function(e,t,i,r,n,s,o,a,l){return this.a=Math.cos(o+l)*n,this.b=Math.sin(o+l)*n,this.c=-Math.sin(o-a)*s,this.d=Math.cos(o-a)*s,this.tx=e-(i*this.a+r*this.c),this.ty=t-(i*this.b+r*this.d),this},ai.prototype.prepend=function(e){var t,i,r=this.tx;return 1===e.a&&0===e.b&&0===e.c&&1===e.d||(t=this.a,i=this.c,this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d),this.tx=r*e.a+this.ty*e.c+e.tx,this.ty=r*e.b+this.ty*e.d+e.ty,this},ai.prototype.decompose=function(e){var t=this.a,i=this.b,r=this.c,n=this.d,s=e.pivot,o=-Math.atan2(-r,n),a=Math.atan2(i,t),l=Math.abs(o+a);return l<1e-5||Math.abs(Ht-l)<1e-5?(e.rotation=a,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=a),e.scale.x=Math.sqrt(t*t+i*i),e.scale.y=Math.sqrt(r*r+n*n),e.position.x=this.tx+(s.x*t+s.y*r),e.position.y=this.ty+(s.x*i+s.y*n),e},ai.prototype.invert=function(){var e=this.a,t=this.b,i=this.c,r=this.d,n=this.tx,s=e*r-t*i;return this.a=r/s,this.b=-t/s,this.c=-i/s,this.d=e/s,this.tx=(i*this.ty-r*n)/s,this.ty=-(e*this.ty-t*n)/s,this},ai.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},ai.prototype.clone=function(){var e=new ai;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},ai.prototype.copyTo=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},ai.prototype.copyFrom=function(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this},ai.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(ai,"IDENTITY",{get:function(){return new ai},enumerable:!1,configurable:!0}),Object.defineProperty(ai,"TEMP_MATRIX",{get:function(){return new ai},enumerable:!1,configurable:!0});var oi=ai;function ai(e,t,i,r,n,s){void 0===e&&(e=1),void 0===t&&(t=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===n&&(n=0),void 0===s&&(s=0),this.array=null,this.a=e,this.b=t,this.c=i,this.d=r,this.tx=n,this.ty=s}var li=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ui=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],hi=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ci=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],pi=[],di=[],fi=Math.sign;for(var mi=0;mi<16;mi++){var _i=[];pi.push(_i);for(var gi=0;gi<16;gi++)for(var vi=fi(li[mi]*li[gi]+hi[mi]*ui[gi]),yi=fi(ui[mi]*li[gi]+ci[mi]*ui[gi]),bi=fi(li[mi]*hi[gi]+hi[mi]*ci[gi]),xi=fi(ui[mi]*hi[gi]+ci[mi]*ci[gi]),Ti=0;Ti<16;Ti++)if(li[Ti]===vi&&ui[Ti]===yi&&hi[Ti]===bi&&ci[Ti]===xi){_i.push(Ti);break}}for(mi=0;mi<16;mi++){var wi=new oi;wi.set(li[mi],ui[mi],hi[mi],ci[mi],0,0),di.push(wi)}var Ei={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(e){return li[e]},uY:function(e){return ui[e]},vX:function(e){return hi[e]},vY:function(e){return ci[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return pi[e][t]},sub:function(e,t){return pi[e][Ei.inv(t)]},rotate180:function(e){return 4^e},isVertical:function(e){return 2==(3&e)},byDirection:function(e,t){return 2*Math.abs(e)<=Math.abs(t)?0<=t?Ei.S:Ei.N:2*Math.abs(t)<=Math.abs(e)?0<e?Ei.E:Ei.W:0<t?0<e?Ei.SE:Ei.SW:0<e?Ei.NE:Ei.NW},matrixAppendRotationInv:function(e,t,i,r){void 0===i&&(i=0),void 0===r&&(r=0);t=di[Ei.inv(t)];t.tx=i,t.ty=r,e.append(t)}},Si=(Ai.prototype.onChange=function(){this._localID++},Ai.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},Ai.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},Ai.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},Ai.prototype.updateTransform=function(e){var t,i,r=this.localTransform;this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID&&(t=e.worldTransform,(i=this.worldTransform).a=r.a*t.a+r.b*t.c,i.b=r.a*t.b+r.b*t.d,i.c=r.c*t.a+r.d*t.c,i.d=r.c*t.b+r.d*t.d,i.tx=r.tx*t.a+r.ty*t.c+t.tx,i.ty=r.tx*t.b+r.ty*t.d+t.ty,this._parentID=e._worldID,this._worldID++)},Ai.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},Object.defineProperty(Ai.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())},enumerable:!1,configurable:!0}),Ai.IDENTITY=new Ai,Ai);function Ai(){this.worldTransform=new oi,this.localTransform=new oi,this.position=new ni(this.onChange,this,0,0),this.scale=new ni(this.onChange,this,1,1),this.pivot=new ni(this.onChange,this,0,0),this.skew=new ni(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}R.SORTABLE_CHILDREN=!1;Pi.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},Pi.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},Pi.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?w.EMPTY:((e=e||new w(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},Pi.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},Pi.prototype.addPointMatrix=function(e,t){var i=e.a,r=e.b,n=e.c,s=e.d,o=e.tx,e=e.ty,i=i*t.x+n*t.y+o,n=r*t.x+s*t.y+e;this.minX=Math.min(this.minX,i),this.maxX=Math.max(this.maxX,i),this.minY=Math.min(this.minY,n),this.maxY=Math.max(this.maxY,n)},Pi.prototype.addQuad=function(e){var t=this.minX,i=this.minY,r=this.maxX,n=this.maxY,s=e[0],o=e[1],t=s<t?s:t,i=o<i?o:i,r=r<s?s:r,n=n<o?o:n;t=(s=e[2])<t?s:t,i=(o=e[3])<i?o:i,r=r<s?s:r,n=n<o?o:n,t=(s=e[4])<t?s:t,i=(o=e[5])<i?o:i,r=r<s?s:r,n=n<o?o:n,s=e[6],i=(o=e[7])<i?o:i,r=r<s?s:r,n=n<o?o:n,this.minX=s<t?s:t,this.minY=i,this.maxX=r,this.maxY=n},Pi.prototype.addFrame=function(e,t,i,r,n){this.addFrameMatrix(e.worldTransform,t,i,r,n)},Pi.prototype.addFrameMatrix=function(e,t,i,r,n){var s=e.a,o=e.b,a=e.c,l=e.d,u=e.tx,e=e.ty,h=s*t+a*i+u,c=o*t+l*i+e,p=h<(p=this.minX)?h:p,d=c<(d=this.minY)?c:d,f=(f=this.maxX)<h?h:f,m=(m=this.maxY)<c?c:m;p=(h=s*r+a*i+u)<p?h:p,d=(c=o*r+l*i+e)<d?c:d,f=f<h?h:f,m=m<c?c:m,p=(h=s*t+a*n+u)<p?h:p,d=(c=o*t+l*n+e)<d?c:d,m=m<c?c:m,d=(c=o*r+l*n+e)<d?c:d,f=(f=f<h?h:f)<(h=s*r+a*n+u)?h:f,m=m<c?c:m,this.minX=h<p?h:p,this.minY=d,this.maxX=f,this.maxY=m},Pi.prototype.addVertexData=function(e,t,i){for(var r=this.minX,n=this.minY,s=this.maxX,o=this.maxY,a=t;a<i;a+=2)var l=e[a],u=e[a+1],r=l<r?l:r,n=u<n?u:n,s=s<l?l:s,o=o<u?u:o;this.minX=r,this.minY=n,this.maxX=s,this.maxY=o},Pi.prototype.addVertices=function(e,t,i,r){this.addVerticesMatrix(e.worldTransform,t,i,r)},Pi.prototype.addVerticesMatrix=function(e,t,i,r,n,s){void 0===n&&(n=0),void 0===s&&(s=n);for(var o=e.a,a=e.b,l=e.c,u=e.d,h=e.tx,c=e.ty,p=this.minX,d=this.minY,f=this.maxX,m=this.maxY,_=i;_<r;_+=2)var g=t[_],v=t[_+1],y=o*g+l*v+h,v=u*v+a*g+c,p=Math.min(p,y-n),f=Math.max(f,y+n),d=Math.min(d,v-s),m=Math.max(m,v+s);this.minX=p,this.minY=d,this.maxX=f,this.maxY=m},Pi.prototype.addBounds=function(e){var t=this.minX,i=this.minY,r=this.maxX,n=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<i?e.minY:i,this.maxX=e.maxX>r?e.maxX:r,this.maxY=e.maxY>n?e.maxY:n},Pi.prototype.addBoundsMask=function(e,t){var i,r,n,s=(e.minX>t.minX?e:t).minX,o=(e.minY>t.minY?e:t).minY,a=(e.maxX<t.maxX?e:t).maxX,e=(e.maxY<t.maxY?e:t).maxY;s<=a&&o<=e&&(t=this.minX,i=this.minY,r=this.maxX,n=this.maxY,this.minX=s<t?s:t,this.minY=o<i?o:i,this.maxX=r<a?a:r,this.maxY=n<e?e:n)},Pi.prototype.addBoundsMatrix=function(e,t){this.addFrameMatrix(t,e.minX,e.minY,e.maxX,e.maxY)},Pi.prototype.addBoundsArea=function(e,t){var i,r,n,s=e.minX>t.x?e.minX:t.x,o=e.minY>t.y?e.minY:t.y,a=e.maxX<t.x+t.width?e.maxX:t.x+t.width,e=e.maxY<t.y+t.height?e.maxY:t.y+t.height;s<=a&&o<=e&&(t=this.minX,i=this.minY,r=this.maxX,n=this.maxY,this.minX=s<t?s:t,this.minY=o<i?o:i,this.maxX=r<a?a:r,this.maxY=n<e?e:n)},Pi.prototype.pad=function(e,t){void 0===e&&(e=0),void 0===t&&(t=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t)},Pi.prototype.addFramePad=function(e,t,i,r,n,s){t-=s,i+=n,r+=s,this.minX=this.minX<(e-=n)?this.minX:e,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<t?this.minY:t,this.maxY=this.maxY>r?this.maxY:r};var ki=Pi;function Pi(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}var Oi=function(e,t){return(Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function Ri(e,t){function i(){this.constructor=e}Oi(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}Ri(l,Ci=ie),l.mixin=function(e){for(var t=Object.keys(e),i=0;i<t.length;++i){var r=t[i];Object.defineProperty(l.prototype,r,Object.getOwnPropertyDescriptor(e,r))}},Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),l.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},l.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},l.prototype.getBounds=function(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),t||(this._boundsRect||(this._boundsRect=new w),t=this._boundsRect),this._bounds.getRectangle(t)},l.prototype.getLocalBounds=function(e){e||(this._localBoundsRect||(this._localBoundsRect=new w),e=this._localBoundsRect),this._localBounds||(this._localBounds=new ki);var t=this.transform,i=this.parent,r=(this.parent=null,this.transform=this._tempDisplayObjectParent.transform,this._bounds),n=this._boundsID,e=(this._bounds=this._localBounds,this.getBounds(!1,e));return this.parent=i,this.transform=t,this._bounds=r,this._bounds.updateID+=this._boundsID-n,e},l.prototype.toGlobal=function(e,t,i){return(i=void 0===i?!1:i)||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)},l.prototype.toLocal=function(e,t,i,r){return t&&(e=t.toGlobal(e,i,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,i)},l.prototype.setParent=function(e){if(e&&e.addChild)return e.addChild(this),e;throw new Error("setParent: Argument must be a Container")},l.prototype.setTransform=function(e,t,i,r,n,s,o,a,l){return void 0===t&&(t=0),void 0===i&&(i=1),void 0===r&&(r=1),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===l&&(l=0),this.position.x=e=void 0===e?0:e,this.position.y=t,this.scale.x=i||1,this.scale.y=r||1,this.rotation=n,this.skew.x=s,this.skew.y=o,this.pivot.x=a,this.pivot.y=l,this},l.prototype.destroy=function(e){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(l.prototype,"_tempDisplayObjectParent",{get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new Di),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),l.prototype.enableTempParent=function(){var e=this.parent;return this.parent=this._tempDisplayObjectParent,e},l.prototype.disableTempParent=function(e){this.parent=e},Object.defineProperty(l.prototype,"x",{get:function(){return this.position.x},set:function(e){this.transform.position.x=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"y",{get:function(){return this.position.y},set:function(e){this.transform.position.y=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"position",{get:function(){return this.transform.position},set:function(e){this.transform.position.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scale",{get:function(){return this.transform.scale},set:function(e){this.transform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"skew",{get:function(){return this.transform.skew},set:function(e){this.transform.skew.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"angle",{get:function(){return this.transform.rotation*Yt},set:function(e){this.transform.rotation=e*Wt},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"zIndex",{get:function(){return this._zIndex},set:function(e){this._zIndex=e,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"worldVisible",{get:function(){var e=this;do{if(!e.visible)return!1}while(e=e.parent);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"mask",{get:function(){return this._mask},set:function(e){var t;this._mask!==e&&(this._mask&&(t=this._mask.isMaskData?this._mask.maskObject:this._mask)&&(t._maskRefCount--,0===t._maskRefCount&&(t.renderable=!0,t.isMask=!1)),this._mask=e,this._mask&&(t=this._mask.isMaskData?this._mask.maskObject:this._mask)&&(0===t._maskRefCount&&(t.renderable=!1,t.isMask=!0),t._maskRefCount++))},enumerable:!1,configurable:!0});var Ci,i=l;function l(){var e=Ci.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new Si,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new ki,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}Ri(Li,Mi=i);var Mi,Ii,Di=Li;function Li(){var e=null!==Mi&&Mi.apply(this,arguments)||this;return e.sortDirty=null,e}function Fi(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}i.prototype.displayObjectUpdateTransform=i.prototype.updateTransform,(r={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR",(ne={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",ne[ne.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",ne[ne.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",ne[ne.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(se={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",se[se.CLEAR=1]="CLEAR",se[se.BLIT=2]="BLIT",(n=Ii=Ii||{})[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR";Ri(u,Ni=i),u.prototype.onChildrenChange=function(e){},u.prototype.addChild=function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];if(1<t.length)for(var r=0;r<t.length;r++)this.addChild(t[r]);else{var n=t[0];n.parent&&n.parent.removeChild(n),(n.parent=this).sortDirty=!0,n.transform._parentID=-1,this.children.push(n),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",n,this,this.children.length-1),n.emit("added",this)}return t[0]},u.prototype.addChildAt=function(e,t){if(t<0||t>this.children.length)throw new Error(e+"addChildAt: The index "+t+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e},u.prototype.swapChildren=function(e,t){var i,r;e!==t&&(i=this.getChildIndex(e),r=this.getChildIndex(t),this.children[i]=t,this.children[r]=e,this.onChildrenChange(i<r?i:r))},u.prototype.getChildIndex=function(e){e=this.children.indexOf(e);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e},u.prototype.setChildIndex=function(e,t){if(t<0||t>=this.children.length)throw new Error("The index "+t+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(e);kt(this.children,i,1),this.children.splice(t,0,e),this.onChildrenChange(t)},u.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},u.prototype.removeChild=function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];if(1<t.length)for(var r=0;r<t.length;r++)this.removeChild(t[r]);else{var n=t[0],s=this.children.indexOf(n);if(-1===s)return null;n.parent=null,n.transform._parentID=-1,kt(this.children,s,1),this._boundsID++,this.onChildrenChange(s),n.emit("removed",this),this.emit("childRemoved",n,this,s)}return t[0]},u.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,kt(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t},u.prototype.removeChildren=function(e,t){var i=e=void 0===e?0:e,r=(t=void 0===t?this.children.length:t)-i;if(0<r&&r<=t){for(var n=this.children.splice(i,r),s=0;s<n.length;++s)n[s].parent=null,n[s].transform&&(n[s].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(s=0;s<n.length;++s)n[s].emit("removed",this),this.emit("childRemoved",n[s],this,s);return n}if(0==r&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},u.prototype.sortChildren=function(){for(var e=!1,t=0,i=this.children.length;t<i;++t){var r=this.children[t];r._lastSortedIndex=t,e||0===r.zIndex||(e=!0)}e&&1<this.children.length&&this.children.sort(Fi),this.sortDirty=!1},u.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e<t;++e){var i=this.children[e];i.visible&&i.updateTransform()}},u.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var t,i=this.children[e];i.visible&&i.renderable&&(i.calculateBounds(),i._mask?(t=i._mask.isMaskData?i._mask.maskObject:i._mask)?(t.calculateBounds(),this._bounds.addBoundsMask(i._bounds,t._bounds)):this._bounds.addBounds(i._bounds):i.filterArea?this._bounds.addBoundsArea(i._bounds,i.filterArea):this._bounds.addBounds(i._bounds))}this._bounds.updateID=this._boundsID},u.prototype.getLocalBounds=function(e,t){void 0===t&&(t=!1);e=Ni.prototype.getLocalBounds.call(this,e);if(!t)for(var i=0,r=this.children.length;i<r;++i){var n=this.children[i];n.visible&&n.updateTransform()}return e},u.prototype._calculateBounds=function(){},u.prototype._renderWithCulling=function(e){var t,i,r=e.renderTexture.sourceFrame;if(0<r.width&&0<r.height){if(this.cullArea?(t=this.cullArea,i=this.worldTransform):this._render!==u.prototype._render&&(t=this.getBounds(!0)),t&&r.intersects(t,i))this._render(e);else if(this.cullArea)return;for(var n=0,s=this.children.length;n<s;++n){var o=this.children[n],a=o.cullable;o.cullable=a||!this.cullArea,o.render(e),o.cullable=a}}},u.prototype.render=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(var t=0,i=this.children.length;t<i;++t)this.children[t].render(e)}},u.prototype.renderAdvanced=function(e){var t=this.filters,i=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]);for(var r=this._enabledFilters.length=0;r<t.length;r++)t[r].enabled&&this._enabledFilters.push(t[r])}var n=t&&this._enabledFilters&&this._enabledFilters.length||i&&(!i.isMaskData||i.enabled&&(i.autoDetect||i.type!==Ii.NONE));if(n&&e.batch.flush(),t&&this._enabledFilters&&this._enabledFilters.length&&e.filter.push(this,this._enabledFilters),i&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(var r=0,s=this.children.length;r<s;++r)this.children[r].render(e)}n&&e.batch.flush(),i&&e.mask.pop(this),t&&this._enabledFilters&&this._enabledFilters.length&&e.filter.pop()},u.prototype._render=function(e){},u.prototype.destroy=function(e){Ni.prototype.destroy.call(this),this.sortDirty=!1;var t="boolean"==typeof e?e:e&&e.children,i=this.removeChildren(0,this.children.length);if(t)for(var r=0;r<i.length;++r)i[r].destroy(e)},Object.defineProperty(u.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var t=this.getLocalBounds().width;this.scale.x=0!==t?e/t:1,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var t=this.getLocalBounds().height;this.scale.y=0!==t?e/t:1,this._height=e},enumerable:!1,configurable:!0});var Ni,zi=u;function u(){var e=Ni.call(this)||this;return e.children=[],e.sortableChildren=R.SORTABLE_CHILDREN,e.sortDirty=!1,e}zi.prototype.containerUpdateTransform=zi.prototype.updateTransform;function Bi(e){if("function"==typeof e||"object"==typeof e&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");var t="object"!=typeof e.extension?{type:e.extension}:e.extension;e=Ui(Ui({},t),{ref:e})}if("object"!=typeof e)throw new Error("Invalid extension type");return"string"==typeof(e=Ui({},e)).type&&(e.type=[e.type]),e}var Ui=function(){return(Ui=Object.assign||function(e){for(var t,i=arguments,r=1,n=arguments.length;r<n;r++)for(var s in t=i[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},ji=($.ExtensionType=void 0,(s=$.ExtensionType||($.ExtensionType={})).Application="application",s.RendererPlugin="renderer-webgl-plugin",s.CanvasRendererPlugin="renderer-canvas-plugin",s.Loader="loader",s.LoadParser="load-parser",s.ResolveParser="resolve-parser",s.CacheParser="cache-parser",s.DetectionParser="detection-parser",{_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var e=arguments,r=this,t=[],i=0;i<arguments.length;i++)t[i]=e[i];return t.map(Bi).forEach(function(i){i.type.forEach(function(e){var t;return null==(e=(t=r._removeHandlers)[e])?void 0:e.call(t,i)})}),this},add:function(){for(var e=arguments,n=this,t=[],i=0;i<arguments.length;i++)t[i]=e[i];return t.map(Bi).forEach(function(r){r.type.forEach(function(e){var t=n._addHandlers,i=n._queue;t[e]?t[e](r):(i[e]=i[e]||[],i[e].push(r))})}),this},handle:function(e,t,i){var r=this._addHandlers=this._addHandlers||{},n=this._removeHandlers=this._removeHandlers||{};if(r[e]||n[e])throw new Error("Extension type "+e+" already has a handler");r[e]=t,n[e]=i;r=this._queue;return r[e]&&(r[e].forEach(function(e){return t(e)}),delete r[e]),this},handleByMap:function(e,t){return this.handle(e,function(e){t[e.name]=e.ref},function(e){delete t[e.name]})},handleByList:function(i,r){return this.handle(i,function(e){var t;r.push(e.ref),i===$.ExtensionType.Loader&&null!=(t=(e=e.ref).add)&&t.call(e)},function(e){e=r.indexOf(e.ref);-1!==e&&r.splice(e,1)})}}),Gi=(Xi.prototype.emit=function(e,t,i,r,n,s,o,a){if(8<arguments.length)throw new Error("max arguments reached");var l=this.name,u=this.items;this._aliasCount++;for(var h=0,c=u.length;h<c;h++)u[h][l](e,t,i,r,n,s,o,a);return u===this.items&&this._aliasCount--,this},Xi.prototype.ensureNonAliasedItems=function(){0<this._aliasCount&&1<this.items.length&&(this._aliasCount=0,this.items=this.items.slice(0))},Xi.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},Xi.prototype.remove=function(e){e=this.items.indexOf(e);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},Xi.prototype.contains=function(e){return-1!==this.items.indexOf(e)},Xi.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},Xi.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(Xi.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(Xi.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Xi);function Xi(e){this.items=[],this._name=e,this._aliasCount=0}Object.defineProperties(Gi.prototype,{dispatch:{value:Gi.prototype.emit},run:{value:Gi.prototype.emit}}),R.TARGET_FPMS=.06,$.UPDATE_PRIORITY=void 0,(o=$.UPDATE_PRIORITY||($.UPDATE_PRIORITY={}))[o.INTERACTION=50]="INTERACTION",o[o.HIGH=25]="HIGH",o[o.NORMAL=0]="NORMAL",o[o.LOW=-25]="LOW",o[o.UTILITY=-50]="UTILITY";Yi.prototype.match=function(e,t){return void 0===t&&(t=null),this.fn===e&&this.context===t},Yi.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},Yi.prototype.connect=function(e){(this.previous=e).next&&(e.next.previous=this),this.next=e.next,e.next=this},Yi.prototype.destroy=function(e){void 0===e&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.next;return this.next=e?null:t,this.previous=null,t};var Hi=Yi;function Yi(e,t,i,r){void 0===t&&(t=null),void 0===i&&(i=0),void 0===r&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=t,this.priority=i,this.once=r}h.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},h.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},h.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},h.prototype.add=function(e,t,i){return void 0===i&&(i=$.UPDATE_PRIORITY.NORMAL),this._addListener(new Hi(e,t,i))},h.prototype.addOnce=function(e,t,i){return void 0===i&&(i=$.UPDATE_PRIORITY.NORMAL),this._addListener(new Hi(e,t,i,!0))},h.prototype._addListener=function(e){var t=this._head.next,i=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(i);break}t=(i=t).next}e.previous||e.connect(i)}else e.connect(i);return this._startIfPossible(),this},h.prototype.remove=function(e,t){for(var i=this._head.next;i;)i=i.match(e,t)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(h.prototype,"count",{get:function(){if(!this._head)return 0;for(var e=0,t=this._head;t=t.next;)e++;return e},enumerable:!1,configurable:!0}),h.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},h.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},h.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},h.prototype.update=function(e){var t;if((e=void 0===e?performance.now():e)>this.lastTime){if((t=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){var i=e-this._lastFrame|0;if(i<this._minElapsedMS)return;this._lastFrame=e-i%this._minElapsedMS}this.deltaMS=t,this.deltaTime=this.deltaMS*R.TARGET_FPMS;for(var i=this._head,r=i.next;r;)r=r.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e},Object.defineProperty(h.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(e){e=Math.min(this.maxFPS,e),e=Math.min(Math.max(0,e)/1e3,R.TARGET_FPMS);this._maxElapsedMS=1/e},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(e){0===e?this._minElapsedMS=0:(e=Math.max(this.minFPS,e),this._minElapsedMS=1/(e/1e3))},enumerable:!1,configurable:!0}),Object.defineProperty(h,"shared",{get:function(){var e;return h._shared||((e=h._shared=new h).autoStart=!0,e._protected=!0),h._shared},enumerable:!1,configurable:!0}),Object.defineProperty(h,"system",{get:function(){var e;return h._system||((e=h._system=new h).autoStart=!0,e._protected=!0),h._system},enumerable:!1,configurable:!0});var Wi=h;function h(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Hi(null,null,1/0),this.deltaMS=1/R.TARGET_FPMS,this.elapsedMS=1/R.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}Vi.init=function(e){var t=this;e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{set:function(e){this._ticker&&this._ticker.remove(this.render,this),(this._ticker=e)&&e.add(this.render,this,$.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}}),this.stop=function(){t._ticker.stop()},this.start=function(){t._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?Wi.shared:new Wi,e.autoStart&&this.start()},Vi.destroy=function(){var e;this._ticker&&(e=this._ticker,this.ticker=null,e.destroy())},Vi.extension=$.ExtensionType.Application;oe=Vi;function Vi(){}R.PREFER_ENV=he.any?$.ENV.WEBGL:$.ENV.WEBGL2,R.STRICT_TEXTURE_CACHE=!1;var qi=[];function Ki(e,t){if(!e)return null;var i,r="";"string"==typeof e&&(i=/\.(\w{3,4})(?:$|\?|#)/i.exec(e))&&(r=i[1].toLowerCase());for(var n=qi.length-1;0<=n;--n){var s=qi[n];if(s.test&&s.test(e,r))return new s(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}var Zi=function(e,t){return(Zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function c(e,t){function i(){this.constructor=e}Zi(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var Ji=function(){return(Ji=Object.assign||function(e){for(var t,i=arguments,r=1,n=arguments.length;r<n;r++)for(var s in t=i[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};$i.prototype.bind=function(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},$i.prototype.unbind=function(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)},$i.prototype.resize=function(e,t){e===this._width&&t===this._height||(this._width=e,this._height=t,this.onResize.emit(e,t))},Object.defineProperty($i.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),$i.prototype.update=function(){this.destroyed||this.onUpdate.emit()},$i.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty($i.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty($i.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),$i.prototype.style=function(e,t,i){return!1},$i.prototype.dispose=function(){},$i.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},$i.test=function(e,t){return!1};var Qi=$i;function $i(e,t){void 0===t&&(t=0),this._width=e=void 0===e?0:e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Gi("setRealSize"),this.onUpdate=new Gi("update"),this.onError=new Gi("onError")}c(ir,er=Qi),ir.prototype.upload=function(e,t,i){var e=e.gl,r=(e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===$.ALPHA_MODES.UNPACK),t.realWidth),n=t.realHeight;return i.width===r&&i.height===n?e.texSubImage2D(t.target,0,0,0,r,n,t.format,i.type,this.data):(i.width=r,i.height=n,e.texImage2D(t.target,0,i.internalFormat,r,n,0,t.format,i.type,this.data)),!0},ir.prototype.dispose=function(){this.data=null},ir.test=function(e){return e instanceof Float32Array||e instanceof Uint8Array||e instanceof Uint32Array};var er,tr=ir;function ir(e,t){var i=this,t=t||{},r=t.width,t=t.height;if(r&&t)return(i=er.call(this,r,t)||this).data=e,i;throw new Error("BufferResource width or height invalid")}var rr,nr={scaleMode:$.SCALE_MODES.NEAREST,format:$.FORMATS.RGBA,alphaMode:$.ALPHA_MODES.NPM},C=(c(p,rr=ie),Object.defineProperty(p.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),p.prototype.setStyle=function(e,t){var i;return void 0!==e&&e!==this.scaleMode&&(this.scaleMode=e,i=!0),void 0!==t&&t!==this.mipmap&&(this.mipmap=t,i=!0),i&&this.dirtyStyleId++,this},p.prototype.setSize=function(e,t,i){return i=i||this.resolution,this.setRealSize(e*i,t*i,i)},p.prototype.setRealSize=function(e,t,i){return this.resolution=i||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this},p.prototype._refreshPOT=function(){this.isPowerOfTwo=St(this.realWidth)&&St(this.realHeight)},p.prototype.setResolution=function(e){var t=this.resolution;return t!==e&&(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT()),this},p.prototype.setResource=function(e){if(this.resource!==e){if(this.resource)throw new Error("Resource can be set only once");e.bind(this),this.resource=e}return this},p.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):0<this.width&&0<this.height&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},p.prototype.onError=function(e){this.emit("error",this,e)},p.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Lt[this.cacheId],delete Dt[this.cacheId],this.cacheId=null),this.dispose(),p.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},p.prototype.dispose=function(){this.emit("dispose",this)},p.prototype.castToBaseTexture=function(){return this},p.from=function(e,t,i){void 0===i&&(i=R.STRICT_TEXTURE_CACHE);var r="string"==typeof e,n=null,n=r?e:(e._pixiId||(s=t&&t.pixiIdPrefix||"pixiid",e._pixiId=s+"_"+ ++Ot),e._pixiId),s=Lt[n];if(r&&i&&!s)throw new Error('The cacheId "'+n+'" does not exist in BaseTextureCache.');return s||((s=new p(e,t)).cacheId=n,p.addToCache(s,n)),s},p.fromBuffer=function(e,t,i,r){e=e||new Float32Array(t*i*4);var n=new tr(e,{width:t,height:i}),e=e instanceof Float32Array?$.TYPES.FLOAT:$.TYPES.UNSIGNED_BYTE;return new p(n,Object.assign(nr,r||{width:t,height:i,type:e}))},p.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),Lt[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),Lt[t]=e)},p.removeFromCache=function(e){if("string"==typeof e){var t,i=Lt[e];if(i)return-1<(t=i.textureCacheIds.indexOf(e))&&i.textureCacheIds.splice(t,1),delete Lt[e],i}else if(e&&e.textureCacheIds){for(var r=0;r<e.textureCacheIds.length;++r)delete Lt[e.textureCacheIds[r]];return e.textureCacheIds.length=0,e}return null},p._globalBatch=0,p);function p(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var i=rr.call(this)||this,r=(t=t||{}).alphaMode,n=t.mipmap,s=t.anisotropicLevel,o=t.scaleMode,a=t.width,l=t.height,u=t.wrapMode,h=t.format,c=t.type,p=t.target,d=t.resolution,t=t.resourceOptions;return!e||e instanceof Qi||((e=Ki(e,t)).internal=!0),i.resolution=d||R.RESOLUTION,i.width=Math.round((a||0)*i.resolution)/i.resolution,i.height=Math.round((l||0)*i.resolution)/i.resolution,i._mipmap=void 0!==n?n:R.MIPMAP_TEXTURES,i.anisotropicLevel=void 0!==s?s:R.ANISOTROPIC_LEVEL,i._wrapMode=u||R.WRAP_MODE,i._scaleMode=void 0!==o?o:R.SCALE_MODE,i.format=h||$.FORMATS.RGBA,i.type=c||$.TYPES.UNSIGNED_BYTE,i.target=p||$.TARGETS.TEXTURE_2D,i.alphaMode=void 0!==r?r:$.ALPHA_MODES.UNPACK,i.uid=++Ot,i.touched=0,i.isPowerOfTwo=!1,i._refreshPOT(),i._glTextures={},i.dirtyId=0,i.dirtyStyleId=0,i.cacheId=null,i.valid=0<a&&0<l,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(e),i}c(or,sr=Qi),or.prototype.initFromArray=function(e,t){for(var i=0;i<this.length;i++)e[i]&&(e[i].castToBaseTexture?this.addBaseTextureAt(e[i].castToBaseTexture(),i):e[i]instanceof Qi?this.addResourceAt(e[i],i):this.addResourceAt(Ki(e[i],t),i))},or.prototype.dispose=function(){for(var e=0,t=this.length;e<t;e++)this.items[e].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},or.prototype.addResourceAt=function(e,t){if(this.items[t])return e.valid&&!this.valid&&this.resize(e.width,e.height),this.items[t].setResource(e),this;throw new Error("Index "+t+" is out of bounds")},or.prototype.bind=function(e){if(null!==this.baseTexture)throw new Error("Only one base texture per TextureArray is allowed");sr.prototype.bind.call(this,e);for(var t=0;t<this.length;t++)this.items[t].parentTextureArray=e,this.items[t].on("update",e.update,e)},or.prototype.unbind=function(e){sr.prototype.unbind.call(this,e);for(var t=0;t<this.length;t++)this.items[t].parentTextureArray=null,this.items[t].off("update",e.update,e)},or.prototype.load=function(){var e,i=this;return this._load||(e=this.items.map(function(e){return e.resource}).filter(function(e){return e}).map(function(e){return e.load()}),this._load=Promise.all(e).then(function(){var e=i.items[0],t=e.realWidth,e=e.realHeight;return i.resize(t,e),Promise.resolve(i)})),this._load};var sr,a=or;function or(e,t){var i=this,t=t||{},r=t.width,t=t.height;(i=sr.call(this,r,t)||this).items=[],i.itemDirtyIds=[];for(var n=0;n<e;n++){var s=new C;i.items.push(s),i.itemDirtyIds.push(-2)}return i.length=e,i._load=null,i.baseTexture=null,i}c(lr,ar=a),lr.prototype.addBaseTextureAt=function(e,t){if(e.resource)return this.addResourceAt(e.resource,t),this;throw new Error("ArrayResource does not support RenderTexture")},lr.prototype.bind=function(e){ar.prototype.bind.call(this,e),e.target=$.TARGETS.TEXTURE_2D_ARRAY},lr.prototype.upload=function(e,t,i){var r=this.length,n=this.itemDirtyIds,s=this.items,o=e.gl;i.dirtyId<0&&o.texImage3D(o.TEXTURE_2D_ARRAY,0,i.internalFormat,this._width,this._height,r,0,t.format,i.type,null);for(var a=0;a<r;a++){var l=s[a];n[a]<l.dirtyId&&(n[a]=l.dirtyId,l.valid&&o.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,a,l.resource.width,l.resource.height,1,t.format,i.type,l.resource.source))}return!0};var ar,le=lr;function lr(e,t){var i,r=this,n=t||{},s=n.width,n=n.height,e=Array.isArray(e)?(i=e).length:e,r=ar.call(this,e,{width:s,height:n})||this;return i&&r.initFromArray(i,t),r}c(cr,ur=Qi),cr.crossOrigin=function(e,t,i){void 0===i&&0!==t.indexOf("data:")?e.crossOrigin=jt(t):!1!==i&&(e.crossOrigin="string"==typeof i?i:"anonymous")},cr.prototype.upload=function(e,t,i,r){var e=e.gl,n=t.realWidth,s=t.realHeight;if((r=r||this.source)instanceof HTMLImageElement){if(!r.complete||0===r.naturalWidth)return!1}else if(r instanceof HTMLVideoElement&&r.readyState<=1)return!1;return e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===$.ALPHA_MODES.UNPACK),this.noSubImage||t.target!==e.TEXTURE_2D||i.width!==n||i.height!==s?(i.width=n,i.height=s,e.texImage2D(t.target,0,i.internalFormat,t.format,i.type,r)):e.texSubImage2D(e.TEXTURE_2D,0,0,0,t.format,i.type,r),!0},cr.prototype.update=function(){var e,t;this.destroyed||(e=(t=this.source).naturalWidth||t.videoWidth||t.width,t=t.naturalHeight||t.videoHeight||t.height,this.resize(e,t),ur.prototype.update.call(this))},cr.prototype.dispose=function(){this.source=null};var ur,hr=cr;function cr(e){var t=this,i=e.naturalWidth||e.videoWidth||e.width,r=e.naturalHeight||e.videoHeight||e.height;return(t=ur.call(this,i,r)||this).source=e,t.noSubImage=!1,t}c(dr,pr=hr),dr.test=function(e){var t=globalThis.OffscreenCanvas;return!!(t&&e instanceof t)||globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement};var pr,d=dr;function dr(e){return pr.call(this,e)||this}c(mr,fr=a),mr.prototype.bind=function(e){fr.prototype.bind.call(this,e),e.target=$.TARGETS.TEXTURE_CUBE_MAP},mr.prototype.addBaseTextureAt=function(e,t,i){if(!this.items[t])throw new Error("Index "+t+" is out of bounds");if(!this.linkBaseTexture||e.parentTextureArray||0<Object.keys(e._glTextures).length){if(!e.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(e.resource,t)}else e.target=$.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this},mr.prototype.upload=function(e,t,i){for(var r=this.itemDirtyIds,n=0;n<mr.SIDES;n++){var s=this.items[n];(r[n]<s.dirtyId||i.dirtyId<t.dirtyId)&&(s.valid&&s.resource?(s.resource.upload(e,s,i),r[n]=s.dirtyId):r[n]<-1&&(e.gl.texImage2D(s.target,0,i.internalFormat,t.realWidth,t.realHeight,0,t.format,i.type,null),r[n]=-1))}return!0},mr.test=function(e){return Array.isArray(e)&&e.length===mr.SIDES},mr.SIDES=6;var fr,ae=mr;function mr(e,t){var i=this,r=t||{},n=r.width,s=r.height,o=r.autoLoad,r=r.linkBaseTexture;if(e&&e.length!==mr.SIDES)throw new Error("Invalid length. Got "+e.length+", expected 6");for(var i=fr.call(this,6,{width:n,height:s})||this,a=0;a<mr.SIDES;a++)i.items[a].target=$.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+a;return i.linkBaseTexture=!1!==r,e&&i.initFromArray(e,t),!1!==o&&i.load(),i}c(vr,_r=hr),vr.prototype.load=function(e){var n=this;return this._load||(void 0!==e&&(this.createBitmap=e),this._load=new Promise(function(e,t){function i(){n.destroyed||(r.onload=null,r.onerror=null,n.resize(r.width,r.height),n._load=null,n.createBitmap?e(n.process()):e(n))}var r=n.source;n.url=r.src;r.complete&&r.src?i():(r.onload=i,r.onerror=function(e){t(e),n.onError.emit(e)})})),this._load},vr.prototype.process=function(){var t=this,i=this.source;if(null===this._process){if(null!==this.bitmap||!globalThis.createImageBitmap)return Promise.resolve(this);var r=globalThis.createImageBitmap,e=!i.crossOrigin||"anonymous"===i.crossOrigin;this._process=fetch(i.src,{mode:e?"cors":"no-cors"}).then(function(e){return e.blob()}).then(function(e){return r(e,0,0,i.width,i.height,{premultiplyAlpha:t.alphaMode===$.ALPHA_MODES.UNPACK?"premultiply":"none"})}).then(function(e){return t.destroyed?Promise.reject():(t.bitmap=e,t.update(),t._process=null,Promise.resolve(t))})}return this._process},vr.prototype.upload=function(e,t,i){if("number"==typeof this.alphaMode&&(t.alphaMode=this.alphaMode),!this.createBitmap)return _r.prototype.upload.call(this,e,t,i);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(_r.prototype.upload.call(this,e,t,i,this.bitmap),!this.preserveBitmap){var r,n=!0,s=t._glTextures;for(r in s){var o=s[r];if(o!==i&&o.dirtyId!==t.dirtyId){n=!1;break}}n&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},vr.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,_r.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},vr.test=function(e){return"string"==typeof e||e instanceof HTMLImageElement};var _r,gr=vr;function vr(e,t){var i,r=this;return t=t||{},e instanceof HTMLImageElement||(i=new Image,hr.crossOrigin(i,e,t.crossorigin),i.src=e,e=i),r=_r.call(this,e)||this,!e.complete&&r._width&&r._height&&(r._width=0,r._height=0),r.url=e.src,r._process=null,r.preserveBitmap=!1,r.createBitmap=(void 0!==t.createBitmap?t.createBitmap:R.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,r.alphaMode="number"==typeof t.alphaMode?t.alphaMode:null,r.bitmap=null,r._load=null,!1!==t.autoLoad&&r.load(),r}c(br,yr=hr),br.prototype.load=function(){var t=this;return this._load||(this._load=new Promise(function(e){if(t._resolve=function(){t.resize(t.source.width,t.source.height),e(t)},br.SVG_XML.test(t.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");t.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(t.svg)))}t._loadSvg()})),this._load},br.prototype._loadSvg=function(){var s=this,o=new Image;hr.crossOrigin(o,this.svg,this._crossorigin),o.src=this.svg,o.onerror=function(e){s._resolve&&(o.onerror=null,s.onError.emit(e))},o.onload=function(){if(s._resolve){var e=o.width,t=o.height;if(!e||!t)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var i=e*s.scale,r=t*s.scale,n=((s._overrideWidth||s._overrideHeight)&&(i=s._overrideWidth||s._overrideHeight/t*e,r=s._overrideHeight||s._overrideWidth/e*t),i=Math.round(i),r=Math.round(r),s.source);n.width=i,n.height=r,n._pixiId="canvas_"+ ++Ot,n.getContext("2d").drawImage(o,0,0,e,t,0,0,i,r),s._resolve(),s._resolve=null}}},br.getSize=function(e){var e=br.SVG_SIZE.exec(e),t={};return e&&(t[e[1]]=Math.round(parseFloat(e[3])),t[e[5]]=Math.round(parseFloat(e[7]))),t},br.prototype.dispose=function(){yr.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},br.test=function(e,t){return"svg"===t||"string"==typeof e&&e.startsWith("data:image/svg+xml")||"string"==typeof e&&br.SVG_XML.test(e)},br.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,br.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var yr,f=br;function br(e,t){var i=this;return t=t||{},(i=yr.call(this,R.ADAPTER.createCanvas())||this)._width=0,i._height=0,i.svg=e,i.scale=t.scale||1,i._overrideWidth=t.width,i._overrideHeight=t.height,i._resolve=null,i._crossorigin=t.crossorigin,i._load=null,!1!==t.autoLoad&&i.load(),i}c(wr,xr=hr),wr.prototype.update=function(e){var t;this.destroyed||(t=Wi.shared.elapsedMS*this.source.playbackRate,this._msToNextUpdate=Math.floor(this._msToNextUpdate-t),(!this._updateFPS||this._msToNextUpdate<=0)&&(xr.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0))},wr.prototype.load=function(){var t,i=this;return this._load||(((t=this.source).readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=!0),t.addEventListener("play",this._onPlayStart.bind(this)),t.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(t.addEventListener("canplay",this._onCanPlay),t.addEventListener("canplaythrough",this._onCanPlay),t.addEventListener("error",this._onError,!0)),this._load=new Promise(function(e){i.valid?e(i):(i._resolve=e,t.load())})),this._load},wr.prototype._onError=function(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)},wr.prototype._isSourcePlaying=function(){var e=this.source;return 0<e.currentTime&&!1===e.paused&&!1===e.ended&&2<e.readyState},wr.prototype._isSourceReady=function(){var e=this.source;return 3===e.readyState||4===e.readyState},wr.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Wi.shared.add(this.update,this),this._isConnectedToTicker=!0)},wr.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1)},wr.prototype._onCanPlay=function(){var e=this.source,t=(e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay),this.valid);this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},wr.prototype.dispose=function(){this._isConnectedToTicker&&(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),xr.prototype.dispose.call(this)},Object.defineProperty(wr.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Wi.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(wr.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),wr.test=function(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||-1<wr.TYPES.indexOf(t)},wr.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],wr.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};var xr,Tr=wr;function wr(e,t){var i=this;if(t=t||{},!(e instanceof HTMLVideoElement)){var r=document.createElement("video"),n=(r.setAttribute("preload","auto"),r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline",""),(e="string"==typeof e?[e]:e)[0].src||e[0]);hr.crossOrigin(r,n,t.crossorigin);for(var s=0;s<e.length;++s){var o=document.createElement("source"),a=e[s],l=a.src,a=a.mime,u=(l=l||e[s]).split("?").shift().toLowerCase(),u=u.slice(u.lastIndexOf(".")+1),a=a||wr.MIME_TYPES[u]||"video/"+u;o.src=l,o.type=a,r.appendChild(o)}e=r}return(i=xr.call(this,e)||this).noSubImage=!0,i._autoUpdate=!0,i._isConnectedToTicker=!1,i._updateFPS=t.updateFPS||0,i._msToNextUpdate=0,i.autoPlay=!1!==t.autoPlay,i._load=null,i._resolve=null,i._onCanPlay=i._onCanPlay.bind(i),i._onError=i._onError.bind(i),!1!==t.autoLoad&&i.load(),i}c(Ar,Er=hr),Ar.test=function(e){return!!globalThis.createImageBitmap&&"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap};var Er,Sr=Ar;function Ar(e){return Er.call(this,e)||this}qi.push(gr,Sr,d,Tr,f,tr,ae,le);var kr,Pr={__proto__:null,Resource:Qi,BaseImageResource:hr,INSTALLED:qi,autoDetectResource:Ki,AbstractMultiResource:a,ArrayResource:le,BufferResource:tr,CanvasResource:d,CubeResource:ae,ImageResource:gr,SVGResource:f,VideoResource:Tr,ImageBitmapResource:Sr},Or=(c(Rr,kr=tr),Rr.prototype.upload=function(e,t,i){var e=e.gl,r=(e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===$.ALPHA_MODES.UNPACK),t.realWidth),n=t.realHeight;return i.width===r&&i.height===n?e.texSubImage2D(t.target,0,0,0,r,n,t.format,i.type,this.data):(i.width=r,i.height=n,e.texImage2D(t.target,0,i.internalFormat,r,n,0,t.format,i.type,this.data)),!0},Rr);function Rr(){return null!==kr&&kr.apply(this,arguments)||this}Object.defineProperty(Mr.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),Mr.prototype.addColorTexture=function(e,t){return this.colorTextures[e=void 0===e?0:e]=t||new C(null,{scaleMode:$.SCALE_MODES.NEAREST,resolution:1,mipmap:$.MIPMAP_MODES.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},Mr.prototype.addDepthTexture=function(e){return this.depthTexture=e||new C(new Or(null,{width:this.width,height:this.height}),{scaleMode:$.SCALE_MODES.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:$.MIPMAP_MODES.OFF,format:$.FORMATS.DEPTH_COMPONENT,type:$.TYPES.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},Mr.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},Mr.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},Mr.prototype.resize=function(e,t){if(e=Math.round(e),t=Math.round(t),e!==this.width||t!==this.height){this.width=e,this.height=t,this.dirtyId++,this.dirtySize++;for(var i=0;i<this.colorTextures.length;i++){var r=this.colorTextures[i],n=r.resolution;r.setSize(e/n,t/n)}this.depthTexture&&(n=this.depthTexture.resolution,this.depthTexture.setSize(e/n,t/n))}},Mr.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},Mr.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)};var Cr=Mr;function Mr(e,t){this.width=Math.round(e||100),this.height=Math.round(t||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Gi("disposeFramebuffer"),this.multisample=$.MSAA_QUALITY.NONE}c(Lr,Ir=C),Lr.prototype.resize=function(e,t){this.framebuffer.resize(e*this.resolution,t*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},Lr.prototype.dispose=function(){this.framebuffer.dispose(),Ir.prototype.dispose.call(this)},Lr.prototype.destroy=function(){Ir.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null};var Ir,Dr=Lr;function Lr(e){var t=this;return(e="number"==typeof(e=void 0===e?{}:e)?{width:arguments[0],height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}:e).width=e.width||100,e.height=e.height||100,e.multisample=void 0!==e.multisample?e.multisample:$.MSAA_QUALITY.NONE,(t=Ir.call(this,null,e)||this).mipmap=$.MIPMAP_MODES.OFF,t.valid=!0,t.clearColor=[0,0,0,0],t.framebuffer=new Cr(t.realWidth,t.realHeight).addColorTexture(0,t),t.framebuffer.multisample=e.multisample,t.maskStack=[],t.filterStack=[{}],t}Nr.prototype.set=function(e,t,i){var r,n,s,o,a=t.width,t=t.height;i?(r=e.width/2/a,n=e.height/2/t,s=e.x/a+r,o=e.y/t+n,i=Ei.add(i,Ei.NW),this.x0=s+r*Ei.uX(i),this.y0=o+n*Ei.uY(i),i=Ei.add(i,2),this.x1=s+r*Ei.uX(i),this.y1=o+n*Ei.uY(i),i=Ei.add(i,2),this.x2=s+r*Ei.uX(i),this.y2=o+n*Ei.uY(i),i=Ei.add(i,2),this.x3=s+r*Ei.uX(i),this.y3=o+n*Ei.uY(i)):(this.x0=e.x/a,this.y0=e.y/t,this.x1=(e.x+e.width)/a,this.y1=e.y/t,this.x2=(e.x+e.width)/a,this.y2=(e.y+e.height)/t,this.x3=e.x/a,this.y3=(e.y+e.height)/t),this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},Nr.prototype.toString=function(){return"[@pixi/core:TextureUvs x0="+this.x0+" y0="+this.y0+" x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" y2="+this.y2+" x3="+this.x3+" y3="+this.y3+"]"};var Fr=Nr;function Nr(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}var zr=new Fr;function Br(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}c(m,Ur=ie),m.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},m.prototype.onBaseTextureUpdated=function(e){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=e.width,this._frame.height=e.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},m.prototype.destroy=function(e){this.baseTexture&&(e&&((e=this.baseTexture.resource)&&e.url&&Dt[e.url]&&m.removeFromCache(e.url),this.baseTexture.destroy()),this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,m.removeFromCache(this),this.textureCacheIds=null},m.prototype.clone=function(){var e=this._frame.clone(),t=this._frame===this.orig?e:this.orig.clone(),t=new m(this.baseTexture,!this.noFrame&&e,t,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(t._frame=e),t},m.prototype.updateUvs=function(){this._uvs===zr&&(this._uvs=new Fr),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},m.from=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i=R.STRICT_TEXTURE_CACHE);var r="string"==typeof e,n=null,n=r?e:e instanceof C?(e.cacheId||(s=t&&t.pixiIdPrefix||"pixiid",e.cacheId=s+"-"+ ++Ot,C.addToCache(e,e.cacheId)),e.cacheId):(e._pixiId||(s=t&&t.pixiIdPrefix||"pixiid",e._pixiId=s+"_"+ ++Ot),e._pixiId),s=Dt[n];if(r&&i&&!s)throw new Error('The cacheId "'+n+'" does not exist in TextureCache.');return s||e instanceof C?!s&&e instanceof C&&(s=new m(e),m.addToCache(s,n)):(t.resolution||(t.resolution=Gt(e)),(s=new m(new C(e,t))).baseTexture.cacheId=n,C.addToCache(s.baseTexture,n),m.addToCache(s,n)),s},m.fromURL=function(e,t){var i=Object.assign({autoLoad:!1},null==t?void 0:t.resourceOptions),r=m.from(e,Object.assign({resourceOptions:i},t),!1),e=r.baseTexture.resource;return r.baseTexture.valid?Promise.resolve(r):e.load().then(function(){return Promise.resolve(r)})},m.fromBuffer=function(e,t,i,r){return new m(C.fromBuffer(e,t,i,r))},m.fromLoader=function(e,t,i,r){var e=new C(e,Object.assign({scaleMode:R.SCALE_MODE,resolution:Gt(t)},r)),r=e.resource,n=(r instanceof gr&&(r.url=t),new m(e));return C.addToCache(n.baseTexture,i=i||t),m.addToCache(n,i),i!==t&&(C.addToCache(n.baseTexture,t),m.addToCache(n,t)),n.baseTexture.valid?Promise.resolve(n):new Promise(function(e){n.baseTexture.once("loaded",function(){return e(n)})})},m.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),Dt[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),Dt[t]=e)},m.removeFromCache=function(e){if("string"==typeof e){var t,i=Dt[e];if(i)return-1<(t=i.textureCacheIds.indexOf(e))&&i.textureCacheIds.splice(t,1),delete Dt[e],i}else if(e&&e.textureCacheIds){for(var r=0;r<e.textureCacheIds.length;++r)Dt[e.textureCacheIds[r]]===e&&delete Dt[e.textureCacheIds[r]];return e.textureCacheIds.length=0,e}return null},Object.defineProperty(m.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"frame",{get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var t=e.x,i=e.y,r=e.width,n=e.height,s=t+r>this.baseTexture.width,o=i+n>this.baseTexture.height;if(s||o)throw t="X: "+t+" + "+r+" = "+(t+r)+" > "+this.baseTexture.width,i="Y: "+i+" + "+n+" = "+(i+n)+" > "+this.baseTexture.height,new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+t+" "+(s&&o?"and":"or")+" "+i);this.valid=r&&n&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),m.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(m,"EMPTY",{get:function(){return m._EMPTY||(Br(m._EMPTY=new m(new C)),Br(m._EMPTY.baseTexture)),m._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(m,"WHITE",{get:function(){var e,t;return m._WHITE||(t=(e=R.ADAPTER.createCanvas(16,16)).getContext("2d"),e.width=16,e.height=16,t.fillStyle="white",t.fillRect(0,0,16,16),Br(m._WHITE=new m(C.from(e))),Br(m._WHITE.baseTexture)),m._WHITE},enumerable:!1,configurable:!0});var Ur,te=m;function m(e,t,i,r,n,s){var o=Ur.call(this)||this;if(o.noFrame=!1,t||(o.noFrame=!0,t=new w(0,0,1,1)),e instanceof m&&(e=e.baseTexture),o.baseTexture=e,o._frame=t,o.trim=r,o.valid=!1,o._uvs=zr,o.uvMatrix=null,o.orig=i||t,o._rotate=Number(n||0),!0===n)o._rotate=2;else if(o._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return o.defaultAnchor=s?new ee(s.x,s.y):new ee(0,0),o._updateID=0,o.textureCacheIds=[],e.valid?o.noFrame?e.valid&&o.onBaseTextureUpdated(e):o.frame=t:e.once("loaded",o.onBaseTextureUpdated,o),o.noFrame&&e.on("update",o.onBaseTextureUpdated,o),o}c(Xr,jr=te),Object.defineProperty(Xr.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(Xr.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),Xr.prototype.resize=function(e,t,i){void 0===i&&(i=!0);var r=this.baseTexture.resolution,e=Math.round(e*r)/r,t=Math.round(t*r)/r;this.valid=0<e&&0<t,this._frame.width=this.orig.width=e,this._frame.height=this.orig.height=t,i&&this.baseTexture.resize(e,t),this.updateUvs()},Xr.prototype.setResolution=function(e){var t=this.baseTexture;t.resolution!==e&&(t.setResolution(e),this.resize(t.width,t.height,!1))},Xr.create=function(e){for(var t=arguments,i=[],r=1;r<arguments.length;r++)i[r-1]=t[r];return"number"==typeof e&&(Mt("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),e={width:e,height:i[0],scaleMode:i[1],resolution:i[2]}),new Xr(new Dr(e))};var jr,Gr=Xr;function Xr(e,t){e=jr.call(this,e,t)||this;return e.valid=!0,e.filterFrame=null,e.filterPoolKey=null,e.updateUvs(),e}Yr.prototype.createTexture=function(e,t,i){void 0===i&&(i=$.MSAA_QUALITY.NONE);e=new Dr(Object.assign({width:e,height:t,resolution:1,multisample:i},this.textureOptions));return new Gr(e)},Yr.prototype.getOptimalTexture=function(e,t,i,r){void 0===i&&(i=1),void 0===r&&(r=$.MSAA_QUALITY.NONE),e=Math.ceil(e*i-1e-6),t=Math.ceil(t*i-1e-6),this.enableFullScreen&&e===this._pixelsWidth&&t===this._pixelsHeight?n=1<r?-r:-1:(n=((65535&(e=Et(e)))<<16|65535&(t=Et(t)))>>>0,1<r&&(n+=4294967296*r)),this.texturePool[n]||(this.texturePool[n]=[]);var n,s=this.texturePool[n].pop();return(s=s||this.createTexture(e,t,r)).filterPoolKey=n,s.setResolution(i),s},Yr.prototype.getFilterTexture=function(e,t,i){t=this.getOptimalTexture(e.width,e.height,t||e.resolution,i||$.MSAA_QUALITY.NONE);return t.filterFrame=e.filterFrame,t},Yr.prototype.returnTexture=function(e){var t=e.filterPoolKey;e.filterFrame=null,this.texturePool[t].push(e)},Yr.prototype.returnFilterTexture=function(e){this.returnTexture(e)},Yr.prototype.clear=function(e){if(e=!1!==e)for(var t in this.texturePool){var i=this.texturePool[t];if(i)for(var r=0;r<i.length;r++)i[r].destroy(!0)}this.texturePool={}},Yr.prototype.setScreenSize=function(e){if(e.width!==this._pixelsWidth||e.height!==this._pixelsHeight){for(var t in this.enableFullScreen=0<e.width&&0<e.height,this.texturePool)if(Number(t)<0){var i=this.texturePool[t];if(i)for(var r=0;r<i.length;r++)i[r].destroy(!0);this.texturePool[t]=[]}this._pixelsWidth=e.width,this._pixelsHeight=e.height}},Yr.SCREEN_KEY=-1;var Hr=Yr;function Yr(e){this.texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}Vr.prototype.destroy=function(){this.buffer=null},Vr.from=function(e,t,i,r,n){return new Vr(e,t,i,r,n)};var Wr=Vr;function Vr(e,t,i,r,n,s,o){void 0===t&&(t=0),void 0===i&&(i=!1),void 0===r&&(r=$.TYPES.FLOAT),this.buffer=e,this.size=t,this.normalized=i,this.type=r,this.stride=n,this.start=s,this.instance=o}var qr=0,Kr=(Zr.prototype.update=function(e){e instanceof Array&&(e=new Float32Array(e)),this.data=e||this.data,this._updateID++},Zr.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},Zr.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(Zr.prototype,"index",{get:function(){return this.type===$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER},set:function(e){this.type=e?$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER:$.BUFFER_TYPE.ARRAY_BUFFER},enumerable:!1,configurable:!0}),Zr.from=function(e){return new Zr(e=e instanceof Array?new Float32Array(e):e)},Zr);function Zr(e,t,i){void 0===t&&(t=!0),void 0===i&&(i=!1),this.data=e||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=i,this.static=t,this.id=qr++,this.disposeRunner=new Gi("disposeBuffer")}var Jr={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var Qr={5126:4,5123:2,5121:1},$r=0,en={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array},tn=(rn.prototype.addAttribute=function(e,t,i,r,n,s,o,a){if(void 0===i&&(i=0),void 0===r&&(r=!1),void 0===a&&(a=!1),!t)throw new Error("You must pass a buffer when creating an attribute");t instanceof Kr||(t instanceof Array&&(t=new Float32Array(t)),t=new Kr(t));var l=e.split("|");if(1<l.length)for(var u=0;u<l.length;u++)this.addAttribute(l[u],t,i,r,n);else{var h=this.buffers.indexOf(t);-1===h&&(this.buffers.push(t),h=this.buffers.length-1),this.attributes[e]=new Wr(h,i,r,n,s,o,a),this.instanced=this.instanced||a}return this},rn.prototype.getAttribute=function(e){return this.attributes[e]},rn.prototype.getBuffer=function(e){return this.buffers[this.getAttribute(e).buffer]},rn.prototype.addIndex=function(e){return e instanceof Kr||(e instanceof Array&&(e=new Uint16Array(e)),e=new Kr(e)),e.type=$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER,this.indexBuffer=e,-1===this.buffers.indexOf(e)&&this.buffers.push(e),this},rn.prototype.getIndex=function(){return this.indexBuffer},rn.prototype.interleave=function(){if(!(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)){var e,t=[],i=[],r=new Kr;for(e in this.attributes){var n=this.attributes[e],s=this.buffers[n.buffer];t.push(s.data),i.push(n.size*Qr[n.type]/4),n.buffer=0}for(r.data=function(e,t){for(var i=0,r=0,n={},s=0;s<e.length;s++)r+=t[s],i+=e[s].length;for(var o=new ArrayBuffer(4*i),a=null,l=0,s=0;s<e.length;s++){var u=t[s],h=e[s],c=Tt(h);n[c]||(n[c]=new Jr[c](o));for(var a=n[c],p=0;p<h.length;p++)a[(p/u|0)*r+l+p%u]=h[p];l+=u}return new Float32Array(o)}(t,i),e=0;e<this.buffers.length;e++)this.buffers[e]!==this.indexBuffer&&this.buffers[e].destroy();this.buffers=[r],this.indexBuffer&&this.buffers.push(this.indexBuffer)}return this},rn.prototype.getSize=function(){for(var e in this.attributes){e=this.attributes[e];return this.buffers[e.buffer].data.length/(e.stride/4||e.size)}return 0},rn.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},rn.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},rn.prototype.clone=function(){for(var e=new rn,t=0;t<this.buffers.length;t++)e.buffers[t]=new Kr(this.buffers[t].data.slice(0));for(t in this.attributes){var i=this.attributes[t];e.attributes[t]=new Wr(i.buffer,i.size,i.normalized,i.type,i.stride,i.start,i.instance)}return this.indexBuffer&&(e.indexBuffer=e.buffers[this.buffers.indexOf(this.indexBuffer)],e.indexBuffer.type=$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER),e},rn.merge=function(e){for(var t=new rn,i=[],r=[],n=[],s=0;s<e.length;s++)for(var o=e[s],a=0;a<o.buffers.length;a++)r[a]=r[a]||0,r[a]+=o.buffers[a].data.length,n[a]=0;for(s=0;s<o.buffers.length;s++)i[s]=new en[Tt(o.buffers[s].data)](r[s]),t.buffers[s]=new Kr(i[s]);for(s=0;s<e.length;s++){o=e[s];for(a=0;a<o.buffers.length;a++)i[a].set(o.buffers[a].data,n[a]),n[a]+=o.buffers[a].data.length}if(t.attributes=o.attributes,o.indexBuffer){t.indexBuffer=t.buffers[o.buffers.indexOf(o.indexBuffer)],t.indexBuffer.type=$.BUFFER_TYPE.ELEMENT_ARRAY_BUFFER;for(var l=0,u=0,h=0,c=0,s=0;s<o.buffers.length;s++)if(o.buffers[s]!==o.indexBuffer){c=s;break}for(s in o.attributes){var p=o.attributes[s];(0|p.buffer)===c&&(u+=p.size*Qr[p.type]/4)}for(s=0;s<e.length;s++){for(var d=e[s].indexBuffer.data,a=0;a<d.length;a++)t.indexBuffer.data[a+h]+=l;l+=e[s].buffers[c].data.length/u,h+=d.length}}return t},rn);function rn(e,t){void 0===t&&(t={}),this.buffers=e=void 0===e?[]:e,this.indexBuffer=null,this.attributes=t,this.glVertexArrayObjects={},this.id=$r++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Gi("disposeGeometry"),this.refCount=0}c(on,nn=tn);var nn,sn=on;function on(){var e=nn.call(this)||this;return e.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),e}c(un,an=tn),un.prototype.map=function(e,t){var i;return this.uvs[0]=0,this.uvs[1]=0,this.uvs[2]=0+t.width/e.width,this.uvs[3]=0,this.uvs[4]=0+t.width/e.width,this.uvs[5]=0+t.height/e.height,this.uvs[6]=0,this.uvs[7]=0+t.height/e.height,e=t.x,i=t.y,this.vertices[0]=e,this.vertices[1]=i,this.vertices[2]=e+t.width,this.vertices[3]=i,this.vertices[4]=e+t.width,this.vertices[5]=i+t.height,this.vertices[6]=e,this.vertices[7]=i+t.height,this.invalidate(),this},un.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this};var an,ln=un;function un(){var e=an.call(this)||this;return e.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),e.uvs=new Float32Array([0,0,1,0,1,1,0,1]),e.vertexBuffer=new Kr(e.vertices),e.uvBuffer=new Kr(e.uvs),e.addAttribute("aVertexPosition",e.vertexBuffer).addAttribute("aTextureCoord",e.uvBuffer).addIndex([0,1,2,0,2,3]),e}var hn=0,cn=(pn.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},pn.prototype.add=function(e,t,i){if(this.ubo)throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");this.uniforms[e]=new pn(t,i)},pn.from=function(e,t,i){return new pn(e,t,i)},pn.uboFrom=function(e,t){return new pn(e,null==t||t,!0)},pn);function pn(e,t,i){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=hn++,this.static=!!t,this.ubo=!!i,e instanceof Kr?(this.buffer=e,this.buffer.type=$.BUFFER_TYPE.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Kr(new Float32Array(1)),this.buffer.type=$.BUFFER_TYPE.UNIFORM_BUFFER,this.autoManage=!0))}fn.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null};var dn=fn;function fn(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=$.MSAA_QUALITY.NONE,this.sourceFrame=new w,this.destinationFrame=new w,this.bindingSourceFrame=new w,this.bindingDestinationFrame=new w,this.filters=[],this.transform=null}var mn=[new ee,new ee,new ee,new ee],_n=new oi,gn=(vn.prototype.push=function(e,t){for(var i=this.renderer,r=this.defaultFilterStack,n=this.statePool.pop()||new dn,s=this.renderer.renderTexture,o=t[0].resolution,a=t[0].multisample,l=t[0].padding,u=t[0].autoFit,h=null==(d=t[0].legacy)||d,c=1;c<t.length;c++)var p=t[c],o=Math.min(o,p.resolution),a=Math.min(a,p.multisample),l=this.useMaxPadding?Math.max(l,p.padding):l+p.padding,u=u&&p.autoFit,h=h||null==(p=p.legacy)||p;1===r.length&&(this.defaultFilterStack[0].renderTexture=s.current),r.push(n),n.resolution=o,n.multisample=a,n.legacy=h,n.target=e,n.sourceFrame.copyFrom(e.filterArea||e.getBounds(!0)),n.sourceFrame.pad(l);var d=this.tempRect.copyFrom(s.sourceFrame),r=(i.projection.transform&&this.transformAABB(_n.copyFrom(i.projection.transform).invert(),d),u?(n.sourceFrame.fit(d),(n.sourceFrame.width<=0||n.sourceFrame.height<=0)&&(n.sourceFrame.width=0,n.sourceFrame.height=0)):n.sourceFrame.intersects(d)||(n.sourceFrame.width=0,n.sourceFrame.height=0),this.roundFrame(n.sourceFrame,(s.current||i).resolution,s.sourceFrame,s.destinationFrame,i.projection.transform),n.renderTexture=this.getOptimalFilterTexture(n.sourceFrame.width,n.sourceFrame.height,o,a),n.filters=t,n.destinationFrame.width=n.renderTexture.width,n.destinationFrame.height=n.renderTexture.height,this.tempRect);r.x=0,r.y=0,r.width=n.sourceFrame.width,r.height=n.sourceFrame.height,n.renderTexture.filterFrame=n.sourceFrame,n.bindingSourceFrame.copyFrom(s.sourceFrame),n.bindingDestinationFrame.copyFrom(s.destinationFrame),n.transform=i.projection.transform,i.projection.transform=null,s.bind(n.renderTexture,n.sourceFrame,r),i.framebuffer.clear(0,0,0,0)},vn.prototype.pop=function(){var e=this.defaultFilterStack,t=e.pop(),i=t.filters,r=(this.activeState=t,this.globalUniforms.uniforms),n=(r.outputFrame=t.sourceFrame,r.resolution=t.resolution,r.inputSize),s=r.inputPixel,o=r.inputClamp,n=(n[0]=t.destinationFrame.width,n[1]=t.destinationFrame.height,n[2]=1/n[0],n[3]=1/n[1],s[0]=Math.round(n[0]*t.resolution),s[1]=Math.round(n[1]*t.resolution),s[2]=1/s[0],s[3]=1/s[1],o[0]=.5*s[2],o[1]=.5*s[3],o[2]=t.sourceFrame.width*n[2]-.5*s[2],o[3]=t.sourceFrame.height*n[3]-.5*s[3],t.legacy&&((o=r.filterArea)[0]=t.destinationFrame.width,o[1]=t.destinationFrame.height,o[2]=t.sourceFrame.x,o[3]=t.sourceFrame.y,r.filterClamp=r.inputClamp),this.globalUniforms.update(),e[e.length-1]);if(this.renderer.framebuffer.blit(),1===i.length)i[0].apply(this,t.renderTexture,n.renderTexture,$.CLEAR_MODES.BLEND,t),this.returnFilterTexture(t.renderTexture);else{for(var a=t.renderTexture,l=((h=this.getOptimalFilterTexture(a.width,a.height,t.resolution)).filterFrame=a.filterFrame,0),l=0;l<i.length-1;++l){1===l&&1<t.multisample&&((h=this.getOptimalFilterTexture(a.width,a.height,t.resolution)).filterFrame=a.filterFrame),i[l].apply(this,a,h,$.CLEAR_MODES.CLEAR,t);var u=a,a=h,h=u}i[l].apply(this,a,n.renderTexture,$.CLEAR_MODES.BLEND,t),1<l&&1<t.multisample&&this.returnFilterTexture(t.renderTexture),this.returnFilterTexture(a),this.returnFilterTexture(h)}t.clear(),this.statePool.push(t)},vn.prototype.bindAndClear=function(e,t){void 0===t&&(t=$.CLEAR_MODES.CLEAR);var i=this.renderer,r=i.renderTexture,i=i.state,n=(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e&&e.filterFrame?((n=this.tempRect).x=0,n.y=0,n.width=e.filterFrame.width,n.height=e.filterFrame.height,r.bind(e,e.filterFrame,n)):e!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(e):this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame),1&i.stateId||this.forceClear);(t===$.CLEAR_MODES.CLEAR||t===$.CLEAR_MODES.BLIT&&n)&&this.renderer.framebuffer.clear(0,0,0,0)},vn.prototype.applyFilter=function(e,t,i,r){var n=this.renderer;n.state.set(e.state),this.bindAndClear(i,r),e.uniforms.uSampler=t,e.uniforms.filterGlobals=this.globalUniforms,n.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(t._frame,t.filterFrame),n.geometry.bind(this.quadUv),n.geometry.draw($.DRAW_MODES.TRIANGLES)):(n.geometry.bind(this.quad),n.geometry.draw($.DRAW_MODES.TRIANGLE_STRIP))},vn.prototype.calculateSpriteMatrix=function(e,t){var i=this.activeState,r=i.sourceFrame,i=i.destinationFrame,n=t._texture.orig,e=e.set(i.width,0,0,i.height,r.x,r.y),i=t.worldTransform.copyTo(oi.TEMP_MATRIX);return i.invert(),e.prepend(i),e.scale(1/n.width,1/n.height),e.translate(t.anchor.x,t.anchor.y),e},vn.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},vn.prototype.getOptimalFilterTexture=function(e,t,i,r){return void 0===r&&(r=$.MSAA_QUALITY.NONE),this.texturePool.getOptimalTexture(e,t,i=void 0===i?1:i,r)},vn.prototype.getFilterTexture=function(e,t,i){"number"==typeof e&&(r=e,e=t,t=r),e=e||this.activeState.renderTexture;var r=this.texturePool.getOptimalTexture(e.width,e.height,t||e.resolution,i||$.MSAA_QUALITY.NONE);return r.filterFrame=e.filterFrame,r},vn.prototype.returnFilterTexture=function(e){this.texturePool.returnTexture(e)},vn.prototype.emptyPool=function(){this.texturePool.clear(!0)},vn.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},vn.prototype.transformAABB=function(e,t){var i=mn[0],r=mn[1],n=mn[2],s=mn[3],e=(i.set(t.left,t.top),r.set(t.left,t.bottom),n.set(t.right,t.top),s.set(t.right,t.bottom),e.apply(i,i),e.apply(r,r),e.apply(n,n),e.apply(s,s),Math.min(i.x,r.x,n.x,s.x)),o=Math.min(i.y,r.y,n.y,s.y),a=Math.max(i.x,r.x,n.x,s.x),i=Math.max(i.y,r.y,n.y,s.y);t.x=e,t.y=o,t.width=a-e,t.height=i-o},vn.prototype.roundFrame=function(e,t,i,r,n){if(!(e.width<=0||e.height<=0||i.width<=0||i.height<=0)){if(n){var s=n.a,o=n.b,a=n.c,l=n.d;if((1e-4<Math.abs(o)||1e-4<Math.abs(a))&&(1e-4<Math.abs(s)||1e-4<Math.abs(l)))return}(n=n?_n.copyFrom(n):_n.identity()).translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.transformAABB(n,e),e.ceil(t),this.transformAABB(n.invert(),e)}},vn);function vn(e){this.renderer=e,this.defaultFilterStack=[{}],this.texturePool=new Hr,this.texturePool.setScreenSize(e.view),this.statePool=[],this.quad=new sn,this.quadUv=new ln,this.tempRect=new w,this.activeState={},this.globalUniforms=new cn({outputFrame:new w,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}bn.prototype.flush=function(){},bn.prototype.destroy=function(){this.renderer=null},bn.prototype.start=function(){},bn.prototype.stop=function(){this.flush()},bn.prototype.render=function(e){};var yn=bn;function bn(e){this.renderer=e}Tn.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},Tn.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},Tn.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},Tn.prototype.copyBoundTextures=function(e,t){for(var i=this.renderer.texture.boundTextures,r=t-1;0<=r;--r)e[r]=i[r]||null,e[r]&&(e[r]._batchLocation=r)},Tn.prototype.boundArray=function(e,t,i,r){for(var n=e.elements,s=e.ids,o=e.count,a=0,l=0;l<o;l++){var u=n[l],h=u._batchLocation;if(0<=h&&h<r&&t[h]===u)s[l]=h;else for(;a<r;){var c=t[a];if(!c||c._batchEnabled!==i||c._batchLocation!==a){s[l]=a,t[u._batchLocation=a]=u;break}a++}}},Tn.prototype.destroy=function(){this.renderer=null};var xn=Tn;function Tn(e){this.renderer=e,this.emptyRenderer=new yn(e),this.currentRenderer=this.emptyRenderer}var wn=0,En=(Object.defineProperty(Sn.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),Sn.prototype.contextChange=function(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=wn++,e.isContextLost()&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").restoreContext()},Sn.prototype.initFromContext=function(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=wn++,this.renderer.runners.contextChange.emit(e)},Sn.prototype.initFromOptions=function(e){e=this.createContext(this.renderer.view,e);this.initFromContext(e)},Sn.prototype.createContext=function(e,t){var i;if(i=R.PREFER_ENV>=$.ENV.WEBGL2?e.getContext("webgl2",t):i)this.webGLVersion=2;else if(this.webGLVersion=1,!(i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},Sn.prototype.getExtensions=function(){var e=this.gl,t={anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),loseContext:e.getExtension("WEBGL_lose_context"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,t,{colorBufferFloat:e.getExtension("EXT_color_buffer_float")})},Sn.prototype.handleContextLost=function(e){e.preventDefault()},Sn.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},Sn.prototype.destroy=function(){var e=this.renderer.view;this.renderer=null,e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},Sn.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},Sn.prototype.validateContext=function(e){var t=e.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext,t=(i&&(this.webGLVersion=2),t&&!t.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly"),i||!!e.getExtension("OES_element_index_uint"));(this.supports.uint32Indices=t)||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},Sn);function Sn(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),e.view.addEventListener("webglcontextlost",this.handleContextLost,!1),e.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}var An=function(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=$.MSAA_QUALITY.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0},kn=new w,Pn=(On.prototype.contextChange=function(){var t,e,i=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new w,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion?(t=this.renderer.context.extensions.drawBuffers,e=this.renderer.context.extensions.depthTexture,R.PREFER_ENV===$.ENV.WEBGL_LEGACY&&(e=t=null),t?i.drawBuffers=function(e){return t.drawBuffersWEBGL(e)}:(this.hasMRT=!1,i.drawBuffers=function(){}),e||(this.writeDepthTexture=!1)):this.msaaSamples=i.getInternalformatParameter(i.RENDERBUFFER,i.RGBA8,i.SAMPLES)},On.prototype.bind=function(e,t,i){void 0===i&&(i=0);var r=this.gl;if(e){var n=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,r.bindFramebuffer(r.FRAMEBUFFER,n.framebuffer)),n.mipLevel!==i&&(e.dirtyId++,e.dirtyFormat++,n.mipLevel=i),n.dirtyId!==e.dirtyId&&(n.dirtyId=e.dirtyId,n.dirtyFormat!==e.dirtyFormat?(n.dirtyFormat=e.dirtyFormat,n.dirtySize=e.dirtySize,this.updateFramebuffer(e,i)):n.dirtySize!==e.dirtySize&&(n.dirtySize=e.dirtySize,this.resizeFramebuffer(e)));for(var s,o,a=0;a<e.colorTextures.length;a++){var l=e.colorTextures[a];this.renderer.texture.unbind(l.parentTextureArray||l)}e.depthTexture&&this.renderer.texture.unbind(e.depthTexture),t?(s=t.width>>i,o=t.height>>i,n=s/t.width,this.setViewport(t.x*n,t.y*n,s,o)):(s=e.width>>i,o=e.height>>i,this.setViewport(0,0,s,o))}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),t?this.setViewport(t.x,t.y,t.width,t.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},On.prototype.setViewport=function(e,t,i,r){var n=this.viewport;e=Math.round(e),t=Math.round(t),i=Math.round(i),r=Math.round(r),n.width===i&&n.height===r&&n.x===e&&n.y===t||(n.x=e,n.y=t,n.width=i,n.height=r,this.gl.viewport(e,t,i,r))},Object.defineProperty(On.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),On.prototype.clear=function(e,t,i,r,n){void 0===n&&(n=$.BUFFER_BITS.COLOR|$.BUFFER_BITS.DEPTH);var s=this.gl;s.clearColor(e,t,i,r),s.clear(n)},On.prototype.initFramebuffer=function(e){var t=this.gl,t=new An(t.createFramebuffer());return t.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=t,this.managedFramebuffers.push(e),e.disposeRunner.add(this),t},On.prototype.resizeFramebuffer=function(e){var t=this.gl,i=e.glFramebuffers[this.CONTEXT_UID],r=(i.msaaBuffer&&(t.bindRenderbuffer(t.RENDERBUFFER,i.msaaBuffer),t.renderbufferStorageMultisample(t.RENDERBUFFER,i.multisample,t.RGBA8,e.width,e.height)),i.stencil&&(t.bindRenderbuffer(t.RENDERBUFFER,i.stencil),i.msaaBuffer?t.renderbufferStorageMultisample(t.RENDERBUFFER,i.multisample,t.DEPTH24_STENCIL8,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,e.width,e.height)),e.colorTextures),n=r.length;t.drawBuffers||(n=Math.min(n,1));for(var s=0;s<n;s++){var o=r[s],o=o.parentTextureArray||o;this.renderer.texture.bind(o,0)}e.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(e.depthTexture,0)},On.prototype.updateFramebuffer=function(e,t){for(var i,r=this.gl,n=e.glFramebuffers[this.CONTEXT_UID],s=e.colorTextures,o=s.length,a=(r.drawBuffers||(o=Math.min(o,1)),1<n.multisample&&this.canMultisampleFramebuffer(e)?(n.msaaBuffer=n.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,e.width,e.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(r.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null)),[]),l=0;l<o;l++){var u=s[l],h=u.parentTextureArray||u;this.renderer.texture.bind(h,0),0===l&&n.msaaBuffer||(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+l,u.target,h._glTextures[this.CONTEXT_UID].texture,t),a.push(r.COLOR_ATTACHMENT0+l))}1<a.length&&r.drawBuffers(a),e.depthTexture&&this.writeDepthTexture&&(i=e.depthTexture,this.renderer.texture.bind(i,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,i._glTextures[this.CONTEXT_UID].texture,t)),!e.stencil&&!e.depth||e.depthTexture&&this.writeDepthTexture?n.stencil&&(r.deleteRenderbuffer(n.stencil),n.stencil=null):(n.stencil=n.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,e.width,e.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e.width,e.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,n.stencil))},On.prototype.canMultisampleFramebuffer=function(e){return 1!==this.renderer.context.webGLVersion&&e.colorTextures.length<=1&&!e.depthTexture},On.prototype.detectSamples=function(e){var t=this.msaaSamples,i=$.MSAA_QUALITY.NONE;if(!(e<=1||null===t)){for(var r=0;r<t.length;r++)if(t[r]<=e){i=t[r];break}1===i&&(i=$.MSAA_QUALITY.NONE)}return i},On.prototype.blit=function(e,t,i){var r=this.current,n=this.renderer,s=this.gl,o=this.CONTEXT_UID;if(2===n.context.webGLVersion&&r){n=r.glFramebuffers[o];if(n){if(!e){if(!n.msaaBuffer)return;o=r.colorTextures[0];if(!o)return;n.blitFramebuffer||(n.blitFramebuffer=new Cr(r.width,r.height),n.blitFramebuffer.addColorTexture(0,o)),(e=n.blitFramebuffer).colorTextures[0]!==o&&(e.colorTextures[0]=o,e.dirtyId++,e.dirtyFormat++),e.width===r.width&&e.height===r.height||(e.width=r.width,e.height=r.height,e.dirtyId++,e.dirtySize++)}t||((t=kn).width=r.width,t.height=r.height);o=t.width===(i=i||t).width&&t.height===i.height;this.bind(e),s.bindFramebuffer(s.READ_FRAMEBUFFER,n.framebuffer),s.blitFramebuffer(t.left,t.top,t.right,t.bottom,i.left,i.top,i.right,i.bottom,s.COLOR_BUFFER_BIT,o?s.NEAREST:s.LINEAR)}}},On.prototype.disposeFramebuffer=function(e,t){var i,r=e.glFramebuffers[this.CONTEXT_UID],n=this.gl;r&&(delete e.glFramebuffers[this.CONTEXT_UID],0<=(i=this.managedFramebuffers.indexOf(e))&&this.managedFramebuffers.splice(i,1),e.disposeRunner.remove(this),t||(n.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&n.deleteRenderbuffer(r.msaaBuffer),r.stencil&&n.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose())},On.prototype.disposeAll=function(e){var t=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i<t.length;i++)this.disposeFramebuffer(t[i],e)},On.prototype.forceStencil=function(){var e,t,i,r,n=this.current;!n||(e=n.glFramebuffers[this.CONTEXT_UID])&&!e.stencil&&(n.stencil=!0,t=n.width,n=n.height,r=(i=this.gl).createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,r),e.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,e.multisample,i.DEPTH24_STENCIL8,t,n):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,n),e.stencil=r,i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,r))},On.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new w},On.prototype.destroy=function(){this.renderer=null},On);function On(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new Cr(10,10),this.msaaSamples=null}var Rn={5126:4,5123:2,5121:1},Cn=(Mn.prototype.contextChange=function(){this.disposeAll(!0);var t,s,e=this.gl=this.renderer.gl,i=this.renderer.context;this.CONTEXT_UID=this.renderer.CONTEXT_UID,2!==i.webGLVersion&&(t=this.renderer.context.extensions.vertexArrayObject,(t=R.PREFER_ENV===$.ENV.WEBGL_LEGACY?null:t)?(e.createVertexArray=function(){return t.createVertexArrayOES()},e.bindVertexArray=function(e){return t.bindVertexArrayOES(e)},e.deleteVertexArray=function(e){return t.deleteVertexArrayOES(e)}):(this.hasVao=!1,e.createVertexArray=function(){return null},e.bindVertexArray=function(){return null},e.deleteVertexArray=function(){return null})),2!==i.webGLVersion&&((s=e.getExtension("ANGLE_instanced_arrays"))?(e.vertexAttribDivisor=function(e,t){return s.vertexAttribDivisorANGLE(e,t)},e.drawElementsInstanced=function(e,t,i,r,n){return s.drawElementsInstancedANGLE(e,t,i,r,n)},e.drawArraysInstanced=function(e,t,i,r){return s.drawArraysInstancedANGLE(e,t,i,r)}):this.hasInstance=!1),this.canUseUInt32ElementIndex=2===i.webGLVersion||!!i.extensions.uint32ElementIndex},Mn.prototype.bind=function(e,t){t=t||this.renderer.shader.shader;var i=this.gl,r=e.glVertexArrayObjects[this.CONTEXT_UID],n=!1,r=(r||((this.managedGeometries[e.id]=e).disposeRunner.add(this),e.glVertexArrayObjects[this.CONTEXT_UID]=r={},n=!0),r[t.program.id]||this.initGeometryVao(e,t,n));this._activeGeometry=e,this._activeVao!==r&&(this._activeVao=r,this.hasVao?i.bindVertexArray(r):this.activateVao(e,t.program)),this.updateBuffers()},Mn.prototype.reset=function(){this.unbind()},Mn.prototype.updateBuffers=function(){for(var e=this._activeGeometry,t=this.renderer.buffer,i=0;i<e.buffers.length;i++){var r=e.buffers[i];t.update(r)}},Mn.prototype.checkCompatibility=function(e,t){var i,r=e.attributes;for(i in t.attributeData)if(!r[i])throw new Error('shader and geometry incompatible, geometry missing the "'+i+'" attribute')},Mn.prototype.getSignature=function(e,t){var i,r=e.attributes,n=t.attributeData,s=["g",e.id];for(i in r)n[i]&&s.push(i,n[i].location);return s.join("-")},Mn.prototype.initGeometryVao=function(e,t,i){void 0===i&&(i=!0);var r=this.gl,n=this.CONTEXT_UID,s=this.renderer.buffer,o=t.program,t=(o.glPrograms[n]||this.renderer.shader.generateProgram(t),this.checkCompatibility(e,o),this.getSignature(e,o)),a=e.glVertexArrayObjects[this.CONTEXT_UID],l=a[t];if(l)return a[o.id]=l;var u,h=e.buffers,c=e.attributes,p={},d={};for(u in h)d[u]=p[u]=0;for(u in c)!c[u].size&&o.attributeData[u]?c[u].size=o.attributeData[u].size:c[u].size||console.warn("PIXI Geometry attribute '"+u+"' size cannot be determined (likely the bound shader does not have the attribute)"),p[c[u].buffer]+=c[u].size*Rn[c[u].type];for(u in c){var f=c[u],m=f.size;void 0===f.stride&&(p[f.buffer]===m*Rn[f.type]?f.stride=0:f.stride=p[f.buffer]),void 0===f.start&&(f.start=d[f.buffer],d[f.buffer]+=m*Rn[f.type])}l=r.createVertexArray(),r.bindVertexArray(l);for(var _=0;_<h.length;_++){var g=h[_];s.bind(g),i&&g._glBuffers[n].refCount++}return this.activateVao(e,o),this._activeVao=l,a[o.id]=l,a[t]=l},Mn.prototype.disposeGeometry=function(e,t){var i;if(this.managedGeometries[e.id]){delete this.managedGeometries[e.id];var r=e.glVertexArrayObjects[this.CONTEXT_UID],n=this.gl,s=e.buffers,o=null==(i=this.renderer)?void 0:i.buffer;if(e.disposeRunner.remove(this),r){if(o)for(var a=0;a<s.length;a++){var l=s[a]._glBuffers[this.CONTEXT_UID];l&&(l.refCount--,0!==l.refCount||t||o.dispose(s[a],t))}if(!t)for(var u in r)"g"===u[0]&&(u=r[u],this._activeVao===u&&this.unbind(),n.deleteVertexArray(u));delete e.glVertexArrayObjects[this.CONTEXT_UID]}}},Mn.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedGeometries),i=0;i<t.length;i++)this.disposeGeometry(this.managedGeometries[t[i]],e)},Mn.prototype.activateVao=function(e,t){var i,r=this.gl,n=this.CONTEXT_UID,s=this.renderer.buffer,o=e.buffers,a=e.attributes,l=(e.indexBuffer&&s.bind(e.indexBuffer),null);for(i in a){var u=a[i],h=o[u.buffer],c=h._glBuffers[n];if(t.attributeData[i]){l!==c&&(s.bind(h),l=c);h=t.attributeData[i].location;if(r.enableVertexAttribArray(h),r.vertexAttribPointer(h,u.size,u.type||r.FLOAT,u.normalized,u.stride,u.start),u.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");r.vertexAttribDivisor(h,1)}}}},Mn.prototype.draw=function(e,t,i,r){var n,s,o=this.gl,a=this._activeGeometry;return a.indexBuffer?(s=2===(n=a.indexBuffer.data.BYTES_PER_ELEMENT)?o.UNSIGNED_SHORT:o.UNSIGNED_INT,2===n||4===n&&this.canUseUInt32ElementIndex?a.instanced?o.drawElementsInstanced(e,t||a.indexBuffer.data.length,s,(i||0)*n,r||1):o.drawElements(e,t||a.indexBuffer.data.length,s,(i||0)*n):console.warn("unsupported index buffer type: uint32")):a.instanced?o.drawArraysInstanced(e,i,t||a.getSize(),r||1):o.drawArrays(e,i,t||a.getSize()),this},Mn.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},Mn.prototype.destroy=function(){this.renderer=null},Mn);function Mn(e){this.renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}Object.defineProperty(Dn.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null},enumerable:!1,configurable:!0}),Dn.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=$.MASK_TYPES.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},Dn.prototype.copyCountersOrReset=function(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)};var In=Dn;function Dn(e){void 0===e&&(e=null),this.type=$.MASK_TYPES.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=R.FILTER_MULTISAMPLE,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}function Ln(e,t,i){t=e.createShader(t);return e.shaderSource(t,i),e.compileShader(t),t}function Fn(e,t){var i=e.getShaderSource(t).split("\n").map(function(e,t){return t+": "+e}),e=e.getShaderInfoLog(t),t=e.split("\n"),r={},t=t.map(function(e){return parseFloat(e.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(e){return!(!e||r[e])&&(r[e]=!0)}),n=[""],t=(t.forEach(function(e){i[e-1]="%c"+i[e-1]+"%c",n.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")}),i.join("\n"));n[0]=t,console.error(e),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,n),console.groupEnd()}function Nn(e){for(var t=new Array(e),i=0;i<t.length;i++)t[i]=!1;return t}function zn(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return Nn(2*t);case"bvec3":return Nn(3*t);case"bvec4":return Nn(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var Bn,Un={},jn=Un;function Gn(){var e,t;return(jn===Un||jn&&jn.isContextLost())&&(e=R.ADAPTER.createCanvas(),t=void 0,(t=R.PREFER_ENV>=$.ENV.WEBGL2?e.getContext("webgl2",{}):t)||((t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}))?t.getExtension("WEBGL_draw_buffers"):t=null),jn=t),jn}function Xn(e,t,i){return"precision"!==e.substring(0,9)?"precision "+(t===$.PRECISION.HIGH&&i!==$.PRECISION.HIGH?$.PRECISION.MEDIUM:t)+" float;\n"+e:i!==$.PRECISION.HIGH&&"precision highp"===e.substring(0,15)?e.replace("precision highp","precision mediump"):e}var Hn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Yn(e){return Hn[e]}var Wn=null,Vn={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function qn(e,t){if(!Wn){var i=Object.keys(Vn);Wn={};for(var r=0;r<i.length;++r){var n=i[r];Wn[e[n]]=Vn[n]}}return Wn[t]}var Kn=[{test:function(e){return"float"===e.type&&1===e.size&&!e.isArray},code:function(e){return'\n if(uv["'+e+'"] !== ud["'+e+'"].value)\n {\n ud["'+e+'"].value = uv["'+e+'"]\n gl.uniform1f(ud["'+e+'"].location, uv["'+e+'"])\n }\n '}},{test:function(e,t){return!("sampler2D"!==e.type&&"samplerCube"!==e.type&&"sampler2DArray"!==e.type||1!==e.size||e.isArray||null!=t&&void 0===t.castToBaseTexture)},code:function(e){return't = syncData.textureCount++;\n\n renderer.texture.bind(uv["'+e+'"], t);\n\n if(ud["'+e+'"].value !== t)\n {\n ud["'+e+'"].value = t;\n gl.uniform1i(ud["'+e+'"].location, t);\n; // eslint-disable-line max-len\n }'}},{test:function(e,t){return"mat3"===e.type&&1===e.size&&!e.isArray&&void 0!==t.a},code:function(e){return'\n gl.uniformMatrix3fv(ud["'+e+'"].location, false, uv["'+e+'"].toArray(true));\n '},codeUbo:function(e){return"\n var "+e+"_matrix = uv."+e+".toArray(true);\n\n data[offset] = "+e+"_matrix[0];\n data[offset+1] = "+e+"_matrix[1];\n data[offset+2] = "+e+"_matrix[2];\n \n data[offset + 4] = "+e+"_matrix[3];\n data[offset + 5] = "+e+"_matrix[4];\n data[offset + 6] = "+e+"_matrix[5];\n \n data[offset + 8] = "+e+"_matrix[6];\n data[offset + 9] = "+e+"_matrix[7];\n data[offset + 10] = "+e+"_matrix[8];\n "}},{test:function(e,t){return"vec2"===e.type&&1===e.size&&!e.isArray&&void 0!==t.x},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud["'+e+'"].location, v.x, v.y);\n }'},codeUbo:function(e){return"\n v = uv."+e+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n "}},{test:function(e){return"vec2"===e.type&&1===e.size&&!e.isArray},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud["'+e+'"].location, v[0], v[1]);\n }\n '}},{test:function(e,t){return"vec4"===e.type&&1===e.size&&!e.isArray&&void 0!==t.width},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud["'+e+'"].location, v.x, v.y, v.width, v.height)\n }'},codeUbo:function(e){return"\n v = uv."+e+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n data[offset+2] = v.width;\n data[offset+3] = v.height;\n "}},{test:function(e){return"vec4"===e.type&&1===e.size&&!e.isArray},code:function(e){return'\n cv = ud["'+e+'"].value;\n v = uv["'+e+'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["'+e+'"].location, v[0], v[1], v[2], v[3])\n }'}}],Zn={float:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }",vec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }",vec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }",vec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }",int:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",ivec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",ivec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",ivec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",uint:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }",uvec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }",uvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }",uvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }",bool:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }",bvec2:"\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",bvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",bvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",samplerCube:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",sampler2DArray:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }"},Jn={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};var Qn,$n=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function es(e,t){if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var i=t.createShader(t.FRAGMENT_SHADER);;){var r=$n.replace(/%forloop%/gi,function(e){for(var t="",i=0;i<e;++i)0<i&&(t+="\nelse "),i<e-1&&(t+="if(test == "+i+".0){}");return t}(e));if(t.shaderSource(i,r),t.compileShader(i),t.getShaderParameter(i,t.COMPILE_STATUS))break;e=e/2|0}return e}var ts=0,is={},rs=(Object.defineProperty(ns,"defaultVertexSrc",{get:function(){return"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n"},enumerable:!1,configurable:!0}),Object.defineProperty(ns,"defaultFragmentSrc",{get:function(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}"},enumerable:!1,configurable:!0}),ns.from=function(e,t,i){var r=e+t,n=It[r];return n||(It[r]=n=new ns(e,t,i)),n},ns);function ns(e,t,i){void 0===i&&(i="pixi-shader"),this.id=ts++,this.vertexSrc=e||ns.defaultVertexSrc,this.fragmentSrc=t||ns.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),"#version"!==this.vertexSrc.substring(0,8)&&(i=i.replace(/\s+/g,"-"),is[i]?(is[i]++,i+="-"+is[i]):is[i]=1,this.vertexSrc="#define SHADER_NAME "+i+"\n"+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+"\n"+this.fragmentSrc,this.vertexSrc=Xn(this.vertexSrc,R.PRECISION_VERTEX,$.PRECISION.HIGH),this.fragmentSrc=Xn(this.fragmentSrc,R.PRECISION_FRAGMENT,(Bn||(Bn=$.PRECISION.MEDIUM,(e=Gn())&&e.getShaderPrecisionFormat&&(e=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT),Bn=e.precision?$.PRECISION.HIGH:$.PRECISION.MEDIUM)),Bn))),this.glPrograms={},this.syncUniforms=null}os.prototype.checkUniformExists=function(e,t){if(t.uniforms[e])return!0;for(var i in t.uniforms){i=t.uniforms[i];if(i.group&&this.checkUniformExists(e,i))return!0}return!1},os.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(os.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),os.from=function(e,t,i){return new os(rs.from(e,t),i)};var ss=os;function os(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof cn?this.uniformGroup=t:this.uniformGroup=new cn(t):this.uniformGroup=new cn({})}Object.defineProperty(ls.prototype,"blend",{get:function(){return!!(1&this.data)},set:function(e){!!(1&this.data)!==e&&(this.data^=1)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"offsets",{get:function(){return!!(2&this.data)},set:function(e){!!(2&this.data)!==e&&(this.data^=2)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"culling",{get:function(){return!!(4&this.data)},set:function(e){!!(4&this.data)!==e&&(this.data^=4)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"depthTest",{get:function(){return!!(8&this.data)},set:function(e){!!(8&this.data)!==e&&(this.data^=8)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"depthMask",{get:function(){return!!(32&this.data)},set:function(e){!!(32&this.data)!==e&&(this.data^=32)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"clockwiseFrontFace",{get:function(){return!!(16&this.data)},set:function(e){!!(16&this.data)!==e&&(this.data^=16)},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"blendMode",{get:function(){return this._blendMode},set:function(e){this.blend=e!==$.BLEND_MODES.NONE,this._blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(ls.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(e){this.offsets=!!e,this._polygonOffset=e},enumerable:!1,configurable:!0}),ls.prototype.toString=function(){return"[@pixi/core:State blendMode="+this.blendMode+" clockwiseFrontFace="+this.clockwiseFrontFace+" culling="+this.culling+" depthMask="+this.depthMask+" polygonOffset="+this.polygonOffset+"]"},ls.for2d=function(){var e=new ls;return e.depthTest=!1,e.blend=!0,e};var as=ls;function ls(){this.data=0,this.blendMode=$.BLEND_MODES.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}c(hs,us=ss),hs.prototype.apply=function(e,t,i,r,n){e.applyFilter(this,t,i,r)},Object.defineProperty(hs.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(hs.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e},enumerable:!1,configurable:!0}),Object.defineProperty(hs,"defaultVertexSrc",{get:function(){return"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n"},enumerable:!1,configurable:!0}),Object.defineProperty(hs,"defaultFragmentSrc",{get:function(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n"},enumerable:!1,configurable:!0});var us,Q=hs;function hs(e,t,i){var r=this,e=rs.from(e||hs.defaultVertexSrc,t||hs.defaultFragmentSrc);return(r=us.call(this,e,i)||this).padding=0,r.resolution=R.FILTER_RESOLUTION,r.multisample=R.FILTER_MULTISAMPLE,r.enabled=!0,r.autoFit=!0,r.state=new as,r}var cs=new oi,ps=(Object.defineProperty(ds.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),ds.prototype.multiplyUvs=function(e,t){void 0===t&&(t=e);for(var i=this.mapCoord,r=0;r<e.length;r+=2){var n=e[r],s=e[r+1];t[r]=n*i.a+s*i.c+i.tx,t[r+1]=n*i.b+s*i.d+i.ty}return t},ds.prototype.update=function(e){var t=this._texture;if(!t||!t.valid)return!1;if(!e&&this._textureID===t._updateID)return!1;this._textureID=t._updateID,this._updateID++;var e=t._uvs,e=(this.mapCoord.set(e.x1-e.x0,e.y1-e.y0,e.x3-e.x0,e.y3-e.y0,e.x0,e.y0),t.orig),i=t.trim,e=(i&&(cs.set(e.width/i.width,0,0,e.height/i.height,-i.x/i.width,-i.y/i.height),this.mapCoord.append(cs)),t.baseTexture),i=this.uClampFrame,r=this.clampMargin/e.resolution,n=this.clampOffset;return i[0]=(t._frame.x+r+n)/e.width,i[1]=(t._frame.y+r+n)/e.height,i[2]=(t._frame.x+t._frame.width-r+n)/e.width,i[3]=(t._frame.y+t._frame.height-r+n)/e.height,this.uClampOffset[0]=n/e.realWidth,this.uClampOffset[1]=n/e.realHeight,this.isSimple=t._frame.width===e.width&&t._frame.height===e.height&&0===t.rotate,!0},ds);function ds(e,t){this._texture=e,this.mapCoord=new oi,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=void 0===t?.5:t,this.isSimple=!1}c(_s,fs=Q),Object.defineProperty(_s.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),_s.prototype.apply=function(e,t,i,r){var n=this._maskSprite,s=n._texture;s.valid&&(s.uvMatrix||(s.uvMatrix=new ps(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=s,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,n).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,e.applyFilter(this,t,i,r))};var fs,ms=_s;function _s(e,t,i){var r=this,n=null;return"string"!=typeof e&&void 0===t&&void 0===i&&(n=e,i=t=e=void 0),(r=fs.call(this,e||"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n",t||"varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n",i)||this).maskSprite=n,r.maskMatrix=new oi,r}vs.prototype.setMaskStack=function(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)},vs.prototype.push=function(e,t){var i,r=t,t=(r.isMaskData||((i=this.maskDataPool.pop()||new In).pooled=!0,i.maskObject=t,r=i),0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null);if(r.copyCountersOrReset(t),r._colorMask=t?t._colorMask:15,r.autoDetect&&this.detect(r),r._target=e,r.type!==$.MASK_TYPES.SPRITE&&this.maskStack.push(r),r.enabled)switch(r.type){case $.MASK_TYPES.SCISSOR:this.renderer.scissor.push(r);break;case $.MASK_TYPES.STENCIL:this.renderer.stencil.push(r);break;case $.MASK_TYPES.SPRITE:r.copyCountersOrReset(null),this.pushSpriteMask(r);break;case $.MASK_TYPES.COLOR:this.pushColorMask(r)}r.type===$.MASK_TYPES.SPRITE&&this.maskStack.push(r)},vs.prototype.pop=function(e){var t=this.maskStack.pop();if(t&&t._target===e){if(t.enabled)switch(t.type){case $.MASK_TYPES.SCISSOR:this.renderer.scissor.pop(t);break;case $.MASK_TYPES.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case $.MASK_TYPES.SPRITE:this.popSpriteMask(t);break;case $.MASK_TYPES.COLOR:this.popColorMask(t)}t.reset(),t.pooled&&this.maskDataPool.push(t),0===this.maskStack.length||(e=this.maskStack[this.maskStack.length-1]).type===$.MASK_TYPES.SPRITE&&e._filters&&(e._filters[0].maskSprite=e.maskObject)}},vs.prototype.detect=function(e){var t=e.maskObject;t?t.isSprite?e.type=$.MASK_TYPES.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=$.MASK_TYPES.SCISSOR:e.type=$.MASK_TYPES.STENCIL:e.type=$.MASK_TYPES.COLOR},vs.prototype.pushSpriteMask=function(e){var t,i=e.maskObject,r=e._target,n=(n=(n=e._filters)||this.alphaMaskPool[this.alphaMaskIndex])||(this.alphaMaskPool[this.alphaMaskIndex]=[new ms]),s=this.renderer,o=s.renderTexture,a=(o=o.current?(o=o.current,t=e.resolution||o.resolution,null!=(a=e.multisample)?a:o.multisample):(t=e.resolution||s.resolution,null!=(a=e.multisample)?a:s.multisample),n[0].resolution=t,n[0].multisample=o,n[0].maskSprite=i,r.filterArea);r.filterArea=i.getBounds(!0),s.filter.push(r,n),r.filterArea=a,e._filters||this.alphaMaskIndex++},vs.prototype.popSpriteMask=function(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},vs.prototype.pushColorMask=function(e){var t=e._colorMask,e=e._colorMask=t&e.colorMask;e!==t&&this.renderer.gl.colorMask(0!=(1&e),0!=(2&e),0!=(4&e),0!=(8&e))},vs.prototype.popColorMask=function(e){var e=e._colorMask,t=0<this.maskStack.length?this.maskStack[this.maskStack.length-1]._colorMask:15;t!==e&&this.renderer.gl.colorMask(0!=(1&t),0!=(2&t),0!=(4&t),0!=(8&t))},vs.prototype.destroy=function(){this.renderer=null};var gs=vs;function vs(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}ys.prototype.getStackLength=function(){return this.maskStack.length},ys.prototype.setMaskStack=function(e){var t=this.renderer.gl,i=this.getStackLength(),e=(this.maskStack=e,this.getStackLength());e!==i&&(0===e?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))},ys.prototype._useCurrent=function(){},ys.prototype.destroy=function(){this.renderer=null,this.maskStack=null};t=ys;function ys(e){this.renderer=e,this.maskStack=[],this.glConst=0}var bs,xs=new oi,Ts=[],ws=(c(Es,bs=t),Es.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0},Es.prototype.calcScissorRect=function(e){var t,i,r,n;e._scissorRectLocal||(t=e._scissorRect,n=e.maskObject,r=(i=this.renderer).renderTexture,n=n.getBounds(!0,null!=(n=Ts.pop())?n:new w),this.roundFrameToPixels(n,(r.current||i).resolution,r.sourceFrame,r.destinationFrame,i.projection.transform),t&&n.fit(t),e._scissorRectLocal=n)},Es.isMatrixRotated=function(e){var t,i,r;return!!e&&(t=e.a,i=e.b,r=e.c,e=e.d,(1e-4<Math.abs(i)||1e-4<Math.abs(r))&&(1e-4<Math.abs(t)||1e-4<Math.abs(e)))},Es.prototype.testScissor=function(e){var t=e.maskObject;if(!t.isFastRect||!t.isFastRect())return!1;if(Es.isMatrixRotated(t.worldTransform))return!1;if(Es.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);t=e._scissorRectLocal;return 0<t.width&&0<t.height},Es.prototype.roundFrameToPixels=function(e,t,i,r,n){Es.isMatrixRotated(n)||((n=n?xs.copyFrom(n):xs.identity()).translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.renderer.filter.transformAABB(n,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))},Es.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var t=this.renderer.gl;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},Es.prototype.pop=function(e){var t=this.renderer.gl;e&&Ts.push(e._scissorRectLocal),0<this.getStackLength()?this._useCurrent():t.disable(t.SCISSOR_TEST)},Es.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y;this.renderer.gl.scissor(e.x,t,e.width,e.height)},Es);function Es(e){e=bs.call(this,e)||this;return e.glConst=R.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,e}c(ks,Ss=t),ks.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},ks.prototype.push=function(e){var t=e.maskObject,i=this.renderer.gl,r=e._stencilCounter,n=(0===r&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),e._stencilCounter++,e._colorMask);0!==n&&(e._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,r,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,0!==n&&(e._colorMask=n,i.colorMask(0!=(1&n),0!=(2&n),0!=(4&n),0!=(8&n))),this._useCurrent()},ks.prototype.pop=function(e){var t,i,r=this.renderer.gl;0===this.getStackLength()?r.disable(r.STENCIL_TEST):(0!==(i=(t=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null)?t._colorMask:15)&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilOp(r.KEEP,r.KEEP,r.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,0!==i&&(t._colorMask=i,r.colorMask(0!=(1&i),0!=(2&i),0!=(4&i),0!=(8&i))),this._useCurrent())},ks.prototype._useCurrent=function(){var e=this.renderer.gl;e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)};var Ss,As=ks;function ks(e){e=Ss.call(this,e)||this;return e.glConst=R.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,e}Os.prototype.update=function(e,t,i,r){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,r),this.transform&&this.projectionMatrix.append(this.transform);t=this.renderer;t.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,t.globalUniforms.update(),t.shader.shader&&t.shader.syncUniformGroup(t.shader.shader.uniforms.globals)},Os.prototype.calculateProjection=function(e,t,i,r){var n=this.projectionMatrix,r=r?-1:1;n.identity(),n.a=1/t.width*2,n.d=r*(1/t.height*2),n.tx=-1-t.x*n.a,n.ty=-r-t.y*n.d},Os.prototype.setTransform=function(e){},Os.prototype.destroy=function(){this.renderer=null};var Ps=Os;function Os(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new oi,this.transform=null}var Rs=new w,Cs=new w,Ms=(Is.prototype.bind=function(e,t,i){var r,n,s,o=this.renderer,a=((this.current=e=void 0===e?null:e)?(s=(r=e.baseTexture).resolution,t||(Rs.width=e.frame.width,Rs.height=e.frame.height,t=Rs),i||(Cs.x=e.frame.x,Cs.y=e.frame.y,Cs.width=t.width,Cs.height=t.height,i=Cs),n=r.framebuffer):(s=o.resolution,t||(Rs.width=o.screen.width,Rs.height=o.screen.height,t=Rs),i||((i=Rs).width=t.width,i.height=t.height)),this.viewportFrame);a.x=i.x*s,a.y=i.y*s,a.width=i.width*s,a.height=i.height*s,e||(a.y=o.view.height-(a.y+a.height)),a.ceil(),this.renderer.framebuffer.bind(n,a),this.renderer.projection.update(i,t,s,!n),e?this.renderer.mask.setMaskStack(r.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(t),this.destinationFrame.copyFrom(i)},Is.prototype.clear=function(e,t){e=this.current?e||this.current.baseTexture.clearColor:e||this.clearColor;var i,r,n,s=this.destinationFrame,o=this.current?this.current.baseTexture:this.renderer.screen,s=s.width!==o.width||s.height!==o.height;s&&(i=(o=this.viewportFrame).x,r=o.y,n=o.width,o=o.height,i=Math.round(i),r=Math.round(r),n=Math.round(n),o=Math.round(o),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(i,r,n,o)),this.renderer.framebuffer.clear(e[0],e[1],e[2],e[3],t),s&&this.renderer.scissor.pop()},Is.prototype.resize=function(){this.bind(null)},Is.prototype.reset=function(){this.bind(null)},Is.prototype.destroy=function(){this.renderer=null},Is);function Is(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new w,this.destinationFrame=new w,this.viewportFrame=new w}function Ds(e,t,i,r,n){i.buffer.update(n)}var Ls={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},Fs={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function Ns(e){for(var t=e.map(function(e){return{data:e,offset:0,dataLen:0,dirty:0}}),i=0,r=0,n=0,s=0;s<t.length;s++){var o,a=t[s],i=Fs[a.data.type];1<a.data.size&&(i=Math.max(i,16)*a.data.size),r%(a.dataLen=i)!=0&&r<16&&(r+=o=r%i%16,n+=o),16<r+i?(n=16*Math.ceil(n/16),a.offset=n,n+=i,r=i):(a.offset=n,r+=i,n+=i)}return{uboElements:t,size:n=16*Math.ceil(n/16)}}function zs(e,t){var i,r=[];for(i in e)t[i]&&r.push(t[i]);return r.sort(function(e,t){return e.index-t.index}),r}function Bs(e,t){if(!e.autoManage)return{size:0,syncFunc:Ds};for(var t=Ns(zs(e.uniforms,t)),i=t.uboElements,t=t.size,r=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],n=0;n<i.length;n++){for(var s,o,a=i[n],l=e.uniforms[a.data.name],u=a.data.name,h=!1,c=0;c<Kn.length;c++){var p=Kn[c];if(p.codeUbo&&p.test(a.data,l)){r.push("offset = "+a.offset/4+";",Kn[c].codeUbo(a.data.name,l)),h=!0;break}}h||(1<a.data.size?(s=Yn(a.data.type),o=Math.max(Fs[a.data.type]/16,1),r.push("\n cv = ud."+u+".value;\n v = uv."+u+";\n offset = "+a.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+a.data.size*o+"; i++)\n {\n for(var j = 0; j < "+(s=s/o)+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+(4-s%4)%4+";\n }\n\n ")):(o=Ls[a.data.type],r.push("\n cv = ud."+u+".value;\n v = uv."+u+";\n offset = "+a.offset/4+";\n "+o+";\n ")))}return r.push("\n renderer.buffer.update(buffer);\n "),{size:t,syncFunc:new Function("ud","uv","renderer","syncData","buffer",r.join("\n"))}}function Us(){}Gs.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null};var js=Gs;function Gs(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}function Xs(e,t){var i,r,n,s,o=Ln(e,e.VERTEX_SHADER,t.vertexSrc),a=Ln(e,e.FRAGMENT_SHADER,t.fragmentSrc),l=e.createProgram();if(e.attachShader(l,o),e.attachShader(l,a),e.linkProgram(l),e.getProgramParameter(l,e.LINK_STATUS)||(r=l,n=o,s=a,(i=e).getProgramParameter(r,i.LINK_STATUS)||(i.getShaderParameter(n,i.COMPILE_STATUS)||Fn(i,n),i.getShaderParameter(s,i.COMPILE_STATUS)||Fn(i,s),console.error("PixiJS Error: Could not initialize shader."),""!==i.getProgramInfoLog(r)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(r)))),t.attributeData=function(e,t){for(var i={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=0;n<r;n++){var s,o=t.getActiveAttrib(e,n);0!==o.name.indexOf("gl_")&&(s={type:s=qn(t,o.type),name:o.name,size:Yn(s),location:t.getAttribLocation(e,o.name)},i[o.name]=s)}return i}(l,e),t.uniformData=function(e,t){for(var i={},r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=0;n<r;n++){var s=t.getActiveUniform(e,n),o=s.name.replace(/\[.*?\]$/,""),a=!!s.name.match(/\[.*?\]$/),l=qn(t,s.type);i[o]={name:o,index:n,type:l,size:s.size,isArray:a,value:zn(l,s.size)}}return i}(l,e),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(t.vertexSrc)){var u=Object.keys(t.attributeData);u.sort(function(e,t){return t<e?1:-1});for(var h=0;h<u.length;h++)t.attributeData[u[h]].location=h,e.bindAttribLocation(l,h,u[h]);e.linkProgram(l)}e.deleteShader(o),e.deleteShader(a);var c={};for(h in t.uniformData){var p=t.uniformData[h];c[h]={location:e.getUniformLocation(l,h),value:zn(p.type,p.size)}}return new js(l,c)}var Hs=0,Ys={textureCount:0,uboCount:0},Ws=(Vs.prototype.systemCheck=function(){if(!function(){if("boolean"!=typeof Qn)try{var e=new Function("param1","param2","param3","return param1[param2] === param3;");Qn=!0===e({a:"b"},"a","b")}catch(e){Qn=!1}return Qn}())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},Vs.prototype.contextChange=function(e){this.gl=e,this.reset()},Vs.prototype.bind=function(e,t){e.uniforms.globals=this.renderer.globalUniforms;var i=e.program,r=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==i&&(this.program=i,this.gl.useProgram(r.program)),t||(Ys.textureCount=0,Ys.uboCount=0,this.syncUniformGroup(e.uniformGroup,Ys)),r},Vs.prototype.setUniforms=function(e){var t=this.shader.program,i=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(i.uniformData,e,this.renderer)},Vs.prototype.syncUniformGroup=function(e,t){var i=this.getGlProgram();e.static&&e.dirtyId===i.uniformDirtyGroups[e.id]||(i.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,i,t))},Vs.prototype.syncUniforms=function(e,t,i){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,i)},Vs.prototype.createSyncGroups=function(e){var t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=function(e,t){var i,r=["\n var v = null;\n var cv = null;\n var cu = null;\n var t = 0;\n var gl = renderer.gl;\n "];for(i in e.uniforms){var n=t[i];if(n){for(var s,o=e.uniforms[i],a=!1,l=0;l<Kn.length;l++)if(Kn[l].test(n,o)){r.push(Kn[l].code(i,o)),a=!0;break}a||(s=(1!==n.size||n.isArray?Jn:Zn)[n.type].replace("location",'ud["'+i+'"].location'),r.push('\n cu = ud["'+i+'"];\n cv = cu.value;\n v = uv["'+i+'"];\n '+s+";"))}else null!=(s=e.uniforms[i])&&s.group&&(e.uniforms[i].ubo?r.push("\n renderer.shader.syncUniformBufferGroup(uv."+i+", '"+i+"');\n "):r.push("\n renderer.shader.syncUniformGroup(uv."+i+", syncData);\n "))}return new Function("ud","uv","renderer","syncData",r.join("\n"))}(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]},Vs.prototype.syncUniformBufferGroup=function(e,t){var i,r=this.getGlProgram();e.static&&0===e.dirtyId&&r.uniformGroups[e.id]||(e.dirtyId=0,i=r.uniformGroups[e.id]||this.createSyncBufferGroup(e,r,t),e.buffer.update(),i(r.uniformData,e.uniforms,this.renderer,Ys,e.buffer)),this.renderer.buffer.bindBufferBase(e.buffer,r.uniformBufferBindings[t])},Vs.prototype.createSyncBufferGroup=function(e,t,i){var r=this.renderer.gl,n=(this.renderer.buffer.bind(e.buffer),this.gl.getUniformBlockIndex(t.program,i)),i=(t.uniformBufferBindings[i]=this.shader.uniformBindCount,r.uniformBlockBinding(t.program,n,this.shader.uniformBindCount),this.shader.uniformBindCount++,this.getSignature(e,this.shader.program.uniformData,"ubo")),r=(r=this._uboCache[i])||(this._uboCache[i]=Bs(e,this.shader.program.uniformData));return e.autoManage&&(n=new Float32Array(r.size/4),e.buffer.update(n)),t.uniformGroups[e.id]=r.syncFunc,t.uniformGroups[e.id]},Vs.prototype.getSignature=function(e,t,i){var r,n=[i+"-"];for(r in e.uniforms)n.push(r),t[r]&&n.push(t[r].type);return n.join("-")},Vs.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},Vs.prototype.generateProgram=function(e){var t=this.gl,e=e.program,t=Xs(t,e);return e.glPrograms[this.renderer.CONTEXT_UID]=t},Vs.prototype.reset=function(){this.program=null,this.shader=null},Vs.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},Vs);function Vs(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Hs++}Ks.prototype.contextChange=function(e){var t;this.gl=e,this.blendModes=(e=e,(t=void 0===t?[]:t)[$.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.ADD]=[e.ONE,e.ONE],t[$.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.NONE]=[0,0],t[$.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[$.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[$.BLEND_MODES.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[$.BLEND_MODES.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[$.BLEND_MODES.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[$.BLEND_MODES.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[$.BLEND_MODES.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[$.BLEND_MODES.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t),this.set(this.defaultState),this.reset()},Ks.prototype.set=function(e){if(e=e||this.defaultState,this.stateId!==e.data){for(var t=this.stateId^e.data,i=0;t;)1&t&&this.map[i].call(this,!!(e.data&1<<i)),t>>=1,i++;this.stateId=e.data}for(i=0;i<this.checks.length;i++)this.checks[i](this,e)},Ks.prototype.forceState=function(e){e=e||this.defaultState;for(var t=0;t<this.map.length;t++)this.map[t].call(this,!!(e.data&1<<t));for(t=0;t<this.checks.length;t++)this.checks[t](this,e);this.stateId=e.data},Ks.prototype.setBlend=function(e){this.updateCheck(Ks.checkBlendMode,e),this.gl[e?"enable":"disable"](this.gl.BLEND)},Ks.prototype.setOffset=function(e){this.updateCheck(Ks.checkPolygonOffset,e),this.gl[e?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},Ks.prototype.setDepthTest=function(e){this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST)},Ks.prototype.setDepthMask=function(e){this.gl.depthMask(e)},Ks.prototype.setCullFace=function(e){this.gl[e?"enable":"disable"](this.gl.CULL_FACE)},Ks.prototype.setFrontFace=function(e){this.gl.frontFace(this.gl[e?"CW":"CCW"])},Ks.prototype.setBlendMode=function(e){var t;e!==this.blendMode&&(this.blendMode=e,e=this.blendModes[e],t=this.gl,2===e.length?t.blendFunc(e[0],e[1]):t.blendFuncSeparate(e[0],e[1],e[2],e[3]),6===e.length?(this._blendEq=!0,t.blendEquationSeparate(e[4],e[5])):this._blendEq&&(this._blendEq=!1,t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD)))},Ks.prototype.setPolygonOffset=function(e,t){this.gl.polygonOffset(e,t)},Ks.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},Ks.prototype.updateCheck=function(e,t){var i=this.checks.indexOf(e);t&&-1===i?this.checks.push(e):t||-1===i||this.checks.splice(i,1)},Ks.checkBlendMode=function(e,t){e.setBlendMode(t.blendMode)},Ks.checkPolygonOffset=function(e,t){e.setPolygonOffset(1,t.polygonOffset)},Ks.prototype.destroy=function(){this.gl=null};var qs=Ks;function Ks(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=$.BLEND_MODES.NONE,this._blendEq=!1,this.map=[],this.map[0]=this.setBlend,this.map[1]=this.setOffset,this.map[2]=this.setCullFace,this.map[3]=this.setDepthTest,this.map[4]=this.setFrontFace,this.map[5]=this.setDepthMask,this.checks=[],this.defaultState=new as,this.defaultState.blend=!0}Js.prototype.postrender=function(){this.renderer.renderingToScreen&&(this.count++,this.mode!==$.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},Js.prototype.run=function(){for(var e=this.renderer.texture,t=e.managedTextures,i=!1,r=0;r<t.length;r++){var n=t[r];!n.framebuffer&&this.count-n.touched>this.maxIdle&&(e.destroyTexture(n,!0),i=!(t[r]=null))}if(i){for(var s=0,r=0;r<t.length;r++)null!==t[r]&&(t[s++]=t[r]);t.length=s}},Js.prototype.unload=function(e){var t=this.renderer.texture,i=e._texture;i&&!i.framebuffer&&t.destroyTexture(i);for(var r=e.children.length-1;0<=r;r--)this.unload(e.children[r])},Js.prototype.destroy=function(){this.renderer=null};var Zs=Js;function Js(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=R.GC_MAX_IDLE,this.checkCountMax=R.GC_MAX_CHECK_COUNT,this.mode=R.GC_MODE}var Qs=function(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=$.TYPES.UNSIGNED_BYTE,this.internalFormat=$.FORMATS.RGBA,this.samplerType=0},$s=(eo.prototype.contextChange=function(){var e,t,i=this.gl=this.renderer.gl,r=(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=(e=i,e="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?((s={})[$.TYPES.UNSIGNED_BYTE]=((t={})[$.FORMATS.RGBA]=e.RGBA8,t[$.FORMATS.RGB]=e.RGB8,t[$.FORMATS.RG]=e.RG8,t[$.FORMATS.RED]=e.R8,t[$.FORMATS.RGBA_INTEGER]=e.RGBA8UI,t[$.FORMATS.RGB_INTEGER]=e.RGB8UI,t[$.FORMATS.RG_INTEGER]=e.RG8UI,t[$.FORMATS.RED_INTEGER]=e.R8UI,t[$.FORMATS.ALPHA]=e.ALPHA,t[$.FORMATS.LUMINANCE]=e.LUMINANCE,t[$.FORMATS.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,t),s[$.TYPES.BYTE]=((t={})[$.FORMATS.RGBA]=e.RGBA8_SNORM,t[$.FORMATS.RGB]=e.RGB8_SNORM,t[$.FORMATS.RG]=e.RG8_SNORM,t[$.FORMATS.RED]=e.R8_SNORM,t[$.FORMATS.RGBA_INTEGER]=e.RGBA8I,t[$.FORMATS.RGB_INTEGER]=e.RGB8I,t[$.FORMATS.RG_INTEGER]=e.RG8I,t[$.FORMATS.RED_INTEGER]=e.R8I,t),s[$.TYPES.UNSIGNED_SHORT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA16UI,t[$.FORMATS.RGB_INTEGER]=e.RGB16UI,t[$.FORMATS.RG_INTEGER]=e.RG16UI,t[$.FORMATS.RED_INTEGER]=e.R16UI,t[$.FORMATS.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,t),s[$.TYPES.SHORT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA16I,t[$.FORMATS.RGB_INTEGER]=e.RGB16I,t[$.FORMATS.RG_INTEGER]=e.RG16I,t[$.FORMATS.RED_INTEGER]=e.R16I,t),s[$.TYPES.UNSIGNED_INT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA32UI,t[$.FORMATS.RGB_INTEGER]=e.RGB32UI,t[$.FORMATS.RG_INTEGER]=e.RG32UI,t[$.FORMATS.RED_INTEGER]=e.R32UI,t[$.FORMATS.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,t),s[$.TYPES.INT]=((t={})[$.FORMATS.RGBA_INTEGER]=e.RGBA32I,t[$.FORMATS.RGB_INTEGER]=e.RGB32I,t[$.FORMATS.RG_INTEGER]=e.RG32I,t[$.FORMATS.RED_INTEGER]=e.R32I,t),s[$.TYPES.FLOAT]=((t={})[$.FORMATS.RGBA]=e.RGBA32F,t[$.FORMATS.RGB]=e.RGB32F,t[$.FORMATS.RG]=e.RG32F,t[$.FORMATS.RED]=e.R32F,t[$.FORMATS.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,t),s[$.TYPES.HALF_FLOAT]=((t={})[$.FORMATS.RGBA]=e.RGBA16F,t[$.FORMATS.RGB]=e.RGB16F,t[$.FORMATS.RG]=e.RG16F,t[$.FORMATS.RED]=e.R16F,t),s[$.TYPES.UNSIGNED_SHORT_5_6_5]=((t={})[$.FORMATS.RGB]=e.RGB565,t),s[$.TYPES.UNSIGNED_SHORT_4_4_4_4]=((t={})[$.FORMATS.RGBA]=e.RGBA4,t),s[$.TYPES.UNSIGNED_SHORT_5_5_5_1]=((t={})[$.FORMATS.RGBA]=e.RGB5_A1,t),s[$.TYPES.UNSIGNED_INT_2_10_10_10_REV]=((t={})[$.FORMATS.RGBA]=e.RGB10_A2,t[$.FORMATS.RGBA_INTEGER]=e.RGB10_A2UI,t),s[$.TYPES.UNSIGNED_INT_10F_11F_11F_REV]=((t={})[$.FORMATS.RGB]=e.R11F_G11F_B10F,t),s[$.TYPES.UNSIGNED_INT_5_9_9_9_REV]=((t={})[$.FORMATS.RGB]=e.RGB9_E5,t),s[$.TYPES.UNSIGNED_INT_24_8]=((t={})[$.FORMATS.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,t),s[$.TYPES.FLOAT_32_UNSIGNED_INT_24_8_REV]=((t={})[$.FORMATS.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,t),s):((t={})[$.TYPES.UNSIGNED_BYTE]=((s={})[$.FORMATS.RGBA]=e.RGBA,s[$.FORMATS.RGB]=e.RGB,s[$.FORMATS.ALPHA]=e.ALPHA,s[$.FORMATS.LUMINANCE]=e.LUMINANCE,s[$.FORMATS.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,s),t[$.TYPES.UNSIGNED_SHORT_5_6_5]=((s={})[$.FORMATS.RGB]=e.RGB,s),t[$.TYPES.UNSIGNED_SHORT_4_4_4_4]=((s={})[$.FORMATS.RGBA]=e.RGBA,s),t[$.TYPES.UNSIGNED_SHORT_5_5_5_1]=((s={})[$.FORMATS.RGBA]=e.RGBA,s),t)),i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS));this.boundTextures.length=r;for(var n=0;n<r;n++)this.boundTextures[n]=null;this.emptyTextures={};var s=new Qs(i.createTexture());i.bindTexture(i.TEXTURE_2D,s.texture),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,1,1,0,i.RGBA,i.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[i.TEXTURE_2D]=s,this.emptyTextures[i.TEXTURE_CUBE_MAP]=new Qs(i.createTexture()),i.bindTexture(i.TEXTURE_CUBE_MAP,this.emptyTextures[i.TEXTURE_CUBE_MAP].texture);for(n=0;n<6;n++)i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,i.RGBA,1,1,0,i.RGBA,i.UNSIGNED_BYTE,null);i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MIN_FILTER,i.LINEAR);for(n=0;n<this.boundTextures.length;n++)this.bind(null,n)},eo.prototype.bind=function(e,t){void 0===t&&(t=0);var i,r=this.gl;(e=null==e?void 0:e.castToBaseTexture())&&e.valid&&!e.parentTextureArray?(e.touched=this.renderer.textureGC.count,i=e._glTextures[this.CONTEXT_UID]||this.initTexture(e),this.boundTextures[t]!==e&&(this.currentLocation!==t&&(this.currentLocation=t,r.activeTexture(r.TEXTURE0+t)),r.bindTexture(e.target,i.texture)),i.dirtyId!==e.dirtyId?(this.currentLocation!==t&&(this.currentLocation=t,r.activeTexture(r.TEXTURE0+t)),this.updateTexture(e)):i.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(e),this.boundTextures[t]=e):(this.currentLocation!==t&&(this.currentLocation=t,r.activeTexture(r.TEXTURE0+t)),r.bindTexture(r.TEXTURE_2D,this.emptyTextures[r.TEXTURE_2D].texture),this.boundTextures[t]=null)},eo.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.unknownTexture},eo.prototype.unbind=function(e){var t=this.gl,i=this.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var r=0;r<i.length;r++)i[r]===this.unknownTexture&&this.bind(null,r)}for(r=0;r<i.length;r++)i[r]===e&&(this.currentLocation!==r&&(t.activeTexture(t.TEXTURE0+r),this.currentLocation=r),t.bindTexture(e.target,this.emptyTextures[e.target].texture),i[r]=null)},eo.prototype.ensureSamplerType=function(e){var t=this.boundTextures,i=this.hasIntegerTextures,r=this.CONTEXT_UID;if(i)for(var n=e-1;0<=n;--n){var s=t[n];s&&s._glTextures[r].samplerType!==$.SAMPLER_TYPES.FLOAT&&this.renderer.texture.unbind(s)}},eo.prototype.initTexture=function(e){var t=new Qs(this.gl.createTexture());return t.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=t,this.managedTextures.push(e),e.on("dispose",this.destroyTexture,this),t},eo.prototype.initTextureType=function(e,t){var i;t.internalFormat=null!=(i=null==(i=this.internalFormats[e.type])?void 0:i[e.format])?i:e.format,2===this.webGLVersion&&e.type===$.TYPES.HALF_FLOAT?t.type=this.gl.HALF_FLOAT:t.type=e.type},eo.prototype.updateTexture=function(e){var t,i,r,n=e._glTextures[this.CONTEXT_UID];n&&(r=this.renderer,this.initTextureType(e,n),e.resource&&e.resource.upload(r,e,n)?n.samplerType!==$.SAMPLER_TYPES.FLOAT&&(this.hasIntegerTextures=!0):(t=e.realWidth,i=e.realHeight,r=r.gl,(n.width!==t||n.height!==i||n.dirtyId<0)&&(n.width=t,n.height=i,r.texImage2D(e.target,0,n.internalFormat,t,i,0,e.format,n.type,null))),e.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(e),n.dirtyId=e.dirtyId)},eo.prototype.destroyTexture=function(e,t){var i=this.gl;(e=e.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(e),i.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off("dispose",this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],t||-1!==(i=this.managedTextures.indexOf(e))&&kt(this.managedTextures,i,1))},eo.prototype.updateTextureStyle=function(e){var t=e._glTextures[this.CONTEXT_UID];t&&(e.mipmap!==$.MIPMAP_MODES.POW2&&2===this.webGLVersion||e.isPowerOfTwo?t.mipmap=1<=e.mipmap:t.mipmap=!1,2===this.webGLVersion||e.isPowerOfTwo?t.wrapMode=e.wrapMode:t.wrapMode=$.WRAP_MODES.CLAMP,e.resource&&e.resource.style(this.renderer,e,t)||this.setStyle(e,t),t.dirtyStyleId=e.dirtyStyleId)},eo.prototype.setStyle=function(e,t){var i,r=this.gl;t.mipmap&&e.mipmap!==$.MIPMAP_MODES.ON_MANUAL&&r.generateMipmap(e.target),r.texParameteri(e.target,r.TEXTURE_WRAP_S,t.wrapMode),r.texParameteri(e.target,r.TEXTURE_WRAP_T,t.wrapMode),t.mipmap?(r.texParameteri(e.target,r.TEXTURE_MIN_FILTER,e.scaleMode===$.SCALE_MODES.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST),(t=this.renderer.context.extensions.anisotropicFiltering)&&0<e.anisotropicLevel&&e.scaleMode===$.SCALE_MODES.LINEAR&&(i=Math.min(e.anisotropicLevel,r.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),r.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY_EXT,i))):r.texParameteri(e.target,r.TEXTURE_MIN_FILTER,e.scaleMode===$.SCALE_MODES.LINEAR?r.LINEAR:r.NEAREST),r.texParameteri(e.target,r.TEXTURE_MAG_FILTER,e.scaleMode===$.SCALE_MODES.LINEAR?r.LINEAR:r.NEAREST)},eo.prototype.destroy=function(){this.renderer=null},eo);function eo(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new C,this.hasIntegerTextures=!1}var to,io={__proto__:null,FilterSystem:gn,BatchSystem:xn,ContextSystem:En,FramebufferSystem:Pn,GeometrySystem:Cn,MaskSystem:gs,ScissorSystem:ws,StencilSystem:As,ProjectionSystem:Ps,RenderTextureSystem:Ms,ShaderSystem:Ws,StateSystem:qs,TextureGCSystem:Zs,TextureSystem:$s},ro=new oi,no=(c(so,to=ie),so.prototype.initPlugins=function(e){for(var t in e)this.plugins[t]=new e[t](this)},Object.defineProperty(so.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),so.prototype.resize=function(e,t){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(t*this.resolution);e=this.view.width/this.resolution,t=this.view.height/this.resolution;this.screen.width=e,this.screen.height=t,this.autoDensity&&(this.view.style.width=e+"px",this.view.style.height=t+"px"),this.emit("resize",e,t)},so.prototype.generateTexture=function(e,t,i,r){"number"==typeof(t=void 0===t?{}:t)&&(Mt("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),t={scaleMode:t,resolution:i,region:r});i=t.region,t=function(e,t){var i={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}(t,["region"]),0===(r=i||e.getLocalBounds(null,!0)).width&&(r.width=1),0===r.height&&(r.height=1),i=Gr.create(Ji({width:r.width,height:r.height},t));return ro.tx=-r.x,ro.ty=-r.y,this.render(e,{renderTexture:i,clear:!1,transform:ro,skipUpdateTransform:!!e.parent}),i},so.prototype.destroy=function(e){for(var t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);this.plugins=null,this.type=$.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this._tempDisplayObjectParent=null,this.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(so.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=ft(e),dt(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(so.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),so);function so(e,t){void 0===e&&(e=$.RENDERER_TYPE.UNKNOWN);var i=to.call(this)||this;return t=Object.assign({},R.RENDER_OPTIONS,t),i.options=t,i.type=e,i.screen=new w(0,0,t.width,t.height),i.view=t.view||R.ADAPTER.createCanvas(),i.resolution=t.resolution||R.RESOLUTION,i.useContextAlpha=t.useContextAlpha,i.autoDensity=!!t.autoDensity,i.preserveDrawingBuffer=t.preserveDrawingBuffer,i.clearBeforeRender=t.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=t.backgroundColor||i._backgroundColor,i.backgroundAlpha=t.backgroundAlpha,void 0!==t.transparent&&(Mt("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=t.transparent,i.backgroundAlpha=t.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}var oo=function(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0},ao=(lo.prototype.destroy=function(){this.renderer=null},lo.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},lo.prototype.bind=function(e){var t=this.gl,i=this.CONTEXT_UID,i=e._glBuffers[i]||this.createGLBuffer(e);t.bindBuffer(e.type,i.buffer)},lo.prototype.bindBufferBase=function(e,t){var i=this.gl,r=this.CONTEXT_UID;this.boundBufferBases[t]!==e&&(r=e._glBuffers[r]||this.createGLBuffer(e),this.boundBufferBases[t]=e,i.bindBufferBase(i.UNIFORM_BUFFER,t,r.buffer))},lo.prototype.bindBufferRange=function(e,t,i){var r=this.gl,n=this.CONTEXT_UID,n=(i=i||0,e._glBuffers[n]||this.createGLBuffer(e));r.bindBufferRange(r.UNIFORM_BUFFER,t||0,n.buffer,256*i,256)},lo.prototype.update=function(e){var t,i=this.gl,r=this.CONTEXT_UID,r=e._glBuffers[r];e._updateID!==r.updateID&&(r.updateID=e._updateID,i.bindBuffer(e.type,r.buffer),r.byteLength>=e.data.byteLength?i.bufferSubData(e.type,0,e.data):(t=e.static?i.STATIC_DRAW:i.DYNAMIC_DRAW,r.byteLength=e.data.byteLength,i.bufferData(e.type,e.data,t)))},lo.prototype.dispose=function(e,t){var i,r;this.managedBuffers[e.id]&&(delete this.managedBuffers[e.id],i=e._glBuffers[this.CONTEXT_UID],r=this.gl,e.disposeRunner.remove(this),i&&(t||r.deleteBuffer(i.buffer),delete e._glBuffers[this.CONTEXT_UID]))},lo.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedBuffers),i=0;i<t.length;i++)this.dispose(this.managedBuffers[t[i]],e)},lo.prototype.createGLBuffer=function(e){var t=this.CONTEXT_UID,i=this.gl;return e._glBuffers[t]=new oo(i.createBuffer()),(this.managedBuffers[e.id]=e).disposeRunner.add(this),e._glBuffers[t]},lo);function lo(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}c(co,uo=no),co.create=function(e){if(ct())return new co(e);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},co.prototype.contextChange=function(){var e,t,i=this.gl;1===this.context.webGLVersion?(t=i.getParameter(i.FRAMEBUFFER_BINDING),i.bindFramebuffer(i.FRAMEBUFFER,null),e=i.getParameter(i.SAMPLES),i.bindFramebuffer(i.FRAMEBUFFER,t)):(t=i.getParameter(i.DRAW_FRAMEBUFFER_BINDING),i.bindFramebuffer(i.DRAW_FRAMEBUFFER,null),e=i.getParameter(i.SAMPLES),i.bindFramebuffer(i.DRAW_FRAMEBUFFER,t)),e>=$.MSAA_QUALITY.HIGH?this.multisample=$.MSAA_QUALITY.HIGH:e>=$.MSAA_QUALITY.MEDIUM?this.multisample=$.MSAA_QUALITY.MEDIUM:e>=$.MSAA_QUALITY.LOW?this.multisample=$.MSAA_QUALITY.LOW:this.multisample=$.MSAA_QUALITY.NONE},co.prototype.addSystem=function(e,t){var i,r=new e(this);if(this[t])throw new Error('Whoops! The name "'+t+'" is already in use');for(i in this[t]=r,this.runners)this.runners[i].add(r);return this},co.prototype.render=function(e,t){var i,r,n,s;t&&(s=t instanceof Gr?(Mt("6.0.0","Renderer#render arguments changed, use options instead."),i=t,r=arguments[2],n=arguments[3],arguments[4]):(i=t.renderTexture,r=t.clear,n=t.transform,t.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=n,this.context.isLost||(i||(this._lastObjectRendered=e),s||(t=e.enableTempParent(),e.updateTransform(),e.disableTempParent(t)),this.renderTexture.bind(i),this.batch.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender"))},co.prototype.generateTexture=function(e,t,i,r){e=uo.prototype.generateTexture.call(this,e,t=void 0===t?{}:t,i,r);return this.framebuffer.blit(),e},co.prototype.resize=function(e,t){uo.prototype.resize.call(this,e,t),this.runners.resize.emit(this.screen.height,this.screen.width)},co.prototype.reset=function(){return this.runners.reset.emit(),this},co.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},co.prototype.destroy=function(e){for(var t in this.runners.destroy.emit(),this.runners)this.runners[t].destroy();uo.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(co.prototype,"extract",{get:function(){return Mt("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),co.registerPlugin=function(e,t){Mt("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ji.add({name:e,type:$.ExtensionType.RendererPlugin,ref:t})},co.__plugins={};var uo,ho=co;function co(e){var t=uo.call(this,$.RENDERER_TYPE.WEBGL,e)||this;return e=t.options,t.gl=null,t.CONTEXT_UID=0,t.runners={destroy:new Gi("destroy"),contextChange:new Gi("contextChange"),reset:new Gi("reset"),update:new Gi("update"),postrender:new Gi("postrender"),prerender:new Gi("prerender"),resize:new Gi("resize")},t.runners.contextChange.add(t),t.globalUniforms=new cn({projectionMatrix:new oi},!0),t.addSystem(gs,"mask").addSystem(En,"context").addSystem(qs,"state").addSystem(Ws,"shader").addSystem($s,"texture").addSystem(ao,"buffer").addSystem(Cn,"geometry").addSystem(Pn,"framebuffer").addSystem(ws,"scissor").addSystem(As,"stencil").addSystem(Ps,"projection").addSystem(Zs,"textureGC").addSystem(gn,"filter").addSystem(Ms,"renderTexture").addSystem(xn,"batch"),t.initPlugins(co.__plugins),t.multisample=void 0,e.context?t.context.initFromContext(e.context):t.context.initFromOptions({alpha:!!t.useContextAlpha,antialias:e.antialias,premultipliedAlpha:t.useContextAlpha&&"notMultiplied"!==t.useContextAlpha,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:t.options.powerPreference}),t.renderingToScreen=!0,ht(2===t.context.webGLVersion?"WebGL 2":"WebGL 1"),t.resize(t.options.width,t.options.height),t}function po(e){return ho.create(e)}ji.handleByMap($.ExtensionType.RendererPlugin,ho.__plugins);var fo="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",mo="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",_o=(go.prototype.destroy=function(){this.renderer=null},go);function go(e){Mt("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=e}var vo=function(){this.texArray=null,this.blend=0,this.type=$.DRAW_MODES.TRIANGLES,this.start=0,this.size=0,this.data=null},yo=(bo.prototype.clear=function(){for(var e=0;e<this.count;e++)this.elements[e]=null;this.count=0},bo);function bo(){this.elements=[],this.ids=[],this.count=0}Object.defineProperty(To.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(To.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),To.prototype.view=function(e){return this[e+"View"]},To.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},To.sizeOf=function(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(e+" isn't a valid view type")}};var xo=To;function To(e){"number"==typeof e?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}c(So,wo=yn),So.prototype.contextChange=function(){var e=this.renderer.gl;R.PREFER_ENV===$.ENV.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),R.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=es(this.MAX_TEXTURES,e)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()},So.prototype.initFlushBuffers=function(){for(var e=So._drawCallPool,t=So._textureArrayPool,i=this.size/4,r=Math.floor(i/this.MAX_TEXTURES)+1;e.length<i;)e.push(new vo);for(;t.length<r;)t.push(new yo);for(var n=0;n<this.MAX_TEXTURES;n++)this._tempBoundTextures[n]=null},So.prototype.onPrerender=function(){this._flushId=0},So.prototype.render=function(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},So.prototype.buildTexturesAndDrawCalls=function(){var e=this._bufferedTextures,t=this.MAX_TEXTURES,i=So._textureArrayPool,r=this.renderer.batch,n=this._tempBoundTextures,s=this.renderer.textureGC.count,o=++C._globalBatch,a=0,l=i[0],u=0;r.copyBoundTextures(n,t);for(var h=0;h<this._bufferSize;++h){var c=e[h];e[h]=null,c._batchEnabled!==o&&(l.count>=t&&(r.boundArray(l,n,o,t),this.buildDrawCalls(l,u,h),u=h,l=i[++a],++o),c._batchEnabled=o,c.touched=s,l.elements[l.count++]=c)}0<l.count&&(r.boundArray(l,n,o,t),this.buildDrawCalls(l,u,this._bufferSize),++a,++o);for(h=0;h<n.length;h++)n[h]=null;C._globalBatch=o},So.prototype.buildDrawCalls=function(e,t,i){var r=this._bufferedElements,n=this._attributeBuffer,s=this._indexBuffer,o=this.vertexSize,a=So._drawCallPool,l=this._dcIndex,u=this._aIndex,h=this._iIndex,c=a[l];c.start=this._iIndex,c.texArray=e;for(var p=t;p<i;++p){var d=r[p],f=d._texture.baseTexture,f=_t[f.alphaMode?1:0][d.blendMode];r[p]=null,t<p&&c.blend!==f&&(c.size=h-c.start,t=p,(c=a[++l]).texArray=e,c.start=h),this.packInterleavedGeometry(d,n,s,u,h),u+=d.vertexData.length/2*o,h+=d.indices.length,c.blend=f}t<i&&(c.size=h-c.start,++l),this._dcIndex=l,this._aIndex=u,this._iIndex=h},So.prototype.bindAndClearTexArray=function(e){for(var t=this.renderer.texture,i=0;i<e.count;i++)t.bind(e.elements[i],e.ids[i]),e.elements[i]=null;e.count=0},So.prototype.updateGeometry=function(){var e=this._packedGeometries,t=this._attributeBuffer,i=this._indexBuffer;R.CAN_UPLOAD_SAME_BUFFER?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(i),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(i),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},So.prototype.drawBatches=function(){for(var e=this._dcIndex,t=this.renderer,i=t.gl,r=t.state,n=So._drawCallPool,s=null,o=0;o<e;o++){var a=n[o],l=a.texArray,u=a.type,h=a.size,c=a.start,a=a.blend;s!==l&&this.bindAndClearTexArray(s=l),this.state.blendMode=a,r.set(this.state),i.drawElements(u,h,i.UNSIGNED_SHORT,2*c)}},So.prototype.flush=function(){0!==this._vertexCount&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},So.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),R.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},So.prototype.stop=function(){this.flush()},So.prototype.destroy=function(){for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]&&this._packedGeometries[e].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),wo.prototype.destroy.call(this)},So.prototype.getAttributeBuffer=function(e){var e=Et(Math.ceil(e/8)),t=At(e),e=8*e,t=(this._aBuffers.length<=t&&(this._iBuffers.length=t+1),this._aBuffers[e]);return t||(this._aBuffers[e]=t=new xo(e*this.vertexSize*4)),t},So.prototype.getIndexBuffer=function(e){var e=Et(Math.ceil(e/12)),t=At(e),e=12*e,i=(this._iBuffers.length<=t&&(this._iBuffers.length=t+1),this._iBuffers[t]);return i||(this._iBuffers[t]=i=new Uint16Array(e)),i},So.prototype.packInterleavedGeometry=function(e,t,i,r,n){for(var s=t.uint32View,o=t.float32View,a=r/this.vertexSize,l=e.uvs,u=e.indices,h=e.vertexData,c=e._texture.baseTexture._batchLocation,t=Math.min(e.worldAlpha,1),p=t<1&&e._texture.baseTexture.alphaMode?yt(e._tintRGB,t):e._tintRGB+(255*t<<24),d=0;d<h.length;d+=2)o[r++]=h[d],o[r++]=h[d+1],o[r++]=l[d],o[r++]=l[d+1],s[r++]=p,o[r++]=c;for(d=0;d<u.length;d++)i[n++]=a+u[d]},So._drawCallPool=[],So._textureArrayPool=[];var wo,Eo=So;function So(e){var t=wo.call(this,e)||this;return t.shaderGenerator=null,t.geometryClass=null,t.vertexSize=null,t.state=as.for2d(),t.size=4*R.SPRITE_BATCH_SIZE,t._vertexCount=0,t._indexCount=0,t._bufferedElements=[],t._bufferedTextures=[],t._bufferSize=0,t._shader=null,t._packedGeometries=[],t._packedGeometryPoolSize=2,t._flushId=0,t._aBuffers={},t._iBuffers={},t.MAX_TEXTURES=1,t.renderer.on("prerender",t.onPrerender,t),e.runners.contextChange.add(t),t._dcIndex=0,t._aIndex=0,t._iIndex=0,t._attributeBuffer=null,t._indexBuffer=null,t._tempBoundTextures=[],t}ko.prototype.generateShader=function(e){if(!this.programCache[e]){for(var t=new Int32Array(e),i=0;i<e;i++)t[i]=i;this.defaultGroupCache[e]=cn.from({uSamplers:t},!0);var r=this.fragTemplate;r=(r=r.replace(/%count%/gi,""+e)).replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new rs(this.vertexSrc,r)}r={tint:new Float32Array([1,1,1,1]),translationMatrix:new oi,default:this.defaultGroupCache[e]};return new ss(this.programCache[e],r)},ko.prototype.generateSampleSrc=function(e){for(var t=(t="")+"\n"+"\n",i=0;i<e;i++)0<i&&(t+="\nelse "),i<e-1&&(t+="if(vTextureId < "+i+".5)"),t=(t+="\n{")+"\n\tcolor = texture2D(uSamplers["+i+"], vTextureCoord);\n}";return t=t+"\n"+"\n"};var Ao=ko;function ko(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},t.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(t.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}c(Ro,Po=tn);var Po,Oo=Ro;function Ro(e){void 0===e&&(e=!1);var t=Po.call(this)||this;return t._buffer=new Kr(null,e,!1),t._indexBuffer=new Kr(null,e,!0),t.addAttribute("aVertexPosition",t._buffer,2,!1,$.TYPES.FLOAT).addAttribute("aTextureCoord",t._buffer,2,!1,$.TYPES.FLOAT).addAttribute("aColor",t._buffer,4,!0,$.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",t._buffer,1,!0,$.TYPES.FLOAT).addIndex(t._indexBuffer),t}var Co="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n",Mo="varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n",Io=(Do.create=function(e){var t,e=Object.assign({vertex:Co,fragment:Mo,geometryClass:Oo,vertexSize:6},e),i=e.vertex,r=e.fragment,n=e.vertexSize,s=e.geometryClass;return c(o,t=Eo),o;function o(e){e=t.call(this,e)||this;return e.shaderGenerator=new Ao(i,r),e.geometryClass=s,e.vertexSize=n,e}},Object.defineProperty(Do,"defaultVertexSrc",{get:function(){return Co},enumerable:!1,configurable:!0}),Object.defineProperty(Do,"defaultFragmentTemplate",{get:function(){return Mo},enumerable:!1,configurable:!0}),Do);function Do(){}var Xe=Io.create(),Lo=(Object.assign(Xe,{extension:{name:"batch",type:$.ExtensionType.RendererPlugin}}),{});for(Fo in Pr)!function(e){Object.defineProperty(Lo,e,{get:function(){return Mt("6.0.0","PIXI.systems."+e+" has moved to PIXI."+e),Pr[e]}})}(Fo);var Fo,No={};for(Fo in io)!function(e){Object.defineProperty(No,e,{get:function(){return Mt("6.0.0","PIXI.resources."+e+" has moved to PIXI."+e),io[e]}})}(Fo);re={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1},i.mixin(re),Object.defineProperty(zo.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(zo.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),zo.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2..toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",function(){e._isMobileAccessibility=!0,e.activate(),e.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t},zo.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},zo.prototype.activate=function(){var e;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),null!=(e=this.renderer.view.parentNode)&&e.appendChild(this.div))},zo.prototype.deactivate=function(){var e;this._isActive&&!this._isMobileAccessibility&&(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),null!=(e=this.div.parentNode)&&e.removeChild(this.div))},zo.prototype.updateAccessibleObjects=function(e){if(e.visible&&e.accessibleChildren){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);var t=e.children;if(t)for(var i=0;i<t.length;i++)this.updateAccessibleObjects(t[i])}},zo.prototype.update=function(){var e=performance.now();if(!(he.android.device&&e<this.androidUpdateCount)&&(this.androidUpdateCount=e+this.androidUpdateFrequency,this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.left,i=e.top,r=e.width,e=e.height,n=this.renderer,s=n.width,o=n.height,n=n.resolution,a=r/s*n,l=e/o*n;(h=this.div).style.left=t+"px",h.style.top=i+"px",h.style.width=s+"px",h.style.height=o+"px";for(var u=0;u<this.children.length;u++){var h,c,p,d=this.children[u];d.renderId!==this.renderId?(d._accessibleActive=!1,kt(this.children,u,1),this.div.removeChild(d._accessibleDiv),this.pool.push(d._accessibleDiv),d._accessibleDiv=null,u--):(h=d._accessibleDiv,c=d.hitArea,p=d.worldTransform,d.hitArea?(h.style.left=(p.tx+c.x*p.a)*a+"px",h.style.top=(p.ty+c.y*p.d)*l+"px",h.style.width=c.width*p.a*a+"px",h.style.height=c.height*p.d*l+"px"):(c=d.getBounds(),this.capHitArea(c),h.style.left=c.x*a+"px",h.style.top=c.y*l+"px",h.style.width=c.width*a+"px",h.style.height=c.height*l+"px",h.title!==d.accessibleTitle&&null!==d.accessibleTitle&&(h.title=d.accessibleTitle),h.getAttribute("aria-label")!==d.accessibleHint&&null!==d.accessibleHint&&h.setAttribute("aria-label",d.accessibleHint)),d.accessibleTitle===h.title&&d.tabIndex===h.tabIndex||(h.title=d.accessibleTitle,h.tabIndex=d.tabIndex,this.debug&&this.updateDebugHTML(h)))}this.renderId++}},zo.prototype.updateDebugHTML=function(e){e.innerHTML="type: "+e.type+"</br> title : "+e.title+"</br> tabIndex: "+e.tabIndex},zo.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0);var t=this.renderer,i=t.width,t=t.height;e.x+e.width>i&&(e.width=i-e.x),e.y+e.height>t&&(e.height=t-e.y)},zo.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width="100px",t.style.height="100px",t.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2..toString(),t.style.borderStyle="none",-1<navigator.userAgent.toLowerCase().indexOf("chrome")?t.setAttribute("aria-live","off"):t.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?t.setAttribute("aria-relevant","additions"):t.setAttribute("aria-relevant","text"),t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),t.style.pointerEvents=e.accessiblePointerEvents,t.type=e.accessibleType,e.accessibleTitle&&null!==e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleHint&&null!==e.accessibleHint||(t.title="displayObject "+e.tabIndex),e.accessibleHint&&null!==e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),this.debug&&this.updateDebugHTML(t),e._accessibleActive=!0,(e._accessibleDiv=t).displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},zo.prototype._onClick=function(e){var t=this.renderer.plugins.interaction,e=e.target.displayObject,i=t.eventData;t.dispatchEvent(e,"click",i),t.dispatchEvent(e,"pointertap",i),t.dispatchEvent(e,"tap",i)},zo.prototype._onFocus=function(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","assertive");var t=this.renderer.plugins.interaction,e=e.target.displayObject,i=t.eventData;t.dispatchEvent(e,"mouseover",i)},zo.prototype._onFocusOut=function(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","polite");var t=this.renderer.plugins.interaction,e=e.target.displayObject,i=t.eventData;t.dispatchEvent(e,"mouseout",i)},zo.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},zo.prototype._onMouseMove=function(e){0===e.movementX&&0===e.movementY||this.deactivate()},zo.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},zo.extension={name:"accessibility",type:[$.ExtensionType.RendererPlugin,$.ExtensionType.CanvasRendererPlugin]},r=zo;function zo(e){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(he.tablet||he.phone)&&this.createTouchHook();var t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.zIndex=2..toString(),this.div=t,this.renderer=e,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}Object.defineProperty(Uo.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),Uo.prototype.getLocalPosition=function(e,t,i){return e.worldTransform.applyInverse(i||this.global,t)},Uo.prototype.copyEvent=function(e){"isPrimary"in e&&e.isPrimary&&(this.isPrimary=!0),this.button="button"in e&&e.button;var t="buttons"in e&&e.buttons;this.buttons=Number.isInteger(t)?t:"which"in e&&e.which,this.width="width"in e&&e.width,this.height="height"in e&&e.height,this.tiltX="tiltX"in e&&e.tiltX,this.tiltY="tiltY"in e&&e.tiltY,this.pointerType="pointerType"in e&&e.pointerType,this.pressure="pressure"in e&&e.pressure,this.rotationAngle="rotationAngle"in e&&e.rotationAngle,this.twist="twist"in e&&e.twist||0,this.tangentialPressure="tangentialPressure"in e&&e.tangentialPressure||0},Uo.prototype.reset=function(){this.isPrimary=!1};var Bo=Uo;function Uo(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new ee,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}var jo=function(e,t){return(jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};Xo.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},Xo.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null};var Go=Xo;function Xo(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}Yo.prototype._doSet=function(e,t){this._flags=t?this._flags|e:this._flags&~e},Object.defineProperty(Yo.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"flags",{get:function(){return this._flags},set:function(e){this._flags=e},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"none",{get:function(){return this._flags===Yo.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"over",{get:function(){return 0!=(this._flags&Yo.FLAGS.OVER)},set:function(e){this._doSet(Yo.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"rightDown",{get:function(){return 0!=(this._flags&Yo.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(Yo.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(Yo.prototype,"leftDown",{get:function(){return 0!=(this._flags&Yo.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(Yo.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),Yo.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4});var Ho=Yo;function Yo(e){this._pointerId=e,this._flags=Yo.FLAGS.NONE}Vo.prototype.recursiveFindHit=function(e,t,i,r,n){var s;if(!t||!t.visible)return!1;var o,a=e.data.global,l=!1,u=n=t.interactive||n,h=!0;if(t.hitArea?(r&&(t.worldTransform.applyInverse(a,this._tempPoint),t.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?l=!0:h=r=!1),u=!1):t._mask&&r&&(o=t._mask.isMaskData?t._mask.maskObject:t._mask)&&(null==(s=o.containsPoint)||!s.call(o,a))&&(r=!1),h&&t.interactiveChildren&&t.children)for(var c=t.children,p=c.length-1;0<=p;p--){var d=c[p],f=this.recursiveFindHit(e,d,i,r,u);f&&d.parent&&(u=!1,f&&(e.target&&(r=!1),l=!0))}return n&&(r&&!e.target&&!t.hitArea&&t.containsPoint&&t.containsPoint(a)&&(l=!0),t.interactive&&(l&&!e.target&&(e.target=t),i&&i(e,t,!!l))),l},Vo.prototype.findHit=function(e,t,i,r){this.recursiveFindHit(e,t,i,r,!1)};var Wo=Vo;function Vo(){this._tempPoint=new ee}var qo,Ko,ne={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(e){e?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0},Zo=(i.mixin(ne),{target:null,data:{global:null}}),n=(jo(Ko=_,se=qo=ie),Ko.prototype=null===se?Object.create(se):(Jo.prototype=se.prototype,new Jo),Object.defineProperty(_.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(e){(this._useSystemTicker=e)?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),_.prototype.hitTest=function(e,t){return Zo.target=null,Zo.data.global=e,t=t||this.lastObjectRendered,this.processInteractive(Zo,t,null,!0),Zo.target},_.prototype.setTargetElement=function(e,t){void 0===t&&(t=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents(),this.addTickerListener()},_.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(Wi.system.add(this.tickerUpdate,this,$.UPDATE_PRIORITY.INTERACTION),this.tickerAdded=!0)},_.prototype.removeTickerListener=function(){this.tickerAdded&&(Wi.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},_.prototype.addEvents=function(){var e;!this.eventsAdded&&this.interactionDOMElement&&(e=this.interactionDOMElement.style,globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0)},_.prototype.removeEvents=function(){var e;this.eventsAdded&&this.interactionDOMElement&&(e=this.interactionDOMElement.style,globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1)},_.prototype.tickerUpdate=function(e){this._deltaTime+=e,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this.update())},_.prototype.update=function(){if(this.interactionDOMElement)if(this._didMove)this._didMove=!1;else{for(var e in this.cursor=null,this.activeInteractionData)!this.activeInteractionData.hasOwnProperty(e)||(e=this.activeInteractionData[e]).originalEvent&&"touch"!==e.pointerType&&(e=this.configureInteractionEventForDOMEvent(this.eventData,e.originalEvent,e),this.processInteractive(e,this.lastObjectRendered,this.processPointerOverOut,!0));this.setCursorMode(this.cursor)}},_.prototype.setCursorMode=function(e){e=e||"default";var t=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(t=!1),this.currentCursorMode!==e){this.currentCursorMode=e;var i=this.cursorStyles[e];if(i)switch(typeof i){case"string":t&&(this.interactionDOMElement.style.cursor=i);break;case"function":i(e);break;case"object":t&&Object.assign(this.interactionDOMElement.style,i)}else t&&"string"==typeof e&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.interactionDOMElement.style.cursor=e)}},_.prototype.dispatchEvent=function(e,t,i){i.stopPropagationHint&&e!==i.stopsPropagatingAt||(i.currentTarget=e,i.type=t,e.emit(t,i),e[t]&&e[t](i))},_.prototype.delayDispatchEvent=function(e,t,i){this.delayedEvents.push({displayObject:e,eventString:t,eventData:i})},_.prototype.mapPositionToPoint=function(e,t,i){var r=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:this.interactionDOMElement.width,height:this.interactionDOMElement.height,left:0,top:0},n=1/this.resolution;e.x=(t-r.left)*(this.interactionDOMElement.width/r.width)*n,e.y=(i-r.top)*(this.interactionDOMElement.height/r.height)*n},_.prototype.processInteractive=function(e,t,i,r){var t=this.search.findHit(e,t,i,r),n=this.delayedEvents;if(n.length){e.stopPropagationHint=!1;var s=n.length;this.delayedEvents=[];for(var o=0;o<s;o++){var a=n[o],l=a.displayObject,u=a.eventString,a=a.eventData;a.stopsPropagatingAt===l&&(a.stopPropagationHint=!0),this.dispatchEvent(l,u,a)}}return t},_.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType)for(var t=this.normalizeToPointerData(e),i=(!this.autoPreventDefault||!t[0].isNormalized||!e.cancelable&&"cancelable"in e||e.preventDefault(),t.length),r=0;r<i;r++){var n=t[r],s=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,s);s.data.originalEvent=e,this.processInteractive(s,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",s),"touch"===n.pointerType?this.emit("touchstart",s):"mouse"!==n.pointerType&&"pen"!==n.pointerType||(s=2===n.button,this.emit(s?"rightdown":"mousedown",this.eventData))}},_.prototype.processPointerDown=function(e,t,i){var r=e.data,n=e.data.identifier;i&&(t.trackedPointers[n]||(t.trackedPointers[n]=new Ho(n)),this.dispatchEvent(t,"pointerdown",e),"touch"===r.pointerType?this.dispatchEvent(t,"touchstart",e):"mouse"!==r.pointerType&&"pen"!==r.pointerType||((i=2===r.button)?t.trackedPointers[n].rightDown=!0:t.trackedPointers[n].leftDown=!0,this.dispatchEvent(t,i?"rightdown":"mousedown",e)))},_.prototype.onPointerComplete=function(e,t,i){for(var r=this.normalizeToPointerData(e),n=r.length,s=e.target,o=(s=e.composedPath&&0<e.composedPath().length?e.composedPath()[0]:s)!==this.interactionDOMElement?"outside":"",a=0;a<n;a++){var l,u=r[a],h=this.getInteractionDataForPointerId(u),h=this.configureInteractionEventForDOMEvent(this.eventData,u,h);h.data.originalEvent=e,this.processInteractive(h,this.lastObjectRendered,i,t||!o),this.emit(t?"pointercancel":"pointerup"+o,h),"mouse"===u.pointerType||"pen"===u.pointerType?(l=2===u.button,this.emit(l?"rightup"+o:"mouseup"+o,h)):"touch"===u.pointerType&&(this.emit(t?"touchcancel":"touchend"+o,h),this.releaseInteractionDataForPointerId(u.pointerId))}},_.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!0,this.processPointerCancel)},_.prototype.processPointerCancel=function(e,t){var i=e.data,r=e.data.identifier;void 0!==t.trackedPointers[r]&&(delete t.trackedPointers[r],this.dispatchEvent(t,"pointercancel",e),"touch"===i.pointerType&&this.dispatchEvent(t,"touchcancel",e))},_.prototype.onPointerUp=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!1,this.processPointerUp)},_.prototype.processPointerUp=function(e,t,i){var r,n=e.data,s=e.data.identifier,o=t.trackedPointers[s],a="touch"===n.pointerType,l="mouse"===n.pointerType||"pen"===n.pointerType,u=!1;l&&(n=2===n.button,r=Ho.FLAGS,r=n?r.RIGHT_DOWN:r.LEFT_DOWN,r=void 0!==o&&o.flags&r,i?(this.dispatchEvent(t,n?"rightup":"mouseup",e),r&&(this.dispatchEvent(t,n?"rightclick":"click",e),u=!0)):r&&this.dispatchEvent(t,n?"rightupoutside":"mouseupoutside",e),o&&(n?o.rightDown=!1:o.leftDown=!1)),i?(this.dispatchEvent(t,"pointerup",e),a&&this.dispatchEvent(t,"touchend",e),o&&(l&&!u||this.dispatchEvent(t,"pointertap",e),a&&(this.dispatchEvent(t,"tap",e),o.over=!1))):o&&(this.dispatchEvent(t,"pointerupoutside",e),a&&this.dispatchEvent(t,"touchendoutside",e)),o&&o.none&&delete t.trackedPointers[s]},_.prototype.onPointerMove=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){for(var t=this.normalizeToPointerData(e),i=("mouse"!==t[0].pointerType&&"pen"!==t[0].pointerType||(this._didMove=!0,this.cursor=null),t.length),r=0;r<i;r++){var n=t[r],s=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,s);s.data.originalEvent=e,this.processInteractive(s,this.lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",s),"touch"===n.pointerType&&this.emit("touchmove",s),"mouse"!==n.pointerType&&"pen"!==n.pointerType||this.emit("mousemove",s)}"mouse"===t[0].pointerType&&this.setCursorMode(this.cursor)}},_.prototype.processPointerMove=function(e,t,i){var r=e.data,n="touch"===r.pointerType,r="mouse"===r.pointerType||"pen"===r.pointerType;r&&this.processPointerOverOut(e,t,i),this.moveWhenInside&&!i||(this.dispatchEvent(t,"pointermove",e),n&&this.dispatchEvent(t,"touchmove",e),r&&this.dispatchEvent(t,"mousemove",e))},_.prototype.onPointerOut=function(e){var t,i;this.supportsTouchEvents&&"touch"===e.pointerType||("mouse"===(e=this.normalizeToPointerData(e)[0]).pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null)),t=this.getInteractionDataForPointerId(e),(i=this.configureInteractionEventForDOMEvent(this.eventData,e,t)).data.originalEvent=e,this.processInteractive(i,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",i),"mouse"===e.pointerType||"pen"===e.pointerType?this.emit("mouseout",i):this.releaseInteractionDataForPointerId(t.identifier))},_.prototype.processPointerOverOut=function(e,t,i){var r=e.data,n=e.data.identifier,r="mouse"===r.pointerType||"pen"===r.pointerType,s=t.trackedPointers[n];void 0!==(s=i&&!s?t.trackedPointers[n]=new Ho(n):s)&&(i&&this.mouseOverRenderer?(s.over||(s.over=!0,this.delayDispatchEvent(t,"pointerover",e),r&&this.delayDispatchEvent(t,"mouseover",e)),r&&null===this.cursor&&(this.cursor=t.cursor)):s.over&&(s.over=!1,this.dispatchEvent(t,"pointerout",this.eventData),r&&this.dispatchEvent(t,"mouseout",e),s.none&&delete t.trackedPointers[n]))},_.prototype.onPointerOver=function(e){var t;this.supportsTouchEvents&&"touch"===e.pointerType||(e=this.normalizeToPointerData(e)[0],t=this.getInteractionDataForPointerId(e),"mouse"===((t=this.configureInteractionEventForDOMEvent(this.eventData,e,t)).data.originalEvent=e).pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",t),"mouse"!==e.pointerType&&"pen"!==e.pointerType||this.emit("mouseover",t))},_.prototype.getInteractionDataForPointerId=function(e){var t,i=e.pointerId;return 1===i||"mouse"===e.pointerType?t=this.mouse:this.activeInteractionData[i]?t=this.activeInteractionData[i]:((t=this.interactionDataPool.pop()||new Bo).identifier=i,this.activeInteractionData[i]=t),t.copyEvent(e),t},_.prototype.releaseInteractionDataForPointerId=function(e){var t=this.activeInteractionData[e];t&&(delete this.activeInteractionData[e],t.reset(),this.interactionDataPool.push(t))},_.prototype.configureInteractionEventForDOMEvent=function(e,t,i){return e.data=i,this.mapPositionToPoint(i.global,t.clientX,t.clientY),"touch"===t.pointerType&&(t.globalX=i.global.x,t.globalY=i.global.y),i.originalEvent=t,e.reset(),e},_.prototype.normalizeToPointerData=function(e){var t,i=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var r=0,n=e.changedTouches.length;r<n;r++){var s=e.changedTouches[r];void 0===s.button&&(s.button=e.touches.length?1:0),void 0===s.buttons&&(s.buttons=e.touches.length?1:0),void 0===s.isPrimary&&(s.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===s.width&&(s.width=s.radiusX||1),void 0===s.height&&(s.height=s.radiusY||1),void 0===s.tiltX&&(s.tiltX=0),void 0===s.tiltY&&(s.tiltY=0),void 0===s.pointerType&&(s.pointerType="touch"),void 0===s.pointerId&&(s.pointerId=s.identifier||0),void 0===s.pressure&&(s.pressure=s.force||.5),void 0===s.twist&&(s.twist=0),void 0===s.tangentialPressure&&(s.tangentialPressure=0),void 0===s.layerX&&(s.layerX=s.offsetX=s.clientX),void 0===s.layerY&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=!0,i.push(s)}else!globalThis.MouseEvent||e instanceof MouseEvent&&!(this.supportsPointerEvents&&e instanceof globalThis.PointerEvent)?(void 0===(t=e).isPrimary&&(t.isPrimary=!0),void 0===t.width&&(t.width=1),void 0===t.height&&(t.height=1),void 0===t.tiltX&&(t.tiltX=0),void 0===t.tiltY&&(t.tiltY=0),void 0===t.pointerType&&(t.pointerType="mouse"),void 0===t.pointerId&&(t.pointerId=1),void 0===t.pressure&&(t.pressure=.5),void 0===t.twist&&(t.twist=0),void 0===t.tangentialPressure&&(t.tangentialPressure=0),t.isNormalized=!0,i.push(t)):i.push(e);return i},_.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},_.extension={name:"interaction",type:[$.ExtensionType.RendererPlugin,$.ExtensionType.CanvasRendererPlugin]},_);function Jo(){this.constructor=Ko}function _(e,t){var i=qo.call(this)||this;return t=t||{},i.renderer=e,i.autoPreventDefault=void 0===t.autoPreventDefault||t.autoPreventDefault,i.interactionFrequency=t.interactionFrequency||10,i.mouse=new Bo,i.mouse.identifier=1,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[1]=i.mouse,i.interactionDataPool=[],i.eventData=new Go,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new Wo,i._tempDisplayObject=new Di,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=void 0===t.useSystemTicker||t.useSystemTicker,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}var Qo=new w,s=($o.prototype.image=function(e,t,i){var r=new Image;return r.src=this.base64(e,t,i),r},$o.prototype.base64=function(e,t,i){return this.canvas(e).toDataURL(t,i)},$o.prototype.canvas=function(e,t){var i,r,n=this.renderer,s=!1,o=!1,e=(e&&(e instanceof Gr?i=e:(i=this.renderer.generateTexture(e),o=!0)),i?(r=i.baseTexture.resolution,t=null!=t?t:i.frame,s=!1,n.renderTexture.bind(i)):(r=n.resolution,t||((t=Qo).width=n.width,t.height=n.height),s=!0,n.renderTexture.bind(null)),Math.round(t.width*r)),a=Math.round(t.height*r),l=new Ft(e,a,1),u=new Uint8Array(4*e*a),n=n.gl,t=(n.readPixels(Math.round(t.x*r),Math.round(t.y*r),e,a,n.RGBA,n.UNSIGNED_BYTE,u),l.context.getImageData(0,0,e,a));return $o.arrayPostDivide(u,t.data),l.context.putImageData(t,0,0),s&&((r=new Ft(l.width,l.height,1)).context.scale(1,-1),r.context.drawImage(l.canvas,0,-a),l.destroy(),l=r),o&&i.destroy(!0),l.canvas},$o.prototype.pixels=function(e,t){var i,r,n=this.renderer,s=!1,e=(e&&(e instanceof Gr?r=e:(r=this.renderer.generateTexture(e),s=!0)),r?(i=r.baseTexture.resolution,t=null!=t?t:r.frame,n.renderTexture.bind(r)):(i=n.resolution,t||((t=Qo).width=n.width,t.height=n.height),n.renderTexture.bind(null)),Math.round(t.width*i)),o=Math.round(t.height*i),a=new Uint8Array(4*e*o),n=n.gl;return n.readPixels(Math.round(t.x*i),Math.round(t.y*i),e,o,n.RGBA,n.UNSIGNED_BYTE,a),s&&r.destroy(!0),$o.arrayPostDivide(a,a),a},$o.prototype.destroy=function(){this.renderer=null},$o.arrayPostDivide=function(e,t){for(var i=0;i<e.length;i+=4){var r=t[i+3]=e[i+3];0!==r?(t[i]=Math.round(Math.min(255*e[i]/r,255)),t[i+1]=Math.round(Math.min(255*e[i+1]/r,255)),t[i+2]=Math.round(Math.min(255*e[i+2]/r,255))):(t[i]=e[i],t[i+1]=e[i+1],t[i+2]=e[i+2])}},$o.extension={name:"extract",type:$.ExtensionType.RendererPlugin},$o);function $o(e){this.renderer=e}ta.prototype.detach=function(){return null!==this._owner&&(this._owner.detach(this),!0)};var ea=ta;function ta(e,t,i){void 0===t&&(t=!1),this._fn=e,this._once=t,this._thisArg=i,this._next=this._prev=this._owner=null}function ia(e,t){return e._head?(e._tail._next=t)._prev=e._tail:e._head=t,(e._tail=t)._owner=e,t}sa.prototype.handlers=function(e){var t=this._head;if(e=void 0===e?!1:e)return!!t;for(var i=[];t;)i.push(t),t=t._next;return i},sa.prototype.has=function(e){if(e instanceof ea)return e._owner===this;throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.")},sa.prototype.dispatch=function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];var r=this._head;if(!r)return!1;for(;r;)r._once&&this.detach(r),r._fn.apply(r._thisArg,t),r=r._next;return!0},sa.prototype.add=function(e,t){if(void 0===t&&(t=null),"function"!=typeof e)throw new Error("MiniSignal#add(): First arg must be a Function.");return ia(this,new ea(e,!1,t))},sa.prototype.once=function(e,t){if(void 0===t&&(t=null),"function"!=typeof e)throw new Error("MiniSignal#once(): First arg must be a Function.");return ia(this,new ea(e,!0,t))},sa.prototype.detach=function(e){if(e instanceof ea)return e._owner===this&&(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,null===e._next&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null),this;throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.")},sa.prototype.detachAll=function(){var e=this._head;if(e)for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this};var ra,na=sa;function sa(){this._head=this._tail=void 0}function oa(e,t){for(var r={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=r.parser[(t=t||{}).strictMode?"strict":"loose"].exec(e),n={},s=14;s--;)n[r.key[s]]=i[s]||"";return n[r.q.name]={},n[r.key[12]].replace(r.q.parser,function(e,t,i){t&&(n[r.q.name][t]=i)}),n}var aa=null;function la(){}function ua(e,t,i){(t=t&&0===t.indexOf(".")?t.substring(1):t)&&(e[t]=i)}function ha(e){return e.toString().replace("object ","")}function g(e,t,i){if(this._dequeue=la,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,"string"!=typeof e||"string"!=typeof t)throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(g.STATUS_FLAGS.DATA_URL,0===t.indexOf("data:")),this.name=e,this.url=t,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===i.crossOrigin?"anonymous":i.crossOrigin,this.timeout=i.timeout||0,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=g.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=la,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new na,this.onProgress=new na,this.onComplete=new na,this.onAfterMiddleware=new na}function ca(){}$.LoaderResource=(g.setExtensionLoadType=function(e,t){ua(g._loadTypeMap,e,t)},g.setExtensionXhrType=function(e,t){ua(g._xhrTypeMap,e,t)},Object.defineProperty(g.prototype,"isDataUrl",{get:function(){return this._hasFlag(g.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isComplete",{get:function(){return this._hasFlag(g.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isLoading",{get:function(){return this._hasFlag(g.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),g.prototype.complete=function(){this._clearEvents(),this._finish()},g.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=g.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},g.prototype.load=function(e){var t=this;if(!this.isLoading)if(this.isComplete)e&&setTimeout(function(){return e(t)},1);else switch(e&&this.onComplete.once(e),this._setFlag(g.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case g.LOAD_TYPE.IMAGE:this.type=g.TYPE.IMAGE,this._loadElement("image");break;case g.LOAD_TYPE.AUDIO:this.type=g.TYPE.AUDIO,this._loadSourceElement("audio");break;case g.LOAD_TYPE.VIDEO:this.type=g.TYPE.VIDEO,this._loadSourceElement("video");break;default:g.LOAD_TYPE.XHR;(ra=void 0===ra?!(!globalThis.XDomainRequest||"withCredentials"in new XMLHttpRequest):ra)&&this.crossOrigin?this._loadXdr():this._loadXhr()}},g.prototype._hasFlag=function(e){return 0!=(this._flags&e)},g.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},g.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},g.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(g.STATUS_FLAGS.COMPLETE,!0),this._setFlag(g.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},g.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===e&&void 0!==globalThis.Image?this.data=new Image:this.data=document.createElement(e),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},g.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===e&&void 0!==globalThis.Audio?this.data=new Audio:this.data=document.createElement(e),null===this.data)this.abort("Unsupported element: "+e);else{if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var t=this.metadata.mimeType,i=0;i<this.url.length;++i)this.data.appendChild(this._createSource(e,this.url[i],Array.isArray(t)?t[i]:t));else{t=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(t)?t[0]:t))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))}},g.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;"use-credentials"===this.crossOrigin&&(e.withCredentials=!0),e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===g.XHR_RESPONSE_TYPE.JSON||this.xhrType===g.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=g.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("timeout",this._boundXhrOnTimeout,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},g.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new globalThis.XDomainRequest;e.timeout=this.timeout||5e3,e.onerror=this._boundXhrOnError,e.ontimeout=this._boundXhrOnTimeout,e.onprogress=this._boundOnProgress,e.onload=this._boundXhrOnLoad,e.open("GET",this.url,!0),setTimeout(function(){return e.send()},1)},g.prototype._createSource=function(e,t,i){i=i||e+"/"+this._getExtension(t);e=document.createElement("source");return e.src=t,e.type=i,e},g.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},g.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},g.prototype._onTimeout=function(){this.abort("Load timed out.")},g.prototype._xhrOnError=function(){var e=this.xhr;this.abort(ha(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},g.prototype._xhrOnTimeout=function(){var e=this.xhr;this.abort(ha(e)+" Request timed out.")},g.prototype._xhrOnAbort=function(){var e=this.xhr;this.abort(ha(e)+" Request was aborted by the user.")},g.prototype._xhrOnLoad=function(){var e,t,i=this.xhr,r="",n=void 0===i.status?200:i.status;if(""!==i.responseType&&"text"!==i.responseType&&void 0!==i.responseType||(r=i.responseText),0===n&&(0<r.length||i.responseType===g.XHR_RESPONSE_TYPE.BUFFER)?n=200:1223===n&&(n=204),2!=(n/100|0))this.abort("["+i.status+"] "+i.statusText+": "+i.responseURL);else{if(this.xhrType===g.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=g.TYPE.TEXT;else if(this.xhrType===g.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=g.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===g.XHR_RESPONSE_TYPE.DOCUMENT)try{globalThis.DOMParser?(e=new DOMParser,this.data=e.parseFromString(r,"text/xml")):((t=document.createElement("div")).innerHTML=r,this.data=t),this.type=g.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=i.response||r;this.complete()}},g.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";t=t||globalThis.location,(aa=aa||document.createElement("a")).href=e;var e=oa(aa.href,{strictMode:!0}),i=!e.port&&""===t.port||e.port===t.port,r=e.protocol?e.protocol+":":"";return e.host===t.hostname&&i&&r===t.protocol?"":"anonymous"},g.prototype._determineXhrType=function(){return g._xhrTypeMap[this.extension]||g.XHR_RESPONSE_TYPE.TEXT},g.prototype._determineLoadType=function(){return g._loadTypeMap[this.extension]||g.LOAD_TYPE.XHR},g.prototype._getExtension=function(e){void 0===e&&(e=this.url);var t,i;return(this.isDataUrl?(i=e.indexOf("/"),e.substring(i+1,e.indexOf(";",i))):(i=e.indexOf("?"),t=e.indexOf("#"),i=Math.min(-1<i?i:e.length,-1<t?t:e.length),(e=e.substring(0,i)).substring(e.lastIndexOf(".")+1))).toLowerCase()},g.prototype._getMimeFromXhrType=function(e){switch(e){case g.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case g.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case g.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case g.XHR_RESPONSE_TYPE.JSON:return"application/json";case g.XHR_RESPONSE_TYPE.DEFAULT:case g.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},g),o=$.LoaderResource||($.LoaderResource={}),(t=o.STATUS_FLAGS||(o.STATUS_FLAGS={}))[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING",(t=o.TYPE||(o.TYPE={}))[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT",(t=o.LOAD_TYPE||(o.LOAD_TYPE={}))[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO",(t=o.XHR_RESPONSE_TYPE||(o.XHR_RESPONSE_TYPE={})).DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text",o._loadTypeMap={gif:o.LOAD_TYPE.IMAGE,png:o.LOAD_TYPE.IMAGE,bmp:o.LOAD_TYPE.IMAGE,jpg:o.LOAD_TYPE.IMAGE,jpeg:o.LOAD_TYPE.IMAGE,tif:o.LOAD_TYPE.IMAGE,tiff:o.LOAD_TYPE.IMAGE,webp:o.LOAD_TYPE.IMAGE,tga:o.LOAD_TYPE.IMAGE,svg:o.LOAD_TYPE.IMAGE,"svg+xml":o.LOAD_TYPE.IMAGE,mp3:o.LOAD_TYPE.AUDIO,ogg:o.LOAD_TYPE.AUDIO,wav:o.LOAD_TYPE.AUDIO,mp4:o.LOAD_TYPE.VIDEO,webm:o.LOAD_TYPE.VIDEO},o._xhrTypeMap={xhtml:o.XHR_RESPONSE_TYPE.DOCUMENT,html:o.XHR_RESPONSE_TYPE.DOCUMENT,htm:o.XHR_RESPONSE_TYPE.DOCUMENT,xml:o.XHR_RESPONSE_TYPE.DOCUMENT,tmx:o.XHR_RESPONSE_TYPE.DOCUMENT,svg:o.XHR_RESPONSE_TYPE.DOCUMENT,tsx:o.XHR_RESPONSE_TYPE.DOCUMENT,gif:o.XHR_RESPONSE_TYPE.BLOB,png:o.XHR_RESPONSE_TYPE.BLOB,bmp:o.XHR_RESPONSE_TYPE.BLOB,jpg:o.XHR_RESPONSE_TYPE.BLOB,jpeg:o.XHR_RESPONSE_TYPE.BLOB,tif:o.XHR_RESPONSE_TYPE.BLOB,tiff:o.XHR_RESPONSE_TYPE.BLOB,webp:o.XHR_RESPONSE_TYPE.BLOB,tga:o.XHR_RESPONSE_TYPE.BLOB,json:o.XHR_RESPONSE_TYPE.JSON,text:o.XHR_RESPONSE_TYPE.TEXT,txt:o.XHR_RESPONSE_TYPE.TEXT,ttf:o.XHR_RESPONSE_TYPE.BUFFER,otf:o.XHR_RESPONSE_TYPE.BUFFER},o.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var pa=function(e,t){this.data=e,this.callback=t},da=(fa.prototype._next=function(r){var n=this;return function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];--n.workers,r.callback.apply(r,t),null!=t[0]&&n.error(t[0],r.data),n.workers<=n.concurrency-n.buffer&&n.unsaturated(),n.idle()&&n.drain(),n.process()}},fa.prototype.push=function(e,t){this._insert(e,!1,t)},fa.prototype.kill=function(){this.workers=0,this.drain=ca,this.started=!1,this._tasks=[]},fa.prototype.unshift=function(e,t){this._insert(e,!0,t)},fa.prototype.length=function(){return this._tasks.length},fa.prototype.running=function(){return this.workers},fa.prototype.idle=function(){return this._tasks.length+this.workers===0},fa.prototype.pause=function(){!0!==this.paused&&(this.paused=!0)},fa.prototype.resume=function(){if(!1!==this.paused){this.paused=!1;for(var e=1;e<=this.concurrency;e++)this.process()}},fa.eachSeries=function(i,r,n,s){var o=0,a=i.length;!function e(t){t||o===a?n&&n(t):s?setTimeout(function(){r(i[o++],e)},1):r(i[o++],e)}()},fa.queue=function(e,t){return new fa(e,t)},fa);function fa(e,t){var r=this;if(void 0===t&&(t=1),this.workers=0,this.saturated=ca,this.unsaturated=ca,this.empty=ca,this.drain=ca,this.error=ca,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(e,t,i){if(i&&"function"!=typeof i)throw new Error("task callback must be a function");r.started=!0,null==e&&r.idle()?setTimeout(function(){return r.drain()},1):(e=new pa(e,"function"==typeof i?i:ca),t?r._tasks.unshift(e):r._tasks.push(e),setTimeout(r.process,1))},this.process=function(){for(;!r.paused&&r.workers<r.concurrency&&r._tasks.length;){var e=r._tasks.shift();0===r._tasks.length&&r.empty(),r.workers+=1,r.workers===r.concurrency&&r.saturated(),r._worker(e.data,function(n){return function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];if(null===n)throw new Error("Callback was already called.");var r=n;n=null,r.apply(this,t)}}(r._next(e)))}},this._worker=e,0===t)throw new Error("Concurrency must not be zero");this.concurrency=t,this.buffer=t/4}var ma=/(#[\w-]+)?$/,_a=(ga.prototype._add=function(e,t,i,r){if(this.loading&&(!i||!i.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[e])throw new Error('Resource named "'+e+'" already exists.');if(t=this._prepareUrl(t),this.resources[e]=new $.LoaderResource(e,t,i),"function"==typeof r&&this.resources[e].onAfterMiddleware.once(r),this.loading){for(var n=i.parentResource,s=[],o=0;o<n.children.length;++o)n.children[o].isComplete||s.push(n.children[o]);var a=n.progressChunk*(s.length+1)/(s.length+2);n.children.push(this.resources[e]),n.progressChunk=a;for(o=0;o<s.length;++o)s[o].progressChunk=a;this.resources[e].progressChunk=a}return this._queue.push(this.resources[e]),this},ga.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},ga.prototype.use=function(e){return this._afterMiddleware.push(e),this},ga.prototype.reset=function(){for(var e in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){e=this.resources[e];e._onLoadBinding&&e._onLoadBinding.detach(),e.isLoading&&e.abort("loader reset")}return this.resources={},this},ga.prototype.load=function(e){if(Mt("6.5.0","@pixi/loaders is being replaced with @pixi/assets in the next major release."),"function"==typeof e&&this.onComplete.once(e),!this.loading)if(this._queue.idle())this._onStart(),this._onComplete();else{for(var t=100/this._queue._tasks.length,i=0;i<this._queue._tasks.length;++i)this._queue._tasks[i].data.progressChunk=t;this._onStart(),this._queue.resume()}return this},Object.defineProperty(ga.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e},enumerable:!1,configurable:!0}),ga.prototype._prepareUrl=function(e){var t=oa(e,{strictMode:!0});return t=t.protocol||!t.path||0===e.indexOf("//")?e:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==e.charAt(0)?this.baseUrl+"/"+e:this.baseUrl+e,this.defaultQueryString&&(e=ma.exec(t)[0],-1!==(t=t.slice(0,t.length-e.length)).indexOf("?")?t+="&"+this.defaultQueryString:t+="?"+this.defaultQueryString,t+=e),t},ga.prototype._loadResource=function(i,e){var r=this;i._dequeue=e,da.eachSeries(this._beforeMiddleware,function(e,t){e.call(r,i,function(){t(i.isComplete?{}:null)})},function(){i.isComplete?r._onLoad(i):(i._onLoadBinding=i.onComplete.once(r._onLoad,r),i.load())},!0)},ga.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},ga.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},ga.prototype._onLoad=function(i){var r=this;i._onLoadBinding=null,this._resourcesParsing.push(i),i._dequeue(),da.eachSeries(this._afterMiddleware,function(e,t){e.call(r,i,t)},function(){i.onAfterMiddleware.dispatch(i),r.progress=Math.min(100,r.progress+i.progressChunk),r.onProgress.dispatch(r,i),i.error?r.onError.dispatch(i.error,r,i):r.onLoad.dispatch(r,i),r._resourcesParsing.splice(r._resourcesParsing.indexOf(i),1),r._queue.idle()&&0===r._resourcesParsing.length&&r._onComplete()},!0)},ga.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(ga,"shared",{get:function(){var e=ga._shared;return e||((e=new ga)._protected=!0,ga._shared=e),e},enumerable:!1,configurable:!0}),ga.registerPlugin=function(e){return Mt("6.5.0","Loader.registerPlugin() is deprecated, use extensions.add() instead."),ji.add({type:$.ExtensionType.Loader,ref:e}),ga},ga._plugins=[],ga);function ga(e,t){var i=this;void 0===e&&(e=""),void 0===t&&(t=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,t){return i._loadResource(e,t)},this.resources={},this.baseUrl=e,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,t){return i._loadResource(e,t)},this._queue=da.queue(this._boundLoadResource,t),this._queue.pause(),this.resources={},this.onProgress=new na,this.onError=new na,this.onLoad=new na,this.onStart=new na,this.onComplete=new na;for(var r=0;r<ga._plugins.length;++r){var n=ga._plugins[r],s=n.pre,n=n.use;s&&this.pre(s),n&&this.use(n)}this._protected=!1}ji.handleByList($.ExtensionType.Loader,_a._plugins),_a.prototype.add=function(e,t,i,r){if(Array.isArray(e)){for(var n=0;n<e.length;++n)this.add(e[n]);return this}if("object"==typeof e&&(i=e,r=t||i.callback||i.onComplete,t=i.url,e=i.name||i.key||i.url),"string"!=typeof t&&(r=i,i=t,t=e),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");return"function"==typeof i&&(r=i,i=null),this._add(e,t,i,r)};va.init=function(e){e=Object.assign({sharedLoader:!1},e),this.loader=e.sharedLoader?_a.shared:new _a},va.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},va.extension=$.ExtensionType.Application;ie=va;function va(){}ya.add=function(){$.LoaderResource.setExtensionLoadType("svg",$.LoaderResource.LOAD_TYPE.XHR),$.LoaderResource.setExtensionXhrType("svg",$.LoaderResource.XHR_RESPONSE_TYPE.TEXT)},ya.use=function(t,i){var e,r,n,s;!t.data||t.type!==$.LoaderResource.TYPE.IMAGE&&"svg"!==t.extension?i():(e=t.data,r=t.url,n=t.name,s=t.metadata,te.fromLoader(e,r,n,s).then(function(e){t.texture=e,i()}).catch(i))},ya.extension=$.ExtensionType.Loader;se=ya;function ya(){}var ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function xa(e,t){if(e.data&&(e.xhr&&e.xhrType===$.LoaderResource.XHR_RESPONSE_TYPE.BLOB))if(self.Blob&&"string"!=typeof e.data){var i,r;if(0===e.data.type.indexOf("image"))return i=globalThis.URL||globalThis.webkitURL,r=i.createObjectURL(e.data),e.blob=e.data,e.data=new Image,e.data.src=r,e.type=$.LoaderResource.TYPE.IMAGE,void(e.data.onload=function(){i.revokeObjectURL(r),e.data.onload=null,t()})}else{var n=e.xhr.getResponseHeader("content-type");if(n&&0===n.indexOf("image"))return e.data=new Image,e.data.src="data:"+n+";base64,"+function(e){for(var t="",i=0;i<e.length;){for(var r=[0,0,0],n=[0,0,0,0],s=0;s<r.length;++s)i<e.length?r[s]=255&e.charCodeAt(i++):r[s]=0;switch(n[0]=r[0]>>2,n[1]=(3&r[0])<<4|r[1]>>4,n[2]=(15&r[1])<<2|r[2]>>6,n[3]=63&r[2],i-(e.length-1)){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64}for(s=0;s<n.length;++s)t+=ba.charAt(n[s])}return t}(e.xhr.responseText),e.type=$.LoaderResource.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}t()}function Ta(){}Ta.extension=$.ExtensionType.Loader,Ta.use=xa,ji.add(se,Ta),$.INTERNAL_FORMATS=void 0,(t=$.INTERNAL_FORMATS||($.INTERNAL_FORMATS={}))[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL";(o={})[$.INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,o[$.INTERNAL_FORMATS.COMPRESSED_R11_EAC]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RG11_EAC]=1,o[$.INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC]=1,o[$.INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC]=1,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,o[$.INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,o[$.INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL]=.5,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,o[$.INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1;var wa=o,Ea=function(e,t){return(Ea=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function Sa(e,t){function i(){this.constructor=e}Ea(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function Aa(e,o,a,l){return new(a=a||Promise)(function(i,t){function r(e){try{s(l.next(e))}catch(e){t(e)}}function n(e){try{s(l.throw(e))}catch(e){t(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(r,n)}s((l=l.apply(e,o||[])).next())})}function ka(r,n){var s,o,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(i){return function(e){var t=[i,e];if(s)throw new TypeError("Generator is already executing.");for(;l;)try{if(s=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,o=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))l.label=t[1];else if(6===t[0]&&l.label<a[1])l.label=a[1],a=t;else{if(!(a&&l.label<a[2])){a[2]&&l.ops.pop(),l.trys.pop();continue}l.label=a[2],l.ops.push(t)}}t=n.call(r,l)}catch(e){t=[6,e],o=0}finally{s=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Sa(Oa,Pa=tr),Oa.prototype.onBlobLoaded=function(e){},Oa.prototype.load=function(){return Aa(this,void 0,Promise,function(){var t;return ka(this,function(e){switch(e.label){case 0:return[4,fetch(this.origin)];case 1:return[4,e.sent().blob()];case 2:return[4,e.sent().arrayBuffer()];case 3:return t=e.sent(),this.data=new Uint32Array(t),this.buffer=new xo(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),[2,this]}})})};var Pa,t=Oa;function Oa(e,t){void 0===t&&(t={width:1,height:1,autoLoad:!0});var i,r=this,e="string"==typeof e?(i=e,new Uint8Array):(i=null,e);return(r=Pa.call(this,e,t)||this).origin=i,r.buffer=e?new xo(e):null,r.origin&&!1!==t.autoLoad&&r.load(),e&&e.length&&(r.loaded=!0,r.onBlobLoaded(r.buffer.rawBinaryData)),r}Sa(Ma,Ra=t),Ma.prototype.upload=function(e,t,i){var r=e.gl;if(!e.context.extensions[this._extension])throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var n=0,s=this.levels;n<s;n++){var o=this._levelBuffers[n],a=o.levelID,l=o.levelWidth,u=o.levelHeight,o=o.levelBuffer;r.compressedTexImage2D(r.TEXTURE_2D,a,this.format,l,u,0,o)}return!0},Ma.prototype.onBlobLoaded=function(){this._levelBuffers=Ma._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},Ma._formatToExtension=function(e){if(33776<=e&&e<=33779)return"s3tc";if(37488<=e&&e<=37497)return"etc";if(35840<=e&&e<=35843)return"pvrtc";if(36196<=e)return"etc1";if(35986<=e&&e<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},Ma._createLevelBuffers=function(e,t,i,r,n,s,o){for(var a=new Array(i),l=e.byteOffset,u=s,h=o,c=u+r-1&~(r-1),p=h+n-1&~(n-1),d=c*p*wa[t],f=0;f<i;f++)a[f]={levelID:f,levelWidth:1<i?u:c,levelHeight:1<i?h:p,levelBuffer:new Uint8Array(e.buffer,l,d)},l+=d,d=(c=(u=u>>1||1)+r-1&~(r-1))*(p=(h=h>>1||1)+n-1&~(n-1))*wa[t];return a};var Ra,Ca=Ma;function Ma(e,t){var i=Ra.call(this,e,t)||this;return i.format=t.format,i.levels=t.levels||1,i._width=t.width,i._height=t.height,i._extension=Ma._formatToExtension(i.format),(t.levelBuffers||i.buffer)&&(i._levelBuffers=t.levelBuffers||Ma._createLevelBuffers(e instanceof Uint8Array?e:i.buffer.uint8View,i.format,i.levels,4,4,i.width,i.height)),i}Ia.use=function(i,r){var e=i.data;if(i.type===$.LoaderResource.TYPE.JSON&&e&&e.cacheID&&e.textures){for(var t,n,s=e.textures,o=void 0,a=void 0,l=0,u=s.length;l<u;l++){var h=s[l],c=h.src,h=h.format;if(h||(a=c),Ia.textureFormats[h]){o=c;break}}(o=o||a)?o===i.url?r(new Error("URL of compressed texture cannot be the same as the manifest's URL")):(t={crossOrigin:i.crossOrigin,metadata:i.metadata.imageMetadata,parentResource:i},n=nt.resolve(i.url.replace(this.baseUrl,""),o),e=e.cacheID,this.add(e,n,t,function(e){var t;e.error?r(e.error):(t=e.texture,e=e.textures,Object.assign(i,{texture:void 0===t?null:t,textures:void 0===e?{}:e}),r())})):r(new Error("Cannot load compressed-textures in "+i.url+", make sure you provide a fallback"))}else r()},Object.defineProperty(Ia,"textureExtensions",{get:function(){if(!Ia._textureExtensions){var e=R.ADAPTER.createCanvas().getContext("webgl");if(!e)return console.warn("WebGL not available for compressed textures. Silently failing."),{};e={s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};Ia._textureExtensions=e}return Ia._textureExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(Ia,"textureFormats",{get:function(){if(!Ia._textureFormats){var e,t=Ia.textureExtensions;for(e in Ia._textureFormats={},t){var i=t[e];i&&Object.assign(Ia._textureFormats,Object.getPrototypeOf(i))}}return Ia._textureFormats},enumerable:!1,configurable:!0}),Ia.extension=$.ExtensionType.Loader;o=Ia;function Ia(){}function Da(n,e,t){var s={textures:{},texture:null};return e&&e.map(function(e){return new te(new C(e,Object.assign({mipmap:$.MIPMAP_MODES.OFF,alphaMode:$.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA},t)))}).forEach(function(e,t){var i=e.baseTexture,r=n+"-"+(t+1);C.addToCache(i,r),te.addToCache(e,r),0===t&&(C.addToCache(i,n),te.addToCache(e,n),s.texture=e),s.textures[r]=e}),s}var La,Fa=3,Na=4,za=7,Ba=19,Ua=2,ja=0,Ga=1,Xa=2,Ha=3,Ya=((v=pl=pl||{})[v.DXGI_FORMAT_UNKNOWN=0]="DXGI_FORMAT_UNKNOWN",v[v.DXGI_FORMAT_R32G32B32A32_TYPELESS=1]="DXGI_FORMAT_R32G32B32A32_TYPELESS",v[v.DXGI_FORMAT_R32G32B32A32_FLOAT=2]="DXGI_FORMAT_R32G32B32A32_FLOAT",v[v.DXGI_FORMAT_R32G32B32A32_UINT=3]="DXGI_FORMAT_R32G32B32A32_UINT",v[v.DXGI_FORMAT_R32G32B32A32_SINT=4]="DXGI_FORMAT_R32G32B32A32_SINT",v[v.DXGI_FORMAT_R32G32B32_TYPELESS=5]="DXGI_FORMAT_R32G32B32_TYPELESS",v[v.DXGI_FORMAT_R32G32B32_FLOAT=6]="DXGI_FORMAT_R32G32B32_FLOAT",v[v.DXGI_FORMAT_R32G32B32_UINT=7]="DXGI_FORMAT_R32G32B32_UINT",v[v.DXGI_FORMAT_R32G32B32_SINT=8]="DXGI_FORMAT_R32G32B32_SINT",v[v.DXGI_FORMAT_R16G16B16A16_TYPELESS=9]="DXGI_FORMAT_R16G16B16A16_TYPELESS",v[v.DXGI_FORMAT_R16G16B16A16_FLOAT=10]="DXGI_FORMAT_R16G16B16A16_FLOAT",v[v.DXGI_FORMAT_R16G16B16A16_UNORM=11]="DXGI_FORMAT_R16G16B16A16_UNORM",v[v.DXGI_FORMAT_R16G16B16A16_UINT=12]="DXGI_FORMAT_R16G16B16A16_UINT",v[v.DXGI_FORMAT_R16G16B16A16_SNORM=13]="DXGI_FORMAT_R16G16B16A16_SNORM",v[v.DXGI_FORMAT_R16G16B16A16_SINT=14]="DXGI_FORMAT_R16G16B16A16_SINT",v[v.DXGI_FORMAT_R32G32_TYPELESS=15]="DXGI_FORMAT_R32G32_TYPELESS",v[v.DXGI_FORMAT_R32G32_FLOAT=16]="DXGI_FORMAT_R32G32_FLOAT",v[v.DXGI_FORMAT_R32G32_UINT=17]="DXGI_FORMAT_R32G32_UINT",v[v.DXGI_FORMAT_R32G32_SINT=18]="DXGI_FORMAT_R32G32_SINT",v[v.DXGI_FORMAT_R32G8X24_TYPELESS=19]="DXGI_FORMAT_R32G8X24_TYPELESS",v[v.DXGI_FORMAT_D32_FLOAT_S8X24_UINT=20]="DXGI_FORMAT_D32_FLOAT_S8X24_UINT",v[v.DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS=21]="DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS",v[v.DXGI_FORMAT_X32_TYPELESS_G8X24_UINT=22]="DXGI_FORMAT_X32_TYPELESS_G8X24_UINT",v[v.DXGI_FORMAT_R10G10B10A2_TYPELESS=23]="DXGI_FORMAT_R10G10B10A2_TYPELESS",v[v.DXGI_FORMAT_R10G10B10A2_UNORM=24]="DXGI_FORMAT_R10G10B10A2_UNORM",v[v.DXGI_FORMAT_R10G10B10A2_UINT=25]="DXGI_FORMAT_R10G10B10A2_UINT",v[v.DXGI_FORMAT_R11G11B10_FLOAT=26]="DXGI_FORMAT_R11G11B10_FLOAT",v[v.DXGI_FORMAT_R8G8B8A8_TYPELESS=27]="DXGI_FORMAT_R8G8B8A8_TYPELESS",v[v.DXGI_FORMAT_R8G8B8A8_UNORM=28]="DXGI_FORMAT_R8G8B8A8_UNORM",v[v.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB=29]="DXGI_FORMAT_R8G8B8A8_UNORM_SRGB",v[v.DXGI_FORMAT_R8G8B8A8_UINT=30]="DXGI_FORMAT_R8G8B8A8_UINT",v[v.DXGI_FORMAT_R8G8B8A8_SNORM=31]="DXGI_FORMAT_R8G8B8A8_SNORM",v[v.DXGI_FORMAT_R8G8B8A8_SINT=32]="DXGI_FORMAT_R8G8B8A8_SINT",v[v.DXGI_FORMAT_R16G16_TYPELESS=33]="DXGI_FORMAT_R16G16_TYPELESS",v[v.DXGI_FORMAT_R16G16_FLOAT=34]="DXGI_FORMAT_R16G16_FLOAT",v[v.DXGI_FORMAT_R16G16_UNORM=35]="DXGI_FORMAT_R16G16_UNORM",v[v.DXGI_FORMAT_R16G16_UINT=36]="DXGI_FORMAT_R16G16_UINT",v[v.DXGI_FORMAT_R16G16_SNORM=37]="DXGI_FORMAT_R16G16_SNORM",v[v.DXGI_FORMAT_R16G16_SINT=38]="DXGI_FORMAT_R16G16_SINT",v[v.DXGI_FORMAT_R32_TYPELESS=39]="DXGI_FORMAT_R32_TYPELESS",v[v.DXGI_FORMAT_D32_FLOAT=40]="DXGI_FORMAT_D32_FLOAT",v[v.DXGI_FORMAT_R32_FLOAT=41]="DXGI_FORMAT_R32_FLOAT",v[v.DXGI_FORMAT_R32_UINT=42]="DXGI_FORMAT_R32_UINT",v[v.DXGI_FORMAT_R32_SINT=43]="DXGI_FORMAT_R32_SINT",v[v.DXGI_FORMAT_R24G8_TYPELESS=44]="DXGI_FORMAT_R24G8_TYPELESS",v[v.DXGI_FORMAT_D24_UNORM_S8_UINT=45]="DXGI_FORMAT_D24_UNORM_S8_UINT",v[v.DXGI_FORMAT_R24_UNORM_X8_TYPELESS=46]="DXGI_FORMAT_R24_UNORM_X8_TYPELESS",v[v.DXGI_FORMAT_X24_TYPELESS_G8_UINT=47]="DXGI_FORMAT_X24_TYPELESS_G8_UINT",v[v.DXGI_FORMAT_R8G8_TYPELESS=48]="DXGI_FORMAT_R8G8_TYPELESS",v[v.DXGI_FORMAT_R8G8_UNORM=49]="DXGI_FORMAT_R8G8_UNORM",v[v.DXGI_FORMAT_R8G8_UINT=50]="DXGI_FORMAT_R8G8_UINT",v[v.DXGI_FORMAT_R8G8_SNORM=51]="DXGI_FORMAT_R8G8_SNORM",v[v.DXGI_FORMAT_R8G8_SINT=52]="DXGI_FORMAT_R8G8_SINT",v[v.DXGI_FORMAT_R16_TYPELESS=53]="DXGI_FORMAT_R16_TYPELESS",v[v.DXGI_FORMAT_R16_FLOAT=54]="DXGI_FORMAT_R16_FLOAT",v[v.DXGI_FORMAT_D16_UNORM=55]="DXGI_FORMAT_D16_UNORM",v[v.DXGI_FORMAT_R16_UNORM=56]="DXGI_FORMAT_R16_UNORM",v[v.DXGI_FORMAT_R16_UINT=57]="DXGI_FORMAT_R16_UINT",v[v.DXGI_FORMAT_R16_SNORM=58]="DXGI_FORMAT_R16_SNORM",v[v.DXGI_FORMAT_R16_SINT=59]="DXGI_FORMAT_R16_SINT",v[v.DXGI_FORMAT_R8_TYPELESS=60]="DXGI_FORMAT_R8_TYPELESS",v[v.DXGI_FORMAT_R8_UNORM=61]="DXGI_FORMAT_R8_UNORM",v[v.DXGI_FORMAT_R8_UINT=62]="DXGI_FORMAT_R8_UINT",v[v.DXGI_FORMAT_R8_SNORM=63]="DXGI_FORMAT_R8_SNORM",v[v.DXGI_FORMAT_R8_SINT=64]="DXGI_FORMAT_R8_SINT",v[v.DXGI_FORMAT_A8_UNORM=65]="DXGI_FORMAT_A8_UNORM",v[v.DXGI_FORMAT_R1_UNORM=66]="DXGI_FORMAT_R1_UNORM",v[v.DXGI_FORMAT_R9G9B9E5_SHAREDEXP=67]="DXGI_FORMAT_R9G9B9E5_SHAREDEXP",v[v.DXGI_FORMAT_R8G8_B8G8_UNORM=68]="DXGI_FORMAT_R8G8_B8G8_UNORM",v[v.DXGI_FORMAT_G8R8_G8B8_UNORM=69]="DXGI_FORMAT_G8R8_G8B8_UNORM",v[v.DXGI_FORMAT_BC1_TYPELESS=70]="DXGI_FORMAT_BC1_TYPELESS",v[v.DXGI_FORMAT_BC1_UNORM=71]="DXGI_FORMAT_BC1_UNORM",v[v.DXGI_FORMAT_BC1_UNORM_SRGB=72]="DXGI_FORMAT_BC1_UNORM_SRGB",v[v.DXGI_FORMAT_BC2_TYPELESS=73]="DXGI_FORMAT_BC2_TYPELESS",v[v.DXGI_FORMAT_BC2_UNORM=74]="DXGI_FORMAT_BC2_UNORM",v[v.DXGI_FORMAT_BC2_UNORM_SRGB=75]="DXGI_FORMAT_BC2_UNORM_SRGB",v[v.DXGI_FORMAT_BC3_TYPELESS=76]="DXGI_FORMAT_BC3_TYPELESS",v[v.DXGI_FORMAT_BC3_UNORM=77]="DXGI_FORMAT_BC3_UNORM",v[v.DXGI_FORMAT_BC3_UNORM_SRGB=78]="DXGI_FORMAT_BC3_UNORM_SRGB",v[v.DXGI_FORMAT_BC4_TYPELESS=79]="DXGI_FORMAT_BC4_TYPELESS",v[v.DXGI_FORMAT_BC4_UNORM=80]="DXGI_FORMAT_BC4_UNORM",v[v.DXGI_FORMAT_BC4_SNORM=81]="DXGI_FORMAT_BC4_SNORM",v[v.DXGI_FORMAT_BC5_TYPELESS=82]="DXGI_FORMAT_BC5_TYPELESS",v[v.DXGI_FORMAT_BC5_UNORM=83]="DXGI_FORMAT_BC5_UNORM",v[v.DXGI_FORMAT_BC5_SNORM=84]="DXGI_FORMAT_BC5_SNORM",v[v.DXGI_FORMAT_B5G6R5_UNORM=85]="DXGI_FORMAT_B5G6R5_UNORM",v[v.DXGI_FORMAT_B5G5R5A1_UNORM=86]="DXGI_FORMAT_B5G5R5A1_UNORM",v[v.DXGI_FORMAT_B8G8R8A8_UNORM=87]="DXGI_FORMAT_B8G8R8A8_UNORM",v[v.DXGI_FORMAT_B8G8R8X8_UNORM=88]="DXGI_FORMAT_B8G8R8X8_UNORM",v[v.DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM=89]="DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM",v[v.DXGI_FORMAT_B8G8R8A8_TYPELESS=90]="DXGI_FORMAT_B8G8R8A8_TYPELESS",v[v.DXGI_FORMAT_B8G8R8A8_UNORM_SRGB=91]="DXGI_FORMAT_B8G8R8A8_UNORM_SRGB",v[v.DXGI_FORMAT_B8G8R8X8_TYPELESS=92]="DXGI_FORMAT_B8G8R8X8_TYPELESS",v[v.DXGI_FORMAT_B8G8R8X8_UNORM_SRGB=93]="DXGI_FORMAT_B8G8R8X8_UNORM_SRGB",v[v.DXGI_FORMAT_BC6H_TYPELESS=94]="DXGI_FORMAT_BC6H_TYPELESS",v[v.DXGI_FORMAT_BC6H_UF16=95]="DXGI_FORMAT_BC6H_UF16",v[v.DXGI_FORMAT_BC6H_SF16=96]="DXGI_FORMAT_BC6H_SF16",v[v.DXGI_FORMAT_BC7_TYPELESS=97]="DXGI_FORMAT_BC7_TYPELESS",v[v.DXGI_FORMAT_BC7_UNORM=98]="DXGI_FORMAT_BC7_UNORM",v[v.DXGI_FORMAT_BC7_UNORM_SRGB=99]="DXGI_FORMAT_BC7_UNORM_SRGB",v[v.DXGI_FORMAT_AYUV=100]="DXGI_FORMAT_AYUV",v[v.DXGI_FORMAT_Y410=101]="DXGI_FORMAT_Y410",v[v.DXGI_FORMAT_Y416=102]="DXGI_FORMAT_Y416",v[v.DXGI_FORMAT_NV12=103]="DXGI_FORMAT_NV12",v[v.DXGI_FORMAT_P010=104]="DXGI_FORMAT_P010",v[v.DXGI_FORMAT_P016=105]="DXGI_FORMAT_P016",v[v.DXGI_FORMAT_420_OPAQUE=106]="DXGI_FORMAT_420_OPAQUE",v[v.DXGI_FORMAT_YUY2=107]="DXGI_FORMAT_YUY2",v[v.DXGI_FORMAT_Y210=108]="DXGI_FORMAT_Y210",v[v.DXGI_FORMAT_Y216=109]="DXGI_FORMAT_Y216",v[v.DXGI_FORMAT_NV11=110]="DXGI_FORMAT_NV11",v[v.DXGI_FORMAT_AI44=111]="DXGI_FORMAT_AI44",v[v.DXGI_FORMAT_IA44=112]="DXGI_FORMAT_IA44",v[v.DXGI_FORMAT_P8=113]="DXGI_FORMAT_P8",v[v.DXGI_FORMAT_A8P8=114]="DXGI_FORMAT_A8P8",v[v.DXGI_FORMAT_B4G4R4A4_UNORM=115]="DXGI_FORMAT_B4G4R4A4_UNORM",v[v.DXGI_FORMAT_P208=116]="DXGI_FORMAT_P208",v[v.DXGI_FORMAT_V208=117]="DXGI_FORMAT_V208",v[v.DXGI_FORMAT_V408=118]="DXGI_FORMAT_V408",v[v.DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE=119]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE",v[v.DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE=120]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE",v[v.DXGI_FORMAT_FORCE_UINT=121]="DXGI_FORMAT_FORCE_UINT",(v=La=La||{})[v.DDS_DIMENSION_TEXTURE1D=2]="DDS_DIMENSION_TEXTURE1D",v[v.DDS_DIMENSION_TEXTURE2D=3]="DDS_DIMENSION_TEXTURE2D",v[v.DDS_DIMENSION_TEXTURE3D=6]="DDS_DIMENSION_TEXTURE3D",(v={})[827611204]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[861165636]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[894720068]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v),Wa=((v={})[pl.DXGI_FORMAT_BC1_TYPELESS]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[pl.DXGI_FORMAT_BC1_UNORM]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT,v[pl.DXGI_FORMAT_BC2_TYPELESS]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[pl.DXGI_FORMAT_BC2_UNORM]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT,v[pl.DXGI_FORMAT_BC3_TYPELESS]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v[pl.DXGI_FORMAT_BC3_UNORM]=$.INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT,v[pl.DXGI_FORMAT_BC1_UNORM_SRGB]=$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,v[pl.DXGI_FORMAT_BC2_UNORM_SRGB]=$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,v[pl.DXGI_FORMAT_BC3_UNORM_SRGB]=$.INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,v);function Va(e){var t=new Uint32Array(e);if(542327876!==t[0])throw new Error("Invalid DDS file magic word");var i=new Uint32Array(e,0,124/Uint32Array.BYTES_PER_ELEMENT),r=i[Fa],n=i[Na],s=i[za],i=new Uint32Array(e,Ba*Uint32Array.BYTES_PER_ELEMENT,32/Uint32Array.BYTES_PER_ELEMENT),o=i[1];if(4&o){i=i[Ua];if(808540228!==i)return i=Ya[i],a=new Uint8Array(e,128),[new Ca(a,{format:i,width:n,height:r,levels:s})];var a=new Uint32Array(t.buffer,128,20/Uint32Array.BYTES_PER_ELEMENT),i=a[ja],t=a[Ga],l=a[Xa],u=a[Ha],h=Wa[i];if(void 0===h)throw new Error("DDSParser cannot parse texture data with DXGI format "+i);if(4===l)throw new Error("DDSParser does not support cubemap textures");if(t===La.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSParser does not supported 3D texture data");var c=new Array;if(1===u)c.push(new Uint8Array(e,148));else{for(var p=wa[h],d=0,f=n,m=r,_=0;_<s;_++)d+=Math.max(1,f+3&-4)*Math.max(1,m+3&-4)*p,f>>>=1,m>>>=1;for(var g=148,_=0;_<u;_++)c.push(new Uint8Array(e,g,d)),g+=d}return c.map(function(e){return new Ca(e,{format:h,width:n,height:r,levels:s})})}if(64&o)throw new Error("DDSParser does not support uncompressed texture data.");if(512&o)throw new Error("DDSParser does not supported YUV uncompressed texture data.");if(131072&o)throw new Error("DDSParser does not support single-channel (lumninance) texture data!");if(2&o)throw new Error("DDSParser does not support single-channel (alpha) texture data!");throw new Error("DDSParser failed to load a texture file due to an unknown reason!")}var qa=[171,75,84,88,32,49,49,187,13,10,26,10],Ka=12,Za=16,Ja=24,Qa=28,$a=36,el=40,tl=44,il=48,rl=52,nl=56,sl=60,ol=64,al=((pl={})[$.TYPES.UNSIGNED_BYTE]=1,pl[$.TYPES.UNSIGNED_SHORT]=2,pl[$.TYPES.INT]=4,pl[$.TYPES.UNSIGNED_INT]=4,pl[$.TYPES.FLOAT]=4,pl[$.TYPES.HALF_FLOAT]=8,pl),ll=((v={})[$.FORMATS.RGBA]=4,v[$.FORMATS.RGB]=3,v[$.FORMATS.RG]=2,v[$.FORMATS.RED]=1,v[$.FORMATS.LUMINANCE]=1,v[$.FORMATS.LUMINANCE_ALPHA]=2,v[$.FORMATS.ALPHA]=1,v),ul=((pl={})[$.TYPES.UNSIGNED_SHORT_4_4_4_4]=2,pl[$.TYPES.UNSIGNED_SHORT_5_5_5_1]=2,pl[$.TYPES.UNSIGNED_SHORT_5_6_5]=2,pl);function hl(e,t,i){void 0===i&&(i=!1);var r=new DataView(t);if(!function(e,t){for(var i=0;i<qa.length;i++)if(t.getUint8(i)!==qa[i])return void console.error(e+" is not a valid *.ktx file!");return 1}(e,r))return null;var n=67305985===r.getUint32(Ka,!0),s=r.getUint32(Za,n),o=r.getUint32(Ja,n),a=r.getUint32(Qa,n),l=r.getUint32($a,n),u=r.getUint32(el,n)||1,e=r.getUint32(tl,n)||1,h=r.getUint32(il,n)||1,c=r.getUint32(rl,n),p=r.getUint32(nl,n),d=r.getUint32(sl,n);if(0===u||1!==e)throw new Error("Only 2D textures are supported");if(1!==c)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(1!==h)throw new Error("WebGL does not support array textures");var e=l+3&-4,c=u+3&-4,f=new Array(h),m=0===s?e*c:l*u,_=0!==s?al[s]?al[s]*ll[o]:ul[s]:wa[a];if(void 0===_)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var i=i?function(e,t,i){var r=new Map,n=0;for(;n<t;){var s=e.getUint32(ol+n,i),o=ol+n+4,a=3-(s+3)%4;if(0===s||t-n<s){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var l=0;l<s&&0!==e.getUint8(o+l);l++);if(-1===l){console.error("KTXLoader: Failed to find null byte terminating kvData key");break}var u=(new TextDecoder).decode(new Uint8Array(e.buffer,o,l)),h=new DataView(e.buffer,o+l+1,s-l-1);r.set(u,h),n+=4+s+a}return r}(r,d,n):null,g=m*_,v=l,y=u,b=e,x=c,T=ol+d,w=0;w<p;w++){for(var E=r.getUint32(T,n),S=T+4,A=0;A<h;A++)(f[A]||(f[A]=new Array(p)))[w]={levelID:w,levelWidth:1<p||0!==s?v:b,levelHeight:1<p||0!==s?y:x,levelBuffer:new Uint8Array(t,S,g)},S+=g;T=(T+=E+4)%4!=0?T+4-T%4:T,g=(b=(v=v>>1||1)+4-1&-4)*(x=(y=y>>1||1)+4-1&-4)*_}return 0!==s?{uncompressed:f.map(function(e){var t=e[0].levelBuffer,i=!1;return s===$.TYPES.FLOAT?t=new Float32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4):s===$.TYPES.UNSIGNED_INT?(i=!0,t=new Uint32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)):s===$.TYPES.INT&&(i=!0,t=new Int32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)),{resource:new tr(t,{width:e[0].levelWidth,height:e[0].levelHeight}),type:s,format:i?function(e){switch(e){case $.FORMATS.RGBA:return $.FORMATS.RGBA_INTEGER;case $.FORMATS.RGB:return $.FORMATS.RGB_INTEGER;case $.FORMATS.RG:return $.FORMATS.RG_INTEGER;case $.FORMATS.RED:return $.FORMATS.RED_INTEGER;default:return e}}(o):o}}),kvData:i}:{compressed:f.map(function(e){return new Ca(null,{format:a,width:l,height:u,levels:p,levelBuffers:e})}),kvData:i}}$.LoaderResource.setExtensionXhrType("dds",$.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);cl.use=function(e,t){if("dds"===e.extension&&e.data)try{Object.assign(e,Da(e.name||e.url,Va(e.data),e.metadata))}catch(e){return void t(e)}t()},cl.extension=$.ExtensionType.Loader;var v=cl;function cl(){}$.LoaderResource.setExtensionXhrType("ktx",$.LoaderResource.XHR_RESPONSE_TYPE.BUFFER);dl.use=function(e,t){if("ktx"===e.extension&&e.data)try{var r,n=e.name||e.url,i=hl(n,e.data,this.loadKeyValueData),s=i.compressed,o=i.uncompressed,a=i.kvData;if(s){var l=Da(n,s,e.metadata);if(a&&l.textures)for(var u in l.textures)l.textures[u].baseTexture.ktxKeyValueData=a;Object.assign(e,l)}else o&&(r={},o.forEach(function(e,t){var e=new te(new C(e.resource,{mipmap:$.MIPMAP_MODES.OFF,alphaMode:$.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA,type:e.type,format:e.format})),i=n+"-"+(t+1);a&&(e.baseTexture.ktxKeyValueData=a),C.addToCache(e.baseTexture,i),te.addToCache(e,i),0===t&&(r[n]=e,C.addToCache(e.baseTexture,n),te.addToCache(e,n)),r[i]=e}),Object.assign(e,{textures:r}))}catch(e){return void t(e)}t()},dl.extension=$.ExtensionType.Loader,dl.loadKeyValueData=!1;var pl=dl;function dl(){}var fl=function(e,t){return(fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function ml(e,t){function i(){this.constructor=e}fl(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}ml(vl,_l=zi),vl.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},vl.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(vl.prototype,"tint",{get:function(){return this._tint},set:function(e){dt(this._tint=e,this.tintRgb)},enumerable:!1,configurable:!0}),vl.prototype.render=function(e){var t=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.batch.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},vl.prototype.onChildrenChange=function(e){for(var t=Math.floor(e/this._batchSize);this._bufferUpdateIDs.length<t;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[t]=++this._updateID},vl.prototype.dispose=function(){if(this._buffers){for(var e=0;e<this._buffers.length;++e)this._buffers[e].destroy();this._buffers=null}},vl.prototype.destroy=function(e){_l.prototype.destroy.call(this,e),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null};var _l,gl=vl;function vl(e,t,i,r){void 0===e&&(e=1500),void 0===i&&(i=16384),void 0===r&&(r=!1);var n=_l.call(this)||this;return 16384<i&&(i=16384),n._properties=[!1,!0,!1,!1,!1],n._maxSize=e,n._batchSize=i,n._buffers=null,n._bufferUpdateIDs=[],n._updateID=0,n.interactiveChildren=!1,n.blendMode=$.BLEND_MODES.NORMAL,n.autoResize=r,n.roundPixels=!0,n.baseTexture=null,n.setProperties(t),n._tint=0,n.tintRgb=new Float32Array(4),n.tint=16777215,n}bl.prototype.initBuffers=function(){var e=this.geometry,t=0;this.indexBuffer=new Kr(xt(this.size),!0,!0),e.addIndex(this.indexBuffer);for(var i=this.dynamicStride=0;i<this.dynamicProperties.length;++i)(s=this.dynamicProperties[i]).offset=t,t+=s.size,this.dynamicStride+=s.size;for(var r=new ArrayBuffer(this.size*this.dynamicStride*4*4),n=(this.dynamicData=new Float32Array(r),this.dynamicDataUint32=new Uint32Array(r),this.dynamicBuffer=new Kr(this.dynamicData,!1,!1),0),i=this.staticStride=0;i<this.staticProperties.length;++i)(s=this.staticProperties[i]).offset=n,n+=s.size,this.staticStride+=s.size;r=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(r),this.staticDataUint32=new Uint32Array(r),this.staticBuffer=new Kr(this.staticData,!0,!1);for(i=0;i<this.dynamicProperties.length;++i){var s=this.dynamicProperties[i];e.addAttribute(s.attributeName,this.dynamicBuffer,0,s.type===$.TYPES.UNSIGNED_BYTE,s.type,4*this.dynamicStride,4*s.offset)}for(i=0;i<this.staticProperties.length;++i){s=this.staticProperties[i];e.addAttribute(s.attributeName,this.staticBuffer,0,s.type===$.TYPES.UNSIGNED_BYTE,s.type,4*this.staticStride,4*s.offset)}},bl.prototype.uploadDynamic=function(e,t,i){for(var r=0;r<this.dynamicProperties.length;r++){var n=this.dynamicProperties[r];n.uploadFunction(e,t,i,n.type===$.TYPES.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++},bl.prototype.uploadStatic=function(e,t,i){for(var r=0;r<this.staticProperties.length;r++){var n=this.staticProperties[r];n.uploadFunction(e,t,i,n.type===$.TYPES.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer._updateID++},bl.prototype.destroy=function(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()};var yl=bl;function bl(e,t,i){this.geometry=new tn,this.indexBuffer=null,this.size=i,this.dynamicProperties=[],this.staticProperties=[];for(var r=0;r<e.length;++r){var n={attributeName:(n=e[r]).attributeName,size:n.size,uploadFunction:n.uploadFunction,type:n.type||$.TYPES.FLOAT,offset:n.offset};(t[r]?this.dynamicProperties:this.staticProperties).push(n)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}ml(wl,xl=yn),wl.prototype.render=function(e){var t=e.children,i=e._maxSize,r=e._batchSize,n=this.renderer,s=t.length;if(0!==s){i<s&&!e.autoResize&&(s=i);for(var o=(o=e._buffers)||(e._buffers=this.generateBuffers(e)),i=t[0]._texture.baseTexture,a=0<i.alphaMode,l=(this.state.blendMode=gt(e.blendMode,a),n.state.set(this.state),n.gl),u=e.worldTransform.copyTo(this.tempMatrix),h=(u.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=vt(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,a),this.shader.uniforms.uSampler=i,this.renderer.shader.bind(this.shader),!1),c=0,p=0;c<s;c+=r,p+=1){var d=s-c,f=(r<d&&(d=r),p>=o.length&&o.push(this._generateOneMoreBuffer(e)),o[p]),m=(f.uploadDynamic(t,c,d),e._bufferUpdateIDs[p]||0);(h=h||f._updateID<m)&&(f._updateID=e._updateID,f.uploadStatic(t,c,d)),n.geometry.bind(f.geometry),l.drawElements(l.TRIANGLES,6*d,l.UNSIGNED_SHORT,0)}}},wl.prototype.generateBuffers=function(e){for(var t=[],i=e._maxSize,r=e._batchSize,n=e._properties,s=0;s<i;s+=r)t.push(new yl(this.properties,n,r));return t},wl.prototype._generateOneMoreBuffer=function(e){var t=e._batchSize,e=e._properties;return new yl(this.properties,e,t)},wl.prototype.uploadVertices=function(e,t,i,r,n,s){for(var o=0,a=0,l=0,u=0,h=0;h<i;++h){var c=e[t+h],p=c._texture,d=c.scale.x,f=c.scale.y,m=p.trim,p=p.orig;m?(o=(a=m.x-c.anchor.x*p.width)+m.width,l=(u=m.y-c.anchor.y*p.height)+m.height):(o=p.width*(1-c.anchor.x),a=p.width*-c.anchor.x,l=p.height*(1-c.anchor.y),u=p.height*-c.anchor.y),r[s]=a*d,r[s+1]=u*f,r[s+n]=o*d,r[s+n+1]=u*f,r[s+2*n]=o*d,r[s+2*n+1]=l*f,r[s+3*n]=a*d,r[s+3*n+1]=l*f,s+=4*n}},wl.prototype.uploadPosition=function(e,t,i,r,n,s){for(var o=0;o<i;o++){var a=e[t+o].position;r[s]=a.x,r[s+1]=a.y,r[s+n]=a.x,r[s+n+1]=a.y,r[s+2*n]=a.x,r[s+2*n+1]=a.y,r[s+3*n]=a.x,r[s+3*n+1]=a.y,s+=4*n}},wl.prototype.uploadRotation=function(e,t,i,r,n,s){for(var o=0;o<i;o++){var a=e[t+o].rotation;r[s]=a,r[s+n]=a,r[s+2*n]=a,r[s+3*n]=a,s+=4*n}},wl.prototype.uploadUvs=function(e,t,i,r,n,s){for(var o=0;o<i;++o){var a=e[t+o]._texture._uvs;a?(r[s]=a.x0,r[s+1]=a.y0,r[s+n]=a.x1,r[s+n+1]=a.y1,r[s+2*n]=a.x2,r[s+2*n+1]=a.y2,r[s+3*n]=a.x3,r[s+3*n+1]=a.y3):(r[s]=0,r[s+1]=0,r[s+n]=0,r[s+n+1]=0,r[s+2*n]=0,r[s+2*n+1]=0,r[s+3*n]=0,r[s+3*n+1]=0),s+=4*n}},wl.prototype.uploadTint=function(e,t,i,r,n,s){for(var o=0;o<i;++o){var a=e[t+o],l=0<a._texture.baseTexture.alphaMode,u=a.alpha,l=u<1&&l?yt(a._tintRGB,u):a._tintRGB+(255*u<<24);r[s]=l,r[s+n]=l,r[s+2*n]=l,r[s+3*n]=l,s+=4*n}},wl.prototype.destroy=function(){xl.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},wl.extension={name:"particle",type:$.ExtensionType.RendererPlugin};var xl,Tl=wl;function wl(e){e=xl.call(this,e)||this;return e.shader=null,e.properties=null,e.tempMatrix=new oi,e.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:e.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:e.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:e.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:e.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:$.TYPES.UNSIGNED_BYTE,uploadFunction:e.uploadTint,offset:0}],e.shader=ss.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nattribute vec2 aPositionCoord;\nattribute float aRotation;\n\nuniform mat3 translationMatrix;\nuniform vec4 uColor;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void){\n float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);\n float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);\n\n vec2 v = vec2(x, y);\n v = v + aPositionCoord;\n\n gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vColor = aColor * uColor;\n}\n","varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n gl_FragColor = color;\n}",{}),e.state=as.for2d(),e}$.LINE_JOIN=void 0,(Ml=$.LINE_JOIN||($.LINE_JOIN={})).MITER="miter",Ml.BEVEL="bevel",Ml.ROUND="round",$.LINE_CAP=void 0,(Ml=$.LINE_CAP||($.LINE_CAP={})).BUTT="butt",Ml.ROUND="round",Ml.SQUARE="square";var El={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){return void 0===t&&(t=20),this.adaptive&&e&&!isNaN(e)?((e=Math.ceil(e/this.maxLength))<this.minSegments?e=this.minSegments:e>this.maxSegments&&(e=this.maxSegments),e):t}},Sl=(Al.prototype.clone=function(){var e=new Al;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},Al.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=te.WHITE,this.matrix=null,this.visible=!1},Al.prototype.destroy=function(){this.texture=null,this.matrix=null},Al);function Al(){this.color=16777215,this.alpha=1,this.texture=te.WHITE,this.matrix=null,this.visible=!1,this.reset()}var kl=function(e,t){return(kl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function Pl(e,t){function i(){this.constructor=e}kl(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function Ol(e,t){void 0===t&&(t=!1);var i=e.length;if(!(i<6)){for(var r=0,n=0,s=e[i-2],o=e[i-1];n<i;n+=2){var a=e[n],l=e[n+1];r+=(a-s)*(l+o),s=a,o=l}if(!t&&0<r||t&&r<=0)for(t=i/2,n=t+t%2;n<i;n+=2){var u=i-n-2,h=i-n-1,c=n,p=n+1,d=[e[c],e[u]];e[u]=d[0],e[c]=d[1],u=[e[p],e[h]],e[h]=u[0],e[p]=u[1]}}}var Rl={build:function(e){e.points=e.shape.points.slice()},triangulate:function(e,t){var i=e.points,r=e.holes,n=t.points,s=t.indices;if(6<=i.length){Ol(i,!1);for(var o=[],a=0;a<r.length;a++){var l=r[a];Ol(l.points,!0),o.push(i.length/2),i=i.concat(l.points)}var u=de(i,o,2);if(u){for(var h=n.length/2,a=0;a<u.length;a+=3)s.push(u[a]+h),s.push(u[a+1]+h),s.push(u[a+2]+h);for(a=0;a<i.length;a++)n.push(i[a])}}}},Cl={build:function(e){var t,i,r,n,s,o,a,l=e.points;if(e.type===$.SHAPES.CIRC?(r=(h=e.shape).x,n=h.y,s=i=h.radius,o=t=0):e.type===$.SHAPES.ELIP?(r=(h=e.shape).x,n=h.y,s=h.width,i=h.height,o=t=0):(e=(h=e.shape).width/2,a=h.height/2,r=h.x+e,n=h.y+a,o=e-(s=i=Math.max(0,Math.min(h.radius,Math.min(e,a)))),t=a-i),0<=s&&0<=i&&0<=o&&0<=t){var u=Math.ceil(2.3*Math.sqrt(s+i)),h=8*u+(o?4:0)+(t?4:0);if(0!=(l.length=h))if(0===u)l.length=8,l[0]=l[6]=r+o,l[1]=l[3]=n+t,l[2]=l[4]=r-o,l[5]=l[7]=n-t;else{var c=0,p=4*u+(o?2:0)+2,d=p,f=h,m=r+(x=o+s),_=r-x,g=n+(T=t);l[c++]=m,l[c++]=g,l[--p]=g,l[--p]=_,t&&(b=n-T,l[d++]=_,l[d++]=b,l[--f]=b,l[--f]=m);for(var v=1;v<u;v++){var y=Math.PI/2*(v/u),m=r+(x=o+Math.cos(y)*s),_=r-x,g=n+(T=t+Math.sin(y)*i),b=n-T;l[c++]=m,l[c++]=g,l[--p]=g,l[--p]=_,l[d++]=_,l[d++]=b,l[--f]=b,l[--f]=m}var x,T,m=r+(x=o),_=r-x,g=n+(T=t+i),b=n-T;l[c++]=m,l[c++]=g,l[--f]=b,l[--f]=m,o&&(l[c++]=_,l[c++]=g,l[--f]=b,l[--f]=_)}}else l.length=0},triangulate:function(e,t){var i=e.points,r=t.points,n=t.indices;if(0!==i.length){var s,o=r.length/2,a=o,l=(t=e.type!==$.SHAPES.RREC?(s=(t=e.shape).x,t.y):(s=(t=e.shape).x+t.width/2,t.y+t.height/2),e.matrix);r.push(e.matrix?l.a*s+l.c*t+l.tx:s,e.matrix?l.b*s+l.d*t+l.ty:t),o++,r.push(i[0],i[1]);for(var u=2;u<i.length;u+=2)r.push(i[u],i[u+1]),n.push(o++,a,o);n.push(a+1,a,o)}}},Ml={build:function(e){var t=e.shape,i=t.x,r=t.y,n=t.width,t=t.height,e=e.points;e.length=0,e.push(i,r,i+n,r,i+n,r+t,i,r+t)},triangulate:function(e,t){var e=e.points,i=t.points,r=i.length/2;i.push(e[0],e[1],e[2],e[3],e[6],e[7],e[4],e[5]),t.indices.push(r,1+r,2+r,1+r,2+r,3+r)}};function Il(e,t,i){return e+(t-e)*i}function Dl(e,t,i,r,n,s,o){for(var a,l,u,h,c,p=o=void 0===o?[]:o,d=0;d<=20;++d)u=Il(e,i,c=d/20),a=Il(t,r,c),h=Il(i,n,c),l=Il(r,s,c),u=Il(u,h,c),h=Il(a,l,c),0===d&&p[p.length-2]===u&&p[p.length-1]===h||p.push(u,h)}var Ll={build:function(e){var t,i,r,n,s;au.nextRoundedRectBehavior?Cl.build(e):(s=e.shape,e=e.points,t=s.x,i=s.y,r=s.width,n=s.height,s=Math.max(0,Math.min(s.radius,Math.min(r,n)/2)),e.length=0,s?(Dl(t,i+s,t,i,t+s,i,e),Dl(t+r-s,i,t+r,i,t+r,i+s,e),Dl(t+r,i+n-s,t+r,i+n,t+r-s,i+n,e),Dl(t+s,i+n,t,i+n,t,i+n-s,e)):e.push(t,i,t+r,i,t+r,i+n,t,i+n))},triangulate:function(e,t){if(au.nextRoundedRectBehavior)Cl.triangulate(e,t);else{for(var i=e.points,r=t.points,n=t.indices,s=r.length/2,o=de(i,null,2),a=0,l=o.length;a<l;a+=3)n.push(o[a]+s),n.push(o[a+1]+s),n.push(o[a+2]+s);for(a=0,l=i.length;a<l;a++)r.push(i[a],i[++a])}}};function Fl(e,t,i,r,n,s,o,a){var l,o=o?(l=r,-i):(l=-r,i),u=e+i*s+l,s=t+r*s+o;return a.push(e-i*n+l,t-r*n+o),a.push(u,s),2}function Nl(e,t,i,r,n,s,o,a){var l=i-e,u=r-t,h=Math.atan2(l,u),c=Math.atan2(n-e,s-t),p=(a&&h<c?h+=2*Math.PI:!a&&c<h&&(c+=2*Math.PI),h),c=c-h,h=Math.abs(c),d=Math.sqrt(l*l+u*u),f=1+(15*h*Math.sqrt(d)/Math.PI>>0),m=c/f;if(p+=m,a){o.push(e,t),o.push(i,r);for(var _=1,g=p;_<f;_++,g+=m)o.push(e,t),o.push(e+Math.sin(g)*d,t+Math.cos(g)*d);o.push(e,t),o.push(n,s)}else{o.push(i,r),o.push(e,t);for(_=1,g=p;_<f;_++,g+=m)o.push(e+Math.sin(g)*d,t+Math.cos(g)*d),o.push(e,t);o.push(n,s),o.push(e,t)}return 2*f}function zl(e,t){if(e.lineStyle.native){var i=t,r=0,n=(o=e).shape,s=o.points||n.points,o=n.type!==$.SHAPES.POLY||n.closeStroke;if(0!==s.length){var F=i.points,N=i.indices,z=s.length/2,n=F.length/2,a=n;for(F.push(s[0],s[1]),r=1;r<z;r++)F.push(s[2*r],s[2*r+1]),N.push(a,a+1),a++;o&&N.push(a,n)}}else{var i=t,n=(o=e).shape,l=o.points||n.points.slice(),t=i.closePointEps;if(0!==l.length){var u=o.lineStyle,o=new ee(l[0],l[1]),e=new ee(l[l.length-2],l[l.length-1]),n=n.type!==$.SHAPES.POLY||n.closeStroke,t=Math.abs(o.x-e.x)<t&&Math.abs(o.y-e.y)<t,h=(n&&(l=l.slice(),t&&(l.pop(),l.pop(),e.set(l[l.length-2],l[l.length-1])),t=.5*(o.x+e.x),e=.5*(e.y+o.y),l.unshift(t,e),l.push(t,e)),i.points),c=l.length/2,p=l.length,B=h.length/2,d=u.width/2,U=d*d,j=u.miterLimit*u.miterLimit,f=l[0],m=l[1],_=l[2],g=l[3],v=0,y=0,b=-(m-g),x=f-_,T=0,w=0,E=Math.sqrt(b*b+x*x),o=(b=b/E*d,x=x/E*d,u.alignment),S=2*(1-o),A=2*o;n||(u.cap===$.LINE_CAP.ROUND?p+=Nl(f-b*(S-A)*.5,m-x*(S-A)*.5,f-b*S,m-x*S,f+b*A,m+x*A,h,!0)+2:u.cap===$.LINE_CAP.SQUARE&&(p+=Fl(f,m,b,x,S,A,!0,h))),h.push(f-b*S,m-x*S),h.push(f+b*A,m+x*A);for(var k=1;k<c-1;++k){f=l[2*(k-1)],m=l[2*(k-1)+1],_=l[2*k],g=l[2*k+1],v=l[2*(k+1)],y=l[2*(k+1)+1],x=f-_,b=(b=-(m-g))/(E=Math.sqrt(b*b+x*x))*d,x=x/E*d,w=_-v;var P,O,R,C,M,G,T=(T=-(g-y))/(E=Math.sqrt(T*T+w*w))*d,w=w/E*d,I=_-f,X=m-g,H=_-v,Y=y-g,D=X*H-Y*I,L=D<0;Math.abs(D)<.1?(h.push(_-b*S,g-x*S),h.push(_+b*A,g+x*A)):(R=_+((O=(I*(C=(-T+v)*(-w+g)-(-T+_)*(-w+y))-H*(P=(-b+f)*(-x+g)-(-b+_)*(-x+m)))/D)-_)*S,C=g+((P=(Y*P-X*C)/D)-g)*S,D=_-(O-_)*A,M=g-(P-g)*A,G=L?S:A,(O=(O-_)*(O-_)+(P-g)*(P-g))<=Math.min(I*I+X*X,H*H+Y*Y)+G*G*U?u.join===$.LINE_JOIN.BEVEL||j<O/U?(L?(h.push(R,C),h.push(_+b*A,g+x*A),h.push(R,C),h.push(_+T*A,g+w*A)):(h.push(_-b*S,g-x*S),h.push(D,M),h.push(_-T*S,g-w*S),h.push(D,M)),p+=2):u.join===$.LINE_JOIN.ROUND?L?(h.push(R,C),h.push(_+b*A,g+x*A),p+=Nl(_,g,_+b*A,g+x*A,_+T*A,g+w*A,h,!0)+4,h.push(R,C),h.push(_+T*A,g+w*A)):(h.push(_-b*S,g-x*S),h.push(D,M),p+=Nl(_,g,_-b*S,g-x*S,_-T*S,g-w*S,h,!1)+4,h.push(_-T*S,g-w*S),h.push(D,M)):(h.push(R,C),h.push(D,M)):(h.push(_-b*S,g-x*S),h.push(_+b*A,g+x*A),u.join===$.LINE_JOIN.ROUND?p+=L?Nl(_,g,_+b*A,g+x*A,_+T*A,g+w*A,h,!0)+2:Nl(_,g,_-b*S,g-x*S,_-T*S,g-w*S,h,!1)+2:u.join===$.LINE_JOIN.MITER&&O/U<=j&&(L?(h.push(D,M),h.push(D,M)):(h.push(R,C),h.push(R,C)),p+=2),h.push(_-T*S,g-w*S),h.push(_+T*A,g+w*A),p+=2))}f=l[2*(c-2)],m=l[2*(c-2)+1],_=l[2*(c-1)],b=-(m-(g=l[2*(c-1)+1])),x=f-_,E=Math.sqrt(b*b+x*x),h.push(_-(b=b/E*d)*S,g-(x=x/E*d)*S),h.push(_+b*A,g+x*A),n||(u.cap===$.LINE_CAP.ROUND?p+=Nl(_-b*(S-A)*.5,g-x*(S-A)*.5,_-b*S,g-x*S,_+b*A,g+x*A,h,!1)+2:u.cap===$.LINE_CAP.SQUARE&&(p+=Fl(_,g,b,x,S,A,!1,h)));for(var W=i.indices,V=El.epsilon*El.epsilon,k=B;k<p+B-2;++k)f=h[2*k],m=h[2*k+1],_=h[2*(k+1)],g=h[2*(k+1)+1],v=h[2*(k+2)],y=h[2*(k+2)+1],Math.abs(f*(g-y)+_*(y-m)+v*(m-g))<V||W.push(k,k+1,k+2)}}}Ul.curveTo=function(e,t,i,r,n,s){var o,a,l,u,h=s[s.length-2],c=s[s.length-1]-t,h=h-e,r=r-t,i=i-e,p=Math.abs(c*i-h*r);return p<1e-8||0===n?(s[s.length-2]===e&&s[s.length-1]===t||s.push(e,t),null):(s=c*c+h*h,l=r*r+i*i,u=c*r+h*i,s=(o=n*Math.sqrt(s)/p)*u/s,l=i*(o+(u=(p=n*Math.sqrt(l)/p)*u/l)),u=r*(o+u),{cx:(a=o*i+p*h)+e,cy:(e=o*r+p*c)+t,radius:n,startAngle:Math.atan2(c*(p+s)-e,h*(p+s)-a),endAngle:Math.atan2(u-e,l-a),anticlockwise:i*c<h*r})},Ul.arc=function(e,t,i,r,n,s,o,a,l){for(var o=o-s,u=El._segmentsCount(Math.abs(o)*n,40*Math.ceil(Math.abs(o)/Ht)),h=o/(2*u),c=2*h,p=Math.cos(h),d=Math.sin(h),f=u-1,m=f%1/f,_=0;_<=f;++_){var g=h+s+c*(_+m*_),v=Math.cos(g),g=-Math.sin(g);l.push((p*v+d*g)*n+i,(p*-g+d*v)*n+r)}};var Bl=Ul;function Ul(){}Gl.curveLength=function(e,t,i,r,n,s,o,a){for(var l,u,h,c,p,d,f,m,_=0,g=e,v=t,y=1;y<=10;++y)f=g-(p=(d=(m=(c=1-(l=y/10))*c)*c)*e+3*m*l*i+3*c*(u=l*l)*n+(h=u*l)*o),m=v-(d=d*t+3*m*l*r+3*c*u*s+h*a),g=p,v=d,_+=Math.sqrt(f*f+m*m);return _},Gl.curveTo=function(e,t,i,r,n,s,o){var a,l,u,h,c,p=o[o.length-2],d=o[o.length-1],f=(o.length-=2,El._segmentsCount(Gl.curveLength(p,d,e,t,i,r,n,s)));o.push(p,d);for(var m,_=1;_<=f;++_)o.push((u=(l=(a=1-(m=_/f))*a)*a)*p+3*l*m*e+3*a*(h=m*m)*i+(c=h*m)*n,u*d+3*l*m*t+3*a*h*r+c*s)};var jl=Gl;function Gl(){}Hl.curveLength=function(e,t,i,r,n,s){var n=e-2*i+n,s=t-2*r+s,i=2*i-2*e,e=2*r-2*t,r=4*(n*n+s*s),t=4*(n*i+s*e),n=i*i+e*e,s=2*Math.sqrt(r+t+n),i=Math.sqrt(r),e=2*r*i,o=2*Math.sqrt(n),a=t/i;return(e*s+i*t*(s-o)+(4*n*r-t*t)*Math.log((2*i+a+s)/(a+o)))/(4*e)},Hl.curveTo=function(e,t,i,r,n){for(var s=n[n.length-2],o=n[n.length-1],a=El._segmentsCount(Hl.curveLength(s,o,e,t,i,r)),l=1;l<=a;++l){var u,h=l/a;n.push((u=s+(e-s)*h)+(e+(i-e)*h-u)*h,(u=o+(t-o)*h)+(t+(r-t)*h-u)*h)}};var Xl=Hl;function Hl(){}Wl.prototype.begin=function(e,t,i){this.reset(),this.style=e,this.start=t,this.attribStart=i},Wl.prototype.end=function(e,t){this.attribSize=t-this.attribStart,this.size=e-this.start},Wl.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0};var Yl=Wl;function Wl(){this.reset()}(lu={})[$.SHAPES.POLY]=Rl,lu[$.SHAPES.CIRC]=Cl,lu[$.SHAPES.ELIP]=Cl,lu[$.SHAPES.RECT]=Ml,lu[$.SHAPES.RREC]=Ll;var Vl=lu,ql=[],Kl=[],Zl=(Jl.prototype.clone=function(){return new Jl(this.shape,this.fillStyle,this.lineStyle,this.matrix)},Jl.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},Jl);function Jl(e,t,i,r){void 0===t&&(t=null),void 0===i&&(i=null),void 0===r&&(r=null),this.points=[],this.holes=[],this.shape=e,this.lineStyle=i,this.fillStyle=t,this.matrix=r,this.type=e.type}var Ql,$l=new ee,eu=(Pl(y,Ql=Oo),Object.defineProperty(y.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),y.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0;for(var e=this.textureIds.length=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Kl.push(this.drawCalls[e]);for(e=this.drawCalls.length=0;e<this.batches.length;e++){var t=this.batches[e];t.reset(),ql.push(t)}this.batches.length=0},y.prototype.clear=function(){return 0<this.graphicsData.length&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},y.prototype.drawShape=function(e,t,i,r){e=new Zl(e,t=void 0===t?null:t,i=void 0===i?null:i,r=void 0===r?null:r);return this.graphicsData.push(e),this.dirty++,this},y.prototype.drawHole=function(e,t){return this.graphicsData.length?(e=new Zl(e,null,null,t=void 0===t?null:t),t=this.graphicsData[this.graphicsData.length-1],e.lineStyle=t.lineStyle,t.holes.push(e),this.dirty++,this):null},y.prototype.destroy=function(){Ql.prototype.destroy.call(this);for(var e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},y.prototype.containsPoint=function(e){for(var t=this.graphicsData,i=0;i<t.length;++i){var r=t[i];if(r.fillStyle.visible&&(r.shape&&(r.matrix?r.matrix.applyInverse(e,$l):$l.copyFrom(e),r.shape.contains($l.x,$l.y)))){var n=!1;if(r.holes)for(var s=0;s<r.holes.length;s++)if(r.holes[s].shape.contains($l.x,$l.y)){n=!0;break}if(!n)return!0}}return!1},y.prototype.updateBatches=function(){if(this.graphicsData.length){if(this.validateBatching()){this.cacheDirty=this.dirty;var e=this.uvs,t=this.graphicsData,i=null,r=null;0<this.batches.length&&(r=(i=this.batches[this.batches.length-1]).style);for(var n=this.shapeIndex;n<t.length;n++){this.shapeIndex++;var s=t[n],o=s.fillStyle,a=s.lineStyle;Vl[s.type].build(s),s.matrix&&this.transformPoints(s.points,s.matrix),(o.visible||a.visible)&&this.processHoles(s.holes);for(var l=0;l<2;l++){var u,h,c,p=0===l?o:a;p.visible&&(c=p.texture.baseTexture,u=this.indices.length,h=this.points.length/2,c.wrapMode=$.WRAP_MODES.REPEAT,0===l?this.processFill(s):this.processLine(s),0!=(c=this.points.length/2-h)&&(i&&!this._compareStyles(r,p)&&(i.end(u,h),i=null),i||((i=ql.pop()||new Yl).begin(p,u,h),this.batches.push(i),r=p),this.addUvs(this.points,e,p.texture,h,c,p.matrix)))}}var d=this.indices.length,f=this.points.length/2;i&&i.end(d,f),0===this.batches.length?this.batchable=!0:(d=65535<f,this.indicesUint16&&this.indices.length===this.indicesUint16.length&&d==2<this.indicesUint16.BYTES_PER_ELEMENT?this.indicesUint16.set(this.indices):this.indicesUint16=new(d?Uint32Array:Uint16Array)(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls())}}else this.batchable=!0},y.prototype._compareStyles=function(e,t){return!(!e||!t)&&(e.texture.baseTexture===t.texture.baseTexture&&(e.color+e.alpha===t.color+t.alpha&&!!e.native==!!t.native))},y.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var e=0,t=this.graphicsData.length;e<t;e++){var i=this.graphicsData[e],r=i.fillStyle,i=i.lineStyle;if(r&&!r.texture.baseTexture.valid)return!1;if(i&&!i.texture.baseTexture.valid)return!1}return!0},y.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var e=this.batches,t=0,i=e.length;t<i;t++)for(var r=e[t],n=0;n<r.size;n++){var s=r.start+n;this.indicesUint16[s]=this.indicesUint16[s]-r.attribStart}},y.prototype.isBatchable=function(){if(131070<this.points.length)return!1;for(var e=this.batches,t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<2*y.BATCHABLE_SIZE},y.prototype.buildDrawCalls=function(){for(var e=++C._globalBatch,t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),Kl.push(this.drawCalls[t]);this.drawCalls.length=0;var i=this.colors,r=this.textureIds,n=Kl.pop(),s=(n||((n=new vo).texArray=new yo),n.texArray.count=0,n.start=0,n.size=0,n.type=$.DRAW_MODES.TRIANGLES,0),o=null,a=!1,l=$.DRAW_MODES.TRIANGLES,u=0;this.drawCalls.push(n);for(t=0;t<this.batches.length;t++){var h=this.batches[t],c=h.style,p=c.texture.baseTexture;a!==!!c.native&&(l=(a=!!c.native)?$.DRAW_MODES.LINES:$.DRAW_MODES.TRIANGLES,o=null,s=8,e++),o!==p&&(o=p)._batchEnabled!==e&&(8===s&&(e++,(s=0)<n.size&&((n=Kl.pop())||((n=new vo).texArray=new yo),this.drawCalls.push(n)),n.start=u,n.size=0,n.texArray.count=0,n.type=l),p.touched=1,p._batchEnabled=e,p._batchLocation=s,p.wrapMode=$.WRAP_MODES.REPEAT,n.texArray.elements[n.texArray.count++]=p,s++),n.size+=h.size,u+=h.size,p=p._batchLocation,this.addColors(i,c.color,c.alpha,h.attribSize,h.attribStart),this.addTextureIds(r,p,h.attribSize,h.attribStart)}C._globalBatch=e,this.packAttributes()},y.prototype.packAttributes=function(){for(var e=this.points,t=this.uvs,i=this.colors,r=this.textureIds,n=new ArrayBuffer(3*e.length*4),s=new Float32Array(n),o=new Uint32Array(n),a=0,l=0;l<e.length/2;l++)s[a++]=e[2*l],s[a++]=e[2*l+1],s[a++]=t[2*l],s[a++]=t[2*l+1],o[a++]=i[l],s[a++]=r[l];this._buffer.update(n),this._indexBuffer.update(this.indicesUint16)},y.prototype.processFill=function(e){(e.holes.length?Rl:Vl[e.type]).triangulate(e,this)},y.prototype.processLine=function(e){zl(e,this);for(var t=0;t<e.holes.length;t++)zl(e.holes[t],this)},y.prototype.processHoles=function(e){for(var t=0;t<e.length;t++){var i=e[t];Vl[i.type].build(i),i.matrix&&this.transformPoints(i.points,i.matrix)}},y.prototype.calculateBounds=function(){var e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)},y.prototype.transformPoints=function(e,t){for(var i=0;i<e.length/2;i++){var r=e[2*i],n=e[2*i+1];e[2*i]=t.a*r+t.c*n+t.tx,e[2*i+1]=t.b*r+t.d*n+t.ty}},y.prototype.addColors=function(e,t,i,r,n){void 0===n&&(n=0);var s=yt((t>>16)+(65280&t)+((255&t)<<16),i);e.length=Math.max(e.length,n+r);for(var o=0;o<r;o++)e[n+o]=s},y.prototype.addTextureIds=function(e,t,i,r){void 0===r&&(r=0),e.length=Math.max(e.length,r+i);for(var n=0;n<i;n++)e[r+n]=t},y.prototype.addUvs=function(e,t,i,r,n,s){void 0===s&&(s=null);for(var o=0,a=t.length,l=i.frame;o<n;){var u,h=e[2*(r+o)],c=e[2*(r+o)+1];s&&(u=s.a*h+s.c*c+s.tx,c=s.b*h+s.d*c+s.ty,h=u),o++,t.push(h/l.width,c/l.height)}var p=i.baseTexture;(l.width<p.width||l.height<p.height)&&this.adjustUvs(t,i,a,n)},y.prototype.adjustUvs=function(e,t,i,r){for(var n=t.baseTexture,s=i+2*r,r=t.frame,o=r.width/n.width,a=r.height/n.height,l=r.x/r.width,u=r.y/r.height,h=Math.floor(e[i]+1e-6),c=Math.floor(e[i+1]+1e-6),p=i+2;p<s;p+=2)h=Math.min(h,Math.floor(e[p]+1e-6)),c=Math.min(c,Math.floor(e[p+1]+1e-6));l-=h,u-=c;for(p=i;p<s;p+=2)e[p]=(e[p]+l)*o,e[p+1]=(e[p+1]+u)*a},y.BATCHABLE_SIZE=100,y);function y(){var e=Ql.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new ki,e.boundsDirty=-1,e}Pl(ru,tu=Sl),ru.prototype.clone=function(){var e=new ru;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e.width=this.width,e.alignment=this.alignment,e.native=this.native,e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e},ru.prototype.reset=function(){tu.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1};var tu,iu=ru;function ru(){var e=null!==tu&&tu.apply(this,arguments)||this;return e.width=0,e.alignment=.5,e.native=!1,e.cap=$.LINE_CAP.BUTT,e.join=$.LINE_JOIN.MITER,e.miterLimit=10,e}var nu,su=new Float32Array(3),ou={},au=(Pl(b,nu=zi),Object.defineProperty(b.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),b.prototype.clone=function(){return this.finishPoly(),new b(this._geometry)},Object.defineProperty(b.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),b.prototype.lineStyle=function(e,t,i,r,n){return void 0===t&&(t=0),void 0===i&&(i=1),void 0===r&&(r=.5),void 0===n&&(n=!1),this.lineTextureStyle(e="number"==typeof(e=void 0===e?null:e)?{width:e,color:t,alpha:i,alignment:r,native:n}:e)},b.prototype.lineTextureStyle=function(e){e=Object.assign({width:0,texture:te.WHITE,color:e&&e.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:$.LINE_CAP.BUTT,join:$.LINE_JOIN.MITER,miterLimit:10},e),this.currentPath&&this.startPoly();var t=0<e.width&&0<e.alpha;return t?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:t},e)):this._lineStyle.reset(),this},b.prototype.startPoly=function(){var e,t;this.currentPath?(e=this.currentPath.points,2<(t=this.currentPath.points.length)&&(this.drawShape(this.currentPath),this.currentPath=new ei,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))):(this.currentPath=new ei,this.currentPath.closeStroke=!1)},b.prototype.finishPoly=function(){this.currentPath&&(2<this.currentPath.points.length?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},b.prototype.moveTo=function(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this},b.prototype.lineTo=function(e,t){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,r=i[i.length-2],n=i[i.length-1];return r===e&&n===t||i.push(e,t),this},b.prototype._initCurve=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[e,t]):this.moveTo(e,t)},b.prototype.quadraticCurveTo=function(e,t,i,r){this._initCurve();var n=this.currentPath.points;return 0===n.length&&this.moveTo(0,0),Xl.curveTo(e,t,i,r,n),this},b.prototype.bezierCurveTo=function(e,t,i,r,n,s){return this._initCurve(),jl.curveTo(e,t,i,r,n,s,this.currentPath.points),this},b.prototype.arcTo=function(e,t,i,r,n){this._initCurve(e,t);var s=this.currentPath.points,e=Bl.curveTo(e,t,i,r,n,s);return e&&(t=e.cx,i=e.cy,r=e.radius,n=e.startAngle,s=e.endAngle,e=e.anticlockwise,this.arc(t,i,r,n,s,e)),this},b.prototype.arc=function(e,t,i,r,n,s){var o,a,l,u,h,c;return void 0===s&&(s=!1),r!==n&&(!s&&n<=r?n+=Ht:s&&r<=n&&(r+=Ht),0!=n-r&&(o=e+Math.cos(r)*i,a=t+Math.sin(r)*i,l=this._geometry.closePointEps,(u=this.currentPath?this.currentPath.points:null)?(h=Math.abs(u[u.length-2]-o),c=Math.abs(u[u.length-1]-a),h<l&&c<l||u.push(o,a)):(this.moveTo(o,a),u=this.currentPath.points),Bl.arc(o,a,e,t,i,r,n,s,u))),this},b.prototype.beginFill=function(e,t){return this.beginTextureFill({texture:te.WHITE,color:e=void 0===e?0:e,alpha:t=void 0===t?1:t})},b.prototype.beginTextureFill=function(e){e=Object.assign({texture:te.WHITE,color:16777215,alpha:1,matrix:null},e),this.currentPath&&this.startPoly();var t=0<e.alpha;return t?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:t},e)):this._fillStyle.reset(),this},b.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},b.prototype.drawRect=function(e,t,i,r){return this.drawShape(new w(e,t,i,r))},b.prototype.drawRoundedRect=function(e,t,i,r,n){return this.drawShape(new ii(e,t,i,r,n))},b.prototype.drawCircle=function(e,t,i){return this.drawShape(new Zt(e,t,i))},b.prototype.drawEllipse=function(e,t,i,r){return this.drawShape(new Qt(e,t,i,r))},b.prototype.drawPolygon=function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];var r=!0,n=t[0],n=n.points?(r=n.closeStroke,n.points):Array.isArray(t[0])?t[0]:t,n=new ei(n);return n.closeStroke=r,this.drawShape(n),this},b.prototype.drawShape=function(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},b.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},b.prototype.isFastRect=function(){var e=this._geometry.graphicsData;return!(1!==e.length||e[0].shape.type!==$.SHAPES.RECT||e[0].matrix||e[0].holes.length||e[0].lineStyle.visible&&e[0].lineStyle.width)},b.prototype._render=function(e){this.finishPoly();var t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))},b.prototype._populateBatches=function(){var e=this._geometry,t=this.blendMode,i=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=i,this.vertexData=new Float32Array(e.points);for(var r=0;r<i;r++){var n=e.batches[r],s=n.style.color,o=new Float32Array(this.vertexData.buffer,4*n.attribStart*2,2*n.attribSize),a=new Float32Array(e.uvsFloat32.buffer,4*n.attribStart*2,2*n.attribSize),o={vertexData:o,blendMode:t,indices:new Uint16Array(e.indicesUint16.buffer,2*n.start,n.size),uvs:a,_batchRGB:dt(s),_tintRGB:s,_texture:n.style.texture,alpha:n.style.alpha,worldAlpha:1};this.batches[r]=o}},b.prototype._renderBatched=function(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var t=0,i=this.batches.length;t<i;t++){var r=this.batches[t];r.worldAlpha=this.worldAlpha*r.alpha,e.plugins[this.pluginName].render(r)}}},b.prototype._renderDirect=function(e){var t=this._resolveDirectShader(e),i=this._geometry,r=this.tint,n=this.worldAlpha,s=t.uniforms,o=i.drawCalls;s.translationMatrix=this.transform.worldTransform,s.tint[0]=(r>>16&255)/255*n,s.tint[1]=(r>>8&255)/255*n,s.tint[2]=(255&r)/255*n,s.tint[3]=n,e.shader.bind(t),e.geometry.bind(i,t),e.state.set(this.state);for(var a=0,l=o.length;a<l;a++)this._renderDrawCallDirect(e,i.drawCalls[a])},b.prototype._renderDrawCallDirect=function(e,t){for(var i=t.texArray,r=t.type,n=t.size,t=t.start,s=i.count,o=0;o<s;o++)e.texture.bind(i.elements[o],o);e.geometry.draw(r,n,t)},b.prototype._resolveDirectShader=function(e){var t=this.shader,i=this.pluginName;if(!t){if(!ou[i]){for(var r=e.plugins[i].MAX_TEXTURES,n=new Int32Array(r),s=0;s<r;s++)n[s]=s;var o={tint:new Float32Array([1,1,1,1]),translationMatrix:new oi,default:cn.from({uSamplers:n},!0)},e=e.plugins[i]._shader.program;ou[i]=new ss(e,o)}t=ou[i]}return t},b.prototype._calculateBounds=function(){this.finishPoly();var e,t,i,r=this._geometry;r.graphicsData.length&&(e=(r=r.bounds).minX,t=r.minY,i=r.maxX,r=r.maxY,this._bounds.addFrame(this.transform,e,t,i,r))},b.prototype.containsPoint=function(e){return this.worldTransform.applyInverse(e,b._TEMP_POINT),this._geometry.containsPoint(b._TEMP_POINT)},b.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var e=dt(this.tint,su),t=0;t<this.batches.length;t++){var i=this.batches[t],r=i._batchRGB,r=(e[0]*r[0]*255<<16)+(e[1]*r[1]*255<<8)+(0|e[2]*r[2]*255);i._tintRGB=(r>>16)+(65280&r)+((255&r)<<16)}}},b.prototype.calculateVertices=function(){var e=this.transform._worldID;if(this._transformID!==e){this._transformID=e;for(var e=this.transform.worldTransform,t=e.a,i=e.b,r=e.c,n=e.d,s=e.tx,o=e.ty,a=this._geometry.points,l=this.vertexData,u=0,h=0;h<a.length;h+=2){var c=a[h],p=a[h+1];l[u++]=t*c+r*p+s,l[u++]=n*p+i*c+o}}},b.prototype.closePath=function(){var e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this},b.prototype.setMatrix=function(e){return this._matrix=e,this},b.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},b.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},b.prototype.destroy=function(e){this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,nu.prototype.destroy.call(this,e)},b.nextRoundedRectBehavior=!1,b._TEMP_POINT=new ee,b);function b(e){void 0===e&&(e=null);var t=nu.call(this)||this;return t.shader=null,t.pluginName="batch",t.currentPath=null,t.batches=[],t.batchTint=-1,t.batchDirty=-1,t.vertexData=null,t._fillStyle=new Sl,t._lineStyle=new iu,t._matrix=null,t._holeMode=!1,t.state=as.for2d(),t._geometry=e||new eu,t._geometry.refCount++,t._transformID=-1,t.tint=16777215,t.blendMode=$.BLEND_MODES.NORMAL,t}var lu={buildPoly:Rl,buildCircle:Cl,buildRectangle:Ml,buildRoundedRectangle:Ll,buildLine:zl,ArcUtils:Bl,BezierUtils:jl,QuadraticUtils:Xl,BatchPart:Yl,FILL_COMMANDS:Vl,BATCH_POOL:ql,DRAW_CALL_POOL:Kl},uu=function(e,t){return(uu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};var hu,cu,pu=new ee,du=new Uint16Array([0,1,2,0,2,3]),fu=(uu(cu=_u,Ml=hu=zi),cu.prototype=null===Ml?Object.create(Ml):(mu.prototype=Ml.prototype,new mu),_u.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Pt(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Pt(this.scale.y)*this._height/this._texture.orig.height)},_u.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},_u.prototype.calculateVertices=function(){var e=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==e._updateID){this._textureID!==e._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=e._updateID;var t=this.transform.worldTransform,i=t.a,r=t.b,n=t.c,s=t.d,o=t.tx,t=t.ty,a=this.vertexData,l=e.trim,e=e.orig,u=this._anchor,h=0,c=0,p=0,d=0,p=l?(h=(c=l.x-u._x*e.width)+l.width,(d=l.y-u._y*e.height)+l.height):(h=(c=-u._x*e.width)+e.width,(d=-u._y*e.height)+e.height);if(a[0]=i*c+n*d+o,a[1]=s*d+r*c+t,a[2]=i*h+n*d+o,a[3]=s*d+r*h+t,a[4]=i*h+n*p+o,a[5]=s*p+r*h+t,a[6]=i*c+n*p+o,a[7]=s*p+r*c+t,this._roundPixels)for(var f=R.RESOLUTION,m=0;m<a.length;++m)a[m]=Math.round((a[m]*f|0)/f)}},_u.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var e=this._texture,t=this.vertexTrimmedData,e=e.orig,i=this._anchor,r=this.transform.worldTransform,n=r.a,s=r.b,o=r.c,a=r.d,l=r.tx,r=r.ty,u=-i._x*e.width,h=u+e.width,i=-i._y*e.height,e=i+e.height;t[0]=n*u+o*i+l,t[1]=a*i+s*u+r,t[2]=n*h+o*i+l,t[3]=a*i+s*h+r,t[4]=n*h+o*e+l,t[5]=a*e+s*h+r,t[6]=n*u+o*e+l,t[7]=a*e+s*u+r},_u.prototype._render=function(e){this.calculateVertices(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},_u.prototype._calculateBounds=function(){var e=this._texture.trim,t=this._texture.orig;!e||e.width===t.width&&e.height===t.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},_u.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._localBounds||(this._localBounds=new ki),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new w),e=this._localBoundsRect),this._localBounds.getRectangle(e)):hu.prototype.getLocalBounds.call(this,e)},_u.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,pu);var e=this._texture.orig.width,t=this._texture.orig.height,i=-e*this.anchor.x;return pu.x>=i&&pu.x<i+e&&(i=-t*this.anchor.y,pu.y>=i&&pu.y<i+t)},_u.prototype.destroy=function(e){hu.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,("boolean"==typeof e?e:e&&e.texture)&&(e="boolean"==typeof e?e:e&&e.baseTexture,this._texture.destroy(!!e)),this._texture=null},_u.from=function(e,t){return new _u(e instanceof te?e:te.from(e,t))},Object.defineProperty(_u.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var t=Pt(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var t=Pt(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"anchor",{get:function(){return this._anchor},set:function(e){this._anchor.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(_u.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||te.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),_u);function mu(){this.constructor=cu}function _u(e){var t=hu.call(this)||this;return t._anchor=new ni(t._onAnchorUpdate,t,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),t._texture=null,t._width=0,t._height=0,t._tint=null,t._tintRGB=null,t.tint=16777215,t.blendMode=$.BLEND_MODES.NORMAL,t._cachedTint=16777215,t.uvs=null,t.texture=e||te.EMPTY,t.vertexData=new Float32Array(8),t.vertexTrimmedData=null,t._transformID=-1,t._textureID=-1,t._transformTrimmedID=-1,t._textureTrimmedID=-1,t.indices=du,t.pluginName="batch",t.isSprite=!0,t._roundPixels=R.ROUND_PIXELS,t}var gu=function(e,t){return(gu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};$.TEXT_GRADIENT=void 0,(Ll=$.TEXT_GRADIENT||($.TEXT_GRADIENT={}))[Ll.LINEAR_VERTICAL=0]="LINEAR_VERTICAL";var vu={align:"left",breakWords:!(Ll[Ll.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"),dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:$.TEXT_GRADIENT.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},yu=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],bu=(x.prototype.clone=function(){var e={};return wu(e,this,vu),new x(e)},x.prototype.reset=function(){wu(this,vu,vu)},Object.defineProperty(x.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"breakWords",{get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(e){e=Tu(e);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fill",{get:function(){return this._fill},set:function(e){e=Tu(e);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(e){!function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return;if(e.length!==t.length)return;for(var i=0;i<e.length;++i)if(e[i]!==t[i])return;return 1}(this._fillGradientStops,e)&&(this._fillGradientStops=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"leading",{get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"stroke",{get:function(){return this._stroke},set:function(e){e=Tu(e);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"trim",{get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)},enumerable:!1,configurable:!0}),x.prototype.toFontString=function(){for(var e="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,t=this.fontFamily,i=(t=Array.isArray(this.fontFamily)?t:this.fontFamily.split(",")).length-1;0<=i;i--){var r=t[i].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&yu.indexOf(r)<0&&(r='"'+r+'"'),t[i]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},x);function x(e){this.styleID=0,this.reset(),wu(this,e,e)}function xu(e){return"number"==typeof e?ft(e):"string"==typeof e&&0===e.indexOf("0x")?e.replace("0x","#"):e}function Tu(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=xu(e[t]);return e}return xu(e)}function wu(e,t,i){for(var r in i)Array.isArray(t[r])?e[r]=t[r].slice():e[r]=t[r]}S.measureText=function(e,t,i,r){void 0===r&&(r=S._canvas),i=null==i?t.wordWrap:i;var n=t.toFontString(),s=S.measureFont(n),o=(0===s.fontSize&&(s.fontSize=t.fontSize,s.ascent=t.fontSize),r.getContext("2d"));o.font=n;for(var a=(i?S.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),l=new Array(a.length),u=0,h=0;h<a.length;h++){var c=o.measureText(a[h]).width+(a[h].length-1)*t.letterSpacing;l[h]=c,u=Math.max(u,c)}n=u+t.strokeThickness,t.dropShadow&&(n+=t.dropShadowDistance),i=t.lineHeight||s.fontSize+t.strokeThickness,r=Math.max(i,s.fontSize+t.strokeThickness)+(a.length-1)*(i+t.leading);return t.dropShadow&&(r+=t.dropShadowDistance),new S(e,t,n,r,a,l,i+t.leading,u,s)},S.wordWrap=function(e,t,i){for(var r=(i=void 0===i?S._canvas:i).getContext("2d"),n=0,s="",o="",a=Object.create(null),l=t.letterSpacing,i=t.whiteSpace,u=S.collapseSpaces(i),h=S.collapseNewlines(i),c=!u,p=t.wordWrapWidth+l,d=S.tokenize(e),f=0;f<d.length;f++){var m=d[f];if(S.isNewline(m)){if(!h){o+=S.addLine(s),c=!u,s="",n=0;continue}m=" "}if(u){var _=S.isBreakingSpace(m),g=S.isBreakingSpace(s[s.length-1]);if(_&&g)continue}_=S.getFromCache(m,l,a,r);if(p<_)if(""!==s&&(o+=S.addLine(s),s="",n=0),S.canBreakWords(m,t.breakWords))for(var v=S.wordWrapSplit(m),y=0;y<v.length;y++){for(var b=v[y],x=1;v[y+x];){var T=v[y+x],w=b[b.length-1];if(S.canBreakChars(w,T,m,y,t.breakWords))break;b+=T,x++}y+=b.length-1;var E=S.getFromCache(b,l,a,r);p<E+n&&(o+=S.addLine(s),c=!1,s="",n=0),s+=b,n+=E}else{0<s.length&&(o+=S.addLine(s),s="",n=0);g=f===d.length-1;o+=S.addLine(m,!g),c=!1,s="",n=0}else p<_+n&&(c=!1,o+=S.addLine(s),s="",n=0),(0<s.length||!S.isBreakingSpace(m)||c)&&(s+=m,n+=_)}return o+=S.addLine(s,!1)},S.addLine=function(e,t){return void 0===t&&(t=!0),e=S.trimRight(e),e=t?e+"\n":e},S.getFromCache=function(e,t,i,r){var n=i[e];return"number"!=typeof n&&(t=e.length*t,n=r.measureText(e).width+t,i[e]=n),n},S.collapseSpaces=function(e){return"normal"===e||"pre-line"===e},S.collapseNewlines=function(e){return"normal"===e},S.trimRight=function(e){if("string"!=typeof e)return"";for(var t=e.length-1;0<=t;t--){var i=e[t];if(!S.isBreakingSpace(i))break;e=e.slice(0,-1)}return e},S.isNewline=function(e){return"string"==typeof e&&0<=S._newlines.indexOf(e.charCodeAt(0))},S.isBreakingSpace=function(e,t){return"string"==typeof e&&0<=S._breakingSpaces.indexOf(e.charCodeAt(0))},S.tokenize=function(e){var t=[],i="";if("string"==typeof e){for(var r=0;r<e.length;r++){var n=e[r],s=e[r+1];S.isBreakingSpace(n,s)||S.isNewline(n)?(""!==i&&(t.push(i),i=""),t.push(n)):i+=n}""!==i&&t.push(i)}return t},S.canBreakWords=function(e,t){return t},S.canBreakChars=function(e,t,i,r,n){return!0},S.wordWrapSplit=function(e){return e.split("")},S.measureFont=function(e){if(S._fonts[e])return S._fonts[e];for(var t={ascent:0,descent:0,fontSize:0},i=S._canvas,r=S._context,n=(r.font=e,S.METRICS_STRING+S.BASELINE_SYMBOL),s=Math.ceil(r.measureText(n).width),o=Math.ceil(r.measureText(S.BASELINE_SYMBOL).width),a=Math.ceil(S.HEIGHT_MULTIPLIER*o),o=o*S.BASELINE_MULTIPLIER|0,l=(i.width=s,i.height=a,r.fillStyle="#f00",r.fillRect(0,0,s,a),r.font=e,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText(n,0,o),r.getImageData(0,0,s,a).data),i=l.length,u=4*s,h=0,c=0,p=!1,h=0;h<o;++h){for(var d=0;d<u;d+=4)if(255!==l[c+d]){p=!0;break}if(p)break;c+=u}for(t.ascent=o-h,c=i-u,p=!1,h=a;o<h;--h){for(d=0;d<u;d+=4)if(255!==l[c+d]){p=!0;break}if(p)break;c-=u}return t.descent=h-o,t.fontSize=t.ascent+t.descent,S._fonts[e]=t},S.clearMetrics=function(e){(e=void 0===e?"":e)?delete S._fonts[e]:S._fonts={}},Object.defineProperty(S,"_canvas",{get:function(){if(!S.__canvas){var t=void 0;try{var e=new OffscreenCanvas(0,0),i=e.getContext("2d");if(i&&i.measureText)return S.__canvas=e;t=R.ADAPTER.createCanvas()}catch(e){t=R.ADAPTER.createCanvas()}t.width=t.height=10,S.__canvas=t}return S.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(S,"_context",{get:function(){return S.__context=S.__context?S.__context:S._canvas.getContext("2d")},enumerable:!1,configurable:!0});var Eu=S;function S(e,t,i,r,n,s,o,a,l){this.text=e,this.style=t,this.width=i,this.height=r,this.lines=n,this.lineWidths=s,this.lineHeight=o,this.maxLineWidth=a,this.fontProperties=l}Eu._fonts={},Eu.METRICS_STRING="|ÉqÅ",Eu.BASELINE_SYMBOL="M",Eu.BASELINE_MULTIPLIER=1.4,Eu.HEIGHT_MULTIPLIER=2,Eu._newlines=[10,13];var Su,Au,ku={texture:!0,children:!(Eu._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]),baseTexture:!0},Pu=(gu(Au=Ru,Ml=Su=fu),Au.prototype=null===Ml?Object.create(Ml):(Ou.prototype=Ml.prototype,new Ou),Ru.prototype.updateText=function(e){var t=this._style;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),this.dirty||!e){this._font=this._style.toFontString();for(var i,r,n=this.context,s=Eu.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),e=s.width,o=s.height,a=s.lines,l=s.lineHeight,u=s.lineWidths,h=s.maxLineWidth,c=s.fontProperties,p=(this.canvas.width=Math.ceil(Math.ceil(Math.max(1,e)+2*t.padding)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,o)+2*t.padding)*this._resolution),n.scale(this._resolution,this._resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.lineWidth=t.strokeThickness,n.textBaseline=t.textBaseline,n.lineJoin=t.lineJoin,n.miterLimit=t.miterLimit,t.dropShadow?2:1),d=0;d<p;++d){var f,m,_=t.dropShadow&&0===d,g=_?Math.ceil(Math.max(1,o)+2*t.padding):0,v=g*this._resolution,y=(_?(n.fillStyle="black",n.strokeStyle="black",_=dt("number"==typeof(_=t.dropShadowColor)?_:mt(_)),f=t.dropShadowBlur*this._resolution,m=t.dropShadowDistance*this._resolution,n.shadowColor="rgba("+255*_[0]+","+255*_[1]+","+255*_[2]+","+t.dropShadowAlpha+")",n.shadowBlur=f,n.shadowOffsetX=Math.cos(t.dropShadowAngle)*m,n.shadowOffsetY=Math.sin(t.dropShadowAngle)*m+v):(n.fillStyle=this._generateFillStyle(t,a,s),n.strokeStyle=t.stroke,n.shadowColor="black",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0),(l-c.fontSize)/2);(!Ru.nextLineHeightBehavior||l-c.fontSize<0)&&(y=0);for(var b=0;b<a.length;b++)i=t.strokeThickness/2,r=t.strokeThickness/2+b*l+c.ascent+y,"right"===t.align?i+=h-u[b]:"center"===t.align&&(i+=(h-u[b])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(a[b],i+t.padding,r+t.padding-g,!0),t.fill&&this.drawLetterSpacing(a[b],i+t.padding,r+t.padding-g)}this.updateTexture()}},Ru.prototype.drawLetterSpacing=function(e,t,i,r){void 0===r&&(r=!1);var n=this._style.letterSpacing,s=Ru.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(0===n||s)s&&(this.context.letterSpacing=n,this.context.textLetterSpacing=n),r?this.context.strokeText(e,t,i):this.context.fillText(e,t,i);else for(var o=t,a=Array.from?Array.from(e):e.split(""),l=this.context.measureText(e).width,u=0;u<a.length;++u){for(var h=a[u],c=(r?this.context.strokeText(h,o,i):this.context.fillText(h,o,i),""),p=u+1;p<a.length;++p)c+=a[p];o+=l-(h=this.context.measureText(c).width)+n,l=h}},Ru.prototype.updateTexture=function(){var e=this.canvas,t=(!this._style.trim||(t=zt(e)).data&&(e.width=t.width,e.height=t.height,this.context.putImageData(t.data,0,0)),this._texture),i=this._style,i=i.trim?0:i.padding,r=t.baseTexture;t.trim.width=t._frame.width=e.width/this._resolution,t.trim.height=t._frame.height=e.height/this._resolution,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-2*i,t.orig.height=t._frame.height-2*i,this._onTextureUpdate(),r.setRealSize(e.width,e.height,this._resolution),t.updateUvs(),this.dirty=!1},Ru.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),Su.prototype._render.call(this,e)},Ru.prototype.updateTransform=function(){this.updateText(!0),Su.prototype.updateTransform.call(this)},Ru.prototype.getBounds=function(e,t){return this.updateText(!0),-1===this._textureID&&(e=!1),Su.prototype.getBounds.call(this,e,t)},Ru.prototype.getLocalBounds=function(e){return this.updateText(!0),Su.prototype.getLocalBounds.call(this,e)},Ru.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)},Ru.prototype._generateFillStyle=function(e,t,i){var r=e.fill;if(!Array.isArray(r))return r;if(1===r.length)return r[0];var n=e.dropShadow?e.dropShadowDistance:0,s=e.padding||0,o=this.canvas.width/this._resolution-n-2*s,a=this.canvas.height/this._resolution-n-2*s,l=r.slice(),u=e.fillGradientStops.slice();if(!u.length)for(var h=l.length+1,c=1;c<h;++c)u.push(c/h);if(l.unshift(r[0]),u.unshift(0),l.push(r[r.length-1]),u.push(1),e.fillGradientType===$.TEXT_GRADIENT.LINEAR_VERTICAL)for(var p=this.context.createLinearGradient(o/2,s,o/2,a+s),d=i.fontProperties.fontSize+e.strokeThickness,c=0;c<t.length;c++)for(var f=i.lineHeight*(c-1)+d,m=i.lineHeight*c,_=m,g=m+d,v=i.lineHeight*(c+1),y=g,b=((y=c+1<t.length&&v<g?(g+v)/2:y)-(_=0<c&&m<f?(m+f)/2:_))/a,x=0;x<l.length;x++){var T=0,T="number"==typeof u[x]?u[x]:x/l.length,T=Math.min(1,Math.max(0,_/a+T*b)),T=Number(T.toFixed(5));p.addColorStop(T,l[x])}else{p=this.context.createLinearGradient(s,a/2,o+s,a/2);for(var w=l.length+1,E=1,c=0;c<l.length;c++){var S=void 0,S="number"==typeof u[c]?u[c]:E/w;p.addColorStop(S,l[c]),E++}}return p},Ru.prototype.destroy=function(e){"boolean"==typeof e&&(e={children:e}),e=Object.assign({},ku,e),Su.prototype.destroy.call(this,e),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(Ru.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var t=Pt(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var t=Pt(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"style",{get:function(){return this._style},set:function(e){(e=e||{})instanceof bu?this._style=e:this._style=new bu(e),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"text",{get:function(){return this._text},set:function(e){e=String(null==e?"":e),this._text!==e&&(this._text=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ru.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Ru.nextLineHeightBehavior=!1,Ru.experimentalLetterSpacing=!1,Ru);function Ou(){this.constructor=Au}function Ru(e,t,i){var r=this,n=!1,s=(i||(i=R.ADAPTER.createCanvas(),n=!0),i.width=3,i.height=3,te.from(i));return s.orig=new w,s.trim=new w,(r=Su.call(this,s)||this)._ownCanvas=n,r.canvas=i,r.context=i.getContext("2d"),r._resolution=R.RESOLUTION,r._autoResolution=!0,r._text=null,r._style=null,r._styleListener=null,r._font="",r.text=e,r.style=t,r.localStyleID=-1,r}R.UPLOADS_PER_FRAME=4;var Cu=function(e,t){return(Cu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};Iu.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},Iu.prototype.allowedToUpload=function(){return 0<this.itemsLeft--};var Mu=Iu;function Iu(e){this.maxItemsPerFrame=e,this.itemsLeft=0}function Du(e,t){var i=!1;if(e&&e._textures&&e._textures.length)for(var r,n=0;n<e._textures.length;n++)e._textures[n]instanceof te&&(r=e._textures[n].baseTexture,-1===t.indexOf(r)&&(t.push(r),i=!0));return i}function Lu(e,t){return e.baseTexture instanceof C&&(e=e.baseTexture,-1===t.indexOf(e)&&t.push(e),!0)}function Fu(e,t){return!!(e._texture&&e._texture instanceof te)&&(e=e._texture.baseTexture,-1===t.indexOf(e)&&t.push(e),!0)}function Nu(e,t){return t instanceof Pu&&(t.updateText(!0),!0)}function zu(e,t){return t instanceof bu&&(t=t.toFontString(),Eu.measureFont(t),!0)}function Bu(e,t){return e instanceof Pu&&(-1===t.indexOf(e.style)&&t.push(e.style),-1===t.indexOf(e)&&t.push(e),e=e._texture.baseTexture,-1===t.indexOf(e)&&t.push(e),!0)}function Uu(e,t){return e instanceof bu&&(-1===t.indexOf(e)&&t.push(e),!0)}ju.prototype.upload=function(i,r){var n=this;return"function"==typeof i&&(r=i,i=null),r&&Mt("6.5.0","BasePrepare.upload callback is deprecated, use the return Promise instead."),new Promise(function(e){i&&n.add(i);function t(){null!=r&&r(),e()}n.queue.length?(n.completes.push(t),n.ticking||(n.ticking=!0,Wi.system.addOnce(n.tick,n,$.UPDATE_PRIORITY.UTILITY))):t()})},ju.prototype.tick=function(){setTimeout(this.delayedTick,0)},ju.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var e=this.queue[0],t=!1;if(e&&!e._destroyed)for(var i=0,r=this.uploadHooks.length;i<r;i++)if(this.uploadHooks[i](this.uploadHookHelper,e)){this.queue.shift(),t=!0;break}t||this.queue.shift()}if(this.queue.length)Wi.system.addOnce(this.tick,this,$.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;for(var n=this.completes.slice(0),i=this.completes.length=0,r=n.length;i<r;i++)n[i]()}},ju.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},ju.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},ju.prototype.add=function(e){for(var t=0,i=this.addHooks.length;t<i&&!this.addHooks[t](e,this.queue);t++);if(e instanceof zi)for(t=e.children.length-1;0<=t;t--)this.add(e.children[t]);return this},ju.prototype.destroy=function(){this.ticking&&Wi.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null};Ll=ju;function ju(e){var t=this;this.limiter=new Mu(R.UPLOADS_PER_FRAME),this.renderer=e,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){t.queue&&t.prepareItems()},this.registerFindHook(Bu),this.registerFindHook(Uu),this.registerFindHook(Du),this.registerFindHook(Lu),this.registerFindHook(Fu),this.registerUploadHook(Nu),this.registerUploadHook(zu)}function Gu(e,t){return t instanceof C&&(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0)}function Xu(e,t){if(!(t instanceof au))return!1;for(var i=t.geometry,r=(t.finishPoly(),i.updateBatches(),i.batches),n=0;n<r.length;n++){var s=r[n].style.texture;s&&Gu(e,s.baseTexture)}return i.batchable||e.geometry.bind(i,t._resolveDirectShader(e)),!0}function Hu(e,t){return e instanceof au&&(t.push(e),!0)}Cu(Wu=qu,Ml=Yu=Ll),Wu.prototype=null===Ml?Object.create(Ml):(Vu.prototype=Ml.prototype,new Vu),qu.extension={name:"prepare",type:$.ExtensionType.RendererPlugin};var Yu,Wu,Ml=qu;function Vu(){this.constructor=Wu}function qu(e){e=Yu.call(this,e)||this;return e.uploadHookHelper=e.renderer,e.registerFindHook(Hu),e.registerUploadHook(Gu),e.registerUploadHook(Xu),e}Zu.prototype.beginFrame=function(){this.frameStart=Date.now()},Zu.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds};var Ku=Zu;function Zu(e){this.maxMilliseconds=e,this.frameStart=0}Qu.prototype._updateResolution=function(e){var t=this.data.meta.scale,e=Gt(e=void 0===e?null:e,null);return 1!==(e=null===e?void 0!==t?parseFloat(t):1:e)&&this.baseTexture.setResolution(e),e},Qu.prototype.parse=function(i){var e=this;return i&&Mt("6.5.0","Spritesheet.parse callback is deprecated, use the return Promise instead."),new Promise(function(t){e._callback=function(e){null!=i&&i(e),t(e)},e._batchIndex=0,e._frameKeys.length<=Qu.BATCH_SIZE?(e._processFrames(0),e._processAnimations(),e._parseComplete()):e._nextBatch()})},Qu.prototype._processFrames=function(e){for(var t=e,i=Qu.BATCH_SIZE;t-e<i&&t<this._frameKeys.length;){var r,n,s,o=this._frameKeys[t],a=this._frames[o],l=a.frame;l&&(r=s=null,n=!1!==a.trimmed&&a.sourceSize?a.sourceSize:a.frame,n=new w(0,0,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution),s=a.rotated?new w(Math.floor(l.x)/this.resolution,Math.floor(l.y)/this.resolution,Math.floor(l.h)/this.resolution,Math.floor(l.w)/this.resolution):new w(Math.floor(l.x)/this.resolution,Math.floor(l.y)/this.resolution,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution),!1!==a.trimmed&&a.spriteSourceSize&&(r=new w(Math.floor(a.spriteSourceSize.x)/this.resolution,Math.floor(a.spriteSourceSize.y)/this.resolution,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution)),this.textures[o]=new te(this.baseTexture,s,n,r,a.rotated?2:0,a.anchor),te.addToCache(this.textures[o],o)),t++}},Qu.prototype._processAnimations=function(){var e,t=this.data.animations||{};for(e in t){this.animations[e]=[];for(var i=0;i<t[e].length;i++){var r=t[e][i];this.animations[e].push(this.textures[r])}}},Qu.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},Qu.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*Qu.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*Qu.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},Qu.prototype.destroy=function(e){for(var t in void 0===e&&(e=!1),this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(null!=(e=this._texture)&&e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]},Qu.BATCH_SIZE=1e3;var Ju=Qu;function Qu(e,t,i){void 0===i&&(i=null),this.linkedSheets=[],this._texture=e instanceof te?e:null,this.baseTexture=e instanceof C?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;e=this.baseTexture.resource;this.resolution=this._updateResolution(i||(e?e.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}eh.use=function(r,i){var n=this,e=r.name+"_image";if(r.data&&r.type===$.LoaderResource.TYPE.JSON&&r.data.frames&&!n.resources[e]){var t=null==(t=null==(t=r.data)?void 0:t.meta)?void 0:t.related_multi_packs;if(Array.isArray(t))for(var s=0,o=t;s<o.length;s++)!function(e){var t,i;"string"!=typeof e||(t=e.replace(".json",""),i=nt.resolve(r.url.replace(n.baseUrl,""),e),n.resources[t]||Object.values(n.resources).some(function(e){return nt.format(nt.parse(e.url))===i}))||(e={crossOrigin:r.crossOrigin,loadType:$.LoaderResource.LOAD_TYPE.XHR,xhrType:$.LoaderResource.XHR_RESPONSE_TYPE.JSON,parentResource:r,metadata:r.metadata},n.add(t,i,e))}(o[s]);var t={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},a=eh.getResourcePath(r,n.baseUrl);n.add(e,a,t,function(e){var t;e.error?i(e.error):(t=new Ju(e.texture,r.data,r.url)).parse().then(function(){r.spritesheet=t,r.textures=t.textures,i()})})}else i()},eh.getResourcePath=function(e,t){return e.isDataUrl?e.data.meta.image:nt.resolve(e.url.replace(t,""),e.data.meta.image)},eh.extension=$.ExtensionType.Loader;var $u=eh;function eh(){}var th=function(e,t){return(th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function ih(e,t){function i(){this.constructor=e}th(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var rh,nh=new ee,sh=(ih(oh,rh=fu),Object.defineProperty(oh.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(e){this.uvMatrix.clampMargin=e,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(oh.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(oh.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copyFrom(e)},enumerable:!1,configurable:!0}),oh.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},oh.prototype._render=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},oh.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,i,r)},oh.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new w),e=this._localBoundsRect),this._bounds.getRectangle(e)):rh.prototype.getLocalBounds.call(this,e)},oh.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,nh);var e=this._width,t=this._height,i=-e*this.anchor._x;if(nh.x>=i&&nh.x<i+e){i=-t*this.anchor._y;if(nh.y>=i&&nh.y<i+t)return!0}return!1},oh.prototype.destroy=function(e){rh.prototype.destroy.call(this,e),this.tileTransform=null,this.uvMatrix=null},oh.from=function(e,t){return new oh(e instanceof te?e:te.from(e,t),t.width,t.height)},Object.defineProperty(oh.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(oh.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),oh);function oh(e,t,i){void 0===t&&(t=100),void 0===i&&(i=100);var r=rh.call(this,e)||this;return r.tileTransform=new Si,r._width=t,r._height=i,r.uvMatrix=r.texture.uvMatrix||new ps(e),r.pluginName="tilingSprite",r.uvRespectAnchor=!1,r}var ah,lh="#version 100\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n",uh=new oi,hh=(ih(ch,ah=yn),ch.prototype.contextChange=function(){var e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=ss.from(lh,"#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 texSample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = texSample * uColor;\n}\n",t),this.shader=1<e.context.webGLVersion?ss.from("#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n fragmentColor = texSample * uColor;\n}\n",t):ss.from(lh,"#version 100\n#ifdef GL_EXT_shader_texture_lod\n #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n #ifdef GL_EXT_shader_texture_lod\n vec4 texSample = unclamped == coord\n ? texture2D(uSampler, coord) \n : texture2DLodEXT(uSampler, coord, 0);\n #else\n vec4 texSample = texture2D(uSampler, coord);\n #endif\n\n gl_FragColor = texSample * uColor;\n}\n",t)},ch.prototype.render=function(e){var t=this.renderer,i=this.quad,r=i.vertices,n=(r[0]=r[6]=e._width*-e.anchor.x,r[1]=r[3]=e._height*-e.anchor.y,r[2]=r[4]=e._width*(1-e.anchor.x),r[5]=r[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor?e.anchor.x:0),s=e.uvRespectAnchor?e.anchor.y:0,n=((r=i.uvs)[0]=r[6]=-n,r[1]=r[3]=-s,r[2]=r[4]=1-n,r[5]=r[7]=1-s,i.invalidate(),e._texture),r=n.baseTexture,s=0<r.alphaMode,o=e.tileTransform.localTransform,a=e.uvMatrix,l=r.isPowerOfTwo&&n.frame.width===r.width&&n.frame.height===r.height,r=(l&&(r._glTextures[t.CONTEXT_UID]?l=r.wrapMode!==$.WRAP_MODES.CLAMP:r.wrapMode===$.WRAP_MODES.CLAMP&&(r.wrapMode=$.WRAP_MODES.REPEAT)),l?this.simpleShader:this.shader),u=n.width,h=n.height,c=e._width,p=e._height;uh.set(o.a*u/c,o.b*u/p,o.c*h/c,o.d*h/p,o.tx/c,o.ty/p),uh.invert(),l?uh.prepend(a.mapCoord):(r.uniforms.uMapCoord=a.mapCoord.toArray(!0),r.uniforms.uClampFrame=a.uClampFrame,r.uniforms.uClampOffset=a.uClampOffset),r.uniforms.uTransform=uh.toArray(!0),r.uniforms.uColor=bt(e.tint,e.worldAlpha,r.uniforms.uColor,s),r.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),r.uniforms.uSampler=n,t.shader.bind(r),t.geometry.bind(i),this.state.blendMode=gt(e.blendMode,s),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},ch.extension={name:"tilingSprite",type:$.ExtensionType.RendererPlugin},ch);function ch(e){var t=ah.call(this,e)||this;return e.runners.contextChange.add(t),t.quad=new ln,t.state=as.for2d(),t}var ph=function(e,t){return(ph=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function dh(e,t){function i(){this.constructor=e}ph(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}mh.prototype.update=function(e){!e&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID||(this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID,e=this.uvBuffer.data,this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++)};var fh=mh;function mh(e,t){this.uvBuffer=e,this.uvMatrix=t,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}var _h,gh=new ee,vh=new ei,yh=(dh(bh,_h=zi),Object.defineProperty(bh.prototype,"geometry",{get:function(){return this._geometry},set:function(e){this._geometry!==e&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=e,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"material",{get:function(){return this.shader},set:function(e){this.shader=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(e){this.shader.tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(bh.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(e){this.shader.texture=e},enumerable:!1,configurable:!0}),bh.prototype._render=function(e){var t=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===$.DRAW_MODES.TRIANGLES&&t.length<2*bh.BATCHABLE_SIZE?this._renderToBatch(e):this._renderDefault(e)},bh.prototype._renderDefault=function(e){var t=this.shader;t.alpha=this.worldAlpha,t.update&&t.update(),e.batch.flush(),t.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),e.shader.bind(t),e.state.set(this.state),e.geometry.bind(this.geometry,t),e.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},bh.prototype._renderToBatch=function(e){var t=this.geometry,i=this.shader,t=(i.uvMatrix&&(i.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=t.indexBuffer.data,this._tintRGB=i._tintRGB,this._texture=i.texture,this.material.pluginName);e.batch.setObjectRenderer(e.plugins[t]),e.plugins[t].render(this)},bh.prototype.calculateVertices=function(){var e=this.geometry.buffers[0],t=e.data,e=e._updateID;if(e!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length));for(var i=this.transform.worldTransform,r=i.a,n=i.b,s=i.c,o=i.d,a=i.tx,l=i.ty,u=this.vertexData,h=0;h<u.length/2;h++){var c=t[2*h],p=t[2*h+1];u[2*h]=r*c+s*p+a,u[2*h+1]=n*c+o*p+l}if(this._roundPixels)for(var d=R.RESOLUTION,h=0;h<u.length;++h)u[h]=Math.round((u[h]*d|0)/d);this.vertexDirty=e}},bh.prototype.calculateUvs=function(){var e=this.geometry.buffers[1],t=this.shader;t.uvMatrix.isSimple?this.uvs=e.data:(this.batchUvs||(this.batchUvs=new fh(e,t.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},bh.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},bh.prototype.containsPoint=function(e){if(this.getBounds().contains(e.x,e.y)){this.worldTransform.applyInverse(e,gh);for(var t=this.geometry.getBuffer("aVertexPosition").data,i=vh.points,r=this.geometry.getIndex().data,n=r.length,s=4===this.drawMode?3:1,o=0;o+2<n;o+=s){var a=2*r[o],l=2*r[o+1],u=2*r[o+2];if(i[0]=t[a],i[1]=t[1+a],i[2]=t[l],i[3]=t[1+l],i[4]=t[u],i[5]=t[1+u],vh.contains(gh.x,gh.y))return!0}}return!1},bh.prototype.destroy=function(e){_h.prototype.destroy.call(this,e),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null},bh.BATCHABLE_SIZE=100,bh);function bh(e,t,i,r){void 0===r&&(r=$.DRAW_MODES.TRIANGLES);var n=_h.call(this)||this;return n.geometry=e,n.shader=t,n.state=i||as.for2d(),n.drawMode=r,n.start=0,n.size=0,n.uvs=null,n.indices=null,n.vertexData=new Float32Array(1),n.vertexDirty=-1,n._transformID=-1,n._roundPixels=R.ROUND_PIXELS,n.batchUvs=null,n}dh(wh,xh=ss),Object.defineProperty(wh.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)},enumerable:!1,configurable:!0}),Object.defineProperty(wh.prototype,"alpha",{get:function(){return this._alpha},set:function(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(wh.prototype,"tint",{get:function(){return this._tint},set:function(e){e!==this._tint&&(this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),wh.prototype.update=function(){var e;this._colorDirty&&(this._colorDirty=!1,e=this.texture.baseTexture,bt(this._tint,this._alpha,this.uniforms.uColor,e.alphaMode)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)};var xh,Th=wh;function wh(e,t){var i=this,r={uSampler:e,alpha:1,uTextureMatrix:oi.IDENTITY,uColor:new Float32Array([1,1,1,1])};return(t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t)).uniforms&&Object.assign(r,t.uniforms),(i=xh.call(this,t.program||rs.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n"),r)||this)._colorDirty=!1,i.uvMatrix=new ps(e),i.batchable=void 0===t.program,i.pluginName=t.pluginName,i.tint=t.tint,i.alpha=t.alpha,i}dh(Ah,Eh=tn),Object.defineProperty(Ah.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0});var Eh,Sh=Ah;function Ah(e,t,i){var r=Eh.call(this)||this,e=new Kr(e),t=new Kr(t,!0),i=new Kr(i,!0,!0);return r.addAttribute("aVertexPosition",e,2,!1,$.TYPES.FLOAT).addAttribute("aTextureCoord",t,2,!1,$.TYPES.FLOAT).addIndex(i),r._updateId=-1,r}var kh=function(e,t){return(kh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};var Ph=function(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]},Oh=(Rh.test=function(e){return"string"==typeof e&&0===e.indexOf("info face=")},Rh.parse=function(e){var t,i=e.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(t in i){var n,s=i[t].match(/^[a-z]+/gm)[0],o=i[t].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),a={};for(n in o){var l=o[n].split("="),u=l[0],l=l[1].replace(/"/gm,""),h=parseFloat(l),l=isNaN(h)?l:h;a[u]=l}r[s].push(a)}var c=new Ph;return r.info.forEach(function(e){return c.info.push({face:e.face,size:parseInt(e.size,10)})}),r.common.forEach(function(e){return c.common.push({lineHeight:parseInt(e.lineHeight,10)})}),r.page.forEach(function(e){return c.page.push({id:parseInt(e.id,10),file:e.file})}),r.char.forEach(function(e){return c.char.push({id:parseInt(e.id,10),page:parseInt(e.page,10),x:parseInt(e.x,10),y:parseInt(e.y,10),width:parseInt(e.width,10),height:parseInt(e.height,10),xoffset:parseInt(e.xoffset,10),yoffset:parseInt(e.yoffset,10),xadvance:parseInt(e.xadvance,10)})}),r.kerning.forEach(function(e){return c.kerning.push({first:parseInt(e.first,10),second:parseInt(e.second,10),amount:parseInt(e.amount,10)})}),r.distanceField.forEach(function(e){return c.distanceField.push({distanceRange:parseInt(e.distanceRange,10),fieldType:e.fieldType})}),c},Rh);function Rh(){}Mh.test=function(e){return e instanceof XMLDocument&&e.getElementsByTagName("page").length&&null!==e.getElementsByTagName("info")[0].getAttribute("face")},Mh.parse=function(e){for(var t=new Ph,i=e.getElementsByTagName("info"),r=e.getElementsByTagName("common"),n=e.getElementsByTagName("page"),s=e.getElementsByTagName("char"),o=e.getElementsByTagName("kerning"),a=e.getElementsByTagName("distanceField"),l=0;l<i.length;l++)t.info.push({face:i[l].getAttribute("face"),size:parseInt(i[l].getAttribute("size"),10)});for(l=0;l<r.length;l++)t.common.push({lineHeight:parseInt(r[l].getAttribute("lineHeight"),10)});for(l=0;l<n.length;l++)t.page.push({id:parseInt(n[l].getAttribute("id"),10)||0,file:n[l].getAttribute("file")});for(l=0;l<s.length;l++){var u=s[l];t.char.push({id:parseInt(u.getAttribute("id"),10),page:parseInt(u.getAttribute("page"),10)||0,x:parseInt(u.getAttribute("x"),10),y:parseInt(u.getAttribute("y"),10),width:parseInt(u.getAttribute("width"),10),height:parseInt(u.getAttribute("height"),10),xoffset:parseInt(u.getAttribute("xoffset"),10),yoffset:parseInt(u.getAttribute("yoffset"),10),xadvance:parseInt(u.getAttribute("xadvance"),10)})}for(l=0;l<o.length;l++)t.kerning.push({first:parseInt(o[l].getAttribute("first"),10),second:parseInt(o[l].getAttribute("second"),10),amount:parseInt(o[l].getAttribute("amount"),10)});for(l=0;l<a.length;l++)t.distanceField.push({fieldType:a[l].getAttribute("fieldType"),distanceRange:parseInt(a[l].getAttribute("distanceRange"),10)});return t};var Ch=Mh;function Mh(){}Dh.test=function(e){return"string"==typeof e&&-1<e.indexOf("<font>")&&(e=(new globalThis.DOMParser).parseFromString(e,"text/xml"),Ch.test(e))},Dh.parse=function(e){e=(new globalThis.DOMParser).parseFromString(e,"text/xml");return Ch.parse(e)};var Ih=Dh;function Dh(){}var Lh=[Oh,Ch,Ih];function Fh(e){for(var t=0;t<Lh.length;t++)if(Lh[t].test(e))return Lh[t];return null}function Nh(e,t,i,r,n,s,o){var a,l=i.text,u=i.fontProperties,r=(t.translate(r,n),t.scale(s,s),o.strokeThickness/2),n=-o.strokeThickness/2;t.font=o.toFontString(),t.lineWidth=o.strokeThickness,t.textBaseline=o.textBaseline,t.lineJoin=o.lineJoin,t.miterLimit=o.miterLimit,t.fillStyle=function(e,t,i,r,n,s){var o=i.fill;if(!Array.isArray(o))return o;if(1===o.length)return o[0];var a=i.dropShadow?i.dropShadowDistance:0,l=i.padding||0,u=e.width/r-a-2*l,h=e.height/r-a-2*l,c=o.slice(),p=i.fillGradientStops.slice();if(!p.length)for(var d=c.length+1,f=1;f<d;++f)p.push(f/d);if(c.unshift(o[0]),p.unshift(0),c.push(o[o.length-1]),p.push(1),i.fillGradientType===$.TEXT_GRADIENT.LINEAR_VERTICAL)for(var m=t.createLinearGradient(u/2,l,u/2,h+l),_=0,g=(s.fontProperties.fontSize+i.strokeThickness)/h,f=0;f<n.length;f++)for(var v=s.lineHeight*f,y=0;y<c.length;y++){var b=0,b="number"==typeof p[y]?p[y]:y/c.length,b=Math.max(_,v/h+b*g),b=Math.min(b,1);m.addColorStop(b,c[y]),_=b}else{m=t.createLinearGradient(l,h/2,u+l,h/2);for(var x=c.length+1,T=1,f=0;f<c.length;f++){var w=void 0,w="number"==typeof p[f]?p[f]:T/x;m.addColorStop(w,c[f]),T++}}return m}(e,t,o,s,[l],i),t.strokeStyle=o.stroke,o.dropShadow?(e=dt("number"==typeof(e=o.dropShadowColor)?e:mt(e)),a=o.dropShadowBlur*s,s=o.dropShadowDistance*s,t.shadowColor="rgba("+255*e[0]+","+255*e[1]+","+255*e[2]+","+o.dropShadowAlpha+")",t.shadowBlur=a,t.shadowOffsetX=Math.cos(o.dropShadowAngle)*s,t.shadowOffsetY=Math.sin(o.dropShadowAngle)*s):(t.shadowColor="black",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0),o.stroke&&o.strokeThickness&&t.strokeText(l,r,n+i.lineHeight-u.descent),o.fill&&t.fillText(l,r,n+i.lineHeight-u.descent),t.setTransform(1,0,0,1,0,0),t.fillStyle="rgba(0, 0, 0, 0)"}function zh(e){return Array.from?Array.from(e):e.split("")}function Bh(e){return e.codePointAt?e.codePointAt(0):e.charCodeAt(0)}jh.prototype.destroy=function(){for(var e in this.chars)this.chars[e].texture.destroy(),this.chars[e].texture=null;for(var e in this.pageTextures)this._ownsTextures&&this.pageTextures[e].destroy(!0),this.pageTextures[e]=null;this.chars=null,this.pageTextures=null},jh.install=function(e,t,i){var r;if(e instanceof Ph)r=e;else{var n=Fh(e);if(!n)throw new Error("Unrecognized data format for font.");r=n.parse(e)}n=new jh(r,t=t instanceof te?[t]:t,i);return jh.available[n.font]=n},jh.uninstall=function(e){var t=jh.available[e];if(!t)throw new Error("No font found named '"+e+"'");t.destroy(),delete jh.available[e]},jh.from=function(e,t,i){if(!e)throw new Error("[BitmapFont] Property `name` is required.");for(var r,n,s,i=Object.assign({},jh.defaultOptions,i),o=i.chars,a=i.padding,l=i.resolution,u=i.textureWidth,h=i.textureHeight,c=function(e){for(var t=[],i=0,r=(e="string"==typeof e?[e]:e).length;i<r;i++){var n=e[i];if(Array.isArray(n)){if(2!==n.length)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+n.length+".");var s=n[0].charCodeAt(0),o=n[1].charCodeAt(0);if(o<s)throw new Error("[BitmapFont]: Invalid character range.");for(var a=s,l=o;a<=l;a++)t.push(String.fromCharCode(a))}else t.push.apply(t,zh(n))}if(0===t.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return t}(o),p=t instanceof bu?t:new bu(t),d=u,f=new Ph,m=(f.info[0]={face:p.fontFamily,size:p.fontSize},f.common[0]={lineHeight:p.fontSize},0),_=0,g=0,v=[],y=0;y<c.length;y++){r||((r=R.ADAPTER.createCanvas()).width=u,r.height=h,n=r.getContext("2d"),s=new C(r,{resolution:l}),v.push(new te(s)),f.page.push({id:v.length-1,file:""}));var b=Eu.measureText(c[y],p,!1,r),x=b.width,T=Math.ceil(b.height),w=Math.ceil(("italic"===p.fontStyle?2:1)*x);if(h-T*l<=_){if(0===_)throw new Error("[BitmapFont] textureHeight "+h+"px is too small for "+p.fontSize+"px fonts");--y,s=n=r=null,g=m=_=0}else{g=Math.max(T+b.fontProperties.descent,g);d<=w*l+m?(--y,_+=g*l,_=Math.ceil(_),g=m=0):(Nh(r,n,b,m,_,l,p),b=Bh(b.text),f.char.push({id:b,page:v.length-1,x:m/l,y:_/l,width:w,height:T,xoffset:0,yoffset:0,xadvance:Math.ceil(x-(p.dropShadow?p.dropShadowDistance:0)-(p.stroke?p.strokeThickness:0))}),m+=(w+2*a)*l,m=Math.ceil(m))}}for(var y=0,E=c.length;y<E;y++)for(var S=c[y],A=0;A<E;A++){var k=c[A],P=n.measureText(S).width,O=n.measureText(k).width,P=n.measureText(S+k).width-(P+O);P&&f.kerning.push({first:Bh(S),second:Bh(k),amount:P})}i=new jh(f,v,!0);return void 0!==jh.available[e]&&jh.uninstall(e),jh.available[e]=i},jh.ALPHA=[["a","z"],["A","Z"]," "],jh.NUMERIC=[["0","9"]],jh.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],jh.ASCII=[[" ","~"]],jh.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:jh.ALPHANUMERIC},jh.available={};var Uh=jh;function jh(e,t,i){var r=e.info[0],n=e.common[0],s=e.page[0],o=e.distanceField[0],a=Gt(s.file),l={};this._ownsTextures=i,this.font=r.face,this.size=r.size,this.lineHeight=n.lineHeight/a,this.chars={},this.pageTextures=l;for(var u=0;u<e.page.length;u++){var h=e.page[u],c=h.id,h=h.file;l[c]=t instanceof Array?t[u]:t[h],null!=o&&o.fieldType&&"none"!==o.fieldType&&(l[c].baseTexture.alphaMode=$.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA,l[c].baseTexture.mipmap=$.MIPMAP_MODES.OFF)}for(u=0;u<e.char.length;u++){var p=e.char[u],c=p.id,p=p.page,d=e.char[u],f=d.x,m=d.y,_=d.width,g=d.height,v=d.xoffset,y=d.yoffset,d=d.xadvance,f=(m/=a,_/=a,g/=a,v/=a,y/=a,d/=a,new w((f/=a)+l[p].frame.x/a,m+l[p].frame.y/a,_,g));this.chars[c]={xOffset:v,yOffset:y,xAdvance:d,kerning:{},texture:new te(l[p].baseTexture,f),page:p}}for(u=0;u<e.kerning.length;u++){var b=e.kerning[u],x=b.first,T=b.second,b=b.amount;x/=a,T/=a,b/=a,this.chars[T]&&(this.chars[T].kerning[x]=b)}this.distanceFieldRange=null==o?void 0:o.distanceRange,this.distanceFieldType=null!=(i=null==(s=null==o?void 0:o.fieldType)?void 0:s.toLowerCase())?i:"none"}var Gh,Xh,Hh=[],Yh=[],Wh=[],Vh=(kh(Xh=Kh,Vh=Gh=zi),Xh.prototype=null===Vh?Object.create(Vh):(qh.prototype=Vh.prototype,new qh),Kh.prototype.updateText=function(){for(var e=Uh.available[this._fontName],t=this._fontSize/e.size,i=new ee,r=[],n=[],s=[],o=zh(this._text.replace(/(?:\r\n|\r)/g,"\n")||" "),F=this._maxWidth*e.size/this._fontSize,N="none"===e.distanceFieldType?Hh:Yh,a=null,l=0,u=0,h=0,c=-1,p=0,z=0,B=0,d=0,f=0;f<o.length;f++){var m,_,U=Bh(S=o[f]);/(?:\s)/.test(S)&&(c=f,p=l,d++),"\r"===S||"\n"===S?(n.push(l),s.push(-1),u=Math.max(u,l),++h,++z,i.x=0,i.y+=e.lineHeight,a=null,d=0):(m=e.chars[U])&&(a&&m.kerning[a]&&(i.x+=m.kerning[a]),(_=Wh.pop()||{texture:te.EMPTY,line:0,charCode:0,prevSpaces:0,position:new ee}).texture=m.texture,_.line=h,_.charCode=U,_.position.x=i.x+m.xOffset+this._letterSpacing/2,_.position.y=i.y+m.yOffset,_.prevSpaces=d,r.push(_),l=_.position.x+Math.max(m.xAdvance-m.xOffset,m.texture.orig.width),i.x+=m.xAdvance+this._letterSpacing,B=Math.max(B,m.yOffset+m.texture.height),a=U,-1!==c&&0<F&&i.x>F&&(kt(r,1+c-++z,1+f-c),f=c,c=-1,n.push(p),s.push(0<r.length?r[r.length-1].prevSpaces:0),u=Math.max(u,p),h++,i.x=0,i.y+=e.lineHeight,a=null,d=0))}for(var j=o[o.length-1],G=("\r"!==j&&"\n"!==j&&(/(?:\s)/.test(j)&&(l=p),n.push(l),u=Math.max(u,l),s.push(-1)),[]),f=0;f<=h;f++){var g=0;"right"===this._align?g=u-n[f]:"center"===this._align?g=(u-n[f])/2:"justify"===this._align&&(g=s[f]<0?0:(u-n[f])/s[f]),G.push(g)}for(var X=r.length,v={},y=[],b=this._activePagesMeshData,f=0;f<b.length;f++)N.push(b[f]);for(f=0;f<X;f++){var H,x,T,w=(A=r[f].texture).baseTexture.uid;v[w]||((I=N.pop())||(x=new Sh,H=T=void 0,H="none"===e.distanceFieldType?(T=new Th(te.EMPTY),$.BLEND_MODES.NORMAL):(T=new Th(te.EMPTY,{program:rs.from("// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r\n\r\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n","// Pixi texture info\r\nvarying vec2 vTextureCoord;\r\nuniform sampler2D uSampler;\r\n\r\n// Tint\r\nuniform vec4 uColor;\r\n\r\n// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r\nuniform float uFWidth;\r\n\r\nvoid main(void) {\r\n\r\n // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r\n vec4 texColor = texture2D(uSampler, vTextureCoord);\r\n\r\n // MSDF\r\n float median = texColor.r + texColor.g + texColor.b -\r\n min(texColor.r, min(texColor.g, texColor.b)) -\r\n max(texColor.r, max(texColor.g, texColor.b));\r\n // SDF\r\n median = min(median, texColor.a);\r\n\r\n float screenPxDistance = uFWidth * (median - 0.5);\r\n float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r\n\r\n // NPM Textures, NPM outputs\r\n gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r\n\r\n}\r\n"),uniforms:{uFWidth:0}}),$.BLEND_MODES.NORMAL_NPM),(x=new yh(x,T)).blendMode=H,I={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:x,vertices:null,uvs:null,indices:null}),I.index=0,I.indexCount=0,I.vertexCount=0,I.uvsCount=0,I.total=0,(T=this._textureCache)[w]=T[w]||new te(A.baseTexture),I.mesh.texture=T[w],I.mesh.tint=this._tint,y.push(I),v[w]=I),v[w].total++}for(f=0;f<b.length;f++)-1===y.indexOf(b[f])&&this.removeChild(b[f].mesh);for(f=0;f<y.length;f++)y[f].mesh.parent!==this&&this.addChild(y[f].mesh);for(f in this._activePagesMeshData=y,v){var E=(I=v[f]).total;if(!((null==(Y=I.indices)?void 0:Y.length)>6*E)||I.vertices.length<2*yh.BATCHABLE_SIZE)I.vertices=new Float32Array(8*E),I.uvs=new Float32Array(8*E),I.indices=new Uint16Array(6*E);else for(var Y=I.total,W=I.vertices,V=4*Y*2;V<W.length;V++)W[V]=0;I.mesh.size=6*E}for(f=0;f<X;f++){var S,A,k=(S=r[f]).position.x+G[S.line]*("justify"===this._align?S.prevSpaces:1),k=(k=this._roundPixels?Math.round(k):k)*t,P=S.position.y*t,O=v[(A=S.texture).baseTexture.uid],R=A.frame,C=A._uvs,M=O.index++;O.indices[6*M+0]=0+4*M,O.indices[6*M+1]=1+4*M,O.indices[6*M+2]=2+4*M,O.indices[6*M+3]=0+4*M,O.indices[6*M+4]=2+4*M,O.indices[6*M+5]=3+4*M,O.vertices[8*M+0]=k,O.vertices[8*M+1]=P,O.vertices[8*M+2]=k+R.width*t,O.vertices[8*M+3]=P,O.vertices[8*M+4]=k+R.width*t,O.vertices[8*M+5]=P+R.height*t,O.vertices[8*M+6]=k,O.vertices[8*M+7]=P+R.height*t,O.uvs[8*M+0]=C.x0,O.uvs[8*M+1]=C.y0,O.uvs[8*M+2]=C.x1,O.uvs[8*M+3]=C.y1,O.uvs[8*M+4]=C.x2,O.uvs[8*M+5]=C.y2,O.uvs[8*M+6]=C.x3,O.uvs[8*M+7]=C.y3}for(f in this._textWidth=u*t,this._textHeight=(i.y+e.lineHeight)*t,v){var I=v[f];if(0!==this.anchor.x||0!==this.anchor.y)for(var D=0,L=this._textWidth*this.anchor.x,q=this._textHeight*this.anchor.y,K=0;K<I.total;K++)I.vertices[D++]-=L,I.vertices[D++]-=q,I.vertices[D++]-=L,I.vertices[D++]-=q,I.vertices[D++]-=L,I.vertices[D++]-=q,I.vertices[D++]-=L,I.vertices[D++]-=q;this._maxLineHeight=B*t;var Z=I.mesh.geometry.getBuffer("aVertexPosition"),J=I.mesh.geometry.getBuffer("aTextureCoord"),Q=I.mesh.geometry.getIndex();Z.data=I.vertices,J.data=I.uvs,Q.data=I.indices,Z.update(),J.update(),Q.update()}for(f=0;f<r.length;f++)Wh.push(r[f])},Kh.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},Kh.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);var t=Uh.available[this._fontName],i=t.distanceFieldRange,r=t.distanceFieldType,t=t.size;if("none"!==r)for(var r=this.worldTransform,n=r.a,s=r.b,o=r.c,r=r.d,n=Math.sqrt(n*n+s*s),s=Math.sqrt(o*o+r*r),a=(Math.abs(n)+Math.abs(s))/2,l=this._fontSize/t,u=0,h=this._activePagesMeshData;u<h.length;u++)h[u].mesh.shader.uniforms.uFWidth=Math.min(a*i*l*this._resolution,1);Gh.prototype._render.call(this,e)},Kh.prototype.getLocalBounds=function(){return this.validate(),Gh.prototype.getLocalBounds.call(this)},Kh.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(Kh.prototype,"tint",{get:function(){return this._tint},set:function(e){if(this._tint!==e){this._tint=e;for(var t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"fontName",{get:function(){return this._fontName},set:function(e){if(!Uh.available[e])throw new Error('Missing BitmapFont "'+e+'"');this._fontName!==e&&(this._fontName=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"anchor",{get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copyFrom(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"text",{get:function(){return this._text},set:function(e){e=String(null==e?"":e),this._text!==e&&(this._text=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(Kh.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)},enumerable:!1,configurable:!0}),Kh.prototype.destroy=function(e){var t,i=this._textureCache;for(t in i)i[t].destroy(),delete i[t];this._textureCache=null,Gh.prototype.destroy.call(this,e)},Kh.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0},Kh);function qh(){this.constructor=Xh}function Kh(e,t){void 0===t&&(t={});var i=Gh.call(this)||this,t=(i._tint=16777215,Object.assign({},Kh.styleDefaults,t)),r=t.align,n=t.tint,s=t.maxWidth,o=t.letterSpacing,a=t.fontName,t=t.fontSize;if(Uh.available[a])return i._activePagesMeshData=[],i._textWidth=0,i._textHeight=0,i._align=r,i._tint=n,i._fontName=a,i._fontSize=t||Uh.available[a].size,i.text=e,i._maxWidth=s,i._maxLineHeight=0,i._letterSpacing=o,i._anchor=new ni(function(){i.dirty=!0},i,0,0),i._roundPixels=R.ROUND_PIXELS,i.dirty=!0,i._resolution=R.RESOLUTION,i._autoResolution=!0,i._textureCache={},i;throw new Error('Missing BitmapFont "'+a+'"')}Jh.add=function(){$.LoaderResource.setExtensionXhrType("fnt",$.LoaderResource.XHR_RESPONSE_TYPE.TEXT)},Jh.use=function(t,i){var e=Fh(t.data);if(e)for(var r=Jh.getBaseUrl(this,t),n=e.parse(t.data),s={},o=function(e){s[e.metadata.pageFile]=e.texture,Object.keys(s).length===n.page.length&&(t.bitmapFont=Uh.install(n,s,!0),i())},a=0;a<n.page.length;++a){var l,u,h=n.page[a].file,c=r+h,p=!1;for(l in this.resources){var d=this.resources[l];if(d.url===c){d.metadata.pageFile=h,d.texture?o(d):d.onAfterMiddleware.add(o),p=!0;break}}p||(u={crossOrigin:t.crossOrigin,loadType:$.LoaderResource.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:h},t.metadata.imageMetadata),parentResource:t},this.add(c,u,o))}else i()},Jh.getBaseUrl=function(e,t){var i=t.isDataUrl?"":Jh.dirname(t.url);return t.isDataUrl&&("."===i&&(i=""),e.baseUrl&&i&&"/"===e.baseUrl.charAt(e.baseUrl.length-1)&&(i+="/")),(i=i.replace(e.baseUrl,""))&&"/"!==i.charAt(i.length-1)&&(i+="/"),i},Jh.dirname=function(e){var t=e.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return t===e?".":""===t?"/":t},Jh.extension=$.ExtensionType.Loader;var Zh=Jh;function Jh(){}var Qh=function(e,t){return(Qh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};Qh(ec=rc,tc=$h=Q),ec.prototype=null===tc?Object.create(tc):(ic.prototype=tc.prototype,new ic),Object.defineProperty(rc.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0});var $h,ec,tc=rc;function ic(){this.constructor=ec}function rc(e){void 0===e&&(e=1);var t=$h.call(this,fo,"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n",{uAlpha:1})||this;return t.alpha=e,t}var nc=function(e,t){return(nc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function sc(e,t){function i(){this.constructor=e}nc(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var oc="\n attribute vec2 aVertexPosition;\n\n uniform mat3 projectionMatrix;\n\n uniform float strength;\n\n varying vec2 vBlurTexCoords[%size%];\n\n uniform vec4 inputSize;\n uniform vec4 outputFrame;\n\n vec4 filterVertexPosition( void )\n {\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n }\n\n vec2 filterTextureCoord( void )\n {\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n }\n\n void main(void)\n {\n gl_Position = filterVertexPosition();\n\n vec2 textureCoord = filterTextureCoord();\n %blur%\n }";var ac,lc={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},uc=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n");(T={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",T[T.SRC_IN=21]="SRC_IN",T[T.SRC_OUT=22]="SRC_OUT",T[T.SRC_ATOP=23]="SRC_ATOP",T[T.DST_OVER=24]="DST_OVER",T[T.DST_IN=25]="DST_IN",T[T.DST_OUT=26]="DST_OUT",T[T.DST_ATOP=27]="DST_ATOP",T[T.ERASE=26]="ERASE",T[T.SUBTRACT=28]="SUBTRACT",T[T.XOR=29]="XOR",(T={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",T[T.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",T[T.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",T[T.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(T=ac=ac||{})[T.NO=0]="NO",T[T.YES=1]="YES",T[T.AUTO=2]="AUTO",T[T.BLEND=0]="BLEND",T[T.CLEAR=1]="CLEAR",T[T.BLIT=2]="BLIT";sc(pc,hc=Q),pc.prototype.apply=function(e,t,i,r){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/t.width):this.uniforms.strength=1/i.height*(i.height/t.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/t.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/t.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,i,r);else{var n=e.getFilterTexture(),s=e.renderer,o=t,a=n;this.state.blend=!1,e.applyFilter(this,o,a,ac.CLEAR);for(var l=1;l<this.passes-1;l++){e.bindAndClear(o,ac.BLIT);var u=this.uniforms.uSampler=a,a=o,o=u;s.shader.bind(this),s.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,a,i,r),e.returnFilterTexture(n)}},Object.defineProperty(pc.prototype,"blur",{get:function(){return this.strength},set:function(e){this.padding=1+2*Math.abs(e),this.strength=e},enumerable:!1,configurable:!0}),Object.defineProperty(pc.prototype,"quality",{get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e},enumerable:!1,configurable:!0});var hc,cc=pc;function pc(e,t,i,r,n){void 0===t&&(t=8),void 0===i&&(i=4),void 0===r&&(r=R.FILTER_RESOLUTION);var s=this,o=function(e,t){for(var i=Math.ceil(e/2),r=oc,n="",s=t?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);",o=0;o<e;o++)n=n+s.replace("%index%",o.toString()).replace("%sampleIndex%",o-(i-1)+".0")+"\n";return r=(r=r.replace("%blur%",n)).replace("%size%",e.toString())}(n=void 0===n?5:n,e),n=function(e){for(var t=lc[e],i=t.length,r=uc,n="",s=0;s<e;s++)var o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",s.toString()),a=s,n=n+(o=o.replace("%value%",t[a=i<=s?e-s-1:a].toString()))+"\n";return r=(r=r.replace("%blur%",n)).replace("%size%",e.toString())}(n);return(s=hc.call(this,o,n)||this).horizontal=e,s.resolution=r,s._quality=0,s.quality=i,s.blur=t,s}sc(fc,dc=Q),fc.prototype.apply=function(e,t,i,r){var n=Math.abs(this.blurXFilter.strength),s=Math.abs(this.blurYFilter.strength);n&&s?(n=e.getFilterTexture(),this.blurXFilter.apply(e,t,n,ac.CLEAR),this.blurYFilter.apply(e,n,i,r),e.returnFilterTexture(n)):(s?this.blurYFilter:this.blurXFilter).apply(e,t,i,r)},fc.prototype.updatePadding=function(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))},Object.defineProperty(fc.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(e){this.blurXFilter.quality=this.blurYFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(e){this.blurYFilter.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(fc.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(e){this._repeatEdgePixels=e,this.updatePadding()},enumerable:!1,configurable:!0});var dc,T=fc;function fc(e,t,i,r){void 0===e&&(e=8),void 0===t&&(t=4),void 0===i&&(i=R.FILTER_RESOLUTION),void 0===r&&(r=5);var n=dc.call(this)||this;return n.blurXFilter=new cc(!0,e,t,i,r),n.blurYFilter=new cc(!1,e,t,i,r),n.resolution=i,n.quality=t,n.blur=e,n.repeatEdgePixels=!1,n}var mc=function(e,t){return(mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};mc(gc=E,vc=_c=Q),gc.prototype=null===vc?Object.create(vc):(yc.prototype=vc.prototype,new yc),E.prototype._loadMatrix=function(e,t){var i=e;(t=void 0===t?!1:t)&&(this._multiply(i,this.uniforms.m,e),i=this._colorMatrix(i)),this.uniforms.m=i},E.prototype._multiply=function(e,t,i){return e[0]=t[0]*i[0]+t[1]*i[5]+t[2]*i[10]+t[3]*i[15],e[1]=t[0]*i[1]+t[1]*i[6]+t[2]*i[11]+t[3]*i[16],e[2]=t[0]*i[2]+t[1]*i[7]+t[2]*i[12]+t[3]*i[17],e[3]=t[0]*i[3]+t[1]*i[8]+t[2]*i[13]+t[3]*i[18],e[4]=t[0]*i[4]+t[1]*i[9]+t[2]*i[14]+t[3]*i[19]+t[4],e[5]=t[5]*i[0]+t[6]*i[5]+t[7]*i[10]+t[8]*i[15],e[6]=t[5]*i[1]+t[6]*i[6]+t[7]*i[11]+t[8]*i[16],e[7]=t[5]*i[2]+t[6]*i[7]+t[7]*i[12]+t[8]*i[17],e[8]=t[5]*i[3]+t[6]*i[8]+t[7]*i[13]+t[8]*i[18],e[9]=t[5]*i[4]+t[6]*i[9]+t[7]*i[14]+t[8]*i[19]+t[9],e[10]=t[10]*i[0]+t[11]*i[5]+t[12]*i[10]+t[13]*i[15],e[11]=t[10]*i[1]+t[11]*i[6]+t[12]*i[11]+t[13]*i[16],e[12]=t[10]*i[2]+t[11]*i[7]+t[12]*i[12]+t[13]*i[17],e[13]=t[10]*i[3]+t[11]*i[8]+t[12]*i[13]+t[13]*i[18],e[14]=t[10]*i[4]+t[11]*i[9]+t[12]*i[14]+t[13]*i[19]+t[14],e[15]=t[15]*i[0]+t[16]*i[5]+t[17]*i[10]+t[18]*i[15],e[16]=t[15]*i[1]+t[16]*i[6]+t[17]*i[11]+t[18]*i[16],e[17]=t[15]*i[2]+t[16]*i[7]+t[17]*i[12]+t[18]*i[17],e[18]=t[15]*i[3]+t[16]*i[8]+t[17]*i[13]+t[18]*i[18],e[19]=t[15]*i[4]+t[16]*i[9]+t[17]*i[14]+t[18]*i[19]+t[19],e},E.prototype._colorMatrix=function(e){e=new Float32Array(e);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},E.prototype.brightness=function(e,t){this._loadMatrix([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0],t)},E.prototype.tint=function(e,t){this._loadMatrix([(e>>16&255)/255,0,0,0,0,0,(e>>8&255)/255,0,0,0,0,0,(255&e)/255,0,0,0,0,0,1,0],t)},E.prototype.greyscale=function(e,t){this._loadMatrix([e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0],t)},E.prototype.blackAndWhite=function(e){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],e)},E.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var i=Math.cos(e),e=Math.sin(e),r=(0,Math.sqrt)(1/3);this._loadMatrix([i+1/3*(1-i),1/3*(1-i)-r*e,1/3*(1-i)+r*e,0,0,1/3*(1-i)+r*e,i+1/3*(1-i),1/3*(1-i)-r*e,0,0,1/3*(1-i)-r*e,1/3*(1-i)+r*e,i+1/3*(1-i),0,0,0,0,0,1,0],t)},E.prototype.contrast=function(e,t){var e=(e||0)+1,i=-.5*(e-1);this._loadMatrix([e,0,0,0,i,0,e,0,0,i,0,0,e,0,i,0,0,0,1,0],t)},E.prototype.saturate=function(e,t){var e=2*(e=void 0===e?0:e)/3+1,i=-.5*(e-1);this._loadMatrix([e,i,i,0,0,i,e,i,0,0,i,i,e,0,0,0,0,0,1,0],t)},E.prototype.desaturate=function(){this.saturate(-1)},E.prototype.negative=function(e){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],e)},E.prototype.sepia=function(e){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],e)},E.prototype.technicolor=function(e){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],e)},E.prototype.polaroid=function(e){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],e)},E.prototype.toBGR=function(e){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],e)},E.prototype.kodachrome=function(e){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],e)},E.prototype.browni=function(e){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],e)},E.prototype.vintage=function(e){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],e)},E.prototype.colorTone=function(e,t,i,r,n){var s=((i=i||16770432)>>16&255)/255,o=(i>>8&255)/255,i=(255&i)/255,a=((r=r||3375104)>>16&255)/255,l=(r>>8&255)/255,r=(255&r)/255;this._loadMatrix([.3,.59,.11,0,0,s,o,i,e=e||.2,0,a,l,r,t=t||.15,0,s-a,o-l,i-r,0,0],n)},E.prototype.night=function(e,t){this._loadMatrix([-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0],t)},E.prototype.predator=function(e,t){this._loadMatrix([11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0],t)},E.prototype.lsd=function(e){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],e)},E.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},Object.defineProperty(E.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0});var _c,gc,vc=E;function yc(){this.constructor=gc}function E(){var e=this,t={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return(e=_c.call(this,mo,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n",t)||this).alpha=1,e}vc.prototype.grayscale=vc.prototype.greyscale;var bc=function(e,t){return(bc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};bc(Tc=Sc,wc=xc=Q),Tc.prototype=null===wc?Object.create(wc):(Ec.prototype=wc.prototype,new Ec),Sc.prototype.apply=function(e,t,i,r){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.worldTransform,s=Math.sqrt(n.a*n.a+n.b*n.b),o=Math.sqrt(n.c*n.c+n.d*n.d);0!==s&&0!==o&&(this.uniforms.rotation[0]=n.a/s,this.uniforms.rotation[1]=n.b/s,this.uniforms.rotation[2]=n.c/o,this.uniforms.rotation[3]=n.d/o),e.applyFilter(this,t,i,r)},Object.defineProperty(Sc.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e},enumerable:!1,configurable:!0});var xc,Tc,wc=Sc;function Ec(){this.constructor=Tc}function Sc(e,t){var i=this,r=new oi;return e.renderable=!1,(i=xc.call(this,"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:e._texture,filterMatrix:r,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=e,i.maskMatrix=r,i.scale=new ee(t=null==t?20:t,t),i}var Ac=function(e,t){return(Ac=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};Ac(Pc=Cc,Oc=kc=Q),Pc.prototype=null===Oc?Object.create(Oc):(Rc.prototype=Oc.prototype,new Rc);var kc,Pc,Oc=Cc;function Rc(){this.constructor=Pc}function Cc(){return kc.call(this,"\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n')||this}var Mc=function(e,t){return(Mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};Mc(Dc=Nc,Lc=Ic=Q),Dc.prototype=null===Lc?Object.create(Lc):(Fc.prototype=Lc.prototype,new Fc),Object.defineProperty(Nc.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e},enumerable:!1,configurable:!0}),Object.defineProperty(Nc.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e},enumerable:!1,configurable:!0});var Ic,Dc,Lc=Nc;function Fc(){this.constructor=Dc}function Nc(e,t){void 0===e&&(e=.5),void 0===t&&(t=Math.random());var i=Ic.call(this,mo,"precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n",{uNoise:0,uSeed:0})||this;return i.noise=e,i.seed=t,i}(A={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",A[A.SRC_IN=21]="SRC_IN",A[A.SRC_OUT=22]="SRC_OUT",A[A.SRC_ATOP=23]="SRC_ATOP",A[A.DST_OVER=24]="DST_OVER",A[A.DST_IN=25]="DST_IN",A[A.DST_OUT=26]="DST_OUT",A[A.DST_ATOP=27]="DST_ATOP",A[A.ERASE=26]="ERASE",A[A.SUBTRACT=28]="SUBTRACT",A[A.XOR=29]="XOR",(A={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",A[A.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",A[A.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",A[A.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(A={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",A[A.CLEAR=1]="CLEAR",A[A.BLIT=2]="BLIT",(A=k=k||{})[A.NONE=0]="NONE",A[A.LOW=2]="LOW",A[A.MEDIUM=4]="MEDIUM",A[A.HIGH=8]="HIGH";var zc,Bc,Uc,jc,Gc,Xc,Hc=new oi,Yc=(i.prototype._cacheAsBitmap=!1,i.prototype._cacheData=null,i.prototype._cacheAsBitmapResolution=null,i.prototype._cacheAsBitmapMultisample=k.NONE,function(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}),A=(Object.defineProperties(i.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){var t;this._cacheAsBitmap!==e&&((this._cacheAsBitmap=e)?(this._cacheData||(this._cacheData=new Yc),(t=this._cacheData).originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((t=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea))}}}),i.prototype._renderCached=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(e))},i.prototype._initCachedDisplayObject=function(e){var t,i,r,n,s,o,a,l;this._cacheData&&this._cacheData.sprite||(t=this.alpha,this.alpha=1,e.batch.flush(),i=this.getLocalBounds(null,!0).clone(),this.filters&&this.filters.length&&(r=this.filters[0].padding,i.pad(r)),i.ceil(R.RESOLUTION),r=e.renderTexture.current,n=e.renderTexture.sourceFrame.clone(),s=e.renderTexture.destinationFrame.clone(),o=e.projection.transform,a=Gr.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||e.resolution,multisample:null!=(a=this.cacheAsBitmapMultisample)?a:e.multisample}),l="cacheAsBitmap_"+ ++Ot,this._cacheData.textureCacheId=l,C.addToCache(a.baseTexture,l),te.addToCache(a,l),l=this.transform.localTransform.copyTo(Hc).invert().translate(-i.x,-i.y),this.render=this._cacheData.originalRender,e.render(this,{renderTexture:a,clear:!0,transform:l,skipUpdateTransform:!1}),e.framebuffer.blit(),e.projection.transform=o,e.renderTexture.bind(r,n,s),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=t,(l=new fu(a)).transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(i.x/i.width),l.anchor.y=-(i.y/i.height),l.alpha=t,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=l.containsPoint.bind(l))},i.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(e))},i.prototype._initCachedDisplayObjectCanvas=function(e){var t,i,r,n,s,o;this._cacheData&&this._cacheData.sprite||(t=this.getLocalBounds(null,!0),i=this.alpha,this.alpha=1,r=e.context,n=e._projTransform,t.ceil(R.RESOLUTION),s=Gr.create({width:t.width,height:t.height}),o="cacheAsBitmap_"+ ++Ot,this._cacheData.textureCacheId=o,C.addToCache(s.baseTexture,o),te.addToCache(s,o),this.transform.localTransform.copyTo(o=Hc),o.invert(),o.tx-=t.x,o.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,{renderTexture:s,clear:!0,transform:o,skipUpdateTransform:!1}),e.context=r,e._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i,(o=new fu(s)).transform.worldTransform=this.transform.worldTransform,o.anchor.x=-(t.x/t.width),o.anchor.y=-(t.y/t.height),o.alpha=i,o._bounds=this._bounds,this._cacheData.sprite=o,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=o.containsPoint.bind(o))},i.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},i.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},i.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,C.removeFromCache(this._cacheData.textureCacheId),te.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},i.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)},i.prototype.name=null,zi.prototype.getChildByName=function(e,t){for(var i=0,r=this.children.length;i<r;i++)if(this.children[i].name===e)return this.children[i];if(t)for(i=0,r=this.children.length;i<r;i++){var n=this.children[i];if(n.getChildByName){n=n.getChildByName(e,!0);if(n)return n}}return null},i.prototype.getGlobalPosition=function(e,t){return void 0===e&&(e=new ee),void 0===t&&(t=!1),this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e},Wc.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){globalThis.removeEventListener("resize",this.queueResize),(this._resizeTo=e)&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){i._resizeTo&&(i.cancelResize(),i._resizeId=requestAnimationFrame(function(){return i.resize()}))},this.cancelResize=function(){i._resizeId&&(cancelAnimationFrame(i._resizeId),i._resizeId=null)},this.resize=function(){var e,t;i._resizeTo&&(i.cancelResize(),t=i._resizeTo===globalThis.window?(e=globalThis.innerWidth,globalThis.innerHeight):(e=(t=i._resizeTo).clientWidth,t.clientHeight),i.renderer.resize(e,t))},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},Wc.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},Wc.extension=$.ExtensionType.Application,Wc);function Wc(){}(k={NORMAL:0,0:"NORMAL",ADD:1,1:"ADD",MULTIPLY:2,2:"MULTIPLY",SCREEN:3,3:"SCREEN",OVERLAY:4,4:"OVERLAY",DARKEN:5,5:"DARKEN",LIGHTEN:6,6:"LIGHTEN",COLOR_DODGE:7,7:"COLOR_DODGE",COLOR_BURN:8,8:"COLOR_BURN",HARD_LIGHT:9,9:"HARD_LIGHT",SOFT_LIGHT:10,10:"SOFT_LIGHT",DIFFERENCE:11,11:"DIFFERENCE",EXCLUSION:12,12:"EXCLUSION",HUE:13,13:"HUE",SATURATION:14,14:"SATURATION",COLOR:15,15:"COLOR",LUMINOSITY:16,16:"LUMINOSITY",NORMAL_NPM:17,17:"NORMAL_NPM",ADD_NPM:18,18:"ADD_NPM",SCREEN_NPM:19,19:"SCREEN_NPM",NONE:20,20:"NONE",SRC_OVER:0})[0]="SRC_OVER",k[k.SRC_IN=21]="SRC_IN",k[k.SRC_OUT=22]="SRC_OUT",k[k.SRC_ATOP=23]="SRC_ATOP",k[k.DST_OVER=24]="DST_OVER",k[k.DST_IN=25]="DST_IN",k[k.DST_OUT=26]="DST_OUT",k[k.DST_ATOP=27]="DST_ATOP",k[k.ERASE=26]="ERASE",k[k.SUBTRACT=28]="SUBTRACT",k[k.XOR=29]="XOR",(k=zc=zc||{})[k.NEAREST=0]="NEAREST",k[k.LINEAR=1]="LINEAR",(k=Bc=Bc||{})[k.CLAMP=33071]="CLAMP",k[k.REPEAT=10497]="REPEAT",k[k.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",(k=Uc=Uc||{})[k.OFF=0]="OFF",k[k.POW2=1]="POW2",k[k.ON=2]="ON",k[k.ON_MANUAL=3]="ON_MANUAL",(k={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",k[k.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",k[k.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",k[k.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",(k={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",k[k.CLEAR=1]="CLEAR",k[k.BLIT=2]="BLIT",(k=jc=jc||{})[k.AUTO=0]="AUTO",k[k.MANUAL=1]="MANUAL",(k=Gc=Gc||{}).LOW="lowp",k.MEDIUM="mediump",k.HIGH="highp",(k=Xc=Xc||{})[k.NONE=0]="NONE",k[k.LOW=2]="LOW",k[k.MEDIUM=4]="MEDIUM",k[k.HIGH=8]="HIGH";function Vc(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&1<e.maxTouchPoints&&"undefined"==typeof MSStream}var k={createCanvas:function(e,t){var i=document.createElement("canvas");return i.width=e,i.height=t,i},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return null!=(e=document.baseURI)?e:window.location.href},fetch:function(e,t){return fetch(e,t)}},qc=/iPhone/i,Kc=/iPod/i,Zc=/iPad/i,P=/\biOS-universal(?:.+)Mac\b/i,Jc=/\bAndroid(?:.+)Mobile\b/i,Qc=/Android/i,$c=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,e0=/Silk/i,t0=/Windows Phone/i,i0=/\bWindows(?:.+)ARM\b/i,r0=/BlackBerry/i,n0=/BB10/i,s0=/Opera Mini/i,o0=/\b(CriOS|Chrome)(?:.+)Mobile/i,a0=/Mobile(?:.+)Firefox\b/i;O=globalThis.navigator,g0={userAgent:"",platform:"",maxTouchPoints:0},O||"undefined"==typeof navigator?"string"==typeof O?g0.userAgent=O:O&&O.userAgent&&(g0={userAgent:O.userAgent,platform:O.platform,maxTouchPoints:O.maxTouchPoints||0}):g0={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},void 0!==(M=(O=void 0!==(M=(O=g0.userAgent).split("[FBAN"))[1]?M[0]:O).split("Twitter"))[1]&&(O=M[0]),l0=O,(O={apple:{phone:(M=function(e){return e.test(l0)})(qc)&&!M(t0),ipod:M(Kc),tablet:!M(qc)&&(M(Zc)||Vc(g0))&&!M(t0),universal:M(P),device:(M(qc)||M(Kc)||M(Zc)||M(P)||Vc(g0))&&!M(t0)},amazon:{phone:M($c),tablet:!M($c)&&M(e0),device:M($c)||M(e0)},android:{phone:!M(t0)&&M($c)||!M(t0)&&M(Jc),tablet:!M(t0)&&!M($c)&&!M(Jc)&&(M(e0)||M(Qc)),device:!M(t0)&&(M($c)||M(e0)||M(Jc)||M(Qc))||M(/\bokhttp\b/i)},windows:{phone:M(t0),tablet:M(i0),device:M(t0)||M(i0)},other:{blackberry:M(r0),blackberry10:M(n0),opera:M(s0),firefox:M(a0),chrome:M(o0),device:M(r0)||M(n0)||M(s0)||M(a0)||M(o0)},any:!1,phone:!1,tablet:!1}).any=O.apple.device||O.android.device||O.windows.device||O.other.device,O.phone=O.apple.phone||O.android.phone||O.windows.phone,O.tablet=O.apple.tablet||O.android.tablet||O.windows.tablet;var O,l0,M,qc=O;var u0,h0={ADAPTER:k,MIPMAP_TEXTURES:Uc.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Xc.NONE,SPRITE_MAX_TEXTURES:(Kc=32,Zc=!0,(qc.tablet||qc.phone)&&(qc.apple.device&&(u0=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(u0[1],10)<11&&(Zc=!1),qc.android.device&&(u0=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(u0[1],10)<7&&(Zc=!1)),Zc?Kc:4),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:jc.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:Bc.CLAMP,SCALE_MODE:zc.LINEAR,PRECISION_VERTEX:Gc.HIGH,PRECISION_FRAGMENT:qc.apple.device?Gc.HIGH:Gc.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!qc.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},c0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p0(e,t,i){e(i={path:t,exports:{},require:function(e,t){throw null==t&&i.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},i.exports),i.exports}p0(function(e){var r=Object.prototype.hasOwnProperty,f="~";function i(){}function s(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function n(e,t,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new s(i,r||e,n),r=f?f+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],i]:e._events[r].push(i):(e._events[r]=i,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function t(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(f=!1)),t.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)r.call(e,t)&&i.push(f?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},t.prototype.listeners=function(e){var e=f?f+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var i=0,r=t.length,n=new Array(r);i<r;i++)n[i]=t[i].fn;return n},t.prototype.listenerCount=function(e){e=f?f+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,i,r,n,s){var o=arguments,a=f?f+e:e;if(!this._events[a])return!1;var l,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,r),!0;case 5:return u.fn.call(u.context,t,i,r,n),!0;case 6:return u.fn.call(u.context,t,i,r,n,s),!0}for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=o[d];u.fn.apply(u.context,l)}else for(var c,p=u.length,d=0;d<p;d++)switch(u[d].once&&this.removeListener(e,u[d].fn,void 0,!0),h){case 1:u[d].fn.call(u[d].context);break;case 2:u[d].fn.call(u[d].context,t);break;case 3:u[d].fn.call(u[d].context,t,i);break;case 4:u[d].fn.call(u[d].context,t,i,r);break;default:if(!l)for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=o[c];u[d].fn.apply(u[d].context,l)}return!0},t.prototype.on=function(e,t,i){return n(this,e,t,i,!1)},t.prototype.once=function(e,t,i){return n(this,e,t,i,!0)},t.prototype.removeListener=function(e,t,i,r){e=f?f+e:e;if(this._events[e])if(t){var n=this._events[e];if(n.fn)n.fn!==t||r&&!n.once||i&&n.context!==i||l(this,e);else{for(var s=0,o=[],a=n.length;s<a;s++)(n[s].fn!==t||r&&!n[s].once||i&&n[s].context!==i)&&o.push(n[s]);o.length?this._events[e]=1===o.length?o[0]:o:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=f?f+e:e,this._events[e]&&l(this,e)):(this._events=new i,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=f,e.exports=t.EventEmitter=t}),p0(function(e,t){var i=c0,r=t&&!t.nodeType&&t,t=e&&!e.nodeType&&e,n="object"==typeof c0&&c0;n.global!==n&&n.window!==n&&n.self!==n||(i=n);var s,o,_=2147483647,g=36,v=26,a=38,l=700,u=/^xn--/,h=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=g-1,y=Math.floor,b=String.fromCharCode;function x(e){throw RangeError(p[e])}function f(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}function m(e,t){var i=e.split("@"),r="",i=(1<i.length&&(r=i[0]+"@",e=i[1]),(e=e.replace(c,".")).split("."));return r+f(i,t).join(".")}function T(e){for(var t,i,r=[],n=0,s=e.length;n<s;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<s?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}function w(e){return f(e,function(e){var t="";return 65535<e&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=b(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,i){var r=0;for(e=i?y(e/l):e>>1,e+=y(e/t);d*v>>1<e;r+=g)e=y(e/d);return y(r+(d+1)*e/(e+a))}function A(e){var t,i,r,n,s,o,a,l=[],u=e.length,h=0,c=128,p=72,d=e.lastIndexOf("-");for(d<0&&(d=0),i=0;i<d;++i)128<=e.charCodeAt(i)&&x("not-basic"),l.push(e.charCodeAt(i));for(r=0<d?d+1:0;r<u;){for(n=h,s=1,o=g;u<=r&&x("invalid-input"),a=e.charCodeAt(r++),(g<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:g)||a>y((_-h)/s))&&x("overflow"),h+=a*s,!(a<(a=o<=p?1:p+v<=o?v:o-p));o+=g)s>y(_/(a=g-a))&&x("overflow"),s*=a;p=S(h-n,t=l.length+1,0==n),y(h/t)>_-c&&x("overflow"),c+=y(h/t),h%=t,l.splice(h++,0,c)}return w(l)}function k(e){for(var t,i,r,n,s,o,a,l,u,h,c=[],p=(e=T(e)).length,d=128,f=72,m=t=0;m<p;++m)(a=e[m])<128&&c.push(b(a));for(i=r=c.length,r&&c.push("-");i<p;){for(n=_,m=0;m<p;++m)d<=(a=e[m])&&a<n&&(n=a);for(n-d>y((_-t)/(l=i+1))&&x("overflow"),t+=(n-d)*l,d=n,m=0;m<p;++m)if((a=e[m])<d&&++t>_&&x("overflow"),a==d){for(s=t,o=g;!(s<(u=o<=f?1:f+v<=o?v:o-f));o+=g)c.push(b(E(u+(h=s-u)%(u=g-u),0))),s=y(h/u);c.push(b(E(s,0))),f=S(t,l,i==r),t=0,++i}++t,++d}return c.join("")}if(s={version:"1.3.2",ucs2:{decode:T,encode:w},decode:A,encode:k,toASCII:function(e){return m(e,function(e){return h.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return u.test(e)?A(e.slice(4).toLowerCase()):e})}},r&&t)if(e.exports==r)t.exports=s;else for(o in s)s.hasOwnProperty(o)&&(r[o]=s[o]);else i.punycode=s});function d0(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"==typeof e&&0!==e.length){var s=/\+/g,t=(e=e.split(t),1e3),o=(r&&"number"==typeof r.maxKeys&&(t=r.maxKeys),e.length);0<t&&t<o&&(o=t);for(var a=0;a<o;++a){var l,u=e[a].replace(s,"%20"),h=u.indexOf(i),h=0<=h?(l=u.substr(0,h),u.substr(h+1)):(l=u,""),u=decodeURIComponent(l),h=decodeURIComponent(h);Object.prototype.hasOwnProperty.call(n,u)?Array.isArray(n[u])?n[u].push(h):n[u]=[n[u],h]:n[u]=h}}return n}function f0(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function m0(i,r,n,e){return r=r||"&",n=n||"=","object"==typeof(i=null===i?void 0:i)?Object.keys(i).map(function(e){var t=encodeURIComponent(f0(e))+n;return Array.isArray(i[e])?i[e].map(function(e){return t+encodeURIComponent(f0(e))}).join(r):t+encodeURIComponent(f0(i[e]))}).join(r):e?encodeURIComponent(f0(e))+n+encodeURIComponent(f0(i)):""}var _0,g0;p0(function(e,t){t.decode=t.parse=d0,t.encode=t.stringify=m0}),(P=_0=_0||{})[P.NORMAL=0]="NORMAL",P[P.ADD=1]="ADD",P[P.MULTIPLY=2]="MULTIPLY",P[P.SCREEN=3]="SCREEN",P[P.OVERLAY=4]="OVERLAY",P[P.DARKEN=5]="DARKEN",P[P.LIGHTEN=6]="LIGHTEN",P[P.COLOR_DODGE=7]="COLOR_DODGE",P[P.COLOR_BURN=8]="COLOR_BURN",P[P.HARD_LIGHT=9]="HARD_LIGHT",P[P.SOFT_LIGHT=10]="SOFT_LIGHT",P[P.DIFFERENCE=11]="DIFFERENCE",P[P.EXCLUSION=12]="EXCLUSION",P[P.HUE=13]="HUE",P[P.SATURATION=14]="SATURATION",P[P.COLOR=15]="COLOR",P[P.LUMINOSITY=16]="LUMINOSITY",P[P.NORMAL_NPM=17]="NORMAL_NPM",P[P.ADD_NPM=18]="ADD_NPM",P[P.SCREEN_NPM=19]="SCREEN_NPM",P[P.NONE=20]="NONE",P[P.SRC_OVER=0]="SRC_OVER",P[P.SRC_IN=21]="SRC_IN",P[P.SRC_OUT=22]="SRC_OUT",P[P.SRC_ATOP=23]="SRC_ATOP",P[P.DST_OVER=24]="DST_OVER",P[P.DST_IN=25]="DST_IN",P[P.DST_OUT=26]="DST_OUT",P[P.DST_ATOP=27]="DST_ATOP",P[P.ERASE=26]="ERASE",P[P.SUBTRACT=28]="SUBTRACT",P[P.XOR=29]="XOR",(g0={NPM:0,0:"NPM",UNPACK:1,1:"UNPACK",PMA:2,2:"PMA",NO_PREMULTIPLIED_ALPHA:0})[0]="NO_PREMULTIPLIED_ALPHA",g0[g0.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",g0[g0.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",g0[g0.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",($c={NO:0,0:"NO",YES:1,1:"YES",AUTO:2,2:"AUTO",BLEND:0})[0]="BLEND",$c[$c.CLEAR=1]="CLEAR",$c[$c.BLIT=2]="BLIT",h0.RETINA_PREFIX=/@([0-9\.]+)x/,h0.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;for(var v0=[],y0=[],b0=0;b0<32;b0++)y0[v0[b0]=b0]=b0;v0[_0.NORMAL_NPM]=_0.NORMAL,v0[_0.ADD_NPM]=_0.ADD,v0[_0.SCREEN_NPM]=_0.SCREEN,y0[_0.NORMAL]=_0.NORMAL_NPM,y0[_0.ADD]=_0.ADD_NPM,y0[_0.SCREEN]=_0.SCREEN_NPM;var e0=[],x0=(e0.push(y0),e0.push(v0),{});function T0(e,t,i){this.canvas=h0.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||h0.RESOLUTION,this.resize(e,t)}T0.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},T0.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},T0.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(T0.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T0.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0});w0.registerPlugin=function(e){var t,i,r,n;t="6.5.0",void 0===r&&(r=3),x0[i="Application.registerPlugin() is deprecated, use extensions.add()"]||(void 0===(n=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",i+"\nDeprecated since v"+t):(n=n.split("\n").splice(r).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",i+"\nDeprecated since v"+t),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",i+"\nDeprecated since v"+t),console.warn(n))),x0[i]=!0),ji.add({type:$.ExtensionType.Application,ref:e})},w0.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(w0.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(w0.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),w0.prototype.destroy=function(e,t){var i=this,r=w0._plugins.slice(0);r.reverse(),r.forEach(function(e){e.destroy.call(i)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null},w0._plugins=[];Jc=w0;function w0(t){var i=this;this.stage=new zi,t=Object.assign({forceCanvas:!1},t),this.renderer=po(t),w0._plugins.forEach(function(e){e.init.call(i,t)})}ji.handleByList($.ExtensionType.Application,Jc._plugins),ji.add(A);var E0=function(e,t){return(E0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function S0(e,t){function i(){this.constructor=e}E0(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}S0(P0,A0=Sh),P0.prototype.build=function(){for(var e=this.segWidth*this.segHeight,t=[],i=[],r=[],n=this.segWidth-1,s=this.segHeight-1,o=this.width/n,a=this.height/s,l=0;l<e;l++){var u=l%this.segWidth,h=l/this.segWidth|0;t.push(u*o,h*a),i.push(u/n,h/s)}for(var c=n*s,l=0;l<c;l++){var p=l%n,d=l/n|0,f=d*this.segWidth+p,m=d*this.segWidth+p+1,_=(1+d)*this.segWidth+p,d=(1+d)*this.segWidth+p+1;r.push(f,m,_,m,d,_)}this.buffers[0].data=new Float32Array(t),this.buffers[1].data=new Float32Array(i),this.indexBuffer.data=new Uint16Array(r),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()};var A0,k0=P0;function P0(e,t,i,r){void 0===e&&(e=100),void 0===t&&(t=100),void 0===i&&(i=10),void 0===r&&(r=10);var n=A0.call(this)||this;return n.segWidth=i,n.segHeight=r,n.width=e,n.height=t,n.build(),n}S0(C0,O0=Sh),Object.defineProperty(C0.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),C0.prototype.build=function(){var e=this.points;if(e){var t=this.getBuffer("aVertexPosition"),i=this.getBuffer("aTextureCoord"),r=this.getIndex();if(!(e.length<1)){t.data.length/4!==e.length&&(t.data=new Float32Array(4*e.length),i.data=new Float32Array(4*e.length),r.data=new Uint16Array(6*(e.length-1)));for(var n=i.data,s=r.data,o=(n[0]=0,n[1]=0,n[2]=0,n[3]=1,0),a=e[0],l=this._width*this.textureScale,u=e.length,h=0;h<u;h++){var c,p,d=4*h;0<this.textureScale?(p=a.x-e[h].x,c=a.y-e[h].y,p=Math.sqrt(p*p+c*c),a=e[h],o+=p/l):o=h/(u-1),n[d]=o,n[d+1]=0,n[d+2]=o,n[d+3]=1}for(var f=0,h=0;h<u-1;h++){d=2*h;s[f++]=d,s[f++]=d+1,s[f++]=d+2,s[f++]=d+2,s[f++]=d+1,s[f++]=d+3}i.update(),r.update(),this.updateVertices()}}},C0.prototype.updateVertices=function(){var e=this.points;if(!(e.length<1)){for(var t=e[0],i=0,r=0,n=this.buffers[0].data,s=e.length,o=0;o<s;o++){var a=e[o],l=4*o,r=-((u=o<e.length-1?e[o+1]:a).x-t.x),i=u.y-t.y,u=Math.sqrt(i*i+r*r),h=0<this.textureScale?this.textureScale*this._width/2:this._width/2;r=r/u*h,n[l]=a.x+(i=i/u*h),n[1+l]=a.y+r,n[2+l]=a.x-i,n[3+l]=a.y-r,t=a}this.buffers[0].update()}},C0.prototype.update=function(){0<this.textureScale?this.build():this.updateVertices()};var O0,R0=C0;function C0(e,t,i){void 0===e&&(e=200),void 0===i&&(i=0);var r=O0.call(this,new Float32Array(4*t.length),new Float32Array(4*t.length),new Uint16Array(6*(t.length-1)))||this;return r.points=t,r._width=e,r.textureScale=i,r.build(),r}S0(I0,M0=yh),I0.prototype._render=function(e){var t=this.geometry;!this.autoUpdate&&t._width===this.shader.texture.height||(t._width=this.shader.texture.height,t.update()),M0.prototype._render.call(this,e)};var M0,Qc=I0;function I0(e,t,i){var r=this,t=new R0(e.height,t,i=void 0===i?0:i),n=new Th(e);return 0<i&&(e.baseTexture.wrapMode=$.WRAP_MODES.REPEAT),(r=M0.call(this,t,n)||this).autoUpdate=!0,r}S0(L0,D0=yh),L0.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var e=this.geometry,t=this.shader.texture,i=t.width,t=t.height;!this.autoResize||e.width===i&&e.height===t||(e.width=this.shader.texture.width,e.height=this.shader.texture.height,e.build())},Object.defineProperty(L0.prototype,"texture",{get:function(){return this.shader.texture},set:function(e){this.shader.texture!==e&&(this.shader.texture=e,this._textureID=-1,e.baseTexture.valid?this.textureUpdated():e.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),L0.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),D0.prototype._render.call(this,e)},L0.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),D0.prototype.destroy.call(this,e)};var D0,t0=L0;function L0(e,t,i){var r=this,t=new k0(e.width,e.height,t,i),i=new Th(te.WHITE);return(r=D0.call(this,t,i)||this).texture=e,r.autoResize=!0,r}S0(N0,F0=yh),Object.defineProperty(N0.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),N0.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),F0.prototype._render.call(this,e)};var F0,i0=N0;function N0(e,t,i,r,n){void 0===e&&(e=te.EMPTY);var s=this,t=new Sh(t,i,r),i=(t.getBuffer("aVertexPosition").static=!1,new Th(e));return(s=F0.call(this,t,i,null,n)||this).autoUpdate=!0,s}S0(B0,z0=t0),B0.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(B0.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),B0.prototype.updateHorizontalVertices=function(){var e=this.vertices,t=this._getMinScale();e[9]=e[11]=e[13]=e[15]=this._topHeight*t,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*t,e[25]=e[27]=e[29]=e[31]=this._height},B0.prototype.updateVerticalVertices=function(){var e=this.vertices,t=this._getMinScale();e[2]=e[10]=e[18]=e[26]=this._leftWidth*t,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*t,e[6]=e[14]=e[22]=e[30]=this._width},B0.prototype._getMinScale=function(){var e=this._leftWidth+this._rightWidth,e=this._width>e?1:this._width/e,t=this._topHeight+this._bottomHeight,t=this._height>t?1:this._height/t;return Math.min(e,t)},Object.defineProperty(B0.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"topHeight",{get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(B0.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()},enumerable:!1,configurable:!0}),B0.prototype._refresh=function(){var e=this.texture,t=this.geometry.buffers[1].data,e=(this._origWidth=e.orig.width,this._origHeight=e.orig.height,1/this._origWidth),i=1/this._origHeight;t[0]=t[8]=t[16]=t[24]=0,t[1]=t[3]=t[5]=t[7]=0,t[6]=t[14]=t[22]=t[30]=1,t[25]=t[27]=t[29]=t[31]=1,t[2]=t[10]=t[18]=t[26]=e*this._leftWidth,t[4]=t[12]=t[20]=t[28]=1-e*this._rightWidth,t[9]=t[11]=t[13]=t[15]=i*this._topHeight,t[17]=t[19]=t[21]=t[23]=1-i*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()};var z0,r0=B0;function B0(e,t,i,r,n){void 0===t&&(t=10),void 0===i&&(i=10),void 0===r&&(r=10),void 0===n&&(n=10);var s=z0.call(this,te.WHITE,4,4)||this;return s._origWidth=e.orig.width,s._origHeight=e.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=t,s._rightWidth=r,s._topHeight=i,s._bottomHeight=n,s.texture=e,s}var U0=function(e,t){return(U0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};U0(G0=H0,n0=j0=fu),G0.prototype=null===n0?Object.create(n0):(X0.prototype=n0.prototype,new X0),H0.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1))},H0.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Wi.shared.add(this.update,this,$.UPDATE_PRIORITY.HIGH),this._isConnectedToTicker=!0))},H0.prototype.gotoAndStop=function(e){this.stop();var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()},H0.prototype.gotoAndPlay=function(e){var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture(),this.play()},H0.prototype.update=function(e){if(this._playing){var t=this.animationSpeed*e,i=this.currentFrame;if(null!==this._durations){var r=this._currentTime%1*this._durations[this.currentFrame];for(r+=t/60*1e3;r<0;)this._currentTime--,r+=this._durations[this.currentFrame];var n=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);r>=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=t;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(0<this.animationSpeed&&this.currentFrame<i||this.animationSpeed<0&&this.currentFrame>i)&&this.onLoop(),this.updateTexture())}},H0.prototype.updateTexture=function(){var e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this._texture=this._textures[e],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},H0.prototype.destroy=function(e){this.stop(),j0.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},H0.fromFrames=function(e){for(var t=[],i=0;i<e.length;++i)t.push(te.from(e[i]));return new H0(t)},H0.fromImages=function(e){for(var t=[],i=0;i<e.length;++i)t.push(te.from(e[i]));return new H0(t)},Object.defineProperty(H0.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"textures",{get:function(){return this._textures},set:function(e){if(e[0]instanceof te)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(var t=0;t<e.length;t++)this._textures.push(e[t].texture),this._durations.push(e[t].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"currentFrame",{get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(H0.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Wi.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(Wi.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0});var j0,G0,s0=H0;function X0(){this.constructor=G0}function H0(e,t){void 0===t&&(t=!0);var i=j0.call(this,e[0]instanceof te?e[0]:e[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=t,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=e,i}ji.add(r,s,n,Tl,Ml,Xe,hh,Zh,o,v,pl,$u,oe,ie);a0={AlphaFilter:tc,BlurFilter:T,BlurFilterPass:cc,ColorMatrixFilter:vc,DisplacementFilter:wc,FXAAFilter:Oc,NoiseFilter:Lc};return $.AbstractBatchRenderer=Eo,$.AbstractMultiResource=a,$.AbstractRenderer=no,$.AccessibilityManager=r,$.AnimatedSprite=s0,$.AppLoaderPlugin=ie,$.Application=Jc,$.ArrayResource=le,$.Attribute=Wr,$.BaseImageResource=hr,$.BasePrepare=Ll,$.BaseRenderTexture=Dr,$.BaseTexture=C,$.BatchDrawCall=vo,$.BatchGeometry=Oo,$.BatchPluginFactory=Io,$.BatchRenderer=Xe,$.BatchShaderGenerator=Ao,$.BatchSystem=xn,$.BatchTextureArray=yo,$.BitmapFont=Uh,$.BitmapFontData=Ph,$.BitmapFontLoader=Zh,$.BitmapText=Vh,$.BlobResource=t,$.Bounds=ki,$.BrowserAdapter=e,$.Buffer=Kr,$.BufferResource=tr,$.CanvasResource=d,$.Circle=Zt,$.CompressedTextureLoader=o,$.CompressedTextureResource=Ca,$.Container=zi,$.ContextSystem=En,$.CountLimiter=Mu,$.CubeResource=ae,$.DDSLoader=v,$.DEG_TO_RAD=Wt,$.DisplayObject=i,$.Ellipse=Qt,$.Extract=s,$.FORMATS_TO_COMPONENTS=ll,$.FillStyle=Sl,$.Filter=Q,$.FilterState=dn,$.FilterSystem=gn,$.Framebuffer=Cr,$.FramebufferSystem=Pn,$.GLFramebuffer=An,$.GLProgram=js,$.GLTexture=Qs,$.GRAPHICS_CURVES=El,$.Geometry=tn,$.GeometrySystem=Cn,$.Graphics=au,$.GraphicsData=Zl,$.GraphicsGeometry=eu,$.IGLUniformData=Us,$.INSTALLED=qi,$.INTERNAL_FORMAT_TO_BYTES_PER_PIXEL=wa,$.ImageBitmapResource=Sr,$.ImageResource=gr,$.InteractionData=Bo,$.InteractionEvent=Go,$.InteractionManager=n,$.InteractionTrackingData=Ho,$.KTXLoader=pl,$.LineStyle=iu,$.Loader=_a,$.MaskData=In,$.MaskSystem=gs,$.Matrix=oi,$.Mesh=yh,$.MeshBatchUvs=fh,$.MeshGeometry=Sh,$.MeshMaterial=Th,$.NineSlicePlane=r0,$.ObjectRenderer=yn,$.ObservablePoint=ni,$.PI_2=Ht,$.ParticleContainer=gl,$.ParticleRenderer=Tl,$.PlaneGeometry=k0,$.Point=ee,$.Polygon=ei,$.Prepare=Ml,$.Program=rs,$.ProjectionSystem=Ps,$.Quad=sn,$.QuadUv=ln,$.RAD_TO_DEG=Yt,$.Rectangle=w,$.RenderTexture=Gr,$.RenderTexturePool=Hr,$.RenderTextureSystem=Ms,$.Renderer=ho,$.ResizePlugin=A,$.Resource=Qi,$.RopeGeometry=R0,$.RoundedRectangle=ii,$.Runner=Gi,$.SVGResource=f,$.ScissorSystem=ws,$.Shader=ss,$.ShaderSystem=Ws,$.SimpleMesh=i0,$.SimplePlane=t0,$.SimpleRope=Qc,$.Sprite=fu,$.SpriteMaskFilter=ms,$.Spritesheet=Ju,$.SpritesheetLoader=$u,$.State=as,$.StateSystem=qs,$.StencilSystem=As,$.System=_o,$.TYPES_TO_BYTES_PER_COMPONENT=al,$.TYPES_TO_BYTES_PER_PIXEL=ul,$.TemporaryDisplayObject=Di,$.Text=Pu,$.TextFormat=Oh,$.TextMetrics=Eu,$.TextStyle=bu,$.Texture=te,$.TextureGCSystem=Zs,$.TextureLoader=se,$.TextureMatrix=ps,$.TextureSystem=$s,$.TextureUvs=Fr,$.Ticker=Wi,$.TickerPlugin=oe,$.TilingSprite=sh,$.TilingSpriteRenderer=hh,$.TimeLimiter=Ku,$.Transform=Si,$.UniformGroup=cn,$.VERSION="6.5.5",$.VideoResource=Tr,$.ViewableBuffer=xo,$.XMLFormat=Ch,$.XMLStringFormat=Ih,$.accessibleTarget=re,$.autoDetectFormat=Fh,$.autoDetectRenderer=po,$.autoDetectResource=Ki,$.checkMaxIfStatementsInShader=es,$.createUBOElements=Ns,$.defaultFilterVertex=mo,$.defaultVertex=fo,$.extensions=ji,$.filters=a0,$.generateProgram=Xs,$.generateUniformBufferSync=Bs,$.getTestContext=Gn,$.getUBOData=zs,$.graphicsUtils=lu,$.groupD8=Ei,$.interactiveTarget=ne,$.isMobile=he,$.parseDDS=Va,$.parseKTX=hl,$.resources=Lo,$.settings=R,$.systems=No,$.uniformParsers=Kn,$.utils=Xt,Object.defineProperty($,"__esModule",{value:!0}),$}({}),e,e=e||eval("(function() { try { return Module || {} } catch(e) { return {} } })()"),aa={},k;for(k in e)e.hasOwnProperty(k)&&(aa[k]=e[k]);var ba="object"==typeof window,ca="function"==typeof importScripts,da="object"==typeof process&&"function"==typeof require&&!ba&&!ca,ea=!ba&&!da&&!ca;if(da){e.print||(e.print=function(e){process.stdout.write(e+"\n")}),e.printErr||(e.printErr=function(e){process.stderr.write(e+"\n")});var fa=require("fs"),ga=require("path");e.read=function(e,t){e=ga.normalize(e);var i=fa.readFileSync(e);return i||e==ga.resolve(e)||(e=path.join(__dirname,"..","src",e),i=fa.readFileSync(e)),i=i&&!t?i.toString():i},e.readBinary=function(t){return assert((t=(t=e.read(t,!0)).buffer?t:new Uint8Array(t)).buffer),t},e.load=function(e){ha(read(e))},e.thisProgram||(e.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program"),e.arguments=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=e),process.on("uncaughtException",function(e){if(!(e instanceof ia))throw e}),e.inspect=function(){return"[Emscripten Module object]"}}else if(ea)e.print||(e.print=print),"undefined"!=typeof printErr&&(e.printErr=printErr),e.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)"},e.readBinary=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(assert("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:"undefined"!=typeof arguments&&(e.arguments=arguments),eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined");else{if(!ba&&!ca)throw"Unknown runtime environment. Where are we?";e.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},"undefined"!=typeof arguments&&(e.arguments=arguments),"undefined"!=typeof console?(e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)})):e.print||(e.print=function(){}),ca&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}function ha(e){eval.call(null,e)}for(k in!e.load&&e.read&&(e.load=function(t){ha(e.read(t))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.W=e.printErr,e.preRun=[],e.postRun=[],aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);var n={rb:function(e){ka=e},fb:function(){return ka},ua:function(){return m},ba:function(e){m=e},Ka:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===e[e.length-1]?n.J:"i"===e[0]?(assert(0==(e=parseInt(e.substr(1)))%8),e/8):0}},eb:function(e){return Math.max(n.Ka(e),n.J)},ud:16,Qd:function(e,t){return"double"===t||"i64"===t?7&e&&(assert(4==(7&e)),e+=4):assert(0==(3&e)),e},Ed:function(e,t,i){return i||"i64"!=e&&"double"!=e?e?Math.min(t||(e?n.eb(e):0),n.J):Math.min(t,8):8},L:function(t,i,r){return r&&r.length?((r=r.splice?r:Array.prototype.slice.call(r)).splice(0,0,i),e["dynCall_"+t].apply(null,r)):e["dynCall_"+t].call(null,i)},Z:[],Xa:function(e){for(var t=0;t<n.Z.length;t++)if(!n.Z[t])return n.Z[t]=e,2*(1+t);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},nb:function(e){n.Z[(e-2)/2]=null},O:function(t){n.O.ta||(n.O.ta={}),n.O.ta[t]||(n.O.ta[t]=1,e.W(t))},ma:{},Hd:function(e,t){assert(t),n.ma[t]||(n.ma[t]={});var i=n.ma[t];return i[e]||(i[e]=function(){return n.L(t,e,arguments)}),i[e]},Fd:function(){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},aa:function(e){var t=m;return m=(m=m+e|0)+15&-16,t},Ra:function(e){var t=la;return la=(la=la+e|0)+15&-16,t},R:function(e){var i=r;return t<=(r=(r=r+e|0)+15&-16)&&!ma()?(r=i,0):i},ja:function(e,t){return Math.ceil(e/(t||16))*(t||16)},Nd:function(e,t,i){return i?(e>>>0)+4294967296*(t>>>0):(e>>>0)+4294967296*(0|t)},Ua:8,J:4,vd:0},na=(e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb,!1),oa,pa,ka,ra,sa;function assert(e,t){e||x("Assertion failed: "+t)}function qa(a){var b=e["_"+a];if(!b)try{b=eval("_"+a)}catch(c){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,i){switch(i="*"===(i=i||"i8").charAt(i.length-1)?"i32":i){case"i1":case"i8":y[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,1<=+xa(oa=t)?0<oa?(0|ya(+za(oa/4294967296),4294967295))>>>0:~~+Aa((oa-(~~oa>>>0))/4294967296)>>>0:0],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+i)}}function Da(e,t){switch(t="*"===(t=t||"i8").charAt(t.length-1)?"i32":t){case"i1":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,i,r){var s,o,a,l="number"==typeof e?(s=!0,e):(s=!1,e.length),u="string"==typeof t?t:null;if(i=4==i?r:[Ea,n.aa,n.Ra,n.R][void 0===i?2:i](Math.max(l,u?1:t.length)),s){for(assert(0==(3&(r=i))),e=i+(-4&l);r<e;r+=4)C[r>>2]=0;for(e=i+l;r<e;)y[r++>>0]=0}else if("i8"===u)e.subarray||e.slice?E.set(e,i):E.set(new Uint8Array(e),i);else{r=0;for(;r<l;){var h=e[r];"function"==typeof h&&(h=n.Id(h)),0===(s=u||t[r])?r++:(wa(i+r,h,s="i64"==s?"i32":s),a!==s&&(o=n.Ka(s),a=s),r+=o)}}return i}function va(t,i){if(0===i||!t)return"";for(var r,n=0,s=0;(n|=r=E[t+s>>0],0!=r||i)&&(s++,!i||s!=i););if(i=i||s,r="",n<128){for(;0<i;)n=String.fromCharCode.apply(String,E.subarray(t,t+Math.min(i,1024))),r=r?r+n:n,t+=1024,i-=1024;return r}return e.UTF8ToString(t)}function Ja(e,t){for(var i,r,n,s,o,a="";;){if(!(i=e[t++]))return a;128&i?(r=63&e[t++],192==(224&i)?a+=String.fromCharCode((31&i)<<6|r):(n=63&e[t++],(i=224==(240&i)?(15&i)<<12|r<<6|n:(s=63&e[t++],240==(248&i)?(7&i)<<18|r<<12|n<<6|s:(o=63&e[t++],248==(252&i)?(3&i)<<24|r<<18|n<<12|s<<6|o:(1&i)<<30|r<<24|n<<18|s<<12|o<<6|63&e[t++])))<65536?a+=String.fromCharCode(i):(i-=65536,a+=String.fromCharCode(55296|i>>10,56320|1023&i)))):a+=String.fromCharCode(i)}}function Ka(e,t,i,r){if(!(0<r))return 0;var n=i;r=i+r-1;for(var s=0;s<e.length;++s){var o=e.charCodeAt(s);if((o=55296<=o&&o<=57343?65536+((1023&o)<<10)|1023&e.charCodeAt(++s):o)<=127){if(r<=i)break;t[i++]=o}else{if(o<=2047){if(r<=i+1)break;t[i++]=192|o>>6}else{if(o<=65535){if(r<=i+2)break;t[i++]=224|o>>12}else{if(o<=2097151){if(r<=i+3)break;t[i++]=240|o>>18}else{if(o<=67108863){if(r<=i+4)break;t[i++]=248|o>>24}else{if(r<=i+5)break;t[i++]=252|o>>30,t[i++]=128|o>>24&63}t[i++]=128|o>>18&63}t[i++]=128|o>>12&63}t[i++]=128|o>>6&63}t[i++]=128|63&o}}return t[i]=0,i-n}function La(e){for(var t=0,i=0;i<e.length;++i){var r=e.charCodeAt(i);(r=55296<=r&&r<=57343?65536+((1023&r)<<10)|1023&e.charCodeAt(++i):r)<=127?++t:t=r<=2047?t+2:r<=65535?t+3:r<=2097151?t+4:r<=67108863?t+5:t+6}return t}function Ma(h){var t=!!e.___cxa_demangle;if(t)try{var i=Ea(h.length),r=(ua(h.substr(1),i),Ea(4)),s=e.___cxa_demangle(i,0,0,r);if(0===Da(r,"i32")&&s)return va(s)}catch(e){}finally{i&&Na(i),r&&Na(r),s&&Na(s)}var c=3,p={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],f=!0,i=h;try{if("Object._main"==h||"_main"==h)return"main()";if("_"!==(h="number"==typeof h?va(h):h)[0]||"_"!==h[1]||"Z"!==h[2])return h;switch(h[3]){case"n":return"operator new()";case"d":return"operator delete()"}i=function e(t,i,r){i=i||1/0;var n,s="",o=[];if("N"===h[c]){for("K"===h[++c]&&c++,n=[];"E"!==h[c];)if("S"===h[c]){c++;var a=h.indexOf("_",c);n.push(d[h.substring(c,a)||0]||"?"),c=a+1}else if("C"===h[c])n.push(n[n.length-1]),c+=2;else{var l=(a=parseInt(h.substr(c))).toString().length;if(!a||!l){c--;break}var u=h.substr(c+l,a);n.push(u),d.push(u),c+=l+a}if(c++,n=n.join("::"),0==--i)return t?[n]:n}else("K"===h[c]||f&&"L"===h[c])&&c++,(a=parseInt(h.substr(c)))&&(l=a.toString().length,n=h.substr(c+l,a),c+=l+a);f=!1,"I"===h[c]?(c++,a=e(!0),s+=(l=e(!0,1,!0))[0]+" "+n+"<"+a.join(", ")+">"):s=n;e:for(;c<h.length&&0<i--;)if(n=h[c++],n in p)o.push(p[n]);else switch(n){case"P":o.push(e(!0,1,!0)[0]+"*");break;case"R":o.push(e(!0,1,!0)[0]+"&");break;case"L":c++,a=h.indexOf("E",c)-c,o.push(h.substr(c,a)),c+=a+2;break;case"A":if(a=parseInt(h.substr(c)),c+=a.toString().length,"_"!==h[c])throw"?";c++,o.push(e(!0,1,!0)[0]+" ["+a+"]");break;case"E":break e;default:s+="?"+n;break e}return r||1!==o.length||"void"!==o[0]||(o=[]),t?(s&&o.push(s+"?"),o):s+("("+o.join(", "))+")"}()}catch(e){i+="?"}return 0<=i.indexOf("?")&&!t&&n.O("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),i}function Oa(){return Pa().replace(/__Z[\w\d_]+/g,function(e){var t=Ma(e);return e===t?e:e+" ["+t+"]"})}function Pa(){var t=Error();if(!t.stack){try{throw Error(0)}catch(e){t=e}if(!t.stack)return"(no stack trace available)"}return t.stack.toString()}function Qa(e){return 0<e%4096&&(e+=4096-e%4096),e}!function(){function a(e){return{arguments:(e=e.toString().match(d).slice(1))[0],body:e[1],returnValue:e[2]}}var b={stackSave:function(){n.ua()},stackRestore:function(){n.ba()},arrayToC:function(e){var t=n.aa(e.length);return ta(e,t),t},stringToC:function(e){var t=0;return null!=e&&0!==e&&ua(e,t=n.aa(1+(e.length<<2))),t}},c={string:b.stringToC,array:b.arrayToC},d=(sa=function(e,t,i,r,s){e=qa(e);var o=[],a=0;if(r)for(var l=0;l<r.length;l++){var u=c[i[l]];u?(0===a&&(a=n.ua()),o[l]=u(r[l])):o[l]=r[l]}if(i=e.apply(null,o),"string"===t&&(i=va(i)),0!==a){if(s&&s.async)return void EmterpreterAsync.yd.push(function(){n.ba(a)});n.ba(a)}return i},/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/),f={},g;for(g in b)b.hasOwnProperty(g)&&(f[g]=a(b[g]));ra=function(b,c,d){d=d||[];var g=qa(b),q=(b=d.every(function(e){return"number"===e}),"string"!==c);if(q&&b)return g;var v=d.map(function(e,t){return"$"+t}),B=(c="(function("+v.join(",")+") {",d.length);if(!b){c+="var stack = "+f.stackSave.body+";";for(var G=0;G<B;G++){var O=v[G],ja=d[G];"number"!==ja&&(ja=f[ja+"ToC"],c+="var "+ja.arguments+" = "+O+";",c+=ja.body+";",c+=O+"="+ja.returnValue+";")}}return d=a(function(){return g}).returnValue,c+="var ret = "+d+"("+v.join(",")+");",q||(d=a(function(){return va}).returnValue,c+="ret = "+d+"(ret);"),b||(c+=f.stackRestore.body.replace("()","(stack)")+";"),eval(c+"return ret})")}}(),e.ccall=sa,e.cwrap=ra,e.setValue=wa,e.getValue=Da,e.ALLOC_NORMAL=0,e.ALLOC_STACK=1,e.ALLOC_STATIC=2,e.ALLOC_DYNAMIC=3,e.ALLOC_NONE=4,e.allocate=D,e.getMemory=function(e){return Fa?void 0!==Ga&&!Ga.p||!Ha?n.R(e):Ea(e):n.Ra(e)},e.Pointer_stringify=va,e.AsciiToString=function(e){for(var t="";;){var i=y[e++>>0];if(!i)return t;t+=String.fromCharCode(i)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,i){return Ka(e,E,t,i)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,i="";;){var r=z[e+2*t>>1];if(0==r)return i;++t,i+=String.fromCharCode(r)}},e.stringToUTF16=function(e,t,i){if((i=void 0===i?2147483647:i)<2)return 0;var r=t;i=(i-=2)<2*e.length?i/2:e.length;for(var n=0;n<i;++n)z[t>>1]=e.charCodeAt(n),t+=2;return z[t>>1]=0,t-r},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,i="";;){var r=C[e+4*t>>2];if(0==r)return i;++t,65536<=r?(r-=65536,i+=String.fromCharCode(55296|r>>10,56320|1023&r)):i+=String.fromCharCode(r)}},e.stringToUTF32=function(e,t,i){if((i=void 0===i?2147483647:i)<4)return 0;var r=t;i=r+i-4;for(var n=0;n<e.length;++n){var s=e.charCodeAt(n);if(55296<=s&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++n)),C[t>>2]=s,i<(t+=4)+4)break}return C[t>>2]=0,t-r},e.lengthBytesUTF32=function(e){for(var t=0,i=0;i<e.length;++i){var r=e.charCodeAt(i);55296<=r&&r<=57343&&++i,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya;function ma(){var i,n=Math.pow(2,31);if(n<=r)return!1;for(;t<=r;)if(t<n/2)t=Qa(2*t);else{var s=t;if((t=Qa((3*t+n)/4))<=s)return!1}if(n<=(t=Math.max(t,16777216)))return!1;try{buffer=ArrayBuffer.p?ArrayBuffer.p(buffer,t):(i=y,new ArrayBuffer(t))}catch(e){return!1}return!!Xa(buffer)&&(e.buffer=buffer,e.HEAP8=y=new Int8Array(buffer),e.HEAP16=z=new Int16Array(buffer),e.HEAP32=C=new Int32Array(buffer),e.HEAPU8=E=new Uint8Array(buffer),e.HEAPU16=Ra=new Uint16Array(buffer),e.HEAPU32=Sa=new Uint32Array(buffer),e.HEAPF32=Ba=new Float32Array(buffer),e.HEAPF64=Ca=new Float64Array(buffer),ArrayBuffer.p||y.set(i),!0)}try{Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get),Ya(new ArrayBuffer(4))}catch(Za){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536,buffer;F<t||F<2*$a;)F=F<16777216?2*F:F+16777216;function ab(e){for(;0<e.length;){var t,i=e.shift();"function"==typeof i?i():"number"==typeof(t=i.ab)?void 0===i.X?n.L("v",t):n.L("vi",t,[i.X]):t(void 0===i.X?null:i.X)}}F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support"),buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;function fb(e){bb.unshift(e)}function gb(e){eb.unshift(e)}function hb(e,t,i){return e=Ka(e,i=Array(0<i?i:La(e)+1),0,i.length),t&&(i.length=e),i}function ua(e,t,i){for(e=hb(e,i),i=0;i<e.length;)y[t+i>>0]=e[i],i+=1}function ta(e,t){for(var i=0;i<e.length;i++)y[t++>>0]=e[i]}function Ia(e,t,i){for(var r=0;r<e.length;++r)y[t++>>0]=e.charCodeAt(r);i||(y[t>>0]=0)}e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];255<r&&(r&=255),t.push(String.fromCharCode(r))}return t.join("")},e.writeStringToMemory=ua,e.writeArrayToMemory=ta,e.writeAsciiToMemory=Ia,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var i=65535&e,r=65535&t;return i*r+((e>>>16)*r+i*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;function kb(){I++,e.monitorRunDependencies&&e.monitorRunDependencies(I)}function lb(){var t;I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)&&(t=jb,jb=null,t())}e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,239,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,4,0,0,0,231,16,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,40,37,117,41,58,32,65,115,115,101,114,116,105,111,110,32,102,97,105,108,117,114,101,58,32,34,37,115,34,10,0,109,95,115,105,122,101,32,60,61,32,109,95,99,97,112,97,99,105,116,121,0,46,47,99,114,110,95,100,101,99,111,109,112,46,104,0,109,105,110,95,110,101,119,95,99,97,112,97,99,105,116,121,32,60,32,40,48,120,55,70,70,70,48,48,48,48,85,32,47,32,101,108,101,109,101,110,116,95,115,105,122,101,41,0,110,101,119,95,99,97,112,97,99,105,116,121,32,38,38,32,40,110,101,119,95,99,97,112,97,99,105,116,121,32,62,32,109,95,99,97,112,97,99,105,116,121,41,0,110,117,109,95,99,111,100,101,115,91,99,93,0,115,111,114,116,101,100,95,112,111,115,32,60,32,116,111,116,97,108,95,117,115,101,100,95,115,121,109,115,0,112,67,111,100,101,115,105,122,101,115,91,115,121,109,95,105,110,100,101,120,93,32,61,61,32,99,111,100,101,115,105,122,101,0,116,32,60,32,40,49,85,32,60,60,32,116,97,98,108,101,95,98,105,116,115,41,0,109,95,108,111,111,107,117,112,91,116,93,32,61,61,32,99,85,73,78,84,51,50,95,77,65,88,0,99,114,110,100,95,109,97,108,108,111,99,58,32,115,105,122,101,32,116,111,111,32,98,105,103,0,99,114,110,100,95,109,97,108,108,111,99,58,32,111,117,116,32,111,102,32,109,101,109,111,114,121,0,40,40,117,105,110,116,51,50,41,112,95,110,101,119,32,38,32,40,67,82,78,68,95,77,73,78,95,65,76,76,79,67,95,65,76,73,71,78,77,69,78,84,32,45,32,49,41,41,32,61,61,32,48,0,99,114,110,100,95,114,101,97,108,108,111,99,58,32,98,97,100,32,112,116,114,0,99,114,110,100,95,102,114,101,101,58,32,98,97,100,32,112,116,114,0,102,97,108,115,101,0,40,116,111,116,97,108,95,115,121,109,115,32,62,61,32,49,41,32,38,38,32,40,116,111,116,97,108,95,115,121,109,115,32,60,61,32,112,114,101,102,105,120,95,99,111,100,105,110,103,58,58,99,77,97,120,83,117,112,112,111,114,116,101,100,83,121,109,115,41,0,17,18,19,20,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,16,48,0,110,117,109,95,98,105,116,115,32,60,61,32,51,50,85,0,109,95,98,105,116,95,99,111,117,110,116,32,60,61,32,99,66,105,116,66,117,102,83,105,122,101,0,116,32,33,61,32,99,85,73,78,84,51,50,95,77,65,88,0,109,111,100,101,108,46,109,95,99,111,100,101,95,115,105,122,101,115,91,115,121,109,93,32,61,61,32,108,101,110,0,0,2,3,1,0,2,3,4,5,6,7,1,40,108,101,110,32,62,61,32,49,41,32,38,38,32,40,108,101,110,32,60,61,32,99,77,97,120,69,120,112,101,99,116,101,100,67,111,100,101,83,105,122,101,41,0,105,32,60,32,109,95,115,105,122,101,0,110,101,120,116,95,108,101,118,101,108,95,111,102,115,32,62,32,99,117,114,95,108,101,118,101,108,95,111,102,115,0,1,2,2,3,3,3,3,4,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,2,1,2,0,0,0,1,0,2,1,0,2,0,0,1,2,3,110,117,109,32,38,38,32,40,110,117,109,32,61,61,32,126,110,117,109,95,99,104,101,99,107,41,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",4,n.Ua);var mb=n.ja(D(12,"i8",2),8);function ob(t){return e.___errno_location&&(C[e.___errno_location()>>2]=t),t}assert(0==mb%8),e._i64Subtract=nb;var J={I:1,F:2,ed:3,bc:4,H:5,Aa:6,vb:7,zc:8,ea:9,Jb:10,va:11,qd:11,Ta:12,da:13,Vb:14,Lc:15,fa:16,wa:17,rd:18,ha:19,ya:20,P:21,q:22,uc:23,Sa:24,Q:25,nd:26,Wb:27,Hc:28,ia:29,bd:30,nc:31,Vc:32,Sb:33,Zc:34,Dc:42,Zb:43,Kb:44,ec:45,fc:46,gc:47,mc:48,od:49,xc:50,dc:51,Pb:35,Ac:37,Bb:52,Eb:53,sd:54,vc:55,Fb:56,Gb:57,Qb:35,Hb:59,Jc:60,yc:61,kd:62,Ic:63,Ec:64,Fc:65,ad:66,Bc:67,yb:68,gd:69,Lb:70,Wc:71,pc:72,Tb:73,Db:74,Qc:76,Cb:77,$c:78,hc:79,ic:80,lc:81,kc:82,jc:83,Kc:38,za:39,qc:36,ga:40,Rc:95,Uc:96,Ob:104,wc:105,zb:97,Yc:91,Oc:88,Gc:92,cd:108,Nb:111,wb:98,Mb:103,tc:101,rc:100,ld:110,Xb:112,Yb:113,ac:115,Ab:114,Rb:89,oc:90,Xc:93,dd:94,xb:99,sc:102,cc:106,Mc:107,md:109,pd:87,Ub:122,hd:116,Pc:95,Cc:123,$b:84,Sc:75,Ib:125,Nc:131,Tc:130,jd:86};function pb(e,t){H.push(function(){n.L("vi",e,[t])}),pb.level=H.length}function tb(){return!!tb.p}e._memset=qb,e._bitshift64Lshr=rb,e._bitshift64Shl=sb;var ub=[],vb={};function wb(e,t){wb.p||(wb.p={}),e in wb.p||(n.L("v",t),wb.p[e]=1)}var xb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function yb(e,t){for(var i=0,r=e.length-1;0<=r;r--){var n=e[r];"."===n?e.splice(r,1):".."===n?(e.splice(r,1),i++):i&&(e.splice(r,1),i--)}if(t)for(;i--;)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),i="/"===e.substr(-1);return(e=(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t?e:".")&&i&&(e+="/"),(t?"/":"")+e}function Ab(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?e+(t=t&&t.substr(0,t.length-1)):"."}function Bb(e){var t;return"/"===e?"/":-1===(t=e.lastIndexOf("/"))?e:e.substr(t+1)}function Cb(){return zb(Array.prototype.slice.call(arguments,0).join("/"))}function K(e,t){return zb(e+"/"+t)}function Db(){for(var e="",t=!1,i=arguments.length-1;-1<=i&&!t;i--){if("string"!=typeof(t=0<=i?arguments[i]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||"."}var Eb=[];function Fb(e,t){Eb[e]={input:[],output:[],N:t},Gb(e,Hb)}var Hb={open:function(e){var t=Eb[e.g.rdev];if(!t)throw new L(J.ha);e.tty=t,e.seekable=!1},close:function(e){e.tty.N.flush(e.tty)},flush:function(e){e.tty.N.flush(e.tty)},read:function(e,t,i,r){if(!e.tty||!e.tty.N.La)throw new L(J.Aa);for(var n,s=0,o=0;o<r;o++){try{n=e.tty.N.La(e.tty)}catch(e){throw new L(J.H)}if(void 0===n&&0===s)throw new L(J.va);if(null==n)break;s++,t[i+o]=n}return s&&(e.g.timestamp=Date.now()),s},write:function(e,t,i,r){if(!e.tty||!e.tty.N.qa)throw new L(J.Aa);for(var n=0;n<r;n++)try{e.tty.N.qa(e.tty,t[i+n])}catch(e){throw new L(J.H)}return r&&(e.g.timestamp=Date.now()),n}},Ib={La:function(e){if(!e.input.length){var t=null;if(da){var i,r=new Buffer(256),n=process.stdin.fd,s=!1;try{n=fs.openSync("/dev/stdin","r"),s=!0}catch(e){}i=fs.readSync(n,r,0,256,null),s&&fs.closeSync(n),t=0<i?r.slice(0,i).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&(null!==(t=readline())&&(t+="\n"));if(!t)return null;e.input=hb(t,!0)}return e.input.shift()},qa:function(t,i){null===i||10===i?(e.print(Ja(t.output,0)),t.output=[]):0!=i&&t.output.push(i)},flush:function(t){t.output&&0<t.output.length&&(e.print(Ja(t.output,0)),t.output=[])}},Jb={qa:function(t,i){null===i||10===i?(e.printErr(Ja(t.output,0)),t.output=[]):0!=i&&t.output.push(i)},flush:function(t){t.output&&0<t.output.length&&(e.printErr(Ja(t.output,0)),t.output=[])}},M={C:null,A:function(){return M.createNode(null,"/",16895,0)},createNode:function(e,t,i,r){if(24576==(61440&i)||4096==(61440&i))throw new L(J.I);return M.C||(M.C={dir:{g:{D:M.k.D,u:M.k.u,lookup:M.k.lookup,T:M.k.T,rename:M.k.rename,unlink:M.k.unlink,rmdir:M.k.rmdir,readdir:M.k.readdir,symlink:M.k.symlink},stream:{G:M.n.G}},file:{g:{D:M.k.D,u:M.k.u},stream:{G:M.n.G,read:M.n.read,write:M.n.write,Ba:M.n.Ba,Na:M.n.Na,Pa:M.n.Pa}},link:{g:{D:M.k.D,u:M.k.u,readlink:M.k.readlink},stream:{}},Ea:{g:{D:M.k.D,u:M.k.u},stream:Kb}}),N((i=Lb(e,t,i,r)).mode)?(i.k=M.C.dir.g,i.n=M.C.dir.stream,i.e={}):32768==(61440&i.mode)?(i.k=M.C.file.g,i.n=M.C.file.stream,i.o=0,i.e=null):40960==(61440&i.mode)?(i.k=M.C.link.g,i.n=M.C.link.stream):8192==(61440&i.mode)&&(i.k=M.C.Ea.g,i.n=M.C.Ea.stream),i.timestamp=Date.now(),e&&(e.e[t]=i),i},cb:function(e){if(e.e&&e.e.subarray){for(var t=[],i=0;i<e.o;++i)t.push(e.e[i]);return t}return e.e},Gd:function(e){return e.e?e.e.subarray?e.e.subarray(0,e.o):new Uint8Array(e.e):new Uint8Array},Ga:function(e,t){if(e.e&&e.e.subarray&&t>e.e.length&&(e.e=M.cb(e),e.o=e.e.length),!e.e||e.e.subarray){var i=e.e?e.e.buffer.byteLength:0;t<=i||(t=Math.max(t,i*(i<1048576?2:1.125)|0),0!=i&&(t=Math.max(t,256)),i=e.e,e.e=new Uint8Array(t),0<e.o&&e.e.set(i.subarray(0,e.o),0))}else for(!e.e&&0<t&&(e.e=[]);e.e.length<t;)e.e.push(0)},ob:function(e,t){if(e.o!=t)if(0==t)e.e=null,e.o=0;else{if(!e.e||e.e.subarray){var i=e.e;e.e=new Uint8Array(new ArrayBuffer(t)),i&&e.e.set(i.subarray(0,Math.min(t,e.o)))}else if(e.e||(e.e=[]),e.e.length>t)e.e.length=t;else for(;e.e.length<t;)e.e.push(0);e.o=t}},k:{D:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,N(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.o:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.K=4096,t.blocks=Math.ceil(t.size/t.K),t},u:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&M.ob(e,t.size)},lookup:function(){throw Mb[J.F]},T:function(e,t,i,r){return M.createNode(e,t,i,r)},rename:function(e,t,i){if(N(e.mode)){var r;try{r=Nb(t,i)}catch(e){}if(r)for(var n in r.e)throw new L(J.za)}delete e.parent.e[e.name],e.name=i,(t.e[i]=e).parent=t},unlink:function(e,t){delete e.e[t]},rmdir:function(e,t){for(var i in Nb(e,t).e)throw new L(J.za);delete e.e[t]},readdir:function(e){var t,i=[".",".."];for(t in e.e)e.e.hasOwnProperty(t)&&i.push(t);return i},symlink:function(e,t,i){return(e=M.createNode(e,t,41471,0)).link=i,e},readlink:function(e){if(40960!=(61440&e.mode))throw new L(J.q);return e.link}},n:{read:function(e,t,i,r,n){var s=e.g.e;if(n>=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-n,r))),8<e&&s.subarray)t.set(s.subarray(n,n+e),i);else for(r=0;r<e;r++)t[i+r]=s[n+r];return e},write:function(e,t,i,r,n,s){if(!r)return 0;if((e=e.g).timestamp=Date.now(),t.subarray&&(!e.e||e.e.subarray)){if(s)return e.e=t.subarray(i,i+r),e.o=r;if(0===e.o&&0===n)return e.e=new Uint8Array(t.subarray(i,i+r)),e.o=r;if(n+r<=e.o)return e.e.set(t.subarray(i,i+r),n),r}if(M.Ga(e,n+r),e.e.subarray&&t.subarray)e.e.set(t.subarray(i,i+r),n);else for(s=0;s<r;s++)e.e[n+s]=t[i+s];return e.o=Math.max(e.o,n+r),r},G:function(e,t,i){if(1===i?t+=e.position:2===i&&32768==(61440&e.g.mode)&&(t+=e.g.o),t<0)throw new L(J.q);return t},Ba:function(e,t,i){M.Ga(e.g,t+i),e.g.o=Math.max(e.g.o,t+i)},Na:function(e,t,i,r,n,s,o){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(i=e.g.e,2&o||i.buffer!==t&&i.buffer!==t.buffer){if((0<n||n+r<e.g.o)&&(i=i.subarray?i.subarray(n,n+r):Array.prototype.slice.call(i,n,n+r)),e=!0,!(r=Ea(r)))throw new L(J.Ta);t.set(i,r)}else e=!1,r=i.byteOffset;return{Rd:r,xd:e}},Pa:function(e,t,i,r,n){if(32768!=(61440&e.g.mode))throw new L(J.ha);return 2&n||M.n.write(e,t,0,r,i,!1),0}}},P={$:!1,sb:function(){P.$=!!process.platform.match(/^win/)},A:function(e){return assert(da),P.createNode(null,"/",P.Ja(e.pa.root),0)},createNode:function(e,t,i){if(N(i)||32768==(61440&i)||40960==(61440&i))return(e=Lb(e,t,i)).k=P.k,e.n=P.n,e;throw new L(J.q)},Ja:function(e){var t;try{t=fs.lstatSync(e),P.$&&(t.mode=t.mode|(146&t.mode)>>1)}catch(e){if(e.code)throw new L(J[e.code]);throw e}return t.mode},B:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.A.pa.root),t.reverse(),Cb.apply(null,t)},Ha:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},$a:function(e){if((e&=-32769)in P.Ha)return P.Ha[e];throw new L(J.q)},k:{D:function(e){var t;e=P.B(e);try{t=fs.lstatSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}return P.$&&!t.K&&(t.K=4096),P.$&&!t.blocks&&(t.blocks=(t.size+t.K-1)/t.K|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,K:t.K,blocks:t.blocks}},u:function(e,t){var i=P.B(e);try{void 0!==t.mode&&(fs.chmodSync(i,t.mode),e.mode=t.mode),void 0!==t.size&&fs.truncateSync(i,t.size)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},lookup:function(e,t){var i=K(P.B(e),t),i=P.Ja(i);return P.createNode(e,t,i)},T:function(e,t,i,r){e=P.createNode(e,t,i,r),t=P.B(e);try{N(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(e.code)throw new L(J[e.code]);throw e}return e},rename:function(e,t,i){e=P.B(e),t=K(P.B(t),i);try{fs.renameSync(e,t)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},unlink:function(e,t){e=K(P.B(e),t);try{fs.unlinkSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},rmdir:function(e,t){e=K(P.B(e),t);try{fs.rmdirSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},symlink:function(e,t,i){e=K(P.B(e),t);try{fs.symlinkSync(i,e)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(e.code)throw new L(J[e.code]);throw e}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(e.code)throw new L(J[e.code]);throw e}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(e.code)throw new L(J[e.code]);throw e}},read:function(e,t,i,r,n){if(0===r)return 0;var s,o=new Buffer(r);try{s=fs.readSync(e.V,o,0,r,n)}catch(e){throw new L(J[e.code])}if(0<s)for(e=0;e<s;e++)t[i+e]=o[e];return s},write:function(e,t,i,r,n){var s;t=new Buffer(t.subarray(i,i+r));try{s=fs.writeSync(e.V,t,0,r,n)}catch(e){throw new L(J[e.code])}return s},G:function(e,t,i){if(1===i)t+=e.position;else if(2===i&&32768==(61440&e.g.mode))try{t+=fs.fstatSync(e.V).size}catch(e){throw new L(J[e.code])}if(t<0)throw new L(J.q);return t}}},Pb=(D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2),null),Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={};function S(e,t){if(t=t||{},!(e=Db("/",e)))return{path:"",g:null};for(n in i={Ia:!0,ra:0})void 0===t[n]&&(t[n]=i[n]);if(8<t.ra)throw new L(J.ga);for(var i=yb(e.split("/").filter(function(e){return!!e}),!1),r=Pb,n="/",s=0;s<i.length;s++){var o=s===i.length-1;if(o&&t.parent)break;if(r=Nb(r,i[s]),n=K(n,i[s]),!r.U||o&&!t.Ia||(r=r.U.root),!o||t.la)for(o=0;40960==(61440&r.mode);)if(r=Vb(n),r=S(n=Db(Ab(n),r),{ra:t.ra}).g,40<o++)throw new L(J.ga)}return{path:n,g:r}}function T(e){for(var t;;){if(e===e.parent)return e=e.A.Oa,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function Wb(e,t){for(var i=0,r=0;r<t.length;r++)i=(i<<5)-i+t.charCodeAt(r)|0;return(e+i>>>0)%Q.length}function Xb(e){var t=Wb(e.parent.id,e.name);e.M=Q[t],Q[t]=e}function Nb(e,t){var i;if(i=(i=Yb(e,"x"))?i:e.k.lookup?0:J.da)throw new L(i,e);for(i=Q[Wb(e.id,t)];i;i=i.M){var r=i.name;if(i.parent.id===e.id&&r===t)return i}return e.k.lookup(e,t)}function Lb(e,t,i,r){return Zb||((Zb=function(e,t,i,r){this.parent=e=e||this,this.A=e.A,this.U=null,this.id=Sb++,this.name=t,this.mode=i,this.k={},this.n={},this.rdev=r}).prototype={},Object.defineProperties(Zb.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},kb:{get:function(){return N(this.mode)}},jb:{get:function(){return 8192==(61440&this.mode)}}})),Xb(e=new Zb(e,t,i,r)),e}function N(e){return 16384==(61440&e)}var $b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function Yb(e,t){return Tb||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:J.da}function ac(e,t){try{return Nb(e,t),J.wa}catch(e){}return Yb(e,"wx")}function bc(){for(var e=0;e<=4096;e++)if(!Rb[e])return e;throw new L(J.Sa)}function cc(e){dc||((dc=function(){}).prototype={},Object.defineProperties(dc.prototype,{object:{get:function(){return this.g},set:function(e){this.g=e}},Ld:{get:function(){return 1!=(2097155&this.flags)}},Md:{get:function(){return 0!=(2097155&this.flags)}},Kd:{get:function(){return 1024&this.flags}}}));var t,i=new dc;for(t in e)i[t]=e[t];return e=i,i=bc(),e.fd=i,Rb[i]=e}var Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc;function Gb(e,t){Qb[e]={n:t}}function ec(e,t){var i,r="/"===t,n=!t;if(r&&Pb)throw new L(J.fa);if(!r&&!n){if(t=(i=S(t,{Ia:!1})).path,(i=i.g).U)throw new L(J.fa);if(!N(i.mode))throw new L(J.ya)}n={type:e,pa:{},Oa:t,lb:[]},t=e.A(n);(t.A=n).root=t,r?Pb=t:i&&(i.U=n,i.A&&i.A.lb.push(n))}function fc(e,t,i){var r=S(e,{parent:!0}).g;if(!(e=Bb(e))||"."===e||".."===e)throw new L(J.q);var n=ac(r,e);if(n)throw new L(n);if(r.k.T)return r.k.T(r,e,t,i);throw new L(J.I)}function gc(e,t){return t=4095&(void 0!==t?t:438),fc(e,t|=32768,0)}function V(e,t){return t=1023&(void 0!==t?t:511),fc(e,t|=16384,0)}function hc(e,t,i){return void 0===i&&(i=t,t=438),fc(e,8192|t,i)}function ic(e,t){if(!Db(e))throw new L(J.F);var i=S(t,{parent:!0}).g;if(!i)throw new L(J.F);var t=Bb(t),r=ac(i,t);if(r)throw new L(r);if(i.k.symlink)return i.k.symlink(i,t,e);throw new L(J.I)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(e.k.readlink)return Db(T(e.parent),e.k.readlink(e));throw new L(J.q)}function jc(e,t){e="string"==typeof e?S(e,{la:!0}).g:e;if(!e.k.u)throw new L(J.I);e.k.u(e,{mode:4095&t|-4096&e.mode,timestamp:Date.now()})}function kc(t,i){var r,n;if(""===t)throw new L(J.F);if("string"==typeof i){if(void 0===(r=$b[i]))throw Error("Unknown file open mode: "+i)}else r=i;if(s=64&(i=r)?4095&(void 0===s?438:s)|32768:0,"object"==typeof t)n=t;else{t=zb(t);try{n=S(t,{la:!(131072&i)}).g}catch(e){}}if(r=!1,64&i)if(n){if(128&i)throw new L(J.wa)}else n=fc(t,s,0),r=!0;if(!n)throw new L(J.F);if(8192==(61440&n.mode)&&(i&=-513),65536&i&&!N(n.mode))throw new L(J.ya);if(!r&&(s=n?40960==(61440&n.mode)?J.ga:N(n.mode)&&(0!=(2097155&i)||512&i)?J.P:(s=["r","w","rw"][3&i],512&i&&(s+="w"),Yb(n,s)):J.F))throw new L(s);if(512&i){var s,o="string"==typeof(s=n)?S(s,{la:!0}).g:s;if(!o.k.u)throw new L(J.I);if(N(o.mode))throw new L(J.P);if(32768!=(61440&o.mode))throw new L(J.q);if(s=Yb(o,"w"))throw new L(s);o.k.u(o,{size:0,timestamp:Date.now()})}i&=-641,(n=cc({g:n,path:T(n),flags:i,seekable:!0,position:0,n:n.n,tb:[],error:!1})).n.open&&n.n.open(n),!e.logReadFiles||1&i||(t in(lc=lc||{})||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(o=0,1!=(2097155&i)&&(o|=1),0!=(2097155&i)&&(o|=2),R.onOpenFile(t,o))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return n}function mc(e){e.na&&(e.na=null);try{e.n.close&&e.n.close(e)}catch(e){throw e}finally{Rb[e.fd]=null}}function nc(e,t,i){if(!e.seekable||!e.n.G)throw new L(J.ia);e.position=e.n.G(e,t,i),e.tb=[]}function oc(e,t,i,r,n,s){if(r<0||n<0)throw new L(J.q);if(0==(2097155&e.flags))throw new L(J.ea);if(N(e.g.mode))throw new L(J.P);if(!e.n.write)throw new L(J.q);1024&e.flags&&nc(e,0,2);var o=!0;if(void 0===n)n=e.position,o=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,i,r,n,s),o||(e.position+=t);try{e.path&&R.onWriteToFile&&R.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return t}function pc(){L||((L=function(e,t){this.g=t,this.qb=function(e){for(var t in this.S=e,J)if(J[t]===e){this.code=t;break}},this.qb(e),this.message=xb[e]}).prototype=Error(),L.prototype.constructor=L,[J.F].forEach(function(e){Mb[e]=new L(e),Mb[e].stack="<generic error, no stack>"}))}function rc(e,t){var i=0;return e&&(i|=365),t&&(i|=146),i}function sc(e,t,i,r){return gc(e=K("string"==typeof e?e:T(e),t),rc(i,r))}function tc(e,t,i,r,n,s){if(n=gc(e=t?K("string"==typeof e?e:T(e),t):e,r=rc(r,n)),i){if("string"==typeof i){e=Array(i.length),t=0;for(var o=i.length;t<o;++t)e[t]=i.charCodeAt(t);i=e}jc(n,146|r),oc(e=kc(n,"w"),i,0,i.length,0,s),mc(e),jc(n,r)}return n}function W(e,t,a,s){e=K("string"==typeof e?e:T(e),t),t=rc(!!a,!!s),W.Ma||(W.Ma=64);var i=W.Ma++<<8|0;return Gb(i,{open:function(e){e.seekable=!1},close:function(){s&&s.buffer&&s.buffer.length&&s(10)},read:function(e,t,i,r){for(var n,s=0,o=0;o<r;o++){try{n=a()}catch(e){throw new L(J.H)}if(void 0===n&&0===s)throw new L(J.va);if(null==n)break;s++,t[i+o]=n}return s&&(e.g.timestamp=Date.now()),s},write:function(e,t,i,r){for(var n=0;n<r;n++)try{s(t[i+n])}catch(e){throw new L(J.H)}return r&&(e.g.timestamp=Date.now()),n}}),hc(e,t,i)}function uc(t){if(t.jb||t.kb||t.link||t.e)return!0;var i=!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!e.read)throw Error("Cannot load without read() or XMLHttpRequest.");try{t.e=hb(e.read(t.url),!0),t.o=t.e.length}catch(e){i=!1}return i||ob(J.H),i}var vc={},Zb,dc,lc,wc=0;function X(){return C[(wc+=4)-4>>2]}function xc(){var e=X();if(e=Rb[e])return e;throw new L(J.ea)}var yc={};function Ga(e){Ga.p||(r=Qa(r),Ga.p=!0,assert(n.R),Ga.bb=n.R,n.R=function(){x("cannot dynamically allocate, sbrk now has control")});var t=r;return 0==e||Ga.bb(e)?t:4294967295}e._i64Add=zc;var Ac=1;function Cc(e,t){var i;return Dc=e,Ec=t,Fc?(0==e?(Y=function(){setTimeout(Gc,t)},Hc="timeout"):1==e?(Y=function(){Ic(Gc)},Hc="rAF"):2==e&&(window.setImmediate||(i=[],window.addEventListener("message",function(e){e.source===window&&"__emcc"===e.data&&(e.stopPropagation(),i.shift()())},!0),window.setImmediate=function(e){i.push(e),window.postMessage("__emcc","*")}),Y=function(){window.setImmediate(Gc)},Hc="immediate"),0):1}function Jc(o,t,i,a,r){e.noExitRuntime=!0,assert(!Fc,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Fc=o,Kc=a;var l=Lc;if(Gc=function(){var t,i,r,s;na||(0<Mc.length?(t=Date.now(),(i=Mc.shift()).ab(i.X),Nc&&(s=0==(r=Nc)%1?r-1:Math.floor(r),Nc=i.Bd?s:(8*r+(s+.5))/9),console.log('main loop blocker "'+i.name+'" took '+(Date.now()-t)+" ms"),Oc(),setTimeout(Gc,0)):l<Lc||(Pc=Pc+1|0,1==Dc&&1<Ec&&0!=Pc%Ec?Y():("timeout"===Hc&&e.ka&&(e.W("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Hc=""),Qc(function(){void 0!==a?n.L("vi",o,[a]):n.L("v",o)}),l<Lc||("object"==typeof SDL&&SDL.audio&&SDL.audio.mb&&SDL.audio.mb(),Y()))))},r||(t&&0<t?Cc(0,1e3/t):Cc(1,1),Y()),i)throw"SimulateInfiniteLoop"}e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[];function Oc(){var t,i,r;e.setStatus&&(t=e.statusMessage||"Please wait...",i=Nc,r=Rc.Dd,i?i<r?e.setStatus(t+" ("+(r-i)+"/"+r+")"):e.setStatus(t):e.setStatus(""))}function Qc(t){if(!(na||e.preMainLoop&&!1===e.preMainLoop())){try{t()}catch(t){if(t instanceof ia)return;throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t}e.postMainLoop&&e.postMainLoop()}}var Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[];function Vc(){function t(){Tc=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i||document.msPointerLockElement===i}if(e.preloadPlugins||(e.preloadPlugins=[]),!Wc){Wc=!0;try{Xc=!0}catch(e){Xc=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Yc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Xc?null:console.log("warning: no BlobBuilder"),Zc="undefined"!=typeof window?window.URL||window.webkitURL:void 0,e.Qa||void 0!==Zc||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.Qa=!0),e.preloadPlugins.push({canHandle:function(t){return!e.Qa&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},handle:function(i,r,s,t){var o=null;if(Xc)try{(o=new Blob([i],{type:$c(r)})).size!==i.length&&(o=new Blob([new Uint8Array(i).buffer],{type:$c(r)}))}catch(e){n.O("Blob constructor present but fails: "+e+"; falling back to blob builder")}o||((o=new Yc).append(new Uint8Array(i).buffer),o=o.getBlob());var a=Zc.createObjectURL(o),l=new Image;l.onload=function(){assert(l.complete,"Image "+r+" could not be decoded");var t=document.createElement("canvas");t.width=l.width,t.height=l.height,t.getContext("2d").drawImage(l,0,0),e.preloadedImages[r]=t,Zc.revokeObjectURL(a),s&&s(i)},l.onerror=function(){console.log("Image "+a+" could not be decoded"),t&&t()},l.src=a}}),e.preloadPlugins.push({canHandle:function(t){return!e.Pd&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(s,o,i,t){function a(t){l||(l=!0,e.preloadedAudios[o]=t,i&&i(s))}function r(){l||(l=!0,e.preloadedAudios[o]=new Audio,t&&t())}var l=!1;if(!Xc)return r();try{var n=new Blob([s],{type:$c(o)})}catch(e){return r()}var n=Zc.createObjectURL(n),u=new Audio;u.addEventListener("canplaythrough",function(){a(u)},!1),u.onerror=function(){if(!l){console.log("warning: browser could not fully decode audio "+o+", trying slower base64 approach");for(var e="",t=0,i=0,r=0;r<s.length;r++)for(t=t<<8|s[r],i+=8;6<=i;)var n=t>>i-6&63,i=i-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n];2==i?e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t)<<4]+"==":4==i&&(e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t)<<2]+"="),u.src="data:audio/x-"+o.substr(-3)+";base64,"+e,a(u)}},u.src=n,ad(function(){a(u)})}});var i=e.canvas;i&&(i.sa=i.requestPointerLock||i.mozRequestPointerLock||i.webkitRequestPointerLock||i.msRequestPointerLock||function(){},i.Fa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},i.Fa=i.Fa.bind(document),document.addEventListener("pointerlockchange",t,!1),document.addEventListener("mozpointerlockchange",t,!1),document.addEventListener("webkitpointerlockchange",t,!1),document.addEventListener("mspointerlockchange",t,!1),e.elementPointerLock&&i.addEventListener("click",function(e){!Tc&&i.sa&&(i.sa(),e.preventDefault())},!1))}}function bd(t,i,r,n){if(i&&e.ka&&t==e.canvas)return e.ka;var s,o;if(i){if(o={antialias:!1,alpha:!1},n)for(var a in n)o[a]=n[a];(o=GL.createContext(t,o))&&(s=GL.getContext(o).td),t.style.backgroundColor="black"}else s=t.getContext("2d");return s?(r&&(i||assert("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ka=s,i&&GL.Od(o),e.Td=i,Uc.forEach(function(e){e()}),Vc()),s):null}var cd=!1,dd=void 0,ed=void 0;function fd(t,i,r){function n(){Sc=!1;var t=s.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(s.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},s.Da=s.Da.bind(document),dd&&s.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(s)}void 0===(dd=t)&&(dd=!0),void 0===(ed=i)&&(ed=!1),void 0===(jd=r)&&(jd=null);var s=e.canvas,o=(cd||(cd=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1)),document.createElement("div"));s.parentNode.insertBefore(o,s),o.appendChild(s),o.p=o.requestFullScreen||o.mozRequestFullScreen||o.msRequestFullscreen||(o.webkitRequestFullScreen?function(){o.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),r?o.p({Ud:r}):o.p()}var kd=0;function ld(e){var t=Date.now();if(0===kd)kd=t+1e3/60;else for(;kd<=t+2;)kd+=1e3/60;t=Math.max(kd-t,0),setTimeout(e,t)}function Ic(e){"undefined"==typeof window?ld(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||ld),window.requestAnimationFrame(e))}function ad(t){e.noExitRuntime=!0,setTimeout(function(){na||t()},1e4)}function $c(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}function md(e,t,i){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):i()},r.onerror=i,r.send(null)}function nd(t,i,e){md(t,function(e){assert(e,'Loading data file "'+t+'" failed (no arrayBuffer).'),i(new Uint8Array(e)),lb()},function(){if(!e)throw'Loading data file "'+t+'" failed.';e()}),kb()}var od=[],Wc,Xc,Yc,Zc,jd,fs,Ob;function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){var e;"undefined"!=typeof SDL&&(e=Sa[SDL.screen+0*n.J>>2],C[SDL.screen+0*n.J>>2]=8388608|e),pd()}function hd(){var e;"undefined"!=typeof SDL&&(e=Sa[SDL.screen+0*n.J>>2],C[SDL.screen+0*n.J>>2]=-8388609&e),pd()}function id(t,i,r){i&&r?(t.ub=i,t.hb=r):(i=t.ub,r=t.hb);var n,s=i,o=r;e.forcedAspectRatio&&0<e.forcedAspectRatio&&(s/o<e.forcedAspectRatio?s=Math.round(o*e.forcedAspectRatio):o=Math.round(s/e.forcedAspectRatio)),(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t.parentNode&&"undefined"!=typeof screen&&(n=Math.min(screen.width/s,screen.height/o),s=Math.round(s*n),o=Math.round(o*n)),ed?(t.width!=s&&(t.width=s),t.height!=o&&(t.height=o),void 0!==t.style&&(t.style.removeProperty("width"),t.style.removeProperty("height"))):(t.width!=i&&(t.width=i),t.height!=r&&(t.height=r),void 0!==t.style&&(s!=i||o!=r?(t.style.setProperty("width",s+"px","important"),t.style.setProperty("height",o+"px","important")):(t.style.removeProperty("width"),t.style.removeProperty("height"))))}pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),!function(){var e,t;V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,i,r){return r}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536),W("/dev","random",t="undefined"!=typeof crypto?(e=new Uint8Array(1),function(){return crypto.getRandomValues(e),e[0]}):da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0}),W("/dev","urandom",t),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var i=Rb[+t];if(i)return(t={parent:null,A:{Oa:"fake"},k:{readlink:function(){return i.path}}}).parent=t;throw new L(J.ea)}},e}},"/proc/self/fd"),cb.unshift(function(){var t;e.noFSInit||qc||(assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr"),assert(0===(t=kc("/dev/stdin","r")).fd,"invalid handle for stdin ("+t.fd+")"),assert(1===(t=kc("/dev/stdout","w")).fd,"invalid handle for stdout ("+t.fd+")"),assert(2===(t=kc("/dev/stderr","w")).fd,"invalid handle for stderr ("+t.fd+")"))}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;t<Rb.length;t++){var i=Rb[t];i&&mc(i)}}),e.FS_createFolder=function(e,t,i,r){return V(e=K("string"==typeof e?e:T(e),t),rc(i,r))},e.FS_createPath=function(e,t){e="string"==typeof e?e:T(e);for(var i=t.split("/").reverse();i.length;){var r=i.pop();if(r){var n=K(e,r);try{V(n)}catch(e){}e=n}}return n},e.FS_createDataFile=tc,e.FS_createPreloadedFile=function(n,s,t,o,a,l,u,h,c,p){function i(t){function i(e){p&&p(),h||tc(n,s,e,o,a,c),l&&l(),lb()}var r=!1;e.preloadPlugins.forEach(function(e){!r&&e.canHandle(d)&&(e.handle(t,d,i,function(){u&&u(),lb()}),r=!0)}),r||i(t)}Vc();var d=s?Db(K(n,s)):n;kb(),"string"==typeof t?nd(t,function(e){i(e)},u):i(t)},e.FS_createLazyFile=function(e,t,l,i,r){var n,s;function o(){this.oa=!1,this.Y=[]}if(o.prototype.get=function(e){var t;if(!(e>this.length-1||e<0))return t=e%this.chunkSize,this.gb(e/this.chunkSize|0)[t]},o.prototype.pb=function(e){this.gb=e},o.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",l,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw Error("Couldn't load "+l+". Status: "+e.status);var s=Number(e.getResponseHeader("Content-length")),o=1048576,a=((e=e.getResponseHeader("Accept-Ranges"))&&"bytes"===e||(o=s),this);a.pb(function(e){var t=e*o,i=(e+1)*o-1,i=Math.min(i,s-1);if(void 0===a.Y[e]){var r=a.Y;if(i<t)throw Error("invalid range ("+t+", "+i+") or no bytes requested!");if(s-1<i)throw Error("only "+s+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",l,!1),s!==o&&n.setRequestHeader("Range","bytes="+t+"-"+i),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(200<=n.status&&n.status<300||304===n.status))throw Error("Couldn't load "+l+". Status: "+n.status);t=void 0!==n.response?new Uint8Array(n.response||[]):hb(n.responseText||"",!0),r[e]=t}if(void 0===a.Y[e])throw Error("doXHR failed!");return a.Y[e]}),this.Wa=s,this.Va=o,this.oa=!0},"undefined"!=typeof XMLHttpRequest){if(!ca)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";n=new o,Object.defineProperty(n,"length",{get:function(){return this.oa||this.Ca(),this.Wa}}),Object.defineProperty(n,"chunkSize",{get:function(){return this.oa||this.Ca(),this.Va}}),s=void 0}else s=l,n=void 0;var a=sc(e,t,i,r),u=(n?a.e=n:s&&(a.e=null,a.url=s),Object.defineProperty(a,"usedBytes",{get:function(){return this.e.length}}),{});return Object.keys(a.n).forEach(function(e){var t=a.n[e];u[e]=function(){if(uc(a))return t.apply(null,arguments);throw new L(J.H)}}),u.read=function(e,t,i,r,n){if(!uc(a))throw new L(J.H);if(n>=(e=e.g.e).length)return 0;if(assert(0<=(r=Math.min(e.length-n,r))),e.slice)for(var s=0;s<r;s++)t[i+s]=e[n+s];else for(s=0;s<r;s++)t[i+s]=e.get(n+s);return r},a.n=u,a},e.FS_createLink=function(e,t,i){return ic(i,e=K("string"==typeof e?e:T(e),t))},e.FS_createDevice=W,e.FS_unlink=function(t){var e=S(t,{parent:!0}).g,i=Bb(t),r=Nb(e,i);e:{try{s=Nb(e,i)}catch(e){s=e.S;break e}var n=Yb(e,"wx"),s=n||(N(s.mode)?J.P:0)}if(s)throw s===J.P&&(s=J.I),new L(s);if(!e.k.unlink)throw new L(J.I);if(r.U)throw new L(J.fa);try{R.willDeletePath&&R.willDeletePath(t)}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+t+"') threw an exception: "+e.message)}if(e.k.unlink(e,i),e=Wb(r.parent.id,r.name),Q[e]===r)Q[e]=r.M;else for(e=Q[e];e;){if(e.M===r){e.M=r.M;break}e=e.M}try{R.onDeletePath&&R.onDeletePath(t)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+t+"') threw an exception: "+e.message)}},cb.unshift(function(){}),H.push(function(){}),da&&(fs=require("fs"),Ob=require("path"),P.sb()),e.requestFullScreen=function(e,t,i){fd(e,t,i)},e.requestAnimationFrame=function(e){Ic(e)},e.setCanvasSize=function(t,i,r){id(e.canvas,t,i),r||pd()},e.pauseMainLoop=function(){Y=null,Lc++},e.resumeMainLoop=function(){Lc++;var e=Dc,t=Ec;Jc(Fc,0,!1,Kc,!(Fc=null)),Cc(e,t),Y()},e.getUserMedia=function(){window.p||(window.p=navigator.getUserMedia||navigator.mozGetUserMedia),window.p(void 0)},e.createContext=function(e,t,i,r){return bd(e,t,i,r)},Ua=m=n.ja(la),Fa=!0,Va=Ua+$a,Wa=r=n.ja(Va),assert(Wa<t,"TOTAL_MEMORY not big enough for stack");var qd=D([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3),Z=(e.Ya={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0,byteLength:Ya},e.Za={abort:x,assert:assert,invoke_iiii:function(t,i,r,n){try{return e.dynCall_iiii(t,i,r,n)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiii:function(t,i,r,n,s,o){try{e.dynCall_viiiii(t,i,r,n,s,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_vi:function(t,i){try{e.dynCall_vi(t,i)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_ii:function(t,i){try{return e.dynCall_ii(t,i)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viii:function(t,i,r,n){try{e.dynCall_viii(t,i,r,n)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_v:function(t){try{e.dynCall_v(t)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiiii:function(t,i,r,n,s,o,a){try{e.dynCall_viiiiii(t,i,r,n,s,o,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_iiiiii:function(t,i,r,n,s,o){try{return e.dynCall_iiiiii(t,i,r,n,s,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiii:function(t,i,r,n,s){try{e.dynCall_viiii(t,i,r,n,s)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},_pthread_cleanup_pop:function(){assert(pb.level==H.length,"cannot pop if something else added meanwhile!"),H.pop(),pb.level=H.length},___syscall54:function(e,t){wc=t;try{var i,r=xc(),n=X();switch(n){case 21505:case 21506:return r.tty?0:-J.Q;case 21519:return r.tty?(i=X(),C[i>>2]=0):-J.Q;case 21520:return r.tty?-J.q:-J.Q;case 21531:if(i=X(),r.n.ib)return r.n.ib(r,n,i);throw new L(J.Q);default:x("bad ioctl syscall "+n)}}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall6:function(e,t){wc=t;try{return mc(xc()),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},_emscripten_set_main_loop_timing:Cc,__ZSt18uncaught_exceptionv:tb,___setErrNo:ob,_sbrk:Ga,___cxa_begin_catch:function(e){tb.p--,ub.push(e);e:{if(e&&!vb[e])for(var t in vb)if(vb[t].wd===e)break e;t=e}return t&&vb[t].Sd++,e},_emscripten_memcpy_big:function(e,t,i){return E.set(E.subarray(t,t+i),e),e},_sysconf:function(e){switch(e){case 30:return 4096;case 85:return F/4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return ob(J.q),-1},_pthread_getspecific:function(e){return yc[e]||0},_pthread_self:function(){return 0},_pthread_once:wb,_pthread_key_create:function(e){return 0==e?J.q:(C[e>>2]=Ac,yc[Ac]=0,Ac++,0)},___unlock:function(){},_emscripten_set_main_loop:Jc,_pthread_setspecific:function(e,t){return e in yc?(yc[e]=t,0):J.q},___lock:function(){},_abort:function(){e.abort()},_pthread_cleanup_push:pb,_time:function(e){var t=Date.now()/1e3|0;return e&&(C[e>>2]=t),t},___syscall140:function(e,t){wc=t;try{var i=xc(),r=X(),n=X(),s=X(),o=X();return assert(0===r),nc(i,n,o),C[s>>2]=i.position,i.na&&0===n&&0===o&&(i.na=null),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall146:function(e,t){wc=t;try{var i,r=xc(),n=X();e:{for(var s=X(),o=0,a=0;a<s;a++){var l=oc(r,y,C[n+8*a>>2],C[n+(8*a+4)>>2],void 0);if(l<0){i=-1;break e}o+=l}i=o}return i}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},STACKTOP:m,STACK_MAX:Va,tempDoublePtr:mb,ABORT:na,cttz_i8:qd},function(e,t,i){"use asm";var r=e.Int8Array;var n=e.Int16Array;var s=e.Int32Array;var a=e.Uint8Array;var u=e.Uint16Array;var h=e.Uint32Array;var c=e.Float32Array;var p=e.Float64Array;var de=new r(i);var $=new n(i);var fe=new s(i);var me=new a(i);var _e=new u(i);var d=new h(i);var f=new c(i);var ee=new p(i);var y=e.byteLength;var ge=t.STACKTOP|0;var x=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var T=t.ABORT|0;var w=t.cttz_i8|0;var E=0;var S=0;var A=0;var k=0;var P=e.NaN,O=e.Infinity;var R=0,C=0,M=0,I=0,D=0.0,L=0,H=0,Y=0,W=0.0;var ie=0;var V=0;var q=0;var K=0;var Z=0;var J=0;var Q=0;var le=0;var ue=0;var he=0;var ce=e.Math.floor;var pe=e.Math.abs;var Te=e.Math.sqrt;var we=e.Math.pow;var Ee=e.Math.cos;var Se=e.Math.sin;var Ae=e.Math.tan;var ke=e.Math.acos;var Pe=e.Math.asin;var Oe=e.Math.atan;var Re=e.Math.atan2;var Ce=e.Math.exp;var Me=e.Math.log;var Ie=e.Math.ceil;var ve=e.Math.imul;var De=e.Math.min;var m=e.Math.clz32;var o=t.abort;var Le=t.assert;var Fe=t.invoke_iiii;var Ne=t.invoke_viiiii;var ze=t.invoke_vi;var Be=t.invoke_ii;var Ue=t.invoke_viii;var je=t.invoke_v;var Ge=t.invoke_viiiiii;var Xe=t.invoke_iiiiii;var He=t.invoke_viiii;var Ye=t._pthread_cleanup_pop;var We=t.___syscall54;var Ve=t.___syscall6;var qe=t._emscripten_set_main_loop_timing;var Ke=t.__ZSt18uncaught_exceptionv;var Ze=t.___setErrNo;var z=t._sbrk;var Je=t.___cxa_begin_catch;var Qe=t._emscripten_memcpy_big;var $e=t._sysconf;var et=t._pthread_getspecific;var tt=t._pthread_self;var it=t._pthread_once;var rt=t._pthread_key_create;var nt=t.___unlock;var st=t._emscripten_set_main_loop;var ot=t._pthread_setspecific;var at=t.___lock;var B=t._abort;var lt=t._pthread_cleanup_push;var ut=t._time;var ht=t.___syscall140;var ct=t.___syscall146;var pt=0.0;function dt(e){if(y(e)&16777215||y(e)<=16777215||y(e)>2147483648)return false;de=new r(e);$=new n(e);fe=new s(e);me=new a(e);_e=new u(e);d=new h(e);f=new c(e);ee=new p(e);i=e;return true}function ft(e){e=e|0;var t=0;t=ge;ge=ge+e|0;ge=ge+15&-16;return t|0}function mt(){return ge|0}function _t(e){e=e|0;ge=e}function gt(e,t){e=e|0;t=t|0;ge=e;x=t}function vt(e,t){e=e|0;t=t|0;if(!E){E=e;S=t}}function yt(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0]}function bt(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0];de[te+4>>0]=de[e+4>>0];de[te+5>>0]=de[e+5>>0];de[te+6>>0]=de[e+6>>0];de[te+7>>0]=de[e+7>>0]}function xt(e){e=e|0;ie=e}function Tt(){return ie|0}function F(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0;m=ge;ge=ge+608|0;p=m+88|0;c=m+72|0;l=m+64|0;a=m+48|0;o=m+24|0;s=m;h=m+96|0;d=m+92|0;u=e+4|0;f=e+8|0;if((fe[u>>2]|0)>>>0>(fe[f>>2]|0)>>>0){fe[s>>2]=1154;fe[s+4>>2]=2120;fe[s+8>>2]=1133;xe(h,1100,s)|0;be(h,m+16|0)|0}if((2147418112/(r>>>0)|0)>>>0<=t>>>0){fe[o>>2]=1154;fe[o+4>>2]=2121;fe[o+8>>2]=1169;xe(h,1100,o)|0;be(h,m+40|0)|0}o=fe[f>>2]|0;if(o>>>0>=t>>>0){f=1;ge=m;return f|0}do{if(i){if(t){s=t+-1|0;if(!(s&t)){s=11;break}else t=s}else t=-1;t=t>>>16|t;t=t>>>8|t;t=t>>>4|t;t=t>>>2|t;t=(t>>>1|t)+1|0;s=10}else s=10}while(0);if((s|0)==10)if(!t){t=0;s=12}else s=11;if((s|0)==11)if(t>>>0<=o>>>0)s=12;if((s|0)==12){fe[a>>2]=1154;fe[a+4>>2]=2130;fe[a+8>>2]=1217;xe(h,1100,a)|0;be(h,l)|0}i=ve(t,r)|0;do{if(!n){s=wt(fe[e>>2]|0,i,d,1)|0;if(!s){f=0;ge=m;return f|0}else{fe[e>>2]=s;break}}else{o=U(i,d)|0;if(!o){f=0;ge=m;return f|0}Cr[n&0](o,fe[e>>2]|0,fe[u>>2]|0);s=fe[e>>2]|0;do{if(s)if(!(s&7)){X[fe[104>>2]&1](s,0,0,1,fe[27]|0)|0;break}else{fe[c>>2]=1154;fe[c+4>>2]=2499;fe[c+8>>2]=1516;xe(h,1100,c)|0;be(h,p)|0;break}}while(0);fe[e>>2]=o}}while(0);s=fe[d>>2]|0;if(s>>>0>i>>>0)t=(s>>>0)/(r>>>0)|0;fe[f>>2]=t;f=1;ge=m;return f|0}function wt(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0,o=0,a=0,l=0,u=0;u=ge;ge=ge+592|0;l=u+48|0;s=u+24|0;n=u;a=u+72|0;o=u+68|0;if(e&7){fe[n>>2]=1154;fe[n+4>>2]=2499;fe[n+8>>2]=1494;xe(a,1100,n)|0;be(a,u+16|0)|0;l=0;ge=u;return l|0}if(t>>>0>2147418112){fe[s>>2]=1154;fe[s+4>>2]=2499;fe[s+8>>2]=1387;xe(a,1100,s)|0;be(a,u+40|0)|0;l=0;ge=u;return l|0}fe[o>>2]=t;r=X[fe[104>>2]&1](e,t,o,r,fe[27]|0)|0;if(i)fe[i>>2]=fe[o>>2];if(!(r&7)){l=r;ge=u;return l|0}fe[l>>2]=1154;fe[l+4>>2]=2551;fe[l+8>>2]=1440;xe(a,1100,l)|0;be(a,u+64|0)|0;l=r;ge=u;return l|0}function U(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0;l=ge;ge=ge+592|0;o=l+48|0;a=l+24|0;i=l;s=l+72|0;n=l+68|0;r=e+3&-4;r=(r|0)!=0?r:4;if(r>>>0>2147418112){fe[i>>2]=1154;fe[i+4>>2]=2499;fe[i+8>>2]=1387;xe(s,1100,i)|0;be(s,l+16|0)|0;a=0;ge=l;return a|0}fe[n>>2]=r;i=X[fe[104>>2]&1](0,r,n,1,fe[27]|0)|0;e=fe[n>>2]|0;if(t)fe[t>>2]=e;if((i|0)==0|e>>>0<r>>>0){fe[a>>2]=1154;fe[a+4>>2]=2499;fe[a+8>>2]=1413;xe(s,1100,a)|0;be(s,l+40|0)|0;a=0;ge=l;return a|0}if(!(i&7)){a=i;ge=l;return a|0}fe[o>>2]=1154;fe[o+4>>2]=2526;fe[o+8>>2]=1440;xe(s,1100,o)|0;be(s,l+64|0)|0;a=i;ge=l;return a|0}function Et(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,P=0,O=0,R=0,F=0,C=0,N=0,M=0,z=0,I=0,D=0,L=0;L=ge;ge=ge+960|0;z=L+232|0;M=L+216|0;N=L+208|0;C=L+192|0;F=L+184|0;R=L+168|0;O=L+160|0;P=L+144|0;S=L+136|0;E=L+120|0;w=L+112|0;T=L+96|0;y=L+88|0;v=L+72|0;g=L+64|0;_=L+48|0;c=L+40|0;d=L+24|0;p=L+16|0;h=L;k=L+440|0;I=L+376|0;D=L+304|0;m=L+236|0;if((t|0)==0|r>>>0>11){e=0;ge=L;return e|0}fe[e>>2]=t;n=D;s=n+68|0;do{fe[n>>2]=0;n=n+4|0}while((n|0)<(s|0));s=0;do{n=de[i+s>>0]|0;if(n<<24>>24){A=D+((n&255)<<2)|0;fe[A>>2]=(fe[A>>2]|0)+1}s=s+1|0}while((s|0)!=(t|0));s=0;u=1;o=0;a=-1;l=0;while(1){n=fe[D+(u<<2)>>2]|0;if(!n)fe[e+28+(u+-1<<2)>>2]=0;else{A=u+-1|0;fe[I+(A<<2)>>2]=s;s=n+s|0;x=16-u|0;fe[e+28+(A<<2)>>2]=(s+-1<<x|(1<<x)+-1)+1;fe[e+96+(A<<2)>>2]=l;fe[m+(u<<2)>>2]=l;o=o>>>0>u>>>0?o:u;a=a>>>0<u>>>0?a:u;l=n+l|0}u=u+1|0;if((u|0)==17){A=o;break}else s=s<<1}fe[e+4>>2]=l;s=e+172|0;do{if(l>>>0>(fe[s>>2]|0)>>>0){fe[s>>2]=l;if(l){n=l+-1|0;if(n&l)f=14}else{n=-1;f=14}if((f|0)==14){x=n>>>16|n;x=x>>>8|x;x=x>>>4|x;x=x>>>2|x;x=(x>>>1|x)+1|0;fe[s>>2]=x>>>0>t>>>0?t:x}o=e+176|0;n=fe[o>>2]|0;do{if(n){x=fe[n+-4>>2]|0;n=n+-8|0;if(!((x|0)!=0?(x|0)==(~fe[n>>2]|0):0)){fe[h>>2]=1154;fe[h+4>>2]=644;fe[h+8>>2]=1863;xe(k,1100,h)|0;be(k,p)|0}if(!(n&7)){X[fe[104>>2]&1](n,0,0,1,fe[27]|0)|0;break}else{fe[d>>2]=1154;fe[d+4>>2]=2499;fe[d+8>>2]=1516;xe(k,1100,d)|0;be(k,c)|0;break}}}while(0);s=fe[s>>2]|0;s=(s|0)!=0?s:1;n=U((s<<1)+8|0,0)|0;if(!n){fe[o>>2]=0;n=0;break}else{fe[n+4>>2]=s;fe[n>>2]=~s;fe[o>>2]=n+8;f=25;break}}else f=25}while(0);e:do{if((f|0)==25){x=e+24|0;de[x>>0]=a;de[e+25>>0]=A;s=e+176|0;o=0;do{b=de[i+o>>0]|0;n=b&255;if(b<<24>>24){if(!(fe[D+(n<<2)>>2]|0)){fe[_>>2]=1154;fe[_+4>>2]=2273;fe[_+8>>2]=1261;xe(k,1100,_)|0;be(k,g)|0}b=m+(n<<2)|0;n=fe[b>>2]|0;fe[b>>2]=n+1;if(n>>>0>=l>>>0){fe[v>>2]=1154;fe[v+4>>2]=2277;fe[v+8>>2]=1274;xe(k,1100,v)|0;be(k,y)|0}$[(fe[s>>2]|0)+(n<<1)>>1]=o}o=o+1|0}while((o|0)!=(t|0));n=de[x>>0]|0;y=(n&255)>>>0<r>>>0?r:0;b=e+8|0;fe[b>>2]=y;v=(y|0)!=0;if(v){g=1<<y;n=e+164|0;do{if(g>>>0>(fe[n>>2]|0)>>>0){fe[n>>2]=g;o=e+168|0;n=fe[o>>2]|0;do{if(n){_=fe[n+-4>>2]|0;n=n+-8|0;if(!((_|0)!=0?(_|0)==(~fe[n>>2]|0):0)){fe[T>>2]=1154;fe[T+4>>2]=644;fe[T+8>>2]=1863;xe(k,1100,T)|0;be(k,w)|0}if(!(n&7)){X[fe[104>>2]&1](n,0,0,1,fe[27]|0)|0;break}else{fe[E>>2]=1154;fe[E+4>>2]=2499;fe[E+8>>2]=1516;xe(k,1100,E)|0;be(k,S)|0;break}}}while(0);n=g<<2;s=U(n+8|0,0)|0;if(!s){fe[o>>2]=0;n=0;break e}else{S=s+8|0;fe[s+4>>2]=g;fe[s>>2]=~g;fe[o>>2]=S;s=S;break}}else{s=e+168|0;n=g<<2;o=s;s=fe[s>>2]|0}}while(0);G(s|0,-1,n|0)|0;f=e+176|0;_=1;do{if(fe[D+(_<<2)>>2]|0){t=y-_|0;m=1<<t;s=_+-1|0;a=fe[I+(s<<2)>>2]|0;if(s>>>0>=16){fe[P>>2]=1154;fe[P+4>>2]=1953;fe[P+8>>2]=1737;xe(k,1100,P)|0;be(k,O)|0}n=fe[e+28+(s<<2)>>2]|0;if(!n)d=-1;else d=(n+-1|0)>>>(16-_|0);if(a>>>0<=d>>>0){c=(fe[e+96+(s<<2)>>2]|0)-a|0;p=_<<16;do{n=_e[(fe[f>>2]|0)+(c+a<<1)>>1]|0;if((me[i+n>>0]|0|0)!=(_|0)){fe[R>>2]=1154;fe[R+4>>2]=2319;fe[R+8>>2]=1303;xe(k,1100,R)|0;be(k,F)|0}h=a<<t;s=n|p;u=0;do{l=u+h|0;if(l>>>0>=g>>>0){fe[C>>2]=1154;fe[C+4>>2]=2325;fe[C+8>>2]=1337;xe(k,1100,C)|0;be(k,N)|0}n=fe[o>>2]|0;if((fe[n+(l<<2)>>2]|0)!=-1){fe[M>>2]=1154;fe[M+4>>2]=2327;fe[M+8>>2]=1360;xe(k,1100,M)|0;be(k,z)|0;n=fe[o>>2]|0}fe[n+(l<<2)>>2]=s;u=u+1|0}while(u>>>0<m>>>0);a=a+1|0}while(a>>>0<=d>>>0)}}_=_+1|0}while(y>>>0>=_>>>0);n=de[x>>0]|0}s=e+96|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I>>2]|0);s=e+100|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+4>>2]|0);s=e+104|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+8>>2]|0);s=e+108|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+12>>2]|0);s=e+112|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+16>>2]|0);s=e+116|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+20>>2]|0);s=e+120|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+24>>2]|0);s=e+124|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+28>>2]|0);s=e+128|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+32>>2]|0);s=e+132|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+36>>2]|0);s=e+136|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+40>>2]|0);s=e+140|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+44>>2]|0);s=e+144|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+48>>2]|0);s=e+148|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+52>>2]|0);s=e+152|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+56>>2]|0);s=e+156|0;fe[s>>2]=(fe[s>>2]|0)-(fe[I+60>>2]|0);s=e+16|0;fe[s>>2]=0;o=e+20|0;fe[o>>2]=n&255;t:do{if(v){while(1){if(!r)break t;n=r+-1|0;if(!(fe[D+(r<<2)>>2]|0))r=n;else break}fe[s>>2]=fe[e+28+(n<<2)>>2];n=y+1|0;fe[o>>2]=n;if(n>>>0<=A>>>0){while(1){if(fe[D+(n<<2)>>2]|0)break;n=n+1|0;if(n>>>0>A>>>0)break t}fe[o>>2]=n}}}while(0);fe[e+92>>2]=-1;fe[e+160>>2]=1048575;fe[e+12>>2]=32-(fe[b>>2]|0);n=1}}while(0);e=n;ge=L;return e|0}function St(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0;if(!e){n=Yi(t)|0;if(!i){i=n;return i|0}if(!n)s=0;else s=Vi(n)|0;fe[i>>2]=s;i=n;return i|0}if(!t){b(e);if(!i){i=0;return i|0}fe[i>>2]=0;i=0;return i|0}n=Wi(e,t)|0;s=(n|0)!=0;if(s|r^1)s=s?n:e;else{n=Wi(e,t)|0;s=(n|0)==0?e:n}if(!i){i=n;return i|0}t=Vi(s)|0;fe[i>>2]=t;i=n;return i|0}function _(e,t,i){e=e|0;t=t|0;i=i|0;var r=0;if(!((e|0)!=0&t>>>0>73&(i|0)!=0)){i=0;return i|0}if((fe[i>>2]|0)!=40|t>>>0<74){i=0;return i|0}if(((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)!=18552){i=0;return i|0}if(((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0<74){i=0;return i|0}if(((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0>t>>>0){i=0;return i|0}fe[i+4>>2]=(me[e+12>>0]|0)<<8|(me[e+13>>0]|0);fe[i+8>>2]=(me[e+14>>0]|0)<<8|(me[e+15>>0]|0);fe[i+12>>2]=me[e+16>>0];fe[i+16>>2]=me[e+17>>0];t=e+18|0;r=i+32|0;fe[r>>2]=me[t>>0];fe[r+4>>2]=0;t=de[t>>0]|0;fe[i+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;fe[i+24>>2]=(me[e+26>>0]|0)<<16|(me[e+25>>0]|0)<<24|(me[e+27>>0]|0)<<8|(me[e+28>>0]|0);fe[i+28>>2]=(me[e+30>>0]|0)<<16|(me[e+29>>0]|0)<<24|(me[e+31>>0]|0)<<8|(me[e+32>>0]|0);i=1;return i|0}function At(e){e=e|0;Je(e|0)|0;$t()}function N(e){e=e|0;var t=0,i=0,r=0,n=0,s=0;s=ge;ge=ge+544|0;n=s;r=s+24|0;t=fe[e+20>>2]|0;if(t)kt(t);t=e+4|0;i=fe[t>>2]|0;if(!i){n=e+16|0;de[n>>0]=0;ge=s;return}if(!(i&7))X[fe[104>>2]&1](i,0,0,1,fe[27]|0)|0;else{fe[n>>2]=1154;fe[n+4>>2]=2499;fe[n+8>>2]=1516;xe(r,1100,n)|0;be(r,s+16|0)|0}fe[t>>2]=0;fe[e+8>>2]=0;fe[e+12>>2]=0;n=e+16|0;de[n>>0]=0;ge=s}function kt(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0;d=ge;ge=ge+640|0;p=d+112|0;c=d+96|0;h=d+88|0;u=d+72|0;l=d+64|0;a=d+48|0;r=d+40|0;s=d+24|0;n=d+16|0;i=d;o=d+120|0;if(!e){ge=d;return}t=fe[e+168>>2]|0;do{if(t){f=fe[t+-4>>2]|0;t=t+-8|0;if(!((f|0)!=0?(f|0)==(~fe[t>>2]|0):0)){fe[i>>2]=1154;fe[i+4>>2]=644;fe[i+8>>2]=1863;xe(o,1100,i)|0;be(o,n)|0}if(!(t&7)){X[fe[104>>2]&1](t,0,0,1,fe[27]|0)|0;break}else{fe[s>>2]=1154;fe[s+4>>2]=2499;fe[s+8>>2]=1516;xe(o,1100,s)|0;be(o,r)|0;break}}}while(0);t=fe[e+176>>2]|0;do{if(t){f=fe[t+-4>>2]|0;t=t+-8|0;if(!((f|0)!=0?(f|0)==(~fe[t>>2]|0):0)){fe[a>>2]=1154;fe[a+4>>2]=644;fe[a+8>>2]=1863;xe(o,1100,a)|0;be(o,l)|0}if(!(t&7)){X[fe[104>>2]&1](t,0,0,1,fe[27]|0)|0;break}else{fe[u>>2]=1154;fe[u+4>>2]=2499;fe[u+8>>2]=1516;xe(o,1100,u)|0;be(o,h)|0;break}}}while(0);if(!(e&7)){X[fe[104>>2]&1](e,0,0,1,fe[27]|0)|0;ge=d}else{fe[c>>2]=1154;fe[c+4>>2]=2499;fe[c+8>>2]=1516;xe(o,1100,c)|0;be(o,p)|0;ge=d}}function Pt(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0;h=ge;ge=ge+560|0;o=h+40|0;a=h+24|0;t=h;s=h+48|0;n=e+8|0;i=fe[n>>2]|0;if((i+-1|0)>>>0>=8192){fe[t>>2]=1154;fe[t+4>>2]=2997;fe[t+8>>2]=1541;xe(s,1100,t)|0;be(s,h+16|0)|0}fe[e>>2]=i;r=e+20|0;t=fe[r>>2]|0;if(!t){t=U(180,0)|0;if(!t)t=0;else{u=t+164|0;fe[u>>2]=0;fe[u+4>>2]=0;fe[u+8>>2]=0;fe[u+12>>2]=0}fe[r>>2]=t;u=t;l=fe[e>>2]|0}else{u=t;l=i}if(!(fe[n>>2]|0)){fe[a>>2]=1154;fe[a+4>>2]=903;fe[a+8>>2]=1781;xe(s,1100,a)|0;be(s,o)|0;s=fe[e>>2]|0}else s=l;n=fe[e+4>>2]|0;if(s>>>0>16){i=s;t=0}else{e=0;u=Et(u,l,n,e)|0;ge=h;return u|0}while(1){r=t+1|0;if(i>>>0>3){i=i>>>1;t=r}else{i=r;break}}e=t+2+((i|0)!=32&1<<i>>>0<s>>>0&1)|0;e=e>>>0<11?e&255:11;u=Et(u,l,n,e)|0;ge=h;return u|0}function j(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,P=0,O=0,R=0,C=0,M=0,I=0,D=0,L=0;L=ge;ge=ge+800|0;R=L+256|0;O=L+240|0;P=L+232|0;k=L+216|0;A=L+208|0;S=L+192|0;E=L+184|0;w=L+168|0;T=L+160|0;x=L+144|0;b=L+136|0;y=L+120|0;v=L+112|0;g=L+96|0;_=L+88|0;m=L+72|0;c=L+64|0;h=L+48|0;a=L+40|0;l=L+24|0;s=L+16|0;n=L;I=L+288|0;D=L+264|0;C=Ot(e,14)|0;if(!C){fe[t>>2]=0;i=t+4|0;r=fe[i>>2]|0;if(r){if(!(r&7))X[fe[104>>2]&1](r,0,0,1,fe[27]|0)|0;else{fe[n>>2]=1154;fe[n+4>>2]=2499;fe[n+8>>2]=1516;xe(I,1100,n)|0;be(I,s)|0}fe[i>>2]=0;fe[t+8>>2]=0;fe[t+12>>2]=0}de[t+16>>0]=0;i=t+20|0;r=fe[i>>2]|0;if(!r){t=1;ge=L;return t|0}kt(r);fe[i>>2]=0;t=1;ge=L;return t|0}d=t+4|0;f=t+8|0;i=fe[f>>2]|0;if((i|0)!=(C|0)){if(i>>>0<=C>>>0){do{if((fe[t+12>>2]|0)>>>0<C>>>0){if(F(d,C,(i+1|0)==(C|0),1,0)|0){i=fe[f>>2]|0;break}de[t+16>>0]=1;t=0;ge=L;return t|0}}while(0);G((fe[d>>2]|0)+i|0,0,C-i|0)|0}fe[f>>2]=C}G(fe[d>>2]|0,0,C|0)|0;p=e+20|0;i=fe[p>>2]|0;if((i|0)<5){s=e+4|0;o=e+8|0;n=e+16|0;do{r=fe[s>>2]|0;if((r|0)==(fe[o>>2]|0))r=0;else{fe[s>>2]=r+1;r=me[r>>0]|0}i=i+8|0;fe[p>>2]=i;if((i|0)>=33){fe[l>>2]=1154;fe[l+4>>2]=3199;fe[l+8>>2]=1650;xe(I,1100,l)|0;be(I,a)|0;i=fe[p>>2]|0}r=r<<32-i|fe[n>>2];fe[n>>2]=r}while((i|0)<5)}else{r=e+16|0;n=r;r=fe[r>>2]|0}u=r>>>27;fe[n>>2]=r<<5;fe[p>>2]=i+-5;if((u+-1|0)>>>0>20){t=0;ge=L;return t|0}fe[D+20>>2]=0;fe[D>>2]=0;fe[D+4>>2]=0;fe[D+8>>2]=0;fe[D+12>>2]=0;de[D+16>>0]=0;i=D+4|0;r=D+8|0;e:do{if(F(i,21,0,1,0)|0){a=fe[r>>2]|0;l=fe[i>>2]|0;G(l+a|0,0,21-a|0)|0;fe[r>>2]=21;if(u){n=e+4|0;s=e+8|0;o=e+16|0;a=0;do{i=fe[p>>2]|0;if((i|0)<3)do{r=fe[n>>2]|0;if((r|0)==(fe[s>>2]|0))r=0;else{fe[n>>2]=r+1;r=me[r>>0]|0}i=i+8|0;fe[p>>2]=i;if((i|0)>=33){fe[h>>2]=1154;fe[h+4>>2]=3199;fe[h+8>>2]=1650;xe(I,1100,h)|0;be(I,c)|0;i=fe[p>>2]|0}r=r<<32-i|fe[o>>2];fe[o>>2]=r}while((i|0)<3);else r=fe[o>>2]|0;fe[o>>2]=r<<3;fe[p>>2]=i+-3;de[l+(me[1611+a>>0]|0)>>0]=r>>>29;a=a+1|0}while((a|0)!=(u|0))}if(Pt(D)|0){a=e+4|0;l=e+8|0;u=e+16|0;r=0;t:while(1){o=C-r|0;i=ye(e,D)|0;i:do{if(i>>>0<17){if((fe[f>>2]|0)>>>0<=r>>>0){fe[m>>2]=1154;fe[m+4>>2]=903;fe[m+8>>2]=1781;xe(I,1100,m)|0;be(I,_)|0}de[(fe[d>>2]|0)+r>>0]=i;i=r+1|0}else switch(i|0){case 17:{i=fe[p>>2]|0;if((i|0)<3)do{n=fe[a>>2]|0;if((n|0)==(fe[l>>2]|0))n=0;else{fe[a>>2]=n+1;n=me[n>>0]|0}i=i+8|0;fe[p>>2]=i;if((i|0)>=33){fe[g>>2]=1154;fe[g+4>>2]=3199;fe[g+8>>2]=1650;xe(I,1100,g)|0;be(I,v)|0;i=fe[p>>2]|0}n=n<<32-i|fe[u>>2];fe[u>>2]=n}while((i|0)<3);else n=fe[u>>2]|0;fe[u>>2]=n<<3;fe[p>>2]=i+-3;i=(n>>>29)+3|0;if(i>>>0>o>>>0){i=0;break e}i=i+r|0;break i}case 18:{i=fe[p>>2]|0;if((i|0)<7)do{n=fe[a>>2]|0;if((n|0)==(fe[l>>2]|0))n=0;else{fe[a>>2]=n+1;n=me[n>>0]|0}i=i+8|0;fe[p>>2]=i;if((i|0)>=33){fe[y>>2]=1154;fe[y+4>>2]=3199;fe[y+8>>2]=1650;xe(I,1100,y)|0;be(I,b)|0;i=fe[p>>2]|0}n=n<<32-i|fe[u>>2];fe[u>>2]=n}while((i|0)<7);else n=fe[u>>2]|0;fe[u>>2]=n<<7;fe[p>>2]=i+-7;i=(n>>>25)+11|0;if(i>>>0>o>>>0){i=0;break e}i=i+r|0;break i}default:{if((i+-19|0)>>>0>=2){M=90;break t}s=fe[p>>2]|0;if((i|0)==19){if((s|0)<2){n=s;while(1){i=fe[a>>2]|0;if((i|0)==(fe[l>>2]|0))s=0;else{fe[a>>2]=i+1;s=me[i>>0]|0}i=n+8|0;fe[p>>2]=i;if((i|0)>=33){fe[x>>2]=1154;fe[x+4>>2]=3199;fe[x+8>>2]=1650;xe(I,1100,x)|0;be(I,T)|0;i=fe[p>>2]|0}n=s<<32-i|fe[u>>2];fe[u>>2]=n;if((i|0)<2)n=i;else break}}else{n=fe[u>>2]|0;i=s}fe[u>>2]=n<<2;fe[p>>2]=i+-2;s=(n>>>30)+3|0}else{if((s|0)<6){n=s;while(1){i=fe[a>>2]|0;if((i|0)==(fe[l>>2]|0))s=0;else{fe[a>>2]=i+1;s=me[i>>0]|0}i=n+8|0;fe[p>>2]=i;if((i|0)>=33){fe[w>>2]=1154;fe[w+4>>2]=3199;fe[w+8>>2]=1650;xe(I,1100,w)|0;be(I,E)|0;i=fe[p>>2]|0}n=s<<32-i|fe[u>>2];fe[u>>2]=n;if((i|0)<6)n=i;else break}}else{n=fe[u>>2]|0;i=s}fe[u>>2]=n<<6;fe[p>>2]=i+-6;s=(n>>>26)+7|0}if((r|0)==0|s>>>0>o>>>0){i=0;break e}i=r+-1|0;if((fe[f>>2]|0)>>>0<=i>>>0){fe[S>>2]=1154;fe[S+4>>2]=903;fe[S+8>>2]=1781;xe(I,1100,S)|0;be(I,A)|0}n=de[(fe[d>>2]|0)+i>>0]|0;if(!(n<<24>>24)){i=0;break e}i=s+r|0;if(r>>>0>=i>>>0){i=r;break i}do{if((fe[f>>2]|0)>>>0<=r>>>0){fe[k>>2]=1154;fe[k+4>>2]=903;fe[k+8>>2]=1781;xe(I,1100,k)|0;be(I,P)|0}de[(fe[d>>2]|0)+r>>0]=n;r=r+1|0}while((r|0)!=(i|0))}}}while(0);if(C>>>0>i>>>0)r=i;else break}if((M|0)==90){fe[O>>2]=1154;fe[O+4>>2]=3140;fe[O+8>>2]=1632;xe(I,1100,O)|0;be(I,R)|0;i=0;break}if((C|0)==(i|0))i=Pt(t)|0;else i=0}else i=0}else{de[D+16>>0]=1;i=0}}while(0);N(D);t=i;ge=L;return t|0}function Ot(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0;h=ge;ge=ge+544|0;a=h+16|0;o=h;s=h+24|0;if(!t){u=0;ge=h;return u|0}if(t>>>0<=16){u=Rt(e,t)|0;ge=h;return u|0}l=Rt(e,t+-16|0)|0;u=e+20|0;t=fe[u>>2]|0;if((t|0)<16){r=e+4|0;n=e+8|0;i=e+16|0;do{e=fe[r>>2]|0;if((e|0)==(fe[n>>2]|0))e=0;else{fe[r>>2]=e+1;e=me[e>>0]|0}t=t+8|0;fe[u>>2]=t;if((t|0)>=33){fe[o>>2]=1154;fe[o+4>>2]=3199;fe[o+8>>2]=1650;xe(s,1100,o)|0;be(s,a)|0;t=fe[u>>2]|0}e=e<<32-t|fe[i>>2];fe[i>>2]=e}while((t|0)<16)}else{e=e+16|0;i=e;e=fe[e>>2]|0}fe[i>>2]=e<<16;fe[u>>2]=t+-16;u=e>>>16|l<<16;ge=h;return u|0}function ye(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0;y=ge;ge=ge+608|0;m=y+88|0;f=y+72|0;p=y+64|0;c=y+48|0;h=y+40|0;d=y+24|0;u=y+16|0;l=y;g=y+96|0;_=fe[t+20>>2]|0;v=e+20|0;a=fe[v>>2]|0;do{if((a|0)<24){o=e+4|0;r=fe[o>>2]|0;n=fe[e+8>>2]|0;i=r>>>0<n>>>0;if((a|0)>=16){if(i){fe[o>>2]=r+1;i=me[r>>0]|0}else i=0;fe[v>>2]=a+8;o=e+16|0;s=i<<24-a|fe[o>>2];fe[o>>2]=s;break}if(i){s=(me[r>>0]|0)<<8;i=r+1|0}else{s=0;i=r}if(i>>>0<n>>>0){r=me[i>>0]|0;i=i+1|0}else r=0;fe[o>>2]=i;fe[v>>2]=a+16;o=e+16|0;s=(r|s)<<16-a|fe[o>>2];fe[o>>2]=s}else{s=e+16|0;o=s;s=fe[s>>2]|0}}while(0);n=(s>>>16)+1|0;do{if(n>>>0<=(fe[_+16>>2]|0)>>>0){r=fe[(fe[_+168>>2]|0)+(s>>>(32-(fe[_+8>>2]|0)|0)<<2)>>2]|0;if((r|0)==-1){fe[l>>2]=1154;fe[l+4>>2]=3244;fe[l+8>>2]=1677;xe(g,1100,l)|0;be(g,u)|0}i=r&65535;r=r>>>16;if((fe[t+8>>2]|0)>>>0<=i>>>0){fe[d>>2]=1154;fe[d+4>>2]=902;fe[d+8>>2]=1781;xe(g,1100,d)|0;be(g,h)|0}if((me[(fe[t+4>>2]|0)+i>>0]|0|0)!=(r|0)){fe[c>>2]=1154;fe[c+4>>2]=3248;fe[c+8>>2]=1694;xe(g,1100,c)|0;be(g,p)|0}}else{r=fe[_+20>>2]|0;while(1){i=r+-1|0;if(n>>>0>(fe[_+28+(i<<2)>>2]|0)>>>0)r=r+1|0;else break}i=(s>>>(32-r|0))+(fe[_+96+(i<<2)>>2]|0)|0;if(i>>>0<(fe[t>>2]|0)>>>0){i=_e[(fe[_+176>>2]|0)+(i<<1)>>1]|0;break}fe[f>>2]=1154;fe[f+4>>2]=3266;fe[f+8>>2]=1632;xe(g,1100,f)|0;be(g,m)|0;v=0;ge=y;return v|0}}while(0);fe[o>>2]=fe[o>>2]<<r;fe[v>>2]=(fe[v>>2]|0)-r;v=i;ge=y;return v|0}function Rt(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0;h=ge;ge=ge+560|0;a=h+40|0;l=h+24|0;i=h;o=h+48|0;if(t>>>0>=33){fe[i>>2]=1154;fe[i+4>>2]=3190;fe[i+8>>2]=1634;xe(o,1100,i)|0;be(o,h+16|0)|0}u=e+20|0;i=fe[u>>2]|0;if((i|0)>=(t|0)){s=e+16|0;o=s;s=fe[s>>2]|0;a=i;l=32-t|0;l=s>>>l;s=s<<t;fe[o>>2]=s;t=a-t|0;fe[u>>2]=t;ge=h;return l|0}n=e+4|0;s=e+8|0;r=e+16|0;do{e=fe[n>>2]|0;if((e|0)==(fe[s>>2]|0))e=0;else{fe[n>>2]=e+1;e=me[e>>0]|0}i=i+8|0;fe[u>>2]=i;if((i|0)>=33){fe[l>>2]=1154;fe[l+4>>2]=3199;fe[l+8>>2]=1650;xe(o,1100,l)|0;be(o,a)|0;i=fe[u>>2]|0}e=e<<32-i|fe[r>>2];fe[r>>2]=e}while((i|0)<(t|0));l=32-t|0;l=e>>>l;a=e<<t;fe[r>>2]=a;t=i-t|0;fe[u>>2]=t;ge=h;return l|0}function Ct(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0;f=ge;ge=ge+544|0;p=f+16|0;c=f;h=f+24|0;if((e|0)==0|t>>>0<62){d=0;ge=f;return d|0}u=U(300,0)|0;if(!u){d=0;ge=f;return d|0}fe[u>>2]=519686845;i=u+4|0;fe[i>>2]=0;r=u+8|0;fe[r>>2]=0;l=u+88|0;n=u+136|0;s=u+160|0;o=l;a=o+44|0;do{fe[o>>2]=0;o=o+4|0}while((o|0)<(a|0));de[l+44>>0]=0;m=u+184|0;o=u+208|0;a=u+232|0;_=u+252|0;fe[_>>2]=0;fe[_+4>>2]=0;fe[_+8>>2]=0;de[_+12>>0]=0;_=u+268|0;fe[_>>2]=0;fe[_+4>>2]=0;fe[_+8>>2]=0;de[_+12>>0]=0;_=u+284|0;fe[_>>2]=0;fe[_+4>>2]=0;fe[_+8>>2]=0;de[_+12>>0]=0;fe[n>>2]=0;fe[n+4>>2]=0;fe[n+8>>2]=0;fe[n+12>>2]=0;fe[n+16>>2]=0;de[n+20>>0]=0;fe[s>>2]=0;fe[s+4>>2]=0;fe[s+8>>2]=0;fe[s+12>>2]=0;fe[s+16>>2]=0;de[s+20>>0]=0;fe[m>>2]=0;fe[m+4>>2]=0;fe[m+8>>2]=0;fe[m+12>>2]=0;fe[m+16>>2]=0;de[m+20>>0]=0;fe[o>>2]=0;fe[o+4>>2]=0;fe[o+8>>2]=0;fe[o+12>>2]=0;fe[o+16>>2]=0;de[o+20>>0]=0;fe[a>>2]=0;fe[a+4>>2]=0;fe[a+8>>2]=0;fe[a+12>>2]=0;de[a+16>>0]=0;do{if(((t>>>0>=74?((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)==18552:0)?((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0>=74:0)?((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0<=t>>>0:0){fe[l>>2]=e;fe[i>>2]=e;fe[r>>2]=t;if(Ut(u)|0){i=fe[l>>2]|0;if((me[i+39>>0]|0)<<8|(me[i+40>>0]|0)){if(!(jt(u)|0))break;if(!(Gt(u)|0))break;i=fe[l>>2]|0}if(!((me[i+55>>0]|0)<<8|(me[i+56>>0]|0))){_=u;ge=f;return _|0}if(Xt(u)|0?Ht(u)|0:0){_=u;ge=f;return _|0}}}else d=7}while(0);if((d|0)==7)fe[l>>2]=0;Kt(u);if(!(u&7)){X[fe[104>>2]&1](u,0,0,1,fe[27]|0)|0;_=0;ge=f;return _|0}else{fe[c>>2]=1154;fe[c+4>>2]=2499;fe[c+8>>2]=1516;xe(h,1100,c)|0;be(h,p)|0;_=0;ge=f;return _|0}return 0}function Mt(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0,l=0,u=0,h=0;h=ge;ge=ge+544|0;u=h;l=h+24|0;s=fe[e+88>>2]|0;a=(me[s+70+(n<<2)+1>>0]|0)<<16|(me[s+70+(n<<2)>>0]|0)<<24|(me[s+70+(n<<2)+2>>0]|0)<<8|(me[s+70+(n<<2)+3>>0]|0);o=n+1|0;if(o>>>0<(me[s+16>>0]|0)>>>0)s=(me[s+70+(o<<2)+1>>0]|0)<<16|(me[s+70+(o<<2)>>0]|0)<<24|(me[s+70+(o<<2)+2>>0]|0)<<8|(me[s+70+(o<<2)+3>>0]|0);else s=fe[e+8>>2]|0;if(s>>>0>a>>>0){l=e+4|0;l=fe[l>>2]|0;l=l+a|0;u=s-a|0;u=It(e,l,u,t,i,r,n)|0;ge=h;return u|0}fe[u>>2]=1154;fe[u+4>>2]=3704;fe[u+8>>2]=1792;xe(l,1100,u)|0;be(l,h+16|0)|0;l=e+4|0;l=fe[l>>2]|0;l=l+a|0;u=s-a|0;u=It(e,l,u,t,i,r,n)|0;ge=h;return u|0}function It(e,t,i,r,n,s,o){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;o=o|0;var a=0,l=0,u=0,h=0;h=fe[e+88>>2]|0;l=((me[h+12>>0]|0)<<8|(me[h+13>>0]|0))>>>o;u=((me[h+14>>0]|0)<<8|(me[h+15>>0]|0))>>>o;l=l>>>0>1?(l+3|0)>>>2:1;u=u>>>0>1?(u+3|0)>>>2:1;h=h+18|0;o=de[h>>0]|0;o=ve(o<<24>>24==0|o<<24>>24==9?8:16,l)|0;if(s)if((s&3|0)==0&o>>>0<=s>>>0)o=s;else{e=0;return e|0}if((ve(o,u)|0)>>>0>n>>>0){e=0;return e|0}s=(l+1|0)>>>1;a=(u+1|0)>>>1;if(!i){e=0;return e|0}fe[e+92>>2]=t;fe[e+96>>2]=t;fe[e+104>>2]=i;fe[e+100>>2]=t+i;fe[e+108>>2]=0;fe[e+112>>2]=0;switch(me[h>>0]|0|0){case 0:{Yt(e,r,n,o,l,u,s,a)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{Wt(e,r,n,o,l,u,s,a)|0;e=1;return e|0}case 9:{Vt(e,r,n,o,l,u,s,a)|0;e=1;return e|0}case 8:case 7:{qt(e,r,n,o,l,u,s,a)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function Dt(e,t){e=e|0;t=t|0;var i=0,r=0;r=ge;ge=ge+48|0;i=r;fe[i>>2]=40;_(e,t,i)|0;ge=r;return fe[i+4>>2]|0}function Lt(e,t){e=e|0;t=t|0;var i=0,r=0;r=ge;ge=ge+48|0;i=r;fe[i>>2]=40;_(e,t,i)|0;ge=r;return fe[i+8>>2]|0}function Ft(e,t){e=e|0;t=t|0;var i=0,r=0;r=ge;ge=ge+48|0;i=r;fe[i>>2]=40;_(e,t,i)|0;ge=r;return fe[i+12>>2]|0}function Nt(e,t){e=e|0;t=t|0;var i=0,r=0;r=ge;ge=ge+48|0;i=r;fe[i>>2]=40;_(e,t,i)|0;ge=r;return fe[i+32>>2]|0}function zt(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0,a=0,l=0,u=0;l=ge;ge=ge+576|0;o=l+56|0;s=l+40|0;n=l+64|0;u=l;fe[u>>2]=40;_(e,t,u)|0;r=(((fe[u+4>>2]|0)>>>i)+3|0)>>>2;t=(((fe[u+8>>2]|0)>>>i)+3|0)>>>2;i=u+32|0;e=fe[i+4>>2]|0;do{switch(fe[i>>2]|0){case 0:{if(!e)e=8;else a=13;break}case 1:{if(!e)a=12;else a=13;break}case 2:{if(!e)a=12;else a=13;break}case 3:{if(!e)a=12;else a=13;break}case 4:{if(!e)a=12;else a=13;break}case 5:{if(!e)a=12;else a=13;break}case 6:{if(!e)a=12;else a=13;break}case 7:{if(!e)a=12;else a=13;break}case 8:{if(!e)a=12;else a=13;break}case 9:{if(!e)e=8;else a=13;break}default:a=13}}while(0);if((a|0)==12)e=16;else if((a|0)==13){fe[s>>2]=1154;fe[s+4>>2]=2663;fe[s+8>>2]=1535;xe(n,1100,s)|0;be(n,o)|0;e=0}u=ve(ve(t,r)|0,e)|0;ge=l;return u|0}function Bt(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0;f=ge;ge=ge+608|0;p=f+80|0;d=f+64|0;a=f+56|0;o=f+40|0;h=f+88|0;m=f;c=f+84|0;fe[m>>2]=40;_(e,t,m)|0;l=(((fe[m+4>>2]|0)>>>n)+3|0)>>>2;m=m+32|0;s=fe[m+4>>2]|0;do{switch(fe[m>>2]|0){case 0:{if(!s)s=8;else u=13;break}case 1:{if(!s)u=12;else u=13;break}case 2:{if(!s)u=12;else u=13;break}case 3:{if(!s)u=12;else u=13;break}case 4:{if(!s)u=12;else u=13;break}case 5:{if(!s)u=12;else u=13;break}case 6:{if(!s)u=12;else u=13;break}case 7:{if(!s)u=12;else u=13;break}case 8:{if(!s)u=12;else u=13;break}case 9:{if(!s)s=8;else u=13;break}default:u=13}}while(0);if((u|0)==12)s=16;else if((u|0)==13){fe[o>>2]=1154;fe[o+4>>2]=2663;fe[o+8>>2]=1535;xe(h,1100,o)|0;be(h,a)|0;s=0}a=ve(s,l)|0;o=Ct(e,t)|0;fe[c>>2]=i;s=(o|0)==0;if(!(n>>>0>15|(r>>>0<8|s))?(fe[o>>2]|0)==519686845:0)Mt(o,c,r,a,n)|0;if(s){ge=f;return}if((fe[o>>2]|0)!=519686845){ge=f;return}Kt(o);if(!(o&7)){X[fe[104>>2]&1](o,0,0,1,fe[27]|0)|0;ge=f;return}else{fe[d>>2]=1154;fe[d+4>>2]=2499;fe[d+8>>2]=1516;xe(h,1100,d)|0;be(h,p)|0;ge=f;return}}function Ut(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0;o=e+92|0;r=fe[e+4>>2]|0;s=e+88|0;n=fe[s>>2]|0;t=(me[n+68>>0]|0)<<8|(me[n+67>>0]|0)<<16|(me[n+69>>0]|0);i=r+t|0;n=(me[n+65>>0]|0)<<8|(me[n+66>>0]|0);if(!n){e=0;return e|0}fe[o>>2]=i;fe[e+96>>2]=i;fe[e+104>>2]=n;fe[e+100>>2]=r+(n+t);fe[e+108>>2]=0;fe[e+112>>2]=0;if(!(j(o,e+116|0)|0)){e=0;return e|0}t=fe[s>>2]|0;do{if(!((me[t+39>>0]|0)<<8|(me[t+40>>0]|0))){if(!((me[t+55>>0]|0)<<8|(me[t+56>>0]|0))){e=0;return e|0}}else{if(!(j(o,e+140|0)|0)){e=0;return e|0}if(j(o,e+188|0)|0){t=fe[s>>2]|0;break}else{e=0;return e|0}}}while(0);if((me[t+55>>0]|0)<<8|(me[t+56>>0]|0)){if(!(j(o,e+164|0)|0)){e=0;return e|0}if(!(j(o,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function jt(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0;f=ge;ge=ge+592|0;l=f+16|0;a=f;o=f+72|0;d=f+24|0;r=e+88|0;t=fe[r>>2]|0;p=(me[t+39>>0]|0)<<8|(me[t+40>>0]|0);h=e+236|0;s=e+240|0;i=fe[s>>2]|0;if((i|0)!=(p|0)){if(i>>>0<=p>>>0){do{if((fe[e+244>>2]|0)>>>0<p>>>0){if(F(h,p,(i+1|0)==(p|0),4,0)|0){t=fe[s>>2]|0;break}de[e+248>>0]=1;d=0;ge=f;return d|0}else t=i}while(0);G((fe[h>>2]|0)+(t<<2)|0,0,p-t<<2|0)|0;t=fe[r>>2]|0}fe[s>>2]=p}u=e+92|0;i=fe[e+4>>2]|0;r=(me[t+34>>0]|0)<<8|(me[t+33>>0]|0)<<16|(me[t+35>>0]|0);n=i+r|0;t=(me[t+37>>0]|0)<<8|(me[t+36>>0]|0)<<16|(me[t+38>>0]|0);if(!t){d=0;ge=f;return d|0}fe[u>>2]=n;fe[e+96>>2]=n;fe[e+104>>2]=t;fe[e+100>>2]=i+(t+r);fe[e+108>>2]=0;fe[e+112>>2]=0;fe[d+20>>2]=0;fe[d>>2]=0;fe[d+4>>2]=0;fe[d+8>>2]=0;fe[d+12>>2]=0;de[d+16>>0]=0;e=d+24|0;fe[d+44>>2]=0;fe[e>>2]=0;fe[e+4>>2]=0;fe[e+8>>2]=0;fe[e+12>>2]=0;de[e+16>>0]=0;if(j(u,d)|0?(c=d+24|0,j(u,c)|0):0){if(!(fe[s>>2]|0)){fe[a>>2]=1154;fe[a+4>>2]=903;fe[a+8>>2]=1781;xe(o,1100,a)|0;be(o,l)|0}if(!p)t=1;else{r=0;n=0;s=0;t=0;o=0;e=0;a=0;i=fe[h>>2]|0;while(1){r=(ye(u,d)|0)+r&31;n=(ye(u,c)|0)+n&63;s=(ye(u,d)|0)+s&31;t=(ye(u,d)|0)+t|0;o=(ye(u,c)|0)+o&63;e=(ye(u,d)|0)+e&31;fe[i>>2]=n<<5|r<<11|s|t<<27|o<<21|e<<16;a=a+1|0;if((a|0)==(p|0)){t=1;break}else{t=t&31;i=i+4|0}}}}else t=0;N(d+24|0);N(d);d=t;ge=f;return d|0}function Gt(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0;S=ge;ge=ge+1024|0;a=S+16|0;o=S;s=S+504|0;E=S+480|0;T=S+284|0;w=S+88|0;x=S+24|0;n=fe[e+88>>2]|0;b=(me[n+47>>0]|0)<<8|(me[n+48>>0]|0);y=e+92|0;t=fe[e+4>>2]|0;i=(me[n+42>>0]|0)<<8|(me[n+41>>0]|0)<<16|(me[n+43>>0]|0);r=t+i|0;n=(me[n+45>>0]|0)<<8|(me[n+44>>0]|0)<<16|(me[n+46>>0]|0);if(!n){E=0;ge=S;return E|0}fe[y>>2]=r;fe[e+96>>2]=r;fe[e+104>>2]=n;fe[e+100>>2]=t+(n+i);fe[e+108>>2]=0;fe[e+112>>2]=0;fe[E+20>>2]=0;fe[E>>2]=0;fe[E+4>>2]=0;fe[E+8>>2]=0;fe[E+12>>2]=0;de[E+16>>0]=0;if(j(y,E)|0){i=0;r=-3;n=-3;while(1){fe[T+(i<<2)>>2]=r;fe[w+(i<<2)>>2]=n;t=(r|0)>2;i=i+1|0;if((i|0)==49)break;else{r=t?-3:r+1|0;n=(t&1)+n|0}}t=x;i=t+64|0;do{fe[t>>2]=0;t=t+4|0}while((t|0)<(i|0));v=e+252|0;i=e+256|0;t=fe[i>>2]|0;e:do{if((t|0)==(b|0))l=13;else{if(t>>>0<=b>>>0){do{if((fe[e+260>>2]|0)>>>0<b>>>0)if(F(v,b,(t+1|0)==(b|0),4,0)|0){t=fe[i>>2]|0;break}else{de[e+264>>0]=1;t=0;break e}}while(0);G((fe[v>>2]|0)+(t<<2)|0,0,b-t<<2|0)|0}fe[i>>2]=b;l=13}}while(0);do{if((l|0)==13){if(!b){fe[o>>2]=1154;fe[o+4>>2]=903;fe[o+8>>2]=1781;xe(s,1100,o)|0;be(s,a)|0;t=1;break}r=x+4|0;n=x+8|0;e=x+12|0;s=x+16|0;o=x+20|0;a=x+24|0;l=x+28|0;u=x+32|0;h=x+36|0;c=x+40|0;p=x+44|0;d=x+48|0;f=x+52|0;m=x+56|0;_=x+60|0;g=0;i=fe[v>>2]|0;while(1){t=0;do{A=ye(y,E)|0;v=t<<1;k=x+(v<<2)|0;fe[k>>2]=(fe[k>>2]|0)+(fe[T+(A<<2)>>2]|0)&3;v=x+((v|1)<<2)|0;fe[v>>2]=(fe[v>>2]|0)+(fe[w+(A<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);fe[i>>2]=(me[1725+(fe[r>>2]|0)>>0]|0)<<2|(me[1725+(fe[x>>2]|0)>>0]|0)|(me[1725+(fe[n>>2]|0)>>0]|0)<<4|(me[1725+(fe[e>>2]|0)>>0]|0)<<6|(me[1725+(fe[s>>2]|0)>>0]|0)<<8|(me[1725+(fe[o>>2]|0)>>0]|0)<<10|(me[1725+(fe[a>>2]|0)>>0]|0)<<12|(me[1725+(fe[l>>2]|0)>>0]|0)<<14|(me[1725+(fe[u>>2]|0)>>0]|0)<<16|(me[1725+(fe[h>>2]|0)>>0]|0)<<18|(me[1725+(fe[c>>2]|0)>>0]|0)<<20|(me[1725+(fe[p>>2]|0)>>0]|0)<<22|(me[1725+(fe[d>>2]|0)>>0]|0)<<24|(me[1725+(fe[f>>2]|0)>>0]|0)<<26|(me[1725+(fe[m>>2]|0)>>0]|0)<<28|(me[1725+(fe[_>>2]|0)>>0]|0)<<30;g=g+1|0;if((g|0)==(b|0)){t=1;break}else i=i+4|0}}}while(0)}else t=0;N(E);k=t;ge=S;return k|0}function Xt(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0;p=ge;ge=ge+560|0;l=p+16|0;a=p;o=p+48|0;c=p+24|0;n=fe[e+88>>2]|0;h=(me[n+55>>0]|0)<<8|(me[n+56>>0]|0);u=e+92|0;t=fe[e+4>>2]|0;i=(me[n+50>>0]|0)<<8|(me[n+49>>0]|0)<<16|(me[n+51>>0]|0);r=t+i|0;n=(me[n+53>>0]|0)<<8|(me[n+52>>0]|0)<<16|(me[n+54>>0]|0);if(!n){c=0;ge=p;return c|0}fe[u>>2]=r;fe[e+96>>2]=r;fe[e+104>>2]=n;fe[e+100>>2]=t+(n+i);fe[e+108>>2]=0;fe[e+112>>2]=0;fe[c+20>>2]=0;fe[c>>2]=0;fe[c+4>>2]=0;fe[c+8>>2]=0;fe[c+12>>2]=0;de[c+16>>0]=0;e:do{if(j(u,c)|0){s=e+268|0;i=e+272|0;t=fe[i>>2]|0;if((t|0)!=(h|0)){if(t>>>0<=h>>>0){do{if((fe[e+276>>2]|0)>>>0<h>>>0)if(F(s,h,(t+1|0)==(h|0),2,0)|0){t=fe[i>>2]|0;break}else{de[e+280>>0]=1;t=0;break e}}while(0);G((fe[s>>2]|0)+(t<<1)|0,0,h-t<<1|0)|0}fe[i>>2]=h}if(!h){fe[a>>2]=1154;fe[a+4>>2]=903;fe[a+8>>2]=1781;xe(o,1100,a)|0;be(o,l)|0;t=1;break}i=0;r=0;n=0;t=fe[s>>2]|0;while(1){l=ye(u,c)|0;i=l+i&255;r=(ye(u,c)|0)+r&255;$[t>>1]=r<<8|i;n=n+1|0;if((n|0)==(h|0)){t=1;break}else t=t+2|0}}else t=0}while(0);N(c);c=t;ge=p;return c|0}function Ht(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0;S=ge;ge=ge+2432|0;a=S+16|0;o=S;s=S+1912|0;E=S+1888|0;T=S+988|0;w=S+88|0;x=S+24|0;n=fe[e+88>>2]|0;b=(me[n+63>>0]|0)<<8|(me[n+64>>0]|0);y=e+92|0;t=fe[e+4>>2]|0;i=(me[n+58>>0]|0)<<8|(me[n+57>>0]|0)<<16|(me[n+59>>0]|0);r=t+i|0;n=(me[n+61>>0]|0)<<8|(me[n+60>>0]|0)<<16|(me[n+62>>0]|0);if(!n){E=0;ge=S;return E|0}fe[y>>2]=r;fe[e+96>>2]=r;fe[e+104>>2]=n;fe[e+100>>2]=t+(n+i);fe[e+108>>2]=0;fe[e+112>>2]=0;fe[E+20>>2]=0;fe[E>>2]=0;fe[E+4>>2]=0;fe[E+8>>2]=0;fe[E+12>>2]=0;de[E+16>>0]=0;if(j(y,E)|0){i=0;r=-7;n=-7;while(1){fe[T+(i<<2)>>2]=r;fe[w+(i<<2)>>2]=n;t=(r|0)>6;i=i+1|0;if((i|0)==225)break;else{r=t?-7:r+1|0;n=(t&1)+n|0}}t=x;i=t+64|0;do{fe[t>>2]=0;t=t+4|0}while((t|0)<(i|0));v=e+284|0;i=b*3|0;r=e+288|0;t=fe[r>>2]|0;e:do{if((t|0)==(i|0))l=13;else{if(t>>>0<=i>>>0){do{if((fe[e+292>>2]|0)>>>0<i>>>0)if(F(v,i,(t+1|0)==(i|0),2,0)|0){t=fe[r>>2]|0;break}else{de[e+296>>0]=1;t=0;break e}}while(0);G((fe[v>>2]|0)+(t<<1)|0,0,i-t<<1|0)|0}fe[r>>2]=i;l=13}}while(0);do{if((l|0)==13){if(!b){fe[o>>2]=1154;fe[o+4>>2]=903;fe[o+8>>2]=1781;xe(s,1100,o)|0;be(s,a)|0;t=1;break}r=x+4|0;n=x+8|0;e=x+12|0;s=x+16|0;o=x+20|0;a=x+24|0;l=x+28|0;u=x+32|0;h=x+36|0;c=x+40|0;p=x+44|0;d=x+48|0;f=x+52|0;m=x+56|0;_=x+60|0;g=0;i=fe[v>>2]|0;while(1){t=0;do{A=ye(y,E)|0;v=t<<1;k=x+(v<<2)|0;fe[k>>2]=(fe[k>>2]|0)+(fe[T+(A<<2)>>2]|0)&7;v=x+((v|1)<<2)|0;fe[v>>2]=(fe[v>>2]|0)+(fe[w+(A<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);A=me[1729+(fe[o>>2]|0)>>0]|0;$[i>>1]=(me[1729+(fe[r>>2]|0)>>0]|0)<<3|(me[1729+(fe[x>>2]|0)>>0]|0)|(me[1729+(fe[n>>2]|0)>>0]|0)<<6|(me[1729+(fe[e>>2]|0)>>0]|0)<<9|(me[1729+(fe[s>>2]|0)>>0]|0)<<12|A<<15;k=me[1729+(fe[c>>2]|0)>>0]|0;$[i+2>>1]=(me[1729+(fe[a>>2]|0)>>0]|0)<<2|A>>>1|(me[1729+(fe[l>>2]|0)>>0]|0)<<5|(me[1729+(fe[u>>2]|0)>>0]|0)<<8|(me[1729+(fe[h>>2]|0)>>0]|0)<<11|k<<14;$[i+4>>1]=(me[1729+(fe[p>>2]|0)>>0]|0)<<1|k>>>2|(me[1729+(fe[d>>2]|0)>>0]|0)<<4|(me[1729+(fe[f>>2]|0)>>0]|0)<<7|(me[1729+(fe[m>>2]|0)>>0]|0)<<10|(me[1729+(fe[_>>2]|0)>>0]|0)<<13;g=g+1|0;if((g|0)==(b|0)){t=1;break}else i=i+6|0}}}while(0)}else t=0;N(E);k=t;ge=S;return k|0}function Yt(e,F,t,i,r,n,N,s){e=e|0;F=F|0;t=t|0;i=i|0;r=r|0;n=n|0;N=N|0;s=s|0;var o=0,a=0,l=0,z=0,u=0,h=0,c=0,p=0,B=0,U=0,d=0,j=0,G=0,f=0,m=0,X=0,_=0,g=0,H=0,Y=0,W=0,V=0,v=0,q=0,K=0,Z=0,y=0,J=0,Q=0,$=0,ee=0,te=0,ie=0,re=0,ne=0,b=0,x=0,T=0,w=0,E=0,S=0,se=0,A=0,oe=0,k=0,ae=0,P=0,le=0,ue=0,O=0,he=0,R=0,ce=0,C=0,M=0,pe=0,I=0,D=0,L=0;I=ge;ge=ge+720|0;pe=I+184|0;C=I+168|0;ce=I+160|0;R=I+144|0;he=I+136|0;O=I+120|0;ue=I+112|0;P=I+96|0;ae=I+88|0;k=I+72|0;oe=I+64|0;A=I+48|0;se=I+40|0;M=I+24|0;le=I+16|0;S=I;w=I+208|0;E=I+192|0;te=e+240|0;ie=fe[te>>2]|0;b=e+256|0;x=fe[b>>2]|0;t=de[(fe[e+88>>2]|0)+17>>0]|0;T=i>>>2;if(!(t<<24>>24)){ge=I;return 1}re=(s|0)==0;ne=s+-1|0;K=(n&1|0)!=0;Z=i<<1;y=e+92|0;J=e+116|0;Q=e+140|0;$=e+236|0;ee=N+-1|0;q=(r&1|0)!=0;v=e+188|0;g=e+252|0;H=T+1|0;Y=T+2|0;W=T+3|0;V=ee<<4;X=t&255;t=0;n=0;r=1;_=0;do{if(!re){f=fe[F+(_<<2)>>2]|0;m=0;while(1){d=m&1;o=(d|0)==0;U=(d<<5^32)+-16|0;d=(d<<1^2)+-1|0;G=o?N:-1;a=o?0:ee;e=(m|0)==(ne|0);j=K&e;if((a|0)!=(G|0)){B=K&e^1;p=o?f:f+V|0;while(1){if((r|0)==1)r=ye(y,J)|0|512;c=r&7;r=r>>>3;o=me[1823+c>>0]|0;e=0;do{u=(ye(y,Q)|0)+n|0;h=u-ie|0;n=h>>31;n=n&u|h&~n;if((fe[te>>2]|0)>>>0<=n>>>0){fe[S>>2]=1154;fe[S+4>>2]=903;fe[S+8>>2]=1781;xe(w,1100,S)|0;be(w,le)|0}fe[E+(e<<2)>>2]=fe[(fe[$>>2]|0)+(n<<2)>>2];e=e+1|0}while(e>>>0<o>>>0);h=q&(a|0)==(ee|0);if(j|h){u=0;do{l=ve(u,i)|0;e=p+l|0;o=(u|0)==0|B;z=u<<1;L=(ye(y,v)|0)+t|0;D=L-x|0;t=D>>31;t=t&L|D&~t;do{if(h){if(!o){D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;break}fe[e>>2]=fe[E+((me[1831+(c<<2)+z>>0]|0)<<2)>>2];if((fe[b>>2]|0)>>>0<=t>>>0){fe[R>>2]=1154;fe[R+4>>2]=903;fe[R+8>>2]=1781;xe(w,1100,R)|0;be(w,ce)|0}fe[p+(l+4)>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t}else{if(!o){D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;break}fe[e>>2]=fe[E+((me[1831+(c<<2)+z>>0]|0)<<2)>>2];if((fe[b>>2]|0)>>>0<=t>>>0){fe[O>>2]=1154;fe[O+4>>2]=903;fe[O+8>>2]=1781;xe(w,1100,O)|0;be(w,he)|0}fe[p+(l+4)>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;fe[p+(l+8)>>2]=fe[E+((me[(z|1)+(1831+(c<<2))>>0]|0)<<2)>>2];if((fe[b>>2]|0)>>>0<=t>>>0){fe[C>>2]=1154;fe[C+4>>2]=903;fe[C+8>>2]=1781;xe(w,1100,C)|0;be(w,pe)|0}fe[p+(l+12)>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2]}}while(0);u=u+1|0}while((u|0)!=2)}else{fe[p>>2]=fe[E+((me[1831+(c<<2)>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((fe[b>>2]|0)>>>0<=t>>>0){fe[M>>2]=1154;fe[M+4>>2]=903;fe[M+8>>2]=1781;xe(w,1100,M)|0;be(w,se)|0}fe[p+4>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2];fe[p+8>>2]=fe[E+((me[1831+(c<<2)+1>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((fe[b>>2]|0)>>>0<=t>>>0){fe[A>>2]=1154;fe[A+4>>2]=903;fe[A+8>>2]=1781;xe(w,1100,A)|0;be(w,oe)|0}fe[p+12>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2];fe[p+(T<<2)>>2]=fe[E+((me[1831+(c<<2)+2>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((fe[b>>2]|0)>>>0<=t>>>0){fe[k>>2]=1154;fe[k+4>>2]=903;fe[k+8>>2]=1781;xe(w,1100,k)|0;be(w,ae)|0}fe[p+(H<<2)>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2];fe[p+(Y<<2)>>2]=fe[E+((me[1831+(c<<2)+3>>0]|0)<<2)>>2];D=(ye(y,v)|0)+t|0;L=D-x|0;t=L>>31;t=t&D|L&~t;if((fe[b>>2]|0)>>>0<=t>>>0){fe[P>>2]=1154;fe[P+4>>2]=903;fe[P+8>>2]=1781;xe(w,1100,P)|0;be(w,ue)|0}fe[p+(W<<2)>>2]=fe[(fe[g>>2]|0)+(t<<2)>>2]}a=a+d|0;if((a|0)==(G|0))break;else p=p+U|0}}m=m+1|0;if((m|0)==(s|0))break;else f=f+Z|0}}_=_+1|0}while((_|0)!=(X|0));ge=I;return 1}function Wt(e,t,i,r,n,s,o,a){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;o=o|0;a=a|0;var l=0,u=0,h=0,c=0,p=0,d=0,F=0,N=0,f=0,m=0,_=0,g=0,v=0,z=0,B=0,y=0,b=0,x=0,T=0,U=0,w=0,j=0,G=0,X=0,H=0,Y=0,W=0,V=0,q=0,K=0,Z=0,E=0,J=0,Q=0,$=0,S=0,ee=0,te=0,A=0,ie=0,k=0,re=0,ne=0,se=0,P=0,oe=0,ae=0,O=0,le=0,R=0,ue=0,C=0,he=0,M=0,ce=0,pe=0,I=0,D=0,L=0;D=ge;ge=ge+640|0;ce=D+88|0;M=D+72|0;he=D+64|0;C=D+48|0;ue=D+40|0;I=D+24|0;pe=D+16|0;R=D;O=D+128|0;le=D+112|0;ae=D+96|0;E=e+240|0;J=fe[E>>2]|0;S=e+256|0;se=fe[S>>2]|0;P=e+272|0;oe=fe[P>>2]|0;i=fe[e+88>>2]|0;Q=(me[i+63>>0]|0)<<8|(me[i+64>>0]|0);i=de[i+17>>0]|0;if(!(i<<24>>24)){ge=D;return 1}$=(a|0)==0;ee=a+-1|0;te=r<<1;A=e+92|0;ie=e+116|0;k=o+-1|0;re=e+212|0;ne=e+188|0;Z=(n&1|0)==0;K=(s&1|0)==0;X=e+288|0;H=e+284|0;Y=e+252|0;W=e+140|0;V=e+236|0;q=e+164|0;j=e+268|0;G=k<<5;U=i&255;i=0;n=0;s=0;e=0;l=1;w=0;do{if(!$){x=fe[t+(w<<2)>>2]|0;T=0;while(1){y=T&1;u=(y|0)==0;B=(y<<6^64)+-32|0;y=(y<<1^2)+-1|0;b=u?o:-1;h=u?0:k;if((h|0)!=(b|0)){z=K|(T|0)!=(ee|0);v=u?x:x+G|0;while(1){if((l|0)==1)l=ye(A,ie)|0|512;g=l&7;l=l>>>3;c=me[1823+g>>0]|0;u=0;do{m=(ye(A,q)|0)+n|0;_=m-oe|0;n=_>>31;n=n&m|_&~n;if((fe[P>>2]|0)>>>0<=n>>>0){fe[R>>2]=1154;fe[R+4>>2]=903;fe[R+8>>2]=1781;xe(O,1100,R)|0;be(O,pe)|0}fe[ae+(u<<2)>>2]=_e[(fe[j>>2]|0)+(n<<1)>>1];u=u+1|0}while(u>>>0<c>>>0);u=0;do{m=(ye(A,W)|0)+e|0;_=m-J|0;e=_>>31;e=e&m|_&~e;if((fe[E>>2]|0)>>>0<=e>>>0){fe[I>>2]=1154;fe[I+4>>2]=903;fe[I+8>>2]=1781;xe(O,1100,I)|0;be(O,ue)|0}fe[le+(u<<2)>>2]=fe[(fe[V>>2]|0)+(e<<2)>>2];u=u+1|0}while(u>>>0<c>>>0);_=Z|(h|0)!=(k|0);f=0;m=v;while(1){N=z|(f|0)==0;F=f<<1;p=0;d=m;while(1){c=(ye(A,re)|0)+i|0;u=c-Q|0;i=u>>31;i=i&c|u&~i;u=(ye(A,ne)|0)+s|0;c=u-se|0;s=c>>31;s=s&u|c&~s;if((_|(p|0)==0)&N){u=me[p+F+(1831+(g<<2))>>0]|0;c=i*3|0;if((fe[X>>2]|0)>>>0<=c>>>0){fe[C>>2]=1154;fe[C+4>>2]=903;fe[C+8>>2]=1781;xe(O,1100,C)|0;be(O,he)|0}L=fe[H>>2]|0;fe[d>>2]=(_e[L+(c<<1)>>1]|0)<<16|fe[ae+(u<<2)>>2];fe[d+4>>2]=(_e[L+(c+2<<1)>>1]|0)<<16|(_e[L+(c+1<<1)>>1]|0);fe[d+8>>2]=fe[le+(u<<2)>>2];if((fe[S>>2]|0)>>>0<=s>>>0){fe[M>>2]=1154;fe[M+4>>2]=903;fe[M+8>>2]=1781;xe(O,1100,M)|0;be(O,ce)|0}fe[d+12>>2]=fe[(fe[Y>>2]|0)+(s<<2)>>2]}p=p+1|0;if((p|0)==2)break;else d=d+16|0}f=f+1|0;if((f|0)==2)break;else m=m+r|0}h=h+y|0;if((h|0)==(b|0))break;else v=v+B|0}}T=T+1|0;if((T|0)==(a|0))break;else x=x+te|0}}w=w+1|0}while((w|0)!=(U|0));ge=D;return 1}function Vt(e,t,i,r,n,s,o,a){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;o=o|0;a=a|0;var l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,F=0,N=0,v=0,y=0,b=0,x=0,T=0,z=0,B=0,U=0,j=0,w=0,E=0,G=0,X=0,S=0,H=0,A=0,Y=0,W=0,V=0,k=0,q=0,P=0,O=0,R=0,C=0,M=0,K=0,I=0,Z=0,J=0,D=0,L=0;L=ge;ge=ge+608|0;Z=L+64|0;I=L+48|0;K=L+40|0;D=L+24|0;J=L+16|0;M=L;C=L+88|0;R=L+72|0;S=e+272|0;H=fe[S>>2]|0;i=fe[e+88>>2]|0;A=(me[i+63>>0]|0)<<8|(me[i+64>>0]|0);i=de[i+17>>0]|0;if(!(i<<24>>24)){ge=L;return 1}Y=(a|0)==0;W=a+-1|0;V=r<<1;k=e+92|0;q=e+116|0;P=o+-1|0;O=e+212|0;X=(s&1|0)==0;w=e+288|0;E=e+284|0;G=e+164|0;U=e+268|0;j=P<<4;B=i&255;z=(n&1|0)!=0;i=0;s=0;e=1;T=0;do{if(!Y){b=fe[t+(T<<2)>>2]|0;x=0;while(1){v=x&1;n=(v|0)==0;N=(v<<5^32)+-16|0;v=(v<<1^2)+-1|0;y=n?o:-1;l=n?0:P;if((l|0)!=(y|0)){F=X|(x|0)!=(W|0);g=n?b:b+j|0;while(1){if((e|0)==1)e=ye(k,q)|0|512;_=e&7;e=e>>>3;u=me[1823+_>>0]|0;n=0;do{f=(ye(k,G)|0)+s|0;m=f-H|0;s=m>>31;s=s&f|m&~s;if((fe[S>>2]|0)>>>0<=s>>>0){fe[M>>2]=1154;fe[M+4>>2]=903;fe[M+8>>2]=1781;xe(C,1100,M)|0;be(C,J)|0}fe[R+(n<<2)>>2]=_e[(fe[U>>2]|0)+(s<<1)>>1];n=n+1|0}while(n>>>0<u>>>0);m=(l|0)==(P|0)&z;d=0;f=g;while(1){p=F|(d|0)==0;c=d<<1;n=(ye(k,O)|0)+i|0;h=n-A|0;u=h>>31;u=u&n|h&~u;if(p){i=me[1831+(_<<2)+c>>0]|0;n=u*3|0;if((fe[w>>2]|0)>>>0<=n>>>0){fe[D>>2]=1154;fe[D+4>>2]=903;fe[D+8>>2]=1781;xe(C,1100,D)|0;be(C,K)|0}h=fe[E>>2]|0;fe[f>>2]=(_e[h+(n<<1)>>1]|0)<<16|fe[R+(i<<2)>>2];fe[f+4>>2]=(_e[h+(n+2<<1)>>1]|0)<<16|(_e[h+(n+1<<1)>>1]|0)}h=f+8|0;n=(ye(k,O)|0)+u|0;u=n-A|0;i=u>>31;i=i&n|u&~i;if(!(m|p^1)){n=me[(c|1)+(1831+(_<<2))>>0]|0;u=i*3|0;if((fe[w>>2]|0)>>>0<=u>>>0){fe[I>>2]=1154;fe[I+4>>2]=903;fe[I+8>>2]=1781;xe(C,1100,I)|0;be(C,Z)|0}p=fe[E>>2]|0;fe[h>>2]=(_e[p+(u<<1)>>1]|0)<<16|fe[R+(n<<2)>>2];fe[f+12>>2]=(_e[p+(u+2<<1)>>1]|0)<<16|(_e[p+(u+1<<1)>>1]|0)}d=d+1|0;if((d|0)==2)break;else f=f+r|0}l=l+v|0;if((l|0)==(y|0))break;else g=g+N|0}}x=x+1|0;if((x|0)==(a|0))break;else b=b+V|0}}T=T+1|0}while((T|0)!=(B|0));ge=L;return 1}function qt(e,t,i,r,n,s,o,a){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;o=o|0;a=a|0;var l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,F=0,N=0,g=0,v=0,y=0,b=0,x=0,z=0,B=0,T=0,w=0,E=0,S=0,U=0,A=0,j=0,G=0,X=0,H=0,Y=0,W=0,V=0,k=0,q=0,K=0,Z=0,J=0,Q=0,P=0,$=0,O=0,ee=0,te=0,ie=0,R=0,C=0,re=0,M=0,ne=0,I=0,se=0,oe=0,D=0,L=0;L=ge;ge=ge+640|0;se=L+88|0;I=L+72|0;ne=L+64|0;M=L+48|0;re=L+40|0;D=L+24|0;oe=L+16|0;C=L;R=L+128|0;te=L+112|0;ie=L+96|0;k=e+272|0;q=fe[k>>2]|0;i=fe[e+88>>2]|0;K=(me[i+63>>0]|0)<<8|(me[i+64>>0]|0);i=de[i+17>>0]|0;if(!(i<<24>>24)){ge=L;return 1}Z=(a|0)==0;J=a+-1|0;Q=r<<1;P=e+92|0;$=e+116|0;O=o+-1|0;ee=e+212|0;V=(n&1|0)==0;W=(s&1|0)==0;X=e+288|0;H=e+284|0;Y=e+164|0;j=e+268|0;G=O<<5;U=i&255;i=0;n=0;s=0;e=0;l=1;A=0;do{if(!Z){E=fe[t+(A<<2)>>2]|0;S=0;while(1){T=S&1;u=(T|0)==0;B=(T<<6^64)+-32|0;T=(T<<1^2)+-1|0;w=u?o:-1;h=u?0:O;if((h|0)!=(w|0)){z=W|(S|0)!=(J|0);x=u?E:E+G|0;while(1){if((l|0)==1)l=ye(P,$)|0|512;b=l&7;l=l>>>3;c=me[1823+b>>0]|0;u=0;do{v=(ye(P,Y)|0)+e|0;y=v-q|0;e=y>>31;e=e&v|y&~e;if((fe[k>>2]|0)>>>0<=e>>>0){fe[C>>2]=1154;fe[C+4>>2]=903;fe[C+8>>2]=1781;xe(R,1100,C)|0;be(R,oe)|0}fe[te+(u<<2)>>2]=_e[(fe[j>>2]|0)+(e<<1)>>1];u=u+1|0}while(u>>>0<c>>>0);u=0;do{v=(ye(P,Y)|0)+n|0;y=v-q|0;n=y>>31;n=n&v|y&~n;if((fe[k>>2]|0)>>>0<=n>>>0){fe[D>>2]=1154;fe[D+4>>2]=903;fe[D+8>>2]=1781;xe(R,1100,D)|0;be(R,re)|0}fe[ie+(u<<2)>>2]=_e[(fe[j>>2]|0)+(n<<1)>>1];u=u+1|0}while(u>>>0<c>>>0);y=V|(h|0)!=(O|0);g=0;v=x;while(1){N=z|(g|0)==0;F=g<<1;m=0;_=v;while(1){f=(ye(P,ee)|0)+s|0;d=f-K|0;s=d>>31;s=s&f|d&~s;d=(ye(P,ee)|0)+i|0;f=d-K|0;i=f>>31;i=i&d|f&~i;if((y|(m|0)==0)&N){d=me[m+F+(1831+(b<<2))>>0]|0;f=s*3|0;u=fe[X>>2]|0;if(u>>>0<=f>>>0){fe[M>>2]=1154;fe[M+4>>2]=903;fe[M+8>>2]=1781;xe(R,1100,M)|0;be(R,ne)|0;u=fe[X>>2]|0}c=fe[H>>2]|0;p=i*3|0;if(u>>>0>p>>>0)u=c;else{fe[I>>2]=1154;fe[I+4>>2]=903;fe[I+8>>2]=1781;xe(R,1100,I)|0;be(R,se)|0;u=fe[H>>2]|0}fe[_>>2]=(_e[c+(f<<1)>>1]|0)<<16|fe[te+(d<<2)>>2];fe[_+4>>2]=(_e[c+(f+2<<1)>>1]|0)<<16|(_e[c+(f+1<<1)>>1]|0);fe[_+8>>2]=(_e[u+(p<<1)>>1]|0)<<16|fe[ie+(d<<2)>>2];fe[_+12>>2]=(_e[u+(p+2<<1)>>1]|0)<<16|(_e[u+(p+1<<1)>>1]|0)}m=m+1|0;if((m|0)==2)break;else _=_+16|0}g=g+1|0;if((g|0)==2)break;else v=v+r|0}h=h+T|0;if((h|0)==(w|0))break;else x=x+B|0}}S=S+1|0;if((S|0)==(a|0))break;else E=E+Q|0}}A=A+1|0}while((A|0)!=(U|0));ge=L;return 1}function Kt(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0;p=ge;ge=ge+608|0;c=p+88|0;h=p+72|0;l=p+64|0;a=p+48|0;s=p+40|0;o=p+24|0;n=p+16|0;r=p;u=p+96|0;fe[e>>2]=0;t=e+284|0;i=fe[t>>2]|0;if(i){if(!(i&7))X[fe[104>>2]&1](i,0,0,1,fe[27]|0)|0;else{fe[r>>2]=1154;fe[r+4>>2]=2499;fe[r+8>>2]=1516;xe(u,1100,r)|0;be(u,n)|0}fe[t>>2]=0;fe[e+288>>2]=0;fe[e+292>>2]=0}de[e+296>>0]=0;t=e+268|0;i=fe[t>>2]|0;if(i){if(!(i&7))X[fe[104>>2]&1](i,0,0,1,fe[27]|0)|0;else{fe[o>>2]=1154;fe[o+4>>2]=2499;fe[o+8>>2]=1516;xe(u,1100,o)|0;be(u,s)|0}fe[t>>2]=0;fe[e+272>>2]=0;fe[e+276>>2]=0}de[e+280>>0]=0;t=e+252|0;i=fe[t>>2]|0;if(i){if(!(i&7))X[fe[104>>2]&1](i,0,0,1,fe[27]|0)|0;else{fe[a>>2]=1154;fe[a+4>>2]=2499;fe[a+8>>2]=1516;xe(u,1100,a)|0;be(u,l)|0}fe[t>>2]=0;fe[e+256>>2]=0;fe[e+260>>2]=0}de[e+264>>0]=0;t=e+236|0;i=fe[t>>2]|0;if(!i){c=e+248|0;de[c>>0]=0;c=e+212|0;N(c);c=e+188|0;N(c);c=e+164|0;N(c);c=e+140|0;N(c);c=e+116|0;N(c);ge=p;return}if(!(i&7))X[fe[104>>2]&1](i,0,0,1,fe[27]|0)|0;else{fe[h>>2]=1154;fe[h+4>>2]=2499;fe[h+8>>2]=1516;xe(u,1100,h)|0;be(u,c)|0}fe[t>>2]=0;fe[e+240>>2]=0;fe[e+244>>2]=0;c=e+248|0;de[c>>0]=0;c=e+212|0;N(c);c=e+188|0;N(c);c=e+164|0;N(c);c=e+140|0;N(c);c=e+116|0;N(c);ge=p}function l(e,t){e=e|0;t=t|0;var i=0;i=ge;ge=ge+16|0;fe[i>>2]=t;t=fe[63]|0;Oi(t,e,i)|0;Pi(10,t)|0;B()}function Zt(){var e=0,t=0;e=ge;ge=ge+16|0;if(!(it(200,2)|0)){t=et(fe[49]|0)|0;ge=e;return t|0}else l(2090,e);return 0}function Jt(e){e=e|0;b(e)}function Qt(e){e=e|0;var t=0;t=ge;ge=ge+16|0;Mr[e&3]();l(2139,t)}function $t(){var e=0,t=0;e=Zt()|0;if(((e|0)!=0?(t=fe[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(fe[e>>2]&-256|0)==1126902528?(fe[e+4>>2]|0)==1129074247:0):0)Qt(fe[t+12>>2]|0);t=fe[28]|0;fe[28]=t+0;Qt(t)}function ei(e){e=e|0}function ti(e){e=e|0;return}function ii(e){e=e|0;return}function ri(e){e=e|0;return}function ni(e){e=e|0;Jt(e);return}function si(e){e=e|0;Jt(e);return}function oi(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0;o=ge;ge=ge+64|0;s=o;if((e|0)!=(t|0))if((t|0)!=0?(n=hi(t,24,40,0)|0,(n|0)!=0):0){t=s;r=t+56|0;do{fe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));fe[s>>2]=n;fe[s+8>>2]=e;fe[s+12>>2]=-1;fe[s+48>>2]=1;Dr[fe[(fe[n>>2]|0)+28>>2]&3](n,s,fe[i>>2]|0,1);if((fe[s+24>>2]|0)==1){fe[i>>2]=fe[s+16>>2];t=1}else t=0}else t=0;else t=1;ge=o;return t|0}function ai(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0;e=t+16|0;n=fe[e>>2]|0;do{if(n){if((n|0)!=(i|0)){r=t+36|0;fe[r>>2]=(fe[r>>2]|0)+1;fe[t+24>>2]=2;de[t+54>>0]=1;break}e=t+24|0;if((fe[e>>2]|0)==2)fe[e>>2]=r}else{fe[e>>2]=i;fe[t+24>>2]=r;fe[t+36>>2]=1}}while(0)}function li(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;if((e|0)==(fe[t+8>>2]|0))ai(0,t,i,r);return}function ui(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;if((e|0)==(fe[t+8>>2]|0))ai(0,t,i,r);else{e=fe[e+8>>2]|0;Dr[fe[(fe[e>>2]|0)+28>>2]&3](e,t,i,r)}return}function hi(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0;d=ge;ge=ge+64|0;p=d;c=fe[e>>2]|0;h=e+(fe[c+-8>>2]|0)|0;c=fe[c+-4>>2]|0;fe[p>>2]=i;fe[p+4>>2]=e;fe[p+8>>2]=t;fe[p+12>>2]=r;r=p+16|0;e=p+20|0;t=p+24|0;n=p+28|0;s=p+32|0;o=p+40|0;a=(c|0)==(i|0);l=r;u=l+36|0;do{fe[l>>2]=0;l=l+4|0}while((l|0)<(u|0));$[r+36>>1]=0;de[r+38>>0]=0;e:do{if(a){fe[p+48>>2]=1;Ir[fe[(fe[i>>2]|0)+20>>2]&3](i,p,h,h,1,0);r=(fe[t>>2]|0)==1?h:0}else{Pr[fe[(fe[c>>2]|0)+24>>2]&3](c,p,h,1,0);switch(fe[p+36>>2]|0){case 0:{r=(fe[o>>2]|0)==1&(fe[n>>2]|0)==1&(fe[s>>2]|0)==1?fe[e>>2]|0:0;break e}case 1:break;default:{r=0;break e}}if((fe[t>>2]|0)!=1?!((fe[o>>2]|0)==0&(fe[n>>2]|0)==1&(fe[s>>2]|0)==1):0){r=0;break}r=fe[r>>2]|0}}while(0);ge=d;return r|0}function ci(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;de[t+53>>0]=1;do{if((fe[t+4>>2]|0)==(r|0)){de[t+52>>0]=1;r=t+16|0;e=fe[r>>2]|0;if(!e){fe[r>>2]=i;fe[t+24>>2]=n;fe[t+36>>2]=1;if(!((n|0)==1?(fe[t+48>>2]|0)==1:0))break;de[t+54>>0]=1;break}if((e|0)!=(i|0)){n=t+36|0;fe[n>>2]=(fe[n>>2]|0)+1;de[t+54>>0]=1;break}e=t+24|0;r=fe[e>>2]|0;if((r|0)==2){fe[e>>2]=n;r=n}if((r|0)==1?(fe[t+48>>2]|0)==1:0)de[t+54>>0]=1}}while(0)}function pi(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0,l=0;e:do{if((e|0)==(fe[t+8>>2]|0)){if((fe[t+4>>2]|0)==(i|0)?(s=t+28|0,(fe[s>>2]|0)!=1):0)fe[s>>2]=r}else{if((e|0)!=(fe[t>>2]|0)){a=fe[e+8>>2]|0;Pr[fe[(fe[a>>2]|0)+24>>2]&3](a,t,i,r,n);break}if((fe[t+16>>2]|0)!=(i|0)?(o=t+20|0,(fe[o>>2]|0)!=(i|0)):0){fe[t+32>>2]=r;r=t+44|0;if((fe[r>>2]|0)==4)break;s=t+52|0;de[s>>0]=0;l=t+53|0;de[l>>0]=0;e=fe[e+8>>2]|0;Ir[fe[(fe[e>>2]|0)+20>>2]&3](e,t,i,i,1,n);if(de[l>>0]|0){if(!(de[s>>0]|0)){s=1;a=13}}else{s=0;a=13}do{if((a|0)==13){fe[o>>2]=i;l=t+40|0;fe[l>>2]=(fe[l>>2]|0)+1;if((fe[t+36>>2]|0)==1?(fe[t+24>>2]|0)==2:0){de[t+54>>0]=1;if(s)break}else a=16;if((a|0)==16?s:0)break;fe[r>>2]=4;break e}}while(0);fe[r>>2]=3;break}if((r|0)==1)fe[t+32>>2]=1}}while(0);return}function di(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0;do{if((e|0)==(fe[t+8>>2]|0)){if((fe[t+4>>2]|0)==(i|0)?(o=t+28|0,(fe[o>>2]|0)!=1):0)fe[o>>2]=r}else if((e|0)==(fe[t>>2]|0)){if((fe[t+16>>2]|0)!=(i|0)?(s=t+20|0,(fe[s>>2]|0)!=(i|0)):0){fe[t+32>>2]=r;fe[s>>2]=i;n=t+40|0;fe[n>>2]=(fe[n>>2]|0)+1;if((fe[t+36>>2]|0)==1?(fe[t+24>>2]|0)==2:0)de[t+54>>0]=1;fe[t+44>>2]=4;break}if((r|0)==1)fe[t+32>>2]=1}}while(0);return}function fi(e,t,i,r,n,s){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;if((e|0)==(fe[t+8>>2]|0))ci(0,t,i,r,n);else{e=fe[e+8>>2]|0;Ir[fe[(fe[e>>2]|0)+20>>2]&3](e,t,i,r,n,s)}return}function mi(e,t,i,r,n,s){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;if((e|0)==(fe[t+8>>2]|0))ci(0,t,i,r,n);return}function _i(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0;n=ge;ge=ge+16|0;r=n;fe[r>>2]=fe[i>>2];e=v[fe[(fe[e>>2]|0)+16>>2]&7](e,t,r)|0;if(e)fe[i>>2]=fe[r>>2];ge=n;return e&1|0}function gi(e){e=e|0;if(!e)e=0;else e=(hi(e,24,72,0)|0)!=0;return e&1|0}function vi(){var e=0,t=0,i=0,r=0,n=0,s=0,o=0,a=0;n=ge;ge=ge+48|0;o=n+32|0;i=n+24|0;a=n+16|0;s=n;n=n+36|0;e=Zt()|0;if((e|0)!=0?(r=fe[e>>2]|0,(r|0)!=0):0){e=r+48|0;t=fe[e>>2]|0;e=fe[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){fe[i>>2]=fe[51];l(2368,i)}if((t|0)==1126902529&(e|0)==1129074247)e=fe[r+44>>2]|0;else e=r+80|0;fe[n>>2]=e;r=fe[r>>2]|0;e=fe[r+4>>2]|0;if(v[fe[(fe[8>>2]|0)+16>>2]&7](8,r,n)|0){a=fe[n>>2]|0;n=fe[51]|0;a=Rr[fe[(fe[a>>2]|0)+8>>2]&1](a)|0;fe[s>>2]=n;fe[s+4>>2]=e;fe[s+8>>2]=a;l(2282,s)}else{fe[a>>2]=fe[51];fe[a+4>>2]=e;l(2327,a)}}l(2406,o)}function yi(){var e=0;e=ge;ge=ge+16|0;if(!(rt(196,6)|0)){ge=e;return}else l(2179,e)}function bi(e){e=e|0;var t=0;t=ge;ge=ge+16|0;b(e);if(!(ot(fe[49]|0,0)|0)){ge=t;return}else l(2229,t)}function xi(e){e=e|0;var t=0,i=0;t=0;while(1){if((me[2427+t>>0]|0)==(e|0)){i=2;break}t=t+1|0;if((t|0)==87){t=87;e=2515;i=5;break}}if((i|0)==2)if(!t)e=2515;else{e=2515;i=5}if((i|0)==5)while(1){i=e;while(1){e=i+1|0;if(!(de[i>>0]|0))break;else i=e}t=t+-1|0;if(!t)break;else i=5}return e|0}function re(){var e=0;if(!(fe[52]|0))e=264;else{e=(tt()|0)+60|0;e=fe[e>>2]|0}return e|0}function Ti(e){e=e|0;var t=0;if(e>>>0>4294963200){t=re()|0;fe[t>>2]=0-e;e=-1}return e|0}function wi(e,t){e=+e;t=t|0;var i=0,r=0,n=0;ee[te>>3]=e;i=fe[te>>2]|0;r=fe[te+4>>2]|0;n=Ji(i|0,r|0,52)|0;n=n&2047;switch(n|0){case 0:{if(e!=0.0){e=+wi(e*18446744073709552.0e3,t);i=(fe[t>>2]|0)+-64|0}else i=0;fe[t>>2]=i;break}case 2047:break;default:{fe[t>>2]=n+-1022;fe[te>>2]=i;fe[te+4>>2]=r&-2146435073|1071644672;e=+ee[te>>3]}}return+e}function Ei(e,t){e=+e;t=t|0;return+ +wi(e,t)}function Si(e,t,i){e=e|0;t=t|0;i=i|0;do{if(e){if(t>>>0<128){de[e>>0]=t;e=1;break}if(t>>>0<2048){de[e>>0]=t>>>6|192;de[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){de[e>>0]=t>>>12|224;de[e+1>>0]=t>>>6&63|128;de[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){de[e>>0]=t>>>18|240;de[e+1>>0]=t>>>12&63|128;de[e+2>>0]=t>>>6&63|128;de[e+3>>0]=t&63|128;e=4;break}else{e=re()|0;fe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function Ai(e,t){e=e|0;t=t|0;if(!e)e=0;else e=Si(e,t,0)|0;return e|0}function ki(e){e=e|0;var t=0,i=0;do{if(e){if((fe[e+76>>2]|0)<=-1){t=Ui(e)|0;break}i=(Mi(e)|0)==0;t=Ui(e)|0;if(!i)g(e)}else{if(!(fe[65]|0))t=0;else t=ki(fe[65]|0)|0;at(236);e=fe[58]|0;if(e)do{if((fe[e+76>>2]|0)>-1)i=Mi(e)|0;else i=0;if((fe[e+20>>2]|0)>>>0>(fe[e+28>>2]|0)>>>0)t=Ui(e)|0|t;if(i)g(e);e=fe[e+56>>2]|0}while((e|0)!=0);nt(236)}}while(0);return t|0}function Pi(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0;if((fe[t+76>>2]|0)>=0?(Mi(t)|0)!=0:0){if((de[t+75>>0]|0)!=(e|0)?(r=t+20|0,n=fe[r>>2]|0,n>>>0<(fe[t+16>>2]|0)>>>0):0){fe[r>>2]=n+1;de[n>>0]=e;i=e&255}else i=Ii(t,e)|0;g(t)}else o=3;do{if((o|0)==3){if((de[t+75>>0]|0)!=(e|0)?(s=t+20|0,i=fe[s>>2]|0,i>>>0<(fe[t+16>>2]|0)>>>0):0){fe[s>>2]=i+1;de[i>>0]=e;i=e&255;break}i=Ii(t,e)|0}}while(0);return i|0}function ne(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0;r=i+16|0;n=fe[r>>2]|0;if(!n)if(!(zi(i)|0)){n=fe[r>>2]|0;s=4}else r=0;else s=4;e:do{if((s|0)==4){o=i+20|0;s=fe[o>>2]|0;if((n-s|0)>>>0<t>>>0){r=v[fe[i+36>>2]&7](i,e,t)|0;break}t:do{if((de[i+75>>0]|0)>-1){r=t;while(1){if(!r){n=s;r=0;break t}n=r+-1|0;if((de[e+n>>0]|0)==10)break;else r=n}if((v[fe[i+36>>2]&7](i,e,r)|0)>>>0<r>>>0)break e;t=t-r|0;e=e+r|0;n=fe[o>>2]|0}else{n=s;r=0}}while(0);er(n|0,e|0,t|0)|0;fe[o>>2]=(fe[o>>2]|0)+t;r=r+t|0}}while(0);return r|0}function be(e,t){e=e|0;t=t|0;var i=0,r=0;i=ge;ge=ge+16|0;r=i;fe[r>>2]=t;t=Oi(fe[64]|0,e,r)|0;ge=i;return t|0}function xe(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0;r=ge;ge=ge+16|0;n=r;fe[n>>2]=i;i=Ci(e,t,n)|0;ge=r;return i|0}function Oi(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0;m=ge;ge=ge+224|0;c=m+120|0;f=m+80|0;d=m;p=m+136|0;r=f;n=r+40|0;do{fe[r>>2]=0;r=r+4|0}while((r|0)<(n|0));fe[c>>2]=fe[i>>2];if((ji(0,t,c,d,f)|0)<0)i=-1;else{if((fe[e+76>>2]|0)>-1)u=Mi(e)|0;else u=0;i=fe[e>>2]|0;h=i&32;if((de[e+74>>0]|0)<1)fe[e>>2]=i&-33;i=e+48|0;if(!(fe[i>>2]|0)){n=e+44|0;s=fe[n>>2]|0;fe[n>>2]=p;o=e+28|0;fe[o>>2]=p;a=e+20|0;fe[a>>2]=p;fe[i>>2]=80;l=e+16|0;fe[l>>2]=p+80;r=ji(e,t,c,d,f)|0;if(s){v[fe[e+36>>2]&7](e,0,0)|0;r=(fe[a>>2]|0)==0?-1:r;fe[n>>2]=s;fe[i>>2]=0;fe[l>>2]=0;fe[o>>2]=0;fe[a>>2]=0}}else r=ji(e,t,c,d,f)|0;i=fe[e>>2]|0;fe[e>>2]=i|h;if(u)g(e);i=(i&32|0)==0?r:-1}ge=m;return i|0}function Ri(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0,o=0,a=0,l=0,u=0,h=0;h=ge;ge=ge+128|0;n=h+112|0;u=h;s=u;o=268;a=s+112|0;do{fe[s>>2]=fe[o>>2];s=s+4|0;o=o+4|0}while((s|0)<(a|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;l=4}else{t=re()|0;fe[t>>2]=75;t=-1}else{n=e;l=4}if((l|0)==4){l=-2-n|0;l=t>>>0>l>>>0?l:t;fe[u+48>>2]=l;e=u+20|0;fe[e>>2]=n;fe[u+44>>2]=n;t=n+l|0;n=u+16|0;fe[n>>2]=t;fe[u+28>>2]=t;t=Oi(u,i,r)|0;if(l){i=fe[e>>2]|0;de[i+(((i|0)==(fe[n>>2]|0))<<31>>31)>>0]=0}}ge=h;return t|0}function Ci(e,t,i){e=e|0;t=t|0;i=i|0;return Ri(e,2147483647,t,i)|0}function Mi(e){e=e|0;return 0}function g(e){e=e|0}function Ii(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0;l=ge;ge=ge+16|0;a=l;o=t&255;de[a>>0]=o;r=e+16|0;n=fe[r>>2]|0;if(!n)if(!(zi(e)|0)){n=fe[r>>2]|0;s=4}else i=-1;else s=4;do{if((s|0)==4){r=e+20|0;s=fe[r>>2]|0;if(s>>>0<n>>>0?(i=t&255,(i|0)!=(de[e+75>>0]|0)):0){fe[r>>2]=s+1;de[s>>0]=o;break}if((v[fe[e+36>>2]&7](e,a,1)|0)==1)i=me[a>>0]|0;else i=-1}}while(0);ge=l;return i|0}function Di(e){e=e|0;var t=0,i=0;t=ge;ge=ge+16|0;i=t;fe[i>>2]=fe[e+60>>2];e=Ti(Ve(6,i|0)|0)|0;ge=t;return e|0}function Li(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0;n=ge;ge=ge+32|0;s=n;r=n+20|0;fe[s>>2]=fe[e+60>>2];fe[s+4>>2]=0;fe[s+8>>2]=t;fe[s+12>>2]=r;fe[s+16>>2]=i;if((Ti(ht(140,s|0)|0)|0)<0){fe[r>>2]=-1;e=-1}else e=fe[r>>2]|0;ge=n;return e|0}function Fi(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0;f=ge;ge=ge+48|0;c=f+16|0;h=f;r=f+32|0;p=e+28|0;n=fe[p>>2]|0;fe[r>>2]=n;d=e+20|0;n=(fe[d>>2]|0)-n|0;fe[r+4>>2]=n;fe[r+8>>2]=t;fe[r+12>>2]=i;l=e+60|0;u=e+44|0;t=2;n=n+i|0;while(1){if(!(fe[52]|0)){fe[c>>2]=fe[l>>2];fe[c+4>>2]=r;fe[c+8>>2]=t;o=Ti(ct(146,c|0)|0)|0}else{lt(7,e|0);fe[h>>2]=fe[l>>2];fe[h+4>>2]=r;fe[h+8>>2]=t;o=Ti(ct(146,h|0)|0)|0;Ye(0)}if((n|0)==(o|0)){n=6;break}if((o|0)<0){n=8;break}n=n-o|0;s=fe[r+4>>2]|0;if(o>>>0<=s>>>0)if((t|0)==2){fe[p>>2]=(fe[p>>2]|0)+o;a=s;t=2}else a=s;else{a=fe[u>>2]|0;fe[p>>2]=a;fe[d>>2]=a;a=fe[r+12>>2]|0;o=o-s|0;r=r+8|0;t=t+-1|0}fe[r>>2]=(fe[r>>2]|0)+o;fe[r+4>>2]=a-o}if((n|0)==6){c=fe[u>>2]|0;fe[e+16>>2]=c+(fe[e+48>>2]|0);e=c;fe[p>>2]=e;fe[d>>2]=e}else if((n|0)==8){fe[e+16>>2]=0;fe[p>>2]=0;fe[d>>2]=0;fe[e>>2]=fe[e>>2]|32;if((t|0)==2)i=0;else i=i-(fe[r+4>>2]|0)|0}ge=f;return i|0}function Ni(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0;n=ge;ge=ge+80|0;r=n;fe[e+36>>2]=3;if((fe[e>>2]&64|0)==0?(fe[r>>2]=fe[e+60>>2],fe[r+4>>2]=21505,fe[r+8>>2]=n+12,(We(54,r|0)|0)!=0):0)de[e+75>>0]=-1;r=Fi(e,t,i)|0;ge=n;return r|0}function zi(e){e=e|0;var t=0,i=0;t=e+74|0;i=de[t>>0]|0;de[t>>0]=i+255|i;t=fe[e>>2]|0;if(!(t&8)){fe[e+8>>2]=0;fe[e+4>>2]=0;t=fe[e+44>>2]|0;fe[e+28>>2]=t;fe[e+20>>2]=t;fe[e+16>>2]=t+(fe[e+48>>2]|0);t=0}else{fe[e>>2]=t|32;t=-1}return t|0}function Bi(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0;s=t&255;r=(i|0)!=0;e:do{if(r&(e&3|0)!=0){n=t&255;while(1){if((de[e>>0]|0)==n<<24>>24){o=6;break e}e=e+1|0;i=i+-1|0;r=(i|0)!=0;if(!(r&(e&3|0)!=0)){o=5;break}}}else o=5}while(0);if((o|0)==5)if(r)o=6;else i=0;e:do{if((o|0)==6){n=t&255;if((de[e>>0]|0)!=n<<24>>24){r=ve(s,16843009)|0;t:do{if(i>>>0>3)while(1){s=fe[e>>2]^r;if((s&-2139062144^-2139062144)&s+-16843009)break;e=e+4|0;i=i+-4|0;if(i>>>0<=3){o=11;break t}}else o=11}while(0);if((o|0)==11)if(!i){i=0;break}while(1){if((de[e>>0]|0)==n<<24>>24)break e;e=e+1|0;i=i+-1|0;if(!i){i=0;break}}}}}while(0);return((i|0)!=0?e:0)|0}function Ui(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0;t=e+20|0;s=e+28|0;if((fe[t>>2]|0)>>>0>(fe[s>>2]|0)>>>0?(v[fe[e+36>>2]&7](e,0,0)|0,(fe[t>>2]|0)==0):0)t=-1;else{o=e+4|0;i=fe[o>>2]|0;r=e+8|0;n=fe[r>>2]|0;if(i>>>0<n>>>0)v[fe[e+40>>2]&7](e,i-n|0,1)|0;fe[e+16>>2]=0;fe[s>>2]=0;fe[t>>2]=0;fe[r>>2]=0;fe[o>>2]=0;t=0}return t|0}function ji(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0,l=0,u=0.0,h=0,c=0,p=0,d=0,f=0.0,m=0,_=0,g=0,v=0,F=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,P=0,N=0,O=0,z=0,B=0,U=0,R=0,j=0,G=0,X=0,H=0,Y=0,W=0,V=0,q=0,C=0,K=0,M=0,Z=0,I=0,D=0,J=0,Q=0,L=0;L=ge;ge=ge+624|0;Z=L+24|0;D=L+16|0;I=L+588|0;V=L+576|0;M=L;H=L+536|0;Q=L+8|0;J=L+528|0;N=(e|0)!=0;O=H+40|0;X=O;H=H+39|0;Y=Q+4|0;W=V+12|0;V=V+11|0;q=I;C=W;K=C-q|0;z=-2-q|0;B=C+2|0;U=Z+288|0;R=I+9|0;j=R;G=I+8|0;s=0;m=t;o=0;t=0;e:while(1){do{if((s|0)>-1)if((o|0)>(2147483647-s|0)){s=re()|0;fe[s>>2]=75;s=-1;break}else{s=o+s|0;break}}while(0);o=de[m>>0]|0;if(!(o<<24>>24)){P=245;break}else a=m;t:while(1){switch(o<<24>>24){case 37:{o=a;P=9;break t}case 0:{o=a;break t}default:{}}k=a+1|0;o=de[k>>0]|0;a=k}t:do{if((P|0)==9)while(1){P=0;if((de[o+1>>0]|0)!=37)break t;a=a+1|0;o=o+2|0;if((de[o>>0]|0)==37)P=9;else break}}while(0);g=a-m|0;if(N?(fe[e>>2]&32|0)==0:0)ne(m,g,e)|0;if((a|0)!=(m|0)){m=o;o=g;continue}h=o+1|0;a=de[h>>0]|0;l=(a<<24>>24)+-48|0;if(l>>>0<10){k=(de[o+2>>0]|0)==36;h=k?o+3|0:h;a=de[h>>0]|0;d=k?l:-1;t=k?1:t}else d=-1;o=a<<24>>24;t:do{if((o&-32|0)==32){l=0;while(1){if(!(1<<o+-32&75913)){c=l;o=h;break t}l=1<<(a<<24>>24)+-32|l;h=h+1|0;a=de[h>>0]|0;o=a<<24>>24;if((o&-32|0)!=32){c=l;o=h;break}}}else{c=0;o=h}}while(0);do{if(a<<24>>24==42){l=o+1|0;a=(de[l>>0]|0)+-48|0;if(a>>>0<10?(de[o+2>>0]|0)==36:0){fe[n+(a<<2)>>2]=10;t=1;o=o+3|0;a=fe[r+((de[l>>0]|0)+-48<<3)>>2]|0}else{if(t){s=-1;break e}if(!N){_=c;o=l;t=0;k=0;break}t=(fe[i>>2]|0)+(4-1)&~(4-1);a=fe[t>>2]|0;fe[i>>2]=t+4;t=0;o=l}if((a|0)<0){_=c|8192;k=0-a|0}else{_=c;k=a}}else{l=(a<<24>>24)+-48|0;if(l>>>0<10){a=0;do{a=(a*10|0)+l|0;o=o+1|0;l=(de[o>>0]|0)+-48|0}while(l>>>0<10);if((a|0)<0){s=-1;break e}else{_=c;k=a}}else{_=c;k=0}}}while(0);t:do{if((de[o>>0]|0)==46){l=o+1|0;a=de[l>>0]|0;if(a<<24>>24!=42){h=(a<<24>>24)+-48|0;if(h>>>0<10){o=l;a=0}else{o=l;h=0;break}while(1){a=(a*10|0)+h|0;o=o+1|0;h=(de[o>>0]|0)+-48|0;if(h>>>0>=10){h=a;break t}}}l=o+2|0;a=(de[l>>0]|0)+-48|0;if(a>>>0<10?(de[o+3>>0]|0)==36:0){fe[n+(a<<2)>>2]=10;o=o+4|0;h=fe[r+((de[l>>0]|0)+-48<<3)>>2]|0;break}if(t){s=-1;break e}if(N){o=(fe[i>>2]|0)+(4-1)&~(4-1);h=fe[o>>2]|0;fe[i>>2]=o+4;o=l}else{o=l;h=0}}else h=-1}while(0);p=0;while(1){a=(de[o>>0]|0)+-65|0;if(a>>>0>57){s=-1;break e}l=o+1|0;a=de[5359+(p*58|0)+a>>0]|0;c=a&255;if((c+-1|0)>>>0<8){o=l;p=c}else{A=l;break}}if(!(a<<24>>24)){s=-1;break}l=(d|0)>-1;do{if(a<<24>>24==19)if(l){s=-1;break e}else P=52;else{if(l){fe[n+(d<<2)>>2]=c;E=r+(d<<3)|0;S=fe[E+4>>2]|0;P=M;fe[P>>2]=fe[E>>2];fe[P+4>>2]=S;P=52;break}if(!N){s=0;break e}Hi(M,c,i)}}while(0);if((P|0)==52?(P=0,!N):0){m=A;o=g;continue}d=de[o>>0]|0;d=(p|0)!=0&(d&15|0)==3?d&-33:d;l=_&-65537;S=(_&8192|0)==0?_:l;t:do{switch(d|0){case 110:switch(p|0){case 0:{fe[fe[M>>2]>>2]=s;m=A;o=g;continue e}case 1:{fe[fe[M>>2]>>2]=s;m=A;o=g;continue e}case 2:{m=fe[M>>2]|0;fe[m>>2]=s;fe[m+4>>2]=((s|0)<0)<<31>>31;m=A;o=g;continue e}case 3:{$[fe[M>>2]>>1]=s;m=A;o=g;continue e}case 4:{de[fe[M>>2]>>0]=s;m=A;o=g;continue e}case 6:{fe[fe[M>>2]>>2]=s;m=A;o=g;continue e}case 7:{m=fe[M>>2]|0;fe[m>>2]=s;fe[m+4>>2]=((s|0)<0)<<31>>31;m=A;o=g;continue e}default:{m=A;o=g;continue e}}case 112:{p=S|8;h=h>>>0>8?h:8;d=120;P=64;break}case 88:case 120:{p=S;P=64;break}case 111:{l=M;a=fe[l>>2]|0;l=fe[l+4>>2]|0;if((a|0)==0&(l|0)==0)o=O;else{o=O;do{o=o+-1|0;de[o>>0]=a&7|48;a=Ji(a|0,l|0,3)|0;l=ie}while(!((a|0)==0&(l|0)==0))}if(!(S&8)){a=S;p=0;c=5839;P=77}else{p=X-o+1|0;a=S;h=(h|0)<(p|0)?p:h;p=0;c=5839;P=77}break}case 105:case 100:{a=M;o=fe[a>>2]|0;a=fe[a+4>>2]|0;if((a|0)<0){o=ae(0,0,o|0,a|0)|0;a=ie;l=M;fe[l>>2]=o;fe[l+4>>2]=a;l=1;c=5839;P=76;break t}if(!(S&2048)){c=S&1;l=c;c=(c|0)==0?5839:5841;P=76}else{l=1;c=5840;P=76}break}case 117:{a=M;o=fe[a>>2]|0;a=fe[a+4>>2]|0;l=0;c=5839;P=76;break}case 99:{de[H>>0]=fe[M>>2];m=H;a=1;p=0;d=5839;o=O;break}case 109:{o=re()|0;o=xi(fe[o>>2]|0)|0;P=82;break}case 115:{o=fe[M>>2]|0;o=(o|0)!=0?o:5849;P=82;break}case 67:{fe[Q>>2]=fe[M>>2];fe[Y>>2]=0;fe[M>>2]=Q;h=-1;P=86;break}case 83:{if(!h){oe(e,32,k,0,S);o=0;P=98}else P=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{u=+ee[M>>3];fe[D>>2]=0;ee[te>>3]=u;if((fe[te+4>>2]|0)>=0)if(!(S&2048)){E=S&1;w=E;E=(E|0)==0?5857:5862}else{w=1;E=5859}else{u=-u;w=1;E=5856}ee[te>>3]=u;T=fe[te+4>>2]&2146435072;do{if(T>>>0<2146435072|(T|0)==2146435072&0<0){f=+Ei(u,D)*2.0;a=f!=0.0;if(a)fe[D>>2]=(fe[D>>2]|0)+-1;b=d|32;if((b|0)==97){m=d&32;g=(m|0)==0?E:E+9|0;_=w|2;o=12-h|0;do{if(!(h>>>0>11|(o|0)==0)){u=8.0;do{o=o+-1|0;u=u*16.0}while((o|0)!=0);if((de[g>>0]|0)==45){u=-(u+(-f-u));break}else{u=f+u-u;break}}else u=f}while(0);a=fe[D>>2]|0;o=(a|0)<0?0-a|0:a;o=se(o,((o|0)<0)<<31>>31,W)|0;if((o|0)==(W|0)){de[V>>0]=48;o=V}de[o+-1>>0]=(a>>31&2)+43;p=o+-2|0;de[p>>0]=d+15;c=(h|0)<1;l=(S&8|0)==0;a=I;while(1){E=~~u;o=a+1|0;de[a>>0]=me[5823+E>>0]|m;u=(u-+(E|0))*16.0;do{if((o-q|0)==1){if(l&(c&u==0.0))break;de[o>>0]=46;o=a+2|0}}while(0);if(!(u!=0.0))break;else a=o}h=(h|0)!=0&(z+o|0)<(h|0)?B+h-p|0:K-p+o|0;l=h+_|0;oe(e,32,k,l,S);if(!(fe[e>>2]&32))ne(g,_,e)|0;oe(e,48,k,l,S^65536);o=o-q|0;if(!(fe[e>>2]&32))ne(I,o,e)|0;a=C-p|0;oe(e,48,h-(o+a)|0,0,0);if(!(fe[e>>2]&32))ne(p,a,e)|0;oe(e,32,k,l,S^8192);o=(l|0)<(k|0)?k:l;break}o=(h|0)<0?6:h;if(a){a=(fe[D>>2]|0)+-28|0;fe[D>>2]=a;u=f*268435456.0}else{u=f;a=fe[D>>2]|0}T=(a|0)<0?Z:U;x=T;a=T;do{y=~~u>>>0;fe[a>>2]=y;a=a+4|0;u=(u-+(y>>>0))*1.0e9}while(u!=0.0);l=a;a=fe[D>>2]|0;if((a|0)>0){c=T;while(1){p=(a|0)>29?29:a;h=l+-4|0;do{if(h>>>0<c>>>0)h=c;else{a=0;do{y=Qi(fe[h>>2]|0,0,p|0)|0;y=$i(y|0,ie|0,a|0,0)|0;a=ie;F=lr(y|0,a|0,1e9,0)|0;fe[h>>2]=F;a=ar(y|0,a|0,1e9,0)|0;h=h+-4|0}while(h>>>0>=c>>>0);if(!a){h=c;break}h=c+-4|0;fe[h>>2]=a}}while(0);while(1){if(l>>>0<=h>>>0)break;a=l+-4|0;if(!(fe[a>>2]|0))l=a;else break}a=(fe[D>>2]|0)-p|0;fe[D>>2]=a;if((a|0)>0)c=h;else break}}else h=T;if((a|0)<0){g=((o+25|0)/9|0)+1|0;v=(b|0)==102;m=h;while(1){_=0-a|0;_=(_|0)>9?9:_;do{if(m>>>0<l>>>0){a=(1<<_)+-1|0;c=1e9>>>_;h=0;p=m;do{y=fe[p>>2]|0;fe[p>>2]=(y>>>_)+h;h=ve(y&a,c)|0;p=p+4|0}while(p>>>0<l>>>0);a=(fe[m>>2]|0)==0?m+4|0:m;if(!h){h=a;break}fe[l>>2]=h;h=a;l=l+4|0}else h=(fe[m>>2]|0)==0?m+4|0:m}while(0);a=v?T:h;l=(l-a>>2|0)>(g|0)?a+(g<<2)|0:l;a=(fe[D>>2]|0)+_|0;fe[D>>2]=a;if((a|0)>=0){m=h;break}else m=h}}else m=h;do{if(m>>>0<l>>>0){a=(x-m>>2)*9|0;c=fe[m>>2]|0;if(c>>>0<10)break;else h=10;do{h=h*10|0;a=a+1|0}while(c>>>0>=h>>>0)}else a=0}while(0);F=(b|0)==103;y=(o|0)!=0;h=o-((b|0)!=102?a:0)+((y&F)<<31>>31)|0;if((h|0)<(((l-x>>2)*9|0)+-9|0)){p=h+9216|0;v=(p|0)/9|0;h=T+(v+-1023<<2)|0;p=((p|0)%9|0)+1|0;if((p|0)<9){c=10;do{c=c*10|0;p=p+1|0}while((p|0)!=9)}else c=10;_=fe[h>>2]|0;g=(_>>>0)%(c>>>0)|0;if((g|0)==0?(T+(v+-1022<<2)|0)==(l|0):0)c=m;else P=163;do{if((P|0)==163){P=0;f=(((_>>>0)/(c>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;p=(c|0)/2|0;do{if(g>>>0<p>>>0)u=.5;else{if((g|0)==(p|0)?(T+(v+-1022<<2)|0)==(l|0):0){u=1.0;break}u=1.5}}while(0);do{if(w){if((de[E>>0]|0)!=45)break;f=-f;u=-u}}while(0);p=_-g|0;fe[h>>2]=p;if(!(f+u!=f)){c=m;break}b=p+c|0;fe[h>>2]=b;if(b>>>0>999999999){a=m;while(1){c=h+-4|0;fe[h>>2]=0;if(c>>>0<a>>>0){a=a+-4|0;fe[a>>2]=0}b=(fe[c>>2]|0)+1|0;fe[c>>2]=b;if(b>>>0>999999999)h=c;else{m=a;h=c;break}}}a=(x-m>>2)*9|0;p=fe[m>>2]|0;if(p>>>0<10){c=m;break}else c=10;do{c=c*10|0;a=a+1|0}while(p>>>0>=c>>>0);c=m}}while(0);b=h+4|0;m=c;l=l>>>0>b>>>0?b:l}g=0-a|0;while(1){if(l>>>0<=m>>>0){v=0;b=l;break}h=l+-4|0;if(!(fe[h>>2]|0))l=h;else{v=1;b=l;break}}do{if(F){o=(y&1^1)+o|0;if((o|0)>(a|0)&(a|0)>-5){d=d+-1|0;o=o+-1-a|0}else{d=d+-2|0;o=o+-1|0}l=S&8;if(l)break;do{if(v){l=fe[b+-4>>2]|0;if(!l){h=9;break}if(!((l>>>0)%10|0)){c=10;h=0}else{h=0;break}do{c=c*10|0;h=h+1|0}while(((l>>>0)%(c>>>0)|0|0)==0)}else h=9}while(0);l=((b-x>>2)*9|0)+-9|0;if((d|32|0)==102){l=l-h|0;l=(l|0)<0?0:l;o=(o|0)<(l|0)?o:l;l=0;break}else{l=l+a-h|0;l=(l|0)<0?0:l;o=(o|0)<(l|0)?o:l;l=0;break}}else l=S&8}while(0);_=o|l;c=(_|0)!=0&1;p=(d|32|0)==102;if(p){a=(a|0)>0?a:0;d=0}else{h=(a|0)<0?g:a;h=se(h,((h|0)<0)<<31>>31,W)|0;if((C-h|0)<2)do{h=h+-1|0;de[h>>0]=48}while((C-h|0)<2);de[h+-1>>0]=(a>>31&2)+43;x=h+-2|0;de[x>>0]=d;a=C-x|0;d=x}g=w+1+o+c+a|0;oe(e,32,k,g,S);if(!(fe[e>>2]&32))ne(E,w,e)|0;oe(e,48,k,g,S^65536);do{if(p){h=m>>>0>T>>>0?T:m;a=h;do{l=se(fe[a>>2]|0,0,R)|0;do{if((a|0)==(h|0)){if((l|0)!=(R|0))break;de[G>>0]=48;l=G}else{if(l>>>0<=I>>>0)break;do{l=l+-1|0;de[l>>0]=48}while(l>>>0>I>>>0)}}while(0);if(!(fe[e>>2]&32))ne(l,j-l|0,e)|0;a=a+4|0}while(a>>>0<=T>>>0);do{if(_){if(fe[e>>2]&32)break;ne(5891,1,e)|0}}while(0);if((o|0)>0&a>>>0<b>>>0){l=a;while(1){a=se(fe[l>>2]|0,0,R)|0;if(a>>>0>I>>>0)do{a=a+-1|0;de[a>>0]=48}while(a>>>0>I>>>0);if(!(fe[e>>2]&32))ne(a,(o|0)>9?9:o,e)|0;l=l+4|0;a=o+-9|0;if(!((o|0)>9&l>>>0<b>>>0)){o=a;break}else o=a}}oe(e,48,o+9|0,9,0)}else{p=v?b:m+4|0;if((o|0)>-1){c=(l|0)==0;h=m;do{a=se(fe[h>>2]|0,0,R)|0;if((a|0)==(R|0)){de[G>>0]=48;a=G}do{if((h|0)==(m|0)){l=a+1|0;if(!(fe[e>>2]&32))ne(a,1,e)|0;if(c&(o|0)<1){a=l;break}if(fe[e>>2]&32){a=l;break}ne(5891,1,e)|0;a=l}else{if(a>>>0<=I>>>0)break;do{a=a+-1|0;de[a>>0]=48}while(a>>>0>I>>>0)}}while(0);l=j-a|0;if(!(fe[e>>2]&32))ne(a,(o|0)>(l|0)?l:o,e)|0;o=o-l|0;h=h+4|0}while(h>>>0<p>>>0&(o|0)>-1)}oe(e,48,o+18|0,18,0);if(fe[e>>2]&32)break;ne(d,C-d|0,e)|0}}while(0);oe(e,32,k,g,S^8192);o=(g|0)<(k|0)?k:g}else{p=(d&32|0)!=0;c=u!=u|0.0!=0.0;a=c?0:w;h=a+3|0;oe(e,32,k,h,l);o=fe[e>>2]|0;if(!(o&32)){ne(E,a,e)|0;o=fe[e>>2]|0}if(!(o&32))ne(c?p?5883:5887:p?5875:5879,3,e)|0;oe(e,32,k,h,S^8192);o=(h|0)<(k|0)?k:h}}while(0);m=A;continue e}default:{l=S;a=h;p=0;d=5839;o=O}}}while(0);t:do{if((P|0)==64){l=M;a=fe[l>>2]|0;l=fe[l+4>>2]|0;c=d&32;if(!((a|0)==0&(l|0)==0)){o=O;do{o=o+-1|0;de[o>>0]=me[5823+(a&15)>>0]|c;a=Ji(a|0,l|0,4)|0;l=ie}while(!((a|0)==0&(l|0)==0));P=M;if((p&8|0)==0|(fe[P>>2]|0)==0&(fe[P+4>>2]|0)==0){a=p;p=0;c=5839;P=77}else{a=p;p=2;c=5839+(d>>4)|0;P=77}}else{o=O;a=p;p=0;c=5839;P=77}}else if((P|0)==76){o=se(o,a,O)|0;a=S;p=l;P=77}else if((P|0)==82){P=0;S=Bi(o,0,h)|0;E=(S|0)==0;m=o;a=E?h:S-o|0;p=0;d=5839;o=E?o+h|0:S}else if((P|0)==86){P=0;a=0;o=0;c=fe[M>>2]|0;while(1){l=fe[c>>2]|0;if(!l)break;o=Ai(J,l)|0;if((o|0)<0|o>>>0>(h-a|0)>>>0)break;a=o+a|0;if(h>>>0>a>>>0)c=c+4|0;else break}if((o|0)<0){s=-1;break e}oe(e,32,k,a,S);if(!a){o=0;P=98}else{l=0;h=fe[M>>2]|0;while(1){o=fe[h>>2]|0;if(!o){o=a;P=98;break t}o=Ai(J,o)|0;l=o+l|0;if((l|0)>(a|0)){o=a;P=98;break t}if(!(fe[e>>2]&32))ne(J,o,e)|0;if(l>>>0>=a>>>0){o=a;P=98;break}else h=h+4|0}}}}while(0);if((P|0)==98){P=0;oe(e,32,k,o,S^8192);m=A;o=(k|0)>(o|0)?k:o;continue}if((P|0)==77){P=0;l=(h|0)>-1?a&-65537:a;a=M;a=(fe[a>>2]|0)!=0|(fe[a+4>>2]|0)!=0;if((h|0)!=0|a){a=(a&1^1)+(X-o)|0;m=o;a=(h|0)>(a|0)?h:a;d=c;o=O}else{m=O;a=0;d=c;o=O}}c=o-m|0;a=(a|0)<(c|0)?c:a;h=p+a|0;o=(k|0)<(h|0)?h:k;oe(e,32,o,h,l);if(!(fe[e>>2]&32))ne(d,p,e)|0;oe(e,48,o,h,l^65536);oe(e,48,a,c,0);if(!(fe[e>>2]&32))ne(m,c,e)|0;oe(e,32,o,h,l^8192);m=A}e:do{if((P|0)==245)if(!e)if(t){s=1;while(1){t=fe[n+(s<<2)>>2]|0;if(!t)break;Hi(r+(s<<3)|0,t,i);s=s+1|0;if((s|0)>=10){s=1;break e}}if((s|0)<10)while(1){if(fe[n+(s<<2)>>2]|0){s=-1;break e}s=s+1|0;if((s|0)>=10){s=1;break}}else s=1}else s=0}while(0);ge=L;return s|0}function Gi(e){e=e|0;if(!(fe[e+68>>2]|0))g(e);return}function Xi(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0;r=e+20|0;n=fe[r>>2]|0;e=(fe[e+16>>2]|0)-n|0;e=e>>>0>i>>>0?i:e;er(n|0,t|0,e|0)|0;fe[r>>2]=(fe[r>>2]|0)+e;return i|0}function Hi(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{r=(fe[i>>2]|0)+(4-1)&~(4-1);t=fe[r>>2]|0;fe[i>>2]=r+4;fe[e>>2]=t;break e}case 10:{r=(fe[i>>2]|0)+(4-1)&~(4-1);t=fe[r>>2]|0;fe[i>>2]=r+4;r=e;fe[r>>2]=t;fe[r+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{r=(fe[i>>2]|0)+(4-1)&~(4-1);t=fe[r>>2]|0;fe[i>>2]=r+4;r=e;fe[r>>2]=t;fe[r+4>>2]=0;break e}case 12:{r=(fe[i>>2]|0)+(8-1)&~(8-1);t=r;n=fe[t>>2]|0;t=fe[t+4>>2]|0;fe[i>>2]=r+8;r=e;fe[r>>2]=n;fe[r+4>>2]=t;break e}case 13:{n=(fe[i>>2]|0)+(4-1)&~(4-1);r=fe[n>>2]|0;fe[i>>2]=n+4;r=(r&65535)<<16>>16;n=e;fe[n>>2]=r;fe[n+4>>2]=((r|0)<0)<<31>>31;break e}case 14:{n=(fe[i>>2]|0)+(4-1)&~(4-1);r=fe[n>>2]|0;fe[i>>2]=n+4;n=e;fe[n>>2]=r&65535;fe[n+4>>2]=0;break e}case 15:{n=(fe[i>>2]|0)+(4-1)&~(4-1);r=fe[n>>2]|0;fe[i>>2]=n+4;r=(r&255)<<24>>24;n=e;fe[n>>2]=r;fe[n+4>>2]=((r|0)<0)<<31>>31;break e}case 16:{n=(fe[i>>2]|0)+(4-1)&~(4-1);r=fe[n>>2]|0;fe[i>>2]=n+4;n=e;fe[n>>2]=r&255;fe[n+4>>2]=0;break e}case 17:{n=(fe[i>>2]|0)+(8-1)&~(8-1);s=+ee[n>>3];fe[i>>2]=n+8;ee[e>>3]=s;break e}case 18:{n=(fe[i>>2]|0)+(8-1)&~(8-1);s=+ee[n>>3];fe[i>>2]=n+8;ee[e>>3]=s;break e}default:break e}}while(0)}while(0)}function se(e,t,i){e=e|0;t=t|0;i=i|0;var r=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295)while(1){r=lr(e|0,t|0,10,0)|0;i=i+-1|0;de[i>>0]=r|48;r=ar(e|0,t|0,10,0)|0;if(t>>>0>9|(t|0)==9&e>>>0>4294967295){e=r;t=ie}else{e=r;break}}if(e)while(1){i=i+-1|0;de[i>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return i|0}function oe(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0;a=ge;ge=ge+256|0;o=a;do{if((i|0)>(r|0)&(n&73728|0)==0){n=i-r|0;G(o|0,t|0,(n>>>0>256?256:n)|0)|0;t=fe[e>>2]|0;s=(t&32|0)==0;if(n>>>0>255){r=i-r|0;do{if(s){ne(o,256,e)|0;t=fe[e>>2]|0}n=n+-256|0;s=(t&32|0)==0}while(n>>>0>255);if(s)n=r&255;else break}else if(!s)break;ne(o,n,e)|0}}while(0);ge=a}function Yi(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0,b=0,x=0,T=0,w=0,E=0,S=0,A=0,k=0,F=0,N=0,P=0,O=0,R=0,C=0,M=0,I=0,D=0,L=0;do{if(e>>>0<245){d=e>>>0<11?16:e+11&-8;e=d>>>3;a=fe[151]|0;i=a>>>e;if(i&3){e=(i&1^1)+e|0;r=e<<1;i=644+(r<<2)|0;r=644+(r+2<<2)|0;n=fe[r>>2]|0;s=n+8|0;o=fe[s>>2]|0;do{if((i|0)!=(o|0)){if(o>>>0<(fe[155]|0)>>>0)B();t=o+12|0;if((fe[t>>2]|0)==(n|0)){fe[t>>2]=i;fe[r>>2]=o;break}else B()}else fe[151]=a&~(1<<e)}while(0);L=e<<3;fe[n+4>>2]=L|3;L=n+(L|4)|0;fe[L>>2]=fe[L>>2]|1;L=s;return L|0}o=fe[153]|0;if(d>>>0>o>>>0){if(i){r=2<<e;r=i<<e&(r|0-r);r=(r&0-r)+-1|0;l=r>>>12&16;r=r>>>l;n=r>>>5&8;r=r>>>n;s=r>>>2&4;r=r>>>s;i=r>>>1&2;r=r>>>i;e=r>>>1&1;e=(n|l|s|i|e)+(r>>>e)|0;r=e<<1;i=644+(r<<2)|0;r=644+(r+2<<2)|0;s=fe[r>>2]|0;l=s+8|0;n=fe[l>>2]|0;do{if((i|0)!=(n|0)){if(n>>>0<(fe[155]|0)>>>0)B();t=n+12|0;if((fe[t>>2]|0)==(s|0)){fe[t>>2]=i;fe[r>>2]=n;u=fe[153]|0;break}else B()}else{fe[151]=a&~(1<<e);u=o}}while(0);L=e<<3;o=L-d|0;fe[s+4>>2]=d|3;a=s+d|0;fe[s+(d|4)>>2]=o|1;fe[s+L>>2]=o;if(u){n=fe[156]|0;i=u>>>3;t=i<<1;r=644+(t<<2)|0;e=fe[151]|0;i=1<<i;if(e&i){e=644+(t+2<<2)|0;t=fe[e>>2]|0;if(t>>>0<(fe[155]|0)>>>0)B();else{h=e;c=t}}else{fe[151]=e|i;h=644+(t+2<<2)|0;c=r}fe[h>>2]=n;fe[c+12>>2]=n;fe[n+8>>2]=c;fe[n+12>>2]=r}fe[153]=o;fe[156]=a;L=l;return L|0}e=fe[152]|0;if(e){i=(e&0-e)+-1|0;D=i>>>12&16;i=i>>>D;I=i>>>5&8;i=i>>>I;L=i>>>2&4;i=i>>>L;e=i>>>1&2;i=i>>>e;r=i>>>1&1;r=fe[908+((I|D|L|e|r)+(i>>>r)<<2)>>2]|0;i=(fe[r+4>>2]&-8)-d|0;e=r;while(1){t=fe[e+16>>2]|0;if(!t){t=fe[e+20>>2]|0;if(!t){l=i;break}}e=(fe[t+4>>2]&-8)-d|0;L=e>>>0<i>>>0;i=L?e:i;e=t;r=L?t:r}s=fe[155]|0;if(r>>>0<s>>>0)B();a=r+d|0;if(r>>>0>=a>>>0)B();o=fe[r+24>>2]|0;i=fe[r+12>>2]|0;do{if((i|0)==(r|0)){e=r+20|0;t=fe[e>>2]|0;if(!t){e=r+16|0;t=fe[e>>2]|0;if(!t){p=0;break}}while(1){i=t+20|0;n=fe[i>>2]|0;if(n){t=n;e=i;continue}i=t+16|0;n=fe[i>>2]|0;if(!n)break;else{t=n;e=i}}if(e>>>0<s>>>0)B();else{fe[e>>2]=0;p=t;break}}else{n=fe[r+8>>2]|0;if(n>>>0<s>>>0)B();t=n+12|0;if((fe[t>>2]|0)!=(r|0))B();e=i+8|0;if((fe[e>>2]|0)==(r|0)){fe[t>>2]=i;fe[e>>2]=n;p=i;break}else B()}}while(0);do{if(o){t=fe[r+28>>2]|0;e=908+(t<<2)|0;if((r|0)==(fe[e>>2]|0)){fe[e>>2]=p;if(!p){fe[152]=fe[152]&~(1<<t);break}}else{if(o>>>0<(fe[155]|0)>>>0)B();t=o+16|0;if((fe[t>>2]|0)==(r|0))fe[t>>2]=p;else fe[o+20>>2]=p;if(!p)break}e=fe[155]|0;if(p>>>0<e>>>0)B();fe[p+24>>2]=o;t=fe[r+16>>2]|0;do{if(t)if(t>>>0<e>>>0)B();else{fe[p+16>>2]=t;fe[t+24>>2]=p;break}}while(0);t=fe[r+20>>2]|0;if(t)if(t>>>0<(fe[155]|0)>>>0)B();else{fe[p+20>>2]=t;fe[t+24>>2]=p;break}}}while(0);if(l>>>0<16){L=l+d|0;fe[r+4>>2]=L|3;L=r+(L+4)|0;fe[L>>2]=fe[L>>2]|1}else{fe[r+4>>2]=d|3;fe[r+(d|4)>>2]=l|1;fe[r+(l+d)>>2]=l;t=fe[153]|0;if(t){s=fe[156]|0;i=t>>>3;t=i<<1;n=644+(t<<2)|0;e=fe[151]|0;i=1<<i;if(e&i){t=644+(t+2<<2)|0;e=fe[t>>2]|0;if(e>>>0<(fe[155]|0)>>>0)B();else{f=t;m=e}}else{fe[151]=e|i;f=644+(t+2<<2)|0;m=n}fe[f>>2]=s;fe[m+12>>2]=s;fe[s+8>>2]=m;fe[s+12>>2]=n}fe[153]=l;fe[156]=a}L=r+8|0;return L|0}else m=d}else m=d}else if(e>>>0<=4294967231){e=e+11|0;c=e&-8;h=fe[152]|0;if(h){i=0-c|0;e=e>>>8;if(e)if(c>>>0>16777215)u=31;else{m=(e+1048320|0)>>>16&8;b=e<<m;f=(b+520192|0)>>>16&4;b=b<<f;u=(b+245760|0)>>>16&2;u=14-(f|m|u)+(b<<u>>>15)|0;u=c>>>(u+7|0)&1|u<<1}else u=0;e=fe[908+(u<<2)>>2]|0;e:do{if(!e){n=0;e=0;b=86}else{o=i;n=0;a=c<<((u|0)==31?0:25-(u>>>1)|0);l=e;e=0;while(1){s=fe[l+4>>2]&-8;i=s-c|0;if(i>>>0<o>>>0)if((s|0)==(c|0)){s=l;e=l;b=90;break e}else e=l;else i=o;b=fe[l+20>>2]|0;l=fe[l+16+(a>>>31<<2)>>2]|0;n=(b|0)==0|(b|0)==(l|0)?n:b;if(!l){b=86;break}else{o=i;a=a<<1}}}}while(0);if((b|0)==86){if((n|0)==0&(e|0)==0){e=2<<u;e=h&(e|0-e);if(!e){m=c;break}e=(e&0-e)+-1|0;p=e>>>12&16;e=e>>>p;h=e>>>5&8;e=e>>>h;f=e>>>2&4;e=e>>>f;m=e>>>1&2;e=e>>>m;n=e>>>1&1;n=fe[908+((h|p|f|m|n)+(e>>>n)<<2)>>2]|0;e=0}if(!n){a=i;l=e}else{s=n;b=90}}if((b|0)==90)while(1){b=0;m=(fe[s+4>>2]&-8)-c|0;n=m>>>0<i>>>0;i=n?m:i;e=n?s:e;n=fe[s+16>>2]|0;if(n){s=n;b=90;continue}s=fe[s+20>>2]|0;if(!s){a=i;l=e;break}else b=90}if((l|0)!=0?a>>>0<((fe[153]|0)-c|0)>>>0:0){n=fe[155]|0;if(l>>>0<n>>>0)B();o=l+c|0;if(l>>>0>=o>>>0)B();s=fe[l+24>>2]|0;i=fe[l+12>>2]|0;do{if((i|0)==(l|0)){e=l+20|0;t=fe[e>>2]|0;if(!t){e=l+16|0;t=fe[e>>2]|0;if(!t){d=0;break}}while(1){i=t+20|0;r=fe[i>>2]|0;if(r){t=r;e=i;continue}i=t+16|0;r=fe[i>>2]|0;if(!r)break;else{t=r;e=i}}if(e>>>0<n>>>0)B();else{fe[e>>2]=0;d=t;break}}else{r=fe[l+8>>2]|0;if(r>>>0<n>>>0)B();t=r+12|0;if((fe[t>>2]|0)!=(l|0))B();e=i+8|0;if((fe[e>>2]|0)==(l|0)){fe[t>>2]=i;fe[e>>2]=r;d=i;break}else B()}}while(0);do{if(s){t=fe[l+28>>2]|0;e=908+(t<<2)|0;if((l|0)==(fe[e>>2]|0)){fe[e>>2]=d;if(!d){fe[152]=fe[152]&~(1<<t);break}}else{if(s>>>0<(fe[155]|0)>>>0)B();t=s+16|0;if((fe[t>>2]|0)==(l|0))fe[t>>2]=d;else fe[s+20>>2]=d;if(!d)break}e=fe[155]|0;if(d>>>0<e>>>0)B();fe[d+24>>2]=s;t=fe[l+16>>2]|0;do{if(t)if(t>>>0<e>>>0)B();else{fe[d+16>>2]=t;fe[t+24>>2]=d;break}}while(0);t=fe[l+20>>2]|0;if(t)if(t>>>0<(fe[155]|0)>>>0)B();else{fe[d+20>>2]=t;fe[t+24>>2]=d;break}}}while(0);e:do{if(a>>>0>=16){fe[l+4>>2]=c|3;fe[l+(c|4)>>2]=a|1;fe[l+(a+c)>>2]=a;t=a>>>3;if(a>>>0<256){e=t<<1;r=644+(e<<2)|0;i=fe[151]|0;t=1<<t;if(i&t){t=644+(e+2<<2)|0;e=fe[t>>2]|0;if(e>>>0<(fe[155]|0)>>>0)B();else{g=t;v=e}}else{fe[151]=i|t;g=644+(e+2<<2)|0;v=r}fe[g>>2]=o;fe[v+12>>2]=o;fe[l+(c+8)>>2]=v;fe[l+(c+12)>>2]=r;break}t=a>>>8;if(t)if(a>>>0>16777215)r=31;else{D=(t+1048320|0)>>>16&8;L=t<<D;I=(L+520192|0)>>>16&4;L=L<<I;r=(L+245760|0)>>>16&2;r=14-(I|D|r)+(L<<r>>>15)|0;r=a>>>(r+7|0)&1|r<<1}else r=0;t=908+(r<<2)|0;fe[l+(c+28)>>2]=r;fe[l+(c+20)>>2]=0;fe[l+(c+16)>>2]=0;e=fe[152]|0;i=1<<r;if(!(e&i)){fe[152]=e|i;fe[t>>2]=o;fe[l+(c+24)>>2]=t;fe[l+(c+12)>>2]=o;fe[l+(c+8)>>2]=o;break}t=fe[t>>2]|0;t:do{if((fe[t+4>>2]&-8|0)!=(a|0)){r=a<<((r|0)==31?0:25-(r>>>1)|0);while(1){e=t+16+(r>>>31<<2)|0;i=fe[e>>2]|0;if(!i)break;if((fe[i+4>>2]&-8|0)==(a|0)){w=i;break t}else{r=r<<1;t=i}}if(e>>>0<(fe[155]|0)>>>0)B();else{fe[e>>2]=o;fe[l+(c+24)>>2]=t;fe[l+(c+12)>>2]=o;fe[l+(c+8)>>2]=o;break e}}else w=t}while(0);t=w+8|0;e=fe[t>>2]|0;L=fe[155]|0;if(e>>>0>=L>>>0&w>>>0>=L>>>0){fe[e+12>>2]=o;fe[t>>2]=o;fe[l+(c+8)>>2]=e;fe[l+(c+12)>>2]=w;fe[l+(c+24)>>2]=0;break}else B()}else{L=a+c|0;fe[l+4>>2]=L|3;L=l+(L+4)|0;fe[L>>2]=fe[L>>2]|1}}while(0);L=l+8|0;return L|0}else m=c}else m=c}else m=-1}while(0);i=fe[153]|0;if(i>>>0>=m>>>0){t=i-m|0;e=fe[156]|0;if(t>>>0>15){fe[156]=e+m;fe[153]=t;fe[e+(m+4)>>2]=t|1;fe[e+i>>2]=t;fe[e+4>>2]=m|3}else{fe[153]=0;fe[156]=0;fe[e+4>>2]=i|3;L=e+(i+4)|0;fe[L>>2]=fe[L>>2]|1}L=e+8|0;return L|0}e=fe[154]|0;if(e>>>0>m>>>0){D=e-m|0;fe[154]=D;L=fe[157]|0;fe[157]=L+m;fe[L+(m+4)>>2]=D|1;fe[L+4>>2]=m|3;L=L+8|0;return L|0}do{if(!(fe[269]|0)){e=$e(30)|0;if(!(e+-1&e)){fe[271]=e;fe[270]=e;fe[272]=-1;fe[273]=-1;fe[274]=0;fe[262]=0;w=(ut(0)|0)&-16^1431655768;fe[269]=w;break}else B()}}while(0);l=m+48|0;a=fe[271]|0;u=m+47|0;o=a+u|0;a=0-a|0;h=o&a;if(h>>>0<=m>>>0){L=0;return L|0}e=fe[261]|0;if((e|0)!=0?(v=fe[259]|0,w=v+h|0,w>>>0<=v>>>0|w>>>0>e>>>0):0){L=0;return L|0}e:do{if(!(fe[262]&4)){e=fe[157]|0;t:do{if(e){n=1052;while(1){i=fe[n>>2]|0;if(i>>>0<=e>>>0?(_=n+4|0,(i+(fe[_>>2]|0)|0)>>>0>e>>>0):0){s=n;e=_;break}n=fe[n+8>>2]|0;if(!n){b=174;break t}}i=o-(fe[154]|0)&a;if(i>>>0<2147483647){n=z(i|0)|0;w=(n|0)==((fe[s>>2]|0)+(fe[e>>2]|0)|0);e=w?i:0;if(w){if((n|0)!=(-1|0)){x=n;f=e;b=194;break e}}else b=184}else e=0}else b=174}while(0);do{if((b|0)==174){s=z(0)|0;if((s|0)!=(-1|0)){e=s;i=fe[270]|0;n=i+-1|0;if(!(n&e))i=h;else i=h-e+(n+e&0-i)|0;e=fe[259]|0;n=e+i|0;if(i>>>0>m>>>0&i>>>0<2147483647){w=fe[261]|0;if((w|0)!=0?n>>>0<=e>>>0|n>>>0>w>>>0:0){e=0;break}n=z(i|0)|0;w=(n|0)==(s|0);e=w?i:0;if(w){x=s;f=e;b=194;break e}else b=184}else e=0}else e=0}}while(0);t:do{if((b|0)==184){s=0-i|0;do{if(l>>>0>i>>>0&(i>>>0<2147483647&(n|0)!=(-1|0))?(y=fe[271]|0,y=u-i+y&0-y,y>>>0<2147483647):0)if((z(y|0)|0)==(-1|0)){z(s|0)|0;break t}else{i=y+i|0;break}}while(0);if((n|0)!=(-1|0)){x=n;f=i;b=194;break e}}}while(0);fe[262]=fe[262]|4;b=191}else{e=0;b=191}}while(0);if((((b|0)==191?h>>>0<2147483647:0)?(x=z(h|0)|0,T=z(0)|0,x>>>0<T>>>0&((x|0)!=(-1|0)&(T|0)!=(-1|0))):0)?(E=T-x|0,S=E>>>0>(m+40|0)>>>0,S):0){f=S?E:e;b=194}if((b|0)==194){e=(fe[259]|0)+f|0;fe[259]=e;if(e>>>0>(fe[260]|0)>>>0)fe[260]=e;o=fe[157]|0;e:do{if(o){s=1052;do{e=fe[s>>2]|0;i=s+4|0;n=fe[i>>2]|0;if((x|0)==(e+n|0)){A=e;k=i;F=n;N=s;b=204;break}s=fe[s+8>>2]|0}while((s|0)!=0);if(((b|0)==204?(fe[N+12>>2]&8|0)==0:0)?o>>>0<x>>>0&o>>>0>=A>>>0:0){fe[k>>2]=F+f;L=(fe[154]|0)+f|0;D=o+8|0;D=(D&7|0)==0?0:0-D&7;I=L-D|0;fe[157]=o+D;fe[154]=I;fe[o+(D+4)>>2]=I|1;fe[o+(L+4)>>2]=40;fe[158]=fe[273];break}e=fe[155]|0;if(x>>>0<e>>>0){fe[155]=x;e=x}i=x+f|0;s=1052;while(1){if((fe[s>>2]|0)==(i|0)){n=s;i=s;b=212;break}s=fe[s+8>>2]|0;if(!s){i=1052;break}}if((b|0)==212)if(!(fe[i+12>>2]&8)){fe[n>>2]=x;p=i+4|0;fe[p>>2]=(fe[p>>2]|0)+f;p=x+8|0;p=(p&7|0)==0?0:0-p&7;u=x+(f+8)|0;u=(u&7|0)==0?0:0-u&7;t=x+(u+f)|0;c=p+m|0;d=x+c|0;h=t-(x+p)-m|0;fe[x+(p+4)>>2]=m|3;t:do{if((t|0)!=(o|0)){if((t|0)==(fe[156]|0)){L=(fe[153]|0)+h|0;fe[153]=L;fe[156]=d;fe[x+(c+4)>>2]=L|1;fe[x+(L+c)>>2]=L;break}a=f+4|0;i=fe[x+(a+u)>>2]|0;if((i&3|0)==1){l=i&-8;s=i>>>3;i:do{if(i>>>0>=256){o=fe[x+((u|24)+f)>>2]|0;r=fe[x+(f+12+u)>>2]|0;do{if((r|0)==(t|0)){n=u|16;r=x+(a+n)|0;i=fe[r>>2]|0;if(!i){r=x+(n+f)|0;i=fe[r>>2]|0;if(!i){M=0;break}}while(1){n=i+20|0;s=fe[n>>2]|0;if(s){i=s;r=n;continue}n=i+16|0;s=fe[n>>2]|0;if(!s)break;else{i=s;r=n}}if(r>>>0<e>>>0)B();else{fe[r>>2]=0;M=i;break}}else{n=fe[x+((u|8)+f)>>2]|0;if(n>>>0<e>>>0)B();e=n+12|0;if((fe[e>>2]|0)!=(t|0))B();i=r+8|0;if((fe[i>>2]|0)==(t|0)){fe[e>>2]=r;fe[i>>2]=n;M=r;break}else B()}}while(0);if(!o)break;e=fe[x+(f+28+u)>>2]|0;i=908+(e<<2)|0;do{if((t|0)!=(fe[i>>2]|0)){if(o>>>0<(fe[155]|0)>>>0)B();e=o+16|0;if((fe[e>>2]|0)==(t|0))fe[e>>2]=M;else fe[o+20>>2]=M;if(!M)break i}else{fe[i>>2]=M;if(M)break;fe[152]=fe[152]&~(1<<e);break i}}while(0);i=fe[155]|0;if(M>>>0<i>>>0)B();fe[M+24>>2]=o;t=u|16;e=fe[x+(t+f)>>2]|0;do{if(e)if(e>>>0<i>>>0)B();else{fe[M+16>>2]=e;fe[e+24>>2]=M;break}}while(0);t=fe[x+(a+t)>>2]|0;if(!t)break;if(t>>>0<(fe[155]|0)>>>0)B();else{fe[M+20>>2]=t;fe[t+24>>2]=M;break}}else{r=fe[x+((u|8)+f)>>2]|0;n=fe[x+(f+12+u)>>2]|0;i=644+(s<<1<<2)|0;do{if((r|0)!=(i|0)){if(r>>>0<e>>>0)B();if((fe[r+12>>2]|0)==(t|0))break;B()}}while(0);if((n|0)==(r|0)){fe[151]=fe[151]&~(1<<s);break}do{if((n|0)==(i|0))P=n+8|0;else{if(n>>>0<e>>>0)B();e=n+8|0;if((fe[e>>2]|0)==(t|0)){P=e;break}B()}}while(0);fe[r+12>>2]=n;fe[P>>2]=r}}while(0);t=x+((l|u)+f)|0;n=l+h|0}else n=h;t=t+4|0;fe[t>>2]=fe[t>>2]&-2;fe[x+(c+4)>>2]=n|1;fe[x+(n+c)>>2]=n;t=n>>>3;if(n>>>0<256){e=t<<1;r=644+(e<<2)|0;i=fe[151]|0;t=1<<t;do{if(!(i&t)){fe[151]=i|t;I=644+(e+2<<2)|0;D=r}else{t=644+(e+2<<2)|0;e=fe[t>>2]|0;if(e>>>0>=(fe[155]|0)>>>0){I=t;D=e;break}B()}}while(0);fe[I>>2]=d;fe[D+12>>2]=d;fe[x+(c+8)>>2]=D;fe[x+(c+12)>>2]=r;break}t=n>>>8;do{if(!t)r=0;else{if(n>>>0>16777215){r=31;break}I=(t+1048320|0)>>>16&8;D=t<<I;M=(D+520192|0)>>>16&4;D=D<<M;r=(D+245760|0)>>>16&2;r=14-(M|I|r)+(D<<r>>>15)|0;r=n>>>(r+7|0)&1|r<<1}}while(0);t=908+(r<<2)|0;fe[x+(c+28)>>2]=r;fe[x+(c+20)>>2]=0;fe[x+(c+16)>>2]=0;e=fe[152]|0;i=1<<r;if(!(e&i)){fe[152]=e|i;fe[t>>2]=d;fe[x+(c+24)>>2]=t;fe[x+(c+12)>>2]=d;fe[x+(c+8)>>2]=d;break}t=fe[t>>2]|0;i:do{if((fe[t+4>>2]&-8|0)!=(n|0)){r=n<<((r|0)==31?0:25-(r>>>1)|0);while(1){e=t+16+(r>>>31<<2)|0;i=fe[e>>2]|0;if(!i)break;if((fe[i+4>>2]&-8|0)==(n|0)){L=i;break i}else{r=r<<1;t=i}}if(e>>>0<(fe[155]|0)>>>0)B();else{fe[e>>2]=d;fe[x+(c+24)>>2]=t;fe[x+(c+12)>>2]=d;fe[x+(c+8)>>2]=d;break t}}else L=t}while(0);t=L+8|0;e=fe[t>>2]|0;D=fe[155]|0;if(e>>>0>=D>>>0&L>>>0>=D>>>0){fe[e+12>>2]=d;fe[t>>2]=d;fe[x+(c+8)>>2]=e;fe[x+(c+12)>>2]=L;fe[x+(c+24)>>2]=0;break}else B()}else{L=(fe[154]|0)+h|0;fe[154]=L;fe[157]=d;fe[x+(c+4)>>2]=L|1}}while(0);L=x+(p|8)|0;return L|0}else i=1052;while(1){e=fe[i>>2]|0;if(e>>>0<=o>>>0?(t=fe[i+4>>2]|0,r=e+t|0,r>>>0>o>>>0):0)break;i=fe[i+8>>2]|0}n=e+(t+-39)|0;e=e+(t+-47+((n&7|0)==0?0:0-n&7))|0;n=o+16|0;e=e>>>0<n>>>0?o:e;t=e+8|0;i=x+8|0;i=(i&7|0)==0?0:0-i&7;L=f+-40-i|0;fe[157]=x+i;fe[154]=L;fe[x+(i+4)>>2]=L|1;fe[x+(f+-36)>>2]=40;fe[158]=fe[273];i=e+4|0;fe[i>>2]=27;fe[t>>2]=fe[263];fe[t+4>>2]=fe[264];fe[t+8>>2]=fe[265];fe[t+12>>2]=fe[266];fe[263]=x;fe[264]=f;fe[266]=0;fe[265]=t;t=e+28|0;fe[t>>2]=7;if((e+32|0)>>>0<r>>>0)do{L=t;t=t+4|0;fe[t>>2]=7}while((L+8|0)>>>0<r>>>0);if((e|0)!=(o|0)){s=e-o|0;fe[i>>2]=fe[i>>2]&-2;fe[o+4>>2]=s|1;fe[e>>2]=s;t=s>>>3;if(s>>>0<256){e=t<<1;r=644+(e<<2)|0;i=fe[151]|0;t=1<<t;if(i&t){t=644+(e+2<<2)|0;e=fe[t>>2]|0;if(e>>>0<(fe[155]|0)>>>0)B();else{O=t;R=e}}else{fe[151]=i|t;O=644+(e+2<<2)|0;R=r}fe[O>>2]=o;fe[R+12>>2]=o;fe[o+8>>2]=R;fe[o+12>>2]=r;break}t=s>>>8;if(t)if(s>>>0>16777215)r=31;else{D=(t+1048320|0)>>>16&8;L=t<<D;I=(L+520192|0)>>>16&4;L=L<<I;r=(L+245760|0)>>>16&2;r=14-(I|D|r)+(L<<r>>>15)|0;r=s>>>(r+7|0)&1|r<<1}else r=0;i=908+(r<<2)|0;fe[o+28>>2]=r;fe[o+20>>2]=0;fe[n>>2]=0;t=fe[152]|0;e=1<<r;if(!(t&e)){fe[152]=t|e;fe[i>>2]=o;fe[o+24>>2]=i;fe[o+12>>2]=o;fe[o+8>>2]=o;break}t=fe[i>>2]|0;t:do{if((fe[t+4>>2]&-8|0)!=(s|0)){r=s<<((r|0)==31?0:25-(r>>>1)|0);while(1){e=t+16+(r>>>31<<2)|0;i=fe[e>>2]|0;if(!i)break;if((fe[i+4>>2]&-8|0)==(s|0)){C=i;break t}else{r=r<<1;t=i}}if(e>>>0<(fe[155]|0)>>>0)B();else{fe[e>>2]=o;fe[o+24>>2]=t;fe[o+12>>2]=o;fe[o+8>>2]=o;break e}}else C=t}while(0);t=C+8|0;e=fe[t>>2]|0;L=fe[155]|0;if(e>>>0>=L>>>0&C>>>0>=L>>>0){fe[e+12>>2]=o;fe[t>>2]=o;fe[o+8>>2]=e;fe[o+12>>2]=C;fe[o+24>>2]=0;break}else B()}}else{L=fe[155]|0;if((L|0)==0|x>>>0<L>>>0)fe[155]=x;fe[263]=x;fe[264]=f;fe[266]=0;fe[160]=fe[269];fe[159]=-1;t=0;do{L=t<<1;D=644+(L<<2)|0;fe[644+(L+3<<2)>>2]=D;fe[644+(L+2<<2)>>2]=D;t=t+1|0}while((t|0)!=32);L=x+8|0;L=(L&7|0)==0?0:0-L&7;D=f+-40-L|0;fe[157]=x+L;fe[154]=D;fe[x+(L+4)>>2]=D|1;fe[x+(f+-36)>>2]=40;fe[158]=fe[273]}}while(0);t=fe[154]|0;if(t>>>0>m>>>0){D=t-m|0;fe[154]=D;L=fe[157]|0;fe[157]=L+m;fe[L+(m+4)>>2]=D|1;fe[L+4>>2]=m|3;L=L+8|0;return L|0}}L=re()|0;fe[L>>2]=12;L=0;return L|0}function b(e){e=e|0;var t=0,i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0,y=0;if(!e)return;t=e+-8|0;a=fe[155]|0;if(t>>>0<a>>>0)B();i=fe[e+-4>>2]|0;r=i&3;if((r|0)==1)B();d=i&-8;m=e+(d+-8)|0;do{if(!(i&1)){t=fe[t>>2]|0;if(!r)return;l=-8-t|0;h=e+l|0;c=t+d|0;if(h>>>0<a>>>0)B();if((h|0)==(fe[156]|0)){t=e+(d+-4)|0;i=fe[t>>2]|0;if((i&3|0)!=3){y=h;s=c;break}fe[153]=c;fe[t>>2]=i&-2;fe[e+(l+4)>>2]=c|1;fe[m>>2]=c;return}n=t>>>3;if(t>>>0<256){r=fe[e+(l+8)>>2]|0;i=fe[e+(l+12)>>2]|0;t=644+(n<<1<<2)|0;if((r|0)!=(t|0)){if(r>>>0<a>>>0)B();if((fe[r+12>>2]|0)!=(h|0))B()}if((i|0)==(r|0)){fe[151]=fe[151]&~(1<<n);y=h;s=c;break}if((i|0)!=(t|0)){if(i>>>0<a>>>0)B();t=i+8|0;if((fe[t>>2]|0)==(h|0))o=t;else B()}else o=i+8|0;fe[r+12>>2]=i;fe[o>>2]=r;y=h;s=c;break}o=fe[e+(l+24)>>2]|0;r=fe[e+(l+12)>>2]|0;do{if((r|0)==(h|0)){i=e+(l+20)|0;t=fe[i>>2]|0;if(!t){i=e+(l+16)|0;t=fe[i>>2]|0;if(!t){u=0;break}}while(1){r=t+20|0;n=fe[r>>2]|0;if(n){t=n;i=r;continue}r=t+16|0;n=fe[r>>2]|0;if(!n)break;else{t=n;i=r}}if(i>>>0<a>>>0)B();else{fe[i>>2]=0;u=t;break}}else{n=fe[e+(l+8)>>2]|0;if(n>>>0<a>>>0)B();t=n+12|0;if((fe[t>>2]|0)!=(h|0))B();i=r+8|0;if((fe[i>>2]|0)==(h|0)){fe[t>>2]=r;fe[i>>2]=n;u=r;break}else B()}}while(0);if(o){t=fe[e+(l+28)>>2]|0;i=908+(t<<2)|0;if((h|0)==(fe[i>>2]|0)){fe[i>>2]=u;if(!u){fe[152]=fe[152]&~(1<<t);y=h;s=c;break}}else{if(o>>>0<(fe[155]|0)>>>0)B();t=o+16|0;if((fe[t>>2]|0)==(h|0))fe[t>>2]=u;else fe[o+20>>2]=u;if(!u){y=h;s=c;break}}i=fe[155]|0;if(u>>>0<i>>>0)B();fe[u+24>>2]=o;t=fe[e+(l+16)>>2]|0;do{if(t)if(t>>>0<i>>>0)B();else{fe[u+16>>2]=t;fe[t+24>>2]=u;break}}while(0);t=fe[e+(l+20)>>2]|0;if(t)if(t>>>0<(fe[155]|0)>>>0)B();else{fe[u+20>>2]=t;fe[t+24>>2]=u;y=h;s=c;break}else{y=h;s=c}}else{y=h;s=c}}else{y=t;s=d}}while(0);if(y>>>0>=m>>>0)B();t=e+(d+-4)|0;i=fe[t>>2]|0;if(!(i&1))B();if(!(i&2)){if((m|0)==(fe[157]|0)){v=(fe[154]|0)+s|0;fe[154]=v;fe[157]=y;fe[y+4>>2]=v|1;if((y|0)!=(fe[156]|0))return;fe[156]=0;fe[153]=0;return}if((m|0)==(fe[156]|0)){v=(fe[153]|0)+s|0;fe[153]=v;fe[156]=y;fe[y+4>>2]=v|1;fe[y+v>>2]=v;return}s=(i&-8)+s|0;n=i>>>3;do{if(i>>>0>=256){o=fe[e+(d+16)>>2]|0;t=fe[e+(d|4)>>2]|0;do{if((t|0)==(m|0)){i=e+(d+12)|0;t=fe[i>>2]|0;if(!t){i=e+(d+8)|0;t=fe[i>>2]|0;if(!t){f=0;break}}while(1){r=t+20|0;n=fe[r>>2]|0;if(n){t=n;i=r;continue}r=t+16|0;n=fe[r>>2]|0;if(!n)break;else{t=n;i=r}}if(i>>>0<(fe[155]|0)>>>0)B();else{fe[i>>2]=0;f=t;break}}else{i=fe[e+d>>2]|0;if(i>>>0<(fe[155]|0)>>>0)B();r=i+12|0;if((fe[r>>2]|0)!=(m|0))B();n=t+8|0;if((fe[n>>2]|0)==(m|0)){fe[r>>2]=t;fe[n>>2]=i;f=t;break}else B()}}while(0);if(o){t=fe[e+(d+20)>>2]|0;i=908+(t<<2)|0;if((m|0)==(fe[i>>2]|0)){fe[i>>2]=f;if(!f){fe[152]=fe[152]&~(1<<t);break}}else{if(o>>>0<(fe[155]|0)>>>0)B();t=o+16|0;if((fe[t>>2]|0)==(m|0))fe[t>>2]=f;else fe[o+20>>2]=f;if(!f)break}i=fe[155]|0;if(f>>>0<i>>>0)B();fe[f+24>>2]=o;t=fe[e+(d+8)>>2]|0;do{if(t)if(t>>>0<i>>>0)B();else{fe[f+16>>2]=t;fe[t+24>>2]=f;break}}while(0);t=fe[e+(d+12)>>2]|0;if(t)if(t>>>0<(fe[155]|0)>>>0)B();else{fe[f+20>>2]=t;fe[t+24>>2]=f;break}}}else{r=fe[e+d>>2]|0;i=fe[e+(d|4)>>2]|0;t=644+(n<<1<<2)|0;if((r|0)!=(t|0)){if(r>>>0<(fe[155]|0)>>>0)B();if((fe[r+12>>2]|0)!=(m|0))B()}if((i|0)==(r|0)){fe[151]=fe[151]&~(1<<n);break}if((i|0)!=(t|0)){if(i>>>0<(fe[155]|0)>>>0)B();t=i+8|0;if((fe[t>>2]|0)==(m|0))p=t;else B()}else p=i+8|0;fe[r+12>>2]=i;fe[p>>2]=r}}while(0);fe[y+4>>2]=s|1;fe[y+s>>2]=s;if((y|0)==(fe[156]|0)){fe[153]=s;return}}else{fe[t>>2]=i&-2;fe[y+4>>2]=s|1;fe[y+s>>2]=s}t=s>>>3;if(s>>>0<256){i=t<<1;n=644+(i<<2)|0;r=fe[151]|0;t=1<<t;if(r&t){t=644+(i+2<<2)|0;i=fe[t>>2]|0;if(i>>>0<(fe[155]|0)>>>0)B();else{_=t;g=i}}else{fe[151]=r|t;_=644+(i+2<<2)|0;g=n}fe[_>>2]=y;fe[g+12>>2]=y;fe[y+8>>2]=g;fe[y+12>>2]=n;return}t=s>>>8;if(t)if(s>>>0>16777215)n=31;else{_=(t+1048320|0)>>>16&8;g=t<<_;m=(g+520192|0)>>>16&4;g=g<<m;n=(g+245760|0)>>>16&2;n=14-(m|_|n)+(g<<n>>>15)|0;n=s>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;fe[y+28>>2]=n;fe[y+20>>2]=0;fe[y+16>>2]=0;i=fe[152]|0;r=1<<n;e:do{if(i&r){t=fe[t>>2]|0;t:do{if((fe[t+4>>2]&-8|0)!=(s|0)){n=s<<((n|0)==31?0:25-(n>>>1)|0);while(1){i=t+16+(n>>>31<<2)|0;r=fe[i>>2]|0;if(!r)break;if((fe[r+4>>2]&-8|0)==(s|0)){v=r;break t}else{n=n<<1;t=r}}if(i>>>0<(fe[155]|0)>>>0)B();else{fe[i>>2]=y;fe[y+24>>2]=t;fe[y+12>>2]=y;fe[y+8>>2]=y;break e}}else v=t}while(0);t=v+8|0;i=fe[t>>2]|0;g=fe[155]|0;if(i>>>0>=g>>>0&v>>>0>=g>>>0){fe[i+12>>2]=y;fe[t>>2]=y;fe[y+8>>2]=i;fe[y+12>>2]=v;fe[y+24>>2]=0;break}else B()}else{fe[152]=i|r;fe[t>>2]=y;fe[y+24>>2]=t;fe[y+12>>2]=y;fe[y+8>>2]=y}}while(0);y=(fe[159]|0)+-1|0;fe[159]=y;if(!y)t=1060;else return;while(1){t=fe[t>>2]|0;if(!t)break;else t=t+8|0}fe[159]=-1;return}function Wi(e,t){e=e|0;t=t|0;var i=0,r=0;if(!e){e=Yi(t)|0;return e|0}if(t>>>0>4294967231){e=re()|0;fe[e>>2]=12;e=0;return e|0}i=qi(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(i){e=i+8|0;return e|0}i=Yi(t)|0;if(!i){e=0;return e|0}r=fe[e+-4>>2]|0;r=(r&-8)-((r&3|0)==0?8:4)|0;er(i|0,e|0,(r>>>0<t>>>0?r:t)|0)|0;b(e);e=i;return e|0}function Vi(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=fe[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function qi(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0;d=e+4|0;f=fe[d>>2]|0;l=f&-8;h=e+l|0;a=fe[155]|0;i=f&3;if(!((i|0)!=1&e>>>0>=a>>>0&e>>>0<h>>>0))B();r=e+(l|4)|0;n=fe[r>>2]|0;if(!(n&1))B();if(!i){if(t>>>0<256){e=0;return e|0}if(l>>>0>=(t+4|0)>>>0?(l-t|0)>>>0<=fe[271]<<1>>>0:0)return e|0;e=0;return e|0}if(l>>>0>=t>>>0){i=l-t|0;if(i>>>0<=15)return e|0;fe[d>>2]=f&1|t|2;fe[e+(t+4)>>2]=i|3;fe[r>>2]=fe[r>>2]|1;Ki(e+t|0,i);return e|0}if((h|0)==(fe[157]|0)){i=(fe[154]|0)+l|0;if(i>>>0<=t>>>0){e=0;return e|0}p=i-t|0;fe[d>>2]=f&1|t|2;fe[e+(t+4)>>2]=p|1;fe[157]=e+t;fe[154]=p;return e|0}if((h|0)==(fe[156]|0)){r=(fe[153]|0)+l|0;if(r>>>0<t>>>0){e=0;return e|0}i=r-t|0;if(i>>>0>15){fe[d>>2]=f&1|t|2;fe[e+(t+4)>>2]=i|1;fe[e+r>>2]=i;r=e+(r+4)|0;fe[r>>2]=fe[r>>2]&-2;r=e+t|0}else{fe[d>>2]=f&1|r|2;r=e+(r+4)|0;fe[r>>2]=fe[r>>2]|1;r=0;i=0}fe[153]=i;fe[156]=r;return e|0}if(n&2){e=0;return e|0}c=(n&-8)+l|0;if(c>>>0<t>>>0){e=0;return e|0}p=c-t|0;s=n>>>3;do{if(n>>>0>=256){o=fe[e+(l+24)>>2]|0;s=fe[e+(l+12)>>2]|0;do{if((s|0)==(h|0)){r=e+(l+20)|0;i=fe[r>>2]|0;if(!i){r=e+(l+16)|0;i=fe[r>>2]|0;if(!i){u=0;break}}while(1){n=i+20|0;s=fe[n>>2]|0;if(s){i=s;r=n;continue}n=i+16|0;s=fe[n>>2]|0;if(!s)break;else{i=s;r=n}}if(r>>>0<a>>>0)B();else{fe[r>>2]=0;u=i;break}}else{n=fe[e+(l+8)>>2]|0;if(n>>>0<a>>>0)B();i=n+12|0;if((fe[i>>2]|0)!=(h|0))B();r=s+8|0;if((fe[r>>2]|0)==(h|0)){fe[i>>2]=s;fe[r>>2]=n;u=s;break}else B()}}while(0);if(o){i=fe[e+(l+28)>>2]|0;r=908+(i<<2)|0;if((h|0)==(fe[r>>2]|0)){fe[r>>2]=u;if(!u){fe[152]=fe[152]&~(1<<i);break}}else{if(o>>>0<(fe[155]|0)>>>0)B();i=o+16|0;if((fe[i>>2]|0)==(h|0))fe[i>>2]=u;else fe[o+20>>2]=u;if(!u)break}r=fe[155]|0;if(u>>>0<r>>>0)B();fe[u+24>>2]=o;i=fe[e+(l+16)>>2]|0;do{if(i)if(i>>>0<r>>>0)B();else{fe[u+16>>2]=i;fe[i+24>>2]=u;break}}while(0);i=fe[e+(l+20)>>2]|0;if(i)if(i>>>0<(fe[155]|0)>>>0)B();else{fe[u+20>>2]=i;fe[i+24>>2]=u;break}}}else{n=fe[e+(l+8)>>2]|0;r=fe[e+(l+12)>>2]|0;i=644+(s<<1<<2)|0;if((n|0)!=(i|0)){if(n>>>0<a>>>0)B();if((fe[n+12>>2]|0)!=(h|0))B()}if((r|0)==(n|0)){fe[151]=fe[151]&~(1<<s);break}if((r|0)!=(i|0)){if(r>>>0<a>>>0)B();i=r+8|0;if((fe[i>>2]|0)==(h|0))o=i;else B()}else o=r+8|0;fe[n+12>>2]=r;fe[o>>2]=n}}while(0);if(p>>>0<16){fe[d>>2]=c|f&1|2;t=e+(c|4)|0;fe[t>>2]=fe[t>>2]|1;return e|0}else{fe[d>>2]=f&1|t|2;fe[e+(t+4)>>2]=p|3;f=e+(c|4)|0;fe[f>>2]=fe[f>>2]|1;Ki(e+t|0,p);return e|0}return 0}function Ki(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0,m=0,_=0,g=0,v=0;m=e+t|0;i=fe[e+4>>2]|0;do{if(!(i&1)){u=fe[e>>2]|0;if(!(i&3))return;p=e+(0-u)|0;c=u+t|0;l=fe[155]|0;if(p>>>0<l>>>0)B();if((p|0)==(fe[156]|0)){r=e+(t+4)|0;i=fe[r>>2]|0;if((i&3|0)!=3){v=p;o=c;break}fe[153]=c;fe[r>>2]=i&-2;fe[e+(4-u)>>2]=c|1;fe[m>>2]=c;return}s=u>>>3;if(u>>>0<256){n=fe[e+(8-u)>>2]|0;r=fe[e+(12-u)>>2]|0;i=644+(s<<1<<2)|0;if((n|0)!=(i|0)){if(n>>>0<l>>>0)B();if((fe[n+12>>2]|0)!=(p|0))B()}if((r|0)==(n|0)){fe[151]=fe[151]&~(1<<s);v=p;o=c;break}if((r|0)!=(i|0)){if(r>>>0<l>>>0)B();i=r+8|0;if((fe[i>>2]|0)==(p|0))a=i;else B()}else a=r+8|0;fe[n+12>>2]=r;fe[a>>2]=n;v=p;o=c;break}a=fe[e+(24-u)>>2]|0;n=fe[e+(12-u)>>2]|0;do{if((n|0)==(p|0)){n=16-u|0;r=e+(n+4)|0;i=fe[r>>2]|0;if(!i){r=e+n|0;i=fe[r>>2]|0;if(!i){h=0;break}}while(1){n=i+20|0;s=fe[n>>2]|0;if(s){i=s;r=n;continue}n=i+16|0;s=fe[n>>2]|0;if(!s)break;else{i=s;r=n}}if(r>>>0<l>>>0)B();else{fe[r>>2]=0;h=i;break}}else{s=fe[e+(8-u)>>2]|0;if(s>>>0<l>>>0)B();i=s+12|0;if((fe[i>>2]|0)!=(p|0))B();r=n+8|0;if((fe[r>>2]|0)==(p|0)){fe[i>>2]=n;fe[r>>2]=s;h=n;break}else B()}}while(0);if(a){i=fe[e+(28-u)>>2]|0;r=908+(i<<2)|0;if((p|0)==(fe[r>>2]|0)){fe[r>>2]=h;if(!h){fe[152]=fe[152]&~(1<<i);v=p;o=c;break}}else{if(a>>>0<(fe[155]|0)>>>0)B();i=a+16|0;if((fe[i>>2]|0)==(p|0))fe[i>>2]=h;else fe[a+20>>2]=h;if(!h){v=p;o=c;break}}n=fe[155]|0;if(h>>>0<n>>>0)B();fe[h+24>>2]=a;i=16-u|0;r=fe[e+i>>2]|0;do{if(r)if(r>>>0<n>>>0)B();else{fe[h+16>>2]=r;fe[r+24>>2]=h;break}}while(0);i=fe[e+(i+4)>>2]|0;if(i)if(i>>>0<(fe[155]|0)>>>0)B();else{fe[h+20>>2]=i;fe[i+24>>2]=h;v=p;o=c;break}else{v=p;o=c}}else{v=p;o=c}}else{v=e;o=t}}while(0);l=fe[155]|0;if(m>>>0<l>>>0)B();i=e+(t+4)|0;r=fe[i>>2]|0;if(!(r&2)){if((m|0)==(fe[157]|0)){g=(fe[154]|0)+o|0;fe[154]=g;fe[157]=v;fe[v+4>>2]=g|1;if((v|0)!=(fe[156]|0))return;fe[156]=0;fe[153]=0;return}if((m|0)==(fe[156]|0)){g=(fe[153]|0)+o|0;fe[153]=g;fe[156]=v;fe[v+4>>2]=g|1;fe[v+g>>2]=g;return}o=(r&-8)+o|0;s=r>>>3;do{if(r>>>0>=256){a=fe[e+(t+24)>>2]|0;n=fe[e+(t+12)>>2]|0;do{if((n|0)==(m|0)){r=e+(t+20)|0;i=fe[r>>2]|0;if(!i){r=e+(t+16)|0;i=fe[r>>2]|0;if(!i){f=0;break}}while(1){n=i+20|0;s=fe[n>>2]|0;if(s){i=s;r=n;continue}n=i+16|0;s=fe[n>>2]|0;if(!s)break;else{i=s;r=n}}if(r>>>0<l>>>0)B();else{fe[r>>2]=0;f=i;break}}else{s=fe[e+(t+8)>>2]|0;if(s>>>0<l>>>0)B();i=s+12|0;if((fe[i>>2]|0)!=(m|0))B();r=n+8|0;if((fe[r>>2]|0)==(m|0)){fe[i>>2]=n;fe[r>>2]=s;f=n;break}else B()}}while(0);if(a){i=fe[e+(t+28)>>2]|0;r=908+(i<<2)|0;if((m|0)==(fe[r>>2]|0)){fe[r>>2]=f;if(!f){fe[152]=fe[152]&~(1<<i);break}}else{if(a>>>0<(fe[155]|0)>>>0)B();i=a+16|0;if((fe[i>>2]|0)==(m|0))fe[i>>2]=f;else fe[a+20>>2]=f;if(!f)break}r=fe[155]|0;if(f>>>0<r>>>0)B();fe[f+24>>2]=a;i=fe[e+(t+16)>>2]|0;do{if(i)if(i>>>0<r>>>0)B();else{fe[f+16>>2]=i;fe[i+24>>2]=f;break}}while(0);i=fe[e+(t+20)>>2]|0;if(i)if(i>>>0<(fe[155]|0)>>>0)B();else{fe[f+20>>2]=i;fe[i+24>>2]=f;break}}}else{n=fe[e+(t+8)>>2]|0;r=fe[e+(t+12)>>2]|0;i=644+(s<<1<<2)|0;if((n|0)!=(i|0)){if(n>>>0<l>>>0)B();if((fe[n+12>>2]|0)!=(m|0))B()}if((r|0)==(n|0)){fe[151]=fe[151]&~(1<<s);break}if((r|0)!=(i|0)){if(r>>>0<l>>>0)B();i=r+8|0;if((fe[i>>2]|0)==(m|0))d=i;else B()}else d=r+8|0;fe[n+12>>2]=r;fe[d>>2]=n}}while(0);fe[v+4>>2]=o|1;fe[v+o>>2]=o;if((v|0)==(fe[156]|0)){fe[153]=o;return}}else{fe[i>>2]=r&-2;fe[v+4>>2]=o|1;fe[v+o>>2]=o}i=o>>>3;if(o>>>0<256){r=i<<1;s=644+(r<<2)|0;n=fe[151]|0;i=1<<i;if(n&i){i=644+(r+2<<2)|0;r=fe[i>>2]|0;if(r>>>0<(fe[155]|0)>>>0)B();else{_=i;g=r}}else{fe[151]=n|i;_=644+(r+2<<2)|0;g=s}fe[_>>2]=v;fe[g+12>>2]=v;fe[v+8>>2]=g;fe[v+12>>2]=s;return}i=o>>>8;if(i)if(o>>>0>16777215)s=31;else{_=(i+1048320|0)>>>16&8;g=i<<_;m=(g+520192|0)>>>16&4;g=g<<m;s=(g+245760|0)>>>16&2;s=14-(m|_|s)+(g<<s>>>15)|0;s=o>>>(s+7|0)&1|s<<1}else s=0;i=908+(s<<2)|0;fe[v+28>>2]=s;fe[v+20>>2]=0;fe[v+16>>2]=0;r=fe[152]|0;n=1<<s;if(!(r&n)){fe[152]=r|n;fe[i>>2]=v;fe[v+24>>2]=i;fe[v+12>>2]=v;fe[v+8>>2]=v;return}i=fe[i>>2]|0;e:do{if((fe[i+4>>2]&-8|0)!=(o|0)){s=o<<((s|0)==31?0:25-(s>>>1)|0);while(1){r=i+16+(s>>>31<<2)|0;n=fe[r>>2]|0;if(!n)break;if((fe[n+4>>2]&-8|0)==(o|0)){i=n;break e}else{s=s<<1;i=n}}if(r>>>0<(fe[155]|0)>>>0)B();fe[r>>2]=v;fe[v+24>>2]=i;fe[v+12>>2]=v;fe[v+8>>2]=v;return}}while(0);r=i+8|0;n=fe[r>>2]|0;g=fe[155]|0;if(!(n>>>0>=g>>>0&i>>>0>=g>>>0))B();fe[n+12>>2]=v;fe[r>>2]=v;fe[v+8>>2]=n;fe[v+12>>2]=i;fe[v+24>>2]=0}function Zi(){}function ae(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;r=t-r-(i>>>0>e>>>0|0)>>>0;return(ie=r,e-i>>>0|0)|0}function G(e,t,i){e=e|0;t=t|0;i=i|0;var r=0,n=0,s=0,o=0;r=e+i|0;if((i|0)>=20){t=t&255;s=e&3;o=t|t<<8|t<<16|t<<24;n=r&~3;if(s){s=e+4-s|0;while((e|0)<(s|0)){de[e>>0]=t;e=e+1|0}}while((e|0)<(n|0)){fe[e>>2]=o;e=e+4|0}}while((e|0)<(r|0)){de[e>>0]=t;e=e+1|0}return e-i|0}function Ji(e,t,i){e=e|0;t=t|0;i=i|0;if((i|0)<32){ie=t>>>i;return e>>>i|(t&(1<<i)-1)<<32-i}ie=0;return t>>>i-32|0}function Qi(e,t,i){e=e|0;t=t|0;i=i|0;if((i|0)<32){ie=t<<i|(e&(1<<i)-1<<32-i)>>>32-i;return e<<i}ie=e<<i-32;return 0}function $i(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;i=e+i>>>0;return(ie=t+r+(i>>>0<e>>>0|0)>>>0,i|0)|0}function er(e,t,i){e=e|0;t=t|0;i=i|0;var r=0;if((i|0)>=4096)return Qe(e|0,t|0,i|0)|0;r=e|0;if((e&3)==(t&3)){while(e&3){if(!i)return r|0;de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;i=i-1|0}while((i|0)>=4){fe[e>>2]=fe[t>>2];e=e+4|0;t=t+4|0;i=i-4|0}}while((i|0)>0){de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;i=i-1|0}return r|0}function tr(e,t,i){e=e|0;t=t|0;i=i|0;if((i|0)<32){ie=t>>i;return}ie=(t|0)<0?-1:0}function ir(e){e=e|0;var t=0;t=de[w+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[w+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[w+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[w+(e>>>24)>>0]|0)+24|0}function rr(e,t){e=e|0;t=t|0;var i=0,r=0,n=0,s=0;s=e&65535;n=t&65535;i=ve(n,s)|0;r=e>>>16;e=(i>>>16)+(ve(n,r)|0)|0;n=t>>>16;t=ve(n,s)|0;return(ie=(e>>>16)+(ve(n,r)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|i&65535|0)|0}function nr(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0,o=0,a=0,l=0,u=0;u=t>>31|((t|0)<0?-1:0)<<1;l=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;s=r>>31|((r|0)<0?-1:0)<<1;n=((r|0)<0?-1:0)>>31|((r|0)<0?-1:0)<<1;a=ae(u^e,l^t,u,l)|0;o=ie;e=s^u;t=n^l;ae((ur(a,o,ae(s^i,n^r,s,n)|0,ie,0)|0)^e,ie^t,e,t)}function sr(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0,o=0,a=0,l=0,u=0;n=ge;ge=ge+16|0;a=n|0;o=t>>31|((t|0)<0?-1:0)<<1;s=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;u=r>>31|((r|0)<0?-1:0)<<1;l=((r|0)<0?-1:0)>>31|((r|0)<0?-1:0)<<1;e=ae(o^e,s^t,o,s)|0;t=ie;ur(e,t,ae(u^i,l^r,u,l)|0,ie,a)|0;r=ae(fe[a>>2]^o,fe[a+4>>2]^s,o,s)|0;i=ie;ge=n;ie=i}function or(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0;n=e;s=i;i=rr(n,s)|0;e=ie;ie=(ve(t,s)|0)+(ve(r,n)|0)+e|e&0}function ar(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;return ur(e,t,i,r,0)|0}function lr(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;var n=0,s=0;s=ge;ge=ge+16|0;n=s|0;ur(e,t,i,r,n)|0;ge=s;return(ie=fe[n+4>>2]|0,fe[n>>2]|0)|0}function ur(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;var s=0,o=0,a=0,l=0,u=0,h=0,c=0,p=0,d=0,f=0;h=e;l=t;u=l;o=i;p=r;a=p;if(!u){s=(n|0)!=0;if(!a){if(s){fe[n>>2]=(h>>>0)%(o>>>0);fe[n+4>>2]=0}p=0;n=(h>>>0)/(o>>>0)>>>0;return(ie=p,n)|0}else{if(!s){p=0;n=0;return(ie=p,n)|0}fe[n>>2]=e|0;fe[n+4>>2]=t&0;p=0;n=0;return(ie=p,n)|0}}s=(a|0)==0;do{if(o){if(!s){s=(m(a|0)|0)-(m(u|0)|0)|0;if(s>>>0<=31){c=s+1|0;a=31-s|0;t=s-31>>31;o=c;e=h>>>(c>>>0)&t|u<<a;t=u>>>(c>>>0)&t;s=0;a=h<<a;break}if(!n){p=0;n=0;return(ie=p,n)|0}fe[n>>2]=e|0;fe[n+4>>2]=l|t&0;p=0;n=0;return(ie=p,n)|0}s=o-1|0;if(s&o){a=(m(o|0)|0)+33-(m(u|0)|0)|0;f=64-a|0;c=32-a|0;l=c>>31;d=a-32|0;t=d>>31;o=a;e=c-1>>31&u>>>(d>>>0)|(u<<c|h>>>(a>>>0))&t;t=t&u>>>(a>>>0);s=h<<f&l;a=(u<<f|h>>>(d>>>0))&l|h<<c&a-33>>31;break}if(n){fe[n>>2]=s&h;fe[n+4>>2]=0}if((o|0)==1){d=l|t&0;f=e|0|0;return(ie=d,f)|0}else{f=ir(o|0)|0;d=u>>>(f>>>0)|0;f=u<<32-f|h>>>(f>>>0)|0;return(ie=d,f)|0}}else{if(s){if(n){fe[n>>2]=(u>>>0)%(o>>>0);fe[n+4>>2]=0}d=0;f=(u>>>0)/(o>>>0)>>>0;return(ie=d,f)|0}if(!h){if(n){fe[n>>2]=0;fe[n+4>>2]=(u>>>0)%(a>>>0)}d=0;f=(u>>>0)/(a>>>0)>>>0;return(ie=d,f)|0}s=a-1|0;if(!(s&a)){if(n){fe[n>>2]=e|0;fe[n+4>>2]=s&u|t&0}d=0;f=u>>>((ir(a|0)|0)>>>0);return(ie=d,f)|0}s=(m(a|0)|0)-(m(u|0)|0)|0;if(s>>>0<=30){t=s+1|0;a=31-s|0;o=t;e=u<<a|h>>>(t>>>0);t=u>>>(t>>>0);s=0;a=h<<a;break}if(!n){d=0;f=0;return(ie=d,f)|0}fe[n>>2]=e|0;fe[n+4>>2]=l|t&0;d=0;f=0;return(ie=d,f)|0}}while(0);if(!o){u=a;l=0;a=0}else{c=i|0|0;h=p|r&0;u=$i(c|0,h|0,-1,-1)|0;i=ie;l=a;a=0;do{r=l;l=s>>>31|l<<1;s=a|s<<1;r=e<<1|r>>>31|0;p=e>>>31|t<<1|0;ae(u,i,r,p)|0;f=ie;d=f>>31|((f|0)<0?-1:0)<<1;a=d&1;e=ae(r,p,d&c,(((f|0)<0?-1:0)>>31|((f|0)<0?-1:0)<<1)&h)|0;t=ie;o=o-1|0}while((o|0)!=0);u=l;l=0}o=0;if(n){fe[n>>2]=e;fe[n+4>>2]=t}d=(s|0)>>>31|(u|o)<<1|(o<<1|s>>>31)&0|l;f=(s<<1|0>>>31)&-2|a;return(ie=d,f)|0}function hr(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;return v[e&7](t|0,i|0,r|0)|0}function cr(e,t,i,r,n,s){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;Pr[e&3](t|0,i|0,r|0,n|0,s|0)}function pr(e,t){e=e|0;t=t|0;Or[e&7](t|0)}function dr(e,t){e=e|0;t=t|0;return Rr[e&1](t|0)|0}function fr(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;Cr[e&0](t|0,i|0,r|0)}function mr(e){e=e|0;Mr[e&3]()}function _r(e,t,i,r,n,s,o){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;o=o|0;Ir[e&3](t|0,i|0,r|0,n|0,s|0,o|0)}function gr(e,t,i,r,n,s){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;return X[e&1](t|0,i|0,r|0,n|0,s|0)|0}function vr(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;Dr[e&3](t|0,i|0,r|0,n|0)}function yr(e,t,i){e=e|0;t=t|0;i=i|0;o(0);return 0}function br(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;o(1)}function xr(e){e=e|0;o(2)}function Tr(e){e=e|0;o(3);return 0}function wr(e,t,i){e=e|0;t=t|0;i=i|0;o(4)}function Er(){o(5)}function Sr(e,t,i,r,n,s){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;s=s|0;o(6)}function Ar(e,t,i,r,n){e=e|0;t=t|0;i=i|0;r=r|0;n=n|0;o(7);return 0}function kr(e,t,i,r){e=e|0;t=t|0;i=i|0;r=r|0;o(8)}var v=[yr,oi,Xi,Fi,Li,Ni,yr,yr];var Pr=[br,di,pi,br];var Or=[xr,ti,ni,ii,ri,si,bi,Gi];var Rr=[Tr,Di];var Cr=[wr];var Mr=[Er,vi,yi,Er];var Ir=[Sr,mi,fi,Sr];var X=[Ar,St];var Dr=[kr,li,ui,kr];return{___cxa_can_catch:_i,_crn_get_levels:Ft,_crn_get_uncompressed_size:zt,_crn_decompress:Bt,_i64Add:$i,_crn_get_width:Dt,___cxa_is_pointer_type:gi,_i64Subtract:ae,_memset:G,_malloc:Yi,_free:b,_memcpy:er,_bitshift64Lshr:Ji,_fflush:ki,_bitshift64Shl:Qi,_crn_get_height:Lt,___errno_location:re,_crn_get_dxt_format:Nt,runPostSets:Zi,_emscripten_replace_memory:dt,stackAlloc:ft,stackSave:mt,stackRestore:_t,establishStackSpace:gt,setThrew:vt,setTempRet0:xt,getTempRet0:Tt,dynCall_iiii:hr,dynCall_viiiii:cr,dynCall_vi:pr,dynCall_ii:dr,dynCall_viii:fr,dynCall_v:mr,dynCall_viiiiii:_r,dynCall_iiiiii:gr,dynCall_viiii:vr}}(e.Ya,e.Za,buffer)),zc=(e.___cxa_can_catch=Z.___cxa_can_catch,e._crn_get_levels=Z._crn_get_levels,e.runPostSets=Z.runPostSets,e._crn_get_uncompressed_size=Z._crn_get_uncompressed_size,e._crn_decompress=Z._crn_decompress,e._i64Add=Z._i64Add),nb=(e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type,e._i64Subtract=Z._i64Subtract),qb=e._memset=Z._memset,Ea=e._malloc=Z._malloc,Bc=e._memcpy=Z._memcpy,Xa=e._emscripten_replace_memory=Z._emscripten_replace_memory,rb=(e._crn_get_dxt_format=Z._crn_get_dxt_format,e._bitshift64Lshr=Z._bitshift64Lshr),Na=e._free=Z._free,sb=(e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location,e._bitshift64Shl=Z._bitshift64Shl);function ia(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}e.dynCall_iiii=Z.dynCall_iiii,e.dynCall_viiiii=Z.dynCall_viiiii,e.dynCall_vi=Z.dynCall_vi,e.dynCall_ii=Z.dynCall_ii,e.dynCall_viii=Z.dynCall_viii,e.dynCall_v=Z.dynCall_v,e.dynCall_viiiiii=Z.dynCall_viiiiii,e.dynCall_iiiiii=Z.dynCall_iiiiii,e.dynCall_viiii=Z.dynCall_viiii,n.aa=Z.stackAlloc,n.ua=Z.stackSave,n.ba=Z.stackRestore,n.Cd=Z.establishStackSpace,n.rb=Z.setTempRet0,n.fb=Z.getTempRet0,ia.prototype=Error(),ia.prototype.constructor=ia;var rd=null,jb=function t(){e.calledRun||td(),e.calledRun||(jb=t)};function td(t){function i(){if(!e.calledRun&&(e.calledRun=!0,!na)){if(Ha||(Ha=!0,ab(cb)),ab(db),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e._main&&vd&&e.callMain(t),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)gb(e.postRun.shift());ab(eb)}}if(t=t||e.arguments,null===rd&&(rd=Date.now()),!(0<I)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)fb(e.preRun.shift());ab(bb),0<I||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),i()},1)):i())}}function ud(t,i){if(!i||!e.noExitRuntime)throw!e.noExitRuntime&&(na=!0,m=void 0,ab(H),e.onExit)&&e.onExit(t),da?(process.stdout.once("drain",function(){process.exit(t)}),console.log(" "),setTimeout(function(){process.exit(t)},500)):ea&&"function"==typeof quit&&quit(t),new ia(t)}e.callMain=e.zd=function(t){function i(){for(var e=0;e<3;e++)n.push(0)}assert(0==I,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==bb.length,"cannot call main when preRun functions remain to be called"),t=t||[],Ha||(Ha=!0,ab(cb));var r=t.length+1,n=[D(hb(e.thisProgram),"i8",0)];i();for(var s=0;s<r-1;s+=1)n.push(D(hb(t[s]),"i8",0)),i();n.push(0),n=D(n,"i32",0);try{ud(e._main(r,n,0),!0)}catch(t){if(!(t instanceof ia)){if("SimulateInfiniteLoop"!=t)throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t;e.noExitRuntime=!0}}},e.run=e.run=td,e.exit=e.exit=ud;var wd=[];function x(t){t=void 0!==t?(e.print(t),e.W(t),JSON.stringify(t)):"",na=!0;var i="abort("+t+") at "+Oa()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw wd&&wd.forEach(function(e){i=e(i,t)}),i}if(e.abort=e.abort=x,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var vd=!0,__extends=(e.noInitialRun&&(vd=!1),td(),window.Module=e,this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};return function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}()),pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures,pixi_compressed_textures;function fourCCToInt32(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}function int32ToFourCC(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}!function(a){a.loadFromArrayBuffer=function(e,t,i){return new r(t).loadFromArrayBuffer(e,i)};l=PIXI.resources.Resource,__extends(e,l),e.prototype.init=function(e,t,i,r,n,s,o){void 0===r&&(r=-1),void 0===n&&(n=-1),this.src=e,this.resize(r,n),this._width=r,this._height=n,this.data=t,this.type=i,this.levels=s,this.internalFormat=o;e=this.complete;return this.complete=!!t,!e&&this.complete&&this.onload&&this.onload({target:this}),this.update(),this},e.prototype.dispose=function(){this.data=null},e.prototype.bind=function(e){void 0!==e.alphaMode?e.alphaMode=PIXI.ALPHA_MODES.NO_PREMULTIPLIED_ALPHA:e.premultiplyAlpha=!1,l.prototype.bind.call(this,e)},e.prototype.upload=function(e,t,i){var r=e.state.gl;if(i.compressed=!1,e.texture.initCompressed(),null===this.data)throw"Trying to create a second (or more) webgl texture from the same CompressedImage : "+this.src;for(var n=this.levels,s=this.width,o=this.height,a=0,l=0;l<n;++l){var u=this._internalLoader.levelBufferSize(s,o,l),h=new Uint8Array(this.data.buffer,this.data.byteOffset+a,u);r.compressedTexImage2D(r.TEXTURE_2D,l,this.internalFormat,s,o,0,h),(s>>=1)<1&&(s=1),(o>>=1)<1&&(o=1),a+=u}return this._internalLoader.free(),this.preserveSource||(this.data=null),!0},e.prototype.style=function(e,t,i){var e=e.state.gl,r=this.levels;return t.scaleMode===PIXI.SCALE_MODES.LINEAR?1<r&&i.mipmap?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):1<r&&i.mipmap?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST_MIPMAP_NEAREST):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST)),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,i.wrapMode),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,i.wrapMode),!0},e.prototype.loadFromArrayBuffer=function(e,t){var i=a.Loaders;if(!i||!i.length)throw"Registered compressed loaders is missing. Call `TextureSystem.initCompressed` before loading!";for(var r=void 0,n=0,s=i;n<s.length;n++){var o=s[n];if(t){if("CRN"===o.type){r=o;break}}else if(o.test(e)){r=o;break}}if(r)return this._internalLoader=new r(this),this._internalLoader.load(e);throw new Error("Compressed texture format is not recognized: "+this.src)};var l,r=e;function e(e,t,i,r,n,s,o){var a=l.call(this)||this;return a.complete=!1,a.isCompressedImage=!0,a.preserveSource=!0,a.onload=null,a.baseTexture=null,a.init(e,t,i,r,n,s,o),a}a.CompressedImage=r}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(t){function e(e){void 0===e&&(e=new t.CompressedImage("unknown")),this._image=e,this._format=0,e._internalLoader=this}e.prototype.free=function(){},e.test=function(e){return!1},e.type="ABSTRACT",t.AbstractInternalLoader=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){(t={})[16]=0,t[20]=1,t[25]=2,t[30]=3,t[36]=4,t[40]=5,t[48]=6,t[64]=7,t[50]=8,t[60]=9,t[80]=10,t[100]=11,t[120]=12,t[144]=13;var i,o=t,t=(i=e.AbstractInternalLoader,__extends(a,i),a.prototype.load=function(e){var t,i,r,n,s;if(a.test(e))return s=(r=new Uint8Array(e,0,16))[4],t=r[5],i=r[7]+(r[8]<<8)+(r[9]<<16),r=r[10]+(r[11]<<8)+(r[12]<<16),n=o[s*t]+(this.useSRGB?37840:37808),e=new Uint8Array(e,16),this._format=n,this._blockSize.x=s,this._blockSize.y=t,(s=this._image).init(s.src,e,"ASTC",i,r,1,n),s;throw"Invalid magic number in ASTC header"},a.test=function(e){return 1554098963===new Int32Array(e,0,1)[0]},a.prototype.levelBufferSize=function(e,t,i){void 0===i&&(i=0);var i=Math.floor,r=this._blockSize.x,n=this._blockSize.y;return i((e+r-1)/r)*i((t+n-1)/n)<<4},a.type="ASTC",a);function a(e,t){void 0===t&&(t=!1);e=i.call(this,e)||this;return e.useSRGB=t,e._blockSize={x:0,y:0},e}e.ASTCLoader=t}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){var t,i,r=fourCCToInt32("DXT1"),n=fourCCToInt32("DXT3"),s=fourCCToInt32("DXT5"),o=fourCCToInt32("ATC "),a=fourCCToInt32("ATCA"),l=fourCCToInt32("ATCI"),u=((t={})[r]=33776,t[n]=33778,t[s]=33779,t[o]=35986,t[a]=35987,t[l]=34798,t),r=(i=e.AbstractInternalLoader,__extends(h,i),h.prototype.load=function(e){if(!h.test(e))throw"Invalid magic number in DDS header";var t=new Int32Array(e,0,31);if(!(4&t[20]))throw"Unsupported format, must contain a FourCC code";var i=t[21],r=u[i]||-1;if(r<0)throw"Unsupported FourCC code: "+int32ToFourCC(i);var i=1,n=(131072&t[2]&&(i=Math.max(1,t[7])),t[4]),s=t[3],t=t[1]+4,e=new Uint8Array(e,t),t=this._image;return this._format=r,t.init(t.src,e,"DDS",n,s,i,r),t},h.test=function(e){return 542327876===new Int32Array(e,0,1)[0]},h.prototype.levelBufferSize=function(e,t,i){switch(void 0===i&&(i=0),this._format){case 33776:case 35986:return(e+3>>2)*(t+3>>2)*8;case 33778:case 33779:case 35987:case 34798:return(e+3>>2)*(t+3>>2)*16;default:return 0}},h.type="DDS",h);function h(e){return i.call(this,e)||this}e.DDSLoader=r}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){(i={})[0]=35841,i[1]=35843,i[2]=35840,i[3]=35842,i[6]=36196,i[7]=33776,i[9]=33778,i[5]=33779;var t,o=i,i=(t=e.AbstractInternalLoader,__extends(a,t),a.prototype.load=function(e){var t,i,r,n,s;if(a.test(e))return t=(s=new Int32Array(e,0,13))[2],t=o[t]||-1,i=s[7],r=s[6],n=s[11],s=s[12]+52,e=new Uint8Array(e,s),s=this._image,this._format=t,s.init(s.src,e,"PVR",i,r,n,t),s;throw"Invalid magic number in PVR header"},a.test=function(e){return 55727696===new Int32Array(e,0,1)[0]},a.prototype.levelBufferSize=function(e,t,i){switch(void 0===i&&(i=0),this._format){case 33776:case 36196:return(e+3>>2)*(t+3>>2)*8;case 33778:case 33779:return(e+3>>2)*(t+3>>2)*16;case 35840:case 35842:return Math.floor((Math.max(e,8)*Math.max(t,8)*4+7)/8);case 35841:case 35843:return Math.floor((Math.max(e,16)*Math.max(t,8)*2+7)/8);default:return 0}},a.type="PVR",a);function a(e){return t.call(this,e)||this}e.PVRTCLoader=i}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(l){var e,t,i=0,r=2,n=3,s=8,o=9,a=10,u=11,h=((e={})[3]=!0,e[9]=!0,e[10]=!0,e[11]=!0,e),c=((e={})[u]=-1,e[i]=36196,e[r]=33776,e[n]=33779,e[s]=35840,e[o]=35842,e[a]=37808,e),p=Object.keys(c).reduce(function(e,t){return e[c[+t]]=+t,e},{}),u=(t=l.AbstractInternalLoader,__extends(d,t),d.test=function(e){var e=1262195===new Uint32Array(e,0,1)[0]&&!!d.BASIS_BINDING,t=d.RGB_FORMAT&&d.RGBA_FORMAT;return!e&&t&&console.warn("[BASIS LOADER] Is Supported, but transcoder not binded or file is not BASIS file!"),t&&e},d.bindTranscoder=function(e,i){if(!e||!i)throw"Invalid state! undef fileCtr or ext invalid!";var t,r=Object.keys(i).reduce(function(e,t){t=i[t];return t?Object.assign(e,t.__proto__):e},{}),n=void 0,s=void 0;for(t in r){var o,a=r[t];void 0!==p[a]&&(o=p[a],h[o]?s={native:a,name:t,basis:o}:n={native:a,name:t,basis:o})}d.RGB_FORMAT=n||s,d.RGBA_FORMAT=s||n,d.BASIS_BINDING=e,console.log("[BASISLoader] Supported formats:","\nRGB:"+d.RGB_FORMAT.name+"\nRGBA:"+d.RGBA_FORMAT.name),l.RegisterCompressedLoader(d),l.RegisterCompressedExtensions("basis")},d.prototype.load=function(e){if(d.test(e))return this._loadAsync(e),this._image;throw"BASIS Transcoder not binded or transcoding not supported =(!"},d.prototype._loadAsync=function(e){var t=performance.now(),e=new d.BASIS_BINDING(new Uint8Array(e)),i=e.getImageWidth(0,0),r=e.getImageHeight(0,0),n=e.getHasAlpha(),s=this._image;if(!e.startTranscoding())throw"Transcoding error!";var n=n?d.RGBA_FORMAT:d.RGB_FORMAT,o=(console.log("Grats! BASIS will be transcoded to:",n),new Uint8Array(e.getImageTranscodedSizeInBytes(0,0,n.basis)));if(!e.transcodeImage(o,0,0,n.basis,!1,!1))throw"Transcoding error!";console.log("[BASISLoader] Totla transcoding time:",performance.now()-t),this._format=n.native,this._file=e;t=n.name.replace("COMPRESSED_","");return Promise.resolve(s.init(s.src,o,"BASIS|"+t,i,r,1,n.native))},d.prototype.levelBufferSize=function(e,t,i){return this._file?this._file.getImageTranscodedSizeInBytes(0,i,p[this._format]):void 0},d.BASIS_BINDING=void 0,d);function d(e){e=t.call(this,e)||this;return e.type="BASIS",e._file=void 0,e}l.BASISLoader=u}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(r){var g=window.CRN_Module;var t,v=[33776,33778,33779],e=(t=r.AbstractInternalLoader,__extends(i,t),i.prototype.load=function(e){for(var t=e.byteLength,e=new Uint8Array(e),i=g._malloc(t),r=e,n=g.HEAPU8,s=i,o=t,a=s/4,e=o%4,l=new Uint32Array(r.buffer,0,(o-e)/4),u=new Uint32Array(n.buffer),h=0;h<l.length;h++)u[a+h]=l[h];for(var c=o-e;c<o;c++)n[s+c]=r[c];var e=g._crn_get_width(i,t),p=g._crn_get_height(i,t),d=g._crn_get_levels(i,t),f=g._crn_get_dxt_format(i,t),m=g._crn_get_uncompressed_size(i,t,0),_=g._malloc(m),t=(g._crn_decompress(i,t,_,m,0),new Uint8Array(g.HEAPU8.buffer,_,m)),m=v[f],f=this._image;return this._format=m,this._caches=[i,_],f.init(f.src,t,"CRN",e,p,d,m)},i.prototype.levelBufferSize=function(e,t,i){return r.DDSLoader.prototype.levelBufferSize.call(this,e,t,i=void 0===i?0:i)},i.prototype.free=function(){g._free(this._caches[0]),g._free(this._caches[1])},i.test=function(e){return!!g},i.type="CRN",i);function i(e){return t.call(this,e)||this}r.CRNLoader=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(h){h.Loaders=[h.DDSLoader,h.PVRTCLoader,h.ASTCLoader,h.CRNLoader],PIXI.systems.TextureSystem.prototype.initCompressed=function(){var e=this.gl;this.compressedExtensions||(this.compressedExtensions={dxt:e.getExtension("WEBGL_compressed_texture_s3tc"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1")},this.compressedExtensions.crn=this.compressedExtensions.dxt)},h.RegisterCompressedLoader=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(e in h.Loaders=h.Loaders||[],t)h.Loaders.indexOf(t[e])<0&&h.Loaders.push(t[e])},h.defaultDetectedExtensions=[".png",".jpg",".json",".atlas"],h.detectExtensions=function(e,t,i){void 0===i&&(i=1);var r,n=[],s=(e instanceof PIXI.Renderer&&(e.texture.initCompressed(),(r=e.texture.compressedExtensions).dxt&&n.push(".dds"),r.pvrtc&&n.push(".pvr"),r.atc&&n.push(".atc"),r.astc&&n.push(".astc"),r.etc1&&n.push(".etc1")),n.slice(0)),o=[t||e.resolution];i&&o.push(i);for(var a=0;a<o.length;a++){for(var l="@"+o[a]+"x",u=0;u<s.length;u++)n.push(l+s[u]);for(u=0;u<h.defaultDetectedExtensions.length;u++)n.push(l+h.defaultDetectedExtensions[u])}return n}}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(s){var r=PIXI.LoaderResource;function e(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(e in t)s.TEXTURE_EXTENSIONS.indexOf(t[e])<0&&(s.TEXTURE_EXTENSIONS.push(t[e]),r.setExtensionXhrType(t[e],r.XHR_RESPONSE_TYPE.BUFFER))}s.TEXTURE_EXTENSIONS=[],s.RegisterCompressedExtensions=e;i.use=function(e,t){var i=e.url,r=i.lastIndexOf("."),n=i.lastIndexOf("?"),r=i.substring(r+1,0<n?n:i.length);if(!(s.TEXTURE_EXTENSIONS.indexOf(r)<0)){if(!e.data)throw new Error("compressedImageParser middleware for PixiJS v5 must be specified in loader.use() and must have resource.data when completed");e.compressedImage||(e.compressedImage=new s.CompressedImage(e.url),e.compressedImage.loadFromArrayBuffer(e.data,"crn"===r),e.isCompressedImage=!0,e.texture=function(e,t,i){e=new PIXI.BaseTexture(e,{scaleMode:PIXI.settings.SCALE_MODE,resolution:PIXI.utils.getResolutionOfUrl(t)}),e=new PIXI.Texture(e);i=i||t;PIXI.BaseTexture.addToCache(e.baseTexture,i),PIXI.Texture.addToCache(e,i),i!==t&&(PIXI.BaseTexture.addToCache(e.baseTexture,t),PIXI.Texture.addToCache(e,t));return e}(e.compressedImage,e.url,e.name))}t()};var t=i;function i(){}s.ImageParser=t,e("dds","crn","pvr","etc1","astc"),PIXI.Loader.registerPlugin(t)}(pixi_compressed_textures=pixi_compressed_textures||{}),(pixi_compressed_textures||(pixi_compressed_textures={})).extensionChooser=function(l){return void 0===l&&(l=[]),function(e,t){var i=e.metadata.choice;if(!i)return t();var r=e.url,n=0;if(!e._defaultUrlChoice){if(!(0<=(n=(e._defaultUrlChoice=r).lastIndexOf("."))))return t();e._baseUrl=r.substring(0,n)}for(var s=i.length-1;0<=s;s--)for(var o,r=e._baseUrl+i[s],a=0;a<l.length;a++)if(i[s]===l[a])return e.url=r,0<=(n=(o=-1<(o=i[s]).indexOf("@")?o.replace(/@[0-9.]*x/,""):o).indexOf("."))&&(o=o.substring(n+1)),e.extension=o,e.loadType=e._determineLoadType(),void t();t()}},!function(e){function t(){}t.use=function(e,t){var i,r,n,s,o;e.texture&&e._defaultUrlChoice&&e._defaultUrl!==e.url&&(r=(i=e.texture).baseTexture,n=e.url,s=e._defaultUrlChoice,0<=(o=r.textureCacheIds.indexOf(n))&&(r.textureCacheIds[o]=s,delete PIXI.utils.BaseTextureCache[e.url],PIXI.utils.BaseTextureCache[s]=r),0<=(o=i.textureCacheIds.indexOf(n))&&(i.textureCacheIds[o]=s,delete PIXI.utils.TextureCache[e.url],PIXI.utils.TextureCache[s]=r)),t()},e.ExtensionFixer=t}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){PIXI.compressedTextures=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(u){r=u.BASISLoader,__extends(n,r),n.prototype._loadAsync=function(e){var a=this,l=performance.now(),t=u.BASISLoader.BASIS_BINDING,i={genMip:!0,rgbaFormat:u.BASISLoader.RGBA_FORMAT.basis,rgbFormat:u.BASISLoader.RGB_FORMAT.basis,transfer:!0};return t.transcode(e,i).then(function(e){var t=e.width,i=e.height,r=new Uint8Array(e.buffer),n=e.hasAlpha?u.BASISLoader.RGBA_FORMAT:u.BASISLoader.RGB_FORMAT,s=n.name.replace("COMPRESSED_",""),o=a._image;return a._mips=e.mipmaps,console.log("[WorkedBASISLoader] Total transcoding time:",performance.now()-l),o.init(o.src,r,"BASIS|"+s,t,i,1,n.native)})},n.loadAndRunTranscoder=function(i){return Promise.all([fetch(i.path+"/basis_transcoder.js").then(function(e){return e.text()}),fetch(i.path+"/basis_transcoder.wasm").then(function(e){return e.arrayBuffer()})]).then(function(e){var t=e[0],e=e[1];n.runTranscoder(Object.assign(i,{jsSource:t,wasmSource:e}))})},n.runTranscoder=function(e){var t=new u.WorkedBASIS.TranscoderWorkerPool(e.threads||2),i=(r.bindTranscoder.call(this,t,e.ext),u.Loaders.indexOf(u.BASISLoader));return u.Loaders[i]=n,t.init(e.jsSource,e.wasmSource)},n.prototype.levelBufferSize=function(e,t,i){return this._mips[i].size};var r,e=n;function n(e){e=r.call(this,e)||this;return e._mips=[],e}u.WorkedBASISLoader=e}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){var n,o;function t(){this.worker=void 0,this.id=t.ID++,this.free=!1,this.initDone=!1,this.binary=void 0,this._rej=void 0,this._res=void 0}function i(e){void 0===e&&(e=0),this.workers=[],this.count=1,this.count=e||1}n=e.WorkedBASIS||(e.WorkedBASIS={}),t.prototype.init=function(e,i){var r=this;if(void 0===e&&(e=void 0),void 0===i&&(i=void 0),this.worker||(this.worker=n.generateWorker(e)),!this.worker)throw"Can't create worker";if(this.initDone)return Promise.resolve(!0);console.log("[BASIS Worker "+this.id+"] init start!"),this.worker.addEventListener("message",this._onMessage.bind(this)),this.worker.addEventListener("error",this._onError.bind(this)),this.binary=i;var t=performance.now();return new Promise(function(e,t){r._rej=t,r._res=e,r._init(i)}).then(function(e){return console.log("[BASIS Worker "+r.id+"] init done!",performance.now()-t),r.initDone=!0,r.free=!0,r.binary=e.buffer,!0})},t.prototype.transcode=function(i,r){var n,s=this;if(!this.free)throw"[BASIS Worker "+this.id+"] Is busy! Check '.free' status!";if(i&&void 0!==r.rgbaFormat&&void 0!==r.rgbFormat)return n={rgbaFormat:r.rgbaFormat,rgbFormat:r.rgbFormat,genMip:r.genMip||!1},this.free=!1,new Promise(function(e,t){s._rej=t,s._res=e,r.transfer?s.worker.postMessage({type:"transcode",buffer:i,config:n},[i]):s.worker.postMessage({type:"transcode",buffer:i,config:n})}).then(function(e){return s.free=!0,e});throw"Buffer and formats requred!"},t.prototype._init=function(e){this.worker.postMessage({type:"init",id:0,wasmBinary:e},[e])},t.prototype._onMessage=function(e){"error"===e.data.type&&this._onError(e.data.error),this._res&&this._res(e.data)},t.prototype._onError=function(e){this._rej&&this._rej(e)},t.prototype.destroy=function(){this.worker.terminate()},t.ID=0,o=t,n.BasisWorker=o,i.prototype.init=function(t,i){function r(){var e;if(!(++s>n.count))return e=new o,n.workers.push(e),e.init(t,i).then(function(){i=e.binary,r()})}var n=this,s=0;return r().then(function(){return n})},i.prototype.transcode=function(t,i){var n,s,o,a;if(this.workers&&this.workers.length)return n=this.workers,s=void 0,o=0,a=function(e){for(var t=0,i=n;t<i.length;t++){var r=i[t];if(r.free){s=r;break}}if(100<o)throw"[TranscoderWorkerPool] Can't found free worker after 100 interation!";s?e(s):setTimeout(function(){return a(e)},10*o),o++},new Promise(a).then(function(e){return console.log("[TranscoderWorkerPool] run transcoding on "+e.id+" worker"),e.transcode(t,i)});throw"[TranscoderWorkerPool] Pool empty, populate before!"},i.prototype.destroy=function(){this.workers.forEach(function(e){e.destroy()}),this.workers=void 0},n.TranscoderWorkerPool=i}(pixi_compressed_textures=pixi_compressed_textures||{}),!function(e){var n;(n=e.WorkedBASIS||(e.WorkedBASIS={})).basisWorkerSource=function(){onmessage=function(e){var e=e.data,t=self[e.type];t&&t(e)}},n.generateWorker=function(e){var t=(r=n.basisWorkerSource.toString()).indexOf("{"),i=r.lastIndexOf("}"),r=e+"\n"+r.substring(t+1,i);return new Worker(URL.createObjectURL(new Blob([r])))}}(pixi_compressed_textures=pixi_compressed_textures||{});var __filters=function(e,a,l,u,h,c,F,N){"use strict";var z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function t(e,t){function i(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var B,U,j,G,X,H,Y,W,V,q,K,Z,J,Q,$,ee,te,ie,re,ne,se,oe,ae,le,ue,he,ce,pe,de,fe,me,_e,ge,ve,ye,be,xe=function(){return(xe=Object.assign||function(e){for(var t,i=arguments,r=1,n=arguments.length;r<n;r++)for(var s in t=i[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},p=(Object.create,Object.create,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}"),Te=(t(ct,be=a.Filter),ct.prototype.apply=function(e,t,i,r){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,e.applyFilter(this,t,i,r)},ct),we=(t(ht,ye=a.Filter),Object.defineProperty(ht.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(e){this.uniforms.threshold=e},enumerable:!1,configurable:!0}),ht),d=(t(L,ve=a.Filter),L.prototype.apply=function(e,t,i,r){var n,s=this._pixelSize.x/t._frame.width,o=this._pixelSize.y/t._frame.height;if(1===this._quality||0===this._blur)n=this._kernels[0]+.5,this.uniforms.uOffset[0]=n*s,this.uniforms.uOffset[1]=n*o,e.applyFilter(this,t,i,r);else{for(var a,l=e.getFilterTexture(),u=t,h=l,c=this._quality-1,p=0;p<c;p++)n=this._kernels[p]+.5,this.uniforms.uOffset[0]=n*s,this.uniforms.uOffset[1]=n*o,e.applyFilter(this,u,h,1),a=u,u=h,h=a;n=this._kernels[c]+.5,this.uniforms.uOffset[0]=n*s,this.uniforms.uOffset[1]=n*o,e.applyFilter(this,u,i,r),e.returnFilterTexture(l)}},L.prototype._updatePadding=function(){this.padding=Math.ceil(this._kernels.reduce(function(e,t){return e+t+.5},0))},L.prototype._generateKernels=function(){var e=this._blur,t=this._quality,i=[e];if(0<e)for(var r=e,n=e/t,s=1;s<t;s++)i.push(r-=n);this._kernels=i,this._updatePadding()},Object.defineProperty(L.prototype,"kernels",{get:function(){return this._kernels},set:function(e){Array.isArray(e)&&0<e.length?(this._kernels=e,this._quality=e.length,this._blur=Math.max.apply(Math,e)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(e){"number"==typeof e?(this._pixelSize.x=e,this._pixelSize.y=e):Array.isArray(e)?(this._pixelSize.x=e[0],this._pixelSize.y=e[1]):e instanceof l.Point?(this._pixelSize.x=e.x,this._pixelSize.y=e.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"quality",{get:function(){return this._quality},set:function(e){this._quality=Math.max(1,Math.round(e)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"blur",{get:function(){return this._blur},set:function(e){this._blur=e,this._generateKernels()},enumerable:!1,configurable:!0}),L),Ee=(t(D,ge=a.Filter),D.prototype.apply=function(e,t,i,r,n){var s=e.getFilterTexture(),n=(this._extractFilter.apply(e,t,s,1,n),e.getFilterTexture());this._blurFilter.apply(e,s,n,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=n,e.applyFilter(this,t,i,r),e.returnFilterTexture(n),e.returnFilterTexture(s)},Object.defineProperty(D.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e,this._extractFilter&&(this._extractFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(e){this._extractFilter.threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(e){this._blurFilter.kernels=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(e){this._blurFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(e){this._blurFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(e){this._blurFilter.pixelSize=e},enumerable:!1,configurable:!0}),D.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:u.settings.FILTER_RESOLUTION},D),Se=(t(ut,_e=a.Filter),Object.defineProperty(ut.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(e){this.uniforms.pixelSize=e},enumerable:!1,configurable:!0}),ut),Ae=(t(I,me=a.Filter),I.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(I.prototype,"rotation",{get:function(){return this._angle/l.DEG_TO_RAD},set:function(e){this._angle=e*l.DEG_TO_RAD,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"thickness",{get:function(){return this._thickness},set:function(e){this._thickness=e,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"lightColor",{get:function(){return h.rgb2hex(this.uniforms.lightColor)},set:function(e){h.hex2rgb(e,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(e){this.uniforms.lightAlpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"shadowColor",{get:function(){return h.rgb2hex(this.uniforms.shadowColor)},set:function(e){h.hex2rgb(e,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(e){this.uniforms.shadowAlpha=e},enumerable:!1,configurable:!0}),I),ke=(t(M,fe=a.Filter),M.prototype.apply=function(e,t,i,r){var n=e.getFilterTexture();this.defaultFilter.apply(e,t,i,r),this.blurXFilter.apply(e,t,n,1),this.blurYFilter.apply(e,n,i,0),e.returnFilterTexture(n)},Object.defineProperty(M.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e},enumerable:!1,configurable:!0}),M),Pe=(t(C,de=a.Filter),C.prototype.apply=function(e,t,i,r){var n=t.filterFrame,s=n.width,n=n.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,e.applyFilter(this,t,i,r)},Object.defineProperty(C.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(e){this.uniforms.radius=e},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(e){this.uniforms.strength=e},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"center",{get:function(){return this.uniforms.center},set:function(e){this.uniforms.center=e},enumerable:!1,configurable:!0}),C.defaults={center:[.5,.5],radius:100,strength:1},C),Oe=(t(R,pe=a.Filter),R.prototype.apply=function(e,t,i,r){this.uniforms._mix=this.mix,e.applyFilter(this,t,i,r)},Object.defineProperty(R.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"colorMap",{get:function(){return this._colorMap},set:function(e){var t;e&&(null!=(t=e=e instanceof a.Texture?e:a.Texture.from(e))&&t.baseTexture&&(e.baseTexture.scaleMode=this._scaleMode,e.baseTexture.mipmap=c.MIPMAP_MODES.OFF,this._size=e.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=e),this._colorMap=e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"nearest",{get:function(){return this._nearest},set:function(e){this._nearest=e,this._scaleMode=e?c.SCALE_MODES.NEAREST:c.SCALE_MODES.LINEAR;e=this._colorMap;e&&e.baseTexture&&(e.baseTexture._glTextures={},e.baseTexture.scaleMode=this._scaleMode,e.baseTexture.mipmap=c.MIPMAP_MODES.OFF,e._updateID++,e.baseTexture.emit("update",e.baseTexture))},enumerable:!1,configurable:!0}),R.prototype.updateColorMap=function(){var e=this._colorMap;e&&e.baseTexture&&(e._updateID++,e.baseTexture.emit("update",e.baseTexture),this.colorMap=e)},R.prototype.destroy=function(e){void 0===e&&(e=!1),this._colorMap&&this._colorMap.destroy(e),pe.prototype.destroy.call(this)},R),Re=(t(lt,ce=a.Filter),Object.defineProperty(lt.prototype,"color",{get:function(){return this._color},set:function(e){var t=this.uniforms.color;"number"==typeof e?(h.hex2rgb(e,t),this._color=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._color=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"alpha",{get:function(){return this._alpha},set:function(e){this.uniforms.alpha=e,this._alpha=e},enumerable:!1,configurable:!0}),lt),Ce=(t(O,he=a.Filter),Object.defineProperty(O.prototype,"originalColor",{get:function(){return this._originalColor},set:function(e){var t=this.uniforms.originalColor;"number"==typeof e?(h.hex2rgb(e,t),this._originalColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._originalColor=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"newColor",{get:function(){return this._newColor},set:function(e){var t=this.uniforms.newColor;"number"==typeof e?(h.hex2rgb(e,t),this._newColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._newColor=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(e){this.uniforms.epsilon=e},enumerable:!1,configurable:!0}),O),Me=(t(P,ue=a.Filter),Object.defineProperty(P.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(e){var i=this;e.forEach(function(e,t){i.uniforms.matrix[t]=e})},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(e){this.uniforms.texelSize[0]=1/e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(e){this.uniforms.texelSize[1]=1/e},enumerable:!1,configurable:!0}),P),Ie=(t(at,le=a.Filter),at),De=(t(k,ae=a.Filter),k.prototype.apply=function(e,t,i,r){var n=t.filterFrame,s=n.width,n=n.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,this.uniforms.seed=this.seed,this.uniforms.time=this.time,e.applyFilter(this,t,i,r)},Object.defineProperty(k.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(e){this.uniforms.curvature=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(e){this.uniforms.lineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(e){this.uniforms.lineContrast=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(e){this.uniforms.verticalLine=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(e){this.uniforms.noise=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(e){this.uniforms.noiseSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(e){this.uniforms.vignetting=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(e){this.uniforms.vignettingAlpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(e){this.uniforms.vignettingBlur=e},enumerable:!1,configurable:!0}),k.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},k),Le=(t(A,oe=a.Filter),Object.defineProperty(A.prototype,"scale",{get:function(){return this.uniforms.scale},set:function(e){this.uniforms.scale=e},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"angle",{get:function(){return this.uniforms.angle},set:function(e){this.uniforms.angle=e},enumerable:!1,configurable:!0}),A),Fe=(t(S,se=a.Filter),S.prototype.apply=function(e,t,i,r){var n=e.getFilterTexture();this._tintFilter.apply(e,t,n,1),this._blurFilter.apply(e,n,i,r),!0!==this.shadowOnly&&e.applyFilter(this,t,i,0),e.returnFilterTexture(n)},S.prototype._updatePadding=function(){this.padding=this.distance+2*this.blur},S.prototype._updateShift=function(){this._tintFilter.uniforms.shift.set(this.distance*Math.cos(this.angle),this.distance*Math.sin(this.angle))},Object.defineProperty(S.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e,this._tintFilter&&(this._tintFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"distance",{get:function(){return this._distance},set:function(e){this._distance=e,this._updatePadding(),this._updateShift()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rotation",{get:function(){return this.angle/l.DEG_TO_RAD},set:function(e){this.angle=e*l.DEG_TO_RAD,this._updateShift()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"alpha",{get:function(){return this._tintFilter.uniforms.alpha},set:function(e){this._tintFilter.uniforms.alpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"color",{get:function(){return h.rgb2hex(this._tintFilter.uniforms.color)},set:function(e){h.hex2rgb(e,this._tintFilter.uniforms.color)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(e){this._blurFilter.kernels=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(e){this._blurFilter.blur=e,this._updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(e){this._blurFilter.quality=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(e){this._blurFilter.pixelSize=e},enumerable:!1,configurable:!0}),S.defaults={rotation:45,distance:5,color:0,alpha:.5,shadowOnly:!1,kernels:null,blur:2,quality:3,pixelSize:1,resolution:u.settings.FILTER_RESOLUTION},S),Ne=(t(ot,ne=a.Filter),Object.defineProperty(ot.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(e){this.uniforms.strength=e},enumerable:!1,configurable:!0}),ot),ze=(t(E,re=a.Filter),E.prototype.apply=function(e,t,i,r){var n=t.filterFrame,s=n.width,n=n.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,this.uniforms.aspect=n/s,this.uniforms.seed=this.seed,this.uniforms.offset=this.offset,this.uniforms.fillMode=this.fillMode,e.applyFilter(this,t,i,r)},E.prototype._randomizeSizes=function(){var e=this._sizes,t=this._slices-1,i=this.sampleSize,r=Math.min(this.minSize/i,.9/this._slices);if(this.average)for(var n=this._slices,s=1,o=0;o<t;o++){var a=Math.max(s/(n-o)*(1-.6*Math.random()),r);s-=e[o]=a}else for(var s=1,l=Math.sqrt(1/this._slices),o=0;o<t;o++)a=Math.max(l*s*Math.random(),r),s-=e[o]=a;e[t]=s,this.shuffle()},E.prototype.shuffle=function(){for(var e=this._sizes,t=this._slices-1;0<t;t--){var i=Math.random()*t>>0,r=e[t];e[t]=e[i],e[i]=r}},E.prototype._randomizeOffsets=function(){for(var e=0;e<this._slices;e++)this._offsets[e]=Math.random()*(Math.random()<.5?-1:1)},E.prototype.refresh=function(){this._randomizeSizes(),this._randomizeOffsets(),this.redraw()},E.prototype.redraw=function(){var e=this.sampleSize,t=this.texture,i=this._canvas.getContext("2d");i.clearRect(0,0,8,e);for(var r=0,n=0;n<this._slices;n++){var s=Math.floor(256*this._offsets[n]),o=this._sizes[n]*e;i.fillStyle="rgba("+(0<s?s:0)+", "+(s<0?-s:0)+", 0, 1)",i.fillRect(0,r>>0,e,1+o>>0),r+=o}t.baseTexture.update(),this.uniforms.displacementMap=t},Object.defineProperty(E.prototype,"sizes",{get:function(){return this._sizes},set:function(e){for(var t=Math.min(this._slices,e.length),i=0;i<t;i++)this._sizes[i]=e[i]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"offsets",{get:function(){return this._offsets},set:function(e){for(var t=Math.min(this._slices,e.length),i=0;i<t;i++)this._offsets[i]=e[i]},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"slices",{get:function(){return this._slices},set:function(e){this._slices!==e&&(this._slices=e,this.uniforms.slices=e,this._sizes=this.uniforms.slicesWidth=new Float32Array(e),this._offsets=this.uniforms.slicesOffset=new Float32Array(e),this.refresh())},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction!==e&&(e=(this._direction=e)*l.DEG_TO_RAD,this.uniforms.sinDir=Math.sin(e),this.uniforms.cosDir=Math.cos(e))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"red",{get:function(){return this.uniforms.red},set:function(e){this.uniforms.red=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"green",{get:function(){return this.uniforms.green},set:function(e){this.uniforms.green=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"blue",{get:function(){return this.uniforms.blue},set:function(e){this.uniforms.blue=e},enumerable:!1,configurable:!0}),E.prototype.destroy=function(){var e;null!=(e=this.texture)&&e.destroy(!0),this.texture=this._canvas=this.red=this.green=this.blue=this._sizes=this._offsets=null},E.defaults={slices:5,offset:100,direction:0,fillMode:0,average:!1,seed:0,red:[0,0],green:[0,0],blue:[0,0],minSize:8,sampleSize:512},E.TRANSPARENT=0,E.ORIGINAL=1,E.LOOP=2,E.CLAMP=3,E.MIRROR=4,E),Be=(t(w,ie=a.Filter),Object.defineProperty(w.prototype,"color",{get:function(){return h.rgb2hex(this.uniforms.glowColor)},set:function(e){h.hex2rgb(e,this.uniforms.glowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"outerStrength",{get:function(){return this.uniforms.outerStrength},set:function(e){this.uniforms.outerStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"innerStrength",{get:function(){return this.uniforms.innerStrength},set:function(e){this.uniforms.innerStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"knockout",{get:function(){return this.uniforms.knockout},set:function(e){this.uniforms.knockout=e},enumerable:!1,configurable:!0}),w.defaults={distance:10,outerStrength:4,innerStrength:0,color:16777215,quality:.1,knockout:!1},w),Ue=(t(T,te=a.Filter),T.prototype.apply=function(e,t,i,r){var n=t.filterFrame,s=n.width,n=n.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=n,this.uniforms.aspect=n/s,this.uniforms.time=this.time,this.uniforms.alpha=this.alpha,e.applyFilter(this,t,i,r)},Object.defineProperty(T.prototype,"angle",{get:function(){return this._angle},set:function(e){e=(this._angle=e)*l.DEG_TO_RAD;this._angleLight.x=Math.cos(e),this._angleLight.y=Math.sin(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"gain",{get:function(){return this.uniforms.gain},set:function(e){this.uniforms.gain=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"lacunarity",{get:function(){return this.uniforms.lacunarity},set:function(e){this.uniforms.lacunarity=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(e){this.uniforms.alpha=e},enumerable:!1,configurable:!0}),T.defaults={angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0],alpha:1},T),je=(t(x,ee=a.Filter),x.prototype.apply=function(e,t,i,r){var n=this.velocity,s=n.x,n=n.y;this.uniforms.uKernelSize=0!==s||0!==n?this.kernelSize:0,e.applyFilter(this,t,i,r)},Object.defineProperty(x.prototype,"velocity",{get:function(){return this._velocity},set:function(e){this.setVelocity(e)},enumerable:!1,configurable:!0}),x.prototype.setVelocity=function(e){var t,i;Array.isArray(e)?(t=e[0],i=e[1],this._velocity.set(t,i)):this._velocity.copyFrom(e)},x.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=1+(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)},Object.defineProperty(x.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(e){this.uniforms.uOffset=e},enumerable:!1,configurable:!0}),x),Ge=(t(b,$=a.Filter),Object.defineProperty(b.prototype,"replacements",{get:function(){return this._replacements},set:function(e){var t=this.uniforms.originalColors,i=this.uniforms.targetColors,r=e.length;if(r>this._maxColors)throw new Error("Length of replacements ("+r+") exceeds the maximum colors length ("+this._maxColors+")");t[3*r]=-1;for(var n=0;n<r;n++){var s=e[n],o=s[0],o=("number"==typeof o?o=h.hex2rgb(o):s[0]=h.rgb2hex(o),t[3*n]=o[0],t[3*n+1]=o[1],t[3*n+2]=o[2],s[1]);"number"==typeof o?o=h.hex2rgb(o):s[1]=h.rgb2hex(o),i[3*n]=o[0],i[3*n+1]=o[1],i[3*n+2]=o[2]}this._replacements=e},enumerable:!1,configurable:!0}),b.prototype.refresh=function(){this.replacements=this._replacements},Object.defineProperty(b.prototype,"maxColors",{get:function(){return this._maxColors},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(e){this.uniforms.epsilon=e},enumerable:!1,configurable:!0}),b),Xe=(t(y,Q=a.Filter),y.prototype.apply=function(e,t,i,r){var n;this.uniforms.dimensions[0]=null==(n=t.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=t.filterFrame)?void 0:n.height,this.uniforms.seed=this.seed,e.applyFilter(this,t,i,r)},Object.defineProperty(y.prototype,"sepia",{get:function(){return this.uniforms.sepia},set:function(e){this.uniforms.sepia=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(e){this.uniforms.noise=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(e){this.uniforms.noiseSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratch",{get:function(){return this.uniforms.scratch},set:function(e){this.uniforms.scratch=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratchDensity",{get:function(){return this.uniforms.scratchDensity},set:function(e){this.uniforms.scratchDensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scratchWidth",{get:function(){return this.uniforms.scratchWidth},set:function(e){this.uniforms.scratchWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(e){this.uniforms.vignetting=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(e){this.uniforms.vignettingAlpha=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(e){this.uniforms.vignettingBlur=e},enumerable:!1,configurable:!0}),y.defaults={sepia:.3,noise:.3,noiseSize:1,scratch:.5,scratchDensity:.3,scratchWidth:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3},y),He=(t(v,J=a.Filter),v.getAngleStep=function(e){e=Math.max(e*v.MAX_SAMPLES,v.MIN_SAMPLES);return(2*Math.PI/e).toFixed(7)},v.prototype.apply=function(e,t,i,r){this.uniforms.thickness[0]=this._thickness/t._frame.width,this.uniforms.thickness[1]=this._thickness/t._frame.height,e.applyFilter(this,t,i,r)},Object.defineProperty(v.prototype,"color",{get:function(){return h.rgb2hex(this.uniforms.outlineColor)},set:function(e){h.hex2rgb(e,this.uniforms.outlineColor)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"thickness",{get:function(){return this._thickness},set:function(e){this._thickness=e,this.padding=e},enumerable:!1,configurable:!0}),v.MIN_SAMPLES=1,v.MAX_SAMPLES=100,v),Ye=(t(st,Z=a.Filter),Object.defineProperty(st.prototype,"size",{get:function(){return this.uniforms.size},set:function(e){this.uniforms.size=e="number"==typeof e?[e,e]:e},enumerable:!1,configurable:!0}),st),We=(t(g,K=a.Filter),g.prototype.apply=function(e,t,i,r){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0,e.applyFilter(this,t,i,r)},Object.defineProperty(g.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this.uniforms.uRadian=e*Math.PI/180},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"center",{get:function(){return this.uniforms.uCenter},set:function(e){this.uniforms.uCenter=e},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"radius",{get:function(){return this.uniforms.uRadius},set:function(e){this.uniforms.uRadius=e=e<0||e===1/0?-1:e},enumerable:!1,configurable:!0}),g),Ve=(t(_,q=a.Filter),_.prototype.apply=function(e,t,i,r){var n;this.uniforms.dimensions[0]=null==(n=t.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=t.filterFrame)?void 0:n.height,this.uniforms.time=this.time,e.applyFilter(this,t,i,r)},Object.defineProperty(_.prototype,"mirror",{get:function(){return this.uniforms.mirror},set:function(e){this.uniforms.mirror=e},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"boundary",{get:function(){return this.uniforms.boundary},set:function(e){this.uniforms.boundary=e},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"amplitude",{get:function(){return this.uniforms.amplitude},set:function(e){this.uniforms.amplitude[0]=e[0],this.uniforms.amplitude[1]=e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"waveLength",{get:function(){return this.uniforms.waveLength},set:function(e){this.uniforms.waveLength[0]=e[0],this.uniforms.waveLength[1]=e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"alpha",{get:function(){return this.uniforms.alpha},set:function(e){this.uniforms.alpha[0]=e[0],this.uniforms.alpha[1]=e[1]},enumerable:!1,configurable:!0}),_.defaults={mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0},_),qe=(t(m,V=a.Filter),Object.defineProperty(m.prototype,"red",{get:function(){return this.uniforms.red},set:function(e){this.uniforms.red=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"green",{get:function(){return this.uniforms.green},set:function(e){this.uniforms.green=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"blue",{get:function(){return this.uniforms.blue},set:function(e){this.uniforms.blue=e},enumerable:!1,configurable:!0}),m),Ke=(t(f,W=a.Filter),f.prototype.apply=function(e,t,i,r){this.uniforms.time=this.time,e.applyFilter(this,t,i,r)},Object.defineProperty(f.prototype,"center",{get:function(){return this.uniforms.center},set:function(e){this.uniforms.center=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"amplitude",{get:function(){return this.uniforms.amplitude},set:function(e){this.uniforms.amplitude=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"wavelength",{get:function(){return this.uniforms.wavelength},set:function(e){this.uniforms.wavelength=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"brightness",{get:function(){return this.uniforms.brightness},set:function(e){this.uniforms.brightness=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"speed",{get:function(){return this.uniforms.speed},set:function(e){this.uniforms.speed=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(e){this.uniforms.radius=e},enumerable:!1,configurable:!0}),f.defaults={amplitude:30,wavelength:160,brightness:1,speed:500,radius:-1},f),Ze=(t(o,Y=a.Filter),o.prototype.apply=function(e,t,i,r){var n;this.uniforms.dimensions[0]=null==(n=t.filterFrame)?void 0:n.width,this.uniforms.dimensions[1]=null==(n=t.filterFrame)?void 0:n.height,e.applyFilter(this,t,i,r)},Object.defineProperty(o.prototype,"texture",{get:function(){return this.uniforms.uLightmap},set:function(e){this.uniforms.uLightmap=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"color",{get:function(){return this._color},set:function(e){var t=this.uniforms.ambientColor;"number"==typeof e?(h.hex2rgb(e,t),this._color=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],this._color=h.rgb2hex(t))},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"alpha",{get:function(){return this.uniforms.ambientColor[3]},set:function(e){this.uniforms.ambientColor[3]=e},enumerable:!1,configurable:!0}),o),Je=(t(s,H=a.Filter),s.prototype.updateDelta=function(){this.uniforms.delta.x=0,this.uniforms.delta.y=0},Object.defineProperty(s.prototype,"blur",{get:function(){return this.uniforms.blur},set:function(e){this.uniforms.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"gradientBlur",{get:function(){return this.uniforms.gradientBlur},set:function(e){this.uniforms.gradientBlur=e},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"start",{get:function(){return this.uniforms.start},set:function(e){this.uniforms.start=e,this.updateDelta()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"end",{get:function(){return this.uniforms.end},set:function(e){this.uniforms.end=e,this.updateDelta()},enumerable:!1,configurable:!0}),s),Qe=(t(nt,X=Je),nt.prototype.updateDelta=function(){var e=this.uniforms.end.x-this.uniforms.start.x,t=this.uniforms.end.y-this.uniforms.start.y,i=Math.sqrt(e*e+t*t);this.uniforms.delta.x=e/i,this.uniforms.delta.y=t/i},nt),$e=(t(rt,G=Je),rt.prototype.updateDelta=function(){var e=this.uniforms.end.x-this.uniforms.start.x,t=this.uniforms.end.y-this.uniforms.start.y,i=Math.sqrt(e*e+t*t);this.uniforms.delta.x=-t/i,this.uniforms.delta.y=e/i},rt),et=(t(n,j=a.Filter),n.prototype.apply=function(e,t,i,r){var n=e.getFilterTexture();this.tiltShiftXFilter.apply(e,t,n,1),this.tiltShiftYFilter.apply(e,n,i,r),e.returnFilterTexture(n)},Object.defineProperty(n.prototype,"blur",{get:function(){return this.tiltShiftXFilter.blur},set:function(e){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gradientBlur",{get:function(){return this.tiltShiftXFilter.gradientBlur},set:function(e){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"start",{get:function(){return this.tiltShiftXFilter.start},set:function(e){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"end",{get:function(){return this.tiltShiftXFilter.end},set:function(e){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=e},enumerable:!1,configurable:!0}),n),tt=(t(r,U=a.Filter),Object.defineProperty(r.prototype,"offset",{get:function(){return this.uniforms.offset},set:function(e){this.uniforms.offset=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(e){this.uniforms.radius=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.uniforms.angle},set:function(e){this.uniforms.angle=e},enumerable:!1,configurable:!0}),r.defaults={radius:200,angle:4,padding:20,offset:new l.Point},r),it=(t(i,B=a.Filter),Object.defineProperty(i.prototype,"center",{get:function(){return this.uniforms.uCenter},set:function(e){this.uniforms.uCenter=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"strength",{get:function(){return this.uniforms.uStrength},set:function(e){this.uniforms.uStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.uniforms.uInnerRadius},set:function(e){this.uniforms.uInnerRadius=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.uniforms.uRadius},set:function(e){this.uniforms.uRadius=e=e<0||e===1/0?-1:e},enumerable:!1,configurable:!0}),i.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32},i);function i(e){var e=Object.assign(i.defaults,e),t=e.maxKernelSize,e=function(e,t){var i={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}(e,["maxKernelSize"]),t=B.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uCenter;\nuniform float uStrength;\nuniform float uInnerRadius;\nuniform float uRadius;\n\nconst float MAX_KERNEL_SIZE = ${maxKernelSize};\n\n// author: http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float rand(vec2 co, float seed) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(co + seed, vec2(a, b)), sn = mod(dt, 3.14159);\n return fract(sin(sn) * c + seed);\n}\n\nvoid main() {\n\n float minGradient = uInnerRadius * 0.3;\n float innerRadius = (uInnerRadius + minGradient * 0.5) / filterArea.x;\n\n float gradient = uRadius * 0.3;\n float radius = (uRadius - gradient * 0.5) / filterArea.x;\n\n float countLimit = MAX_KERNEL_SIZE;\n\n vec2 dir = vec2(uCenter.xy / filterArea.xy - vTextureCoord);\n float dist = length(vec2(dir.x, dir.y * filterArea.y / filterArea.x));\n\n float strength = uStrength;\n\n float delta = 0.0;\n float gap;\n if (dist < innerRadius) {\n delta = innerRadius - dist;\n gap = minGradient;\n } else if (radius >= 0.0 && dist > radius) { // radius < 0 means it's infinity\n delta = dist - radius;\n gap = gradient;\n }\n\n if (delta > 0.0) {\n float normalCount = gap / filterArea.x;\n delta = (normalCount - delta) / normalCount;\n countLimit *= delta;\n strength *= delta;\n if (countLimit < 1.0)\n {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n }\n\n // randomize the lookup values to hide the fixed number of samples\n float offset = rand(vTextureCoord, 0.0);\n\n float total = 0.0;\n vec4 color = vec4(0.0);\n\n dir *= strength;\n\n for (float t = 0.0; t < MAX_KERNEL_SIZE; t++) {\n float percent = (t + offset) / MAX_KERNEL_SIZE;\n float weight = 4.0 * (percent - percent * percent);\n vec2 p = vTextureCoord + dir * percent;\n vec4 sample = texture2D(uSampler, p);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample * weight;\n total += weight;\n\n if (t > countLimit){\n break;\n }\n }\n\n color /= total;\n // switch back from pre-multiplied alpha\n // color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n".replace("${maxKernelSize}",t.toFixed(1)))||this;return Object.assign(t,e),t}function r(e){var t=U.call(this,p,"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 twist(vec2 coord)\n{\n coord -= offset;\n\n float dist = length(coord);\n\n if (dist < radius)\n {\n float ratioDist = (radius - dist) / radius;\n float angleMod = ratioDist * ratioDist * angle;\n float s = sin(angleMod);\n float c = cos(angleMod);\n coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n }\n\n coord += offset;\n\n return coord;\n}\n\nvoid main(void)\n{\n\n vec2 coord = mapCoord(vTextureCoord);\n\n coord = twist(coord);\n\n coord = unmapCoord(coord);\n\n gl_FragColor = texture2D(uSampler, coord );\n\n}\n")||this;return Object.assign(t,r.defaults,e),t}function n(e,t,i,r){void 0===e&&(e=100),void 0===t&&(t=600);var n=j.call(this)||this;return n.tiltShiftXFilter=new Qe(e,t,i,r),n.tiltShiftYFilter=new $e(e,t,i,r),n}function rt(){return null!==G&&G.apply(this,arguments)||this}function nt(){return null!==X&&X.apply(this,arguments)||this}function s(e,t,i,r){void 0===e&&(e=100),void 0===t&&(t=600);var n=H.call(this,p,"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float blur;\nuniform float gradientBlur;\nuniform vec2 start;\nuniform vec2 end;\nuniform vec2 delta;\nuniform vec2 texSize;\n\nfloat random(vec3 scale, float seed)\n{\n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));\n float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * texSize - start, normal)) / gradientBlur) * blur;\n\n for (float t = -30.0; t <= 30.0; t++)\n {\n float percent = (t + offset - 0.5) / 30.0;\n float weight = 1.0 - abs(percent);\n vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * radius);\n sample.rgb *= sample.a;\n color += sample * weight;\n total += weight;\n }\n\n color /= total;\n color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n")||this;return n.uniforms.blur=e,n.uniforms.gradientBlur=t,n.uniforms.start=i||new l.Point(0,window.innerHeight/2),n.uniforms.end=r||new l.Point(600,window.innerHeight/2),n.uniforms.delta=new l.Point(30,30),n.uniforms.texSize=new l.Point(window.innerWidth,window.innerHeight),n.updateDelta(),n}function o(e,t,i){void 0===t&&(t=0),void 0===i&&(i=1);var r=Y.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D uLightmap;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\nuniform vec4 ambientColor;\nvoid main() {\n vec4 diffuseColor = texture2D(uSampler, vTextureCoord);\n vec2 lightCoord = (vTextureCoord * filterArea.xy) / dimensions;\n vec4 light = texture2D(uLightmap, lightCoord);\n vec3 ambient = ambientColor.rgb * ambientColor.a;\n vec3 intensity = ambient + light.rgb;\n vec3 finalColor = diffuseColor.rgb * intensity;\n gl_FragColor = vec4(finalColor, diffuseColor.a);\n}\n")||this;return r._color=0,r.uniforms.dimensions=new Float32Array(2),r.uniforms.ambientColor=new Float32Array([0,0,0,i]),r.texture=e,r.color=t,r}function f(e,t,i){void 0===e&&(e=[0,0]),void 0===i&&(i=0);var r=W.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nuniform vec2 center;\n\nuniform float amplitude;\nuniform float wavelength;\n// uniform float power;\nuniform float brightness;\nuniform float speed;\nuniform float radius;\n\nuniform float time;\n\nconst float PI = 3.14159;\n\nvoid main()\n{\n float halfWavelength = wavelength * 0.5 / filterArea.x;\n float maxRadius = radius / filterArea.x;\n float currentRadius = time * speed / filterArea.x;\n\n float fade = 1.0;\n\n if (maxRadius > 0.0) {\n if (currentRadius > maxRadius) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n fade = 1.0 - pow(currentRadius / maxRadius, 2.0);\n }\n\n vec2 dir = vec2(vTextureCoord - center / filterArea.xy);\n dir.y *= filterArea.y / filterArea.x;\n float dist = length(dir);\n\n if (dist <= 0.0 || dist < currentRadius - halfWavelength || dist > currentRadius + halfWavelength) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n\n vec2 diffUV = normalize(dir);\n\n float diff = (dist - currentRadius) / halfWavelength;\n\n float p = 1.0 - pow(abs(diff), 2.0);\n\n // float powDiff = diff * pow(p, 2.0) * ( amplitude * fade );\n float powDiff = 1.25 * sin(diff * PI) * p * ( amplitude * fade );\n\n vec2 offset = diffUV * powDiff / filterArea.xy;\n\n // Do clamp :\n vec2 coord = vTextureCoord + offset;\n vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n vec4 color = texture2D(uSampler, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n // No clamp :\n // gl_FragColor = texture2D(uSampler, vTextureCoord + offset);\n\n color.rgb *= 1.0 + (brightness - 1.0) * p * fade;\n\n gl_FragColor = color;\n}\n")||this;return r.center=e,Object.assign(r,f.defaults,t),r.time=i,r}function m(e,t,i){void 0===e&&(e=[-10,0]),void 0===t&&(t=[0,10]),void 0===i&&(i=[0,0]);var r=V.call(this,p,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nvoid main(void)\n{\n gl_FragColor.r = texture2D(uSampler, vTextureCoord + red/filterArea.xy).r;\n gl_FragColor.g = texture2D(uSampler, vTextureCoord + green/filterArea.xy).g;\n gl_FragColor.b = texture2D(uSampler, vTextureCoord + blue/filterArea.xy).b;\n gl_FragColor.a = texture2D(uSampler, vTextureCoord).a;\n}\n")||this;return r.red=e,r.green=t,r.blue=i,r}function _(e){var t=q.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nuniform bool mirror;\nuniform float boundary;\nuniform vec2 amplitude;\nuniform vec2 waveLength;\nuniform vec2 alpha;\nuniform float time;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n vec2 coord = pixelCoord / dimensions;\n\n if (coord.y < boundary) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n\n float k = (coord.y - boundary) / (1. - boundary + 0.0001);\n float areaY = boundary * dimensions.y / filterArea.y;\n float v = areaY + areaY - vTextureCoord.y;\n float y = mirror ? v : vTextureCoord.y;\n\n float _amplitude = ((amplitude.y - amplitude.x) * k + amplitude.x ) / filterArea.x;\n float _waveLength = ((waveLength.y - waveLength.x) * k + waveLength.x) / filterArea.y;\n float _alpha = (alpha.y - alpha.x) * k + alpha.x;\n\n float x = vTextureCoord.x + cos(v * 6.28 / _waveLength - time) * _amplitude;\n x = clamp(x, filterClamp.x, filterClamp.z);\n\n vec4 color = texture2D(uSampler, vec2(x, y));\n\n gl_FragColor = color * _alpha;\n}\n")||this;return t.time=0,t.uniforms.amplitude=new Float32Array(2),t.uniforms.waveLength=new Float32Array(2),t.uniforms.alpha=new Float32Array(2),t.uniforms.dimensions=new Float32Array(2),Object.assign(t,_.defaults,e),t}function g(e,t,i,r){void 0===e&&(e=0),void 0===t&&(t=[0,0]),void 0===i&&(i=5),void 0===r&&(r=-1);var n=K.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float uRadian;\nuniform vec2 uCenter;\nuniform float uRadius;\nuniform int uKernelSize;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n float aspect = filterArea.y / filterArea.x;\n vec2 center = uCenter.xy / filterArea.xy;\n float gradient = uRadius / filterArea.x * 0.3;\n float radius = uRadius / filterArea.x - gradient * 0.5;\n int k = uKernelSize - 1;\n\n vec2 coord = vTextureCoord;\n vec2 dir = vec2(center - coord);\n float dist = length(vec2(dir.x, dir.y * aspect));\n\n float radianStep = uRadian;\n if (radius >= 0.0 && dist > radius) {\n float delta = dist - radius;\n float gap = gradient;\n float scale = 1.0 - abs(delta / gap);\n if (scale <= 0.0) {\n gl_FragColor = color;\n return;\n }\n radianStep *= scale;\n }\n radianStep /= float(k);\n\n float s = sin(radianStep);\n float c = cos(radianStep);\n mat2 rotationMatrix = mat2(vec2(c, -s), vec2(s, c));\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n\n coord -= center;\n coord.y *= aspect;\n coord = rotationMatrix * coord;\n coord.y /= aspect;\n coord += center;\n\n vec4 sample = texture2D(uSampler, coord);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample;\n }\n\n gl_FragColor = color / float(uKernelSize);\n}\n")||this;return n._angle=0,n.angle=e,n.center=t,n.kernelSize=i,n.radius=r,n}function st(e){void 0===e&&(e=10);var t=Z.call(this,p,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform vec2 size;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n\treturn floor( coord / size ) * size;\n}\n\nvoid main(void)\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n coord = pixelate(coord, size);\n\n coord = unmapCoord(coord);\n\n gl_FragColor = texture2D(uSampler, coord);\n}\n")||this;return t.size=e,t}function v(e,t,i){void 0===e&&(e=1),void 0===t&&(t=0);var r=J.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 thickness;\nuniform vec4 outlineColor;\nuniform vec4 filterClamp;\n\nconst float DOUBLE_PI = 3.14159265358979323846264 * 2.;\n\nvoid main(void) {\n vec4 ownColor = texture2D(uSampler, vTextureCoord);\n vec4 curColor;\n float maxAlpha = 0.;\n vec2 displaced;\n for (float angle = 0.; angle <= DOUBLE_PI; angle += ${angleStep}) {\n displaced.x = vTextureCoord.x + thickness.x * cos(angle);\n displaced.y = vTextureCoord.y + thickness.y * sin(angle);\n curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n maxAlpha = max(maxAlpha, curColor.a);\n }\n float resultAlpha = max(maxAlpha, ownColor.a);\n gl_FragColor = vec4((ownColor.rgb + outlineColor.rgb * (1. - ownColor.a)) * resultAlpha, resultAlpha);\n}\n".replace(/\$\{angleStep\}/,v.getAngleStep(i=void 0===i?.1:i)))||this;return r._thickness=1,r.uniforms.thickness=new Float32Array([0,0]),r.uniforms.outlineColor=new Float32Array([0,0,0,1]),Object.assign(r,{thickness:e,color:t,quality:i}),r}function y(e,t){void 0===t&&(t=0);var i=Q.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform float sepia;\nuniform float noise;\nuniform float noiseSize;\nuniform float scratch;\nuniform float scratchDensity;\nuniform float scratchWidth;\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\nuniform float seed;\n\nconst float SQRT_2 = 1.414213;\nconst vec3 SEPIA_RGB = vec3(112.0 / 255.0, 66.0 / 255.0, 20.0 / 255.0);\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec3 Overlay(vec3 src, vec3 dst)\n{\n // if (dst <= 0.5) then: 2 * src * dst\n // if (dst > 0.5) then: 1 - 2 * (1 - dst) * (1 - src)\n return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)),\n (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)),\n (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\n\n\nvoid main()\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 color = gl_FragColor.rgb;\n\n if (sepia > 0.0)\n {\n float gray = (color.x + color.y + color.z) / 3.0;\n vec3 grayscale = vec3(gray);\n\n color = Overlay(SEPIA_RGB, grayscale);\n\n color = grayscale + sepia * (color - grayscale);\n }\n\n vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n if (vignetting > 0.0)\n {\n float outter = SQRT_2 - vignetting * SQRT_2;\n vec2 dir = vec2(vec2(0.5, 0.5) - coord);\n dir.y *= dimensions.y / dimensions.x;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n color.rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n }\n\n if (scratchDensity > seed && scratch != 0.0)\n {\n float phase = seed * 256.0;\n float s = mod(floor(phase), 2.0);\n float dist = 1.0 / scratchDensity;\n float d = distance(coord, vec2(seed * dist, abs(s - seed * dist)));\n if (d < seed * 0.6 + 0.4)\n {\n highp float period = scratchDensity * 10.0;\n\n float xx = coord.x * period + phase;\n float aa = abs(mod(xx, 0.5) * 4.0);\n float bb = mod(floor(xx / 0.5), 2.0);\n float yy = (1.0 - bb) * aa + bb * (2.0 - aa);\n\n float kk = 2.0 * period;\n float dw = scratchWidth / dimensions.x * (0.75 + seed);\n float dh = dw * kk;\n\n float tine = (yy - (2.0 - dh));\n\n if (tine > 0.0) {\n float _sign = sign(scratch);\n\n tine = s * tine / period + scratch + 0.1;\n tine = clamp(tine + 1.0, 0.5 + _sign * 0.5, 1.5 + _sign * 0.5);\n\n color.rgb *= tine;\n }\n }\n }\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n // vec2 d = pixelCoord * noiseSize * vec2(1024.0 + seed * 512.0, 1024.0 - seed * 512.0);\n // float _noise = snoise(d) * 0.5;\n float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n color += _noise * noise;\n }\n\n gl_FragColor.rgb = color;\n}\n")||this;return i.seed=0,i.uniforms.dimensions=new Float32Array(2),"number"==typeof e?(i.seed=e,e=void 0):i.seed=t,Object.assign(i,y.defaults,e),i}function b(e,t,i){void 0===t&&(t=.05),void 0===i&&(i=e.length);var r=$.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float epsilon;\n\nconst int MAX_COLORS = %maxColors%;\n\nuniform vec3 originalColors[MAX_COLORS];\nuniform vec3 targetColors[MAX_COLORS];\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n\n float alpha = gl_FragColor.a;\n if (alpha < 0.0001)\n {\n return;\n }\n\n vec3 color = gl_FragColor.rgb / alpha;\n\n for(int i = 0; i < MAX_COLORS; i++)\n {\n vec3 origColor = originalColors[i];\n if (origColor.r < 0.0)\n {\n break;\n }\n vec3 colorDiff = origColor - color;\n if (length(colorDiff) < epsilon)\n {\n vec3 targetColor = targetColors[i];\n gl_FragColor = vec4((targetColor + colorDiff) * alpha, alpha);\n return;\n }\n }\n}\n".replace(/%maxColors%/g,i.toFixed(0)))||this;return r._replacements=[],r._maxColors=0,r.epsilon=t,r._maxColors=i,r.uniforms.originalColors=new Float32Array(3*i),r.uniforms.targetColors=new Float32Array(3*i),r.replacements=e,r}function x(e,t,i){void 0===e&&(e=[0,0]),void 0===t&&(t=5),void 0===i&&(i=0);var r=ee.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uVelocity;\nuniform int uKernelSize;\nuniform float uOffset;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\n// Notice:\n// the perfect way:\n// int kernelSize = min(uKernelSize, MAX_KERNELSIZE);\n// BUT in real use-case , uKernelSize < MAX_KERNELSIZE almost always.\n// So use uKernelSize directly.\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n vec2 velocity = uVelocity / filterArea.xy;\n float offset = -uOffset / length(uVelocity) - 0.5;\n int k = uKernelSize - 1;\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n vec2 bias = velocity * (float(i) / float(k) + offset);\n color += texture2D(uSampler, vTextureCoord + bias);\n }\n gl_FragColor = color / float(uKernelSize);\n}\n")||this;return r.kernelSize=5,r.uniforms.uVelocity=new Float32Array(2),r._velocity=new l.ObservablePoint(r.velocityChanged,r),r.setVelocity(e),r.kernelSize=t,r.offset=i,r}function T(e){var t=te.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform vec2 light;\nuniform bool parallel;\nuniform float aspect;\n\nuniform float gain;\nuniform float lacunarity;\nuniform float time;\nuniform float alpha;\n\n${perlin}\n\nvoid main(void) {\n vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n float d;\n\n if (parallel) {\n float _cos = light.x;\n float _sin = light.y;\n d = (_cos * coord.x) + (_sin * coord.y * aspect);\n } else {\n float dx = coord.x - light.x / dimensions.x;\n float dy = (coord.y - light.y / dimensions.y) * aspect;\n float dis = sqrt(dx * dx + dy * dy) + 0.00001;\n d = dy / dis;\n }\n\n vec3 dir = vec3(d, d, 0.0);\n\n float noise = turb(dir + vec3(time, 0.0, 62.1 + time) * 0.05, vec3(480.0, 320.0, 480.0), lacunarity, gain);\n noise = mix(noise, 0.0, 0.3);\n //fade vertically.\n vec4 mist = vec4(noise, noise, noise, 1.0) * (1.0 - coord.y);\n mist.a = 1.0;\n // apply user alpha\n mist *= alpha;\n\n gl_FragColor = texture2D(uSampler, vTextureCoord) + mist;\n\n}\n".replace("${perlin}","vec3 mod289(vec3 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 mod289(vec4 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 permute(vec4 x)\n{\n return mod289(((x * 34.0) + 1.0) * x);\n}\nvec4 taylorInvSqrt(vec4 r)\n{\n return 1.79284291400159 - 0.85373472095314 * r;\n}\nvec3 fade(vec3 t)\n{\n return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n// Classic Perlin noise, periodic variant\nfloat pnoise(vec3 P, vec3 rep)\n{\n vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period\n vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period\n Pi0 = mod289(Pi0);\n Pi1 = mod289(Pi1);\n vec3 Pf0 = fract(P); // Fractional part for interpolation\n vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0\n vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n vec4 iy = vec4(Pi0.yy, Pi1.yy);\n vec4 iz0 = Pi0.zzzz;\n vec4 iz1 = Pi1.zzzz;\n vec4 ixy = permute(permute(ix) + iy);\n vec4 ixy0 = permute(ixy + iz0);\n vec4 ixy1 = permute(ixy + iz1);\n vec4 gx0 = ixy0 * (1.0 / 7.0);\n vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n gx0 = fract(gx0);\n vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);\n vec4 sz0 = step(gz0, vec4(0.0));\n gx0 -= sz0 * (step(0.0, gx0) - 0.5);\n gy0 -= sz0 * (step(0.0, gy0) - 0.5);\n vec4 gx1 = ixy1 * (1.0 / 7.0);\n vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n gx1 = fract(gx1);\n vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);\n vec4 sz1 = step(gz1, vec4(0.0));\n gx1 -= sz1 * (step(0.0, gx1) - 0.5);\n gy1 -= sz1 * (step(0.0, gy1) - 0.5);\n vec3 g000 = vec3(gx0.x, gy0.x, gz0.x);\n vec3 g100 = vec3(gx0.y, gy0.y, gz0.y);\n vec3 g010 = vec3(gx0.z, gy0.z, gz0.z);\n vec3 g110 = vec3(gx0.w, gy0.w, gz0.w);\n vec3 g001 = vec3(gx1.x, gy1.x, gz1.x);\n vec3 g101 = vec3(gx1.y, gy1.y, gz1.y);\n vec3 g011 = vec3(gx1.z, gy1.z, gz1.z);\n vec3 g111 = vec3(gx1.w, gy1.w, gz1.w);\n vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n g000 *= norm0.x;\n g010 *= norm0.y;\n g100 *= norm0.z;\n g110 *= norm0.w;\n vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n g001 *= norm1.x;\n g011 *= norm1.y;\n g101 *= norm1.z;\n g111 *= norm1.w;\n float n000 = dot(g000, Pf0);\n float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));\n float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));\n float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));\n float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));\n float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));\n float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));\n float n111 = dot(g111, Pf1);\n vec3 fade_xyz = fade(Pf0);\n vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);\n vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);\n float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);\n return 2.2 * n_xyz;\n}\nfloat turb(vec3 P, vec3 rep, float lacunarity, float gain)\n{\n float sum = 0.0;\n float sc = 1.0;\n float totalgain = 1.0;\n for (float i = 0.0; i < 6.0; i++)\n {\n sum += totalgain * pnoise(P * sc, rep);\n sc *= lacunarity;\n totalgain *= gain;\n }\n return abs(sum);\n}\n"))||this,e=(t.parallel=!0,t.time=0,t._angle=0,t.uniforms.dimensions=new Float32Array(2),Object.assign(T.defaults,e));return t._angleLight=new l.Point,t.angle=e.angle,t.gain=e.gain,t.lacunarity=e.lacunarity,t.alpha=e.alpha,t.parallel=e.parallel,t.center=e.center,t.time=e.time,t}function w(e){var t=this,e=Object.assign({},w.defaults,e),i=e.outerStrength,r=e.innerStrength,n=e.color,s=e.knockout,o=e.quality,e=Math.round(e.distance);return(t=ie.call(this,p,"varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nuniform float outerStrength;\nuniform float innerStrength;\n\nuniform vec4 glowColor;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform bool knockout;\n\nconst float PI = 3.14159265358979323846264;\n\nconst float DIST = __DIST__;\nconst float ANGLE_STEP_SIZE = min(__ANGLE_STEP_SIZE__, PI * 2.0);\nconst float ANGLE_STEP_NUM = ceil(PI * 2.0 / ANGLE_STEP_SIZE);\n\nconst float MAX_TOTAL_ALPHA = ANGLE_STEP_NUM * DIST * (DIST + 1.0) / 2.0;\n\nvoid main(void) {\n vec2 px = vec2(1.0 / filterArea.x, 1.0 / filterArea.y);\n\n float totalAlpha = 0.0;\n\n vec2 direction;\n vec2 displaced;\n vec4 curColor;\n\n for (float angle = 0.0; angle < PI * 2.0; angle += ANGLE_STEP_SIZE) {\n direction = vec2(cos(angle), sin(angle)) * px;\n\n for (float curDistance = 0.0; curDistance < DIST; curDistance++) {\n displaced = clamp(vTextureCoord + direction * \n (curDistance + 1.0), filterClamp.xy, filterClamp.zw);\n\n curColor = texture2D(uSampler, displaced);\n\n totalAlpha += (DIST - curDistance) * curColor.a;\n }\n }\n \n curColor = texture2D(uSampler, vTextureCoord);\n\n float alphaRatio = (totalAlpha / MAX_TOTAL_ALPHA);\n\n float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * curColor.a;\n float innerGlowStrength = min(1.0, innerGlowAlpha);\n \n vec4 innerColor = mix(curColor, glowColor, innerGlowStrength);\n\n float outerGlowAlpha = alphaRatio * outerStrength * (1. - curColor.a);\n float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);\n\n vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;\n \n if (knockout) {\n float resultAlpha = outerGlowAlpha + innerGlowAlpha;\n gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);\n }\n else {\n gl_FragColor = innerColor + outerGlowColor;\n }\n}\n".replace(/__ANGLE_STEP_SIZE__/gi,""+(1/o/e).toFixed(7)).replace(/__DIST__/gi,e.toFixed(0)+".0"))||this).uniforms.glowColor=new Float32Array([0,0,0,1]),Object.assign(t,{color:n,outerStrength:i,innerStrength:r,padding:e,knockout:s}),t}function E(e){var t=re.call(this,p,"// precision highp float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\nuniform float aspect;\n\nuniform sampler2D displacementMap;\nuniform float offset;\nuniform float sinDir;\nuniform float cosDir;\nuniform int fillMode;\n\nuniform float seed;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nconst int TRANSPARENT = 0;\nconst int ORIGINAL = 1;\nconst int LOOP = 2;\nconst int CLAMP = 3;\nconst int MIRROR = 4;\n\nvoid main(void)\n{\n vec2 coord = (vTextureCoord * filterArea.xy) / dimensions;\n\n if (coord.x > 1.0 || coord.y > 1.0) {\n return;\n }\n\n float cx = coord.x - 0.5;\n float cy = (coord.y - 0.5) * aspect;\n float ny = (-sinDir * cx + cosDir * cy) / aspect + 0.5;\n\n // displacementMap: repeat\n // ny = ny > 1.0 ? ny - 1.0 : (ny < 0.0 ? 1.0 + ny : ny);\n\n // displacementMap: mirror\n ny = ny > 1.0 ? 2.0 - ny : (ny < 0.0 ? -ny : ny);\n\n vec4 dc = texture2D(displacementMap, vec2(0.5, ny));\n\n float displacement = (dc.r - dc.g) * (offset / filterArea.x);\n\n coord = vTextureCoord + vec2(cosDir * displacement, sinDir * displacement * aspect);\n\n if (fillMode == CLAMP) {\n coord = clamp(coord, filterClamp.xy, filterClamp.zw);\n } else {\n if( coord.x > filterClamp.z ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.x -= filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x = filterClamp.z * 2.0 - coord.x;\n }\n } else if( coord.x < filterClamp.x ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.x += filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x *= -filterClamp.z;\n }\n }\n\n if( coord.y > filterClamp.w ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.y -= filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y = filterClamp.w * 2.0 - coord.y;\n }\n } else if( coord.y < filterClamp.y ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.y += filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y *= -filterClamp.w;\n }\n }\n }\n\n gl_FragColor.r = texture2D(uSampler, coord + red * (1.0 - seed * 0.4) / filterArea.xy).r;\n gl_FragColor.g = texture2D(uSampler, coord + green * (1.0 - seed * 0.3) / filterArea.xy).g;\n gl_FragColor.b = texture2D(uSampler, coord + blue * (1.0 - seed * 0.2) / filterArea.xy).b;\n gl_FragColor.a = texture2D(uSampler, coord).a;\n}\n")||this;return t.offset=100,t.fillMode=E.TRANSPARENT,t.average=!1,t.seed=0,t.minSize=8,t.sampleSize=512,t._slices=0,t._offsets=new Float32Array(1),t._sizes=new Float32Array(1),t._direction=-1,t.uniforms.dimensions=new Float32Array(2),t._canvas=document.createElement("canvas"),t._canvas.width=4,t._canvas.height=t.sampleSize,t.texture=a.Texture.from(t._canvas,{scaleMode:c.SCALE_MODES.NEAREST}),Object.assign(t,E.defaults,e),t}function ot(e){void 0===e&&(e=5);var t=ne.call(this,p,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float strength;\nuniform vec4 filterArea;\n\n\nvoid main(void)\n{\n\tvec2 onePixel = vec2(1.0 / filterArea);\n\n\tvec4 color;\n\n\tcolor.rgb = vec3(0.5);\n\n\tcolor -= texture2D(uSampler, vTextureCoord - onePixel) * strength;\n\tcolor += texture2D(uSampler, vTextureCoord + onePixel) * strength;\n\n\tcolor.rgb = vec3((color.r + color.g + color.b) / 3.0);\n\n\tfloat alpha = texture2D(uSampler, vTextureCoord).a;\n\n\tgl_FragColor = vec4(color.rgb * alpha, alpha);\n}\n")||this;return t.strength=e,t}function S(e){var t=se.call(this)||this,e=(t.angle=45,t._distance=5,t._resolution=u.settings.FILTER_RESOLUTION,e?xe(xe({},S.defaults),e):S.defaults),i=e.kernels,r=e.blur,n=e.quality,s=e.pixelSize,o=e.resolution,i=(t._tintFilter=new a.Filter(p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform vec3 color;\n\nuniform vec2 shift;\nuniform vec4 inputSize;\n\nvoid main(void){\n vec4 sample = texture2D(uSampler, vTextureCoord - shift * inputSize.zw);\n\n // Premultiply alpha\n sample.rgb = color.rgb * sample.a;\n\n // alpha user alpha\n sample *= alpha;\n\n gl_FragColor = sample;\n}"),t._tintFilter.uniforms.color=new Float32Array(4),t._tintFilter.uniforms.shift=new l.Point,t._tintFilter.resolution=o,t._blurFilter=i?new d(i):new d(r,n),t.pixelSize=s,t.resolution=o,e.shadowOnly),r=e.rotation,n=e.distance,s=e.alpha,o=e.color;return t.shadowOnly=i,t.rotation=r,t.distance=n,t.alpha=s,t.color=o,t._updatePadding(),t}function A(e,t){void 0===e&&(e=1),void 0===t&&(t=5);var i=oe.call(this,p,"precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec4 filterArea;\nuniform sampler2D uSampler;\n\nuniform float angle;\nuniform float scale;\n\nfloat pattern()\n{\n float s = sin(angle), c = cos(angle);\n vec2 tex = vTextureCoord * filterArea.xy;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * scale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float average = (color.r + color.g + color.b) / 3.0;\n gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);\n}\n")||this;return i.scale=e,i.angle=t,i}function k(e){var t=ae.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nconst float SQRT_2 = 1.414213;\n\nconst float light = 1.0;\n\nuniform float curvature;\nuniform float lineWidth;\nuniform float lineContrast;\nuniform bool verticalLine;\nuniform float noise;\nuniform float noiseSize;\n\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\n\nuniform float seed;\nuniform float time;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n vec2 dir = vec2(vTextureCoord.xy * filterArea.xy / dimensions - vec2(0.5, 0.5));\n \n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 rgb = gl_FragColor.rgb;\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n rgb += _noise * noise;\n }\n\n if (lineWidth > 0.0)\n {\n float _c = curvature > 0. ? curvature : 1.;\n float k = curvature > 0. ?(length(dir * dir) * 0.25 * _c * _c + 0.935 * _c) : 1.;\n vec2 uv = dir * k;\n\n float v = (verticalLine ? uv.x * dimensions.x : uv.y * dimensions.y) * min(1.0, 2.0 / lineWidth ) / _c;\n float j = 1. + cos(v * 1.2 - time) * 0.5 * lineContrast;\n rgb *= j;\n float segment = verticalLine ? mod((dir.x + .5) * dimensions.x, 4.) : mod((dir.y + .5) * dimensions.y, 4.);\n rgb *= 0.99 + ceil(segment) * 0.015;\n }\n\n if (vignetting > 0.0)\n {\n float outter = SQRT_2 - vignetting * SQRT_2;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n }\n\n gl_FragColor.rgb = rgb;\n}\n")||this;return t.time=0,t.seed=0,t.uniforms.dimensions=new Float32Array(2),Object.assign(t,k.defaults,e),t}function at(){return le.call(this,p,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n float lum = length(texture2D(uSampler, vTextureCoord.xy).rgb);\n\n gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n\n if (lum < 1.00)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.75)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.50)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.3)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n}\n")||this}function P(e,t,i){void 0===t&&(t=200),void 0===i&&(i=200);var r=ue.call(this,p,"precision mediump float;\n\nvarying mediump vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 texelSize;\nuniform float matrix[9];\n\nvoid main(void)\n{\n vec4 c11 = texture2D(uSampler, vTextureCoord - texelSize); // top left\n vec4 c12 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - texelSize.y)); // top center\n vec4 c13 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y - texelSize.y)); // top right\n\n vec4 c21 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y)); // mid left\n vec4 c22 = texture2D(uSampler, vTextureCoord); // mid center\n vec4 c23 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y)); // mid right\n\n vec4 c31 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y + texelSize.y)); // bottom left\n vec4 c32 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + texelSize.y)); // bottom center\n vec4 c33 = texture2D(uSampler, vTextureCoord + texelSize); // bottom right\n\n gl_FragColor =\n c11 * matrix[0] + c12 * matrix[1] + c13 * matrix[2] +\n c21 * matrix[3] + c22 * matrix[4] + c23 * matrix[5] +\n c31 * matrix[6] + c32 * matrix[7] + c33 * matrix[8];\n\n gl_FragColor.a = c22.a;\n}\n")||this;return r.uniforms.texelSize=new Float32Array(2),r.uniforms.matrix=new Float32Array(9),void 0!==e&&(r.matrix=e),r.width=t,r.height=i,r}function O(e,t,i){void 0===e&&(e=16711680),void 0===t&&(t=0),void 0===i&&(i=.4);var r=he.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec3 originalColor;\nuniform vec3 newColor;\nuniform float epsilon;\nvoid main(void) {\n vec4 currentColor = texture2D(uSampler, vTextureCoord);\n vec3 colorDiff = originalColor - (currentColor.rgb / max(currentColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n float doReplace = step(colorDistance, epsilon);\n gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a);\n}\n")||this;return r._originalColor=16711680,r._newColor=0,r.uniforms.originalColor=new Float32Array(3),r.uniforms.newColor=new Float32Array(3),r.originalColor=e,r.newColor=t,r.epsilon=i,r}function lt(e,t){void 0===e&&(e=0),void 0===t&&(t=1);var i=ce.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec3 color;\nuniform float alpha;\n\nvoid main(void) {\n vec4 currentColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(mix(currentColor.rgb, color.rgb, currentColor.a * alpha), currentColor.a);\n}\n")||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=e,i.alpha=t,i}function R(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=1);var r=pe.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D colorMap;\nuniform float _mix;\nuniform float _size;\nuniform float _sliceSize;\nuniform float _slicePixelSize;\nuniform float _sliceInnerSize;\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord.xy);\n\n vec4 adjusted;\n if (color.a > 0.0) {\n color.rgb /= color.a;\n float innerWidth = _size - 1.0;\n float zSlice0 = min(floor(color.b * innerWidth), innerWidth);\n float zSlice1 = min(zSlice0 + 1.0, innerWidth);\n float xOffset = _slicePixelSize * 0.5 + color.r * _sliceInnerSize;\n float s0 = xOffset + (zSlice0 * _sliceSize);\n float s1 = xOffset + (zSlice1 * _sliceSize);\n float yOffset = _sliceSize * 0.5 + color.g * (1.0 - _sliceSize);\n vec4 slice0Color = texture2D(colorMap, vec2(s0,yOffset));\n vec4 slice1Color = texture2D(colorMap, vec2(s1,yOffset));\n float zOffset = fract(color.b * innerWidth);\n adjusted = mix(slice0Color, slice1Color, zOffset);\n\n color.rgb *= color.a;\n }\n gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a);\n\n}")||this;return r.mix=1,r._size=0,r._sliceSize=0,r._slicePixelSize=0,r._sliceInnerSize=0,r._nearest=!1,r._scaleMode=null,r._colorMap=null,r._scaleMode=null,r.nearest=t,r.mix=i,r.colorMap=e,r}function C(e){var t=de.call(this,p,"uniform float radius;\nuniform float strength;\nuniform vec2 center;\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nvoid main()\n{\n vec2 coord = vTextureCoord * filterArea.xy;\n coord -= center * dimensions.xy;\n float distance = length(coord);\n if (distance < radius) {\n float percent = distance / radius;\n if (strength > 0.0) {\n coord *= mix(1.0, smoothstep(0.0, radius / distance, percent), strength * 0.75);\n } else {\n coord *= mix(1.0, pow(percent, 1.0 + strength * 0.75) * radius / distance, 1.0 - percent);\n }\n }\n coord += center * dimensions.xy;\n coord /= filterArea.xy;\n vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n vec4 color = texture2D(uSampler, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n gl_FragColor = color;\n}\n")||this;return t.uniforms.dimensions=new Float32Array(2),Object.assign(t,C.defaults,e),t}function M(e,t,i,r){void 0===e&&(e=2),void 0===t&&(t=4),void 0===i&&(i=u.settings.FILTER_RESOLUTION),void 0===r&&(r=5);var n,s,o=fe.call(this)||this;return"number"==typeof e?s=n=e:e instanceof l.Point?(n=e.x,s=e.y):Array.isArray(e)&&(n=e[0],s=e[1]),o.blurXFilter=new N.BlurFilterPass(!0,n,t,i,r),o.blurYFilter=new N.BlurFilterPass(!1,s,t,i,r),o.blurYFilter.blendMode=c.BLEND_MODES.SCREEN,o.defaultFilter=new F.AlphaFilter,o}function I(e){var t=me.call(this,p,"precision mediump float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float transformX;\nuniform float transformY;\nuniform vec3 lightColor;\nuniform float lightAlpha;\nuniform vec3 shadowColor;\nuniform float shadowAlpha;\n\nvoid main(void) {\n vec2 transform = vec2(1.0 / filterArea) * vec2(transformX, transformY);\n vec4 color = texture2D(uSampler, vTextureCoord);\n float light = texture2D(uSampler, vTextureCoord - transform).a;\n float shadow = texture2D(uSampler, vTextureCoord + transform).a;\n\n color.rgb = mix(color.rgb, lightColor, clamp((color.a - light) * lightAlpha, 0.0, 1.0));\n color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0));\n gl_FragColor = vec4(color.rgb * color.a, color.a);\n}\n")||this;return t._thickness=2,t._angle=0,t.uniforms.lightColor=new Float32Array(3),t.uniforms.shadowColor=new Float32Array(3),Object.assign(t,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},e),t.padding=1,t}function ut(e){void 0===e&&(e=8);var t=_e.call(this,p,"varying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform float pixelSize;\nuniform sampler2D uSampler;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n return floor( coord / size ) * size;\n}\n\nvec2 getMod(vec2 coord, vec2 size)\n{\n return mod( coord , size) / size;\n}\n\nfloat character(float n, vec2 p)\n{\n p = floor(p*vec2(4.0, -4.0) + 2.5);\n\n if (clamp(p.x, 0.0, 4.0) == p.x)\n {\n if (clamp(p.y, 0.0, 4.0) == p.y)\n {\n if (int(mod(n/exp2(p.x + 5.0*p.y), 2.0)) == 1) return 1.0;\n }\n }\n return 0.0;\n}\n\nvoid main()\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n // get the rounded color..\n vec2 pixCoord = pixelate(coord, vec2(pixelSize));\n pixCoord = unmapCoord(pixCoord);\n\n vec4 color = texture2D(uSampler, pixCoord);\n\n // determine the character to use\n float gray = (color.r + color.g + color.b) / 3.0;\n\n float n = 65536.0; // .\n if (gray > 0.2) n = 65600.0; // :\n if (gray > 0.3) n = 332772.0; // *\n if (gray > 0.4) n = 15255086.0; // o\n if (gray > 0.5) n = 23385164.0; // &\n if (gray > 0.6) n = 15252014.0; // 8\n if (gray > 0.7) n = 13199452.0; // @\n if (gray > 0.8) n = 11512810.0; // #\n\n // get the mod..\n vec2 modd = getMod(coord, vec2(pixelSize));\n\n gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0);\n\n}\n")||this;return t.size=e,t}function D(e){var t=ge.call(this,p,"uniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D bloomTexture;\nuniform float bloomScale;\nuniform float brightness;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n color.rgb *= brightness;\n vec4 bloomColor = vec4(texture2D(bloomTexture, vTextureCoord).rgb, 0.0);\n bloomColor.rgb *= bloomScale;\n gl_FragColor = color + bloomColor;\n}\n")||this,e=(t.bloomScale=1,t.brightness=1,t._resolution=u.settings.FILTER_RESOLUTION,"number"==typeof e&&(e={threshold:e}),Object.assign(D.defaults,e)),i=(t.bloomScale=e.bloomScale,t.brightness=e.brightness,e.kernels),r=e.blur,n=e.quality,s=e.pixelSize,o=e.resolution;return t._extractFilter=new we(e.threshold),t._extractFilter.resolution=o,t._blurFilter=i?new d(i):new d(r,n),t.pixelSize=s,t.resolution=o,t}function L(e,t,i){void 0===e&&(e=4),void 0===t&&(t=3);var r=ve.call(this,p,(i=void 0===i?!1:i)?"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample top right pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample bottom right pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample bottom left pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Average\n color *= 0.25;\n\n gl_FragColor = color;\n}\n":"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample top right pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample bottom right pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Sample bottom left pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Average\n color *= 0.25;\n\n gl_FragColor = color;\n}")||this;return r._kernels=[],r._blur=4,r._quality=3,r.uniforms.uOffset=new Float32Array(2),r._pixelSize=new l.Point,r.pixelSize=1,r._clamp=i,Array.isArray(e)?r.kernels=e:(r._blur=e,r.quality=t),r}function ht(e){void 0===e&&(e=.5);var t=ye.call(this,p,"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform float threshold;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n // A simple & fast algorithm for getting brightness.\n // It's inaccuracy , but good enought for this feature.\n float _max = max(max(color.r, color.g), color.b);\n float _min = min(min(color.r, color.g), color.b);\n float brightness = (_max + _min) * 0.5;\n\n if(brightness > threshold) {\n gl_FragColor = color;\n } else {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);\n }\n}\n")||this;return t.threshold=e,t}function ct(e){var t=be.call(this,p,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float gamma;\nuniform float contrast;\nuniform float saturation;\nuniform float brightness;\nuniform float red;\nuniform float green;\nuniform float blue;\nuniform float alpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (c.a > 0.0) {\n c.rgb /= c.a;\n\n vec3 rgb = pow(c.rgb, vec3(1. / gamma));\n rgb = mix(vec3(.5), mix(vec3(dot(vec3(.2125, .7154, .0721), rgb)), rgb, saturation), contrast);\n rgb.r *= red;\n rgb.g *= green;\n rgb.b *= blue;\n c.rgb = rgb * brightness;\n\n c.rgb *= c.a;\n }\n\n gl_FragColor = c * alpha;\n}\n")||this;return t.gamma=1,t.saturation=1,t.contrast=1,t.brightness=1,t.red=1,t.green=1,t.blue=1,t.alpha=1,Object.assign(t,e),t}return e.AdjustmentFilter=Te,e.AdvancedBloomFilter=Ee,e.AsciiFilter=Se,e.BevelFilter=Ae,e.BloomFilter=ke,e.BulgePinchFilter=Pe,e.CRTFilter=De,e.ColorMapFilter=Oe,e.ColorOverlayFilter=Re,e.ColorReplaceFilter=Ce,e.ConvolutionFilter=Me,e.CrossHatchFilter=Ie,e.DotFilter=Le,e.DropShadowFilter=Fe,e.EmbossFilter=Ne,e.GlitchFilter=ze,e.GlowFilter=Be,e.GodrayFilter=Ue,e.KawaseBlurFilter=d,e.MotionBlurFilter=je,e.MultiColorReplaceFilter=Ge,e.OldFilmFilter=Xe,e.OutlineFilter=He,e.PixelateFilter=Ye,e.RGBSplitFilter=qe,e.RadialBlurFilter=We,e.ReflectionFilter=Ve,e.ShockwaveFilter=Ke,e.SimpleLightmapFilter=Ze,e.TiltShiftAxisFilter=Je,e.TiltShiftFilter=et,e.TiltShiftXFilter=Qe,e.TiltShiftYFilter=$e,e.TwistFilter=tt,e.ZoomBlurFilter=it,Object.defineProperty(e,"__esModule",{value:!0}),e}({},PIXI,PIXI,PIXI,PIXI.utils,PIXI,PIXI.filters,PIXI.filters),_gsScope=(Object.assign(PIXI.filters,__filters),this.PIXI=this.PIXI||{},!function(l,m){"use strict";u.createList=function(e){if("list"in e){var t=e.list,i=void 0,r=t[0],n=r.value,r=r.time,r=i=new u("string"==typeof n?l.ParticleUtils.hexToRGB(n):n,r,e.ease);if(2<t.length||2===t.length&&t[1].value!==n)for(var s=1;s<t.length;++s){var o=t[s],a=o.value,o=o.time;i.next=new u("string"==typeof a?l.ParticleUtils.hexToRGB(a):a,o),i=i.next}return r.isStepped=!!e.isStepped,r}n=new u("string"==typeof e.start?l.ParticleUtils.hexToRGB(e.start):e.start,0);return e.end!==e.start&&(n.next=new u("string"==typeof e.end?l.ParticleUtils.hexToRGB(e.end):e.end,1)),n};var t,c=u;function u(e,t,i){this.value=e,this.time=t,this.next=null,this.isStepped=!1,this.ease=i?"function"==typeof i?i:l.ParticleUtils.generateEase(i):null}var p,e=m;function h(e){return t(e)}t=parseInt(/^(\d+)\./.exec(m.VERSION)[1],10)<5?e.Texture.fromImage:e.Texture.from,(p=l.ParticleUtils||(l.ParticleUtils={})).verbose=!1,p.DEG_TO_RADS=Math.PI/180,p.rotatePoint=function(e,t){var i,r;e&&(e*=p.DEG_TO_RADS,r=Math.sin(e),e=Math.cos(e),i=t.x*e-t.y*r,r=t.x*r+t.y*e,t.x=i,t.y=r)},p.combineRGBComponents=function(e,t,i){return e<<16|t<<8|i},p.normalize=function(e){var t=1/p.length(e);e.x*=t,e.y*=t},p.scaleBy=function(e,t){e.x*=t,e.y*=t},p.length=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},p.hexToRGB=function(e,t){var i;return t=t||{},"#"===e.charAt(0)?e=e.substr(1):0===e.indexOf("0x")&&(e=e.substr(2)),8===e.length&&(i=e.substr(0,2),e=e.substr(2)),t.r=parseInt(e.substr(0,2),16),t.g=parseInt(e.substr(2,2),16),t.b=parseInt(e.substr(4,2),16),i&&(t.a=parseInt(i,16)),t},p.generateEase=function(i){var r=i.length,n=1/r;return function(e){var t=r*e|0,e=(e-t*n)*r,t=i[t]||i[r-1];return t.s+e*(2*(1-e)*(t.cp-t.s)+e*(t.e-t.s))}},p.getBlendMode=function(e){if(!e)return m.BLEND_MODES.NORMAL;for(e=e.toUpperCase();0<=e.indexOf(" ");)e=e.replace(" ","_");return m.BLEND_MODES[e]||m.BLEND_MODES.NORMAL},p.createSteppedGradient=function(e,t){("number"!=typeof(t=void 0===t?10:t)||t<=0)&&(t=10);for(var i=new c(p.hexToRGB(e[0].value),e[0].time),r=(i.isStepped=!0,i),n=e[0],s=1,o=e[s],a=1;a<t;++a){for(var l=a/t;l>o.time;)n=o,o=e[++s];var l=(l-n.time)/(o.time-n.time),u=p.hexToRGB(n.value),h=p.hexToRGB(o.value),h={r:(h.r-u.r)*l+u.r,g:(h.g-u.g)*l+u.g,b:(h.b-u.b)*l+u.b};r.next=new c(h,a/t),r=r.next}return i};var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function i(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function n(e){return this.ease&&(e=this.ease(e)),(this.next.value-this.current.value)*e+this.current.value}function s(e){this.ease&&(e=this.ease(e));var t=this.current.value,i=this.next.value,r=(i.r-t.r)*e+t.r,n=(i.g-t.g)*e+t.g,i=(i.b-t.b)*e+t.b;return l.ParticleUtils.combineRGBComponents(r,n,i)}function o(e){for(this.ease&&(e=this.ease(e));e>this.next.time;)this.current=this.next,this.next=this.next.next;return e=(e-this.current.time)/(this.next.time-this.current.time),(this.next.value-this.current.value)*e+this.current.value}function a(e){for(this.ease&&(e=this.ease(e));e>this.next.time;)this.current=this.next,this.next=this.next.next;e=(e-this.current.time)/(this.next.time-this.current.time);var t=this.current.value,i=this.next.value,r=(i.r-t.r)*e+t.r,n=(i.g-t.g)*e+t.g,i=(i.b-t.b)*e+t.b;return l.ParticleUtils.combineRGBComponents(r,n,i)}function d(e){for(this.ease&&(e=this.ease(e));this.next&&e>this.next.time;)this.current=this.next,this.next=this.next.next;return this.current.value}function f(e){for(this.ease&&(e=this.ease(e));this.next&&e>this.next.time;)this.current=this.next,this.next=this.next.next;var t=this.current.value;return l.ParticleUtils.combineRGBComponents(t.r,t.g,t.b)}g.prototype.reset=function(e){this.current=e,this.next=e.next,this.next&&1<=this.next.time?this.interpolate=this.isColor?s:n:e.isStepped?this.interpolate=this.isColor?f:d:this.interpolate=this.isColor?a:o,this.ease=this.current.ease};var _=g;function g(e){void 0===e&&(e=!1),this.current=null,this.next=null,this.isColor=!!e,this.interpolate=null,this.ease=null}i(b,v=m.Sprite),b.prototype.init=function(){this.age=0,this.velocity.x=this.speedList.current.value*this.speedMultiplier,this.velocity.y=0,l.ParticleUtils.rotatePoint(this.rotation,this.velocity),this.noRotation?this.rotation=0:this.rotation*=l.ParticleUtils.DEG_TO_RADS,this.rotationSpeed*=l.ParticleUtils.DEG_TO_RADS,this.rotationAcceleration*=l.ParticleUtils.DEG_TO_RADS,this.alpha=this.alphaList.current.value,this.scale.x=this.scale.y=this.scaleList.current.value,this._doAlpha=!!this.alphaList.current.next,this._doSpeed=!!this.speedList.current.next,this._doScale=!!this.scaleList.current.next,this._doColor=!!this.colorList.current.next,this._doAcceleration=0!==this.acceleration.x||0!==this.acceleration.y,this._doNormalMovement=this._doSpeed||0!==this.speedList.current.value||this._doAcceleration,this._oneOverLife=1/this.maxLife;var e=this.colorList.current.value;this.tint=l.ParticleUtils.combineRGBComponents(e.r,e.g,e.b),this.visible=!0},b.prototype.applyArt=function(e){this.texture=e||m.Texture.EMPTY},b.prototype.update=function(e){var t,i,r,n,s,o;return this.age+=e,this.age>=this.maxLife||this.age<0?(this.kill(),-1):(t=this.age*this._oneOverLife,this.ease&&(t=4===this.ease.length?this.ease(t,0,1,1):this.ease(t)),this._doAlpha&&(this.alpha=this.alphaList.interpolate(t)),this._doScale&&(i=this.scaleList.interpolate(t)*this.scaleMultiplier,this.scale.x=this.scale.y=i),this._doNormalMovement&&(s=i=void 0,s=this._doSpeed?(r=this.speedList.interpolate(t)*this.speedMultiplier,l.ParticleUtils.normalize(this.velocity),l.ParticleUtils.scaleBy(this.velocity,r),i=this.velocity.x*e,this.velocity.y*e):this._doAcceleration?(r=this.velocity.x,n=this.velocity.y,this.velocity.x+=this.acceleration.x*e,this.velocity.y+=this.acceleration.y*e,this.maxSpeed&&(o=l.ParticleUtils.length(this.velocity))>this.maxSpeed&&l.ParticleUtils.scaleBy(this.velocity,this.maxSpeed/o),i=(r+this.velocity.x)/2*e,(n+this.velocity.y)/2*e):(i=this.velocity.x*e,this.velocity.y*e),this.position.x+=i,this.position.y+=s),this._doColor&&(this.tint=this.colorList.interpolate(t)),0!==this.rotationAcceleration?(o=this.rotationSpeed+this.rotationAcceleration*e,this.rotation+=(this.rotationSpeed+o)/2*e,this.rotationSpeed=o):0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*e:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x)),t)},b.prototype.kill=function(){this.emitter.recycle(this)},b.prototype.destroy=function(){this.parent&&this.parent.removeChild(this),this.Sprite_destroy(),this.emitter=this.velocity=this.colorList=this.scaleList=this.alphaList=this.speedList=this.ease=this.next=this.prev=null},b.parseArt=function(e){for(var t=e.length;0<=t;--t)"string"==typeof e[t]&&(e[t]=h(e[t]));if(l.ParticleUtils.verbose)for(t=e.length-1;0<t;--t)if(e[t].baseTexture!==e[t-1].baseTexture){window.console&&console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL");break}return e},b.parseData=function(e){return e};var v,y=b;function b(e){var t=v.call(this)||this;return t.prevChild=t.nextChild=null,t.emitter=e,t.anchor.x=t.anchor.y=.5,t.velocity=new m.Point,t.rotationSpeed=0,t.rotationAcceleration=0,t.maxLife=0,t.age=0,t.ease=null,t.extraData=null,t.alphaList=new _,t.speedList=new _,t.speedMultiplier=1,t.acceleration=new m.Point,t.maxSpeed=NaN,t.scaleList=new _,t.scaleMultiplier=1,t.colorList=new _(!0),t._doAlpha=!1,t._doScale=!1,t._doSpeed=!1,t._doAcceleration=!1,t._doColor=!1,t._doNormalMovement=!1,t._oneOverLife=0,t.next=null,t.prev=null,t.init=t.init,t.Particle_init=b.prototype.init,t.update=t.update,t.Particle_update=b.prototype.update,t.Sprite_destroy=v.prototype.destroy,t.Particle_destroy=b.prototype.destroy,t.applyArt=t.applyArt,t.kill=t.kill,t}T.prototype.init=function(e){if(e&&e.length)if(Array.isArray(e[0]))for(var t=0;t<e.length;++t)for(var i=e[t],r=i[0],n=1;n<i.length;++n){var s=i[n];this.segments.push({p1:r,p2:s,l:0}),r=s}else for(r=e[0],t=1;t<e.length;++t){s=e[t];this.segments.push({p1:r,p2:s,l:0}),r=s}else this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});for(t=0;t<this.segments.length;++t){var o=this.segments[t],a=o.p1,o=o.p2,o=Math.sqrt((o.x-a.x)*(o.x-a.x)+(o.y-a.y)*(o.y-a.y));this.segments[t].l=o,this.totalLength+=o,this.countingLengths.push(this.totalLength)}},T.prototype.getRandomPoint=function(e){var t,i,r=Math.random()*this.totalLength;if(1===this.segments.length)t=this.segments[0],i=r;else for(var n=0;n<this.countingLengths.length;++n)if(r<this.countingLengths[n]){t=this.segments[n],i=0===n?r:r-this.countingLengths[n-1];break}i/=t.l||1;var s=t.p1,o=t.p2;e.x=s.x+i*(o.x-s.x),e.y=s.y+i*(o.y-s.y)};var x=T;function T(e){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(e)}var e=m,w=(parseInt(/^(\d+)\./.exec(m.VERSION)[1],10)<5?e.ticker:e.Ticker).shared,E=new m.Point,e=(Object.defineProperty(S.prototype,"orderedArt",{get:function(){return-1!==this._currentImageIndex},set:function(e){this._currentImageIndex=e?0:-1},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"frequency",{get:function(){return this._frequency},set:function(e){this._frequency="number"==typeof e&&0<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"particleConstructor",{get:function(){return this._particleConstructor},set:function(e){if(e!==this._particleConstructor){this._particleConstructor=e,this.cleanup();for(var t=this._poolFirst;t;t=t.next)t.destroy();this._poolFirst=null,this._origConfig&&this._origArt&&this.init(this._origArt,this._origConfig)}},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"parent",{get:function(){return this._parent},set:function(e){this.cleanup(),this._parent=e},enumerable:!0,configurable:!0}),S.prototype.init=function(e,t){var i,r;e&&t&&(this.cleanup(),this._origConfig=t,this._origArt=e,e=Array.isArray(e)?e.slice():[e],i=this._particleConstructor,this.particleImages=i.parseArt?i.parseArt(e):e,t.alpha?this.startAlpha=c.createList(t.alpha):this.startAlpha=new c(1,0),t.speed?(this.startSpeed=c.createList(t.speed),this.minimumSpeedMultiplier=("minimumSpeedMultiplier"in t?t:t.speed).minimumSpeedMultiplier||1):(this.minimumSpeedMultiplier=1,this.startSpeed=new c(0,0)),(r=t.acceleration)&&(r.x||r.y)?(this.startSpeed.next=null,this.acceleration=new m.Point(r.x,r.y),this.maxSpeed=t.maxSpeed||NaN):this.acceleration=new m.Point,t.scale?(this.startScale=c.createList(t.scale),this.minimumScaleMultiplier=("minimumScaleMultiplier"in t?t:t.scale).minimumScaleMultiplier||1):(this.startScale=new c(1,0),this.minimumScaleMultiplier=1),t.color?this.startColor=c.createList(t.color):this.startColor=new c({r:255,g:255,b:255},0),t.startRotation?(this.minStartRotation=t.startRotation.min,this.maxStartRotation=t.startRotation.max):this.minStartRotation=this.maxStartRotation=0,t.noRotation&&(this.minStartRotation||this.maxStartRotation)?this.noRotation=!!t.noRotation:this.noRotation=!1,t.rotationSpeed?(this.minRotationSpeed=t.rotationSpeed.min,this.maxRotationSpeed=t.rotationSpeed.max):this.minRotationSpeed=this.maxRotationSpeed=0,this.rotationAcceleration=t.rotationAcceleration||0,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,this.particleBlendMode=l.ParticleUtils.getBlendMode(t.blendMode),t.ease?this.customEase="function"==typeof t.ease?t.ease:l.ParticleUtils.generateEase(t.ease):this.customEase=null,i.parseData?this.extraData=i.parseData(t.extraData):this.extraData=t.extraData||null,this.spawnRect=this.spawnCircle=null,this.particlesPerWave=1,t.particlesPerWave&&1<t.particlesPerWave&&(this.particlesPerWave=t.particlesPerWave),this.particleSpacing=0,this.angleStart=0,this.parseSpawnType(t),this.frequency=t.frequency,this.spawnChance="number"==typeof t.spawnChance&&0<t.spawnChance?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=0<t.maxParticles?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos=new m.Point,this.spawnPos=new m.Point(t.pos.x,t.pos.y),this.initAdditional(e,t),this._prevEmitterPos=this.spawnPos.clone(),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=void 0===t.emit||!!t.emit,this.autoUpdate=!!t.autoUpdate,this.orderedArt=!!t.orderedArt)},S.prototype.initAdditional=function(e,t){},S.prototype.parseSpawnType=function(e){var t;switch(e.spawnType){case"rect":this.spawnType="rect",this._spawnFunc=this._spawnRect;var i=e.spawnRect;this.spawnRect=new m.Rectangle(i.x,i.y,i.w,i.h);break;case"circle":this.spawnType="circle",this._spawnFunc=this._spawnCircle,t=e.spawnCircle,this.spawnCircle=new m.Circle(t.x,t.y,t.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,t=e.spawnCircle,this.spawnCircle=new m.Circle(t.x,t.y,t.r),this.spawnCircle.minRadius=t.minR;break;case"burst":this.spawnType="burst",this._spawnFunc=this._spawnBurst,this.particleSpacing=e.particleSpacing,this.angleStart=e.angleStart||0;break;case"point":this.spawnType="point",this._spawnFunc=this._spawnPoint;break;case"polygonalChain":this.spawnType="polygonalChain",this._spawnFunc=this._spawnPolygonalChain,this.spawnPolygonalChain=new x(e.spawnPolygon);break;default:this.spawnType="point",this._spawnFunc=this._spawnPoint}},S.prototype.recycle=function(e){e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e===this._activeParticlesLast&&(this._activeParticlesLast=e.prev),e===this._activeParticlesFirst&&(this._activeParticlesFirst=e.next),e.prev=null,e.next=this._poolFirst,(this._poolFirst=e).parent&&e.parent.removeChild(e),--this.particleCount},S.prototype.rotate=function(e){var t;this.rotation!==e&&(t=e-this.rotation,this.rotation=e,l.ParticleUtils.rotatePoint(t,this.spawnPos),this._posChanged=!0)},S.prototype.updateSpawnPos=function(e,t){this._posChanged=!0,this.spawnPos.x=e,this.spawnPos.y=t},S.prototype.updateOwnerPos=function(e,t){this._posChanged=!0,this.ownerPos.x=e,this.ownerPos.y=t},S.prototype.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(S.prototype,"emit",{get:function(){return this._emit},set:function(e){this._emit=!!e,this._emitterLife=this.emitterLifetime},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){this._autoUpdate&&!e?w.remove(this.update,this):!this._autoUpdate&&e&&w.add(this.update,this),this._autoUpdate=!!e},enumerable:!0,configurable:!0}),S.prototype.playOnceAndDestroy=function(e){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=e},S.prototype.playOnce=function(e){this.emit=!0,this._completeCallback=e},S.prototype.update=function(e){if(this._autoUpdate&&(e=e/m.settings.TARGET_FPMS/1e3),this._parent){for(var t,i,r,n=this._activeParticlesFirst;n;n=t)t=n.next,n.update(e);this._prevPosIsValid&&(i=this._prevEmitterPos.x,r=this._prevEmitterPos.y);var s,o=this.ownerPos.x+this.spawnPos.x,a=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=e<0?0:e;this._spawnTimer<=0;){if(0<=this._emitterLife&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles);else{var l=void 0,l=this.minLifetime===this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime;if(-this._spawnTimer<l){var u,h=void 0,c=void 0;c=this._prevPosIsValid&&this._posChanged?(h=(o-i)*(u=1+this._spawnTimer/e)+i,(a-r)*u+r):(h=o,a);for(var p,d=0,f=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount);d<f;++d)this.spawnChance<1&&Math.random()>=this.spawnChance||(p=void 0,this._poolFirst?(p=this._poolFirst,this._poolFirst=this._poolFirst.next,p.next=null):p=new this.particleConstructor(this),1<this.particleImages.length?-1!==this._currentImageIndex?(p.applyArt(this.particleImages[this._currentImageIndex++]),(this._currentImageIndex<0||this._currentImageIndex>=this.particleImages.length)&&(this._currentImageIndex=0)):p.applyArt(this.particleImages[Math.floor(Math.random()*this.particleImages.length)]):p.applyArt(this.particleImages[0]),p.alphaList.reset(this.startAlpha),1!==this.minimumSpeedMultiplier&&(p.speedMultiplier=Math.random()*(1-this.minimumSpeedMultiplier)+this.minimumSpeedMultiplier),p.speedList.reset(this.startSpeed),p.acceleration.x=this.acceleration.x,p.acceleration.y=this.acceleration.y,p.maxSpeed=this.maxSpeed,1!==this.minimumScaleMultiplier&&(p.scaleMultiplier=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier),p.scaleList.reset(this.startScale),p.colorList.reset(this.startColor),this.minRotationSpeed===this.maxRotationSpeed?p.rotationSpeed=this.minRotationSpeed:p.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,p.rotationAcceleration=this.rotationAcceleration,p.noRotation=this.noRotation,p.maxLife=l,p.blendMode=this.particleBlendMode,p.ease=this.customEase,p.extraData=this.extraData,this.applyAdditionalProperties(p),this._spawnFunc(p,h,c,d),p.init(),this.addAtBack?this._parent.addChildAt(p,0):this._parent.addChild(p),this._activeParticlesLast?((this._activeParticlesLast.next=p).prev=this._activeParticlesLast,this._activeParticlesLast=p):this._activeParticlesLast=this._activeParticlesFirst=p,++this.particleCount,p.update(-this._spawnTimer))}}this._spawnTimer+=this._frequency}this._posChanged&&(this._prevEmitterPos.x=o,this._prevEmitterPos.y=a,this._prevPosIsValid=!0,this._posChanged=!1),this._emit||this._activeParticlesFirst||(this._completeCallback&&(s=this._completeCallback,this._completeCallback=null,s()),this._destroyWhenComplete&&this.destroy())}},S.prototype.applyAdditionalProperties=function(e){},S.prototype._spawnPoint=function(e,t,i){this.minStartRotation===this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,e.position.x=t,e.position.y=i},S.prototype._spawnRect=function(e,t,i){this.minStartRotation===this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,E.x=Math.random()*this.spawnRect.width+this.spawnRect.x,E.y=Math.random()*this.spawnRect.height+this.spawnRect.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=i+E.y},S.prototype._spawnCircle=function(e,t,i){this.minStartRotation===this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,E.x=Math.random()*this.spawnCircle.radius,E.y=0,l.ParticleUtils.rotatePoint(360*Math.random(),E),E.x+=this.spawnCircle.x,E.y+=this.spawnCircle.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=i+E.y},S.prototype._spawnRing=function(e,t,i){var r=this.spawnCircle,r=(this.minStartRotation===this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,r.minRadius!==r.radius?E.x=Math.random()*(r.radius-r.minRadius)+r.minRadius:E.x=r.radius,E.y=0,360*Math.random());e.rotation+=r,l.ParticleUtils.rotatePoint(r,E),E.x+=this.spawnCircle.x,E.y+=this.spawnCircle.y,0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=i+E.y},S.prototype._spawnPolygonalChain=function(e,t,i){this.minStartRotation===this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,this.spawnPolygonalChain.getRandomPoint(E),0!==this.rotation&&l.ParticleUtils.rotatePoint(this.rotation,E),e.position.x=t+E.x,e.position.y=i+E.y},S.prototype._spawnBurst=function(e,t,i,r){0===this.particleSpacing?e.rotation=360*Math.random():e.rotation=this.angleStart+this.particleSpacing*r+this.rotation,e.position.x=t,e.position.y=i},S.prototype.cleanup=function(){for(var e,t=this._activeParticlesFirst;t;t=e)e=t.next,this.recycle(t),t.parent&&t.parent.removeChild(t);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},S.prototype.destroy=function(){var e;this.autoUpdate=!1,this.cleanup();for(var t=this._poolFirst;t;t=e)e=t.next,t.destroy();this._poolFirst=this._parent=this.particleImages=this.spawnPos=this.ownerPos=this.startColor=this.startScale=this.startAlpha=this.startSpeed=this.customEase=this._completeCallback=null},S);function S(e,t,i){this._currentImageIndex=-1,this._particleConstructor=y,this.particleImages=null,this.startAlpha=null,this.startSpeed=null,this.minimumSpeedMultiplier=1,this.acceleration=null,this.maxSpeed=NaN,this.startScale=null,this.minimumScaleMultiplier=1,this.startColor=null,this.minLifetime=0,this.maxLifetime=0,this.minStartRotation=0,this.maxStartRotation=0,this.noRotation=!1,this.minRotationSpeed=0,this.maxRotationSpeed=0,this.particleBlendMode=0,this.customEase=null,this.extraData=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=null,this.spawnType=null,this._spawnFunc=null,this.spawnRect=null,this.spawnCircle=null,this.spawnPolygonalChain=null,this.particlesPerWave=1,this.particleSpacing=0,this.angleStart=0,this.rotation=0,this.ownerPos=null,this._prevEmitterPos=null,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._origArt=null,this._autoUpdate=!1,this._currentImageIndex=-1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=e,t&&i&&this.init(t,i),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}var A=new m.Point,k=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],P=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(k).join("|"),"g");i(C,O=y),C.prototype.init=function(){this.initialRotation=this.rotation,this.Particle_init(),this.path=this.extraData.path,this._doNormalMovement=!this.path,this.movement=0,this.initialPosition.x=this.position.x,this.initialPosition.y=this.position.y},C.prototype.update=function(e){var t,i=this.Particle_update(e);return 0<=i&&this.path&&(t=this._doSpeed?this.speedList.interpolate(i)*this.speedMultiplier:this.speedList.current.value*this.speedMultiplier,this.movement+=t*e,A.x=this.movement,A.y=this.path(this.movement),l.ParticleUtils.rotatePoint(this.initialRotation,A),this.position.x=this.initialPosition.x+A.x,this.position.y=this.initialPosition.y+A.y),i},C.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},C.parseArt=function(e){return y.parseArt(e)},C.parseData=function(e){var t={};if(e&&e.path)try{t.path=function(e){for(var t=e.match(P),i=t.length-1;0<=i;--i)0<=k.indexOf(t[i])&&(t[i]="Math."+t[i]);return e=t.join(""),new Function("x","return "+e+";")}(e.path)}catch(e){l.ParticleUtils.verbose&&console.error("PathParticle: error in parsing path expression"),t.path=null}else l.ParticleUtils.verbose&&console.error("PathParticle requires a path string in extraData!"),t.path=null;return t};var O,R=C;function C(e){e=O.call(this,e)||this;return e.path=null,e.initialRotation=0,e.initialPosition=new m.Point,e.movement=0,e}i(I,M=y),I.prototype.init=function(){this.Particle_init(),this.elapsed=0,this.framerate<0&&(this.duration=this.maxLife,this.framerate=this.textures.length/this.duration)},I.prototype.applyArt=function(e){this.textures=e.textures,this.framerate=e.framerate,this.duration=e.duration,this.loop=e.loop},I.prototype.update=function(e){var t=this.Particle_update(e);return 0<=t&&(this.elapsed+=e,this.elapsed>=this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6),e=this.elapsed*this.framerate+1e-7|0,this.texture=this.textures[e]||this.textures[this.textures.length-1]||m.Texture.EMPTY),t},I.prototype.destroy=function(){this.Particle_destroy(),this.textures=null},I.parseArt=function(e){for(var t=[],i=0;i<e.length;++i){for(var r=e[i],n=t[i]={},s=n.textures=[],o=r.textures,a=0;a<o.length;++a)if("string"==typeof(u=o[a]))s.push(h(u));else if(u instanceof m.Texture)s.push(u);else for(var l=u.count||1,u="string"==typeof u.texture?h(u.texture):u.texture;0<l;--l)s.push(u);"matchLife"===r.framerate?(n.framerate=-1,n.duration=0,n.loop=!1):(n.loop=!!r.loop,n.framerate=0<r.framerate?r.framerate:60,n.duration=s.length/n.framerate)}return t};var M,F=I;function I(e){e=M.call(this,e)||this;return e.textures=null,e.duration=0,e.framerate=0,e.elapsed=0,e.loop=!1,e}i(L,D=m.Container),Object.defineProperty(L.prototype,"firstChild",{get:function(){return this._firstChild},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"lastChild",{get:function(){return this._lastChild},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"childCount",{get:function(){return this._childCount},enumerable:!0,configurable:!0}),L.prototype.addChild=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1<e.length)for(var i=0;i<e.length;i++)this.addChild(e[i]);else{var r=e[0];r.parent&&r.parent.removeChild(r),(r.parent=this).sortDirty=!0,r.transform._parentID=-1,this._lastChild?((this._lastChild.nextChild=r).prevChild=this._lastChild,this._lastChild=r):this._firstChild=this._lastChild=r,++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",r,this,this._childCount),r.emit("added",this)}return e[0]},L.prototype.addChildAt=function(e,t){if(t<0||t>this._childCount)throw new Error("addChildAt: The index "+t+" supplied is out of bounds "+this._childCount);e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1;var i=e;if(this._firstChild)if(0===t)(this._firstChild.prevChild=i).nextChild=this._firstChild,this._firstChild=i;else if(t===this._childCount)(this._lastChild.nextChild=i).prevChild=this._lastChild,this._lastChild=i;else{for(var r=0,n=this._firstChild;r<t;)n=n.nextChild,++r;(n.prevChild.nextChild=i).prevChild=n.prevChild,(i.nextChild=n).prevChild=i}else this._firstChild=this._lastChild=i;return++this._childCount,this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e},L.prototype.addChildBelow=function(e,t){if(t.parent!==this)throw new Error("addChildBelow: The relative target must be a child of this parent");return e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1,(t.prevChild.nextChild=e).prevChild=t.prevChild,(e.nextChild=t).prevChild=e,this._firstChild===t&&(this._firstChild=e),++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",e,this,this._childCount),e.emit("added",this),e},L.prototype.addChildAbove=function(e,t){if(t.parent!==this)throw new Error("addChildBelow: The relative target must be a child of this parent");return e.parent&&e.parent.removeChild(e),(e.parent=this).sortDirty=!0,e.transform._parentID=-1,(t.nextChild.prevChild=e).nextChild=t.nextChild,(e.prevChild=t).nextChild=e,this._lastChild===t&&(this._lastChild=e),++this._childCount,this._boundsID++,this.onChildrenChange(),this.emit("childAdded",e,this,this._childCount),e.emit("added",this),e},L.prototype.swapChildren=function(e,t){var i,r;e!==t&&e.parent===this&&t.parent===this&&(i=e.prevChild,r=e.nextChild,e.prevChild=t.prevChild,e.nextChild=t.nextChild,t.prevChild=i,t.nextChild=r,this._firstChild===e?this._firstChild=t:this._firstChild===t&&(this._firstChild=e),this._lastChild===e?this._lastChild=t:this._lastChild===t&&(this._lastChild=e),this.onChildrenChange())},L.prototype.getChildIndex=function(e){for(var t=0,i=this._firstChild;i&&i!==e;)i=i.nextChild,++t;if(i)return t;throw new Error("The supplied DisplayObject must be a child of the caller")},L.prototype.setChildIndex=function(e,t){if(t<0||t>=this._childCount)throw new Error("The index "+t+" supplied is out of bounds "+this._childCount);if(e.parent!==this)throw new Error("The supplied DisplayObject must be a child of the caller");if(e.nextChild&&(e.nextChild.prevChild=e.prevChild),e.prevChild&&(e.prevChild.nextChild=e.nextChild),this._firstChild===e&&(this._firstChild=e.nextChild),this._lastChild===e&&(this._lastChild=e.prevChild),e.nextChild=null,e.prevChild=null,this._firstChild)if(0===t)(this._firstChild.prevChild=e).nextChild=this._firstChild,this._firstChild=e;else if(t===this._childCount)(this._lastChild.nextChild=e).prevChild=this._lastChild,this._lastChild=e;else{for(var i=0,r=this._firstChild;i<t;)r=r.nextChild,++i;(r.prevChild.nextChild=e).prevChild=r.prevChild,(e.nextChild=r).prevChild=e}else this._firstChild=this._lastChild=e;this.onChildrenChange(t)},L.prototype.removeChild=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1<e.length)for(var i=0;i<e.length;i++)this.removeChild(e[i]);else{var r=e[0];if(r.parent!==this)return null;r.parent=null,r.transform._parentID=-1,r.nextChild&&(r.nextChild.prevChild=r.prevChild),r.prevChild&&(r.prevChild.nextChild=r.nextChild),this._firstChild===r&&(this._firstChild=r.nextChild),this._lastChild===r&&(this._lastChild=r.prevChild),r.nextChild=null,r.prevChild=null,--this._childCount,this._boundsID++,this.onChildrenChange(),r.emit("removed",this),this.emit("childRemoved",r,this)}return e[0]},L.prototype.getChildAt=function(e){if(e<0||e>=this._childCount)throw new Error("getChildAt: Index ("+e+") does not exist.");if(0===e)return this._firstChild;if(e===this._childCount)return this._lastChild;for(var t=0,i=this._firstChild;t<e;)i=i.nextChild,++t;return i},L.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,t.nextChild&&(t.nextChild.prevChild=t.prevChild),t.prevChild&&(t.prevChild.nextChild=t.nextChild),this._firstChild===t&&(this._firstChild=t.nextChild),this._lastChild===t&&(this._lastChild=t.prevChild),t.nextChild=null,t.prevChild=null,--this._childCount,this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t},L.prototype.removeChildren=function(e,t){var i=e=void 0===e?0:e,r=t=void 0===t?this._childCount:t,t=r-i;if(0<t&&t<=r){for(var n=[],s=this._firstChild,o=0;o<=r&&s;++o,s=s.nextChild)i<=o&&n.push(s);var a=n[0].prevChild,l=n[n.length-1].nextChild;l?l.prevChild=a:this._lastChild=a,a?a.nextChild=l:this._firstChild=l;for(o=0;o<n.length;++o)n[o].parent=null,n[o].transform&&(n[o].transform._parentID=-1),n[o].nextChild=null,n[o].prevChild=null;this._boundsID++,this.onChildrenChange(e);for(o=0;o<n.length;++o)n[o].emit("removed",this),this.emit("childRemoved",n[o],this,o);return n}if(0==t&&0===this._childCount)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},L.prototype.updateTransform=function(){var e,t;for(this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,e=this._firstChild;e;e=t)t=e.nextChild,e.visible&&e.updateTransform()},L.prototype.calculateBounds=function(){var e;for(this._bounds.clear(),this._calculateBounds(),e=this._firstChild;e;e=i){var t,i=e.nextChild;e.visible&&e.renderable&&(e.calculateBounds(),e._mask?((t=e._mask.maskObject||e._mask).calculateBounds(),this._bounds.addBoundsMask(e._bounds,t._bounds)):e.filterArea?this._bounds.addBoundsArea(e._bounds,e.filterArea):this._bounds.addBounds(e._bounds))}this._bounds.updateID=this._boundsID},L.prototype.getLocalBounds=function(e,t){void 0===t&&(t=!1);e=m.DisplayObject.prototype.getLocalBounds.call(this,e);if(!t)for(var i,r=void 0,r=this._firstChild;r;r=i)i=r.nextChild,r.visible&&r.updateTransform();return e},L.prototype.render=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(e);else{this._render(e);for(var t,i=void 0,i=this._firstChild;i;i=t)t=i.nextChild,i.render(e)}},L.prototype.renderAdvanced=function(e){e.batch.flush();var t,i,r=this.filters,n=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]);for(var s=this._enabledFilters.length=0;s<r.length;s++)r[s].enabled&&this._enabledFilters.push(r[s]);this._enabledFilters.length&&e.filter.push(this,this._enabledFilters)}for(n&&e.mask.push(this,this._mask),this._render(e),t=this._firstChild;t;t=i)i=t.nextChild,t.render(e);e.batch.flush(),n&&e.mask.pop(this),r&&this._enabledFilters&&this._enabledFilters.length&&e.filter.pop()},L.prototype.renderWebGL=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvancedWebGL(e);else{this._renderWebGL(e);for(var t,i=void 0,i=this._firstChild;i;i=t)t=i.nextChild,i.renderWebGL(e)}},L.prototype.renderAdvancedWebGL=function(e){e.flush();var t,i,r=this._filters,n=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]);for(var s=this._enabledFilters.length=0;s<r.length;s++)r[s].enabled&&this._enabledFilters.push(r[s]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}for(n&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e),t=this._firstChild;t;t=i)i=t.nextChild,t.renderWebGL(e);e.flush(),n&&e.maskManager.popMask(this,this._mask),r&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},L.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){var t,i;for(this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e),t=this._firstChild;t;t=i)i=t.nextChild,t.renderCanvas(e);this._mask&&e.maskManager.popMask(e)}};var D,N=L;function L(){var e=null!==D&&D.apply(this,arguments)||this;return e._firstChild=null,e._lastChild=null,e._childCount=0,e}l.AnimatedParticle=F,l.Emitter=e,l.GetTextureFromString=h,l.LinkedListContainer=N,l.Particle=y,l.PathParticle=R,l.PolygonalChain=x,l.PropertyList=_,l.PropertyNode=c}(this.PIXI.particles=this.PIXI.particles||{},PIXI),this.PIXI=this.PIXI||{},this.PIXI.projection=this.PIXI.projection||{},!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@pixi/core"),require("@pixi/constants"),require("@pixi/utils"),require("@pixi/math"),require("@pixi/display"),require("@pixi/sprite-tiling"),require("@pixi/mesh"),require("@pixi/mesh-extras"),require("@pixi/sprite"),require("@pixi/text"),require("@pixi/graphics")):"function"==typeof define&&define.amd?define(["exports","@pixi/core","@pixi/constants","@pixi/utils","@pixi/math","@pixi/display","@pixi/sprite-tiling","@pixi/mesh","@pixi/mesh-extras","@pixi/sprite","@pixi/text","@pixi/graphics"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).pixi_projection={},e.PIXI,e.PIXI,e.PIXI.utils,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI,e.PIXI)}(this,function(a,_,h,g,d,e,F,s,N,t,z,B){"use strict";class U extends _.Geometry{constructor(e=!1){super(),this._buffer=new _.Buffer(null,e,!1),this._indexBuffer=new _.Buffer(null,e,!0),this.addAttribute("aVertexPosition",this._buffer,3,!1,h.TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,h.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,h.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,h.TYPES.FLOAT).addIndex(this._indexBuffer)}}class j{static create(e){const{vertex:t,fragment:i,vertexSize:r,geometryClass:n}=Object.assign({vertex:`precision highp float;
|
||
attribute vec3 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
attribute vec4 aColor;
|
||
attribute float aTextureId;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
|
||
varying vec2 vTextureCoord;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
|
||
void main(void){
|
||
gl_Position.xyw = projectionMatrix * aVertexPosition;
|
||
gl_Position.z = 0.0;
|
||
|
||
vTextureCoord = aTextureCoord;
|
||
vTextureId = aTextureId;
|
||
vColor = aColor;
|
||
}
|
||
`,fragment:`
|
||
varying vec2 vTextureCoord;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
uniform sampler2D uSamplers[%count%];
|
||
|
||
void main(void){
|
||
vec4 color;
|
||
%forloop%
|
||
gl_FragColor = color * vColor;
|
||
}`,geometryClass:U,vertexSize:7},e);return class extends _.AbstractBatchRenderer{constructor(e){super(e),this.shaderGenerator=new _.BatchShaderGenerator(t,i),this.geometryClass=n,this.vertexSize=r}packInterleavedGeometry(e,t,i,r,n){var{uint32View:s,float32View:o}=t,a=r/this.vertexSize,l=e.uvs,u=e.indices,h=e.vertexData,c=e.vertexData2d,p=e._texture.baseTexture._batchLocation,t=Math.min(e.worldAlpha,1),d=t<1&&e._texture.baseTexture.alphaMode?g.premultiplyTint(e._tintRGB,t):e._tintRGB+(255*t<<24);if(c){let t=0;for(let e=0;e<c.length;e+=3,t+=2)o[r++]=c[e],o[r++]=c[e+1],o[r++]=c[e+2],o[r++]=l[t],o[r++]=l[t+1],s[r++]=d,o[r++]=p}else for(let e=0;e<h.length;e+=2)o[r++]=h[e],o[r++]=h[e+1],o[r++]=1,o[r++]=l[e],o[r++]=l[e+1],s[r++]=d,o[r++]=p;for(let e=0;e<u.length;e++)i[n++]=a+u[e]}}}}class G{constructor(e,t=!0){G.prototype.__init.call(this),this.legacy=e,t&&(this.enabled=!0),this.legacy.proj=this}__init(){this._enabled=!1}get enabled(){return this._enabled}set enabled(e){this._enabled=e}clear(){}}a.TRANSFORM_STEP=void 0;var X,i=a.TRANSFORM_STEP||(a.TRANSFORM_STEP={}),i=(i[i.NONE=0]="NONE",i[i.BEFORE_PROJ=4]="BEFORE_PROJ",i[i.PROJ=5]="PROJ",i[i.ALL=9]="ALL",a.AFFINE=void 0,a.AFFINE||(a.AFFINE={}));function H(e){var t=this.proj,i=this,r=e._worldID,n=i.localTransform,s=t.scaleAfterAffine&&2<=t.affine,o=(i._localID!==i._currentLocalID&&(s?(n.a=i._cx,n.b=i._sx,n.c=i._cy,n.d=i._sy,n.tx=i.position._x,n.ty=i.position._y):(n.a=i._cx*i.scale._x,n.b=i._sx*i.scale._x,n.c=i._cy*i.scale._y,n.d=i._sy*i.scale._y,n.tx=i.position._x-(i.pivot._x*n.a+i.pivot._y*n.c),n.ty=i.position._y-(i.pivot._x*n.b+i.pivot._y*n.d)),i._currentLocalID=i._localID,t._currentProjID=-1),t._projID);t._currentProjID!==o&&(t._currentProjID=o,t.updateLocalTransform(n),i._parentID=-1),i._parentID!==r&&((o=e.proj)&&!o._affine?t.world.setToMult(o.world,t.local):t.world.setToMultLegacy(e.worldTransform,t.local),n=i.worldTransform,t.world.copyTo(n,t._affine,t.affinePreserveOrientation),s&&(n.a*=i.scale._x,n.b*=i.scale._x,n.c*=i.scale._y,n.d*=i.scale._y,n.tx-=i.pivot._x*n.a+i.pivot._y*n.c,n.ty-=i.pivot._x*n.b+i.pivot._y*n.d),i._parentID=r,i._worldID++)}i[i.NONE=0]="NONE",i[i.FREE=1]="FREE",i[i.AXIS_X=2]="AXIS_X",i[i.AXIS_Y=3]="AXIS_Y",i[i.POINT=4]="POINT",i[i.AXIS_XR=5]="AXIS_XR";class r extends G{constructor(...e){super(...e),r.prototype.__init.call(this),r.prototype.__init2.call(this),r.prototype.__init3.call(this),r.prototype.__init4.call(this),r.prototype.__init5.call(this)}updateLocalTransform(e){}__init(){this._projID=0}__init2(){this._currentProjID=-1}__init3(){this._affine=a.AFFINE.NONE}__init4(){this.affinePreserveOrientation=!1}__init5(){this.scaleAfterAffine=!0}set affine(e){this._affine!==e&&(this._affine=e,this._currentProjID=-1,this.legacy._currentLocalID=-1)}get affine(){return this._affine}set enabled(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?H:d.Transform.prototype.updateTransform,this.legacy._parentID=-1)}clear(){this._currentProjID=-1,this._projID=0}}class Y extends _.AbstractBatchRenderer{constructor(...e){super(...e),Y.prototype.__init.call(this),Y.prototype.__init2.call(this)}__init(){this.forceMaxTextures=0}getUniforms(e){return this.defUniforms}syncUniforms(e){if(e){var t=this._shader;for(const i in e)t.uniforms[i]=e[i]}}__init2(){this.defUniforms={}}buildDrawCalls(t,i,r){var{_bufferedElements:n,_attributeBuffer:s,_indexBuffer:o,vertexSize:a}=this,l=_.AbstractBatchRenderer._drawCallPool;let u=this._dcIndex,h=this._aIndex,c=this._iIndex,p=l[u];p.start=this._iIndex,p.texArray=t;for(let e=i;e<r;++e){var d=n[e],f=d._texture.baseTexture,f=g.premultiplyBlendMode[f.alphaMode?1:0][d.blendMode],m=this.getUniforms(d);n[e]=null,i<e&&(p.blend!==f||p.uniforms!==m)&&(p.size=c-p.start,i=e,(p=l[++u]).texArray=t,p.start=c),this.packInterleavedGeometry(d,s,o,h,c),h+=d.vertexData.length/2*a,c+=d.indices.length,p.blend=f,p.uniforms=m}i<r&&(p.size=c-p.start,++u),this._dcIndex=u,this._aIndex=h,this._iIndex=c}drawBatches(){var t=this._dcIndex,{gl:i,state:r,shader:n}=this.renderer,s=_.AbstractBatchRenderer._drawCallPool;let o=null,a=null;for(let e=0;e<t;e++){var{texArray:l,type:u,size:h,start:c,blend:p,uniforms:d}=s[e];a!==l&&(a=l,this.bindAndClearTexArray(l)),o!==d&&(o=d,this.syncUniforms(d),n.syncUniformGroup(this._shader.uniformGroup)),this.state.blendMode=p,r.set(this.state),i.drawElements(u,h,i.UNSIGNED_SHORT,2*c)}}contextChange(){if(this.forceMaxTextures){this.MAX_TEXTURES=this.forceMaxTextures,this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES),this.syncUniforms(this.defUniforms);for(let e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()}else super.contextChange(),this.syncUniforms(this.defUniforms)}}function W(e,t,i,r,n){var s=t.x-e.x,o=i.x-r.x,a=i.x-e.x,l=t.y-e.y,r=i.y-r.y,i=i.y-e.y,u=s*r-l*o;return Math.abs(u)<1e-7?(n.x=s,n.y=l,0):(r=(a*r-i*o)/u,(o=(s*i-l*a)/u)<1e-6||-1e-6<o-1?-1:(n.x=e.x+r*(t.x-e.x),n.y=e.y+r*(t.y-e.y),1))}_.Renderer.registerPlugin("batch2d",j.create({}));const V=[1,0,0,0,1,0,0,0,1];class n{static __initStatic(){this.IDENTITY=new n}static __initStatic2(){this.TEMP_MATRIX=new n}__init(){this.floatArray=null}constructor(e){n.prototype.__init.call(this),this.mat3=new Float64Array(e||V)}get a(){return this.mat3[0]/this.mat3[8]}set a(e){this.mat3[0]=e*this.mat3[8]}get b(){return this.mat3[1]/this.mat3[8]}set b(e){this.mat3[1]=e*this.mat3[8]}get c(){return this.mat3[3]/this.mat3[8]}set c(e){this.mat3[3]=e*this.mat3[8]}get d(){return this.mat3[4]/this.mat3[8]}set d(e){this.mat3[4]=e*this.mat3[8]}get tx(){return this.mat3[6]/this.mat3[8]}set tx(e){this.mat3[6]=e*this.mat3[8]}get ty(){return this.mat3[7]/this.mat3[8]}set ty(e){this.mat3[7]=e*this.mat3[8]}set(e,t,i,r,n,s){var o=this.mat3;return o[0]=e,o[1]=t,o[2]=0,o[3]=i,o[4]=r,o[5]=0,o[6]=n,o[7]=s,o[8]=1,this}toArray(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var t=t||this.floatArray,i=this.mat3;return e?(t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7]):(t[0]=i[0],t[1]=i[3],t[2]=i[6],t[3]=i[1],t[4]=i[4],t[5]=i[7],t[6]=i[2],t[7]=i[5]),t[8]=i[8],t}apply(e,t){t=t||new d.Point;var i=this.mat3,r=e.x,e=e.y,n=1/(i[2]*r+i[5]*e+i[8]);return t.x=n*(i[0]*r+i[3]*e+i[6]),t.y=n*(i[1]*r+i[4]*e+i[7]),t}translate(e,t){var i=this.mat3;return i[0]+=e*i[2],i[1]+=t*i[2],i[3]+=e*i[5],i[4]+=t*i[5],i[6]+=e*i[8],i[7]+=t*i[8],this}scale(e,t){var i=this.mat3;return i[0]*=e,i[1]*=t,i[3]*=e,i[4]*=t,i[6]*=e,i[7]*=t,this}scaleAndTranslate(e,t,i,r){var n=this.mat3;n[0]=e*n[0]+i*n[2],n[1]=t*n[1]+r*n[2],n[3]=e*n[3]+i*n[5],n[4]=t*n[4]+r*n[5],n[6]=e*n[6]+i*n[8],n[7]=t*n[7]+r*n[8]}applyInverse(e,t){t=t||new d.Point;var i=this.mat3,r=e.x,e=e.y,n=i[0],s=i[3],o=i[6],a=i[1],l=i[4],u=i[7],h=i[2],c=i[5],i=i[8],p=(-i*a+u*h)*r+(i*n-o*h)*e+(-u*n+o*a),h=(c*a-l*h)*r+(-c*n+s*h)*e+(l*n-s*a);return t.x=((i*l-u*c)*r+(-i*s+o*c)*e+(u*s-o*l))/h,t.y=p/h,t}invert(){var e=this.mat3,t=e[0],i=e[1],r=e[2],n=e[3],s=e[4],o=e[5],a=e[6],l=e[7],u=e[8],h=u*s-o*l,c=-u*n+o*a,p=l*n-s*a,d=t*h+i*c+r*p;return d&&(e[0]=h*(d=1/d),e[1]=(-u*i+r*l)*d,e[2]=(o*i-r*s)*d,e[3]=c*d,e[4]=(u*t-r*a)*d,e[5]=(-o*t+r*n)*d,e[6]=p*d,e[7]=(-l*t+i*a)*d,e[8]=(s*t-i*n)*d),this}identity(){var e=this.mat3;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,this}clone(){return new n(this.mat3)}copyTo2dOr3d(e){var t=this.mat3,i=e.mat3;return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],e}copyTo(t,i,r){var e=this.mat3,n=1/e[8],s=e[6]*n,o=e[7]*n;if(t.a=(e[0]-e[2]*s)*n,t.b=(e[1]-e[2]*o)*n,t.c=(e[3]-e[5]*s)*n,t.d=(e[4]-e[5]*o)*n,t.tx=s,t.ty=o,2<=i){let e=t.a*t.d-t.b*t.c;r||(e=Math.abs(e)),i===a.AFFINE.POINT?(e=0<e?1:-1,t.a=e,t.b=0,t.c=0,t.d=e):i===a.AFFINE.AXIS_X?(e/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=e):i===a.AFFINE.AXIS_Y?(e/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=e,t.c=0):i===a.AFFINE.AXIS_XR&&(t.a=t.d*e,t.c=-t.b*e)}return t}copyFrom(e){var t=this.mat3;return t[0]=e.a,t[1]=e.b,t[2]=0,t[3]=e.c,t[4]=e.d,t[5]=0,t[6]=e.tx,t[7]=e.ty,t[8]=1,this}setToMultLegacy(e,t){var i=this.mat3,t=t.mat3,r=e.a,n=e.b,s=e.c,o=e.d,a=e.tx,e=e.ty,l=t[0],u=t[1],h=t[2],c=t[3],p=t[4],d=t[5],f=t[6],m=t[7],t=t[8];return i[0]=l*r+u*s+h*a,i[1]=l*n+u*o+h*e,i[2]=h,i[3]=c*r+p*s+d*a,i[4]=c*n+p*o+d*e,i[5]=d,i[6]=f*r+m*s+t*a,i[7]=f*n+m*o+t*e,i[8]=t,this}setToMultLegacy2(e,t){var i=this.mat3,e=e.mat3,r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],h=e[7],e=e[8],c=t.a,p=t.b,d=t.c,f=t.d,m=t.tx,t=t.ty;return i[0]=c*r+p*o,i[1]=c*n+p*a,i[2]=c*s+p*l,i[3]=d*r+f*o,i[4]=d*n+f*a,i[5]=d*s+f*l,i[6]=m*r+t*o+u,i[7]=m*n+t*a+h,i[8]=m*s+t*l+e,this}setToMult(e,t){var i=this.mat3,e=e.mat3,t=t.mat3,r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],h=e[7],e=e[8],c=t[0],p=t[1],d=t[2],f=t[3],m=t[4],_=t[5],g=t[6],v=t[7],t=t[8];return i[0]=c*r+p*o+d*u,i[1]=c*n+p*a+d*h,i[2]=c*s+p*l+d*e,i[3]=f*r+m*o+_*u,i[4]=f*n+m*a+_*h,i[5]=f*s+m*l+_*e,i[6]=g*r+v*o+t*u,i[7]=g*n+v*a+t*h,i[8]=g*s+v*l+t*e,this}prepend(e){return e.mat3?this.setToMult(e,this):this.setToMultLegacy(e,this)}}n.__initStatic(),n.__initStatic2();const q=`attribute vec2 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 translationMatrix;
|
||
uniform mat3 uTransform;
|
||
|
||
varying vec3 vTextureCoord;
|
||
|
||
void main(void)
|
||
{
|
||
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
|
||
vTextureCoord = uTransform * vec3(aTextureCoord, 1.0);
|
||
}
|
||
`,c=new n;class K extends _.ObjectRenderer{constructor(e){super(e),K.prototype.__init.call(this);e={globals:this.renderer.globalUniforms};this.shader=_.Shader.from(q,`
|
||
varying vec3 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform vec4 uColor;
|
||
uniform mat3 uMapCoord;
|
||
uniform vec4 uClampFrame;
|
||
uniform vec2 uClampOffset;
|
||
|
||
void main(void)
|
||
{
|
||
vec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;
|
||
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
||
vec4 sample = texture2D(uSampler, coord);
|
||
gl_FragColor = sample * uColor;
|
||
}
|
||
`,e),this.simpleShader=_.Shader.from(q,`
|
||
varying vec3 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform vec4 uColor;
|
||
|
||
void main(void)
|
||
{
|
||
vec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);
|
||
gl_FragColor = sample * uColor;
|
||
}
|
||
`,e)}__init(){this.quad=new _.QuadUv}render(e){var t=this.renderer,i=this.quad;let r=i.vertices;r[0]=r[6]=e._width*-e.anchor.x,r[1]=r[3]=e._height*-e.anchor.y,r[2]=r[4]=e._width*(1-e.anchor.x),r[5]=r[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((r=i.uvs)[0]=r[6]=-e.anchor.x,r[1]=r[3]=-e.anchor.y,r[2]=r[4]=1-e.anchor.x,r[5]=r[7]=1-e.anchor.y),i.invalidate();var n=e._texture,s=n.baseTexture,o=e.tileProj.world,a=e.uvMatrix;let l=s.isPowerOfTwo&&n.frame.width===s.width&&n.frame.height===s.height;l&&(s._glTextures[t.CONTEXT_UID]?l=s.wrapMode!==h.WRAP_MODES.CLAMP:s.wrapMode===h.WRAP_MODES.CLAMP&&(s.wrapMode=h.WRAP_MODES.REPEAT));var u=l?this.simpleShader:this.shader;c.identity(),c.scale(n.width,n.height),c.prepend(o),c.scale(1/e._width,1/e._height),c.invert(),l?c.prepend(a.mapCoord):(u.uniforms.uMapCoord=a.mapCoord.toArray(!0),u.uniforms.uClampFrame=a.uClampFrame,u.uniforms.uClampOffset=a.uClampOffset),u.uniforms.uTransform=c.toArray(!0),u.uniforms.uColor=g.premultiplyTintToRgba(e.tint,e.worldAlpha,u.uniforms.uColor,s.premultiplyAlpha),u.uniforms.translationMatrix=e.worldTransform.toArray(!0),u.uniforms.uSampler=n,t.shader.bind(u,!1),t.geometry.bind(i,void 0),t.state.setBlendMode(g.correctBlendMode(e.blendMode,s.premultiplyAlpha)),t.geometry.draw(h.DRAW_MODES.TRIANGLES,6,0)}}const u=new d.Point,p=[new d.Point,new d.Point,new d.Point,new d.Point],o=new d.Rectangle,Z=new n;class l extends r{constructor(e,t){super(e,t),l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),this.local=new n,this.world=new n}__init(){this.matrix=new n}__init2(){this.pivot=new d.ObservablePoint(this.onChange,this,0,0)}__init3(){this.reverseLocalOrder=!1}onChange(){var e=this.pivot,t=this.matrix.mat3;t[6]=-(e._x*t[0]+e._y*t[3]),t[7]=-(e._x*t[1]+e._y*t[4]),this._projID++}setAxisX(e,t=1){var i=e.x,e=e.y,r=Math.sqrt(i*i+e*e),n=this.matrix.mat3;n[0]=i/r,n[1]=e/r,n[2]=t/r,this.onChange()}setAxisY(e,t=1){var i=e.x,e=e.y,r=Math.sqrt(i*i+e*e),n=this.matrix.mat3;n[3]=i/r,n[4]=e/r,n[5]=t/r,this.onChange()}mapSprite(e,t){var i=e.texture;o.x=-e.anchor.x*i.orig.width,o.y=-e.anchor.y*i.orig.height,o.width=i.orig.width,o.height=i.orig.height,this.mapQuad(o,t)}mapQuad(t,i){p[0].set(t.x,t.y),p[1].set(t.x+t.width,t.y),p[2].set(t.x+t.width,t.y+t.height),p[3].set(t.x,t.y+t.height);let r=1,n=2,s=3;t=W(i[0],i[2],i[1],i[3],u);if(0!==t){r=1,n=3,s=2;var t=Math.sqrt((i[0].x-u.x)*(i[0].x-u.x)+(i[0].y-u.y)*(i[0].y-u.y)),o=Math.sqrt((i[r].x-u.x)*(i[r].x-u.x)+(i[r].y-u.y)*(i[r].y-u.y)),a=Math.sqrt((i[n].x-u.x)*(i[n].x-u.x)+(i[n].y-u.y)*(i[n].y-u.y)),l=Math.sqrt((i[s].x-u.x)*(i[s].x-u.x)+(i[s].y-u.y)*(i[s].y-u.y)),t=(t+l)/l,l=(o+a)/a,a=(o+a)/o;let e=this.matrix.mat3;e[0]=p[0].x*t,e[1]=p[0].y*t,e[2]=t,e[3]=p[r].x*l,e[4]=p[r].y*l,e[5]=l,e[6]=p[n].x*a,e[7]=p[n].y*a,e[8]=a,this.matrix.invert(),(e=Z.mat3)[0]=i[0].x,e[1]=i[0].y,e[2]=1,e[3]=i[r].x,e[4]=i[r].y,e[5]=1,e[6]=i[n].x,e[7]=i[n].y,e[8]=1,this.matrix.setToMult(Z,this.matrix),this._projID++}}updateLocalTransform(e){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,e):this.local.setToMultLegacy(e,this.matrix):this.local.copyFrom(e)}clear(){super.clear(),this.matrix.identity(),this.pivot.set(0,0)}}function J(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class Q extends e.Container{constructor(){super(),this.proj=new l(this.transform)}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return t&&(e=t.toGlobal(e,i,r)),r||this._recursivePostUpdateTransform(),n>=a.TRANSFORM_STEP.PROJ?(r||this.displayObjectUpdateTransform(),(this.proj.affine?this.transform.worldTransform:this.proj.world).applyInverse(e,i)):(this.parent?i=this.parent.worldTransform.applyInverse(e,i):(i.x=e.x,i.y=e.y),n===a.TRANSFORM_STEP.NONE?i:this.transform.localTransform.applyInverse(i,i))}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const $=Q.prototype.toLocal;class f extends s.Mesh{static __initStatic(){this.defaultVertexShader=`precision highp float;
|
||
attribute vec2 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 translationMatrix;
|
||
uniform mat3 uTextureMatrix;
|
||
|
||
varying vec2 vTextureCoord;
|
||
|
||
void main(void)
|
||
{
|
||
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
gl_Position.z = 0.0;
|
||
|
||
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||
}
|
||
`}static __initStatic2(){this.defaultFragmentShader=`
|
||
varying vec2 vTextureCoord;
|
||
uniform vec4 uColor;
|
||
|
||
uniform sampler2D uSampler;
|
||
|
||
void main(void)
|
||
{
|
||
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
||
}`}constructor(e,t,i,r){super(e,t,i,r),f.prototype.__init.call(this),this.proj=new l(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{var e=this.geometry,t=e.buffers[0].data;if(e.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length)),this.vertexData2d&&this.vertexData2d.length===3*t.length/2||(this.vertexData2d=new Float32Array(3*t.length));var i=this.proj.world.mat3,r=this.vertexData2d,n=this.vertexData;for(let e=0;e<n.length/2;e++){var s=t[2*e],o=t[2*e+1],a=i[0]*s+i[3]*o+i[6],l=i[1]*s+i[4]*o+i[7],s=i[2]*s+i[5]*o+i[8];r[3*e]=a,r[3*e+1]=l,r[3*e+2]=s,n[2*e]=a/s,n[2*e+1]=l/s}this.vertexDirty=e.vertexDirtyId}}}_renderDefault(e){var t=this.shader;t.alpha=this.worldAlpha,t.update&&t.update(),e.batch.flush(),function(e){let t=void 0,i=e[0],r=1;for(;r<e.length;){var n=e[r],s=e[r+1];if(r+=2,("optionalAccess"===n||"optionalCall"===n)&&null==i)return;"access"===n||"optionalAccess"===n?i=s(t=i):"call"!==n&&"optionalCall"!==n||(i=s((...e)=>i.call(t,...e)),t=void 0)}return i}([t,"access",e=>e.program,"access",e=>e.uniformData,"optionalAccess",e=>e.translationMatrix])&&(t.uniforms.translationMatrix=this.worldTransform.toArray(!0)),e.shader.bind(t,!1),e.state.set(this.state),e.geometry.bind(this.geometry,t),e.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return $.call(this,e,t,i,r,n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}f.__initStatic(),f.__initStatic2();class ee extends f{constructor(e,t,i,r,n){super(new s.MeshGeometry(t,i,r),new s.MeshMaterial(e,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"}),null,n),ee.prototype.__init2.call(this),this.geometry.getBuffer("aVertexPosition").static=!1}__init2(){this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class m extends t.Sprite{constructor(e){super(e),m.prototype.__init.call(this),this.proj=new l(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){var n=this._texture;if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{this.vertexData2d||(this.vertexData2d=new Float32Array(12));var s=this.transform._worldID,o=n._updateID;if(this._transformID!==s||this._textureID!==o){this._textureID!==o&&(this.uvs=n._uvs.uvsFloat32),this._transformID=s,this._textureID=o;var s=this.proj.world.mat3,o=this.vertexData2d,a=this.vertexData,l=n.trim,n=n.orig,u=this._anchor;let e,t,i,r;i=l?(t=l.x-u._x*n.width,e=t+l.width,(r=l.y-u._y*n.height)+l.height):(t=-u._x*n.width,e=t+n.width,(r=-u._y*n.height)+n.height),o[0]=s[0]*t+s[3]*r+s[6],o[1]=s[1]*t+s[4]*r+s[7],o[2]=s[2]*t+s[5]*r+s[8],o[3]=s[0]*e+s[3]*r+s[6],o[4]=s[1]*e+s[4]*r+s[7],o[5]=s[2]*e+s[5]*r+s[8],o[6]=s[0]*e+s[3]*i+s[6],o[7]=s[1]*e+s[4]*i+s[7],o[8]=s[2]*e+s[5]*i+s[8],o[9]=s[0]*t+s[3]*i+s[6],o[10]=s[1]*t+s[4]*i+s[7],o[11]=s[2]*t+s[5]*i+s[8],a[0]=o[0]/o[2],a[1]=o[1]/o[2],a[2]=o[3]/o[5],a[3]=o[4]/o[5],a[4]=o[6]/o[8],a[5]=o[7]/o[8],a[6]=o[9]/o[11],a[7]=o[10]/o[11]}}}calculateTrimmedVertices(){if(this.proj._affine)super.calculateTrimmedVertices();else{var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var e=this._texture,t=this.vertexTrimmedData,e=e.orig,i=this.tileProj?this._width:e.width,e=this.tileProj?this._height:e.height,r=this._anchor,n=this.proj.world.mat3,s=-r._x*i,i=s+i,r=-r._y*e,e=r+e,o=1/(n[2]*s+n[5]*r+n[8]);t[0]=o*(n[0]*s+n[3]*r+n[6]),t[1]=o*(n[1]*s+n[4]*r+n[7]),o=1/(n[2]*i+n[5]*r+n[8]),t[2]=o*(n[0]*i+n[3]*r+n[6]),t[3]=o*(n[1]*i+n[4]*r+n[7]),o=1/(n[2]*i+n[5]*e+n[8]),t[4]=o*(n[0]*i+n[3]*e+n[6]),t[5]=o*(n[1]*i+n[4]*e+n[7]),o=1/(n[2]*s+n[5]*e+n[8]),t[6]=o*(n[0]*s+n[3]*e+n[6]),t[7]=o*(n[1]*s+n[4]*e+n[7])}}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return $.call(this,e,t,i,r,n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const te=new d.Transform;class ie extends F.TilingSprite{constructor(e,t,i){super(e,t,i),this.tileProj=new l(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.proj=new l(this.transform),this.pluginName="tilingSprite2d",this.uvRespectAnchor=!0}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return $.call(this,e,t,i,r,n)}_render(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateTransform(te),this.uvMatrix.update(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))}}function re(){this.proj||(this.proj=new l(this.transform),this.toLocal=Q.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:J,enumerable:!0,configurable:!0}))}e.Container.prototype.convertTo2d=re,t.Sprite.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=m.prototype.calculateVertices,this.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,this._calculateBounds=m.prototype._calculateBounds,this.pluginName="batch2d",re.call(this))},e.Container.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(let e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2d()},N.SimpleMesh.prototype.convertTo2d=N.SimpleRope.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=f.prototype.calculateVertices,this._renderDefault=f.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new s.MeshMaterial(this.material.texture,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"})),re.call(this))},F.TilingSprite.prototype.convertTo2d=function(){this.proj||(this.tileProj=new l(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.uvRespectAnchor=!0,this.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,this._calculateBounds=m.prototype._calculateBounds,this._render=ie.prototype._render,this.pluginName="tilingSprite2d",re.call(this))};class v extends z.Text{constructor(e,t,i){super(e,t,i),v.prototype.__init.call(this),this.proj=new l(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}v.prototype.calculateVertices=m.prototype.calculateVertices,v.prototype.calculateTrimmedVertices=m.prototype.calculateTrimmedVertices,v.prototype._calculateBounds=m.prototype._calculateBounds;const ne=new n;class se extends _.Filter{constructor(e){super(`
|
||
attribute vec2 aVertexPosition;
|
||
attribute vec2 aTextureCoord;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 otherMatrix;
|
||
|
||
varying vec3 vMaskCoord;
|
||
varying vec2 vTextureCoord;
|
||
|
||
void main(void)
|
||
{
|
||
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
||
vTextureCoord = aTextureCoord;
|
||
vMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);
|
||
}
|
||
`,`
|
||
varying vec3 vMaskCoord;
|
||
varying vec2 vTextureCoord;
|
||
|
||
uniform sampler2D uSampler;
|
||
uniform sampler2D mask;
|
||
uniform float alpha;
|
||
uniform vec4 maskClamp;
|
||
|
||
void main(void)
|
||
{
|
||
vec2 uv = vMaskCoord.xy / vMaskCoord.z;
|
||
|
||
float clip = step(3.5,
|
||
step(maskClamp.x, uv.x) +
|
||
step(maskClamp.y, uv.y) +
|
||
step(uv.x, maskClamp.z) +
|
||
step(uv.y, maskClamp.w));
|
||
|
||
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
vec4 masky = texture2D(mask, uv);
|
||
|
||
original *= (masky.r * masky.a * alpha * clip);
|
||
|
||
gl_FragColor = original;
|
||
}
|
||
`),se.prototype.__init.call(this),e.renderable=!1,this.maskSprite=e}__init(){this.maskMatrix=new n}apply(e,t,i,r){var n=this.maskSprite,s=this.maskSprite.texture;s.valid&&(s.uvMatrix||(s.uvMatrix=new _.TextureMatrix(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=n.texture,this.uniforms.otherMatrix=se.calculateSpriteMatrix(t,this.maskMatrix,n).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,e.applyFilter(this,t,i,r))}static calculateSpriteMatrix(e,t,i){var r=i.proj,n=e.filterFrame,r=r&&!r._affine?r.world.copyTo2dOr3d(ne):ne.copyFrom(i.transform.worldTransform),s=i.texture.orig;return t.set(e.width,0,0,e.height,n.x,n.y),r.invert(),t.setToMult(r,t),t.scaleAndTranslate(1/s.width,1/s.height,i.anchor.x,i.anchor.y),t}}_.MaskSystem.prototype.pushSpriteMask=function(e){var t=e["maskObject"],e=e._target;let i=this.alphaMaskPool[this.alphaMaskIndex];(i=i||(this.alphaMaskPool[this.alphaMaskIndex]=[new se(t)]))[0].resolution=this.renderer.resolution,i[0].maskSprite=t;var r=e.filterArea;e.filterArea=t.getBounds(!0),this.renderer.filter.push(e,i),e.filterArea=r,this.alphaMaskIndex++},_.Renderer.registerPlugin("tilingSprite2d",K);class oe extends d.Point{constructor(e,t,i){super(e,t),this.z=i}set(e,t,i){return this.x=e||0,this.y=void 0===t?this.x:t||0,this.z=void 0===t?this.x:i||0,this}copyFrom(e){return this.set(e.x,e.y,e.z||0),this}copyTo(e){return e.set(this.x,this.y,this.z),e}}class y extends d.ObservablePoint{constructor(...e){super(...e),y.prototype.__init.call(this)}__init(){this._z=0}get z(){return this._z}set z(e){this._z!==e&&(this._z=e,this.cb.call(this.scope))}set(e,t,i){var e=e||0,r=void 0===t?e:t||0,t=void 0===t?e:i||0;return this._x===e&&this._y===r&&this._z===t||(this._x=e,this._y=r,this._z=t,this.cb.call(this.scope)),this}copyFrom(e){return this.set(e.x,e.y,e.z||0),this}copyTo(e){return e.set(this._x,this._y,this._z),e}}class b{constructor(e,t,i){b.prototype.__init.call(this),b.prototype.__init2.call(this),b.prototype.__init3.call(this),this._x=e||0,this._y=t||0,this._z=i||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._quatDirtyId++)}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._quatDirtyId++)}get z(){return this._z}set z(e){this._z!==e&&(this._z=e,this._quatDirtyId++)}get pitch(){return this._x}set pitch(e){this._x!==e&&(this._x=e,this._quatDirtyId++)}get yaw(){return this._y}set yaw(e){this._y!==e&&(this._y=e,this._quatDirtyId++)}get roll(){return this._z}set roll(e){this._z!==e&&(this._z=e,this._quatDirtyId++)}set(e,t,i){e=e||0,t=t||0,i=i||0;this._x===e&&this._y===t&&this._z===i||(this._x=e,this._y=t,this._z=i,this._quatDirtyId++)}copyFrom(e){var t=e.x,i=e.y,e=e.z;return this._x===t&&this._y===i&&this._z===e||(this._x=t,this._y=i,this._z=e,this._quatDirtyId++),this}copyTo(e){return e.set(this._x,this._y,this._z),e}equals(e){return this._x===e.x&&this._y===e.y&&this._z===e.z}clone(){return new b(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var e=Math.cos(this._x/2),t=Math.cos(this._y/2),i=Math.cos(this._z/2),r=this._sign,n=r*Math.sin(this._x/2),s=r*Math.sin(this._y/2),r=r*Math.sin(this._z/2),o=this.quaternion;return o[0]=n*t*i+e*s*r,o[1]=e*s*i-n*t*r,o[2]=e*t*r+n*s*i,o[3]=e*t*i-n*s*r,!0}}class x{constructor(e,t,i,r,n){this.cb=e,this.scope=t,x.prototype.__init.call(this),x.prototype.__init2.call(this),x.prototype.__init3.call(this),this._x=i||0,this._y=r||0,this._z=n||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))}get z(){return this._z}set z(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))}get pitch(){return this._x}set pitch(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))}get yaw(){return this._y}set yaw(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))}get roll(){return this._z}set roll(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))}set(e,t,i){e=e||0,t=t||0,i=i||0;return this._x===e&&this._y===t&&this._z===i||(this._x=e,this._y=t,this._z=i,this._quatDirtyId++,this.cb.call(this.scope)),this}copyFrom(e){var t=e.x,i=e.y,e=e.z;return this._x===t&&this._y===i&&this._z===e||(this._x=t,this._y=i,this._z=e,this._quatDirtyId++,this.cb.call(this.scope)),this}copyTo(e){return e.set(this._x,this._y,this._z),e}equals(e){return this._x===e.x&&this._y===e.y&&this._z===e.z}clone(){return new b(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var e=Math.cos(this._x/2),t=Math.cos(this._y/2),i=Math.cos(this._z/2),r=this._sign,n=r*Math.sin(this._x/2),s=r*Math.sin(this._y/2),r=r*Math.sin(this._z/2),o=this.quaternion;return o[0]=n*t*i+e*s*r,o[1]=e*s*i-n*t*r,o[2]=e*t*r+n*s*i,o[3]=e*t*i-n*s*r,!0}}const ae=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class T{static __initStatic(){this.IDENTITY=new T}static __initStatic2(){this.TEMP_MATRIX=new T}__init(){this.floatArray=null}__init2(){this._dirtyId=0}__init3(){this._updateId=-1}__init4(){this._mat4inv=null}__init5(){this.cacheInverse=!1}constructor(e){T.prototype.__init.call(this),T.prototype.__init2.call(this),T.prototype.__init3.call(this),T.prototype.__init4.call(this),T.prototype.__init5.call(this),this.mat4=new Float64Array(e||ae)}get a(){return this.mat4[0]/this.mat4[15]}set a(e){this.mat4[0]=e*this.mat4[15]}get b(){return this.mat4[1]/this.mat4[15]}set b(e){this.mat4[1]=e*this.mat4[15]}get c(){return this.mat4[4]/this.mat4[15]}set c(e){this.mat4[4]=e*this.mat4[15]}get d(){return this.mat4[5]/this.mat4[15]}set d(e){this.mat4[5]=e*this.mat4[15]}get tx(){return this.mat4[12]/this.mat4[15]}set tx(e){this.mat4[12]=e*this.mat4[15]}get ty(){return this.mat4[13]/this.mat4[15]}set ty(e){this.mat4[13]=e*this.mat4[15]}set(e,t,i,r,n,s){var o=this.mat4;return o[0]=e,o[1]=t,o[2]=0,o[3]=0,o[4]=i,o[5]=r,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=n,o[13]=s,o[14]=0,o[15]=1,this}toArray(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var t=t||this.floatArray,i=this.mat4;return e?(t[0]=i[0],t[1]=i[1],t[2]=i[3],t[3]=i[4],t[4]=i[5],t[5]=i[7],t[6]=i[12],t[7]=i[13]):(t[0]=i[0],t[1]=i[4],t[2]=i[12],t[3]=i[2],t[4]=i[6],t[5]=i[13],t[6]=i[3],t[7]=i[7]),t[8]=i[15],t}setToTranslation(e,t,i){var r=this.mat4;r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=e,r[13]=t,r[14]=i,r[15]=1}setToRotationTranslationScale(e,t,i,r,n,s,o){var a=this.mat4,l=e[0],u=e[1],h=e[2],e=e[3],c=l+l,p=u+u,d=h+h,f=l*c,m=l*p,l=l*d,_=u*p,u=u*d,h=h*d,c=e*c,p=e*p,e=e*d;return a[0]=(1-(_+h))*n,a[1]=(m+e)*n,a[2]=(l-p)*n,a[3]=0,a[4]=(m-e)*s,a[5]=(1-(f+h))*s,a[6]=(u+c)*s,a[7]=0,a[8]=(l+p)*o,a[9]=(u-c)*o,a[10]=(1-(f+_))*o,a[11]=0,a[12]=t,a[13]=i,a[14]=r,a[15]=1,a}apply(e,t){t=t||new oe;var i=this.mat4,r=e.x,n=e.y,e=e.z||0,s=1/(i[3]*r+i[7]*n+i[11]*e+i[15]);return t.x=s*(i[0]*r+i[4]*n+i[8]*e+i[12]),t.y=s*(i[1]*r+i[5]*n+i[9]*e+i[13]),t.z=s*(i[2]*r+i[6]*n+i[10]*e+i[14]),t}translate(e,t,i){var r=this.mat4;return r[12]=r[0]*e+r[4]*t+r[8]*i+r[12],r[13]=r[1]*e+r[5]*t+r[9]*i+r[13],r[14]=r[2]*e+r[6]*t+r[10]*i+r[14],r[15]=r[3]*e+r[7]*t+r[11]*i+r[15],this}scale(e,t,i){var r=this.mat4;return r[0]*=e,r[1]*=e,r[2]*=e,r[3]*=e,r[4]*=t,r[5]*=t,r[6]*=t,r[7]*=t,void 0!==i&&(r[8]*=i,r[9]*=i,r[10]*=i,r[11]*=i),this}scaleAndTranslate(e,t,i,r,n,s){var o=this.mat4;o[0]=e*o[0]+r*o[3],o[1]=t*o[1]+n*o[3],o[2]=i*o[2]+s*o[3],o[4]=e*o[4]+r*o[7],o[5]=t*o[5]+n*o[7],o[6]=i*o[6]+s*o[7],o[8]=e*o[8]+r*o[11],o[9]=t*o[9]+n*o[11],o[10]=i*o[10]+s*o[11],o[12]=e*o[12]+r*o[15],o[13]=t*o[13]+n*o[15],o[14]=i*o[14]+s*o[15]}applyInverse(e,t){t=t||new oe,this._mat4inv||(this._mat4inv=new Float64Array(16));var i=this._mat4inv,r=this.mat4,n=e.x,s=e.y,e=e.z||0,r=(this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,T.glMatrixMat4Invert(i,r)),1/(i[3]*n+i[7]*s+i[11]*e+i[15])),o=r*(i[0]*n+i[4]*s+i[8]*e+i[12]),a=r*(i[1]*n+i[5]*s+i[9]*e+i[13]),r=r*(i[2]*n+i[6]*s+i[10]*e+i[14]),l=1/(i[3]*n+i[7]*s+i[11]*(e+=1)+i[15]),u=l*(i[0]*n+i[4]*s+i[8]*e+i[12]),h=l*(i[1]*n+i[5]*s+i[9]*e+i[13]),l=l*(i[2]*n+i[6]*s+i[10]*e+i[14]),n=(Math.abs(r-l)<1e-10&&t.set(NaN,NaN,0),(0-r)/(l-r));return t.set((u-o)*n+o,(h-a)*n+a,0),t}invert(){return T.glMatrixMat4Invert(this.mat4,this.mat4),this}invertCopyTo(e){this._mat4inv||(this._mat4inv=new Float64Array(16));var t=this._mat4inv,i=this.mat4;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,T.glMatrixMat4Invert(t,i)),e.mat4.set(t)}identity(){var e=this.mat4;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}clone(){return new T(this.mat4)}copyTo3d(e){var t=this.mat4,i=e.mat4;return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],e}copyTo2d(e){var t=this.mat4,i=e.mat3;return i[0]=t[0],i[1]=t[1],i[2]=t[3],i[3]=t[4],i[4]=t[5],i[5]=t[7],i[6]=t[12],i[7]=t[13],i[8]=t[15],e}copyTo2dOr3d(e){return e instanceof n?this.copyTo2d(e):this.copyTo3d(e)}copyTo(t,i,r){var e=this.mat4,n=1/e[15],s=e[12]*n,o=e[13]*n;if(t.a=(e[0]-e[3]*s)*n,t.b=(e[1]-e[3]*o)*n,t.c=(e[4]-e[7]*s)*n,t.d=(e[5]-e[7]*o)*n,t.tx=s,t.ty=o,2<=i){let e=t.a*t.d-t.b*t.c;r||(e=Math.abs(e)),i===a.AFFINE.POINT?(e=0<e?1:-1,t.a=e,t.b=0,t.c=0,t.d=e):i===a.AFFINE.AXIS_X?(e/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=e):i===a.AFFINE.AXIS_Y&&(e/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=e,t.c=0)}return t}copyFrom(e){var t=this.mat4;return t[0]=e.a,t[1]=e.b,t[2]=0,t[3]=0,t[4]=e.c,t[5]=e.d,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e.tx,t[13]=e.ty,t[14]=0,t[15]=1,this._dirtyId++,this}setToMultLegacy(e,t){var i=this.mat4,t=t.mat4,r=e.a,n=e.b,s=e.c,o=e.d,a=e.tx,e=e.ty,l=t[0],u=t[1],h=t[2],c=t[3];return i[0]=l*r+u*s+c*a,i[1]=l*n+u*o+c*e,i[2]=h,i[3]=c,l=t[4],u=t[5],h=t[6],c=t[7],i[4]=l*r+u*s+c*a,i[5]=l*n+u*o+c*e,i[6]=h,i[7]=c,l=t[8],u=t[9],h=t[10],c=t[11],i[8]=l*r+u*s+c*a,i[9]=l*n+u*o+c*e,i[10]=h,i[11]=c,l=t[12],u=t[13],h=t[14],c=t[15],i[12]=l*r+u*s+c*a,i[13]=l*n+u*o+c*e,i[14]=h,i[15]=c,this._dirtyId++,this}setToMultLegacy2(e,t){var i=this.mat4,e=e.mat4,r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],h=e[7],c=t.a,p=t.b,d=t.c,f=t.d,m=t.tx,t=t.ty;return i[0]=c*r+p*a,i[1]=c*n+p*l,i[2]=c*s+p*u,i[3]=c*o+p*h,i[4]=d*r+f*a,i[5]=d*n+f*l,i[6]=d*s+f*u,i[7]=d*o+f*h,i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=m*r+t*a+e[12],i[13]=m*n+t*l+e[13],i[14]=m*s+t*u+e[14],i[15]=m*o+t*h+e[15],this._dirtyId++,this}setToMult(e,t){return T.glMatrixMat4Multiply(this.mat4,e.mat4,t.mat4),this._dirtyId++,this}prepend(e){e.mat4?this.setToMult(e,this):this.setToMultLegacy(e,this)}static glMatrixMat4Invert(e,t){var i=t[0],r=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],h=t[8],c=t[9],p=t[10],d=t[11],f=t[12],m=t[13],_=t[14],t=t[15],g=i*a-r*o,v=i*l-n*o,y=i*u-s*o,b=r*l-n*a,x=r*u-s*a,T=n*u-s*l,w=h*m-c*f,E=h*_-p*f,S=h*t-d*f,A=c*_-p*m,k=c*t-d*m,P=p*t-d*_,O=g*P-v*k+y*A+b*S-x*E+T*w;return O?(e[0]=(a*P-l*k+u*A)*(O=1/O),e[1]=(n*k-r*P-s*A)*O,e[2]=(m*T-_*x+t*b)*O,e[3]=(p*x-c*T-d*b)*O,e[4]=(l*S-o*P-u*E)*O,e[5]=(i*P-n*S+s*E)*O,e[6]=(_*y-f*T-t*v)*O,e[7]=(h*T-p*y+d*v)*O,e[8]=(o*k-a*S+u*w)*O,e[9]=(r*S-i*k-s*w)*O,e[10]=(f*x-m*y+t*g)*O,e[11]=(c*y-h*x-d*g)*O,e[12]=(a*E-o*A-l*w)*O,e[13]=(i*A-r*E+n*w)*O,e[14]=(m*v-f*b-_*g)*O,e[15]=(h*b-c*v+p*g)*O,e):null}static glMatrixMat4Multiply(e,t,i){var r=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=t[6],h=t[7],c=t[8],p=t[9],d=t[10],f=t[11],m=t[12],_=t[13],g=t[14],t=t[15],v=i[0],y=i[1],b=i[2],x=i[3];return e[0]=v*r+y*a+b*c+x*m,e[1]=v*n+y*l+b*p+x*_,e[2]=v*s+y*u+b*d+x*g,e[3]=v*o+y*h+b*f+x*t,v=i[4],y=i[5],b=i[6],x=i[7],e[4]=v*r+y*a+b*c+x*m,e[5]=v*n+y*l+b*p+x*_,e[6]=v*s+y*u+b*d+x*g,e[7]=v*o+y*h+b*f+x*t,v=i[8],y=i[9],b=i[10],x=i[11],e[8]=v*r+y*a+b*c+x*m,e[9]=v*n+y*l+b*p+x*_,e[10]=v*s+y*u+b*d+x*g,e[11]=v*o+y*h+b*f+x*t,v=i[12],y=i[13],b=i[14],x=i[15],e[12]=v*r+y*a+b*c+x*m,e[13]=v*n+y*l+b*p+x*_,e[14]=v*s+y*u+b*d+x*g,e[15]=v*o+y*h+b*f+x*t,e}}T.__initStatic(),T.__initStatic2();const le=new T;class w extends r{constructor(e,t){super(e,t),w.prototype.__init.call(this),w.prototype.__init2.call(this),w.prototype.__init3.call(this),w.prototype.__init4.call(this),w.prototype.__init5.call(this),w.prototype.__init6.call(this),this.local=new T,this.world=new T,this.local.cacheInverse=!0,this.world.cacheInverse=!0,this.position._z=0,this.scale._z=1,this.pivot._z=0}__init(){this.cameraMatrix=null}__init2(){this._cameraMode=!1}get cameraMode(){return this._cameraMode}set cameraMode(e){this._cameraMode!==e&&(this._cameraMode=e,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,e&&(this.cameraMatrix=new T))}__init3(){this.position=new y(this.onChange,this,0,0)}__init4(){this.scale=new y(this.onChange,this,1,1)}__init5(){this.euler=new x(this.onChange,this,0,0,0)}__init6(){this.pivot=new y(this.onChange,this,0,0)}onChange(){this._projID++}clear(){this.cameraMatrix&&this.cameraMatrix.identity(),this.position.set(0,0,0),this.scale.set(1,1,1),this.euler.set(0,0,0),this.pivot.set(0,0,0),super.clear()}updateLocalTransform(e){var t,i,r,n,s;0===this._projID?this.local.copyFrom(e):(t=this.local,i=this.euler,r=this.position,n=this.scale,s=this.pivot,i.update(),this.cameraMode?(t.setToMultLegacy(e,this.cameraMatrix),t.translate(s._x,s._y,s._z),t.scale(1/n._x,1/n._y,1/n._z),le.setToRotationTranslationScale(i.quaternion,0,0,0,1,1,1),t.setToMult(t,le),t.translate(-r._x,-r._y,-r._z),this.local._dirtyId++):(t.setToRotationTranslationScale(i.quaternion,r._x,r._y,r._z,n._x,n._y,n._z),t.translate(-s._x,-s._y,-s._z),t.setToMultLegacy(e,t)))}}function ue(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class E extends e.Container{constructor(){super(),this.proj=new w(this.transform)}isFrontFace(e=!1){e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var e=this.proj.world.mat4,t=e[0]*e[15]-e[3]*e[12],i=e[1]*e[15]-e[3]*e[13],r=e[4]*e[15]-e[7]*e[12];return 0<t*(e[5]*e[15]-e[7]*e[13])-r*i}getDepth(e=!1){e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());e=this.proj.world.mat4;return e[14]/e[15]}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return t&&(e=t.toGlobal(e,i,r)),r||this._recursivePostUpdateTransform(),n===a.TRANSFORM_STEP.ALL?(r||this.displayObjectUpdateTransform(),(this.proj.affine?this.transform.worldTransform:this.proj.world).applyInverse(e,i)):(this.parent?i=this.parent.worldTransform.applyInverse(e,i):(i.x=e.x,i.y=e.y,i.z=e.z),n!==a.TRANSFORM_STEP.NONE&&(i=this.transform.localTransform.applyInverse(i,i),n===a.TRANSFORM_STEP.PROJ&&this.proj.cameraMode&&(i=this.proj.cameraMatrix.applyInverse(i,i))),i)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}const he=E.prototype.toLocal,ce=E.prototype.getDepth,pe=E.prototype.isFrontFace;class S extends E{constructor(){super(),S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),this.proj.cameraMode=!0,this.setPlanes(400,10,1e4,!1)}__init(){this._far=0}__init2(){this._near=0}__init3(){this._focus=0}__init4(){this._orthographic=!1}get far(){return this._far}get near(){return this._near}get focus(){return this._focus}get ortographic(){return this._orthographic}setPlanes(e,t=10,i=1e4,r=!1){this._focus=e,this._near=t,this._far=i,this._orthographic=r;var r=this.proj,n=r.cameraMatrix.mat4;r._projID++,n[10]=1/(i-t),n[14]=(e-t)/(i-t),this._orthographic?n[11]=0:n[11]=1/e}}class A extends s.Mesh{constructor(e,t,i,r){super(e,t,i,r),A.prototype.__init.call(this),this.proj=new w(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{var e=this.geometry,t=e.buffers[0].data;if(e.vertexDirtyId!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length)),this.vertexData2d&&this.vertexData2d.length===3*t.length/2||(this.vertexData2d=new Float32Array(3*t.length));var i=this.proj.world.mat4,r=this.vertexData2d,n=this.vertexData;for(let e=0;e<n.length/2;e++){var s=t[2*e],o=t[2*e+1],a=i[0]*s+i[4]*o+i[12],l=i[1]*s+i[5]*o+i[13],s=i[3]*s+i[7]*o+i[15];r[3*e]=a,r[3*e+1]=l,r[3*e+2]=s,n[2*e]=a/s,n[2*e+1]=l/s}this.vertexDirty=e.vertexDirtyId}}}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return he.call(this,e,t,i,r,n)}isFrontFace(e){return pe.call(this,e)}getDepth(e){return ce.call(this,e)}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}A.prototype._renderDefault=f.prototype._renderDefault;class de extends A{constructor(e,t,i,r,n){super(new s.MeshGeometry(t,i,r),new s.MeshMaterial(e,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"}),null,n),de.prototype.__init2.call(this),this.geometry.getBuffer("aVertexPosition").static=!1}__init2(){this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class k extends t.Sprite{constructor(e){super(e),k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),this.proj=new w(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}__init2(){this.culledByFrustrum=!1}__init3(){this.trimmedCulledByFrustrum=!1}calculateVertices(){var n=this._texture;if(this.proj._affine)this.vertexData2d=null,super.calculateVertices();else{this.vertexData2d||(this.vertexData2d=new Float32Array(12));var s=this.transform._worldID,o=n._updateID;if(this._transformID!==s||this._textureID!==o){this._textureID!==o&&(this.uvs=n._uvs.uvsFloat32),this._transformID=s,this._textureID=o;var s=this.proj.world.mat4,o=this.vertexData2d,a=this.vertexData,l=n.trim,n=n.orig,u=this._anchor;let e,t,i,r;i=l?(t=l.x-u._x*n.width,e=t+l.width,(r=l.y-u._y*n.height)+l.height):(t=-u._x*n.width,e=t+n.width,(r=-u._y*n.height)+n.height);o[0]=s[0]*t+s[4]*r+s[12],o[1]=s[1]*t+s[5]*r+s[13],l=s[2]*t+s[6]*r+s[14],o[2]=s[3]*t+s[7]*r+s[15],u=l<0,o[3]=s[0]*e+s[4]*r+s[12],o[4]=s[1]*e+s[5]*r+s[13],l=s[2]*e+s[6]*r+s[14],o[5]=s[3]*e+s[7]*r+s[15],u=u||l<0,o[6]=s[0]*e+s[4]*i+s[12],o[7]=s[1]*e+s[5]*i+s[13],l=s[2]*e+s[6]*i+s[14],o[8]=s[3]*e+s[7]*i+s[15],u=u||l<0,o[9]=s[0]*t+s[4]*i+s[12],o[10]=s[1]*t+s[5]*i+s[13],l=s[2]*t+s[6]*i+s[14],o[11]=s[3]*t+s[7]*i+s[15],this.culledByFrustrum=u||l<0,a[0]=o[0]/o[2],a[1]=o[1]/o[2],a[2]=o[3]/o[5],a[3]=o[4]/o[5],a[4]=o[6]/o[8],a[5]=o[7]/o[8],a[6]=o[9]/o[11],a[7]=o[10]/o[11]}}}calculateTrimmedVertices(){if(this.proj._affine)super.calculateTrimmedVertices();else{var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var i,e=this._texture,t=this.vertexTrimmedData,e=e.orig,r=this._anchor,n=this.proj.world.mat4,s=-r._x*e.width,o=s+e.width,r=-r._y*e.height,e=r+e.height,a=1/(n[3]*s+n[7]*r+n[15]);t[0]=a*(n[0]*s+n[4]*r+n[12]),t[1]=a*(n[1]*s+n[5]*r+n[13]),i=n[2]*s+n[6]*r+n[14]<0,a=1/(n[3]*o+n[7]*r+n[15]),t[2]=a*(n[0]*o+n[4]*r+n[12]),t[3]=a*(n[1]*o+n[5]*r+n[13]),r=n[2]*o+n[6]*r+n[14],i=i||r<0,a=1/(n[3]*o+n[7]*e+n[15]),t[4]=a*(n[0]*o+n[4]*e+n[12]),t[5]=a*(n[1]*o+n[5]*e+n[13]),r=n[2]*o+n[6]*e+n[14],i=i||r<0,a=1/(n[3]*s+n[7]*e+n[15]),t[6]=a*(n[0]*s+n[4]*e+n[12]),t[7]=a*(n[1]*s+n[5]*e+n[13]),r=n[2]*s+n[6]*e+n[14],this.culledByFrustrum=i||r<0}}_calculateBounds(){var e,t;this.calculateVertices(),this.culledByFrustrum||(e=this._texture.trim,t=this._texture.orig,!e||e.width===t.width&&e.height===t.height?this._bounds.addQuad(this.vertexData):(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData)))}_render(e){this.calculateVertices(),this.culledByFrustrum||(e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))}containsPoint(e){return!this.culledByFrustrum&&super.containsPoint(e)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return he.call(this,e,t,i,r,n)}isFrontFace(e){return pe.call(this,e)}getDepth(e){return ce.call(this,e)}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}const fe={worldTransform:{get:ue,enumerable:!0,configurable:!0},position3d:{get(){return this.proj.position},set(e){this.proj.position.copy(e)}},scale3d:{get(){return this.proj.scale},set(e){this.proj.scale.copy(e)}},pivot3d:{get(){return this.proj.pivot},set(e){this.proj.pivot.copy(e)}},euler:{get(){return this.proj.euler},set(e){this.proj.euler.copy(e)}}};function me(){this.proj||(this.proj=new w(this.transform),this.toLocal=E.prototype.toLocal,this.isFrontFace=E.prototype.isFrontFace,this.getDepth=E.prototype.getDepth,Object.defineProperties(this,fe))}e.Container.prototype.convertTo3d=me,t.Sprite.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=k.prototype.calculateVertices,this.calculateTrimmedVertices=k.prototype.calculateTrimmedVertices,this._calculateBounds=k.prototype._calculateBounds,this.containsPoint=k.prototype.containsPoint,this.pluginName="batch2d",me.call(this))},e.Container.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(let e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo3d()},N.SimpleMesh.prototype.convertTo3d=N.SimpleRope.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=A.prototype.calculateVertices,this._renderDefault=A.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new s.MeshMaterial(this.material.texture,{program:_.Program.from(f.defaultVertexShader,f.defaultFragmentShader),pluginName:"batch2d"})),me.call(this))};class P extends z.Text{constructor(e,t,i){super(e,t,i),P.prototype.__init.call(this),this.proj=new w(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(e,t,i,r,n=a.TRANSFORM_STEP.ALL){return he.call(this,e,t,i,r,n)}isFrontFace(e){return pe.call(this,e)}getDepth(e){return ce.call(this,e)}get position3d(){return this.proj.position}set position3d(e){this.proj.position.copyFrom(e)}get scale3d(){return this.proj.scale}set scale3d(e){this.proj.scale.copyFrom(e)}get euler(){return this.proj.euler}set euler(e){this.proj.euler.copyFrom(e)}get pivot3d(){return this.proj.pivot}set pivot3d(e){this.proj.pivot.copyFrom(e)}}P.prototype.calculateVertices=k.prototype.calculateVertices,P.prototype.calculateTrimmedVertices=k.prototype.calculateTrimmedVertices,P.prototype._calculateBounds=k.prototype._calculateBounds,P.prototype.containsPoint=k.prototype.containsPoint,P.prototype._render=k.prototype._render;class _e extends _.Geometry{constructor(e=!1){super(),this._buffer=new _.Buffer(null,e,!1),this._indexBuffer=new _.Buffer(null,e,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,h.TYPES.FLOAT).addAttribute("aTrans1",this._buffer,3,!1,h.TYPES.FLOAT).addAttribute("aTrans2",this._buffer,3,!1,h.TYPES.FLOAT).addAttribute("aSamplerSize",this._buffer,2,!1,h.TYPES.FLOAT).addAttribute("aFrame",this._buffer,4,!1,h.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,h.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,h.TYPES.FLOAT).addIndex(this._indexBuffer)}}class ge{static create(e){const{vertex:t,fragment:i,vertexSize:r,geometryClass:n}=Object.assign({vertex:`precision highp float;
|
||
attribute vec2 aVertexPosition;
|
||
attribute vec3 aTrans1;
|
||
attribute vec3 aTrans2;
|
||
attribute vec2 aSamplerSize;
|
||
attribute vec4 aFrame;
|
||
attribute vec4 aColor;
|
||
attribute float aTextureId;
|
||
|
||
uniform mat3 projectionMatrix;
|
||
uniform mat3 translationMatrix;
|
||
|
||
varying vec2 vertexPosition;
|
||
varying vec3 vTrans1;
|
||
varying vec3 vTrans2;
|
||
varying vec2 vSamplerSize;
|
||
varying vec4 vFrame;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
|
||
void main(void){
|
||
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
gl_Position.z = 0.0;
|
||
|
||
vertexPosition = aVertexPosition;
|
||
vTrans1 = aTrans1;
|
||
vTrans2 = aTrans2;
|
||
vTextureId = aTextureId;
|
||
vColor = aColor;
|
||
vSamplerSize = aSamplerSize;
|
||
vFrame = aFrame;
|
||
}
|
||
`,fragment:`precision highp float;
|
||
varying vec2 vertexPosition;
|
||
varying vec3 vTrans1;
|
||
varying vec3 vTrans2;
|
||
varying vec2 vSamplerSize;
|
||
varying vec4 vFrame;
|
||
varying vec4 vColor;
|
||
varying float vTextureId;
|
||
|
||
uniform sampler2D uSamplers[%count%];
|
||
uniform vec4 distortion;
|
||
|
||
void main(void){
|
||
vec2 surface;
|
||
vec2 surface2;
|
||
|
||
float vx = vertexPosition.x;
|
||
float vy = vertexPosition.y;
|
||
float dx = distortion.x;
|
||
float dy = distortion.y;
|
||
float revx = distortion.z;
|
||
float revy = distortion.w;
|
||
|
||
if (distortion.x == 0.0) {
|
||
surface.x = vx;
|
||
surface.y = vy / (1.0 + dy * vx);
|
||
surface2 = surface;
|
||
} else
|
||
if (distortion.y == 0.0) {
|
||
surface.y = vy;
|
||
surface.x = vx / (1.0 + dx * vy);
|
||
surface2 = surface;
|
||
} else {
|
||
float c = vy * dx - vx * dy;
|
||
float b = (c + 1.0) * 0.5;
|
||
float b2 = (-c + 1.0) * 0.5;
|
||
float d = b * b + vx * dy;
|
||
if (d < -0.00001) {
|
||
discard;
|
||
}
|
||
d = sqrt(max(d, 0.0));
|
||
surface.x = (- b + d) * revy;
|
||
surface2.x = (- b - d) * revy;
|
||
surface.y = (- b2 + d) * revx;
|
||
surface2.y = (- b2 - d) * revx;
|
||
}
|
||
|
||
vec2 uv;
|
||
uv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;
|
||
uv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;
|
||
|
||
vec2 pixels = uv * vSamplerSize;
|
||
|
||
if (pixels.x < vFrame.x || pixels.x > vFrame.z ||
|
||
pixels.y < vFrame.y || pixels.y > vFrame.w) {
|
||
uv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;
|
||
uv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;
|
||
pixels = uv * vSamplerSize;
|
||
|
||
if (pixels.x < vFrame.x || pixels.x > vFrame.z ||
|
||
pixels.y < vFrame.y || pixels.y > vFrame.w) {
|
||
discard;
|
||
}
|
||
}
|
||
|
||
vec4 edge;
|
||
edge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));
|
||
edge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));
|
||
|
||
float alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;
|
||
vec4 rColor = vColor * alpha;
|
||
|
||
float textureId = floor(vTextureId+0.5);
|
||
vec2 vTextureCoord = uv;
|
||
vec4 color;
|
||
%forloop%
|
||
gl_FragColor = color * rColor;
|
||
}`,geometryClass:_e,vertexSize:16},e);return X=class extends Y{constructor(e){super(e),X.prototype.__init.call(this),X.prototype.__init2.call(this),X.prototype.__init3.call(this),this.shaderGenerator=new _.BatchShaderGenerator(t,i),this.geometryClass=n,this.vertexSize=r}__init(){this.defUniforms={translationMatrix:new d.Matrix,distortion:new Float32Array([0,0,1/0,1/0])}}__init2(){this.size=1e3}__init3(){this.forceMaxTextures=1}getUniforms(e){e=e.proj;return null!==e.surface?e.uniforms:null!==e._activeProjection?e._activeProjection.uniforms:this.defUniforms}packInterleavedGeometry(e,t,i,r,n){var{uint32View:s,float32View:o}=t,a=r/this.vertexSize,l=e.indices,u=e.vertexData,h=e._texture._frame,c=e.aTrans,{_batchLocation:p,realWidth:d,realHeight:f,resolution:m}=e._texture.baseTexture,t=Math.min(e.worldAlpha,1),_=t<1&&e._texture.baseTexture.alphaMode?g.premultiplyTint(e._tintRGB,t):e._tintRGB+(255*t<<24);for(let e=0;e<u.length;e+=2)o[r]=u[e],o[r+1]=u[e+1],o[r+2]=c.a,o[r+3]=c.c,o[r+4]=c.tx,o[r+5]=c.b,o[r+6]=c.d,o[r+7]=c.ty,o[r+8]=d,o[r+9]=f,o[r+10]=h.x*m,o[r+11]=h.y*m,o[r+12]=(h.x+h.width)*m,o[r+13]=(h.y+h.height)*m,s[r+14]=_,o[r+15]=p,r+=16;for(let e=0;e<l.length;e++)i[n++]=a+l[e]}}}}const O=[new d.Point,new d.Point,new d.Point,new d.Point],R=[0,0,0,0];class C{constructor(){C.prototype.__init.call(this),C.prototype.__init2.call(this),C.prototype.__init3.call(this),C.prototype.__init4.call(this)}__init(){this.surfaceID="default"}__init2(){this._updateID=0}__init3(){this.vertexSrc=""}__init4(){this.fragmentSrc=""}fillUniforms(e){}clear(){}boundsQuad(e,t,i){let r=t[0],n=t[1],s=t[0],o=t[1];for(let e=2;e<8;e+=2)r>t[e]&&(r=t[e]),s<t[e]&&(s=t[e]),n>t[e+1]&&(n=t[e+1]),o<t[e+1]&&(o=t[e+1]);if(O[0].set(r,n),this.apply(O[0],O[0]),O[1].set(s,n),this.apply(O[1],O[1]),O[2].set(s,o),this.apply(O[2],O[2]),O[3].set(r,o),this.apply(O[3],O[3]),i)i.apply(O[0],O[0]),i.apply(O[1],O[1]),i.apply(O[2],O[2]),i.apply(O[3],O[3]),t[0]=O[0].x,t[1]=O[0].y,t[2]=O[1].x,t[3]=O[1].y,t[4]=O[2].x,t[5]=O[2].y,t[6]=O[3].x,t[7]=O[3].y;else{for(let e=1;e<=3;e++){var a;(O[e].y<O[0].y||O[e].y===O[0].y&&O[e].x<O[0].x)&&(a=O[0],O[0]=O[e],O[e]=a)}for(let e=1;e<=3;e++)R[e]=Math.atan2(O[e].y-O[0].y,O[e].x-O[0].x);for(let t=1;t<=3;t++)for(let e=t+1;e<=3;e++){var l;R[t]>R[e]&&(l=O[t],O[t]=O[e],O[e]=l,l=R[t],R[t]=R[e],R[e]=l)}t[0]=O[0].x,t[1]=O[0].y,t[2]=O[1].x,t[3]=O[1].y,t[4]=O[2].x,t[5]=O[2].y,t[6]=O[3].x,t[7]=O[3].y,(O[3].x-O[2].x)*(O[1].y-O[2].y)-(O[1].x-O[2].x)*(O[3].y-O[2].y)<0&&(t[4]=O[3].x,t[5]=O[3].y)}}}const ve=new d.Matrix,M=new d.Rectangle,I=new d.Point;class ye extends C{constructor(...e){super(...e),ye.prototype.__init.call(this)}__init(){this.distortion=new d.Point}clear(){this.distortion.set(0,0)}apply(e,t){t=t||new d.Point;var i=this.distortion,r=e.x*e.y;return t.x=e.x+i.x*r,t.y=e.y+i.y*r,t}applyInverse(e,t){t=t||new d.Point;var i=e.x,e=e.y,r=this.distortion.x,n=this.distortion.y;if(0===r)t.x=i,t.y=e/(1+n*i);else if(0===n)t.y=e,t.x=i/(1+r*e);else{var e=.5*(e*r-i*n+1)/n,s=e*e+i/n;if(s<=1e-5)return t.set(NaN,NaN),t;t.x=0<n?-e+Math.sqrt(s):-e-Math.sqrt(s),t.y=(i/t.x-1)/r}return t}mapSprite(e,t,i){var r=e.texture;return M.x=-e.anchor.x*r.orig.width,M.y=-e.anchor.y*r.orig.height,M.width=r.orig.width,M.height=r.orig.height,this.mapQuad(M,t,i||e.transform)}mapQuad(e,t,i){var r=-e.x/e.width,n=-e.y/e.height,s=(1-e.x)/e.width,e=(1-e.y)/e.height,o=t[0].x*(1-r)+t[1].x*r,a=t[0].y*(1-r)+t[1].y*r,l=t[0].x*(1-s)+t[1].x*s,u=t[0].y*(1-s)+t[1].y*s,h=t[3].x*(1-r)+t[2].x*r,r=t[3].y*(1-r)+t[2].y*r,c=t[3].x*(1-s)+t[2].x*s,t=t[3].y*(1-s)+t[2].y*s,s=o*(1-n)+h*n,p=a*(1-n)+r*n,d=l*(1-n)+c*n,n=u*(1-n)+t*n,o=o*(1-e)+h*e,h=a*(1-e)+r*e,a=l*(1-e)+c*e,r=u*(1-e)+t*e,l=ve;return l.tx=s,l.ty=p,l.a=d-s,l.b=n-p,l.c=o-s,l.d=h-p,I.set(a,r),l.applyInverse(I,I),this.distortion.set(I.x-1,I.y-1),i.setFromMatrix(l),this}fillUniforms(e){e.distortion=e.distortion||new Float32Array([0,0,0,0]);var t=Math.abs(this.distortion.x),i=Math.abs(this.distortion.y);e.distortion[0]=1e4*t<=i?0:this.distortion.x,e.distortion[1]=1e4*i<=t?0:this.distortion.y,e.distortion[2]=1/e.distortion[0],e.distortion[3]=1/e.distortion[1]}}const be=d.Transform.prototype.updateTransform;function xe(e){var t=this.proj,i=e.proj;i?i._surface?(t._activeProjection=i,this.updateLocalTransform(),this.localTransform.copyTo(this.worldTransform),this._parentID<0&&++this._worldID):(be.call(this,e),t._activeProjection=i._activeProjection):(be.call(this,e),t._activeProjection=null)}class D extends G{constructor(...e){super(...e),D.prototype.__init.call(this),D.prototype.__init2.call(this),D.prototype.__init3.call(this),D.prototype.__init4.call(this),D.prototype.__init5.call(this)}__init(){this._surface=null}__init2(){this._activeProjection=null}set enabled(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?xe:d.Transform.prototype.updateTransform,this.legacy._parentID=-1)}get surface(){return this._surface}set surface(e){this._surface!==e&&(this._surface=e||null,this.legacy._parentID=-1)}applyPartial(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t)):(null!==this._surface?this.surface:this.legacy.worldTransform).apply(e,t)}apply(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t),this._activeProjection.legacy.worldTransform.apply(t,t)):null!==this._surface?(t=this.surface.apply(e,t),this.legacy.worldTransform.apply(t,t)):this.legacy.worldTransform.apply(e,t)}applyInverse(e,t){return null!==this._activeProjection?(t=this._activeProjection.legacy.worldTransform.applyInverse(e,t),this._activeProjection._surface.applyInverse(t,t),this.legacy.worldTransform.applyInverse(t,t)):null!==this._surface?(t=this.legacy.worldTransform.applyInverse(e,t),this._surface.applyInverse(t,t)):this.legacy.worldTransform.applyInverse(e,t)}mapBilinearSprite(e,t){this._surface instanceof ye||(this.surface=new ye),this.surface.mapSprite(e,t,this.legacy)}__init3(){this._currentSurfaceID=-1}__init4(){this._currentLegacyID=-1}__init5(){this._lastUniforms=null}clear(){this.surface&&this.surface.clear()}get uniforms(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID||(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.translationMatrix=this.legacy.worldTransform,this._surface.fillUniforms(this._lastUniforms)),this._lastUniforms}}class L extends t.Sprite{constructor(e){super(e),L.prototype.__init.call(this),this.proj=new D(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new d.Matrix}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){var n=this.transform._worldID,s=this._texture._updateID;if(this._transformID!==n||this._textureID!==s){this._transformID=n,this._textureID=s;var o,a,l,u,n=this._texture,s=this.vertexData,h=n.trim,c=n.orig,p=this._anchor;let e,t,i,r;i=h?(t=h.x-p._x*c.width,e=t+h.width,(r=h.y-p._y*c.height)+h.height):(t=-p._x*c.width,e=t+c.width,(r=-p._y*c.height)+c.height),this.proj._surface?(s[0]=t,s[1]=r,s[2]=e,s[3]=r,s[4]=e,s[5]=i,s[6]=t,s[7]=i,this.proj._surface.boundsQuad(s,s)):(p=(h=this.transform.worldTransform).a,o=h.b,a=h.c,l=h.d,u=h.tx,h=h.ty,s[0]=p*t+a*r+u,s[1]=l*r+o*t+h,s[2]=p*e+a*r+u,s[3]=l*r+o*e+h,s[4]=p*e+a*i+u,s[5]=l*i+o*e+h,s[6]=p*t+a*i+u,s[7]=l*i+o*t+h,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(s,s)),n.uvMatrix||(n.uvMatrix=new _.TextureMatrix(n)),n.uvMatrix.update();p=this.aTrans;p.set(c.width,0,0,c.height,t,r),null===this.proj._surface&&p.prepend(this.transform.worldTransform),p.invert(),p.prepend(n.uvMatrix.mapCoord)}}calculateTrimmedVertices(){var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var i,r,n,s,o,a,e=this._texture,t=this.vertexTrimmedData,e=e.orig,l=this._anchor,u=-l._x*e.width,h=u+e.width,l=-l._y*e.height,e=l+e.height;this.proj._surface?(t[0]=u,t[1]=l,t[2]=h,t[3]=l,t[4]=h,t[5]=e,t[6]=u,t[7]=e,this.proj._surface.boundsQuad(t,t,this.transform.worldTransform)):(i=(a=this.transform.worldTransform).a,r=a.b,n=a.c,s=a.d,o=a.tx,a=a.ty,t[0]=i*u+n*l+o,t[1]=s*l+r*u+a,t[2]=i*h+n*l+o,t[3]=s*l+r*h+a,t[4]=i*h+n*e+o,t[5]=s*e+r*h+a,t[6]=i*u+n*e+o,t[7]=s*e+r*u+a,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(t,t,this.proj._activeProjection.legacy.worldTransform))}get worldTransform(){return this.proj}}t.Sprite.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new d.Matrix,this.calculateVertices=L.prototype.calculateVertices,this.calculateTrimmedVertices=L.prototype.calculateTrimmedVertices,this._calculateBounds=L.prototype._calculateBounds,e.Container.prototype.convertTo2s.call(this))},e.Container.prototype.convertTo2s=function(){this.proj||(this.proj=new D(this.transform),Object.defineProperty(this,"worldTransform",{get(){return this.proj},enumerable:!0,configurable:!0}))},e.Container.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(let e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2s()};class Te extends z.Text{constructor(e,t,i){super(e,t,i),Te.prototype.__init.call(this),this.proj=new D(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new d.Matrix}get worldTransform(){return this.proj}}Te.prototype.calculateVertices=L.prototype.calculateVertices,Te.prototype.calculateTrimmedVertices=L.prototype.calculateTrimmedVertices,Te.prototype._calculateBounds=L.prototype._calculateBounds,_.Renderer.registerPlugin("batch_bilinear",ge.create({})),a.AbstractProjection=G,a.Batch2dPluginFactory=j,a.Batch3dGeometry=U,a.BatchBilinearPluginFactory=ge,a.BatchBilineardGeometry=_e,a.BilinearSurface=ye,a.Camera3d=S,a.Container2d=Q,a.Container3d=E,a.Euler=b,a.LinearProjection=r,a.Matrix2d=n,a.Matrix3d=T,a.Mesh2d=f,a.Mesh3d2d=A,a.ObservableEuler=x,a.ObservablePoint3d=y,a.Point3d=oe,a.Projection2d=l,a.Projection3d=w,a.ProjectionSurface=D,a.SimpleMesh2d=ee,a.SimpleMesh3d2d=de,a.Sprite2d=m,a.Sprite2s=L,a.Sprite3d=k,a.SpriteMaskFilter2d=se,a.Surface=C,a.Text2d=v,a.Text2s=Te,a.Text3d=P,a.TilingSprite2d=ie,a.TilingSprite2dRenderer=K,a.UniformBatchRenderer=Y,a.applySpine2dMixin=function(e){e.newMesh=function(e,t,i,r,n){return new ee(e,t,i,r,n)},e.newContainer=function(){return this.proj||this.convertTo2d(),new Q},e.newSprite=function(e){return new m(e)},e.newGraphics=function(){var e=new B.Graphics;return e.convertTo2d(),e},e.transformHack=function(){return 2}},a.applySpine3dMixin=function(e){e.newMesh=function(e,t,i,r,n){return new de(e,t,i,r,n)},e.newContainer=function(){return this.proj||this.convertTo3d(),new E},e.newSprite=function(e){return new k(e)},e.newGraphics=function(){var e=new B.Graphics;return e.convertTo3d(),e},e.transformHack=function(){return 2}},a.container2dToLocal=$,a.container2dWorldTransform=J,a.container3dGetDepth=ce,a.container3dIsFrontFace=pe,a.container3dToLocal=he,a.container3dWorldTransform=ue,a.getIntersectionFactor=W,a.getPositionFromQuad=function(e,t,i){i=i||new d.Point;var r=1-t.x,n=1-r,s=1-(t=1-t.y);return i.x=(e[0].x*r+e[1].x*n)*t+(e[3].x*r+e[2].x*n)*s,i.y=(e[0].y*r+e[1].y*n)*t+(e[3].y*r+e[2].y*n)*s,i},a.transformHack=H,Object.defineProperty(a,"__esModule",{value:!0})}),"undefined"!=typeof pixi_projection&&Object.assign(this.PIXI.projection,pixi_projection),"undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window),_gsScope=((_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function p(e,t,i,r,n,s){var o,a,l,u,h,c,p,d,f={},m=[],_=s||e[0];for(a in n="string"==typeof n?","+n+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==t&&(t=1),e[0])m.push(a);if(1<e.length){for(d=e[e.length-1],p=!0,o=m.length;-1<--o;)if(a=m[o],.05<Math.abs(_[a]-d[a])){p=!1;break}p&&(e=e.concat(),s&&e.unshift(s),e.push(e[1]),s=e[e.length-3])}for(L.length=F.length=N.length=0,o=m.length;-1<--o;)z[a=m[o]]=-1!==n.indexOf(","+a+","),f[a]=function(e,t,i,r){var n,s,o,a,l,u,h=[];if(r)for(s=(e=[r].concat(e)).length;-1<--s;)"string"==typeof(u=e[s][t])&&"="===u.charAt(1)&&(e[s][t]=r[t]+Number(u.charAt(0)+u.substr(2)));if((n=e.length-2)<0)h[0]=new B(e[0][t],0,0,e[0][t]);else{for(s=0;s<n;s++)o=e[s][t],a=e[s+1][t],h[s]=new B(o,0,0,a),i&&(l=e[s+2][t],L[s]=(L[s]||0)+(a-o)*(a-o),F[s]=(F[s]||0)+(l-a)*(l-a));h[s]=new B(e[s][t],0,0,e[s+1][t])}return h}(e,a,z[a],s);for(o=L.length;-1<--o;)L[o]=Math.sqrt(L[o]),F[o]=Math.sqrt(F[o]);if(!r){for(o=m.length;-1<--o;)if(z[a])for(c=(l=f[m[o]]).length-1,u=0;u<c;u++)h=l[u+1].da/F[u]+l[u].da/L[u]||0,N[u]=(N[u]||0)+h*h;for(o=N.length;-1<--o;)N[o]=Math.sqrt(N[o])}for(o=m.length,u=i?4:1;-1<--o;){l=f[a=m[o]],S=E=w=T=E=w=S=x=b=y=v=g=D=I=M=C=void 0;for(var g,v,y,b,x,T,w,E,S,A=l,k=t,P=i,O=r,R=z[a],C=A.length-1,M=0,I=A[0].a,D=0;D<C;D++)g=(b=A[M]).a,v=b.d,y=A[M+1].d,w=R?(w=L[D],S=((E=F[D])+w)*k*.25/(!O&&N[D]||.5),v-((x=v-(v-g)*(O?.5*k:0!==w?S/w:0))+(((S=v+(y-v)*(O?.5*k:0!==E?S/E:0))-x)*(3*w/(w+E)+.5)/4||0))):v-((x=v-(v-g)*k*.5)+(S=v+(y-v)*k*.5))/2,S+=w,b.c=E=x+=w,b.b=0!==D?I:I=b.a+.6*(b.c-b.a),b.da=v-g,b.ca=E-g,b.ba=I-g,P?(T=U(g,I,E,v),A.splice(M,1,T[0],T[1],T[2],T[3]),M+=4):M++,I=S;(b=A[M]).b=I,b.c=I+.4*(b.d-I),b.da=b.d-b.a,b.ca=b.c-b.a,b.ba=I-b.a,P&&(T=U(b.a,I,b.c,b.d),A.splice(M,1,T[0],T[1],T[2],T[3])),p&&(l.splice(0,u),l.splice(l.length-u,u))}return f}var E,L,F,N,z,t,B,U,_,e;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(r,h,g){function m(e){for(var t=[],i=e.length,r=0;r!==i;t.push(e[r++]));return t}function _(e,t,i){var r,n,s=e.cycle;for(r in s)n=s[r],e[r]="function"==typeof n?n(i,t[i],t):n[i%n.length];delete e.cycle}function v(e){var d,f,m,_,g,v,y,b;return"function"==typeof e?e:(f=(d="object"==typeof e?e:{each:e}).ease,m=d.from||0,_=d.base||0,g={},v=isNaN(m),y=d.axis,b={center:.5,end:1}[m]||0,function(e,t,i){var r,n,s,o,a,l,u,h,c=(i||d).length,p=g[c];if(!p){if(!(h="auto"===d.grid?0:(d.grid||[1/0])[0])){for(l=-1/0;l<(l=i[h++].getBoundingClientRect().left)&&h<c;);h--}for(p=g[c]=[],r=v?Math.min(h,c)*b-.5:m%h,n=v?c*b/h-.5:m/h|0,u=1/(l=0),a=0;a<c;a++)o=a%h-r,s=n-(a/h|0),p[a]=o=y?Math.abs("y"===y?s:o):Math.sqrt(o*o+s*s),l<o&&(l=o),o<u&&(u=o);p.max=l-u,p.min=u,p.v=c=d.amount||d.each*(c<h?c-1:y?"y"===y?c/h:h:Math.max(h,c/h))||0,p.b=c<0?_-c:_}return c=(p[e]-p.min)/p.max,p.b+(f?f.getRatio(c):c)*p.v})}function y(e,t,i){g.call(this,e,t,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=y.prototype.render}function s(e,t){for(var i=[],r=0,n=e._first;n;)n instanceof g?i[r++]=n:(t&&(i[r++]=n),r=(i=i.concat(s(n,t))).length),n=n._next;return i}function n(e,t,i,r){t=!1!==t,i=!1!==i;for(var n,s,o=c(r=!1!==r),a=t&&i&&r,l=o.length;-1<--l;)s=o[l],(a||s instanceof h||(n=s.target===s.vars.onComplete)&&i||t&&!n)&&s.paused(e)}var b=1e-8,x=g._internals,T=x.isSelector,w=x.isArray,e=y.prototype=g.to({},.1,{}),E=[],c=(y.version="2.1.3",e.constructor=y,e.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=g.killTweensOf,y.getTweensOf=g.getTweensOf,y.lagSmoothing=g.lagSmoothing,y.ticker=g.ticker,y.render=g.render,y.distribute=v,e.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),g.prototype.invalidate.call(this)},e.updateTo=function(e,t){var i,r=this,n=r.ratio,s=r.vars.immediateRender||e.immediateRender;for(i in t&&r._startTime<r._timeline._time&&(r._startTime=r._timeline._time,r._uncache(!1),r._gc?r._enabled(!0,!1):r._timeline.insert(r,r._startTime-r._delay)),e)r.vars[i]=e[i];if(r._initted||s)if(t)r._initted=!1,s&&r.render(0,!0,!0);else if(r._gc&&r._enabled(!0,!1),r._notifyPluginsOfEnabled&&r._firstPT&&g._onPluginEvent("_onDisable",r),.998<r._time/r._duration){t=r._totalTime;r.render(0,!0,!1),r._initted=!1,r.render(t,!0,!1)}else if(r._initted=!1,r._init(),0<r._time||s)for(var o,a=1/(1-n),l=r._firstPT;l;)o=l.s+l.c,l.c*=a,l.s=o-l.c,l=l._next;return r},e.render=function(e,t,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,o,a,l,u,h=this,c=h._dirty?h.totalDuration():h._totalDuration,p=h._time,d=h._totalTime,f=h._cycle,m=h._duration,_=h._rawPrevTime;if(c-b<=e&&0<=e?(h._totalTime=c,h._cycle=h._repeat,h._yoyo&&0!=(1&h._cycle)?(h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0):(h._time=m,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1),h._reversed||(r=!0,n="onComplete",i=i||h._timeline.autoRemoveChildren),0!==m||!h._initted&&h.vars.lazy&&!i||(h._startTime===h._timeline._duration&&(e=0),(_<0||e<=0&&-b<=e||_===b&&"isPause"!==h.data)&&_!==e&&(i=!0,b<_&&(n="onReverseComplete")),h._rawPrevTime=l=!t||e||_===e?e:b)):e<b?(h._totalTime=h._time=h._cycle=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==d||0===m&&0<_)&&(n="onReverseComplete",r=h._reversed),-b<e?e=0:e<0&&(h._active=!1,0!==m||!h._initted&&h.vars.lazy&&!i||(0<=_&&(i=!0),h._rawPrevTime=l=!t||e||_===e?e:b)),h._initted||(i=!0)):(h._totalTime=h._time=e,0!==h._repeat&&(c=m+h._repeatDelay,h._cycle=h._totalTime/c>>0,0!==h._cycle&&h._cycle===h._totalTime/c&&d<=e&&h._cycle--,h._time=h._totalTime-h._cycle*c,h._yoyo&&0!=(1&h._cycle)&&(h._time=m-h._time,(u=h._yoyoEase||h.vars.yoyoEase)&&(h._yoyoEase||(!0!==u||h._initted?h._yoyoEase=u=!0===u?h._ease:u instanceof Ease?u:Ease.map[u]:(u=h.vars.ease,h._yoyoEase=u=u?u instanceof Ease?u:"function"==typeof u?new Ease(u,h.vars.easeParams):Ease.map[u]||g.defaultEase:g.defaultEase)),h.ratio=u?1-u.getRatio((m-h._time)/m):0)),h._time>m?h._time=m:h._time<0&&(h._time=0)),h._easeType&&!u?(c=h._time/m,(1===(o=h._easeType)||3===o&&.5<=c)&&(c=1-c),3===o&&(c*=2),1===(a=h._easePower)?c*=c:2===a?c*=c*c:3===a?c*=c*c*c:4===a&&(c*=c*c*c*c),h.ratio=1===o?1-c:2===o?c:h._time/m<.5?c/2:1-c/2):u||(h.ratio=h._ease.getRatio(h._time/m))),p!==h._time||i||f!==h._cycle){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!i&&h._firstPT&&(!1!==h.vars.lazy&&h._duration||h.vars.lazy&&!h._duration))return h._time=p,h._totalTime=d,h._rawPrevTime=_,h._cycle=f,x.lazyTweens.push(h),void(h._lazy=[e,t]);!h._time||r||u?r&&this._ease._calcEnd&&!u&&(h.ratio=h._ease.getRatio(0===h._time?0:1)):h.ratio=h._ease.getRatio(h._time/m)}for(!1!==h._lazy&&(h._lazy=!1),h._active||!h._paused&&h._time!==p&&0<=e&&(h._active=!0),0===d&&(2===h._initted&&0<e&&h._init(),h._startAt&&(0<=e?h._startAt.render(e,!0,i):n=n||"_dummyGS"),!h.vars.onStart||0===h._totalTime&&0!==m||t||h._callback("onStart")),s=h._firstPT;s;)s.f?s.t[s.p](s.c*h.ratio+s.s):s.t[s.p]=s.c*h.ratio+s.s,s=s._next;h._onUpdate&&(e<0&&h._startAt&&h._startTime&&h._startAt.render(e,!0,i),t||h._totalTime===d&&!n||h._callback("onUpdate")),h._cycle===f||t||h._gc||h.vars.onRepeat&&h._callback("onRepeat"),!n||h._gc&&!i||(e<0&&h._startAt&&!h._onUpdate&&h._startTime&&h._startAt.render(e,!0,i),r&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[n]&&h._callback(n),0===m&&h._rawPrevTime===b&&l!==b&&(h._rawPrevTime=0))}else d!==h._totalTime&&h._onUpdate&&!t&&h._callback("onUpdate")},y.to=function(e,t,i){return new y(e,t,i)},y.from=function(e,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new y(e,t,i)},y.fromTo=function(e,t,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new y(e,t,r)},y.staggerTo=y.allTo=function(e,t,i,r,n,s,o){var a,l,u,h,c=[],p=v(i.stagger||r),d=i.cycle,f=(i.startAt||E).cycle;for(w(e)||("string"==typeof e&&(e=g.selector(e)||e),T(e)&&(e=m(e))),a=(e=e||[]).length-1,u=0;u<=a;u++){for(h in l={},i)l[h]=i[h];if(d&&(_(l,e,u),null!=l.duration&&(t=l.duration,delete l.duration)),f){for(h in f=l.startAt={},i.startAt)f[h]=i.startAt[h];_(l.startAt,e,u)}l.delay=p(u,e[u],e)+(l.delay||0),u===a&&n&&(l.onComplete=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),n.apply(o||i.callbackScope||this,s||E)}),c[u]=new y(e[u],t,l)}return c},y.staggerFrom=y.allFrom=function(e,t,i,r,n,s,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,y.staggerTo(e,t,i,r,n,s,o)},y.staggerFromTo=y.allFromTo=function(e,t,i,r,n,s,o,a){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,y.staggerTo(e,t,r,n,s,o,a)},y.delayedCall=function(e,t,i,r,n){return new y(t,0,{delay:e,onComplete:t,onCompleteParams:i,callbackScope:r,onReverseComplete:t,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},y.set=function(e,t){return new y(e,0,t)},y.isTweening=function(e){return 0<g.getTweensOf(e,!0).length},y.getAllTweens=function(e){return s(r._rootTimeline,e).concat(s(r._rootFramesTimeline,e))});y.killAll=function(e,t,i,r){null==t&&(t=!0),null==i&&(i=!0);for(var n,s,o=c(0!=r),a=o.length,l=t&&i&&r,u=0;u<a;u++)s=o[u],(l||s instanceof h||(n=s.target===s.vars.onComplete)&&i||t&&!n)&&(e?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},y.killChildTweensOf=function(e,t){if(null!=e){var i,r,n,s,o,a=x.tweenLookup;if("string"==typeof e&&(e=g.selector(e)||e),T(e)&&(e=m(e)),w(e))for(s=e.length;-1<--s;)y.killChildTweensOf(e[s],t);else{for(n in i=[],a)for(r=a[n].target.parentNode;r;)r===e&&(i=i.concat(a[n].tweens)),r=r.parentNode;for(o=i.length,s=0;s<o;s++)t&&i[s].totalTime(i[s].totalDuration()),i[s]._enabled(!1,!1)}}};return y.pauseAll=function(e,t,i){n(!0,e,t,i)},y.resumeAll=function(e,t,i){n(!1,e,t,i)},y.globalTimeScale=function(e){var t=r._rootTimeline,i=g.ticker.time;return arguments.length?(t._startTime=i-(i-t._startTime)*t._timeScale/(e=e||b),t=r._rootFramesTimeline,i=g.ticker.frame,t._startTime=i-(i-t._startTime)*t._timeScale/e,t._timeScale=r._rootTimeline._timeScale=e):t._timeScale},e.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this.duration()?this._time/this._duration:this.ratio},e.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},e.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<e&&(e=i),this.totalTime(this._yoyo&&1&r?i-e+n:this._repeat?e+n:e,t)},e.duration=function(e){return arguments.length?r.prototype.duration.call(this,e):this._duration},e.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},e.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},e.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},e.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},y},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(c,p,f){function m(e){p.call(this,e);var t,i,r=this.vars;for(i in this._labels={},this.autoRemoveChildren=!!r.autoRemoveChildren,this.smoothChildTiming=!!r.smoothChildTiming,this._sortChildren=!0,this._onUpdate=r.onUpdate,r)t=r[i],d(t)&&-1!==t.join("").indexOf("{self}")&&(r[i]=this._swapSelfInParams(t));d(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)}function _(e){var t,i={};for(t in e)i[t]=e[t];return i}function g(e,t,i){var r,n,s=e.cycle;for(r in s)n=s[r],e[r]="function"==typeof n?n(i,t[i],t):n[i%n.length];delete e.cycle}function u(e,t,i,r){var n="immediateRender";return n in t||(t[n]=!(i&&!1===i[n]||r)),t}function v(e){var d,f,m,_,g,v,y,b;return"function"==typeof e?e:(f=(d="object"==typeof e?e:{each:e}).ease,m=d.from||0,_=d.base||0,g={},v=isNaN(m),y=d.axis,b={center:.5,end:1}[m]||0,function(e,t,i){var r,n,s,o,a,l,u,h,c=(i||d).length,p=g[c];if(!p){if(!(h="auto"===d.grid?0:(d.grid||[1/0])[0])){for(l=-1/0;l<(l=i[h++].getBoundingClientRect().left)&&h<c;);h--}for(p=g[c]=[],r=v?Math.min(h,c)*b-.5:m%h,n=v?c*b/h-.5:m/h|0,u=1/(l=0),a=0;a<c;a++)o=a%h-r,s=n-(a/h|0),p[a]=o=y?Math.abs("y"===y?s:o):Math.sqrt(o*o+s*s),l<o&&(l=o),o<u&&(u=o);p.max=l-u,p.min=u,p.v=c=d.amount||d.each*(c<h?c-1:y?"y"===y?c/h:h:Math.max(h,c/h))||0,p.b=c<0?_-c:_}return c=(p[e]-p.min)/p.max,p.b+(f?f.getRatio(c):c)*p.v})}var e=f._internals,t=m._internals={},y=e.isSelector,d=e.isArray,b=e.lazyTweens,x=e.lazyRender,o=_gsScope._gsDefine.globals,n=t.pauseCallback=function(){},e=m.prototype=new p;return m.version="2.1.3",m.distribute=v,e.constructor=m,e.kill()._gc=e._forcingPlayhead=e._hasPause=!1,e.to=function(e,t,i,r){var n=i.repeat&&o.TweenMax||f;return t?this.add(new n(e,t,i),r):this.set(e,i,r)},e.from=function(e,t,i,r){return this.add((i.repeat&&o.TweenMax||f).from(e,t,u(0,i)),r)},e.fromTo=function(e,t,i,r,n){var s=r.repeat&&o.TweenMax||f;return r=u(0,r,i),t?this.add(s.fromTo(e,t,i,r),n):this.set(e,r,n)},e.staggerTo=function(e,t,i,r,n,s,o,a){var l,u,h=new m({onComplete:s,onCompleteParams:o,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),c=v(i.stagger||r),p=i.startAt,d=i.cycle;for("string"==typeof e&&(e=f.selector(e)||e),y(e=e||[])&&(e=function(e){for(var t=[],i=e.length,r=0;r!==i;t.push(e[r++]));return t}(e)),u=0;u<e.length;u++)l=_(i),p&&(l.startAt=_(p),p.cycle&&g(l.startAt,e,u)),d&&(g(l,e,u),null!=l.duration&&(t=l.duration,delete l.duration)),h.to(e[u],t,l,c(u,e[u],e));return this.add(h,n)},e.staggerFrom=function(e,t,i,r,n,s,o,a){return i.runBackwards=!0,this.staggerTo(e,t,u(0,i),r,n,s,o,a)},e.staggerFromTo=function(e,t,i,r,n,s,o,a,l){return r.startAt=i,this.staggerTo(e,t,u(0,r,i),n,s,o,a,l)},e.call=function(e,t,i,r){return this.add(f.delayedCall(0,e,t,i),r)},e.set=function(e,t,i){return this.add(new f(e,0,u(0,t,null,!0)),i)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var i,r,n,s,o=new m(e),e=o._timeline;for(null==t&&(t=!0),e._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=e._time,n=e._first;n;)s=n._next,t&&n instanceof f&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),o.add(n,r)),n=s;return e.add(o,0),i&&o.totalDuration(),o},e.add=function(e,t,i,r){var n,s,o,a,l,u,h=this;if("number"!=typeof t&&(t=h._parseTimeOrLabel(t,0,!0,e)),!(e instanceof c)){if(e instanceof Array||e&&e.push&&d(e)){for(i=i||"normal",r=r||0,n=t,s=e.length,o=0;o<s;o++)d(a=e[o])&&(a=new m({tweens:a})),h.add(a,n),"string"!=typeof a&&"function"!=typeof a&&("sequence"===i?n=a._startTime+a.totalDuration()/a._timeScale:"start"===i&&(a._startTime-=a.delay())),n+=r;return h._uncache(!0)}if("string"==typeof e)return h.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=f.delayedCall(0,e)}if(p.prototype.add.call(h,e,t),(e._time||!e._duration&&e._initted)&&(n=(h.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),n)))-e._totalTime)&&e.render(n,!1,!1)),(h._gc||h._time===h._duration)&&!h._paused&&h._duration<h.duration())for(u=(l=h).rawTime()>e._startTime;l._timeline;)u&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return h},e.remove=function(e){var t;if(e instanceof c)return this._remove(e,!1),t=e._timeline=e.vars.useFrames?c._rootFramesTimeline:c._rootTimeline,e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this;if(e instanceof Array||e&&e.push&&d(e)){for(var i=e.length;-1<--i;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},e._remove=function(e,t){return p.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},e.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},e.insert=e.insertMultiple=function(e,t,i,r){return this.add(e,t||0,i,r)},e.appendMultiple=function(e,t,i,r){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),i,r)},e.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},e.addPause=function(e,t,i,r){i=f.delayedCall(0,n,i,r||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},e.removeLabel=function(e){return delete this._labels[e],this},e.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},e._parseTimeOrLabel=function(e,t,i,r){var n,s;if(r instanceof c&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&d(r)))for(s=r.length;-1<--s;)r[s]instanceof c&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,i&&"number"==typeof e&&null==this._labels[t]?e-n:0,i);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=n);else{if(-1===(s=e.indexOf("=")))return null==this._labels[e]?i?this._labels[e]=n+t:t:this._labels[e]+t;t=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=1<s?this._parseTimeOrLabel(e.substr(0,s-1),0,i):n}return Number(e)+t},e.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},e.stop=function(){return this.paused(!0)},e.gotoAndPlay=function(e,t){return this.play(e,t)},e.gotoAndStop=function(e,t){return this.pause(e,t)},e.render=function(e,t,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,u,h,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._startTime,m=c._timeScale,_=c._paused;if(p!==c._time&&(e+=c._time-p),c._hasPause&&!c._forcingPlayhead&&!t){if(p<e)for(r=c._first;r&&r._startTime<=e&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=e&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(c._time=c._totalTime=e=l._startTime,h=c._startTime+(c._reversed?c._duration-e:e)/c._timeScale)}if(d-1e-8<=e&&0<=e)c._totalTime=c._time=d,c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-1e-8<=e||c._rawPrevTime<0||1e-8===c._rawPrevTime)&&c._rawPrevTime!==e&&c._first&&(a=!0,1e-8<c._rawPrevTime&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(-1e-8<e&&(e=0),((c._totalTime=c._time=0)!==p||0===c._duration&&1e-8!==c._rawPrevTime&&(0<c._rawPrevTime||e<0&&0<=c._rawPrevTime))&&(o="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(a=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,0===e&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;e=0,c._initted||(a=!0)}else c._totalTime=c._time=c._rawPrevTime=e;if(c._time!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==p&&0<e&&(c._active=!0),0!==p||!c.vars.onStart||0===c._time&&c._duration||t||c._callback("onStart"),p<=(u=c._time))for(r=c._first;r&&(s=r._next,u===c._time&&(!c._paused||_));)(r._active||r._startTime<=u&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=h),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)),r=s;else for(r=c._last;r&&(s=r._prev,u===c._time&&(!c._paused||_));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,i),l=l._prev;l=null,c.pause(),c._pauseTime=h}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)}r=s}!c._onUpdate||t||(b.length&&x(),c._callback("onUpdate")),!o||c._gc||f!==c._startTime&&m===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(b.length&&x(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[o]&&c._callback(o))}},e._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},e.getChildren=function(e,t,i,r){r=r||-9999999999;for(var n=[],s=this._first,o=0;s;)s._startTime<r||(s instanceof f?!1!==t&&(n[o++]=s):(!1!==i&&(n[o++]=s),!1!==e&&(o=(n=n.concat(s.getChildren(!0,t,i))).length))),s=s._next;return n},e.getTweensOf=function(e,t){var i,r,n=this._gc,s=[],o=0;for(n&&this._enabled(!0,!0),r=(i=f.getTweensOf(e)).length;-1<--r;)(i[r].timeline===this||t&&this._contains(i[r]))&&(s[o++]=i[r]);return n&&this._enabled(!1,!0),s},e.recent=function(){return this._recent},e._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},e.shiftChildren=function(e,t,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=e),n=n._next;if(t)for(r in s)s[r]>=i&&(s[r]+=e);return this._uncache(!0)},e._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(e,t)&&(n=!0);return n},e.clear=function(e){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;-1<--i;)t[i]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},e.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return c.prototype.invalidate.call(this)},e._enabled=function(e,t){if(e===this._gc)for(var i=this._first;i;)i._enabled(e,!0),i=i._next;return p.prototype._enabled.call(this,e,t)},e.totalTime=function(e,t,i){this._forcingPlayhead=!0;var r=c.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},e.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},e.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,i,r=0,n=this,s=n._last,o=999999999999;s;)t=s._prev,s._dirty&&s.totalDuration(),s._startTime>o&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):o=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),o=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=t;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},e.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return c.prototype.paused.apply(this,arguments)},e.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===c._rootFramesTimeline},e.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,a,e){function i(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var k=1e-8,r=a._internals,P=r.lazyTweens,O=r.lazyRender,l=_gsScope._gsDefine.globals,u=new e(null,null,1,0),r=i.prototype=new t;return r.constructor=i,r.kill()._gc=!1,i.version="2.1.3",r.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},r.addCallback=function(e,t,i,r){return this.add(a.delayedCall(0,e,i,r),t)},r.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var i=this.getTweensOf(e,!1),r=i.length,n=this._parseTimeOrLabel(t);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},r.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},r.tweenTo=function(e,t){t=t||{};var i,r,n,s={ease:u,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=t.repeat&&l.TweenMax||a;for(r in t)s[r]=t[r];return s.time=this._parseTimeOrLabel(e),i=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,n=new o(this,i,s),s.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||i!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),t.onStart&&t.onStart.apply(t.onStartScope||t.callbackScope||n,t.onStartParams||[])},n},r.tweenFromTo=function(e,t,i){i=i||{},e=this._parseTimeOrLabel(e),i.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},i.immediateRender=!1!==i.immediateRender;t=this.tweenTo(t,i);return t.isFromTo=1,t.duration(Math.abs(t.vars.time-e)/this._timeScale||.001)},r.render=function(e,t,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,u,h,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._duration,m=c._totalTime,_=c._startTime,g=c._timeScale,v=c._rawPrevTime,y=c._paused,b=c._cycle;if(p!==c._time&&(e+=c._time-p),d-k<=e&&0<=e)c._locked||(c._totalTime=d,c._cycle=c._repeat),c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-k<=e||v<0||v===k)&&v!==e&&c._first&&(a=!0,k<v&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:k,c._yoyo&&1&c._cycle?c._time=e=0:e=(c._time=f)+1e-4;else if(e<k)if(c._locked||(c._totalTime=c._cycle=0),c._time=0,-k<e&&(e=0),(0!==p||0===f&&v!==k&&(0<v||e<0&&0<=v)&&!c._locked)&&(o="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=v&&c._first&&(a=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=f||!t||e||c._rawPrevTime===e?e:k,0===e&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;e=0,c._initted||(a=!0)}else 0===f&&v<0&&(a=!0),c._time=c._rawPrevTime=e,c._locked||(c._totalTime=e,0!==c._repeat&&(x=f+c._repeatDelay,c._cycle=c._totalTime/x>>0,c._cycle&&c._cycle===c._totalTime/x&&m<=e&&c._cycle--,c._time=c._totalTime-c._cycle*x,c._yoyo&&1&c._cycle&&(c._time=f-c._time),c._time>f?e=(c._time=f)+1e-4:c._time<0?c._time=e=0:e=c._time));if(c._hasPause&&!c._forcingPlayhead&&!t){if(p<(e=c._time)||c._repeat&&b!==c._cycle)for(r=c._first;r&&r._startTime<=e&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=e&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(h=c._startTime+(c._reversed?c._duration-l._startTime:l._startTime)/c._timeScale,l._startTime<f&&(c._time=c._rawPrevTime=e=l._startTime,c._totalTime=e+c._cycle*(c._totalDuration+c._repeatDelay)))}if(c._cycle!==b&&!c._locked){var x=c._yoyo&&0!=(1&b),T=x===(c._yoyo&&0!=(1&c._cycle)),w=c._totalTime,E=c._cycle,S=c._rawPrevTime,A=c._time;if(c._totalTime=b*f,c._cycle<b?x=!x:c._totalTime+=f,c._time=p,c._rawPrevTime=0===f?v-1e-4:v,c._cycle=b,c._locked=!0,c.render(p=x?0:f,t,0===f),t||c._gc||c.vars.onRepeat&&(c._cycle=E,c._locked=!1,c._callback("onRepeat")),p!==c._time)return;if(T&&(c._cycle=b,c._locked=!0,c.render(p=x?f+1e-4:-1e-4,!0,!1)),c._locked=!1,c._paused&&!y)return;c._time=A,c._totalTime=w,c._cycle=E,c._rawPrevTime=S}if(c._time!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._totalTime!==m&&0<e&&(c._active=!0),0!==m||!c.vars.onStart||0===c._totalTime&&c._totalDuration||t||c._callback("onStart"),p<=(u=c._time))for(r=c._first;r&&(s=r._next,u===c._time&&(!c._paused||y));)(r._active||r._startTime<=c._time&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=h),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)),r=s;else for(r=c._last;r&&(s=r._prev,u===c._time&&(!c._paused||y));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,i),l=l._prev;l=null,c.pause(),c._pauseTime=h}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)}r=s}!c._onUpdate||t||(P.length&&O(),c._callback("onUpdate")),!o||c._locked||c._gc||_!==c._startTime&&g===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(P.length&&O(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[o]&&c._callback(o))}else m!==c._totalTime&&c._onUpdate&&!t&&c._callback("onUpdate")},r.getActive=function(e,t,i){for(var r,n=[],s=this.getChildren(e||null==e,t||null==e,!!i),o=0,a=s.length,l=0;l<a;l++)(r=s[l]).isActive()&&(n[o++]=r);return n},r.getLabelAfter=function(e){e||0!==e&&(e=this._time);for(var t=this.getLabelsArray(),i=t.length,r=0;r<i;r++)if(t[r].time>e)return t[r].name;return null},r.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),i=t.length;-1<--i;)if(t[i].time<e)return t[i].name;return null},r.getLabelsArray=function(){var e,t=[],i=0;for(e in this._labels)t[i++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},r.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},r.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()||0},r.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},r.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<e&&(e=i),this.totalTime(this._yoyo&&1&r?i-e+n:this._repeat?e+n:e,t)},r.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},r.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},r.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+k)},i},!0),E=180/Math.PI,L=[],F=[],N=[],z={},t=_gsScope._gsDefine.globals,B=function(e,t,i,r){i===r&&(i=r-(r-t)/1e6),e===t&&(t=e+(i-e)/1e6),this.a=e,this.b=t,this.c=i,this.d=r,this.da=r-e,this.ca=i-e,this.ba=t-e},U=function(e,t,i,r){var n={a:e},s={},o={},a={c:r},l=(e+t)/2,t=(t+i)/2,i=(i+r)/2,u=(l+t)/2,t=(t+i)/2,h=(t-u)/8;return n.b=l+(e-l)/4,s.b=u+h,n.c=s.a=(n.b+s.b)/2,s.c=o.a=(u+t)/2,o.b=t-h,a.b=i+(r-i)/4,o.c=a.a=(o.b+a.b)/2,[n,s,o,a]},_=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(e,t,i){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var r,n,s,o,a,l=t.values||[],u={},h=l[0],c=t.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=c?c instanceof Array?c:[["x","y","rotation",!0!==c&&Number(c)||0]]:null,h)this._props.push(r);for(s=this._props.length;-1<--s;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof e[r],u[r]=n?e[r.indexOf("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(e[r]),a||u[r]!==l[0][r]&&(a=u);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?p(l,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,a):function(e,t,i){var r,n,s,o,a,l,u,h,c,p,d,f={},m="cubic"===(t=t||"soft")?3:2,_="soft"===t,g=[];if(null==(e=_&&i?[i].concat(e):e)||e.length<1+m)throw"invalid Bezier data";for(c in e[0])g.push(c);for(l=g.length;-1<--l;){for(f[c=g[l]]=a=[],h=e.length,u=p=0;u<h;u++)r=null==i?e[u][c]:"string"==typeof(d=e[u][c])&&"="===d.charAt(1)?i[c]+Number(d.charAt(0)+d.substr(2)):Number(d),_&&1<u&&u<h-1&&(a[p++]=(r+a[p-2])/2),a[p++]=r;for(h=p-m+1,u=p=0;u<h;u+=m)r=a[u],n=a[u+1],s=a[u+2],o=2==m?0:a[u+3],a[p++]=d=3==m?new B(r,n,s,o):new B(r,(2*n+r)/3,(2*n+s)/3,s);a.length=p}return f}(l,t.type,u),this._segCount=this._beziers[r].length,this._timeRes&&(h=function(e,t){var i,r,n,s,o=[],a=[],l=0,u=0,h=(t=t>>0||6)-1,c=[],p=[];for(i in e){x=b=y=v=x=g=_=m=f=d=y=A=S=void 0;for(var d,f,m,_,g,v,y,b,x,T=e[i],w=o,E=t,S=1/E,A=T.length;-1<--A;)for(f=(b=T[A]).a,m=b.d-f,_=b.c-f,g=b.b-f,d=0,v=1;v<=E;v++)y=d-(d=((x=S*v)*x*m+3*(y=1-x)*(x*_+y*g))*x),w[x=A*E+v-1]=(w[x]||0)+y*y}for(n=o.length,r=0;r<n;r++)l+=Math.sqrt(o[r]),p[s=r%t]=l,s==h&&(u+=l,c[s=r/t>>0]=p,a[s]=u,l=0,p=[]);return{length:u,lengths:a,segments:c}}(this._beziers,this._timeRes),this._length=h.length,this._lengths=h.lengths,this._segments=h.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),c=this._autoRotate)for(this._initialRotations=[],c[0]instanceof Array||(this._autoRotate=c=[c]),s=c.length;-1<--s;){for(o=0;o<3;o++)r=c[s][o],this._func[r]="function"==typeof e[r]&&e[r.indexOf("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)];r=c[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var t,i,r,n,s,o,a,l,u,h,c=this._segCount,p=this._func,d=this._target,f=e!==this._startRatio;if(this._timeRes){if(l=this._lengths,u=this._curSeg,h=e*this._length,w=this._li,h>this._l2&&w<c-1){for(a=c-1;w<a&&(this._l2=l[++w])<=h;);this._l1=l[w-1],this._li=w,this._curSeg=u=this._segments[w],this._s2=u[this._s1=this._si=0]}else if(h<this._l1&&0<w){for(;0<w&&(this._l1=l[--w])>=h;);0===w&&h<this._l1?this._l1=0:w++,this._l2=l[w],this._li=w,this._curSeg=u=this._segments[w],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(t=w,h-=this._l1,w=this._si,h>this._s2&&w<u.length-1){for(a=u.length-1;w<a&&(this._s2=u[++w])<=h;);this._s1=u[w-1],this._si=w}else if(h<this._s1&&0<w){for(;0<w&&(this._s1=u[--w])>=h;);0===w&&h<this._s1?this._s1=0:w++,this._s2=u[w],this._si=w}s=1===e?1:(w+(h-this._s1)/(this._s2-this._s1))*this._prec||0}else s=(e-(t=e<0?0:1<=e?c-1:c*e>>0)*(1/c))*c;for(i=1-s,w=this._props.length;-1<--w;)r=this._props[w],o=(s*s*(n=this._beziers[r][t]).da+3*i*(s*n.ca+i*n.ba))*s+n.a,this._mod[r]&&(o=this._mod[r](o,d)),p[r]?d[r](o):d[r]=o;if(this._autoRotate)for(var m,_,g,v,y,b,x,T=this._autoRotate,w=T.length;-1<--w;)r=T[w][2],b=T[w][3]||0,x=!0===T[w][4]?1:E,n=this._beziers[T[w][0]],m=this._beziers[T[w][1]],n&&m&&(n=n[t],m=m[t],_=n.a+(n.b-n.a)*s,_+=((v=n.b+(n.c-n.b)*s)-_)*s,v+=(n.c+(n.d-n.c)*s-v)*s,g=m.a+(m.b-m.a)*s,g+=((y=m.b+(m.c-m.b)*s)-g)*s,y+=(m.c+(m.d-m.c)*s-y)*s,o=f?Math.atan2(y-g,v-_)*x+b:this._initialRotations[w],this._mod[r]&&(o=this._mod[r](o,d)),p[r]?d[r](o):d[r]=o)}}),e=_.prototype,_.bezierThrough=p,_.cubicToQuadratic=U,_._autoCSS=!0,_.quadraticToCubic=function(e,t,i){return new B(e,(2*t+e)/3,(2*t+i)/3,i)},_._cssRegister=function(){var d,f,m,e=t.CSSPlugin;e&&(e=e._internals,d=e._parseToProxy,f=e._setPluginRatio,m=e.CSSPropTween,e._registerComplexSpecialProp("bezier",{parser:function(e,t,i,r,n,s){t instanceof Array&&(t={values:t}),s=new _;var o,a,l,u=t.values,h=u.length-1,c=[],p={};if(!(h<0)){for(o=0;o<=h;o++)l=d(e,u[o],r,n,s,h!==o),c[o]=l.end;for(a in t)p[a]=t[a];p.values=c,(n=new m(e,"bezier",0,0,l.pt,2)).data=l,n.plugin=s,n.setRatio=f,0===p.autoRotate&&(p.autoRotate=!0),!p.autoRotate||p.autoRotate instanceof Array||(o=!0===p.autoRotate?0:Number(p.autoRotate),p.autoRotate=null!=l.end.left?[["left","top","rotation",o,!1]]:null!=l.end.x&&[["x","y","rotation",o,!1]]),p.autoRotate&&(r._transform||r._enableTransforms(!1),l.autoRotate=r._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,r._overwriteProps.push("rotation")),s._onInitTween(l.proxy,p,r._tween)}return n}}))},e._mod=function(e){for(var t,i=this._overwriteProps,r=i.length;-1<--r;)(t=e[i[r]])&&"function"==typeof t&&(this._mod[i[r]]=t)},e._kill=function(e){var t,i,r=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],i=r.length;-1<--i;)r[i]===t&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;-1<--i;)e[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,e)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(o,R){function C(){o.call(this,"css"),this._overwriteProps.length=0,this.setRatio=C.prototype.setRatio}function a(e,t){return t.toUpperCase()}function l(e,t){return(t=L.createElementNS?L.createElementNS(t||"http://www.w3.org/1999/xhtml",e):L.createElement(e)).style?t:L.createElement(e)}function u(e){return ne.test("string"==typeof e?e:(e.currentStyle||e.style).filter||"")?parseFloat(RegExp.$1)/100:1}function _(e){_gsScope.console&&console.log(e)}function T(e,t){var i,r,n=(t=t||F).style;if(void 0!==n[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;-1<--r&&void 0===n[i[r]+e];);return 0<=r?(ve="-"+(ye=3===r?"ms":i[r]).toLowerCase()+"-",ye+e):null}function f(e){return be.getComputedStyle(e)}function p(e,t){var i,r,n={};if(t=t||f(e))if(i=t.length)for(;-1<--i;)-1!==(r=t[i]).indexOf("-transform")&&Ge!==r||(n[r.replace(ue,a)]=t.getPropertyValue(r));else for(i in t)-1!==i.indexOf("Transform")&&H!==i||(n[i]=t[i]);else if(t=e.currentStyle||e.style)for(i in t)"string"==typeof i&&void 0===n[i]&&(n[i.replace(ue,a)]=t[i]);return N||(n.opacity=u(e)),e=Ze(e,t,!1),n.rotation=e.rotation,n.skewX=e.skewX,n.scaleX=e.scaleX,n.scaleY=e.scaleY,n.x=e.x,n.y=e.y,Y&&(n.z=e.z,n.rotationX=e.rotationX,n.rotationY=e.rotationY,n.scaleZ=e.scaleZ),n.filters&&delete n.filters,n}function g(e,t,i,r,n){var s,o,a,l={},u=e.style;for(o in i)"cssText"===o||"length"!==o&&isNaN(o)&&(t[o]!==(s=i[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof t[o]||""===t[o].replace(ie,"")?s:0:xe(e,o),void 0!==u[o]&&(a=new Pe(u,o,u[o],a)));if(r)for(o in r)"className"!==o&&(l[o]=r[o]);return{difs:l,firstMPT:a}}function A(e,t){return"string"==typeof(e="function"==typeof e?e(O,P):e)&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0}function E(e,t){var i="string"==typeof(e="function"==typeof e?e(O,P):e)&&"="===e.charAt(1);return null==(e="string"==typeof e&&"v"===e.charAt(e.length-2)?(i?e.substr(0,2):0)+window["inner"+("vh"===e.substr(-2)?"Height":"Width")]*(parseFloat(i?e.substr(2):e)/100):e)?t:i?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0}function S(e,t,i,r){var n,s;return n=(n=null==(e="function"==typeof e?e(O,P):e)?t:"number"==typeof e?e:(n=e.split("_"),s=((s="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===e.indexOf("rad")?1:D)-(s?0:t),n.length&&(r&&(r[i]=t+s),-1!==e.indexOf("short")&&(s%=360)!==s%180&&(s=s<0?s+360:s-360),-1!==e.indexOf("_cw")&&s<0?s=(s+3599999999640)%360-360*(s/360|0):-1!==e.indexOf("ccw")&&0<s&&(s=(s-3599999999640)%360-360*(s/360|0))),t+s))<1e-6&&-1e-6<n?0:n}function h(e,t,i){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)+.5|0}function v(e,t){var i,r,n,s=e.match(U)||[],o=0,a="";if(!s.length)return e;for(i=0;i<s.length;i++)r=s[i],o+=(n=e.substr(o,e.indexOf(r,o)-o)).length+r.length,3===(r=Se(r,t)).length&&r.push(1),a+=n+(t?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return a+e.substr(o)}var d,W,k,y,V,b,q,K,Z,x,P,O,J=_gsScope._gsDefine.globals,m={},e=C.prototype=new o("css"),Q=((e.constructor=C).version="2.1.3",C.API=2,C.defaultTransformPerspective=0,C.defaultSkewType="compensated",C.defaultSmoothOrigin=!0,C.suffixMap={top:e="px",right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""},/(?:\-|\.|\b)(\d|\.|e\-)+/g),$=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,ee=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,te=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,ie=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,re=/(?:\d|\-|\+|=|#|\.)*/g,ne=/opacity *= *([^)]*)/i,se=/opacity:([^;]*)/i,oe=/alpha\(opacity *=.+?\)/i,ae=/^(rgb|hsl)/,le=/([A-Z])/g,ue=/-([a-z])/gi,he=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,ce=/(?:Left|Right|Width)/i,pe=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,de=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,M=/,(?=[^\)]*(?:\(|$))/gi,fe=/[\s,\(]/i,I=Math.PI/180,D=180/Math.PI,me={},_e={style:{}},L=_gsScope.document||{createElement:function(){return _e}},F=l("div"),ge=l("img"),t=C._internals={_specialProps:m},i=(_gsScope.navigator||{}).userAgent||"",N=(n=i.indexOf("Android"),r=l("a"),q=-1!==i.indexOf("Safari")&&-1===i.indexOf("Chrome")&&(-1===n||3<parseFloat(i.substr(n+8,2))),Z=q&&parseFloat(i.substr(i.indexOf("Version/")+8,2))<6,K=-1!==i.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(i)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(i))&&(x=parseFloat(RegExp.$1)),!!r&&(r.style.cssText="top:1px;opacity:.55;",/^0.55/.test(r.style.opacity))),ve="",ye="",be="undefined"!=typeof window?window:L.defaultView||{getComputedStyle:function(){}},z=C.getStyle=function(e,t,i,r,n){var s;return N||"opacity"!==t?(!r&&e.style[t]?s=e.style[t]:(i=i||f(e))?s=i[t]||i.getPropertyValue(t)||i.getPropertyValue(t.replace(le,"-$1").toLowerCase()):e.currentStyle&&(s=e.currentStyle[t]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):u(e)},w=t.convertToPixels=function(e,t,i,r,n){if("px"===r||!r&&"lineHeight"!==t)return i;if("auto"===r||!i)return 0;var s,o,a,l=ce.test(t),u=e,h=F.style,c=i<0,p=1===i;if(c&&(i=-i),p&&(i*=100),"lineHeight"!==t||r)if("%"===r&&-1!==t.indexOf("border"))s=i/100*(l?e.clientWidth:e.clientHeight);else{if(h.cssText="border:0 solid red;position:"+z(e,"position")+";line-height:0;","%"!==r&&u.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)h[l?"borderLeftWidth":"borderTopWidth"]=i+r;else{if(u=e.parentNode||L.body,-1!==z(u,"display").indexOf("flex")&&(h.position="absolute"),o=u._gsCache,a=R.ticker.frame,o&&l&&o.time===a)return o.width*i/100;h[l?"width":"height"]=i+r}u.appendChild(F),s=parseFloat(F[l?"offsetWidth":"offsetHeight"]),u.removeChild(F),l&&"%"===r&&!1!==C.cacheWidths&&((o=u._gsCache=u._gsCache||{}).time=a,o.width=s/i*100),0!==s||n||(s=w(e,t,i,r,!0))}else o=f(e).lineHeight,e.style.lineHeight=i,s=parseFloat(f(e).lineHeight),e.style.lineHeight=o;return p&&(s/=100),c?-s:s},xe=t.calculateOffset=function(e,t,i){var r;return"absolute"!==z(e,"position",i)?0:(i=z(e,"margin"+(r="left"===t?"Left":"Top"),i),e["offset"+r]-(w(e,t,parseFloat(i),i.replace(re,""))||0))},Te={width:["Left","Right"],height:["Top","Bottom"]},we=["marginLeft","marginRight","marginTop","marginBottom"],B=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";var i,r=(e=null!=e&&""!==e?e:"0 0").split(" "),n=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":r[0],s=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":r[1];if(3<r.length&&!t){for(r=e.split(", ").join(",").split(","),e=[],i=0;i<r.length;i++)e.push(B(r[i]));return e.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),e=(n="center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("=")?"50%":n)+" "+s+(2<r.length?" "+r[2]:""),t&&(t.oxp=-1!==n.indexOf("%"),t.oyp=-1!==s.indexOf("%"),t.oxr="="===n.charAt(1),t.oyr="="===s.charAt(1),t.ox=parseFloat(n.replace(ie,"")),t.oy=parseFloat(s.replace(ie,"")),t.v=e),t||e},Ee={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Se=C.parseColor=function(e,t){var i,r,n,s,o,a,l,u;if(e)if("number"==typeof e)i=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),Ee[e])i=Ee[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(r=e.charAt(1))+r+(n=e.charAt(2))+n+(s=e.charAt(3))+s),i=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(i=u=e.match(Q),t){if(-1!==e.indexOf("="))return e.match($)}else o=Number(i[0])%360/360,a=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(a+1):l+a-l*a),3<i.length&&(i[3]=Number(i[3])),i[0]=h(o+1/3,r,n),i[1]=h(o,r,n),i[2]=h(o-1/3,r,n);else i=e.match(Q)||Ee.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=Ee.black;return t&&!u&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((e=Math.max(r,n,s))+(t=Math.min(r,n,s)))/2,e===t?o=a=0:(u=e-t,a=.5<l?u/(2-e-t):u/(e+t),o=e===r?(n-s)/u+(n<s?6:0):e===n?(s-r)/u+2:(r-n)/u+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},U="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in Ee)U+="|"+e+"\\b";U=new RegExp(U+")","gi"),C.colorStringFilter=function(e){var t=e[0]+" "+e[1];U.test(t)&&(t=-1!==t.indexOf("hsl(")||-1!==t.indexOf("hsla("),e[0]=v(e[0],t),e[1]=v(e[1],t)),U.lastIndex=0},R.defaultStringFilter||(R.defaultStringFilter=C.colorStringFilter);function Ae(e,t,s,o){var a,l,u,h,c,p,d,f;return null==e?function(e){return e}:(a=t?(e.match(U)||[""])[0]:"",l=e.split(a).join("").match(ee)||[],u=e.substr(0,e.indexOf(l[0])),h=")"===e.charAt(e.length-1)?")":"",c=-1!==e.indexOf(" ")?" ":",",p=l.length,d=0<p?l[0].replace(Q,""):"",p?f=t?function(e){var t,i,r,n;if("number"==typeof e)e+=d;else if(o&&M.test(e)){for(n=e.replace(M,"|").split("|"),r=0;r<n.length;r++)n[r]=f(n[r]);return n.join(",")}if(t=(e.match(U)||[a])[0],r=(i=e.split(t).join("").match(ee)||[]).length,p>r--)for(;++r<p;)i[r]=s?i[(r-1)/2|0]:l[r];return u+i.join(c)+c+t+h+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,i,r;if("number"==typeof e)e+=d;else if(o&&M.test(e)){for(i=e.replace(M,"|").split("|"),r=0;r<i.length;r++)i[r]=f(i[r]);return i.join(",")}if(r=(t=e.match(","==c?ee:te)||[]).length,p>r--)for(;++r<p;)t[r]=s?t[(r-1)/2|0]:l[r];return(u&&"none"!==e&&e.substr(0,e.indexOf(t[0]))||u)+t.join(c)+h}:function(e){return e})}function ke(u){return u=u.split(","),function(e,t,i,r,n,s,o){var a,l=(t+"").split(" ");for(o={},a=0;a<4;a++)o[u[a]]=l[a]=l[a]||l[(a-1)/2>>0];return r.parse(e,o,n,s)}}function Pe(e,t,i,r,n){this.t=e,this.p=t,this.v=i,this.r=n,r&&((r._prev=this)._next=r)}t._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,i,r,n,s,o=this.data,a=o.proxy,l=o.firstMPT;l;)t=a[l.v],l.r?t=l.r(t):t<1e-6&&-1e-6<t&&(t=0),l.t[l.p]=t,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod.call(this._tween,a.rotation,this.t,this._tween):a.rotation),1===e||0===e)for(l=o.firstMPT,s=1===e?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},t._parseToProxy=function(e,t,i,r,n,s){var o,a,l,u,h=r,c={},p={},d=i._transform,f=me;for(i._transform=null,me=t,r=e=i.parse(e,t,r,n),me=f,s&&(i._transform=d,h&&(h._prev=null,h._prev&&(h._prev._next=null)));r&&r!==h;){if(r.type<=1&&(p[a=r.p]=r.s+r.c,c[a]=r.s,s||(u=new Pe(r,"s",a,u,r.r),r.c=0),1===r.type))for(o=r.l;0<--o;)p[a=r.p+"_"+(l="xn"+o)]=r.data[l],c[a]=r[l],s||(u=new Pe(r,l,a,u,r.rxp[l]));r=r._next}return{proxy:c,end:p,firstMPT:u,pt:e}};function Oe(e,t,i,r,n,s){return(e=new j(e,t,i,r-i,n,-1,s)).b=i,e.e=e.xs0=r,e}var j=t.CSSPropTween=function(e,t,i,r,n,s,o,a,l,u,h){this.t=e,this.p=t,this.s=i,this.c=r,this.n=o||t,e instanceof j||y.push(this.n),this.r=a&&("function"==typeof a?a:Math.round),this.type=s||0,l&&(this.pr=l,d=!0),this.b=void 0===u?i:u,this.e=void 0===h?i+r:h,n&&((this._next=n)._prev=this)},Re=C.parseComplex=function(e,t,i,r,n,s,o,a,l,u){i=i||s||"","function"==typeof r&&(r=r(O,P)),o=new j(e,t,0,0,o,u?2:1,null,!1,a,i,r),r+="",n&&U.test(r+i)&&(C.colorStringFilter(r=[i,r]),i=r[0],r=r[1]);var h,c,p,d,f,m,_,g,v,y,b,x,T=i.split(", ").join(",").split(" "),w=r.split(", ").join(",").split(" "),E=T.length,S=!1!==V;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(w=(-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(T=T.join(" ").replace(M,", ").split(" "),w.join(" ").replace(M,", ")):(T=T.join(" ").split(",").join(", ").split(" "),w.join(" ").split(",").join(", "))).split(" "),E=T.length),E!==w.length&&(E=(T=(s||"").split(" ")).length),o.plugin=l,o.setRatio=u,h=U.lastIndex=0;h<E;h++)if(d=T[h],f=w[h]+"",(x=parseFloat(d))||0===x)o.appendXtra("",x,A(f,x),f.replace($,""),S&&-1!==f.indexOf("px")&&Math.round,!0);else if(n&&U.test(d))b=")"+((b=f.indexOf(")")+1)?f.substr(b):""),x=-1!==f.indexOf("hsl")&&N,v=f,d=Se(d,x),f=Se(f,x),(g=6<d.length+f.length)&&!N&&0===f[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(w[h]).join("transparent")):(N||(g=!1),x?o.appendXtra(v.substr(0,v.indexOf("hsl"))+(g?"hsla(":"hsl("),d[0],A(f[0],d[0]),",",!1,!0).appendXtra("",d[1],A(f[1],d[1]),"%,",!1).appendXtra("",d[2],A(f[2],d[2]),g?"%,":"%"+b,!1):o.appendXtra(v.substr(0,v.indexOf("rgb"))+(g?"rgba(":"rgb("),d[0],f[0]-d[0],",",Math.round,!0).appendXtra("",d[1],f[1]-d[1],",",Math.round).appendXtra("",d[2],f[2]-d[2],g?",":b,Math.round),g&&(d=d.length<4?1:d[3],o.appendXtra("",d,(f.length<4?1:f[3])-d,b,!1))),U.lastIndex=0;else if(m=d.match(Q)){if(!(_=f.match($))||_.length!==m.length)return o;for(c=p=0;c<m.length;c++)y=m[c],v=d.indexOf(y,p),o.appendXtra(d.substr(p,v-p),Number(y),A(_[c],y),"",S&&"px"===d.substr(v+y.length,2)&&Math.round,0===c),p=v+y.length;o["xs"+o.l]+=d.substr(p)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+f:f;if(-1!==r.indexOf("=")&&o.data){for(b=o.xs0+o.data.s,h=1;h<o.l;h++)b+=o["xs"+h]+o.data["xn"+h];o.e=b+o["xs"+h]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},G=9;for((e=j.prototype).l=e.pr=0;0<--G;)e["xn"+G]=0,e["xs"+G]="";e.xs0="",e._next=e._prev=e.xfirst=e.data=e.plugin=e.setRatio=e.rxp=null,e.appendXtra=function(e,t,i,r,n,s){var o=this,a=o.l;return o["xs"+a]+=s&&(a||o["xs"+a])?" "+e:e||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=r||"",0<a?(o.data["xn"+a]=t+i,o.rxp["xn"+a]=n,o["xn"+a]=t,o.plugin||(o.xfirst=new j(o,"xn"+a,t,i,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0)):(o.data={s:t+i},o.rxp={},o.s=t,o.c=i,o.r=n)):o["xs"+a]+=t+(r||""),o};function Ce(e,t){this.p=(t=t||{}).prefix&&T(e)||e,(m[e]=m[this.p]=this).format=t.formatter||Ae(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.allowFunc=t.allowFunc,this.pr=t.priority||0}function Me(e,t,i){var r,n=L.createElementNS("http://www.w3.org/2000/svg",e),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return t.appendChild(n),n}function Ie(e,t,i,r,n,s){var o,a,l,u,h,c,p,d,f,m,_,g,v=e._gsTransform,y=De(e,!0);v&&(_=v.xOrigin,g=v.yOrigin),(!r||(o=r.split(" ")).length<2)&&(0===(h=e.getBBox()).x&&0===h.y&&h.width+h.height===0&&(h={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),o=[(-1!==(t=B(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*h.width:parseFloat(t[0]))+h.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*h.height:parseFloat(t[1]))+h.y]),i.xOrigin=t=parseFloat(o[0]),i.yOrigin=u=parseFloat(o[1]),r&&y!==Ke&&(r=y[0],h=y[1],c=y[2],p=y[3],d=y[4],f=y[5],(m=r*p-h*c)&&(l=t*(-h/m)+u*(r/m)-(r*f-h*d)/m,t=i.xOrigin=o[0]=a=t*(p/m)+u*(-c/m)+(c*f-p*d)/m,u=i.yOrigin=o[1]=l)),v&&(s&&(i.xOffset=v.xOffset,i.yOffset=v.yOffset,v=i),n||!1!==n&&!1!==C.defaultSmoothOrigin?(v.xOffset+=(a=t-_)*y[0]+(l=u-g)*y[2]-a,v.yOffset+=a*y[1]+l*y[3]-l):v.xOffset=v.yOffset=0),s||e.setAttribute("data-svg-origin",o.join(" "))}function De(e,t){var i,r,n,s,o,a,l,u=e._gsTransform||new He,h=e.style;if(H?r=z(e,Ge,null,!0):e.currentStyle&&(r=(r=e.currentStyle.filter.match(pe))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),u.x||0,u.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,H&&i&&!e.offsetParent&&e!==c&&(s=h.display,h.display="block",(l=e.parentNode)&&e.offsetParent||(o=1,a=e.nextSibling,c.appendChild(e)),i=!(r=z(e,Ge,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?h.display=s:Qe(h,"display"),o&&(a?l.insertBefore(e,a):l?l.appendChild(e):c.removeChild(e))),(u.svg||e.getCTM&&qe(e))&&(i&&-1!==(h[H]+"").indexOf("matrix")&&(r=h[H],i=0),n=e.getAttribute("transform"),i&&n&&(r="matrix("+(n=e.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return Ke;for(n=(r||"").match(Q)||[],G=n.length;-1<--G;)s=Number(n[G]),n[G]=(o=s-(s|=0))?(1e5*o+(o<0?-.5:.5)|0)/1e5+s:s;return t&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n}function Le(e){var t,i,r=this.data,n=(o=-r.rotation*I)+r.skewX*I,s=(Math.cos(o)*r.scaleX*1e5|0)/1e5,o=(Math.sin(o)*r.scaleX*1e5|0)/1e5,a=(Math.sin(n)*-r.scaleY*1e5|0)/1e5,n=(Math.cos(n)*r.scaleY*1e5|0)/1e5,l=this.t.style,u=this.t.currentStyle;if(u){i=o,o=-a,a=-i,t=u.filter,l.filter="";var h=this.t.offsetWidth,c=this.t.offsetHeight,p="absolute"!==u.position,d="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+o+", M21="+a+", M22="+n,f=r.x+h*r.xPercent/100,m=r.y+c*r.yPercent/100;if(null!=r.ox&&(f+=(y=(r.oxp?h*r.ox*.01:r.ox)-h/2)-(y*s+(b=(r.oyp?c*r.oy*.01:r.oy)-c/2)*o),m+=b-(y*a+b*n)),d+=p?", Dx="+((y=h/2)-(y*s+(b=c/2)*o)+f)+", Dy="+(b-(y*a+b*n)+m)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=t.replace(de,d):l.filter=d+" "+t,0!==e&&1!==e||1!=s||0!=o||0!=a||1!=n||p&&-1===d.indexOf("Dx=0, Dy=0")||ne.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&l.removeAttribute("filter"),!p){var _,g,v=x<8?1:-1,y=r.ieOffsetX||0,b=r.ieOffsetY||0;for(r.ieOffsetX=Math.round((h-((s<0?-s:s)*h+(o<0?-o:o)*c))/2+f),r.ieOffsetY=Math.round((c-((n<0?-n:n)*c+(a<0?-a:a)*h))/2+m),G=0;G<4;G++)g=(i=-1!==(g=u[_=we[G]]).indexOf("px")?parseFloat(g):w(this.t,_,parseFloat(g),g.replace(re,""))||0)!==r[_]?G<2?-r.ieOffsetX:-r.ieOffsetY:G<2?y-r.ieOffsetX:b-r.ieOffsetY,l[_]=(r[_]=Math.round(i-g*(0===G||2===G?1:v)))+"px"}}}function Fe(e){var t,i=this.t,r=i.filter||z(this.data,"filter")||"",e=this.s+this.c*e|0;(t=100==e?-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!z(this.data,"filter")):(i.filter=r.replace(oe,""),!0):t)||(this.xn1&&(i.filter=r=r||"alpha(opacity="+e+")"),-1===r.indexOf("pacity")?0==e&&this.xn1||(i.filter=r+" alpha(opacity="+e+")"):i.filter=r.replace(ne,"opacity="+e))}function Ne(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:Qe(i,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}function ze(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,i,r,n,s=this.t.style,o=m.transform.parse;if("all"===this.e)n=!(s.cssText="");else for(r=(t=this.e.split(" ").join("").split(",")).length;-1<--r;)i=t[r],m[i]&&(m[i].parse===o?n=!0:i="transformOrigin"===i?Xe:m[i].p),Qe(s,i);n&&(Qe(s,H),(e=this.t._gsTransform)&&(e.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}var X,r,Be,n,s=t._registerComplexSpecialProp=function(e,t,i){"object"!=typeof t&&(t={parser:i});var r,n=e.split(","),s=t.defaultValue;for(i=i||[s],r=0;r<n.length;r++)t.prefix=0===r&&t.prefix,t.defaultValue=i[r]||s,new Ce(n[r],t)},Ue=t._registerPluginProp=function(e){var l;m[e]||(l=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin",s(e,{parser:function(e,t,i,r,n,s,o){var a=J.com.greensock.plugins[l];return a?(a._cssRegister(),m[i].parse(e,t,i,r,n,s,o)):(_("Error: "+l+" js file not loaded."),n)}}))},je=((e=Ce.prototype).parseComplex=function(e,t,i,r,n,s){var o,a,l,u,h,c,p=this.keyword;if(this.multi&&(M.test(i)||M.test(t)?(a=t.replace(M,"|").split("|"),l=i.replace(M,"|").split("|")):p&&(a=[t],l=[i])),l){for(u=(l.length>a.length?l:a).length,o=0;o<u;o++)t=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,p&&(h=t.indexOf(p))!==(c=i.indexOf(p))&&(-1===c?a[o]=a[o].split(p).join(""):-1===h&&(a[o]+=" "+p));t=a.join(", "),i=l.join(", ")}return Re(e,this.p,t,i,this.clrs,this.dflt,r,this.pr,n,s)},e.parse=function(e,t,i,r,n,s,o){return this.parseComplex(e.style,this.format(z(e,this.p,k,!1,this.dflt)),this.format(t),n,s)},C.registerSpecialProp=function(e,a,l){s(e,{parser:function(e,t,i,r,n,s,o){n=new j(e,i,0,0,n,2,i,!1,l);return n.plugin=s,n.setRatio=a(e,t,r._tween,i),n},priority:l})},C.useSVGTransformAttr=!0,"scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(",")),H=T("transform"),Ge=ve+"transform",Xe=T("transformOrigin"),Y=null!==T("perspective"),He=t.Transform=function(){this.perspective=parseFloat(C.defaultTransformPerspective)||0,this.force3D=!1!==C.defaultForce3D&&Y&&(C.defaultForce3D||"auto")},Ye=_gsScope.SVGElement,c=L.documentElement||{},We=(n=x||/Android/i.test(i)&&!_gsScope.chrome,L.createElementNS&&c.appendChild&&!n&&(r=Me("svg",c),Be=(i=Me("rect",r,{width:100,height:50,x:100})).getBoundingClientRect().width,i.style[Xe]="50% 50%",i.style[H]="scaleX(0.5)",n=Be===i.getBoundingClientRect().width&&!(K&&Y),c.removeChild(r)),n),Ve=function(e){var t,i=l("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(c.appendChild(i),i.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ve}catch(e){}else this._originalGetBBox&&(t=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),c.removeChild(i),this.style.cssText=s,t},qe=function(e){return!(!Ye||!e.getCTM||e.parentNode&&!e.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return Ve.call(t,!0)}}(e))},Ke=[1,0,0,1,0,0],Ze=t.getTransform=function(e,t,i,r){if(e._gsTransform&&i&&!r)return e._gsTransform;var n,s,o,a,l,u,h,c,p,d,f,m,_,g,v,y,b,x,T,w,E,S,A=i&&e._gsTransform||new He,k=A.scaleX<0,P=Y&&(parseFloat(z(e,Xe,t,!1,"0 0 0").split(" ")[2])||A.zOrigin)||0,O=parseFloat(C.defaultTransformPerspective)||0;if(A.svg=!(!e.getCTM||!qe(e)),A.svg&&(Ie(e,z(e,Xe,t,!1,"50% 50%")+"",A,e.getAttribute("data-svg-origin")),X=C.useSVGTransformAttr||We),(t=De(e))!==Ke)for(n in 16===t.length?(s=t[0],o=t[1],a=t[2],T=t[3],l=t[4],u=t[5],h=t[6],x=t[7],c=t[8],p=t[9],d=t[10],f=t[12],m=t[13],_=t[14],g=t[11],v=Math.atan2(h,d),A.zOrigin&&(f=c*(_=-A.zOrigin)-t[12],m=p*_-t[13],_=d*_+A.zOrigin-t[14]),A.rotationX=v*D,v&&(S=l*(w=Math.cos(-v))+c*(E=Math.sin(-v)),y=u*w+p*E,b=h*w+d*E,c=l*-E+c*w,p=u*-E+p*w,d=h*-E+d*w,g=x*-E+g*w,l=S,u=y,h=b),v=Math.atan2(-a,d),A.rotationY=v*D,v&&(y=o*(w=Math.cos(-v))-p*(E=Math.sin(-v)),b=a*w-d*E,p=o*E+p*w,d=a*E+d*w,g=T*E+g*w,s=S=s*w-c*E,o=y,a=b),v=Math.atan2(o,s),A.rotation=v*D,v&&(S=s*(w=Math.cos(v))+o*(E=Math.sin(v)),y=l*w+u*E,b=c*w+p*E,o=o*w-s*E,u=u*w-l*E,p=p*w-c*E,s=S,l=y,c=b),A.rotationX&&359.9<Math.abs(A.rotationX)+Math.abs(A.rotation)&&(A.rotationX=A.rotation=0,A.rotationY=180-A.rotationY),v=Math.atan2(l,u),A.scaleX=(1e5*Math.sqrt(s*s+o*o+a*a)+.5|0)/1e5,A.scaleY=(1e5*Math.sqrt(u*u+h*h)+.5|0)/1e5,A.scaleZ=(1e5*Math.sqrt(c*c+p*p+d*d)+.5|0)/1e5,s/=A.scaleX,l/=A.scaleY,o/=A.scaleX,u/=A.scaleY,2e-5<Math.abs(v)?(A.skewX=v*D,l=0,"simple"!==A.skewType&&(A.scaleY*=1/Math.cos(v))):A.skewX=0,A.perspective=g?1/(g<0?-g:g):0,A.x=f,A.y=m,A.z=_,A.svg&&(A.x-=A.xOrigin-(A.xOrigin*s-A.yOrigin*l),A.y-=A.yOrigin-(A.yOrigin*o-A.xOrigin*u))):Y&&!r&&t.length&&A.x===t[4]&&A.y===t[5]&&(A.rotationX||A.rotationY)||(T=(x=6<=t.length)?t[0]:1,w=t[1]||0,E=t[2]||0,S=x?t[3]:1,A.x=t[4]||0,A.y=t[5]||0,y=Math.sqrt(T*T+w*w),b=Math.sqrt(S*S+E*E),a=T||w?Math.atan2(w,T)*D:A.rotation||0,h=E||S?Math.atan2(E,S)*D+a:A.skewX||0,A.scaleX=y,A.scaleY=b,A.rotation=a,A.skewX=h,Y&&(A.rotationX=A.rotationY=A.z=0,A.perspective=O,A.scaleZ=1),A.svg&&(A.x-=A.xOrigin-(A.xOrigin*T+A.yOrigin*E),A.y-=A.yOrigin-(A.xOrigin*w+A.yOrigin*S))),90<Math.abs(A.skewX)&&Math.abs(A.skewX)<270&&(k?(A.scaleX*=-1,A.skewX+=A.rotation<=0?180:-180,A.rotation+=A.rotation<=0?180:-180):(A.scaleY*=-1,A.skewX+=A.skewX<=0?180:-180)),A.zOrigin=P,A)A[n]<2e-5&&-2e-5<A[n]&&(A[n]=0);return i&&(e._gsTransform=A).svg&&(X&&e.style[H]?R.delayedCall(.001,function(){Qe(e.style,H)}):!X&&e.getAttribute("transform")&&R.delayedCall(.001,function(){e.removeAttribute("transform")})),A},Je=t.set3DTransformRatio=t.setTransformRatio=function(e){var t,i,r,n,s,o,a,l,u,h,c,p,d,f,m,_,g=this.data,v=this.t.style,y=g.rotation,b=g.rotationX,x=g.rotationY,T=g.scaleX,w=g.scaleY,E=g.scaleZ,S=g.x,A=g.y,k=g.z,P=g.svg,O=g.perspective,R=g.force3D,C=g.skewY,M=g.skewX;if(C&&(M+=C,y+=C),((1!==e&&0!==e||"auto"!==R||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&R||k||O||x||b||1!==E)&&(!X||!P)&&Y){if(K&&(T<(d=1e-4)&&-d<T&&(T=E=2e-5),w<d&&-d<w&&(w=E=2e-5),!O||g.z||g.rotationX||g.rotationY||(O=0)),y||M)y*=I,_=i=Math.cos(y),m=s=Math.sin(y),M&&(y-=M*I,_=Math.cos(y),m=Math.sin(y),"simple"===g.skewType&&(t=Math.tan((M-C)*I),_*=t=Math.sqrt(1+t*t),m*=t,g.skewY&&(t=Math.tan(C*I),i*=t=Math.sqrt(1+t*t),s*=t))),r=-m,o=_;else{if(!(x||b||1!==E||O||P))return void(v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) translate3d(":"translate3d(")+S+"px,"+A+"px,"+k+"px)"+(1!==T||1!==w?" scale("+T+","+w+")":""));i=o=1,r=s=0}e=1,n=a=l=u=h=R=0,c=O?-1/O:0,p=g.zOrigin,d=1e-6,(y=x*I)&&(_=Math.cos(y),h=c*(l=-(m=Math.sin(y))),n=i*m,a=s*m,c*=e=_,i*=_,s*=_),(y=b*I)&&(t=r*(_=Math.cos(y))+n*(m=Math.sin(y)),f=o*_+a*m,u=e*m,R=c*m,n=r*-m+n*_,a=o*-m+a*_,e*=_,c*=_,r=t,o=f),1!==E&&(n*=E,a*=E,e*=E,c*=E),1!==w&&(r*=w,o*=w,u*=w,R*=w),1!==T&&(i*=T,s*=T,l*=T,h*=T),(p||P)&&(p&&(S+=n*-p,A+=a*-p,k+=e*-p+p),P&&(S+=g.xOrigin-(g.xOrigin*i+g.yOrigin*r)+g.xOffset,A+=g.yOrigin-(g.xOrigin*s+g.yOrigin*o)+g.yOffset),S<d&&-d<S&&(S="0"),A<d&&-d<A&&(A="0"),k<d&&-d<k&&(k=0)),m=(m=g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix3d(":"matrix3d(")+((i<d&&-d<i?"0":i)+","+(s<d&&-d<s?"0":s)+","+(l<d&&-d<l?"0":l))+(","+(h<d&&-d<h?"0":h)+","+(r<d&&-d<r?"0":r)+","+(o<d&&-d<o?"0":o)),b||x||1!==E?m=m+","+(u<d&&-d<u?"0":u)+","+(R<d&&-d<R?"0":R)+","+(n<d&&-d<n?"0":n)+","+(a<d&&-d<a?"0":a)+","+(e<d&&-d<e?"0":e)+","+(c<d&&-d<c?"0":c)+",":m+=",0,0,0,0,1,0,",v[H]=m+=S+","+A+","+k+","+(O?1+-k/O:1)+")"}else y||M||P?(y*=I,_=M*I,i=Math.cos(y)*T,s=Math.sin(y)*T,r=Math.sin(y-_)*-w,o=Math.cos(y-_)*w,_&&"simple"===g.skewType&&(t=Math.tan(_-C*I),r*=t=Math.sqrt(1+t*t),o*=t,C&&(t=Math.tan(C*I),i*=t=Math.sqrt(1+t*t),s*=t)),P&&(S+=g.xOrigin-(g.xOrigin*i+g.yOrigin*r)+g.xOffset,A+=g.yOrigin-(g.xOrigin*s+g.yOrigin*o)+g.yOffset,X&&(g.xPercent||g.yPercent)&&(d=this.t.getBBox(),S+=.01*g.xPercent*d.width,A+=.01*g.yPercent*d.height),S<(d=1e-6)&&-d<S&&(S=0),A<d&&-d<A&&(A=0)),m=(1e5*i|0)/1e5+","+(1e5*s|0)/1e5+","+(1e5*r|0)/1e5+","+(1e5*o|0)/1e5+","+S+","+A+")",P&&X?this.t.setAttribute("transform","matrix("+m):v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix(":"matrix(")+m):v[H]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix(":"matrix(")+T+",0,0,"+w+","+S+","+A+")"},Qe=((e=He.prototype).x=e.y=e.z=e.skewX=e.skewY=e.rotation=e.rotationX=e.rotationY=e.zOrigin=e.xPercent=e.yPercent=e.xOffset=e.yOffset=0,e.scaleX=e.scaleY=e.scaleZ=1,s("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,i,r,n,s,o){if(r._lastParsedTransform!==o){var a,l,u,h,c,p,d,f,m=(r._lastParsedTransform=o).scale&&"function"==typeof o.scale?o.scale:0,_=(m&&(o.scale=m(O,e)),e._gsTransform),g=e.style,v=je.length,y=o,b={},x="transformOrigin",T=Ze(e,k,!0,y.parseTransform),w=y.transform&&("function"==typeof y.transform?y.transform(O,P):y.transform);if(T.skewType=y.skewType||T.skewType||C.defaultSkewType,r._transform=T,"rotationZ"in y&&(y.rotation=y.rotationZ),w&&"string"==typeof w&&H)(l=F.style)[H]=w,l.display="block",l.position="absolute",-1!==w.indexOf("%")&&(l.width=z(e,"width"),l.height=z(e,"height")),L.body.appendChild(F),a=Ze(F,null,!1),"simple"===T.skewType&&(a.scaleY*=Math.cos(a.skewX*I)),T.svg&&(c=T.xOrigin,p=T.yOrigin,a.x-=T.xOffset,a.y-=T.yOffset,(y.transformOrigin||y.svgOrigin)&&(w={},Ie(e,B(y.transformOrigin),w,y.svgOrigin,y.smoothOrigin,!0),c=w.xOrigin,p=w.yOrigin,a.x-=w.xOffset-T.xOffset,a.y-=w.yOffset-T.yOffset),(c||p)&&(d=De(F,!0),a.x-=c-(c*d[0]+p*d[2]),a.y-=p-(c*d[1]+p*d[3]))),L.body.removeChild(F),a.perspective||(a.perspective=T.perspective),null!=y.xPercent&&(a.xPercent=E(y.xPercent,T.xPercent)),null!=y.yPercent&&(a.yPercent=E(y.yPercent,T.yPercent));else if("object"==typeof y){if(a={scaleX:E(null!=y.scaleX?y.scaleX:y.scale,T.scaleX),scaleY:E(null!=y.scaleY?y.scaleY:y.scale,T.scaleY),scaleZ:E(y.scaleZ,T.scaleZ),x:E(y.x,T.x),y:E(y.y,T.y),z:E(y.z,T.z),xPercent:E(y.xPercent,T.xPercent),yPercent:E(y.yPercent,T.yPercent),perspective:E(y.transformPerspective,T.perspective)},null!=(h=y.directionalRotation))if("object"==typeof h)for(l in h)y[l]=h[l];else y.rotation=h;"string"==typeof y.x&&-1!==y.x.indexOf("%")&&(a.x=0,a.xPercent=E(y.x,T.xPercent)),"string"==typeof y.y&&-1!==y.y.indexOf("%")&&(a.y=0,a.yPercent=E(y.y,T.yPercent)),a.rotation=S("rotation"in y?y.rotation:"shortRotation"in y?y.shortRotation+"_short":T.rotation,T.rotation,"rotation",b),Y&&(a.rotationX=S("rotationX"in y?y.rotationX:"shortRotationX"in y?y.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",b),a.rotationY=S("rotationY"in y?y.rotationY:"shortRotationY"in y?y.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",b)),a.skewX=S(y.skewX,T.skewX),a.skewY=S(y.skewY,T.skewY)}for(Y&&null!=y.force3D&&(T.force3D=y.force3D,u=!0),(d=T.force3D||T.z||T.rotationX||T.rotationY||a.z||a.rotationX||a.rotationY||a.perspective)||null==y.scale||(a.scaleZ=1);-1<--v;)(1e-6<(w=a[f=je[v]]-T[f])||w<-1e-6||null!=y[f]||null!=me[f])&&(u=!0,n=new j(T,f,T[f],w,n),f in b&&(n.e=b[f]),n.xs0=0,n.plugin=s,r._overwriteProps.push(n.n));w="function"==typeof y.transformOrigin?y.transformOrigin(O,P):y.transformOrigin,T.svg&&(w||y.svgOrigin)&&(c=T.xOffset,p=T.yOffset,Ie(e,B(w),a,y.svgOrigin,y.smoothOrigin),n=Oe(T,"xOrigin",(_?T:a).xOrigin,a.xOrigin,n,x),n=Oe(T,"yOrigin",(_?T:a).yOrigin,a.yOrigin,n,x),c===T.xOffset&&p===T.yOffset||(n=Oe(T,"xOffset",_?c:T.xOffset,T.xOffset,n,x),n=Oe(T,"yOffset",_?p:T.yOffset,T.yOffset,n,x)),w="0px 0px"),(w||Y&&d&&T.zOrigin)&&(H?(u=!0,f=Xe,w=w||(w=(z(e,f,k,!1,"50% 50%")+"").split(" "))[0]+" "+w[1]+" "+T.zOrigin+"px",w+="",(n=new j(g,f,0,0,n,-1,x)).b=g[f],n.plugin=s,Y?(l=T.zOrigin,w=w.split(" "),T.zOrigin=(2<w.length?parseFloat(w[2]):l)||0,n.xs0=n.e=w[0]+" "+(w[1]||"50%")+" 0px",(n=new j(T,"zOrigin",0,0,n,-1,n.n)).b=l,n.xs0=n.e=T.zOrigin):n.xs0=n.e=w):B(w+"",T)),u&&(r._transformType=T.svg&&X||!d&&3!==this._transformType?2:3),m&&(o.scale=m)}return n},allowFunc:!0,prefix:!0}),s("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),s("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:Ae("inset(0% 0% 0% 0%)",!1,!0)}),s("borderRadius",{defaultValue:"0px",parser:function(e,t,i,r,n,s){t=this.format(t);for(var o,a,l,u,h,c,p,d,f,m,_=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],g=e.style,v=parseFloat(e.offsetWidth),y=parseFloat(e.offsetHeight),b=t.split(" "),x=0;x<_.length;x++)this.p.indexOf("border")&&(_[x]=T(_[x])),-1!==(l=a=z(e,_[x],k,!1,"0px")).indexOf(" ")&&(l=(a=l.split(" "))[0],a=a[1]),u=o=b[x],f=parseFloat(l),m=l.substr((f+"").length),(c=""===(c=(p="="===u.charAt(1))?(h=parseInt(u.charAt(0)+"1",10),u=u.substr(2),h*=parseFloat(u),u.substr((h+"").length-(h<0?1:0))||""):(h=parseFloat(u),u.substr((h+"").length)))?W[i]||m:c)!==m&&(d=w(e,"borderLeft",f,m),f=w(e,"borderTop",f,m),a="%"===c?(l=d/v*100+"%",f/y*100+"%"):"em"===c?(l=d/(m=w(e,"borderLeft",1,"em"))+"em",f/m+"em"):(l=d+"px",f+"px"),p&&(u=parseFloat(l)+h+c,o=parseFloat(a)+h+c)),n=Re(g,_[x],l+" "+a,u+" "+o,!1,"0px",n);return n},prefix:!0,formatter:Ae("0px 0px 0px 0px",!1,!0)}),s("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,i,r,n,s){return Re(e.style,i,this.format(z(e,i,k,!1,"0px 0px")),this.format(t),!1,"0px",n)},prefix:!0,formatter:Ae("0px 0px",!1,!0)}),s("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,i,r,n,s){var o,a,l,u,h,c="background-position",p=k||f(e),d=this.format((p?x?p.getPropertyValue(c+"-x")+" "+p.getPropertyValue(c+"-y"):p.getPropertyValue(c):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),p=this.format(t);if(-1!==d.indexOf("%")!=(-1!==p.indexOf("%"))&&p.split(",").length<2&&(c=z(e,"backgroundImage").replace(he,""))&&"none"!==c){for(o=d.split(" "),a=p.split(" "),ge.setAttribute("src",c),l=2;-1<--l;)(u=-1!==(d=o[l]).indexOf("%"))!=(-1!==a[l].indexOf("%"))&&(h=0===l?e.offsetWidth-ge.width:e.offsetHeight-ge.height,o[l]=u?parseFloat(d)/100*h+"px":parseFloat(d)/h*100+"%");d=o.join(" ")}return this.parseComplex(e.style,d,p,n,s)},formatter:B}),s("backgroundSize",{defaultValue:"0 0",formatter:function(e){return"co"===(e+="").substr(0,2)?e:B(-1===e.indexOf(" ")?e+" "+e:e)}}),s("perspective",{defaultValue:"0px",prefix:!0}),s("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),s("transformStyle",{prefix:!0}),s("backfaceVisibility",{prefix:!0}),s("userSelect",{prefix:!0}),s("margin",{parser:ke("marginTop,marginRight,marginBottom,marginLeft")}),s("padding",{parser:ke("paddingTop,paddingRight,paddingBottom,paddingLeft")}),s("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,i,r,n,s){var o,a;return t=x<9?(o=e.currentStyle,a=x<8?" ":",",o="rect("+o.clipTop+a+o.clipRight+a+o.clipBottom+a+o.clipLeft+")",this.format(t).split(",").join(a)):(o=this.format(z(e,this.p,k,!1,this.dflt)),this.format(t)),this.parseComplex(e.style,o,t,n,s)}}),s("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),s("autoRound,strictUnits",{parser:function(e,t,i,r,n){return n}}),s("border",{defaultValue:"0px solid #000",parser:function(e,t,i,r,n,s){var o=z(e,"borderTopWidth",k,!1,"0px"),t=this.format(t).split(" "),a=t[0].replace(re,"");return"px"!==a&&(o=parseFloat(o)/w(e,"borderTopWidth",1,a)+a),this.parseComplex(e.style,this.format(o+" "+z(e,"borderTopStyle",k,!1,"solid")+" "+z(e,"borderTopColor",k,!1,"#000")),t.join(" "),n,s)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(U)||["#000"])[0]}}),s("borderWidth",{parser:ke("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),s("float,cssFloat,styleFloat",{parser:function(e,t,i,r,n,s){var e=e.style,o="cssFloat"in e?"cssFloat":"styleFloat";return new j(e,o,0,0,n,-1,i,!1,0,e[o],t)}}),s("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,i,r,n,s){var o=parseFloat(z(e,"opacity",k,!1,"1")),a=e.style,l="autoAlpha"===i;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+o),l&&1===o&&"hidden"===z(e,"visibility",k)&&0!==t&&(o=0),N?n=new j(a,"opacity",o,t-o,n):((n=new j(a,"opacity",100*o,100*(t-o),n)).xn1=l?1:0,a.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=e,n.plugin=s,n.setRatio=Fe),l&&((n=new j(a,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}}),function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(le,"-$1").toLowerCase())):e.removeAttribute(t))});s("className",{parser:function(e,t,i,r,n,s,o){var a,l,u,h=e.getAttribute("class")||"",c=e.style.cssText;if((n=r._classNamePT=new j(e,i,0,0,n,2)).setRatio=Ne,n.pr=-11,d=!0,n.b=h,i=p(e,k),a=e._gsClassPT){for(l={},u=a.data;u;)l[u.p]=1,u=u._next;a.setRatio(1)}return(e._gsClassPT=n).e="="!==t.charAt(1)?t:h.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",n.e),a=g(e,i,p(e),o,l),e.setAttribute("class",h),n.data=a.firstMPT,e.style.cssText!==c&&(e.style.cssText=c),n=n.xfirst=r.parse(e,a.difs,n,s)}});for(s("clearProps",{parser:function(e,t,i,r,n){return(n=new j(e,i,0,0,n,2)).setRatio=ze,n.e=t,n.pr=-10,n.data=r._tween,d=!0,n}}),e="bezier,throwProps,physicsProps,physics2D".split(","),G=e.length;G--;)Ue(e[G]);(e=C.prototype)._firstPT=e._lastParsedTransform=e._transform=null,e._onInitTween=function(e,t,i,r){if(!e.nodeType)return!1;this._target=P=e,this._tween=i,this._vars=t,O=r,V=t.autoRound,d=!1,W=t.suffixMap||C.suffixMap,k=f(e),y=this._overwriteProps;var n,s,o,a,l,u,r=e.style;if(!b||""!==r.zIndex||"auto"!==(u=z(e,"zIndex",k))&&""!==u||this._addLazySet(r,"zIndex",0),"string"==typeof t&&(o=r.cssText,u=p(e,k),r.cssText=o+";"+t,u=g(e,u,p(e)).difs,!N&&se.test(t)&&(u.opacity=parseFloat(RegExp.$1)),t=u,r.cssText=o),t.className?this._firstPT=n=m.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=n=this.parse(e,t,null),this._transformType){for(u=3===this._transformType,H?q&&(b=!0,""!==r.zIndex||"auto"!==(t=z(e,"zIndex",k))&&""!==t||this._addLazySet(r,"zIndex",0),Z&&this._addLazySet(r,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):r.zoom=1,s=n;s&&s._next;)s=s._next;t=new j(e,"transform",0,0,null,2),this._linkCSSP(t,null,s),t.setRatio=H?Je:Le,t.data=this._transform||Ze(e,k,!0),t.tween=i,t.pr=-1,y.pop()}if(d){for(;n;){for(l=n._next,s=o;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:a)?n._prev._next=n:o=n,(n._next=s)?s._prev=n:a=n,n=l}this._firstPT=o}return!0},e.parse=function(e,t,i,r){var n,s,o,a,l,u,h,c,p=e.style;for(n in t){if(l=t[n],a=m[n],"function"!=typeof l||a&&a.allowFunc||(l=l(O,P)),a)i=a.parse(e,l,n,this,i,r,t);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,e.style,"setProperty",f(e).getPropertyValue(n)+"",l+"",n,!1,n);continue}a=z(e,n,k)+"",h="string"==typeof l,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||h&&ae.test(l)?(h||(l=(3<(l=Se(l)).length?"rgba(":"rgb(")+l.join(",")+")"),i=Re(p,n,a,l,!0,"transparent",i,0,r)):h&&fe.test(l)?i=Re(p,n,a,l,!0,null,i,0,r):(u=(s=parseFloat(a))||0===s?a.substr((s+"").length):"",""!==a&&"auto"!==a||(u="width"===n||"height"===n?(s=function(e,t,i){if("svg"===(e.nodeName+"").toLowerCase())return(i||f(e))[t]||0;if(e.getCTM&&qe(e))return e.getBBox()[t]||0;var r=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),n=Te[t],s=n.length;for(i=i||f(e);-1<--s;)r=(r-=parseFloat(z(e,"padding"+n[s],i,!0))||0)-(parseFloat(z(e,"border"+n[s]+"Width",i,!0))||0);return r}(e,n,k),"px"):"left"===n||"top"===n?(s=xe(e,n,k),"px"):(s="opacity"!==n?0:1,"")),""===(h=(c=h&&"="===l.charAt(1))?(o=parseInt(l.charAt(0)+"1",10),l=l.substr(2),o*=parseFloat(l),l.replace(re,"")):(o=parseFloat(l),h?l.replace(re,""):""))&&(h=n in W?W[n]:u),l=o||0===o?(c?o+s:o)+h:t[n],u===h||""===h&&"lineHeight"!==n||(o||0===o)&&s&&(s=w(e,n,s,u),"%"===h?(s/=w(e,n,100,"%")/100,!0!==t.strictUnits&&(a=s+"%")):"em"===h||"rem"===h||"vw"===h||"vh"===h?s/=w(e,n,1,h):"px"!==h&&(o=w(e,n,o,h),h="px"),c&&(o||0===o)&&(l=o+s+h)),c&&(o+=s),!s&&0!==s||!o&&0!==o?void 0!==p[n]&&(l||l+""!="NaN"&&null!=l)?(i=new j(p,n,o||s||0,0,i,-1,n,!1,0,a,l)).xs0="none"!==l||"display"!==n&&-1===n.indexOf("Style")?l:a:_("invalid "+n+" tween value: "+t[n]):(i=new j(p,n,s,o-s,i,0,n,!1!==V&&("px"===h||"zIndex"===n),0,a,l)).xs0=h)}r&&i&&!i.plugin&&(i.plugin=r)}return i},e.setRatio=function(e){var t,i,r,n=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(t=n.c*e+n.s,n.r?t=n.r(t):t<1e-6&&-1e-6<t&&(t=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+t+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(e);else n.t[n.p]=t+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(e),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(t=n.r(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+t+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=t+n.xs0;else n.t[n.p]=n.e;else n.setRatio(e);n=n._next}},e._enableTransforms=function(e){this._transform=this._transform||Ze(this._target,k,!0),this._transformType=this._transform.svg&&X||!e&&3!==this._transformType?2:3};function $e(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}function et(e,t,i){var r,n,s,o;if(e.slice)for(n=e.length;-1<--n;)et(e[n],t,i);else for(n=(r=e.childNodes).length;-1<--n;)o=(s=r[n]).type,s.style&&(t.push(p(s)),i&&i.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||et(s,t,i)}e._addLazySet=function(e,t,i){e=this._firstPT=new j(e,t,0,0,this._firstPT,2);e.e=i,e.setRatio=$e,e.data=this},e._linkCSSP=function(e,t,i,r){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,r=!0),i?i._next=e:r||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=i),e},e._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&(t.r=e[t.p]),t=t._next},e._kill=function(e){var t,i,r,n=e;if(e.autoAlpha||e.alpha){for(i in n={},e)n[i]=e[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(e.className&&(t=this._classNamePT)&&((r=t.xfirst)&&r._prev?this._linkCSSP(r._prev,t._next,r._prev._prev):r===this._firstPT&&(this._firstPT=t._next),t._next&&this._linkCSSP(t._next,t._next._next,r._prev),this._classNamePT=null),t=this._firstPT;t;)t.plugin&&t.plugin!==i&&t.plugin._kill&&(t.plugin._kill(e),i=t.plugin),t=t._next;return o.prototype._kill.call(this,n)};return C.cascadeTo=function(e,t,i){var r,n,s,o,a=R.to(e,t,i),l=[a],u=[],h=[],c=[],p=R._internals.reservedProps;for(e=a._targets||a.target,et(e,u,c),a.render(t,!0,!0),et(e,h),a.render(0,!0,!0),a._enabled(!0),r=c.length;-1<--r;)if((n=g(c[r],u[r],h[r])).firstMPT){for(s in n=n.difs,i)p[s]&&(n[s]=i[s]);for(s in o={},n)o[s]=u[r][s];l.push(R.fromTo(c[r],t,o,n))}return l},o.activate([C]),C},!0),(e=(e=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(e,t,i){return this._tween=i,!0}})).prototype)._onInitAllProps=function(){var e,t,i,r,n=this._tween,s=n.vars.roundProps,o={},a=n._propLookup.roundProps;if("object"!=typeof s||s.push)for(i=(s="string"==typeof s?s.split(","):s).length;-1<--i;)o[s[i]]=Math.round;else for(r in s)o[r]=function(t){var i=t<1?Math.pow(10,(t+"").length-2):1;return function(e){return(Math.round(e/t)*t*i|0)/i}}(s[r]);for(r in o)for(e=n._firstPT;e;){if(t=e._next,e.pg)e.t._mod(o);else if(e.n===r)if(2===e.f&&e.t)for(var l=e.t._firstPT,u=o[r];l;)l.f||l.blob||(l.m=u||Math.round),l=l._next;else this._add(e.t,r,e.s,e.c,o[r]),t&&(t._prev=e._prev),e._prev?e._prev._next=t:n._firstPT===e&&(n._firstPT=t),e._next=e._prev=null,n._propLookup[r]=a;e=t}return!1},e._add=function(e,t,i,r,n){this._addTween(e,t,i,i+r,t,n||Math.round),this._overwriteProps.push(t)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(e,t,i,r){var n,s;if("function"!=typeof e.setAttribute)return!1;for(n in t)"function"==typeof(s=t[n])&&(s=s(r,e)),this._addTween(e,"setAttribute",e.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(e,t,i,r){"object"!=typeof t&&(t={rotation:t}),this.finals={};var n,s,o,a,l,u=!0===t.useRadians?2*Math.PI:360;for(n in t)"useRadians"!==n&&(s=(l=((a="function"==typeof(a=t[n])?a(r,e):a)+"").split("_"))[0],o=parseFloat("function"!=typeof e[n]?e[n]:e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]()),a=(a=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?o+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-o,l.length&&(-1!==(s=l.join("_")).indexOf("short")&&(a%=u)!==a%(u/2)&&(a=a<0?a+u:a-u),-1!==s.indexOf("_cw")&&a<0?a=(a+9999999999*u)%u-(a/u|0)*u:-1!==s.indexOf("ccw")&&0<a&&(a=(a-9999999999*u)%u-(a/u|0)*u)),(1e-6<a||a<-1e-6)&&(this._addTween(e,n,o,o+a,n),this._overwriteProps.push(n)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(_){function e(e,t){var i=(e=h("easing."+e,function(){},!0)).prototype=new _;return i.constructor=e,i.getRatio=t,e}function t(e,t,i,r,n){return t=h("easing."+e,{easeOut:new t,easeIn:new i,easeInOut:new r},!0),c(t,e),t}function g(e,t,i){this.t=e,this.v=t,i&&(((this.next=i).prev=this).c=i.v-t,this.gap=i.t-e)}function i(e,t){var i=h("easing."+e,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0);return(e=i.prototype=new _).constructor=i,e.getRatio=t,e.config=function(e){return new i(e)},i}var r,n,s,o=_gsScope.GreenSockGlobals||_gsScope,a=o.com.greensock,l=2*Math.PI,u=Math.PI/2,h=a._class,c=_.register||function(){},a=t("Back",i("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),i("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),i("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),p=h("easing.SlowMo",function(e,t,i){t=t||0===t?t:.7,null==e?e=.7:1<e&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),d=p.prototype=new _;return d.constructor=p,d.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1===e?0:1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},p.ease=new p(.7,.7),d.config=p.config=function(e,t,i){return new p(e,t,i)},(d=(r=h("easing.SteppedEase",function(e,t){this._p1=1/(e=e||1),this._p2=e+(t?0:1),this._p3=t?1:0},!0)).prototype=new _).constructor=r,d.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},d.config=r.config=function(e,t){return new r(e,t)},(d=(n=h("easing.ExpoScaleEase",function(e,t,i){this._p1=Math.log(t/e),this._p2=t-e,this._p3=e,this._ease=i},!0)).prototype=new _).constructor=n,d.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},d.config=n.config=function(e,t,i){return new n(e,t,i)},(d=(s=h("easing.RoughEase",function(e){for(var t,i,r,n,s,o,a=(e=e||{}).taper||"none",l=[],u=0,h=0|(e.points||20),c=h,p=!1!==e.randomize,d=!0===e.clamp,f=e.template instanceof _?e.template:null,m="number"==typeof e.strength?.4*e.strength:.4;-1<--c;)t=p?Math.random():1/h*c,i=f?f.getRatio(t):t,r="none"===a?m:"out"===a?(n=1-t)*n*m:"in"===a?t*t*m:t<.5?(n=2*t)*n*.5*m:(n=2*(1-t))*n*.5*m,p?i+=Math.random()*r-.5*r:c%2?i+=.5*r:i-=.5*r,d&&(1<i?i=1:i<0&&(i=0)),l[u++]={x:t,y:i};for(l.sort(function(e,t){return e.x-t.x}),o=new g(1,1,null),c=h;-1<--c;)o=new g((s=l[c]).x,s.y,o);this._prev=new g(0,0,0!==o.t?o:o.next)},!0)).prototype=new _).constructor=s,d.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return(this._prev=t).v+(e-t.t)/t.gap*t.c},d.config=function(e){return new s(e)},s.ease=new s,t("Bounce",e("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),e("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),e("BounceInOut",function(e){var t=e<.5;return(e=t?1-2*e:2*e-1)<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),t("Circ",e("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),e("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),e("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),t("Elastic",(d=function(e,t,i){var r=h("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||i)/(e<1?e:1),this._p3=this._p2/l*(Math.asin(1/this._p1)||0),this._p2=l/this._p2},!0),e=r.prototype=new _;return e.constructor=r,e.getRatio=t,e.config=function(e,t){return new r(e,t)},r})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),d("ElasticIn",function(e){return-(this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2))},.3),d("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--e)*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),t("Expo",e("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),e("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),e("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),t("Sine",e("SineOut",function(e){return Math.sin(e*u)}),e("SineIn",function(e){return 1-Math.cos(e*u)}),e("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),h("easing.EaseLookup",{find:function(e){return _.map[e]}},!0),c(o.SlowMo,"SlowMo","ease,"),c(s,"RoughEase","ease,"),c(r,"SteppedEase","ease,"),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),!function(m,p){"use strict";var d={},f=m.document,_=m.GreenSockGlobals=m.GreenSockGlobals||m,e=_[p];if(e)"undefined"!=typeof module&&module.exports&&(module.exports=e);else{var g,t,F,N=function(e){for(var t=e.split("."),i=_,r=0;r<t.length;r++)i[t[r]]=i=i[t[r]]||{};return i},c=N("com.greensock"),v=1e-8,z=function(e){for(var t=[],i=e.length,r=0;r!==i;t.push(e[r++]));return t},B=function(){},y=(t=Object.prototype.toString,F=t.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&t.call(e)===F)}),b={},U=function(a,l,u,h){this.sc=b[a]?b[a].sc:[],(b[a]=this).gsClass=null,this.func=u;var c=[];this.check=function(e){for(var t,i,r,n,s=l.length,o=s;-1<--s;)(t=b[l[s]]||new U(l[s],[])).gsClass?(c[s]=t.gsClass,o--):e&&t.sc.push(this);if(0===o&&u){if(r=(i=("com.greensock."+a).split(".")).pop(),n=N(i.join("."))[r]=this.gsClass=u.apply(u,c),h)if(_[r]=d[r]=n,"undefined"!=typeof module&&module.exports)if(a===p)for(s in module.exports=d[p]=n,d)n[s]=d[s];else d[p]&&(d[p][r]=n);else"function"==typeof define&&define.amd&&define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+a.split(".").pop(),[],function(){return n});for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},r=m._gsDefine=function(e,t,i,r){return new U(e,t,i,r)},x=c._class=function(e,t,i){return t=t||function(){},r(e,[],function(){return t},i),t},j=(r.globals=_,[0,0,1,1]),T=x("easing.Ease",function(e,t,i,r){this._func=e,this._type=i||0,this._power=r||0,this._params=t?j.concat(t):j},!0),w=T.map={},i=T.register=function(e,t,i,r){for(var n,s,o,a,l=t.split(","),u=l.length,h=(i||"easeIn,easeOut,easeInOut").split(",");-1<--u;)for(s=l[u],n=r?x("easing."+s,null,!0):c.easing[s]||{},o=h.length;-1<--o;)a=h[o],w[s+"."+a]=w[a+s]=n[a]=e.getRatio?e:e[a]||new e},n=T.prototype;for(n._calcEnd=!1,n.getRatio=function(e){var t,i,r;return this._func?(this._params[0]=e,this._func.apply(null,this._params)):(r=1===(t=this._type)?1-e:2===t?e:e<.5?2*e:2*(1-e),1===(i=this._power)?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===t?1-r:2===t?r:e<.5?r/2:1-r/2)},o=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--o;)n=s[o]+",Power"+o,i(new T(null,null,1,o),n,"easeOut",!0),i(new T(null,null,2,o),n,"easeIn"+(0===o?",easeNone":"")),i(new T(null,null,3,o),n,"easeInOut");w.linear=c.easing.Linear.easeIn,w.swing=c.easing.Quad.easeInOut;for(var s,G=x("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this}),E=((n=G.prototype).addEventListener=function(e,t,i,r,n){n=n||0;var s,o,a=this._listeners[e],l=0;for(this!==P||g||P.wake(),null==a&&(this._listeners[e]=a=[]),o=a.length;-1<--o;)(s=a[o]).c===t&&s.s===i?a.splice(o,1):0===l&&s.pr<n&&(l=o+1);a.splice(l,0,{c:t,s:i,up:r,pr:n})},n.removeEventListener=function(e,t){var i,r=this._listeners[e];if(r)for(i=r.length;-1<--i;)if(r[i].c===t)return void r.splice(i,1)},n.dispatchEvent=function(e){var t,i,r,n=this._listeners[e];if(n)for(1<(t=n.length)&&(n=n.slice(0)),i=this._eventTarget;-1<--t;)(r=n[t])&&(r.up?r.c.call(r.s||i,{type:e,target:i}):r.c.call(r.s||i))},m.requestAnimationFrame),S=m.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},k=A(),o=(s=["ms","moz","webkit","o"]).length;-1<--o&&!E;)E=m[s[o]+"RequestAnimationFrame"],S=m[s[o]+"CancelAnimationFrame"]||m[s[o]+"CancelRequestAnimationFrame"];x("Ticker",function(e,t){var r,n,s,o,a,l=this,u=A(),i=!(!1===t||!E)&&"auto",h=500,c=33,p="tick",d=function(e){var t,i=A()-k;h<i&&(u+=i-c),k+=i,l.time=(k-u)/1e3,i=l.time-a,(!r||0<i||!0===e)&&(l.frame++,a+=i+(o<=i?.004:o-i),t=!0),!0!==e&&(s=n(d)),t&&l.dispatchEvent(p)};G.call(l),l.time=l.frame=0,l.tick=function(){d(!0)},l.lagSmoothing=function(e,t){if(!arguments.length)return h<1e8;h=e||1e8,c=Math.min(t,h,0)},l.sleep=function(){null!=s&&((i&&S?S:clearTimeout)(s),n=B,s=null,l===P&&(g=!1))},l.wake=function(e){null!==s?l.sleep():e?u+=-k+(k=A()):10<l.frame&&(k=A()-h+5),n=0===r?B:i&&E?E:function(e){return setTimeout(e,1e3*(a-l.time)+1|0)},l===P&&(g=!0),d(2)},l.fps=function(e){if(!arguments.length)return r;o=1/((r=e)||60),a=this.time+o,l.wake()},l.useRAF=function(e){if(!arguments.length)return i;l.sleep(),i=e,l.fps(r)},l.fps(e),setTimeout(function(){"auto"===i&&l.frame<5&&"hidden"!==(f||{}).visibilityState&&l.useRAF(!1)},1500)}),(n=c.Ticker.prototype=new c.events.EventDispatcher).constructor=c.Ticker;var a=x("core.Animation",function(e,t){this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!!t.immediateRender,this.data=t.data,this._reversed=!!t.reversed,h&&(g||P.wake(),(e=this.vars.useFrames?u:h).add(this,e._time),this.vars.paused&&this.paused(!0))}),P=a.ticker=new c.Ticker,X=((n=a.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1,function(){g&&2e3<A()-k&&("hidden"!==(f||{}).visibilityState||!P.lagSmoothing())&&P.wake();var e=setTimeout(X,2e3);e.unref&&e.unref()}),e=(X(),n.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},n.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},n.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},n.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},n.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},n.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},n.render=function(e,t,i){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},n.isActive=function(){var e=this._timeline,t=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(e=e.rawTime(!0))>=t&&e<t+this.totalDuration()/this._timeScale-v},n._enabled=function(e,t){return g||P.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(e,t){return this._enabled(!1,!1)},n.kill=function(e,t){return this._kill(e,t),this},n._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},n._swapSelfInParams=function(e){for(var t=e.length,i=e.concat();-1<--t;)"{self}"===e[t]&&(i[t]=this);return i},n._callback=function(e){var t=this.vars,i=t[e],r=t[e+"Params"],n=t[e+"Scope"]||t.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},n.eventCallback=function(e,t,i,r){if("on"===(e||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[e];null==t?delete n[e]:(n[e]=t,n[e+"Params"]=y(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[e+"Scope"]=r),"onUpdate"===e&&(this._onUpdate=t)}return this},n.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},n.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},n.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},n.totalTime=function(e,t,i){if(g||P.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!i&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(r<e&&!i&&(e=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-e:e)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(C.length&&I(),this.render(e,t,!1),C.length&&I())}return this},n.progress=n.totalProgress=function(e,t){var i=this.duration();return arguments.length?this.totalTime(i*e,t):i?this._time/i:this.ratio},n.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},n.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,i;for(e=e||v,this._timeline&&this._timeline.smoothChildTiming&&(i=(t=this._pauseTime)||0===t?t:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/e),this._timeScale=e,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},n.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(e){var t,i,r;return arguments.length?(t=this._timeline,e!=this._paused&&t&&(g||e||P.wake(),r=(i=t.rawTime())-this._pauseTime,!e&&t.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=e?i:null,this._paused=e,this._active=this.isActive(),!e&&0!=r&&this._initted&&this.duration()&&(i=t.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,this.render(i,i===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this):this._paused},x("core.SimpleTimeline",function(e){a.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0})),O=((n=e.prototype=new a).constructor=e,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(e,t,i,r){var n,s;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=this.rawTime()-(e._timeline.rawTime()-e._pauseTime)),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),n=this._last,this._sortChildren)for(s=e._startTime;n&&n._startTime>s;)n=n._prev;return n?(e._next=n._next,n._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=n,this._recent=e,this._timeline&&this._uncache(!0),this},n._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(e,t,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;n;)r=n._next,(n._active||e>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,i):n.render((e-n._startTime)*n._timeScale,t,i)),n=r},n.rawTime=function(){return g||P.wake(),this._totalTime},x("TweenLite",function(e,t,i){if(a.call(this,t,i),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"==typeof e&&O.selector(e)||e;var r,n,s,i=e.jquery||e.length&&e!==m&&e[0]&&(e[0]===m||e[0].nodeType&&e[0].style&&!e.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?ee[O.defaultOverwrite]:"number"==typeof o?o>>0:ee[o],(i||e instanceof Array||e.push&&y(e))&&"number"!=typeof e[0])for(this._targets=s=z(e),this._propLookup=[],this._siblings=[],r=0;r<s.length;r++)(n=s[r])?"string"==typeof n?"string"==typeof(n=s[r--]=O.selector(n))&&s.splice(r+1,1):n.length&&n!==m&&n[0]&&(n[0]===m||n[0].nodeType&&n[0].style&&!n.nodeType)?(s.splice(r--,1),this._targets=s=s.concat(z(n))):(this._siblings[r]=D(n,this,!1),1===o&&1<this._siblings[r].length&&re(n,this,null,1,this._siblings[r])):s.splice(r--,1);else this._propLookup={},this._siblings=D(e,this,!1),1===o&&1<this._siblings.length&&re(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-v,this.render(Math.min(0,-this._delay)))},!0)),R=function(e){return e&&e.length&&e!==m&&e[0]&&(e[0]===m||e[0].nodeType&&e[0].style&&!e.nodeType)},C=((n=O.prototype=new a).constructor=O,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,O.version="2.1.3",O.defaultEase=n._ease=new T(null,null,1,1),O.defaultOverwrite="auto",O.ticker=P,O.autoSleep=120,O.lagSmoothing=function(e,t){P.lagSmoothing(e,t)},O.selector=m.$||m.jQuery||function(e){var t=m.$||m.jQuery;return t?(O.selector=t)(e):(f=f||m.document)?f.querySelectorAll?f.querySelectorAll(e):f.getElementById("#"===e.charAt(0)?e.substr(1):e):e},[]),H={},Y=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,W=/[\+-]=-?[\.\d]/,V=function(e){for(var t,i=this._firstPT;i;)t=i.blob?1===e&&null!=this.end?this.end:e?this.join(""):this.start:i.c*e+i.s,i.m?t=i.m.call(this._tween,t,this._target||i.t,this._tween):t<1e-6&&-1e-6<t&&!i.blob&&(t=0),i.f?i.fp?i.t[i.p](i.fp,t):i.t[i.p](t):i.t[i.p]=t,i=i._next},q=function(e){return(1e3*e|0)/1e3+""},K=function(e,t,i,r){var n,s,o,a,l,u,h=[],c=0,p="",d=0;for(h.start=e,h.end=t,e=h[0]=e+"",t=h[1]=t+"",i&&(i(h),e=h[0],t=h[1]),h.length=0,n=e.match(Y)||[],s=t.match(Y)||[],r&&(r._next=null,r.blob=1,h._firstPT=h._applyPT=r),a=s.length,o=0;o<a;o++)u=s[o],p+=(l=t.substr(c,t.indexOf(u,c)-c))||!o?l:",",c+=l.length,d?d=(d+1)%5:"rgba("===l.substr(-5)&&(d=1),u===n[o]||n.length<=o?p+=u:(p&&(h.push(p),p=""),l=parseFloat(n[o]),h.push(l),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:l,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-l)||0,f:0,m:d&&d<4?Math.round:q}),c+=u.length;return(p+=t.substr(c))&&h.push(p),h.setRatio=V,W.test(t)&&(h.end=null),h},Z=function(e,t,i,r,n,s,o,a,l){"function"==typeof r&&(r=r(l||0,e));var l=typeof e[t],u="function"!=l?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),i="get"!==i?i:u?o?e[u](o):e[u]():e[t],u="string"==typeof r&&"="===r.charAt(1),e={t:e,p:t,s:i,f:"function"==l,pg:0,n:n||t,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:u?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-i||0};if("number"==typeof i&&("number"==typeof r||u)||(o||isNaN(i)||!u&&isNaN(r)||"boolean"==typeof i||"boolean"==typeof r?(e.fp=o,e={t:K(i,u?parseFloat(e.s)+e.c+(e.s+"").replace(/[0-9\-\.]/g,""):r,a||O.defaultStringFilter,e),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||t,pr:0,m:0}):(e.s=parseFloat(i),u||(e.c=parseFloat(r)-e.s||0))),e.c)return(e._next=this._firstPT)&&(e._next._prev=e),this._firstPT=e},J=O._internals={isArray:y,isSelector:R,lazyTweens:C,blobDif:K},M=O._plugins={},l=J.tweenLookup={},Q=0,$=J.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},ee={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},u=a._rootFramesTimeline=new e,h=a._rootTimeline=new e,te=30,I=J.lazyRender=function(){var e,t,i=C.length;for(H={},e=0;e<i;e++)(t=C[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);C.length=0},D=(h._startTime=P.time,u._startTime=P.frame,h._active=u._active=!0,setTimeout(I,1),a._updateRoot=O.render=function(){var e,t,i;if(C.length&&I(),h.render((P.time-h._startTime)*h._timeScale,!1,!1),u.render((P.frame-u._startTime)*u._timeScale,!1,!1),C.length&&I(),P.frame>=te){for(i in te=P.frame+(parseInt(O.autoSleep,10)||120),l){for(e=(t=l[i].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete l[i]}if((!(i=h._first)||i._paused)&&O.autoSleep&&!u._first&&1===P._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||P.sleep()}}},P.addEventListener("tick",a._updateRoot),function(e,t,i){var r,n,s=e._gsTweenID;if(l[s||(e._gsTweenID=s="t"+Q++)]||(l[s]={target:e,tweens:[]}),t&&((r=l[s].tweens)[n=r.length]=t,i))for(;-1<--n;)r[n]===t&&r.splice(n,1);return l[s].tweens}),ie=function(e,t,i,r){var n,s,o=e.vars.onOverwrite;return o&&(n=o(e,t,i,r)),(o=O.onOverwrite)&&(s=o(e,t,i,r)),!1!==n&&!1!==s},re=function(e,t,i,r,n){var s,o,a;if(1===r||4<=r){for(a=n.length,d=0;d<a;d++)if((o=n[d])!==t)o._gc||o._kill(null,e,t)&&(s=!0);else if(5===r)break}else{for(var l,u=t._startTime+v,h=[],c=0,p=0===t._duration,d=n.length;-1<--d;)(o=n[d])===t||o._gc||o._paused||(o._timeline!==t._timeline?(l=l||ne(t,0,p),0===ne(o,l,p)&&(h[c++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((p||!o._initted)&&u-o._startTime<=2e-8||(h[c++]=o)));for(d=c;-1<--d;)a=(o=h[d])._firstPT,2===r&&o._kill(i,e,t)&&(s=!0),(2!==r||!o._firstPT&&o._initted&&a)&&(2===r||ie(o,t))&&o._enabled(!1,!1)&&(s=!0)}return s},ne=function(e,t,i){for(var r=e._timeline,n=r._timeScale,s=e._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return t<(s/=n)?s-t:i&&s===t||!e._initted&&s-t<2e-8?v:(s+=e.totalDuration()/e._timeScale/n)>t+v?0:s-t-v},L=(n._init=function(){var e,t,i,r,n,s,o=this.vars,a=this._overwrittenProps,l=this._duration,u=!!o.immediateRender,h=o.ease,c=this._startAt;if(o.startAt){for(r in c&&(c.render(-1,!0),c.kill()),n={},o.startAt)n[r]=o.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=u&&!1!==o.lazy,n.startAt=n.delay=null,n.onUpdate=o.onUpdate,n.onUpdateParams=o.onUpdateParams,n.onUpdateScope=o.onUpdateScope||o.callbackScope||this,this._startAt=O.to(this.target||{},0,n),u)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(o.runBackwards&&0!==l)if(c)c.render(-1,!0),c.kill(),this._startAt=null;else{for(r in 0!==this._time&&(u=!1),i={},o)$[r]&&"autoCSS"!==r||(i[r]=o[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&!1!==o.lazy,i.immediateRender=u,this._startAt=O.to(this.target,0,i),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof T?h:"function"==typeof h?new T(h,o.easeParams):w[h]||O.defaultEase:O.defaultEase,o.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,e=0;e<s;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],a?a[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(t&&O._onPluginEvent("_onInitAllProps",this),!a||this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1),o.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=o.onUpdate,this._initted=!0},n._initProps=function(e,t,i,r,n){var s,o,a,l,u,h;if(null==e)return!1;if(H[e._gsTweenID]&&I(),!this.vars.css&&e.style&&e!==m&&e.nodeType&&M.css&&!1!==this.vars.autoCSS){var c,p=this.vars,d=e,f={};for(c in p)$[c]||c in d&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!M[c]||M[c]&&M[c]._autoCSS)||(f[c]=p[c],delete p[c]);p.css=f}for(s in this.vars)if(h=this.vars[s],$[s])h&&(h instanceof Array||h.push&&y(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[s]=h=this._swapSelfInParams(h,this));else if(M[s]&&(l=new M[s])._onInitTween(e,this.vars[s],this,n)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority,m:0},o=l._overwriteProps.length;-1<--o;)t[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else t[s]=Z.call(this,e,s,"get",h,s,0,null,this.vars.stringFilter,n);return r&&this._kill(r,e)?this._initProps(e,t,i,r,n):1<this._overwrite&&this._firstPT&&1<i.length&&re(e,this,t,this._overwrite,i)?(this._kill(t,e),this._initProps(e,t,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(H[e._gsTweenID]=!0),a)},n.render=function(e,t,i){var r,n,s,o,a,l,u,h=this,c=h._time,p=h._duration,d=h._rawPrevTime;if(p-v<=e&&0<=e?(h._totalTime=h._time=p,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1,h._reversed||(r=!0,n="onComplete",i=i||h._timeline.autoRemoveChildren),0!==p||!h._initted&&h.vars.lazy&&!i||(h._startTime===h._timeline._duration&&(e=0),(d<0||e<=0&&-v<=e||d===v&&"isPause"!==h.data)&&d!==e&&(i=!0,v<d&&(n="onReverseComplete")),h._rawPrevTime=o=!t||e||d===e?e:v)):e<v?(h._totalTime=h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==c||0===p&&0<d)&&(n="onReverseComplete",r=h._reversed),-v<e?e=0:e<0&&(h._active=!1,0!==p||!h._initted&&h.vars.lazy&&!i||(0<=d&&(d!==v||"isPause"!==h.data)&&(i=!0),h._rawPrevTime=o=!t||e||d===e?e:v)),(!h._initted||h._startAt&&h._startAt.progress())&&(i=!0)):(h._totalTime=h._time=e,h._easeType?(a=e/p,(1===(l=h._easeType)||3===l&&.5<=a)&&(a=1-a),3===l&&(a*=2),1===(u=h._easePower)?a*=a:2===u?a*=a*a:3===u?a*=a*a*a:4===u&&(a*=a*a*a*a),h.ratio=1===l?1-a:2===l?a:e/p<.5?a/2:1-a/2):h.ratio=h._ease.getRatio(e/p)),h._time!==c||i){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!i&&h._firstPT&&(!1!==h.vars.lazy&&h._duration||h.vars.lazy&&!h._duration))return h._time=h._totalTime=c,h._rawPrevTime=d,C.push(h),void(h._lazy=[e,t]);h._time&&!r?h.ratio=h._ease.getRatio(h._time/p):r&&h._ease._calcEnd&&(h.ratio=h._ease.getRatio(0===h._time?0:1))}for(!1!==h._lazy&&(h._lazy=!1),h._active||!h._paused&&h._time!==c&&0<=e&&(h._active=!0),0===c&&(h._startAt&&(0<=e?h._startAt.render(e,!0,i):n=n||"_dummyGS"),!h.vars.onStart||0===h._time&&0!==p||t||h._callback("onStart")),s=h._firstPT;s;)s.f?s.t[s.p](s.c*h.ratio+s.s):s.t[s.p]=s.c*h.ratio+s.s,s=s._next;h._onUpdate&&(e<0&&h._startAt&&-1e-4!==e&&h._startAt.render(e,!0,i),t||(h._time!==c||r||i)&&h._callback("onUpdate")),!n||h._gc&&!i||(e<0&&h._startAt&&!h._onUpdate&&-1e-4!==e&&h._startAt.render(e,!0,i),r&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[n]&&h._callback(n),0===p&&h._rawPrevTime===v&&o!==v&&(h._rawPrevTime=0))}},n._kill=function(e,t,i){if(null==(e="all"===e?null:e)&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:O.selector(t)||t;var r,n,s,o,a,l,u,h,c,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,d=this._firstPT;if((y(t)||R(t))&&"number"!=typeof t[0])for(r=t.length;-1<--r;)this._kill(e,t[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;-1<--r;)if(t===this._targets[r]){a=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=e?this._overwrittenProps[r]||{}:"all";break}}else{if(t!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(a){if(u=e||a,h=e!==n&&"all"!==n&&e!==a&&("object"!=typeof e||!e._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(s in u)a[s]&&(c=c||[]).push(s);if((c||!e)&&!ie(this,i,t,c))return!1}for(s in u)(o=a[s])&&(p&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(u)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),h&&(n[s]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return l},n.invalidate=function(){this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this);var e=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],a.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-v,this.render(e,!1,!1!==this.vars.lazy)),this},n._enabled=function(e,t){if(g||P.wake(),e&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=D(r[i],this,!0);else this._siblings=D(this.target,this,!0)}return a.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(e?"_onEnable":"_onDisable",this)},O.to=function(e,t,i){return new O(e,t,i)},O.from=function(e,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(e,t,i)},O.fromTo=function(e,t,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new O(e,t,r)},O.delayedCall=function(e,t,i,r,n){return new O(t,0,{delay:e,onComplete:t,onCompleteParams:i,callbackScope:r,onReverseComplete:t,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},O.set=function(e,t){return new O(e,0,t)},O.getTweensOf=function(e,t){if(null==e)return[];var i,r,n,s;if(e="string"==typeof e&&O.selector(e)||e,(y(e)||R(e))&&"number"!=typeof e[0]){for(i=e.length,r=[];-1<--i;)r=r.concat(O.getTweensOf(e[i],t));for(i=r.length;-1<--i;)for(s=r[i],n=i;-1<--n;)s===r[n]&&r.splice(i,1)}else if(e._gsTweenID)for(i=(r=D(e).concat()).length;-1<--i;)(r[i]._gc||t&&!r[i].isActive())&&r.splice(i,1);return r||[]},O.killTweensOf=O.killDelayedCallsTo=function(e,t,i){"object"==typeof t&&(i=t,t=!1);for(var r=O.getTweensOf(e,t),n=r.length;-1<--n;)r[n]._kill(i,e)},x("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=L.prototype},!0));if(n=L.prototype,L.version="1.19.0",L.API=2,n._firstPT=null,n._addTween=Z,n.setRatio=V,n._kill=function(e){var t,i=this._overwriteProps,r=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=i.length;-1<--t;)null!=e[i[t]]&&i.splice(t,1);for(;r;)null!=e[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},n._mod=n._roundProps=function(e){for(var t,i=this._firstPT;i;)(t=e[this._propName]||null!=i.n&&e[i.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===i.f?i.t._applyPT.m=t:i.m=t),i=i._next},O._onPluginEvent=function(e,t){var i,r,n,s,o,a=t._firstPT;if("_onInitAllProps"===e){for(;a;){for(o=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:s)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:s=a,a=o}a=t._firstPT=n}for(;a;)a.pg&&"function"==typeof a.t[e]&&a.t[e]()&&(i=!0),a=a._next;return i},L.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===L.API&&(M[(new e[t])._propName]=e[t]);return!0},r.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,i=e.propName,r=e.priority||0,n=e.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=x("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){L.call(this,i,r),this._overwriteProps=n||[]},!0===e.global),a=o.prototype=new L(i);for(t in(a.constructor=o).API=e.API,s)"function"==typeof e[t]&&(a[s[t]]=e[t]);return o.version=e.version,L.activate([o]),o},s=m._gsQueue){for(o=0;o<s.length;o++)s[o]();for(n in b)b[n].func||m.console.log("GSAP encountered missing dependency: "+n)}g=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),"undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window);(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,a,e){function i(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var k=1e-8,r=a._internals,P=r.lazyTweens,O=r.lazyRender,l=_gsScope._gsDefine.globals,u=new e(null,null,1,0),r=i.prototype=new t;return r.constructor=i,r.kill()._gc=!1,i.version="2.1.3",r.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},r.addCallback=function(e,t,i,r){return this.add(a.delayedCall(0,e,i,r),t)},r.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var i=this.getTweensOf(e,!1),r=i.length,n=this._parseTimeOrLabel(t);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},r.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},r.tweenTo=function(e,t){t=t||{};var i,r,n,s={ease:u,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=t.repeat&&l.TweenMax||a;for(r in t)s[r]=t[r];return s.time=this._parseTimeOrLabel(e),i=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,n=new o(this,i,s),s.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||i!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),t.onStart&&t.onStart.apply(t.onStartScope||t.callbackScope||n,t.onStartParams||[])},n},r.tweenFromTo=function(e,t,i){i=i||{},e=this._parseTimeOrLabel(e),i.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},i.immediateRender=!1!==i.immediateRender;t=this.tweenTo(t,i);return t.isFromTo=1,t.duration(Math.abs(t.vars.time-e)/this._timeScale||.001)},r.render=function(e,t,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,u,h,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._duration,m=c._totalTime,_=c._startTime,g=c._timeScale,v=c._rawPrevTime,y=c._paused,b=c._cycle;if(p!==c._time&&(e+=c._time-p),d-k<=e&&0<=e)c._locked||(c._totalTime=d,c._cycle=c._repeat),c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-k<=e||v<0||v===k)&&v!==e&&c._first&&(a=!0,k<v&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:k,c._yoyo&&1&c._cycle?c._time=e=0:e=(c._time=f)+1e-4;else if(e<k)if(c._locked||(c._totalTime=c._cycle=0),c._time=0,-k<e&&(e=0),(0!==p||0===f&&v!==k&&(0<v||e<0&&0<=v)&&!c._locked)&&(o="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=v&&c._first&&(a=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=f||!t||e||c._rawPrevTime===e?e:k,0===e&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;e=0,c._initted||(a=!0)}else 0===f&&v<0&&(a=!0),c._time=c._rawPrevTime=e,c._locked||(c._totalTime=e,0!==c._repeat&&(x=f+c._repeatDelay,c._cycle=c._totalTime/x>>0,c._cycle&&c._cycle===c._totalTime/x&&m<=e&&c._cycle--,c._time=c._totalTime-c._cycle*x,c._yoyo&&1&c._cycle&&(c._time=f-c._time),c._time>f?e=(c._time=f)+1e-4:c._time<0?c._time=e=0:e=c._time));if(c._hasPause&&!c._forcingPlayhead&&!t){if(p<(e=c._time)||c._repeat&&b!==c._cycle)for(r=c._first;r&&r._startTime<=e&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=e&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(h=c._startTime+(c._reversed?c._duration-l._startTime:l._startTime)/c._timeScale,l._startTime<f&&(c._time=c._rawPrevTime=e=l._startTime,c._totalTime=e+c._cycle*(c._totalDuration+c._repeatDelay)))}if(c._cycle!==b&&!c._locked){var x=c._yoyo&&0!=(1&b),T=x===(c._yoyo&&0!=(1&c._cycle)),w=c._totalTime,E=c._cycle,S=c._rawPrevTime,A=c._time;if(c._totalTime=b*f,c._cycle<b?x=!x:c._totalTime+=f,c._time=p,c._rawPrevTime=0===f?v-1e-4:v,c._cycle=b,c._locked=!0,c.render(p=x?0:f,t,0===f),t||c._gc||c.vars.onRepeat&&(c._cycle=E,c._locked=!1,c._callback("onRepeat")),p!==c._time)return;if(T&&(c._cycle=b,c._locked=!0,c.render(p=x?f+1e-4:-1e-4,!0,!1)),c._locked=!1,c._paused&&!y)return;c._time=A,c._totalTime=w,c._cycle=E,c._rawPrevTime=S}if(c._time!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._totalTime!==m&&0<e&&(c._active=!0),0!==m||!c.vars.onStart||0===c._totalTime&&c._totalDuration||t||c._callback("onStart"),p<=(u=c._time))for(r=c._first;r&&(s=r._next,u===c._time&&(!c._paused||y));)(r._active||r._startTime<=c._time&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=h),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)),r=s;else for(r=c._last;r&&(s=r._prev,u===c._time&&(!c._paused||y));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,i),l=l._prev;l=null,c.pause(),c._pauseTime=h}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)}r=s}!c._onUpdate||t||(P.length&&O(),c._callback("onUpdate")),!o||c._locked||c._gc||_!==c._startTime&&g===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(P.length&&O(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[o]&&c._callback(o))}else m!==c._totalTime&&c._onUpdate&&!t&&c._callback("onUpdate")},r.getActive=function(e,t,i){for(var r,n=[],s=this.getChildren(e||null==e,t||null==e,!!i),o=0,a=s.length,l=0;l<a;l++)(r=s[l]).isActive()&&(n[o++]=r);return n},r.getLabelAfter=function(e){e||0!==e&&(e=this._time);for(var t=this.getLabelsArray(),i=t.length,r=0;r<i;r++)if(t[r].time>e)return t[r].name;return null},r.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),i=t.length;-1<--i;)if(t[i].time<e)return t[i].name;return null},r.getLabelsArray=function(){var e,t=[],i=0;for(e in this._labels)t[i++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},r.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},r.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()||0},r.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},r.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<e&&(e=i),this.totalTime(this._yoyo&&1&r?i-e+n:this._repeat?e+n:e,t)},r.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},r.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},r.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+k)},i},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(c,p,f){function m(e){p.call(this,e);var t,i,r=this.vars;for(i in this._labels={},this.autoRemoveChildren=!!r.autoRemoveChildren,this.smoothChildTiming=!!r.smoothChildTiming,this._sortChildren=!0,this._onUpdate=r.onUpdate,r)t=r[i],d(t)&&-1!==t.join("").indexOf("{self}")&&(r[i]=this._swapSelfInParams(t));d(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)}function _(e){var t,i={};for(t in e)i[t]=e[t];return i}function g(e,t,i){var r,n,s=e.cycle;for(r in s)n=s[r],e[r]="function"==typeof n?n(i,t[i],t):n[i%n.length];delete e.cycle}function u(e,t,i,r){var n="immediateRender";return n in t||(t[n]=!(i&&!1===i[n]||r)),t}function v(e){var d,f,m,_,g,v,y,b;return"function"==typeof e?e:(f=(d="object"==typeof e?e:{each:e}).ease,m=d.from||0,_=d.base||0,g={},v=isNaN(m),y=d.axis,b={center:.5,end:1}[m]||0,function(e,t,i){var r,n,s,o,a,l,u,h,c=(i||d).length,p=g[c];if(!p){if(!(h="auto"===d.grid?0:(d.grid||[1/0])[0])){for(l=-1/0;l<(l=i[h++].getBoundingClientRect().left)&&h<c;);h--}for(p=g[c]=[],r=v?Math.min(h,c)*b-.5:m%h,n=v?c*b/h-.5:m/h|0,u=1/(l=0),a=0;a<c;a++)o=a%h-r,s=n-(a/h|0),p[a]=o=y?Math.abs("y"===y?s:o):Math.sqrt(o*o+s*s),l<o&&(l=o),o<u&&(u=o);p.max=l-u,p.min=u,p.v=c=d.amount||d.each*(c<h?c-1:y?"y"===y?c/h:h:Math.max(h,c/h))||0,p.b=c<0?_-c:_}return c=(p[e]-p.min)/p.max,p.b+(f?f.getRatio(c):c)*p.v})}var e=f._internals,t=m._internals={},y=e.isSelector,d=e.isArray,b=e.lazyTweens,x=e.lazyRender,o=_gsScope._gsDefine.globals,n=t.pauseCallback=function(){},e=m.prototype=new p;return m.version="2.1.3",m.distribute=v,e.constructor=m,e.kill()._gc=e._forcingPlayhead=e._hasPause=!1,e.to=function(e,t,i,r){var n=i.repeat&&o.TweenMax||f;return t?this.add(new n(e,t,i),r):this.set(e,i,r)},e.from=function(e,t,i,r){return this.add((i.repeat&&o.TweenMax||f).from(e,t,u(0,i)),r)},e.fromTo=function(e,t,i,r,n){var s=r.repeat&&o.TweenMax||f;return r=u(0,r,i),t?this.add(s.fromTo(e,t,i,r),n):this.set(e,r,n)},e.staggerTo=function(e,t,i,r,n,s,o,a){var l,u,h=new m({onComplete:s,onCompleteParams:o,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),c=v(i.stagger||r),p=i.startAt,d=i.cycle;for("string"==typeof e&&(e=f.selector(e)||e),y(e=e||[])&&(e=function(e){for(var t=[],i=e.length,r=0;r!==i;t.push(e[r++]));return t}(e)),u=0;u<e.length;u++)l=_(i),p&&(l.startAt=_(p),p.cycle&&g(l.startAt,e,u)),d&&(g(l,e,u),null!=l.duration&&(t=l.duration,delete l.duration)),h.to(e[u],t,l,c(u,e[u],e));return this.add(h,n)},e.staggerFrom=function(e,t,i,r,n,s,o,a){return i.runBackwards=!0,this.staggerTo(e,t,u(0,i),r,n,s,o,a)},e.staggerFromTo=function(e,t,i,r,n,s,o,a,l){return r.startAt=i,this.staggerTo(e,t,u(0,r,i),n,s,o,a,l)},e.call=function(e,t,i,r){return this.add(f.delayedCall(0,e,t,i),r)},e.set=function(e,t,i){return this.add(new f(e,0,u(0,t,null,!0)),i)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var i,r,n,s,o=new m(e),e=o._timeline;for(null==t&&(t=!0),e._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=e._time,n=e._first;n;)s=n._next,t&&n instanceof f&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),o.add(n,r)),n=s;return e.add(o,0),i&&o.totalDuration(),o},e.add=function(e,t,i,r){var n,s,o,a,l,u,h=this;if("number"!=typeof t&&(t=h._parseTimeOrLabel(t,0,!0,e)),!(e instanceof c)){if(e instanceof Array||e&&e.push&&d(e)){for(i=i||"normal",r=r||0,n=t,s=e.length,o=0;o<s;o++)d(a=e[o])&&(a=new m({tweens:a})),h.add(a,n),"string"!=typeof a&&"function"!=typeof a&&("sequence"===i?n=a._startTime+a.totalDuration()/a._timeScale:"start"===i&&(a._startTime-=a.delay())),n+=r;return h._uncache(!0)}if("string"==typeof e)return h.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=f.delayedCall(0,e)}if(p.prototype.add.call(h,e,t),(e._time||!e._duration&&e._initted)&&(n=(h.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),n)))-e._totalTime)&&e.render(n,!1,!1)),(h._gc||h._time===h._duration)&&!h._paused&&h._duration<h.duration())for(u=(l=h).rawTime()>e._startTime;l._timeline;)u&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return h},e.remove=function(e){var t;if(e instanceof c)return this._remove(e,!1),t=e._timeline=e.vars.useFrames?c._rootFramesTimeline:c._rootTimeline,e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this;if(e instanceof Array||e&&e.push&&d(e)){for(var i=e.length;-1<--i;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},e._remove=function(e,t){return p.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},e.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},e.insert=e.insertMultiple=function(e,t,i,r){return this.add(e,t||0,i,r)},e.appendMultiple=function(e,t,i,r){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),i,r)},e.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},e.addPause=function(e,t,i,r){i=f.delayedCall(0,n,i,r||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},e.removeLabel=function(e){return delete this._labels[e],this},e.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},e._parseTimeOrLabel=function(e,t,i,r){var n,s;if(r instanceof c&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&d(r)))for(s=r.length;-1<--s;)r[s]instanceof c&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,i&&"number"==typeof e&&null==this._labels[t]?e-n:0,i);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=n);else{if(-1===(s=e.indexOf("=")))return null==this._labels[e]?i?this._labels[e]=n+t:t:this._labels[e]+t;t=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=1<s?this._parseTimeOrLabel(e.substr(0,s-1),0,i):n}return Number(e)+t},e.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},e.stop=function(){return this.paused(!0)},e.gotoAndPlay=function(e,t){return this.play(e,t)},e.gotoAndStop=function(e,t){return this.pause(e,t)},e.render=function(e,t,i){this._gc&&this._enabled(!0,!1);var r,n,s,o,a,l,u,h,c=this,p=c._time,d=c._dirty?c.totalDuration():c._totalDuration,f=c._startTime,m=c._timeScale,_=c._paused;if(p!==c._time&&(e+=c._time-p),c._hasPause&&!c._forcingPlayhead&&!t){if(p<e)for(r=c._first;r&&r._startTime<=e&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=e&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(c._time=c._totalTime=e=l._startTime,h=c._startTime+(c._reversed?c._duration-e:e)/c._timeScale)}if(d-1e-8<=e&&0<=e)c._totalTime=c._time=d,c._reversed||c._hasPausedChild()||(n=!0,o="onComplete",a=!!c._timeline.autoRemoveChildren,0===c._duration&&(e<=0&&-1e-8<=e||c._rawPrevTime<0||1e-8===c._rawPrevTime)&&c._rawPrevTime!==e&&c._first&&(a=!0,1e-8<c._rawPrevTime&&(o="onReverseComplete"))),c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(-1e-8<e&&(e=0),((c._totalTime=c._time=0)!==p||0===c._duration&&1e-8!==c._rawPrevTime&&(0<c._rawPrevTime||e<0&&0<=c._rawPrevTime))&&(o="onReverseComplete",n=c._reversed),e<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(a=n=!0,o="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(a=!0),c._rawPrevTime=e;else{if(c._rawPrevTime=c._duration||!t||e||c._rawPrevTime===e?e:1e-8,0===e&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;e=0,c._initted||(a=!0)}else c._totalTime=c._time=c._rawPrevTime=e;if(c._time!==p&&c._first||i||a||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==p&&0<e&&(c._active=!0),0!==p||!c.vars.onStart||0===c._time&&c._duration||t||c._callback("onStart"),p<=(u=c._time))for(r=c._first;r&&(s=r._next,u===c._time&&(!c._paused||_));)(r._active||r._startTime<=u&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=h),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)),r=s;else for(r=c._last;r&&(s=r._prev,u===c._time&&(!c._paused||_));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,i),l=l._prev;l=null,c.pause(),c._pauseTime=h}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)}r=s}!c._onUpdate||t||(b.length&&x(),c._callback("onUpdate")),!o||c._gc||f!==c._startTime&&m===c._timeScale||(0===c._time||d>=c.totalDuration())&&(n&&(b.length&&x(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!t&&c.vars[o]&&c._callback(o))}},e._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},e.getChildren=function(e,t,i,r){r=r||-9999999999;for(var n=[],s=this._first,o=0;s;)s._startTime<r||(s instanceof f?!1!==t&&(n[o++]=s):(!1!==i&&(n[o++]=s),!1!==e&&(o=(n=n.concat(s.getChildren(!0,t,i))).length))),s=s._next;return n},e.getTweensOf=function(e,t){var i,r,n=this._gc,s=[],o=0;for(n&&this._enabled(!0,!0),r=(i=f.getTweensOf(e)).length;-1<--r;)(i[r].timeline===this||t&&this._contains(i[r]))&&(s[o++]=i[r]);return n&&this._enabled(!1,!0),s},e.recent=function(){return this._recent},e._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},e.shiftChildren=function(e,t,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=e),n=n._next;if(t)for(r in s)s[r]>=i&&(s[r]+=e);return this._uncache(!0)},e._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(e,t)&&(n=!0);return n},e.clear=function(e){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;-1<--i;)t[i]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},e.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return c.prototype.invalidate.call(this)},e._enabled=function(e,t){if(e===this._gc)for(var i=this._first;i;)i._enabled(e,!0),i=i._next;return p.prototype._enabled.call(this,e,t)},e.totalTime=function(e,t,i){this._forcingPlayhead=!0;var r=c.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},e.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},e.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,i,r=0,n=this,s=n._last,o=999999999999;s;)t=s._prev,s._dirty&&s.totalDuration(),s._startTime>o&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):o=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),o=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=t;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},e.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return c.prototype.paused.apply(this,arguments)},e.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===c._rootFramesTimeline},e.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),!function(){"use strict";function e(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineMax}"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}(),!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(x,F){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType}function m(e){return null!=e&&e===e.window}var e=[],T=x.document,N=Object.getPrototypeOf,a=e.slice,z=e.concat,B=e.push,U=e.indexOf,j={},G=j.toString,X=j.hasOwnProperty,H=X.toString,Y=H.call(Object),_={},W={type:!0,src:!0,noModule:!0};function V(e,t,i){var r,n=(t=t||T).createElement("script");if(n.text=e,i)for(r in W)i[r]&&(n[r]=i[r]);t.head.appendChild(n).parentNode.removeChild(n)}function f(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?j[G.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function K(e){var t=!!e&&"length"in e&&e.length,i=f(e);return!v(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=w.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return w.each(this,e)},map:function(i){return this.pushStack(w.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:B,sort:e.sort,splice:e.splice},w.extend=w.fn.extend=function(){var e,t,i,r,n,s=arguments[0]||{},o=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[o]||{},o++),"object"==typeof s||v(s)||(s={}),o===a&&(s=this,o--);o<a;o++)if(null!=(e=arguments[o]))for(t in e)n=s[t],s!==(i=e[t])&&(l&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=r?(r=!1,n&&Array.isArray(n)?n:[]):n&&w.isPlainObject(n)?n:{},s[t]=w.extend(l,n,i)):void 0!==i&&(s[t]=i));return s},w.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==G.call(e))&&(!(e=N(e))||"function"==typeof(e=X.call(e,"constructor")&&e.constructor)&&H.call(e)===Y)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e){V(e)},each:function(e,t){var i,r=0;if(K(e))for(i=e.length;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(q,"")},makeArray:function(e,t){t=t||[];return null!=e&&(K(Object(e))?w.merge(t,"string"==typeof e?[e]:e):B.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:U.call(t,e,i)},merge:function(e,t){for(var i=+t.length,r=0,n=e.length;r<i;r++)e[n++]=t[r];return e.length=n,e},grep:function(e,t,i){for(var r=[],n=0,s=e.length,o=!i;n<s;n++)!t(e[n],n)!=o&&r.push(e[n]);return r},map:function(e,t,i){var r,n,s=0,o=[];if(K(e))for(r=e.length;s<r;s++)null!=(n=t(e[s],s,i))&&o.push(n);else for(s in e)null!=(n=t(e[s],s,i))&&o.push(n);return z.apply([],o)},guid:1,support:_}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=e[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){j["[object "+t+"]"]=t.toLowerCase()});function r(e,t,i){for(var r=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&w(e).is(i))break;r.push(e)}return r}function Z(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var e=function(F){function c(e,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function N(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function z(){T()}var e,d,b,s,B,f,U,j,x,l,u,T,w,i,E,m,r,n,_,S="sizzle"+ +new Date,g=F.document,A=0,G=0,X=ce(),H=ce(),v=ce(),Y=function(e,t){return e===t&&(u=!0),0},W={}.hasOwnProperty,t=[],V=t.pop,q=t.push,k=t.push,K=t.slice,y=function(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",o="[\\x20\\t\\r\\n\\f]",a="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",J="\\["+o+"*("+a+")(?:"+o+"*([*^$|!~]?=)"+o+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+o+"*\\]",Q=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+J+")*)|.*)\\)|)",$=new RegExp(o+"+","g"),P=new RegExp("^"+o+"+|((?:^|[^\\\\])(?:\\\\.)*)"+o+"+$","g"),ee=new RegExp("^"+o+"*,"+o+"*"),te=new RegExp("^"+o+"*([>+~]|"+o+")"+o+"*"),ie=new RegExp("="+o+"*([^\\]'\"]*?)"+o+"*\\]","g"),re=new RegExp(Q),ne=new RegExp("^"+a+"$"),p={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+o+"*(even|odd|(([+-]|)(\\d*)n|)"+o+"*(?:([+-]|)"+o+"*(\\d+)|))"+o+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+o+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+o+"*((?:-\\d)?\\d*)"+o+"*\\)|)(?=[^-]|$)","i")},se=/^(?:input|select|textarea|button)$/i,oe=/^h\d$/i,h=/^[^{]+\{\s*\[native \w/,ae=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,le=/[+~]/,O=new RegExp("\\\\([\\da-f]{1,6}"+o+"?|("+o+")|.)","ig"),ue=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=L(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{k.apply(t=K.call(g.childNodes),g.childNodes),t[g.childNodes.length].nodeType}catch(e){k={apply:t.length?function(e,t){q.apply(e,K.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}function R(e,t,i,r){var n,s,o,a,l,u,h,c=t&&t.ownerDocument,p=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return i;if(!r&&((t?t.ownerDocument||t:g)!==w&&T(t),t=t||w,E)){if(11!==p&&(l=ae.exec(e)))if(n=l[1]){if(9===p){if(!(o=t.getElementById(n)))return i;if(o.id===n)return i.push(o),i}else if(c&&(o=c.getElementById(n))&&_(t,o)&&o.id===n)return i.push(o),i}else{if(l[2])return k.apply(i,t.getElementsByTagName(e)),i;if((n=l[3])&&d.getElementsByClassName&&t.getElementsByClassName)return k.apply(i,t.getElementsByClassName(n)),i}if(d.qsa&&!v[e+" "]&&(!m||!m.test(e))){if(1!==p)c=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(ue,N):t.setAttribute("id",a=S),s=(u=f(e)).length;s--;)u[s]="#"+a+" "+D(u[s]);h=u.join(","),c=le.test(e)&&me(t.parentNode)||t}if(h)try{return k.apply(i,c.querySelectorAll(h)),i}catch(e){}finally{a===S&&t.removeAttribute("id")}}}return j(e.replace(P,"$1"),t,i,r)}function ce(){var i=[];function r(e,t){return i.push(e+" ")>b.cacheLength&&delete r[i.shift()],r[e+" "]=t}return r}function C(e){return e[S]=!0,e}function M(e){var t=w.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function pe(e,t){for(var i=e.split("|"),r=i.length;r--;)b.attrHandle[i[r]]=t}function de(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function fe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function I(o){return C(function(s){return s=+s,C(function(e,t){for(var i,r=o([],e.length,s),n=r.length;n--;)e[i=r[n]]&&(e[i]=!(t[i]=e[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=R.support={},B=R.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},T=R.setDocument=function(e){var e=e?e.ownerDocument||e:g;return e!==w&&9===e.nodeType&&e.documentElement&&(i=(w=e).documentElement,E=!B(w),g!==w&&(e=w.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",z,!1):e.attachEvent&&e.attachEvent("onunload",z)),d.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=M(function(e){return e.appendChild(w.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=h.test(w.getElementsByClassName),d.getById=M(function(e){return i.appendChild(e).id=S,!w.getElementsByName||!w.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(O,c);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E)return(t=t.getElementById(e))?[t]:[]}):(b.filter.ID=function(e){var t=e.replace(O,c);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var i,r,n,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(n=t.getElementsByName(e),r=0;s=n[r++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],n=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;i=s[n++];)1===i.nodeType&&r.push(i);return r},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},r=[],m=[],(d.qsa=h.test(w.querySelectorAll))&&(M(function(e){i.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+o+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+o+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+S+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]")}),M(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=w.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+o+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=h.test(n=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&M(function(e){d.disconnectedMatch=n.call(e,"*"),n.call(e,"[s!='']:x"),r.push("!=",Q)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),e=h.test(i.compareDocumentPosition),_=e||h.test(i.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=e?function(e,t){var i;return e===t?(u=!0,0):(i=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===i?e===w||e.ownerDocument===g&&_(g,e)?-1:t===w||t.ownerDocument===g&&_(g,t)?1:l?y(l,e)-y(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,r=0,n=e.parentNode,s=t.parentNode,o=[e],a=[t];if(!n||!s)return e===w?-1:t===w?1:n?-1:s?1:l?y(l,e)-y(l,t):0;if(n===s)return de(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;o[r]===a[r];)r++;return r?de(o[r],a[r]):o[r]===g?-1:a[r]===g?1:0}),w},R.matches=function(e,t){return R(e,null,null,t)},R.matchesSelector=function(e,t){if((e.ownerDocument||e)!==w&&T(e),t=t.replace(ie,"='$1']"),d.matchesSelector&&E&&!v[t+" "]&&(!r||!r.test(t))&&(!m||!m.test(t)))try{var i=n.call(e,t);if(i||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0<R(t,w,null,[e]).length},R.contains=function(e,t){return(e.ownerDocument||e)!==w&&T(e),_(e,t)},R.attr=function(e,t){(e.ownerDocument||e)!==w&&T(e);var i=b.attrHandle[t.toLowerCase()],i=i&&W.call(b.attrHandle,t.toLowerCase())?i(e,t,!E):void 0;return void 0!==i?i:d.attributes||!E?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},R.escape=function(e){return(e+"").replace(ue,N)},R.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},R.uniqueSort=function(e){var t,i=[],r=0,n=0;if(u=!d.detectDuplicates,l=!d.sortStable&&e.slice(0),e.sort(Y),u){for(;t=e[n++];)t===e[n]&&(r=i.push(n));for(;r--;)e.splice(i[r],1)}return l=null,e},s=R.getText=function(e){var t,i="",r=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[r++];)i+=s(t);return i},(b=R.selectors={cacheLength:50,createPseudo:C,match:p,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,c),e[3]=(e[3]||e[4]||e[5]||"").replace(O,c),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||R.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&R.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return p.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&re.test(i)&&(t=f(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,c).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=X[e+" "];return t||(t=new RegExp("(^|"+o+")"+e+"("+o+"|$)"))&&X(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,r){return function(e){e=R.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===r:"!="===i?e!==r:"^="===i?r&&0===e.indexOf(r):"*="===i?r&&-1<e.indexOf(r):"$="===i?r&&e.slice(-r.length)===r:"~="===i?-1<(" "+e.replace($," ")+" ").indexOf(r):"|="===i&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(f,e,t,m,_){var g="nth"!==f.slice(0,3),v="last"!==f.slice(-4),y="of-type"===e;return 1===m&&0===_?function(e){return!!e.parentNode}:function(e,t,i){var r,n,s,o,a,l,u=g!=v?"nextSibling":"previousSibling",h=e.parentNode,c=y&&e.nodeName.toLowerCase(),p=!i&&!y,d=!1;if(h){if(g){for(;u;){for(o=e;o=o[u];)if(y?o.nodeName.toLowerCase()===c:1===o.nodeType)return!1;l=u="only"===f&&!l&&"nextSibling"}return!0}if(l=[v?h.firstChild:h.lastChild],v&&p){for(d=(a=(r=(n=(s=(o=h)[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]||[])[0]===A&&r[1])&&r[2],o=a&&h.childNodes[a];o=++a&&o&&o[u]||(d=a=0)||l.pop();)if(1===o.nodeType&&++d&&o===e){n[f]=[A,a,d];break}}else if(!1===(d=p?a=(r=(n=(s=(o=e)[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]||[])[0]===A&&r[1]:d))for(;(o=++a&&o&&o[u]||(d=a=0)||l.pop())&&((y?o.nodeName.toLowerCase()!==c:1!==o.nodeType)||!++d||(p&&((n=(s=o[S]||(o[S]={}))[o.uniqueID]||(s[o.uniqueID]={}))[f]=[A,d]),o!==e)););return(d-=_)===m||d%m==0&&0<=d/m}}},PSEUDO:function(e,s){var t,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||R.error("unsupported pseudo: "+e);return o[S]?o(s):1<o.length?(t=[e,e,"",s],b.setFilters.hasOwnProperty(e.toLowerCase())?C(function(e,t){for(var i,r=o(e,s),n=r.length;n--;)e[i=y(e,r[n])]=!(t[i]=r[n])}):function(e){return o(e,0,t)}):o}},pseudos:{not:C(function(e){var r=[],n=[],a=U(e.replace(P,"$1"));return a[S]?C(function(e,t,i,r){for(var n,s=a(e,null,r,[]),o=e.length;o--;)(n=s[o])&&(e[o]=!(t[o]=n))}):function(e,t,i){return r[0]=e,a(r,null,i,n),r[0]=null,!n.pop()}}),has:C(function(t){return function(e){return 0<R(t,e).length}}),contains:C(function(t){return t=t.replace(O,c),function(e){return-1<(e.textContent||e.innerText||s(e)).indexOf(t)}}),lang:C(function(i){return ne.test(i||"")||R.error("unsupported lang: "+i),i=i.replace(O,c).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=F.location&&F.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===i},focus:function(e){return e===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return oe.test(e.nodeName)},input:function(e){return se.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:I(function(){return[0]}),last:I(function(e,t){return[t-1]}),eq:I(function(e,t,i){return[i<0?i+t:i]}),even:I(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:I(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:I(function(e,t,i){for(var r=i<0?i+t:i;0<=--r;)e.push(r);return e}),gt:I(function(e,t,i){for(var r=i<0?i+t:i;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}(e);function _e(){}function D(e){for(var t=0,i=e.length,r="";t<i;t++)r+=e[t].value;return r}function L(o,e,t){var a=e.dir,l=e.next,u=l||a,h=t&&"parentNode"===u,c=G++;return e.first?function(e,t,i){for(;e=e[a];)if(1===e.nodeType||h)return o(e,t,i);return!1}:function(e,t,i){var r,n,s=[A,c];if(i){for(;e=e[a];)if((1===e.nodeType||h)&&o(e,t,i))return!0}else for(;e=e[a];)if(1===e.nodeType||h)if(n=(n=e[S]||(e[S]={}))[e.uniqueID]||(n[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[a]||e;else{if((r=n[u])&&r[0]===A&&r[1]===c)return s[2]=r[2];if((n[u]=s)[2]=o(e,t,i))return!0}return!1}}function ge(n){return 1<n.length?function(e,t,i){for(var r=n.length;r--;)if(!n[r](e,t,i))return!1;return!0}:n[0]}function ve(e,t,i,r,n){for(var s,o=[],a=0,l=e.length,u=null!=t;a<l;a++)!(s=e[a])||i&&!i(s,r,n)||(o.push(s),u&&t.push(a));return o}function ye(d,f,m,_,g,e){return _&&!_[S]&&(_=ye(_)),g&&!g[S]&&(g=ye(g,e)),C(function(e,t,i,r){var n,s,o,a=[],l=[],u=t.length,h=e||function(e,t,i){for(var r=0,n=t.length;r<n;r++)R(e,t[r],i);return i}(f||"*",i.nodeType?[i]:i,[]),c=!d||!e&&f?h:ve(h,a,d,i,r),p=m?g||(e?d:u||_)?[]:t:c;if(m&&m(c,p,i,r),_)for(n=ve(p,l),_(n,[],i,r),s=n.length;s--;)(o=n[s])&&(p[l[s]]=!(c[l[s]]=o));if(e){if(g||d){if(g){for(n=[],s=p.length;s--;)(o=p[s])&&n.push(c[s]=o);g(null,p=[],n,r)}for(s=p.length;s--;)(o=p[s])&&-1<(n=g?y(e,o):a[s])&&(e[n]=!(t[n]=o))}}else p=ve(p===t?p.splice(u,p.length):p),g?g(null,t,p,r):k.apply(t,p)})}function be(_,g){function e(e,t,i,r,n){var s,o,a,l=0,u="0",h=e&&[],c=[],p=x,d=e||y&&b.find.TAG("*",n),f=A+=null==p?1:Math.random()||.1,m=d.length;for(n&&(x=t===w||t||n);u!==m&&null!=(s=d[u]);u++){if(y&&s){for(o=0,t||s.ownerDocument===w||(T(s),i=!E);a=_[o++];)if(a(s,t||w,i)){r.push(s);break}n&&(A=f)}v&&((s=!a&&s)&&l--,e&&h.push(s))}if(l+=u,v&&u!==l){for(o=0;a=g[o++];)a(h,c,t,i);if(e){if(0<l)for(;u--;)h[u]||c[u]||(c[u]=V.call(r));c=ve(c)}k.apply(r,c),n&&!e&&0<c.length&&1<l+g.length&&R.uniqueSort(r)}return n&&(A=f,x=p),h}var v=0<g.length,y=0<_.length;return v?C(e):e}return _e.prototype=b.filters=b.pseudos,b.setFilters=new _e,f=R.tokenize=function(e,t){var i,r,n,s,o,a,l,u=H[e+" "];if(u)return t?0:u.slice(0);for(o=e,a=[],l=b.preFilter;o;){for(s in i&&!(r=ee.exec(o))||(r&&(o=o.slice(r[0].length)||o),a.push(n=[])),i=!1,(r=te.exec(o))&&(i=r.shift(),n.push({value:i,type:r[0].replace(P," ")}),o=o.slice(i.length)),b.filter)!(r=p[s].exec(o))||l[s]&&!(r=l[s](r))||(i=r.shift(),n.push({value:i,type:s,matches:r}),o=o.slice(i.length));if(!i)break}return t?o.length:o?R.error(e):H(e,a).slice(0)},U=R.compile=function(e,t){var i,r=[],n=[],s=v[e+" "];if(!s){for(i=(t=t||f(e)).length;i--;)((s=function e(t){for(var r,i,n,s=t.length,o=b.relative[t[0].type],a=o||b.relative[" "],l=o?1:0,u=L(function(e){return e===r},a,!0),h=L(function(e){return-1<y(r,e)},a,!0),c=[function(e,t,i){return e=!o&&(i||t!==x)||((r=t).nodeType?u:h)(e,t,i),r=null,e}];l<s;l++)if(i=b.relative[t[l].type])c=[L(ge(c),i)];else{if((i=b.filter[t[l].type].apply(null,t[l].matches))[S]){for(n=++l;n<s&&!b.relative[t[n].type];n++);return ye(1<l&&ge(c),1<l&&D(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(P,"$1"),i,l<n&&e(t.slice(l,n)),n<s&&e(t=t.slice(n)),n<s&&D(t))}c.push(i)}return ge(c)}(t[i]))[S]?r:n).push(s);(s=v(e,be(n,r))).selector=e}return s},j=R.select=function(e,t,i,r){var n,s,o,a,l,u="function"==typeof e&&e,h=!r&&f(e=u.selector||e);if(i=i||[],1===h.length){if(2<(s=h[0]=h[0].slice(0)).length&&"ID"===(o=s[0]).type&&9===t.nodeType&&E&&b.relative[s[1].type]){if(!(t=(b.find.ID(o.matches[0].replace(O,c),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(n=p.needsContext.test(e)?0:s.length;n--&&(o=s[n],!b.relative[a=o.type]);)if((l=b.find[a])&&(r=l(o.matches[0].replace(O,c),le.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(n,1),e=r.length&&D(s))break;return k.apply(i,r),i}}return(u||U(e,h))(r,t,!E,i,!t||le.test(e)&&me(t.parentNode)||t),i},d.sortStable=S.split("").sort(Y).join("")===S,d.detectDuplicates=!!u,T(),d.sortDetached=M(function(e){return 1&e.compareDocumentPosition(w.createElement("fieldset"))}),M(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&M(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||pe(Z,function(e,t,i){if(!i)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),R}(x),J=(w.find=e,w.expr=e.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=e.uniqueSort,w.text=e.getText,w.isXMLDoc=e.isXML,w.contains=e.contains,w.escapeSelector=e.escape,w.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(e,i,r){return v(i)?w.grep(e,function(e,t){return!!i.call(e,t,e)!==r}):i.nodeType?w.grep(e,function(e){return e===i!==r}):"string"!=typeof i?w.grep(e,function(e){return-1<U.call(i,e)!==r}):w.filter(i,e,r)}w.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,i,r=this.length,n=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(n[t],this))return!0}));for(i=this.pushStack([]),t=0;t<r;t++)w.find(e,n[t],i);return 1<r?w.uniqueSort(i):i},filter:function(e){return this.pushStack($(this,e||[],!1))},not:function(e){return this.pushStack($(this,e||[],!0))},is:function(e){return!!$(this,"string"==typeof e&&J.test(e)?w(e):e||[],!1).length}});var ee,te=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ie=((w.fn.init=function(e,t,i){if(e){if(i=i||ee,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:te.exec(e))||!r[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),Q.test(r[1])&&w.isPlainObject(t))for(var r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r])}else(i=T.getElementById(r[2]))&&(this[0]=i,this.length=1)}return this}).prototype=w.fn,ee=w(T),/^(?:parents|prev(?:Until|All))/),re={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var i,r=0,n=this.length,s=[],o="string"!=typeof e&&w(e);if(!J.test(e))for(;r<n;r++)for(i=this[r];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(o?-1<o.index(i):1===i.nodeType&&w.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(1<s.length?w.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?U.call(w(e),this[0]):U.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return r(e,"parentNode")},parentsUntil:function(e,t,i){return r(e,"parentNode",i)},next:function(e){return ne(e,"nextSibling")},prev:function(e){return ne(e,"previousSibling")},nextAll:function(e){return r(e,"nextSibling")},prevAll:function(e){return r(e,"previousSibling")},nextUntil:function(e,t,i){return r(e,"nextSibling",i)},prevUntil:function(e,t,i){return r(e,"previousSibling",i)},siblings:function(e){return Z((e.parentNode||{}).firstChild,e)},children:function(e){return Z(e.firstChild)},contents:function(e){return l(e,"iframe")?e.contentDocument:(l(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(r,n){w.fn[r]=function(e,t){var i=w.map(this,n,e);return(t="Until"!==r.slice(-5)?e:t)&&"string"==typeof t&&(i=w.filter(t,i)),1<this.length&&(re[r]||w.uniqueSort(i),ie.test(r)&&i.reverse()),this.pushStack(i)}});var E=/[^\x20\t\r\n\f]+/g;function h(e){return e}function se(e){throw e}function oe(e,t,i,r){var n;try{e&&v(n=e.promise)?n.call(e).done(t).fail(i):e&&v(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(e){i.apply(void 0,[e])}}w.Callbacks=function(r){var e,i;r="string"==typeof r?(e=r,i={},w.each(e.match(E)||[],function(e,t){i[t]=!0}),i):w.extend({},r);function n(){for(a=a||r.once,o=s=!0;u.length;h=-1)for(t=u.shift();++h<l.length;)!1===l[h].apply(t[0],t[1])&&r.stopOnFalse&&(h=l.length,t=!1);r.memory||(t=!1),s=!1,a&&(l=t?[]:"")}var s,t,o,a,l=[],u=[],h=-1,c={add:function(){return l&&(t&&!s&&(h=l.length-1,u.push(t)),function i(e){w.each(e,function(e,t){v(t)?r.unique&&c.has(t)||l.push(t):t&&t.length&&"string"!==f(t)&&i(t)})}(arguments),t&&!s&&n()),this},remove:function(){return w.each(arguments,function(e,t){for(var i;-1<(i=w.inArray(t,l,i));)l.splice(i,1),i<=h&&h--}),this},has:function(e){return e?-1<w.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=u=[],t||s||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),s||n()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},w.extend({Deferred:function(e){var s=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var n=arguments;return w.Deferred(function(r){w.each(s,function(e,t){var i=v(n[t[4]])&&n[t[4]];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,i?[e]:arguments)})}),n=null}).promise()},then:function(t,i,r){var l=0;function u(n,s,o,a){return function(){function e(){var e,t;if(!(n<l)){if((e=o.apply(i,r))===s.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?a?t.call(e,u(l,s,h,a),u(l,s,se,a)):(l++,t.call(e,u(l,s,h,a),u(l,s,se,a),u(l,s,h,s.notifyWith))):(o!==h&&(i=void 0,r=[e]),(a||s.resolveWith)(i,r))}}var i=this,r=arguments,t=a?e:function(){try{e()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,t.stackTrace),l<=n+1&&(o!==se&&(i=void 0,r=[e]),s.rejectWith(i,r))}};n?t():(w.Deferred.getStackHook&&(t.stackTrace=w.Deferred.getStackHook()),x.setTimeout(t))}}return w.Deferred(function(e){s[0][3].add(u(0,e,v(r)?r:h,e.notifyWith)),s[1][3].add(u(0,e,v(t)?t:h)),s[2][3].add(u(0,e,v(i)?i:se))}).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},a={};return w.each(s,function(e,t){var i=t[2],r=t[5];o[t[1]]=i.add,r&&i.add(function(){n=r},s[3-e][2].disable,s[3-e][3].disable,s[0][2].lock,s[0][3].lock),i.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=i.fireWith}),o.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){n[t]=this,s[t]=1<arguments.length?a.call(arguments):e,--i||o.resolveWith(n,s)}}var i=arguments.length,r=i,n=Array(r),s=a.call(arguments),o=w.Deferred();if(i<=1&&(oe(e,o.done(t(r)).resolve,o.reject,!i),"pending"===o.state()||v(s[r]&&s[r].then)))return o.then();for(;r--;)oe(s[r],t(r),o.reject);return o.promise()}});var ae=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,le=(w.Deferred.exceptionHook=function(e,t){x.console&&x.console.warn&&e&&ae.test(e.name)&&x.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){x.setTimeout(function(){throw e})},w.Deferred());function ue(){T.removeEventListener("DOMContentLoaded",ue),x.removeEventListener("load",ue),w.ready()}w.fn.ready=function(e){return le.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||le.resolveWith(T,[w])}}),w.ready.then=le.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?x.setTimeout(w.ready):(T.addEventListener("DOMContentLoaded",ue),x.addEventListener("load",ue));function c(e,t,i,r,n,s,o){var a=0,l=e.length,u=null==i;if("object"===f(i))for(a in n=!0,i)c(e,t,a,i[a],!0,s,o);else if(void 0!==r&&(n=!0,v(r)||(o=!0),t=u?o?(t.call(e,r),null):(u=t,function(e,t,i){return u.call(w(e),i)}):t))for(;a<l;a++)t(e[a],i,o?r:r.call(e[a],a,t(e[a],i)));return n?e:u?t.call(e):l?t(e[0],i):s}var he=/^-ms-/,ce=/-([a-z])/g;function pe(e,t){return t.toUpperCase()}function y(e){return e.replace(he,"ms-").replace(ce,pe)}function de(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function t(){this.expando=w.expando+t.uid++}t.uid=1,t.prototype={cache:function(e){var t=e[this.expando];return t||(t={},de(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var r,n=this.cache(e);if("string"==typeof t)n[y(t)]=i;else for(r in t)n[y(r)]=t[r];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][y(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,r=e[this.expando];if(void 0!==r){if(void 0!==t){i=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(E)||[]).length;for(;i--;)delete r[t[i]]}void 0!==t&&!w.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var g=new t,u=new t,fe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,me=/[A-Z]/g;function _e(e,t,i){var r,n;if(void 0===i&&1===e.nodeType)if(r="data-"+t.replace(me,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(r))){try{i="true"===(n=i)||"false"!==n&&("null"===n?null:n===+n+""?+n:fe.test(n)?JSON.parse(n):n)}catch(e){}u.set(e,t,i)}else i=void 0;return i}w.extend({hasData:function(e){return u.hasData(e)||g.hasData(e)},data:function(e,t,i){return u.access(e,t,i)},removeData:function(e,t){u.remove(e,t)},_data:function(e,t,i){return g.access(e,t,i)},_removeData:function(e,t){g.remove(e,t)}}),w.fn.extend({data:function(i,e){var t,r,n,s=this[0],o=s&&s.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){u.set(this,i)}):c(this,function(e){var t;if(s&&void 0===e)return void 0!==(t=u.get(s,i))||void 0!==(t=_e(s,i))?t:void 0;this.each(function(){u.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(n=u.get(s),1===s.nodeType&&!g.get(s,"hasDataAttrs"))){for(t=o.length;t--;)o[t]&&0===(r=o[t].name).indexOf("data-")&&(r=y(r.slice(5)),_e(s,r,n[r]));g.set(s,"hasDataAttrs",!0)}return n},removeData:function(e){return this.each(function(){u.remove(this,e)})}}),w.extend({queue:function(e,t,i){var r;if(e)return r=g.get(e,t=(t||"fx")+"queue"),i&&(!r||Array.isArray(i)?r=g.access(e,t,w.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),r=i.length,n=i.shift(),s=w._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===t&&i.unshift("inprogress"),delete s.stop,n.call(e,function(){w.dequeue(e,t)},s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return g.get(e,i)||g.access(e,i,{empty:w.Callbacks("once memory").add(function(){g.remove(e,[t+"queue",i])})})}}),w.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?w.queue(this[0],t):void 0===i?this:this.each(function(){var e=w.queue(this,t,i);w._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&w.dequeue(this,t)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--n||s.resolveWith(o,[o])}var r,n=1,s=w.Deferred(),o=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=g.get(o[a],e+"queueHooks"))&&r.empty&&(n++,r.empty.add(i));return i(),s.promise(t)}});function ge(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&w.contains(e.ownerDocument,e)&&"none"===w.css(e,"display")}function ve(e,t,i,r){var n,s={};for(n in t)s[n]=e.style[n],e.style[n]=t[n];for(n in i=i.apply(e,r||[]),t)e.style[n]=s[n];return i}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),d=["Top","Right","Bottom","Left"];function ye(e,t,i,r){var n,s,o=20,a=r?function(){return r.cur()}:function(){return w.css(e,t,"")},l=a(),u=i&&i[3]||(w.cssNumber[t]?"":"px"),h=(w.cssNumber[t]||"px"!==u&&+l)&&p.exec(w.css(e,t));if(h&&h[3]!==u){for(u=u||h[3],h=+(l/=2)||1;o--;)w.style(e,t,h+u),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),h/=s;w.style(e,t,(h*=2)+u),i=i||[]}return i&&(h=+h||+l||0,n=i[1]?h+(i[1]+1)*i[2]:+i[2],r&&(r.unit=u,r.start=h,r.end=n)),n}var be={};function b(e,t){for(var i,r,n,s,o,a=[],l=0,u=e.length;l<u;l++)(r=e[l]).style&&(i=r.style.display,t?("none"===i&&(a[l]=g.get(r,"display")||null,a[l]||(r.style.display="")),""===r.style.display&&ge(r)&&(a[l]=(o=s=void 0,s=(n=r).ownerDocument,n=n.nodeName,(o=be[n])||(s=s.body.appendChild(s.createElement(n)),o=w.css(s,"display"),s.parentNode.removeChild(s),be[n]=o="none"===o?"block":o),o))):"none"!==i&&(a[l]="none",g.set(r,"display",i)));for(l=0;l<u;l++)null!=a[l]&&(e[l].style.display=a[l]);return e}w.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?w(this).show():w(this).hide()})}});var xe=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,we=/^$|^module$|\/(?:java|ecma)script/i,S={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function A(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?w.merge([e],i):i}function Ee(e,t){for(var i=0,r=e.length;i<r;i++)g.set(e[i],"globalEval",!t||g.get(t[i],"globalEval"))}S.optgroup=S.option,S.tbody=S.tfoot=S.colgroup=S.caption=S.thead,S.th=S.td;var Se=/<|&#?\w+;/;function Ae(e,t,i,r,n){for(var s,o,a,l,u,h=t.createDocumentFragment(),c=[],p=0,d=e.length;p<d;p++)if((s=e[p])||0===s)if("object"===f(s))w.merge(c,s.nodeType?[s]:s);else if(Se.test(s)){for(o=o||h.appendChild(t.createElement("div")),a=(Te.exec(s)||["",""])[1].toLowerCase(),a=S[a]||S._default,o.innerHTML=a[1]+w.htmlPrefilter(s)+a[2],u=a[0];u--;)o=o.lastChild;w.merge(c,o.childNodes),(o=h.firstChild).textContent=""}else c.push(t.createTextNode(s));for(h.textContent="",p=0;s=c[p++];)if(r&&-1<w.inArray(s,r))n&&n.push(s);else if(l=w.contains(s.ownerDocument,s),o=A(h.appendChild(s),"script"),l&&Ee(o),i)for(u=0;s=o[u++];)we.test(s.type||"")&&i.push(s);return h}C=T.createDocumentFragment().appendChild(T.createElement("div")),(o=T.createElement("input")).setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),C.appendChild(o),_.checkClone=C.cloneNode(!0).cloneNode(!0).lastChild.checked,C.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!C.cloneNode(!0).lastChild.defaultValue;var ke=T.documentElement,Pe=/^key/,Oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Re=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function k(){return!1}function Me(){try{return T.activeElement}catch(e){}}function Ie(e,t,i,r,n,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof i&&(r=r||i,i=void 0),t)Ie(e,a,i,r,t[a],s);return e}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=k;else if(!n)return e;return 1===s&&(o=n,(n=function(e){return w().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=w.guid++)),e.each(function(){w.event.add(this,t,n,r,i)})}w.event={global:{},add:function(t,e,i,r,n){var s,o,a,l,u,h,c,p,d,f=g.get(t);if(f)for(i.handler&&(i=(s=i).handler,n=s.selector),n&&w.find.matchesSelector(ke,n),i.guid||(i.guid=w.guid++),(a=f.events)||(a=f.events={}),(o=f.handle)||(o=f.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(E)||[""]).length;l--;)c=d=(p=Re.exec(e[l])||[])[1],p=(p[2]||"").split(".").sort(),c&&(u=w.event.special[c]||{},c=(n?u.delegateType:u.bindType)||c,u=w.event.special[c]||{},d=w.extend({type:c,origType:d,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&w.expr.match.needsContext.test(n),namespace:p.join(".")},s),(h=a[c])||((h=a[c]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(c,o)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),n?h.splice(h.delegateCount++,0,d):h.push(d),w.event.global[c]=!0)},remove:function(e,t,i,r,n){var s,o,a,l,u,h,c,p,d,f,m,_=g.hasData(e)&&g.get(e);if(_&&(l=_.events)){for(u=(t=(t||"").match(E)||[""]).length;u--;)if(d=m=(a=Re.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),d){for(c=w.event.special[d]||{},p=l[d=(r?c.delegateType:c.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)h=p[s],!n&&m!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||r&&r!==h.selector&&("**"!==r||!h.selector)||(p.splice(s,1),h.selector&&p.delegateCount--,c.remove&&c.remove.call(e,h));o&&!p.length&&(c.teardown&&!1!==c.teardown.call(e,f,_.handle)||w.removeEvent(e,d,_.handle),delete l[d])}else for(d in l)w.event.remove(e,d+t[u],i,r,!0);w.isEmptyObject(l)&&g.remove(e,"handle events")}},dispatch:function(e){var t,i,r,n,s,o=w.event.fix(e),a=new Array(arguments.length),e=(g.get(this,"events")||{})[o.type]||[],l=w.event.special[o.type]||{};for(a[0]=o,t=1;t<arguments.length;t++)a[t]=arguments[t];if(o.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,o)){for(s=w.event.handlers.call(this,o,e),t=0;(r=s[t++])&&!o.isPropagationStopped();)for(o.currentTarget=r.elem,i=0;(n=r.handlers[i++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!o.rnamespace.test(n.namespace)||(o.handleObj=n,o.data=n.data,void 0!==(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,a))&&!1===(o.result=n)&&(o.preventDefault(),o.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,o),o.result}},handlers:function(e,t){var i,r,n,s,o,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(s=[],o={},i=0;i<l;i++)void 0===o[n=(r=t[i]).selector+" "]&&(o[n]=r.needsContext?-1<w(n,this).index(u):w.find(n,this,null,[u]).length),o[n]&&s.push(r);s.length&&a.push({elem:u,handlers:s})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Me()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Me()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(e){return l(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:k,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Pe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Oe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){w.event.special[e]={delegateType:n,bindType:n,handle:function(e){var t,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=n),t}}}),w.fn.extend({on:function(e,t,i,r){return Ie(this,e,t,i,r)},one:function(e,t,i,r){return Ie(this,e,t,i,r,1)},off:function(e,t,i){var r,n;if(e&&e.preventDefault&&e.handleObj)r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=k),this.each(function(){w.event.remove(this,e,i,t)});for(n in e)this.off(n,t,e[n])}return this}});var De=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ze(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var i,r,n,s,o,a;if(1===t.nodeType){if(g.hasData(e)&&(s=g.access(e),o=g.set(t,s),a=s.events))for(n in delete o.handle,o.events={},a)for(i=0,r=a[n].length;i<r;i++)w.event.add(t,n,a[n][i]);u.hasData(e)&&(s=u.access(e),o=w.extend({},s),u.set(t,o))}}function P(i,r,n,s){r=z.apply([],r);var e,t,o,a,l,u,h=0,c=i.length,p=c-1,d=r[0],f=v(d);if(f||1<c&&"string"==typeof d&&!_.checkClone&&Fe.test(d))return i.each(function(e){var t=i.eq(e);f&&(r[0]=d.call(this,e,t.html())),P(t,r,n,s)});if(c&&(t=(e=Ae(r,i[0].ownerDocument,!1,i,s)).firstChild,1===e.childNodes.length&&(e=t),t||s)){for(a=(o=w.map(A(e,"script"),Be)).length;h<c;h++)l=e,h!==p&&(l=w.clone(l,!0,!0),a&&w.merge(o,A(l,"script"))),n.call(i[h],l,h);if(a)for(u=o[o.length-1].ownerDocument,w.map(o,Ue),h=0;h<a;h++)l=o[h],we.test(l.type||"")&&!g.access(l,"globalEval")&&w.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&w._evalUrl(l.src):V(l.textContent.replace(Ne,""),u,l))}return i}function Ge(e,t,i){for(var r,n=t?w.filter(t,e):e,s=0;null!=(r=n[s]);s++)i||1!==r.nodeType||w.cleanData(A(r)),r.parentNode&&(i&&w.contains(r.ownerDocument,r)&&Ee(A(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e.replace(De,"<$1></$2>")},clone:function(e,t,i){var r,n,s,o,a,l,u,h=e.cloneNode(!0),c=w.contains(e.ownerDocument,e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(o=A(h),r=0,n=(s=A(e)).length;r<n;r++)a=s[r],l=o[r],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&xe.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(i)for(s=s||A(e),o=o||A(h),r=0,n=s.length;r<n;r++)je(s[r],o[r]);else je(e,h);return 0<(o=A(h,"script")).length&&Ee(o,!c&&A(e,"script")),h},cleanData:function(e){for(var t,i,r,n=w.event.special,s=0;void 0!==(i=e[s]);s++)if(de(i)){if(t=i[g.expando]){if(t.events)for(r in t.events)n[r]?w.event.remove(i,r):w.removeEvent(i,r,t.handle);i[g.expando]=void 0}i[u.expando]&&(i[u.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return c(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)})},prepend:function(){return P(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=ze(this,e)).insertBefore(e,t.firstChild)})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(A(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return c(this,function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!S[(Te.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i<r;i++)1===(t=this[i]||{}).nodeType&&(w.cleanData(A(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return P(this,arguments,function(e){var t=this.parentNode;w.inArray(this,i)<0&&(w.cleanData(A(this)),t&&t.replaceChild(e,this))},i)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){w.fn[e]=function(e){for(var t,i=[],r=w(e),n=r.length-1,s=0;s<=n;s++)t=s===n?this:this.clone(!0),w(r[s])[o](t),B.apply(i,t.get());return this.pushStack(i)}});function Xe(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:x).getComputedStyle(e)}var He,Ye,We,Ve,qe,Ke,i,Ze=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Je=new RegExp(d.join("|"),"i");function n(){var e;i&&(Ke.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",i.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ke.appendChild(Ke).appendChild(i),e=x.getComputedStyle(i),He="1%"!==e.top,qe=12===Qe(e.marginLeft),i.style.right="60%",Ve=36===Qe(e.right),Ye=36===Qe(e.width),i.style.position="absolute",We=36===i.offsetWidth||"absolute",ke.removeChild(Ke),i=null)}function Qe(e){return Math.round(parseFloat(e))}function O(e,t,i){var r,n,s=e.style;return(i=i||Xe(e))&&(""!==(n=i.getPropertyValue(t)||i[t])||w.contains(e.ownerDocument,e)||(n=w.style(e,t)),!_.pixelBoxStyles()&&Ze.test(n)&&Je.test(t)&&(e=s.width,t=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=n,n=i.width,s.width=e,s.minWidth=t,s.maxWidth=r)),void 0!==n?n+"":n}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Ke=T.createElement("div"),(i=T.createElement("div")).style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===i.style.backgroundClip,w.extend(_,{boxSizingReliable:function(){return n(),Ye},pixelBoxStyles:function(){return n(),Ve},pixelPosition:function(){return n(),He},reliableMarginLeft:function(){return n(),qe},scrollboxSize:function(){return n(),We}}));var et=/^(none|table(?!-c[ea]).+)/,tt=/^--/,it={position:"absolute",visibility:"hidden",display:"block"},rt={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","Moz","ms"],st=T.createElement("div").style;function ot(e){return w.cssProps[e]||(w.cssProps[e]=function(e){if(e in st)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=nt.length;i--;)if((e=nt[i]+t)in st)return e}(e)||e)}function at(e,t,i){var r=p.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function lt(e,t,i,r,n,s){var o="width"===t?1:0,a=0,l=0;if(i===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=w.css(e,i+d[o],!0,n)),r?("content"===i&&(l-=w.css(e,"padding"+d[o],!0,n)),"margin"!==i&&(l-=w.css(e,"border"+d[o]+"Width",!0,n))):(l+=w.css(e,"padding"+d[o],!0,n),"padding"!==i?l+=w.css(e,"border"+d[o]+"Width",!0,n):a+=w.css(e,"border"+d[o]+"Width",!0,n));return!r&&0<=s&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))),l}function ut(e,t,i){var r=Xe(e),n=O(e,t,r),s="border-box"===w.css(e,"boxSizing",!1,r),o=s;if(Ze.test(n)){if(!i)return n;n="auto"}return o=o&&(_.boxSizingReliable()||n===e.style[t]),"auto"!==n&&(parseFloat(n)||"inline"!==w.css(e,"display",!1,r))||(n=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(n=parseFloat(n)||0)+lt(e,t,i||(s?"border":"content"),o,r,n)+"px"}function s(e,t,i,r,n){return new s.prototype.init(e,t,i,r,n)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=O(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,s,o,a=y(t),l=tt.test(t),u=e.style;if(l||(t=ot(a)),o=w.cssHooks[t]||w.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(n=o.get(e,!1,r))?n:u[t];"string"===(s=typeof i)&&(n=p.exec(i))&&n[1]&&(i=ye(e,t,n),s="number"),null!=i&&i==i&&("number"===s&&(i+=n&&n[3]||(w.cssNumber[a]?"":"px")),_.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,r))||(l?u.setProperty(t,i):u[t]=i))}},css:function(e,t,i,r){var n,s=y(t);return tt.test(t)||(t=ot(s)),"normal"===(n=void 0===(n=(s=w.cssHooks[t]||w.cssHooks[s])&&"get"in s?s.get(e,!0,i):n)?O(e,t,r):n)&&t in rt&&(n=rt[t]),(""===i||i)&&(s=parseFloat(n),!0===i||isFinite(s))?s||0:n}}),w.each(["height","width"],function(e,s){w.cssHooks[s]={get:function(e,t,i){if(t)return!et.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,s,i):ve(e,it,function(){return ut(e,s,i)})},set:function(e,t,i){var r=Xe(e),n="border-box"===w.css(e,"boxSizing",!1,r),i=i&<(e,s,i,n,r);return n&&_.scrollboxSize()===r.position&&(i-=Math.ceil(e["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(r[s])-lt(e,s,"border",!1,r)-.5)),i&&(n=p.exec(t))&&"px"!==(n[3]||"px")&&(e.style[s]=t,t=w.css(e,s)),at(0,t,i)}}}),w.cssHooks.marginLeft=$e(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-ve(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(n,s){w.cssHooks[n+s]={expand:function(e){for(var t=0,i={},r="string"==typeof e?e.split(" "):[e];t<4;t++)i[n+d[t]+s]=r[t]||r[t-2]||r[0];return i}},"margin"!==n&&(w.cssHooks[n+s].set=at)}),w.fn.extend({css:function(e,t){return c(this,function(e,t,i){var r,n,s={},o=0;if(Array.isArray(t)){for(r=Xe(e),n=t.length;o<n;o++)s[t[o]]=w.css(e,t[o],!1,r);return s}return void 0!==i?w.style(e,t,i):w.css(e,t)},e,t,1<arguments.length)}}),((w.Tween=s).prototype={constructor:s,init:function(e,t,i,r,n,s){this.elem=e,this.prop=i,this.easing=n||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(w.cssNumber[i]?"":"px")},cur:function(){var e=s.propHooks[this.prop];return(e&&e.get?e:s.propHooks._default).get(this)},run:function(e){var t,i=s.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:s.propHooks._default).set(this),this}}).init.prototype=s.prototype,(s.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=w.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=s.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=s.prototype.init,w.fx.step={};var R,ht,o,C,ct=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ht&&(!1===T.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(dt):x.setTimeout(dt,w.fx.interval),w.fx.tick())}function ft(){return x.setTimeout(function(){R=void 0}),R=Date.now()}function mt(e,t){var i,r=0,n={height:e};for(t=t?1:0;r<4;r+=2-t)n["margin"+(i=d[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function _t(e,t,i){for(var r,n=(M.tweeners[t]||[]).concat(M.tweeners["*"]),s=0,o=n.length;s<o;s++)if(r=n[s].call(i,t,e))return r}function M(n,e,t){var i,s,r,o,a,l,u,h=0,c=M.prefilters.length,p=w.Deferred().always(function(){delete d.elem}),d=function(){if(!s){for(var e=R||ft(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),i=0,r=f.tweens.length;i<r;i++)f.tweens[i].run(t);if(p.notifyWith(n,[f,t,e]),t<1&&r)return e;r||p.notifyWith(n,[f,1,0]),p.resolveWith(n,[f])}return!1},f=p.promise({elem:n,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},t),originalProperties:e,originalOptions:t,startTime:R||ft(),duration:t.duration,tweens:[],createTween:function(e,t){t=w.Tween(n,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,i=e?f.tweens.length:0;if(!s){for(s=!0;t<i;t++)f.tweens[t].run(1);e?(p.notifyWith(n,[f,1,0]),p.resolveWith(n,[f,e])):p.rejectWith(n,[f,e])}return this}}),m=f.props,_=m,g=f.opts.specialEasing;for(r in _)if(a=g[o=y(r)],l=_[r],Array.isArray(l)&&(a=l[1],l=_[r]=l[0]),r!==o&&(_[o]=l,delete _[r]),(u=w.cssHooks[o])&&"expand"in u)for(r in l=u.expand(l),delete _[o],l)r in _||(_[r]=l[r],g[r]=a);else g[o]=a;for(;h<c;h++)if(i=M.prefilters[h].call(f,n,m,f.opts))return v(i.stop)&&(w._queueHooks(f.elem,f.opts.queue).stop=i.stop.bind(i)),i;return w.map(m,_t,f),v(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),w.fx.timer(w.extend(d,{elem:n,anim:f,queue:f.opts.queue})),f}w.Animation=w.extend(M,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ye(i.elem,e,p.exec(t),i),i}]},tweener:function(e,t){for(var i,r=0,n=(e=v(e)?(t=e,["*"]):e.match(E)).length;r<n;r++)i=e[r],M.tweeners[i]=M.tweeners[i]||[],M.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var r,n,s,o,a,l,u,h="width"in t||"height"in t,c=this,p={},d=e.style,f=e.nodeType&&ge(e),m=g.get(e,"fxshow");for(r in i.queue||(null==(o=w._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--,w.queue(e,"fx").length||o.empty.fire()})})),t)if(n=t[r],ct.test(n)){if(delete t[r],s=s||"toggle"===n,n===(f?"hide":"show")){if("show"!==n||!m||void 0===m[r])continue;f=!0}p[r]=m&&m[r]||w.style(e,r)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(p))for(r in h&&1===e.nodeType&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=m&&m.display)&&(u=g.get(e,"display")),"none"===(h=w.css(e,"display"))&&(u?h=u:(b([e],!0),u=e.style.display||u,h=w.css(e,"display"),b([e]))),("inline"===h||"inline-block"===h&&null!=u)&&"none"===w.css(e,"float")&&(l||(c.done(function(){d.display=u}),null==u&&(h=d.display,u="none"===h?"":h)),d.display="inline-block")),i.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(f=m.hidden):m=g.access(e,"fxshow",{display:u}),s&&(m.hidden=!f),f&&b([e],!0),c.done(function(){for(r in f||b([e]),g.remove(e,"fxshow"),p)w.style(e,r,p[r])})),l=_t(f?m[r]:0,r,c),r in m||(m[r]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?M.prefilters.unshift(e):M.prefilters.push(e)}}),w.speed=function(e,t,i){var r=e&&"object"==typeof e?w.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,i,r){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,i,r)},animate:function(t,e,i,r){function n(){var e=M(this,w.extend({},t),o);(s||g.get(this,"finish"))&&e.stop(!0)}var s=w.isEmptyObject(t),o=w.speed(e,i,r);return n.finish=n,s||!1===o.queue?this.each(n):this.queue(o.queue,n)},stop:function(n,e,s){function o(e){var t=e.stop;delete e.stop,t(s)}return"string"!=typeof n&&(s=e,e=n,n=void 0),e&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var e=!0,t=null!=n&&n+"queueHooks",i=w.timers,r=g.get(this);if(t)r[t]&&r[t].stop&&o(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&o(r[t]);for(t=i.length;t--;)i[t].elem!==this||null!=n&&i[t].queue!==n||(i[t].anim.stop(s),e=!1,i.splice(t,1));!e&&s||w.dequeue(this,n)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=g.get(this),i=t[o+"queue"],r=t[o+"queueHooks"],n=w.timers,s=i?i.length:0;for(t.finish=!0,w.queue(this,o,[]),r&&r.stop&&r.stop.call(this,!0),e=n.length;e--;)n[e].elem===this&&n[e].queue===o&&(n[e].anim.stop(!0),n.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),w.each(["toggle","show","hide"],function(e,r){var n=w.fn[r];w.fn[r]=function(e,t,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(r,!0),e,t,i)}}),w.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){w.fn[e]=function(e,t,i){return this.animate(r,e,t,i)}}),w.timers=[],w.fx.tick=function(){var e,t=0,i=w.timers;for(R=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||w.fx.stop(),R=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ht||(ht=!0,dt())},w.fx.stop=function(){ht=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(r,e){return r=w.fx&&w.fx.speeds[r]||r,this.queue(e=e||"fx",function(e,t){var i=x.setTimeout(e,r);t.stop=function(){x.clearTimeout(i)}})},o=T.createElement("input"),C=T.createElement("select").appendChild(T.createElement("option")),o.type="checkbox",_.checkOn=""!==o.value,_.optSelected=C.selected,(o=T.createElement("input")).value="t",o.type="radio",_.radioValue="t"===o.value;var gt,I=w.expr.attrHandle,vt=(w.fn.extend({attr:function(e,t){return c(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,i){var r,n,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?w.prop(e,t,i):(1===s&&w.isXMLDoc(e)||(n=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?gt:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):!(n&&"get"in n&&null!==(r=n.get(e,t)))&&null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){var i;if(!_.radioValue&&"radio"===t&&l(e,"input"))return i=e.value,e.setAttribute("type",t),i&&(e.value=i),t}}},removeAttr:function(e,t){var i,r=0,n=t&&t.match(E);if(n&&1===e.nodeType)for(;i=n[r++];)e.removeAttribute(i)}}),gt={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var o=I[t]||w.find.attr;I[t]=function(e,t,i){var r,n,s=t.toLowerCase();return i||(n=I[s],I[s]=r,r=null!=o(e,t,i)?s:null,I[s]=n),r}}),/^(?:input|select|textarea|button)$/i),yt=/^(?:a|area)$/i;function D(e){return(e.match(E)||[]).join(" ")}function L(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(E)||[]}w.fn.extend({prop:function(e,t){return c(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,i){var r,n,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&w.isXMLDoc(e)||(t=w.propFix[t]||t,n=w.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:e[t]=i:n&&"get"in n&&null!==(r=n.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(t){var e,i,r,n,s,o,a=0;if(v(t))return this.each(function(e){w(this).addClass(t.call(this,e,L(this)))});if((e=bt(t)).length)for(;i=this[a++];)if(o=L(i),r=1===i.nodeType&&" "+D(o)+" "){for(s=0;n=e[s++];)r.indexOf(" "+n+" ")<0&&(r+=n+" ");o!==(o=D(r))&&i.setAttribute("class",o)}return this},removeClass:function(t){var e,i,r,n,s,o,a=0;if(v(t))return this.each(function(e){w(this).removeClass(t.call(this,e,L(this)))});if(!arguments.length)return this.attr("class","");if((e=bt(t)).length)for(;i=this[a++];)if(o=L(i),r=1===i.nodeType&&" "+D(o)+" "){for(s=0;n=e[s++];)for(;-1<r.indexOf(" "+n+" ");)r=r.replace(" "+n+" "," ");o!==(o=D(r))&&i.setAttribute("class",o)}return this},toggleClass:function(n,t){var s=typeof n,o="string"==s||Array.isArray(n);return"boolean"==typeof t&&o?t?this.addClass(n):this.removeClass(n):v(n)?this.each(function(e){w(this).toggleClass(n.call(this,e,L(this),t),t)}):this.each(function(){var e,t,i,r;if(o)for(t=0,i=w(this),r=bt(n);e=r[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==n&&"boolean"!=s||((e=L(this))&&g.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==n&&g.get(this,"__className__")||""))})},hasClass:function(e){for(var t,i=0,r=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+D(L(t))+" ").indexOf(r))return!0;return!1}});function xt(e){e.stopPropagation()}var Tt=/\r/g,wt=(w.fn.extend({val:function(t){var i,e,r,n=this[0];return arguments.length?(r=v(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,w(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(i=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):n?(i=w.valHooks[n.type]||w.valHooks[n.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(n,"value"))?e:"string"==typeof(e=n.value)?e.replace(Tt,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:D(w.text(e))}},select:{get:function(e){for(var t,i=e.options,r=e.selectedIndex,n="select-one"===e.type,s=n?null:[],o=n?r+1:i.length,a=r<0?o:n?r:0;a<o;a++)if(((t=i[a]).selected||a===r)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=w(t).val(),n)return t;s.push(t)}return s},set:function(e,t){for(var i,r,n=e.options,s=w.makeArray(t),o=n.length;o--;)((r=n[o]).selected=-1<w.inArray(w.valHooks.option.get(r),s))&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},_.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),_.focusin="onfocusin"in x,/^(?:focusinfocus|focusoutblur)$/),Et=(w.extend(w.event,{trigger:function(e,t,i,r){var n,s,o,a,l,u,h,c=[i||T],p=X.call(e,"type")?e.type:e,d=X.call(e,"namespace")?e.namespace.split("."):[],f=h=s=i=i||T;if(3!==i.nodeType&&8!==i.nodeType&&!wt.test(p+w.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),a=p.indexOf(":")<0&&"on"+p,(e=e[w.expando]?e:new w.Event(p,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:w.makeArray(t,[e]),u=w.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(i,t))){if(!r&&!u.noBubble&&!m(i)){for(o=u.delegateType||p,wt.test(o+p)||(f=f.parentNode);f;f=f.parentNode)c.push(f),s=f;s===(i.ownerDocument||T)&&c.push(s.defaultView||s.parentWindow||x)}for(n=0;(f=c[n++])&&!e.isPropagationStopped();)h=f,e.type=1<n?o:u.bindType||p,(l=(g.get(f,"events")||{})[e.type]&&g.get(f,"handle"))&&l.apply(f,t),(l=a&&f[a])&&l.apply&&de(f)&&(e.result=l.apply(f,t),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(c.pop(),t)||!de(i)||a&&v(i[p])&&!m(i)&&((s=i[a])&&(i[a]=null),w.event.triggered=p,e.isPropagationStopped()&&h.addEventListener(p,xt),i[p](),e.isPropagationStopped()&&h.removeEventListener(p,xt),w.event.triggered=void 0,s&&(i[a]=s)),e.result}},simulate:function(e,t,i){i=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}}),_.focusin||w.each({focus:"focusin",blur:"focusout"},function(i,r){function n(e){w.event.simulate(r,e.target,w.event.fix(e))}w.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=g.access(e,r);t||e.addEventListener(i,n,!0),g.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=g.access(e,r)-1;t?g.access(e,r,t):(e.removeEventListener(i,n,!0),g.remove(e,r))}}}),x.location),St=Date.now(),At=/\?/,kt=(w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new x.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t},/\[\]$/),Pt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;w.param=function(e,t){function i(e,t){t=v(t)?t():t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var r,n=[];if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(r in e)!function i(r,e,n,s){if(Array.isArray(e))w.each(e,function(e,t){n||kt.test(r)?s(r,t):i(r+"["+("object"==typeof t&&null!=t?e:"")+"]",t,n,s)});else if(n||"object"!==f(e))s(r,e);else for(var t in e)i(r+"["+t+"]",e[t],n,s)}(r,e[r],t,i);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Rt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!xe.test(e))}).map(function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:i.replace(Pt,"\r\n")}}).get()}});var Ct=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Nt={},zt={},Bt="*/".concat("*"),Ut=T.createElement("a");function jt(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,r=0,n=e.toLowerCase().match(E)||[];if(v(t))for(;i=n[r++];)"+"===i[0]?(i=i.slice(1)||"*",(s[i]=s[i]||[]).unshift(t)):(s[i]=s[i]||[]).push(t)}}function Gt(t,r,n,s){var o={},a=t===zt;function l(e){var i;return o[e]=!0,w.each(t[e]||[],function(e,t){t=t(r,n,s);return"string"!=typeof t||a||o[t]?a?!(i=t):void 0:(r.dataTypes.unshift(t),l(t),!1)}),i}return l(r.dataTypes[0])||!o["*"]&&l("*")}function Xt(e,t){var i,r,n=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:r=r||{})[i]=t[i]);return r&&w.extend(!0,e,r),e}Ut.href=Et.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,w.ajaxSettings),t):Xt(w.ajaxSettings,e)},ajaxPrefilter:jt(Nt),ajaxTransport:jt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,u,h,i,c,p,d,r,f=w.ajaxSetup({},t=t||{}),m=f.context||f,_=f.context&&(m.nodeType||m.jquery)?w(m):w.event,g=w.Deferred(),v=w.Callbacks("once memory"),y=f.statusCode||{},n={},s={},o="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(p){if(!i)for(i={};t=Dt.exec(h);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,n[e]=t),this},overrideMimeType:function(e){return null==p&&(f.mimeType=e),this},statusCode:function(e){if(e)if(p)b.always(e[b.status]);else for(var t in e)y[t]=[y[t],e[t]];return this},abort:function(e){e=e||o;return l&&l.abort(e),a(0,e),this}};if(g.promise(b),f.url=((e||f.url||Et.href)+"").replace(Ft,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(E)||[""],null==f.crossDomain){e=T.createElement("a");try{e.href=f.url,e.href=e.href,f.crossDomain=Ut.protocol+"//"+Ut.host!=e.protocol+"//"+e.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),Gt(Nt,f,t,b),!p){for(r in(d=w.event&&f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Lt.test(f.type),u=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ct,"+")):(e=f.url.slice(u.length),f.data&&(f.processData||"string"==typeof f.data)&&(u+=(At.test(u)?"&":"?")+f.data,delete f.data),!1===f.cache&&(u=u.replace(It,"$1"),e=(At.test(u)?"&":"?")+"_="+St+++e),f.url=u+e),f.ifModified&&(w.lastModified[u]&&b.setRequestHeader("If-Modified-Since",w.lastModified[u]),w.etag[u]&&b.setRequestHeader("If-None-Match",w.etag[u])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&b.setRequestHeader("Content-Type",f.contentType),b.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Bt+"; q=0.01":""):f.accepts["*"]),f.headers)b.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(!1===f.beforeSend.call(m,b,f)||p))return b.abort();if(o="abort",v.add(f.complete),b.done(f.success),b.fail(f.error),l=Gt(zt,f,t,b)){if(b.readyState=1,d&&_.trigger("ajaxSend",[b,f]),p)return b;f.async&&0<f.timeout&&(c=x.setTimeout(function(){b.abort("timeout")},f.timeout));try{p=!1,l.send(n,a)}catch(e){if(p)throw e;a(-1,e)}}else a(-1,"No Transport")}return b;function a(e,t,i,r){var n,s,o,a=t;p||(p=!0,c&&x.clearTimeout(c),l=void 0,h=r||"",b.readyState=0<e?4:0,r=200<=e&&e<300||304===e,i&&(o=function(e,t,i){for(var r,n,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(n in a)if(a[n]&&a[n].test(r)){l.unshift(n);break}if(l[0]in i)s=l[0];else{for(n in i){if(!l[0]||e.converters[n+" "+l[0]]){s=n;break}o=o||n}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(f,b,i)),o=function(e,t,i,r){var n,s,o,a,l,u={},h=e.dataTypes.slice();if(h[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(s=h.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=u[l+" "+s]||u["* "+s]))for(n in u)if((a=n.split(" "))[1]===s&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[n]:!0!==u[n]&&(s=a[0],h.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(f,o,b,r),r?(f.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(w.lastModified[u]=i),(i=b.getResponseHeader("etag"))&&(w.etag[u]=i)),204===e||"HEAD"===f.type?a="nocontent":304===e?a="notmodified":(a=o.state,n=o.data,r=!(s=o.error))):(s=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",r?g.resolveWith(m,[n,a,b]):g.rejectWith(m,[b,a,s]),b.statusCode(y),y=void 0,d&&_.trigger(r?"ajaxSuccess":"ajaxError",[b,f,r?n:s]),v.fireWith(m,[b,a]),d&&(_.trigger("ajaxComplete",[b,f]),--w.active||w.event.trigger("ajaxStop")))}},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,n){w[n]=function(e,t,i,r){return v(t)&&(r=r||i,i=t,t=void 0),w.ajax(w.extend({url:e,type:n,dataType:r,data:t,success:i},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return v(i)?this.each(function(e){w(this).wrapInner(i.call(this,e))}):this.each(function(){var e=w(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=v(t);return this.each(function(e){w(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(e){}};var Ht={0:200,1223:204},Yt=w.ajaxSettings.xhr(),Wt=(_.cors=!!Yt&&"withCredentials"in Yt,_.ajax=Yt=!!Yt,w.ajaxTransport(function(n){var s,o;if(_.cors||Yt&&!n.crossDomain)return{send:function(e,t){var i,r=n.xhr();if(r.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(i in n.xhrFields)r[i]=n.xhrFields[i];for(i in n.mimeType&&r.overrideMimeType&&r.overrideMimeType(n.mimeType),n.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(i,e[i]);s=function(e){return function(){s&&(s=o=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Ht[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=s(),o=r.onerror=r.ontimeout=s("error"),void 0!==r.onabort?r.onabort=o:r.onreadystatechange=function(){4===r.readyState&&x.setTimeout(function(){s&&o()})},s=s("abort");try{r.send(n.hasContent&&n.data||null)}catch(e){if(s)throw e}},abort:function(){s&&s()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(i){var r,n;if(i.crossDomain)return{send:function(e,t){r=w("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",n=function(e){r.remove(),n=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(r[0])},abort:function(){n&&n()}}}),[]),Vt=/(=)\?(?=&|$)|\?\?/,qt=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||w.expando+"_"+St++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,t,i){var r,n,s,o=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||w.error(r+" was not called"),s[0]},e.dataTypes[0]="json",n=x[r],x[r]=function(){s=arguments},i.always(function(){void 0===n?w(x).removeProp(r):x[r]=n,e[r]&&(e.jsonpCallback=t.jsonpCallback,Wt.push(r)),s&&v(n)&&n(s[0]),s=n=void 0}),"script"}),_.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),w.parseHTML=function(e,t,i){var r;return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(_.createHTMLDocument?((r=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(r)):t=T),r=!i&&[],(i=Q.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,r),r&&r.length&&w(r).remove(),w.merge([],i.childNodes)))},w.fn.load=function(e,t,i){var r,n,s,o=this,a=e.indexOf(" ");return-1<a&&(r=D(e.slice(a)),e=e.slice(0,a)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(n="POST"),0<o.length&&w.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done(function(e){s=arguments,o.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)}).always(i&&function(e,t){o.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(e,t,i){var r,n,s,o,a=w.css(e,"position"),l=w(e),u={};"static"===a&&(e.style.position="relative"),s=l.offset(),r=w.css(e,"top"),o=w.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(r+o).indexOf("auto")?(n=(a=l.position()).top,a.left):(n=parseFloat(r)||0,parseFloat(o)||0),null!=(t=v(t)?t.call(e,i,w.extend({},s)):t).top&&(u.top=t.top-s.top+n),null!=t.left&&(u.left=t.left-s.left+a),"using"in t?t.using.call(e,u):l.css(u)}},w.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,r=this[0],n={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),i=r.ownerDocument,e=r.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((n=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),n.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-w.css(r,"marginTop",!0),left:t.left-n.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ke})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var s="pageYOffset"===n;w.fn[t]=function(e){return c(this,function(e,t,i){var r;if(m(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===i)return r?r[n]:e[t];r?r.scrollTo(s?r.pageXOffset:i,s?i:r.pageYOffset):e[t]=i},t,e,arguments.length)}}),w.each(["top","left"],function(e,i){w.cssHooks[i]=$e(_.pixelPosition,function(e,t){if(t)return t=O(e,i),Ze.test(t)?w(e).position()[i]+"px":t})}),w.each({Height:"height",Width:"width"},function(o,a){w.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,s){w.fn[s]=function(e,t){var i=arguments.length&&(r||"boolean"!=typeof e),n=r||(!0===e||!0===t?"margin":"border");return c(this,function(e,t,i){var r;return m(e)?0===s.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):void 0===i?w.css(e,t,n):w.style(e,t,i,n)},a,i?e:void 0,i)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){w.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,r){return this.on(t,e,i,r)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),w.proxy=function(e,t){var i,r;if("string"==typeof t&&(r=e[t],t=e,e=r),v(e))return i=a.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||w.guid++,r},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=l,w.isFunction=v,w.isWindow=m,w.camelCase=y,w.type=f,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}),x.jQuery),Kt=x.$;return w.noConflict=function(e){return x.$===w&&(x.$=Kt),e&&x.jQuery===w&&(x.jQuery=qt),w},F||(x.jQuery=x.$=w),w}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Ease={})}(this,function(e){"use strict";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var r=t(function(t,e){!function(){var n,e;e=n={linear:function(e,t,i,r){return i*e/r+t},easeInQuad:function(e,t,i,r){return i*(e/=r)*e+t},easeOutQuad:function(e,t,i,r){return-i*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,r){return i*(e/=r)*e*e+t},easeOutCubic:function(e,t,i,r){return i*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,r){return i*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,i,r){return-i*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,r){return i*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,i,r){return i*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,r){return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,r){return i*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,i,r){return 0===e?t:i*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,i,r){return e===r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,i,r){return(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,i,r){return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,i,r){var n,s,o=1.70158;return 0!==e&&(e/=r),s=0,s=.3*r,o=(n=i)<Math.abs(i)?(n=i,s/4):s/(2*Math.PI)*Math.asin(i/n),-n*Math.pow(2,10*--e)*Math.sin((e*r-o)*(2*Math.PI)/s)+t},easeOutElastic:function(e,t,i,r){var n,s,o=1.70158;return 0!==e&&(e/=r),s=0,s=.3*r,o=(n=i)<Math.abs(i)?(n=i,s/4):s/(2*Math.PI)*Math.asin(i/n),n*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/s)+i+t},easeInOutElastic:function(e,t,i,r){var n,s,o=1.70158;return 0!==e&&(e/=r/2),s=0,s=r*(.3*1.5),o=(n=i)<Math.abs(i)?(n=i,s/4):s/(2*Math.PI)*Math.asin(i/n),e<1?n*Math.pow(2,10*--e)*Math.sin((e*r-o)*(2*Math.PI)/s)*-.5+t:n*Math.pow(2,-10*--e)*Math.sin((e*r-o)*(2*Math.PI)/s)*.5+i+t},easeInBack:function(e,t,i,r,n){return i*(e/=r)*e*(((n=void 0===n?1.70158:n)+1)*e-n)+t},easeOutBack:function(e,t,i,r,n){return i*((e=e/r-1)*e*(((n=void 0===n?1.70158:n)+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,r,n){return void 0===n&&(n=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:function(e,t,i,r){return i-n.easeOutBounce(r-e,0,i,r)+t},easeOutBounce:function(e,t,i,r){return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,i,r){return e<r/2?.5*n.easeInBounce(2*e,0,i,r)+t:.5*n.easeOutBounce(2*e-r,0,i,r)+.5*i+t}},t.exports=e}.call(i)}),n=t(function(e){var r=Object.prototype.hasOwnProperty,d="~";function i(){}function s(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function n(e,t,i,r,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new s(i,r||e,n),r=d?d+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],i]:e._events[r].push(i):(e._events[r]=i,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function t(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(d=!1)),t.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)r.call(e,t)&&i.push(d?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},t.prototype.listeners=function(e){var e=d?d+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var i=0,r=t.length,n=new Array(r);i<r;i++)n[i]=t[i].fn;return n},t.prototype.listenerCount=function(e){e=d?d+e:e,e=this._events[e];return e?e.fn?1:e.length:0},t.prototype.emit=function(e,t,i,r,n,s){var o=d?d+e:e;if(!this._events[o])return!1;var a,l=this._events[o],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,r),!0;case 5:return l.fn.call(l.context,t,i,r,n),!0;case 6:return l.fn.call(l.context,t,i,r,n,s),!0}for(p=1,a=new Array(u-1);p<u;p++)a[p-1]=arguments[p];l.fn.apply(l.context,a)}else for(var h,c=l.length,p=0;p<c;p++)switch(l[p].once&&this.removeListener(e,l[p].fn,void 0,!0),u){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,t);break;case 3:l[p].fn.call(l[p].context,t,i);break;case 4:l[p].fn.call(l[p].context,t,i,r);break;default:if(!a)for(h=1,a=new Array(u-1);h<u;h++)a[h-1]=arguments[h];l[p].fn.apply(l[p].context,a)}return!0},t.prototype.on=function(e,t,i){return n(this,e,t,i,!1)},t.prototype.once=function(e,t,i){return n(this,e,t,i,!0)},t.prototype.removeListener=function(e,t,i,r){e=d?d+e:e;if(this._events[e])if(t){var n=this._events[e];if(n.fn)n.fn!==t||r&&!n.once||i&&n.context!==i||l(this,e);else{for(var s=0,o=[],a=n.length;s<a;s++)(n[s].fn!==t||r&&!n[s].once||i&&n[s].context!==i)&&o.push(n[s]);o.length?this._events[e]=1===o.length?o[0]:o:l(this,e)}}else l(this,e);return this},t.prototype.removeAllListeners=function(e){return e?(e=d?d+e:e,this._events[e]&&l(this,e)):(this._events=new i,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=d,e.exports=t.EventEmitter=t});class u extends n{constructor(e,t,i){for(var r in super(),this.elements=Array.isArray(e)?e:[e],this.eases=[],this.options=i||{},this.time=0,t)for(var n of this.elements)this.addParam(n,r,t[r])}addParam(e,t,i){let r,n,s,o,a=t;switch(t){case"scaleX":case"skewX":n=i,s=i-(r=e[a=t.substr(0,t.length-1)].x),o=e=>this.updateCoord(e,a,"x");break;case"scaleY":case"skewY":n=i,s=i-(r=e[a=t.substr(0,t.length-1)].y),o=e=>this.updateCoord(e,a,"y");break;case"tint":case"blend":const l=Array.isArray(i)?i:[e.tint,i];r=0,s=n=l.length,o="tint"===t?e=>this.updateTint(e,l):e=>this.updateBlend(e,l);break;case"shake":r={x:e.x,y:e.y},n=i,o=e=>this.updateShake(e);break;case"position":r={x:e.x,y:e.y},s={x:(n={x:i.x,y:i.y}).x-r.x,y:n.y-r.y},o=e=>this.updatePosition(e);break;case"skew":case"scale":n=i,s=i-(r=e[t].x),o=e=>this.updatePoint(e,t);break;case"face":r=e.rotation,s=(n=u.shortestAngle(r,Math.atan2(i.y-e.y,i.x-e.x)))-r,o=e=>this.updateOne(e,"rotation");break;default:n=i,s=i-(r=e[t]),o=e=>this.updateOne(e,t)}this.eases.push({element:e,entry:t,update:o,start:r,to:n,delta:s})}static shortestAngle(e,t){var i=2*Math.PI,r=Math.abs(e-t)%i;return(r>Math.PI?i-r:r)*(0<((t-e+Math.PI)%i+i)%i-Math.PI?1:-1)}remove(t,i){if(0===arguments.length)this.eases=[];else{"string"==typeof i&&(i=[i]);for(let e=0;e<this.eases.length;e++){var r=this.eases[e];t&&r.element!==t||i&&-1===i.indexOf(r.entry)||(this.eases.splice(e,1),e--)}}if(0===this.eases.length)return!0}updateOne(e,t){e.element[t]=this.options.ease(this.time,e.start,e.delta,this.options.duration)}updatePoint(e,t){e.element[t].x=e.element[t].y=this.options.ease(this.time,e.start,e.delta,this.options.duration)}updatePosition(e){e.element.x=this.options.ease(this.time,e.start.x,e.delta.x,this.options.duration),e.element.y=this.options.ease(this.time,e.start.y,e.delta.y,this.options.duration)}updateCoord(e,t,i){e.element[t][i]=this.options.ease(this.time,e.start,e.delta,this.options.duration)}updateTint(e,t){let i=Math.floor(this.options.ease(this.time,e.start,e.delta,this.options.duration));i===t.length&&(i=t.length-1),e.element.tint=t[i]}updateBlend(e,t){var i=this.options.ease(this.time,e.start,e.delta,this.options.duration);let r=Math.floor(i),n=(r=r===t.length?t.length-1:r)+1;n===t.length&&(n=this.options.reverse?r-1:this.options.repeat?0:r);var i=i-r,s=t[r],t=t[n],o=1-i;e.element.tint=o*(s>>16)+i*(t>>16)<<16|o*(s>>8&255)+i*(t>>8&255)<<8|o*(255&s)+i*(255&t)}updateShake(e){function t(e){return Math.floor(Math.random()*e)-Math.floor(e/2)}e.element.x=e.start.x+t(e.to),e.element.y=e.start.y+t(e.to)}complete(e){"shake"===e.entry&&(e.element.x=e.start.x,e.element.y=e.start.y)}reverse(e){var t,i;"position"===e.entry?(i=e.to.x,t=e.to.y,e.to.x=e.start.x,e.to.y=e.start.y,e.start.x=i,e.start.y=t,e.delta.x=-e.delta.x,e.delta.y=-e.delta.y):(i=e.to,e.to=e.start,e.start=i,e.delta=-e.delta)}repeat(e){switch(e.entry){case"skewX":e.element.skew.x=e.start;break;case"skewY":e.element.skew.y=e.start;break;case"skew":e.element.skew.x=e.start,e.element.skew.y=e.start;break;case"scaleX":e.element.scale.x=e.start;break;case"scaleY":e.element.scale.y=e.start;break;case"scale":e.element.scale.x=e.start,e.element.scale.y=e.start;break;case"position":e.element.x=e.start.x,e.element.y=e.start.y;break;default:e.element[e.entry]=e.start}}update(e){if(0===this.eases.length)return!0;if(this.options.wait){if(this.options.wait-=e,0<this.options.wait)return void this.emit("wait",this);e=-this.options.wait,this.options.wait=0,this.emit("wait-end",this)}this.time+=e;let t=0;this.time>=this.options.duration&&(t=this.time-this.options.duration,this.time=this.options.duration);for(let e=0;e<this.eases.length;e++){const t=this.eases[e];t.element._destroyed?(this.eases.splice(e,1),e--):t.update(t)}if(this.emit("each",this),this.time>=this.options.duration)if(this.options.reverse)this.eases.forEach(e=>this.reverse(e)),(this.time=t)&&this.eases.forEach(e=>e.update(e)),this.emit("reverse",this),this.options.repeat?!0!==this.options.repeat&&this.options.repeat--:this.options.reverse=!1;else{if(!this.options.repeat)return this.eases.forEach(e=>this.complete(e)),this.emit("complete",this),!0;this.eases.forEach(e=>this.repeat(e)),(this.time=t)&&this.eases.forEach(e=>e.update(e)),!0!==this.options.repeat&&this.options.repeat--,this.emit("repeat",this)}}get count(){return this.eases.length}}const s={duration:1e3,ease:r.easeInOutSine,maxFrame:1e3/60,ticker:null,useRAF:!0};class o extends n{constructor(e){super(),this.options=Object.assign({},s,e),this.easings=[],this.empty=!0,this.options.ticker&&this.options.ticker.add(this.update,this)}destroy(){this.removeAll(),this.options.useTicker?this.ticker.remove(this.update,this):this.options.useRAF&&(cancelAnimationFrame(this.handleRAF),this.handleRAF=null)}add(e,t,i){(i=i||{}).duration=(void 0!==i.duration?i:this.options).duration,i.ease=i.ease||this.options.ease,"string"==typeof i.ease&&(i.ease=r[i.ease]);e=new u(e,t,i);return this.easings.push(e),this.empty&&this.options.useRAF&&(this.handleRAF=requestAnimationFrame(()=>this.update()),this.lastTime=Date.now()),this.empty=!1,e}target(e,t,i,r){i=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))/i;return(r=r||{}).duration=i,this.add(e,{x:t.x,y:t.y},r)}face(e,t,i,r){t=u.shortestAngle(e.rotation,Math.atan2(t.y-e.y,t.x-e.x)),i=Math.abs(t-e.rotation)/i;return(r=r||{}).duration=i,this.add(e,{rotation:t},r)}removeEase(t,i){for(let e=0;e<this.easings.length;e++)this.easings[e].remove(t,i)&&(this.easings.splice(e,1),e--);0===this.easings.length&&(this.empty=!0,this.options.useRAF&&this.handleRAF&&(cancelAnimationFrame(this.handleRAF),this.handleRAF=null))}removeAll(){this.easings=[],this.empty=!0,this.options.useRAF&&this.handleRAF&&(cancelAnimationFrame(this.handleRAF),this.handleRAF=null)}update(e){var t,i;if(this.options.useTicker?e=this.ticker.elapsedMS:this.options.useRAF&&(e=(t=Date.now())-this.lastTime,this.lastTime=t),e=Math.min(e,this.options.maxFrame),!this.empty){for(i of this.easings.slice(0))i.update(e)&&this.easings.splice(this.easings.indexOf(i),1);this.emit("each",this),0===this.easings.length&&(this.empty=!0,this.emit("complete",this))}this.options.useRAF&&this.easings.length?this.handleRAF=requestAnimationFrame(()=>this.update()):this.handleRAF=null}get count(){return this.easings.length}countRunning(){let e=0;for(var t of this.easings)e+=t.count;return e}set duration(e){this.options.duration=e}get duration(){return this.options.duration}set ease(e){this.options.ease=e}get ease(){return this.options.ease}}o.id=0;n=new o;o.ease=n,e.Ease=o,e.List=class{constructor(){console.warn("Ease.List was deprecated. Use new Ease() instead.")}},e.ease=n,Object.defineProperty(e,"__esModule",{value:!0})}),this.PIXI=this.PIXI||{},!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@pixi/math"),require("@pixi/display"),require("@pixi/ticker")):"function"==typeof define&&define.amd?define(["exports","@pixi/math","@pixi/display","@pixi/ticker"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).pixi_viewport={},e.PIXI,e.PIXI,e.PIXI)}(this,function(e,a,t,i){"use strict";class r{constructor(e){this.parent=e,this.paused=!1}destroy(){}down(e){return!1}move(e){return!1}up(e){return!1}wheel(e){return!1}update(e){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(t){!function(){var n={linear:function(e,t,i,r){return i*e/r+t},easeInQuad:function(e,t,i,r){return i*(e/=r)*e+t},easeOutQuad:function(e,t,i,r){return-i*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,r){return i*(e/=r)*e*e+t},easeOutCubic:function(e,t,i,r){return i*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,r){return i*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,i,r){return-i*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,r){return i*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,i,r){return i*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,r){return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,r){return i*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,i,r){return 0===e?t:i*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,i,r){return e===r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,i,r){return(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,i,r){return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,i,r){var n=1.70158,s=0,o=i;return 0!==e&&(e/=r),s=s||.3*r,n=o<Math.abs(i)?(o=i,s/4):s/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*--e)*Math.sin((e*r-n)*(2*Math.PI)/s))+t},easeOutElastic:function(e,t,i,r){var n=1.70158,s=0,o=i;return 0!==e&&(e/=r),s=s||.3*r,n=o<Math.abs(i)?(o=i,s/4):s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((e*r-n)*(2*Math.PI)/s)+i+t},easeInOutElastic:function(e,t,i,r){var n=1.70158,s=0,o=i;return 0!==e&&(e/=r/2),s=s||r*(.3*1.5),n=o<Math.abs(i)?(o=i,s/4):s/(2*Math.PI)*Math.asin(i/o),e<1?o*Math.pow(2,10*--e)*Math.sin((e*r-n)*(2*Math.PI)/s)*-.5+t:o*Math.pow(2,-10*--e)*Math.sin((e*r-n)*(2*Math.PI)/s)*.5+i+t},easeInBack:function(e,t,i,r,n){return i*(e/=r)*e*(((n=void 0===n?1.70158:n)+1)*e-n)+t},easeOutBack:function(e,t,i,r,n){return i*((e=e/r-1)*e*(((n=void 0===n?1.70158:n)+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,r,n){return void 0===n&&(n=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:function(e,t,i,r){return i-n.easeOutBounce(r-e,0,i,r)+t},easeOutBounce:function(e,t,i,r){return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,i,r){return e<r/2?.5*n.easeInBounce(2*e,0,i,r)+t:.5*n.easeOutBounce(2*e-r,0,i,r)+.5*i+t}},e=n;t.exports=e}.call(n)})(o={path:s,exports:{},require:function(e,t){throw null==t&&o.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},o.exports);var s,o,l=o.exports;function u(e,t){return e?"function"==typeof e?e:"string"==typeof e?l[e]:void 0:l[t]}const h={removeOnInterrupt:!1,ease:"linear",time:1e3};class c extends r{__init(){this.startWidth=null}__init2(){this.startHeight=null}__init3(){this.deltaWidth=null}__init4(){this.deltaHeight=null}__init5(){this.width=null}__init6(){this.height=null}__init7(){this.time=0}constructor(e,t={}){super(e),c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),c.prototype.__init7.call(this),this.options=Object.assign({},h,t),this.options.ease=u(this.options.ease),this.setupPosition(),this.setupZoom(),this.time=0}setupPosition(){void 0!==this.options.position?(this.startX=this.parent.center.x,this.startY=this.parent.center.y,this.deltaX=this.options.position.x-this.parent.center.x,this.deltaY=this.options.position.y-this.parent.center.y,this.keepCenter=!1):this.keepCenter=!0}setupZoom(){this.width=null,this.height=null,void 0!==this.options.scale?this.width=this.parent.screenWidth/this.options.scale:void 0!==this.options.scaleX||void 0!==this.options.scaleY?(void 0!==this.options.scaleX&&(this.width=this.parent.screenWidth/this.options.scaleX),void 0!==this.options.scaleY&&(this.height=this.parent.screenHeight/this.options.scaleY)):(void 0!==this.options.width&&(this.width=this.options.width),void 0!==this.options.height&&(this.height=this.options.height)),null!==this.width&&(this.startWidth=this.parent.screenWidthInWorldPixels,this.deltaWidth=this.width-this.startWidth),null!==this.height&&(this.startHeight=this.parent.screenHeightInWorldPixels,this.deltaHeight=this.height-this.startHeight)}down(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("animate"),!1}complete(){this.parent.plugins.remove("animate"),null!==this.width&&this.parent.fitWidth(this.width,this.keepCenter,null===this.height),null!==this.height&&this.parent.fitHeight(this.height,this.keepCenter,null===this.width),this.keepCenter||this.parent.moveCenter(this.options.position),this.parent.emit("animate-end",this.parent),this.options.callbackOnComplete&&this.options.callbackOnComplete(this.parent)}update(e){var t,i,r,n,s,o;this.paused||(this.time+=e,e=new a.Point(this.parent.scale.x,this.parent.scale.y),this.time>=this.options.time?(t=this.parent.width,i=this.parent.height,this.complete(),t===this.parent.width&&i===this.parent.height||this.parent.emit("zoomed",{viewport:this.parent,original:e,type:"animate"})):(t=this.options.ease(this.time,0,1,this.options.time),null!==this.width&&(i=this.startWidth,r=this.deltaWidth,this.parent.fitWidth(i+r*t,this.keepCenter,null===this.height)),null!==this.height&&(i=this.startHeight,r=this.deltaHeight,this.parent.fitHeight(i+r*t,this.keepCenter,null===this.width)),null===this.width?this.parent.scale.x=this.parent.scale.y:null===this.height&&(this.parent.scale.y=this.parent.scale.x),this.keepCenter||(i=this.startX,r=this.startY,n=this.deltaX,s=this.deltaY,o=new a.Point(this.parent.x,this.parent.y),this.parent.moveCenter(i+n*t,r+s*t),this.parent.emit("moved",{viewport:this.parent,original:o,type:"animate"})),(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:e,type:"animate"})))}}function p(e){let t=void 0,i=e[0],r=1;for(;r<e.length;){var n=e[r],s=e[r+1];if(r+=2,("optionalAccess"===n||"optionalCall"===n)&&null==i)return;"access"===n||"optionalAccess"===n?i=s(t=i):"call"!==n&&"optionalCall"!==n||(i=s((...e)=>i.call(t,...e)),t=void 0)}return i}const d={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class f extends r{constructor(e,t={}){super(e),this.options=Object.assign({},d,t),this.ease=u(this.options.ease,"easeInOutSine"),this.options.sides?"all"===this.options.sides?this.top=this.bottom=this.left=this.right=!0:"horizontal"===this.options.sides?(this.right=this.left=!0,this.top=this.bottom=!1):"vertical"===this.options.sides?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=-1!==this.options.sides.indexOf("top"),this.bottom=-1!==this.options.sides.indexOf("bottom"),this.left=-1!==this.options.sides.indexOf("left"),this.right=-1!==this.options.sides.indexOf("right")):this.left=this.top=this.right=this.bottom=!1;e=this.options.underflow.toLowerCase();"center"===e?(this.underflowX=0,this.underflowY=0):(this.underflowX=-1!==e.indexOf("left")?-1:-1!==e.indexOf("right")?1:0,this.underflowY=-1!==e.indexOf("top")?-1:-1!==e.indexOf("bottom")?1:0),this.reset()}isActive(){return null!==this.toX||null!==this.toY}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(e){var t;this.paused||(this.bounce(),this.toX&&((t=this.toX).time+=e,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),t.time>=this.options.time?(this.parent.x=t.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(t.time,t.start,t.delta,this.options.time)),this.toY&&((t=this.toY).time+=e,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),t.time>=this.options.time?(this.parent.y=t.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(t.time,t.start,t.delta,this.options.time)))}calcUnderflowX(){let e;switch(this.underflowX){case-1:e=0;break;case 1:e=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:e=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return e}calcUnderflowY(){let e;switch(this.underflowY){case-1:e=0;break;case 1:e=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:e=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return e}oob(){var e,t,i,r=this.options.bounceBox;return r?(e=void 0===r.x?0:r.x,t=void 0===r.y?0:r.y,i=void 0===r.width?this.parent.worldWidth:r.width,r=void 0===r.height?this.parent.worldHeight:r.height,{left:this.parent.left<e,right:this.parent.right>i,top:this.parent.top<t,bottom:this.parent.bottom>r,topLeft:new a.Point(e*this.parent.scale.x,t*this.parent.scale.y),bottomRight:new a.Point(i*this.parent.scale.x-this.parent.screenWidth,r*this.parent.scale.y-this.parent.screenHeight)}):{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new a.Point(0,0),bottomRight:new a.Point(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){if(!this.paused){let t,e=this.parent.plugins.get("decelerate",!0);e&&(e.x||e.y)&&(e.x&&e.percentChangeX===p([e,"access",e=>e.options,"optionalAccess",e=>e.friction])||e.y&&e.percentChangeY===p([e,"access",e=>e.options,"optionalAccess",e=>e.friction]))&&(((t=this.oob()).left&&this.left||t.right&&this.right)&&(e.percentChangeX=this.options.friction),(t.top&&this.top||t.bottom&&this.bottom)&&(e.percentChangeY=this.options.friction));var i=this.parent.plugins.get("drag",!0)||{},r=this.parent.plugins.get("pinch",!0)||{};if(e=e||{},!(p([i,"optionalAccess",e=>e.active])||p([r,"optionalAccess",e=>e.active])||this.toX&&this.toY||e.x&&e.y)){i=(t=t||this.oob()).topLeft,r=t.bottomRight;if(!this.toX&&!e.x){let e=null;t.left&&this.left?e=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-i.x:t.right&&this.right&&(e=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-r.x),null!==e&&this.parent.x!==e&&(this.toX={time:0,start:this.parent.x,delta:e-this.parent.x,end:e},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!e.y){let e=null;t.top&&this.top?e=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-i.y:t.bottom&&this.bottom&&(e=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-r.y),null!==e&&this.parent.y!==e&&(this.toY={time:0,start:this.parent.y,delta:e-this.parent.y,end:e},this.parent.emit("bounce-y-start",this.parent))}}}}reset(){this.toX=this.toY=null,this.bounce()}}const m={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class _ extends r{constructor(e,t={}){super(e),this.options=Object.assign({},m,t),this.options.direction&&(this.options.left="x"===this.options.direction||"all"===this.options.direction||null,this.options.right="x"===this.options.direction||"all"===this.options.direction||null,this.options.top="y"===this.options.direction||"all"===this.options.direction||null,this.options.bottom="y"===this.options.direction||"all"===this.options.direction||null),this.parseUnderflow(),this.last={x:null,y:null,scaleX:null,scaleY:null},this.update()}parseUnderflow(){var e=this.options.underflow.toLowerCase();"none"===e?this.noUnderflow=!0:("center"===e?this.underflowX=this.underflowY=0:(this.underflowX=-1!==e.indexOf("left")?-1:-1!==e.indexOf("right")?1:0,this.underflowY=-1!==e.indexOf("top")?-1:-1!==e.indexOf("bottom")?1:0),this.noUnderflow=!1)}move(){return this.update(),!1}update(){if(!this.paused&&(this.parent.x!==this.last.x||this.parent.y!==this.last.y||this.parent.scale.x!==this.last.scaleX||this.parent.scale.y!==this.last.scaleY)){var t={x:this.parent.x,y:this.parent.y},i=this.parent.plugins.decelerate||{};if(null!==this.options.left||null!==this.options.right){let e=!1;if(!this.noUnderflow&&this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:0!==this.parent.x&&(this.parent.x=0,e=!0);break;case 1:this.parent.x!==this.parent.screenWidth-this.parent.screenWorldWidth&&(this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth,e=!0);break;default:this.parent.x!==(this.parent.screenWidth-this.parent.screenWorldWidth)/2&&(this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2,e=!0)}else null!==this.options.left&&this.parent.left<(!0===this.options.left?0:this.options.left)&&(this.parent.x=-(!0===this.options.left?0:this.options.left)*this.parent.scale.x,i.x=0,e=!0),null!==this.options.right&&this.parent.right>(!0===this.options.right?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(!0===this.options.right?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,i.x=0,e=!0);e&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(null!==this.options.top||null!==this.options.bottom){let e=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:0!==this.parent.y&&(this.parent.y=0,e=!0);break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,e=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,e=!0)}else null!==this.options.top&&this.parent.top<(!0===this.options.top?0:this.options.top)&&(this.parent.y=-(!0===this.options.top?0:this.options.top)*this.parent.scale.y,i.y=0,e=!0),null!==this.options.bottom&&this.parent.bottom>(!0===this.options.bottom?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(!0===this.options.bottom?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,i.y=0,e=!0);e&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}}reset(){this.update()}}const g={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class v extends r{constructor(e,t={}){super(e),this.options=Object.assign({},g,t),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused)if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight;null!==this.options.minWidth&&e<this.options.minWidth&&(r=this.parent.scale.x,this.parent.fitWidth(this.options.minWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),null!==this.options.maxWidth&&e>this.options.maxWidth&&(r=this.parent.scale.x,this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),null!==this.options.minHeight&&t<this.options.minHeight&&(r=this.parent.scale.y,this.parent.fitHeight(this.options.minHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})),null!==this.options.maxHeight&&t>this.options.maxHeight&&(r=this.parent.scale.y,this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}else if(this.options.minScale||this.options.maxScale){var i,r={x:null,y:null},n={x:null,y:null};"number"==typeof this.options.minScale?(r.x=this.options.minScale,r.y=this.options.minScale):null!==this.options.minScale&&(i=this.options.minScale,r.x=void 0===i.x?null:i.x,r.y=void 0===i.y?null:i.y),"number"==typeof this.options.maxScale?(n.x=this.options.maxScale,n.y=this.options.maxScale):null!==this.options.maxScale&&(i=this.options.maxScale,n.x=void 0===i.x?null:i.x,n.y=void 0===i.y?null:i.y);let e=this.parent.scale.x,t=this.parent.scale.y;null!==r.x&&e<r.x&&(e=r.x),null!==n.x&&e>n.x&&(e=n.x),null!==r.y&&t<r.y&&(t=r.y),null!==n.y&&t>n.y&&(t=n.y),e===this.parent.scale.x&&t===this.parent.scale.y||(this.parent.scale.set(e,t),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}reset(){this.clamp()}}const y={friction:.98,bounce:.8,minSpeed:.01};class b extends r{constructor(e,t={}){super(e),this.options=Object.assign({},y,t),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",e=>this.moved(e))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!(!this.x&&!this.y)}move(){var e;return this.paused||(1===(e=this.parent.input.count())||1<e&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),60<this.saved.length&&this.saved.splice(0,30)),!1}moved(e){var t;this.saved.length&&(t=this.saved[this.saved.length-1],"clamp-x"===e.type?t.x===e.original.x&&(t.x=this.parent.x):"clamp-y"===e.type&&t.y===e.original.y&&(t.y=this.parent.y))}up(){if(0===this.parent.input.count()&&this.saved.length){var e=performance.now();for(const i of this.saved)if(i.time>=e-100){var t=e-i.time;this.x=(this.parent.x-i.x)/t,this.y=(this.parent.y-i.y)/t,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(e){void 0!==(e=e||{}).x&&(this.x=e.x,this.percentChangeX=this.options.friction),void 0!==e.y&&(this.y=e.y,this.percentChangeY=this.options.friction)}update(e){var t,i,r,n,s;this.paused||(t=this.x||this.y,i=this.timeSinceRelease,r=this.timeSinceRelease+e,this.x&&(s=this.percentChangeX,n=Math.log(s),this.parent.x+=16*this.x/n*(Math.pow(s,r/16)-Math.pow(s,i/16)),this.x*=Math.pow(this.percentChangeX,e/16)),this.y&&(n=this.percentChangeY,s=Math.log(n),this.parent.y+=16*this.y/s*(Math.pow(n,r/16)-Math.pow(n,i/16)),this.y*=Math.pow(this.percentChangeY,e/16)),this.timeSinceRelease+=e,this.x&&this.y?Math.abs(this.x)<this.options.minSpeed&&Math.abs(this.y)<this.options.minSpeed&&(this.x=0,this.y=0):(Math.abs(this.x||0)<this.options.minSpeed&&(this.x=0),Math.abs(this.y||0)<this.options.minSpeed&&(this.y=0)),t&&this.parent.emit("moved",{viewport:this.parent,type:"decelerate"}))}reset(){this.x=this.y=null}}const x={direction:"all",pressDrag:!0,wheel:!0,wheelScroll:1,reverse:!1,clampWheel:!1,underflow:"center",factor:1,mouseButtons:"all",keyToPress:null,ignoreKeyToPressOnTouch:!1,lineHeight:20};class T extends r{constructor(e,t={}){super(e),this.options=Object.assign({},x,t),this.moved=!1,this.reverse=this.options.reverse?1:-1,this.xDirection=!this.options.direction||"all"===this.options.direction||"x"===this.options.direction,this.yDirection=!this.options.direction||"all"===this.options.direction||"y"===this.options.direction,this.keyIsPressed=!1,this.parseUnderflow(),this.mouseButtons(this.options.mouseButtons),this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",e=>{t.includes(e.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",e=>{t.includes(e.code)&&(this.keyIsPressed=!1)})}mouseButtons(e){this.mouse=e&&"all"!==e?[-1!==e.indexOf("left"),-1!==e.indexOf("middle"),-1!==e.indexOf("right")]:[!0,!0,!0]}parseUnderflow(){var e=this.options.underflow.toLowerCase();"center"===e?(this.underflowX=0,this.underflowY=0):(e.includes("left")?this.underflowX=-1:e.includes("right")?this.underflowX=1:this.underflowX=0,e.includes("top")?this.underflowY=-1:e.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(e){var t="mouse"===e.data.pointerType,i=this.parent.input.count();return!(!(1===i||1<i&&!this.parent.plugins.get("pinch",!0))||t&&!this.mouse[e.data.button])}checkKeyPress(e){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&"touch"===e.data.pointerType}down(e){if(!this.paused&&this.options.pressDrag){if(this.checkButtons(e)&&this.checkKeyPress(e))return this.last={x:e.data.global.x,y:e.data.global.y},this.current=e.data.pointerId,!0;this.last=null}return!1}get active(){return this.moved}move(e){if(!this.paused&&this.options.pressDrag&&this.last&&this.current===e.data.pointerId){var t=e.data.global.x,i=e.data.global.y,r=this.parent.input.count();if(1===r||1<r&&!this.parent.plugins.get("pinch",!0)){var r=t-this.last.x,n=i-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(r)||this.yDirection&&this.parent.input.checkThreshold(n))return r={x:t,y:i},this.xDirection&&(this.parent.x+=(r.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(r.y-this.last.y)*this.options.factor),this.last=r,this.moved||this.parent.emit("drag-start",{event:e,screen:new a.Point(this.last.x,this.last.y),world:this.parent.toWorld(new a.Point(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}else this.moved=!1}return!1}up(e){var t;return!this.paused&&(1===(t=this.parent.input.touches).length?((t=t[0]).last&&(this.last={x:t.last.x,y:t.last.y},this.current=t.id),!(this.moved=!1)):!(!this.last||!this.moved)&&(t=new a.Point(this.last.x,this.last.y),this.parent.emit("drag-end",{event:e,screen:t,world:this.parent.toWorld(t),viewport:this.parent}),this.last=null,!(this.moved=!1)))}wheel(e){if(!this.paused&&this.options.wheel){var t=this.parent.plugins.get("wheel",!0);if(!t||!t.options.wheelZoom&&!e.ctrlKey)return t=e.deltaMode?this.options.lineHeight:1,this.xDirection&&(this.parent.x+=e.deltaX*t*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=e.deltaY*t*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||e.preventDefault(),this.parent.options.stopPropagation&&e.stopPropagation(),!0}return!1}resume(){this.last=null,this.paused=!1}clamp(){var e=this.parent.plugins.get("decelerate",!0)||{};if("y"!==this.options.clampWheel)if(this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x=0;break;case 1:this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}else this.parent.left<0?(this.parent.x=0,e.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,e.x=0);if("x"!==this.options.clampWheel)if(this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y=0;break;case 1:this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}else this.parent.top<0&&(this.parent.y=0,e.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,e.y=0)}}const w={speed:0,acceleration:null,radius:null};class E extends r{constructor(e,t,i={}){super(e),this.target=t,this.options=Object.assign({},w,i),this.velocity={x:0,y:0}}update(i){if(!this.paused){var r=this.parent.center;let e=this.target.x,t=this.target.y;if(this.options.radius){if(!(Math.sqrt(Math.pow(this.target.y-r.y,2)+Math.pow(this.target.x-r.x,2))>this.options.radius))return;var n=Math.atan2(this.target.y-r.y,this.target.x-r.x);e=this.target.x-Math.cos(n)*this.options.radius,t=this.target.y-Math.sin(n)*this.options.radius}var s,o,a,n=e-r.x,l=t-r.y;(n||l)&&(this.options.speed?this.options.acceleration?(o=Math.atan2(t-r.y,e-r.x),(s=Math.sqrt(Math.pow(n,2)+Math.pow(l,2)))&&(a=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration),this.velocity=a<s?{x:Math.min(this.velocity.x+this.options.acceleration*i,this.options.speed),y:Math.min(this.velocity.y+this.options.acceleration*i,this.options.speed)}:{x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)},a=Math.cos(o)*this.velocity.x,s=Math.sin(o)*this.velocity.y,i=Math.abs(a)>Math.abs(n)?e:r.x+a,o=Math.abs(s)>Math.abs(l)?t:r.y+s,this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"follow"}))):(a=Math.atan2(t-r.y,e-r.x),s=Math.cos(a)*this.options.speed,i=Math.sin(a)*this.options.speed,o=Math.abs(s)>Math.abs(n)?e:r.x+s,a=Math.abs(i)>Math.abs(l)?t:r.y+i,this.parent.moveCenter(o,a),this.parent.emit("moved",{viewport:this.parent,type:"follow"})):(this.parent.moveCenter(e,t),this.parent.emit("moved",{viewport:this.parent,type:"follow"})))}}}const S={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class A extends r{constructor(e,t={}){super(e),this.options=Object.assign({},S,t),this.reverse=this.options.reverse?1:-1,this.radiusSquared="number"==typeof this.options.radius?Math.pow(this.options.radius,2):null,this.resize()}resize(){var e=this.options.distance;null!==e?(this.left=e,this.top=e,this.right=this.parent.screenWidth-e,this.bottom=this.parent.screenHeight-e):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=null===this.options.right?null:this.parent.screenWidth-this.options.right,this.bottom=null===this.options.bottom?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(e){var t,i;return this.paused||"mouse"!==e.data.pointerType&&1!==e.data.identifier||!this.options.allowButtons&&0!==e.data.buttons||(t=e.data.global.x,e=e.data.global.y,this.radiusSquared?(i=this.parent.toScreen(this.parent.center),Math.pow(i.x-t,2)+Math.pow(i.y-e,2)>=this.radiusSquared?(i=Math.atan2(i.y-e,i.x-t),this.options.linear?(this.horizontal=Math.round(Math.cos(i))*this.options.speed*this.reverse*.06,this.vertical=Math.round(Math.sin(i))*this.options.speed*this.reverse*.06):(this.horizontal=Math.cos(i)*this.options.speed*this.reverse*.06,this.vertical=Math.sin(i)*this.options.speed*this.reverse*.06)):(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0)):(null!==this.left&&t<this.left?this.horizontal=Number(this.reverse)*this.options.speed*.06:null!==this.right&&t>this.right?this.horizontal=-1*this.reverse*this.options.speed*.06:(this.decelerateHorizontal(),this.horizontal=0),null!==this.top&&e<this.top?this.vertical=Number(this.reverse)*this.options.speed*.06:null!==this.bottom&&e>this.bottom?this.vertical=-1*this.reverse*this.options.speed*.06:(this.decelerateVertical(),this.vertical=0))),!1}decelerateHorizontal(){var e=this.parent.plugins.get("decelerate",!0);this.horizontal&&e&&!this.options.noDecelerate&&e.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){var e=this.parent.plugins.get("decelerate",!0);this.vertical&&e&&!this.options.noDecelerate&&e.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){var e;this.paused||(this.horizontal||this.vertical)&&(e=this.parent.center,this.horizontal&&(e.x+=this.horizontal*this.options.speed),this.vertical&&(e.y+=this.vertical*this.options.speed),this.parent.moveCenter(e),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"}))}}const F={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};class k extends r{__init(){this.active=!1}__init2(){this.pinching=!1}__init3(){this.moved=!1}constructor(e,t={}){super(e),k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),this.options=Object.assign({},F,t)}down(){return 2<=this.parent.input.count()&&(this.active=!0)}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(i){if(!this.paused&&this.active){var r=i.data.global.x,n=i.data.global.y,s=this.parent.input.touches;if(2<=s.length){var o=s[0],s=s[1],a=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===i.data.pointerId?o.last={x:r,y:n,data:i.data}:s.id===i.data.pointerId&&(s.last={x:r,y:n,data:i.data}),a){let e;r={x:o.last.x+(s.last.x-o.last.x)/2,y:o.last.y+(s.last.y-o.last.y)/2};this.options.center||(e=this.parent.toLocal(r));let t=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));n=(1-a/(t=0===t?t=1e-10:t))*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y),i=(this.isAxisX()&&(this.parent.scale.x+=n),this.isAxisY()&&(this.parent.scale.y+=n),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:r}),this.parent.plugins.get("clamp-zoom",!0));i&&i.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(s=this.parent.toGlobal(e),this.parent.x+=(r.x-s.x)*this.options.factor,this.parent.y+=(r.y-s.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(r.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(r.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=r,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}}return!1}up(){return!!(this.pinching&&this.parent.input.touches.length<=1)&&(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0)}}const N={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class P extends r{constructor(e,t,i,r={}){super(e),this.options=Object.assign({},N,r),this.ease=u(r.ease,"easeInOutSine"),this.x=t,this.y=i,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};var e=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-e.x,this.deltaY=this.y-e.y,this.startX=e.x,this.startY=e.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){var e;return 0===this.parent.input.count()&&(e=this.parent.plugins.get("decelerate",!0))&&(e.x||e.y)&&(e.percentChangeX=e.percentChangeY=this.options.friction),!1}update(r){if(!(this.paused||this.options.interrupt&&0!==this.parent.input.count()))if(this.snapping){var n=this.snapping;n.time+=r;let e,t,i;var r=this.startX,s=this.startY,o=this.deltaX,a=this.deltaY;i=n.time>this.options.time?(e=!0,t=r+o,s+a):(n=this.ease(n.time,0,1,this.options.time),t=r+o*n,s+a*n),this.options.topLeft?this.parent.moveCorner(t,i):this.parent.moveCenter(t,i),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),e&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{r=this.options.topLeft?this.parent.corner:this.parent.center;r.x===this.x&&r.y===this.y||this.snapStart()}}}const z={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class O extends r{constructor(e,t={}){super(e),this.options=Object.assign({},z,t),this.ease=u(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,(this.yScale=0)<this.options.width&&(this.xScale=e.screenWidth/this.options.width,this.xIndependent=!0),0<this.options.height&&(this.yScale=e.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,0===this.options.time?(e.container.scale.x=this.xScale,e.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):t.forceStart&&this.createSnapping()}createSnapping(){var e=this.parent.worldScreenWidth,t=this.parent.worldScreenHeight,i=this.parent.screenWidth/this.xScale,r=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:e,startY:t,deltaX:i-e,deltaY:r-t},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,0<this.options.width&&(this.xScale=this.parent.screenWidth/this.options.width),0<this.options.height&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(!(this.paused||this.options.interrupt&&0!==this.parent.input.count())){let e;var i;this.options.center||this.options.noMove||(e=this.parent.center),this.snapping?this.snapping&&((i=this.snapping).time+=t,i.time>=this.options.time?(this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null):(t=this.snapping,i=this.ease(t.time,t.startX,t.deltaX,this.options.time),t=this.ease(t.time,t.startY,t.deltaY,this.options.time),this.parent.scale.x=this.parent.screenWidth/i,this.parent.scale.y=this.parent.screenHeight/t),(i=this.parent.plugins.get("clamp-zoom",!0))&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(e))):this.parent.scale.x===this.xScale&&this.parent.scale.y===this.yScale||this.createSnapping()}}resume(){this.snapping=null,super.resume()}}const B={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class R extends r{constructor(e,t={}){super(e),this.options=Object.assign({},B,t),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",e=>{t.includes(e.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",e=>{t.includes(e.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){var t=this.smoothingCenter,i=this.smoothing;let e;this.options.center||(e=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=i.x),this.isAxisY()&&(this.parent.scale.y+=i.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});var i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(i=this.parent.toGlobal(e),this.parent.x+=t.x-i.x,this.parent.y+=t.y-i.y),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(!this.paused){var i=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,r=Math.pow(2,(1+this.options.percent)*r);let e;this.options.center||(e=this.parent.toLocal(i)),this.isAxisX()&&(this.parent.scale.x*=r),this.isAxisY()&&(this.parent.scale.y*=r),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});r=this.parent.plugins.get("clamp-zoom",!0);r&&r.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(r=this.parent.toGlobal(e),this.parent.x+=i.x-r.x,this.parent.y+=i.y-r.y),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel",{wheel:{dx:t.deltaX,dy:t.deltaY,dz:t.deltaZ},event:t,viewport:this.parent})}}wheel(e){if(this.paused)return!1;if(!this.checkKeyPress())return!1;if(e.ctrlKey&&this.options.trackpadPinch)this.pinch(e);else if(this.options.wheelZoom){var t=this.parent.input.getPointerPosition(e),i=(this.options.reverse?-1:1)*-e.deltaY*(e.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*i);if(this.options.smooth){var r={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+r.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+r.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=t}else{let e;this.options.center||(e=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});r=this.parent.plugins.get("clamp-zoom",!0);r&&r.clamp(),this.options.center?this.parent.moveCenter(this.options.center):(i=this.parent.toGlobal(e),this.parent.x+=t.x-i.x,this.parent.y+=t.y-i.y)}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel",{wheel:{dx:e.deltaX,dy:e.deltaY,dz:e.deltaZ},event:e,viewport:this.parent})}return!this.parent.options.passiveWheel}}class C{constructor(e){this.viewport=e,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new a.Rectangle(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.on("pointerout",this.up,this),this.wheelFunction=e=>this.handleWheel(e),this.viewport.options.divWheel.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.divWheel.removeEventListener("wheel",this.wheelFunction)}down(e){var t,i;!this.viewport.pause&&this.viewport.worldVisible&&("mouse"===e.data.pointerType?this.isMouseDown=!0:this.get(e.data.pointerId)||this.touches.push({id:e.data.pointerId,last:null}),1!==this.count()||(this.last=e.data.global.clone(),t=this.viewport.plugins.get("decelerate",!0),i=this.viewport.plugins.get("bounce",!0),t&&t.isActive()||i&&i.isActive())?this.clickedAvailable=!1:this.clickedAvailable=!0,this.viewport.plugins.down(e)&&this.viewport.options.stopPropagation&&e.stopPropagation())}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(e){return Math.abs(e)>=this.viewport.threshold}move(e){var t,i,r;!this.viewport.pause&&this.viewport.worldVisible&&(t=this.viewport.plugins.move(e),this.clickedAvailable&&this.last&&(i=e.data.global.x-this.last.x,r=e.data.global.y-this.last.y,(this.checkThreshold(i)||this.checkThreshold(r))&&(this.clickedAvailable=!1)),t&&this.viewport.options.stopPropagation&&e.stopPropagation())}up(e){var t;!this.viewport.pause&&this.viewport.worldVisible&&("mouse"===e.data.pointerType&&(this.isMouseDown=!1),"mouse"!==e.data.pointerType&&this.remove(e.data.pointerId),t=this.viewport.plugins.up(e),this.clickedAvailable&&0===this.count()&&this.last&&(this.viewport.emit("clicked",{event:e,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this}),this.clickedAvailable=!1),t&&this.viewport.options.stopPropagation&&e.stopPropagation())}getPointerPosition(e){var t,i=new a.Point;return this.viewport.options.interaction?this.viewport.options.interaction.mapPositionToPoint(i,e.clientX,e.clientY):this.viewport.options.useDivWheelForInputManager&&this.viewport.options.divWheel?(t=this.viewport.options.divWheel.getBoundingClientRect(),i.x=e.clientX-t.left,i.y=e.clientY-t.top):(i.x=e.clientX,i.y=e.clientY),i}handleWheel(e){var t;this.viewport.pause||!this.viewport.worldVisible||this.viewport.options.interaction&&this.viewport.options.interaction.interactionDOMElement!==e.target||(t=this.viewport.toLocal(this.getPointerPosition(e)),this.viewport.left<=t.x&&t.x<=this.viewport.right&&this.viewport.top<=t.y&&t.y<=this.viewport.bottom&&this.viewport.plugins.wheel(e)&&!this.viewport.options.passiveWheel&&e.preventDefault())}pause(){this.touches=[],this.isMouseDown=!1}get(e){for(const t of this.touches)if(t.id===e)return t;return null}remove(t){for(let e=0;e<this.touches.length;e++)if(this.touches[e].id===t)return void this.touches.splice(e,1)}count(){return(this.isMouseDown?1:0)+this.touches.length}}function M(e){let t=void 0,i=e[0],r=1;for(;r<e.length;){var n=e[r],s=e[r+1];if(r+=2,("optionalAccess"===n||"optionalCall"===n)&&null==i)return;"access"===n||"optionalAccess"===n?i=s(t=i):"call"!==n&&"optionalCall"!==n||(i=s((...e)=>i.call(t,...e)),t=void 0)}return i}const I=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class D{constructor(e){this.viewport=e,this.list=[],this.plugins={}}add(e,t,i=I.length){this.plugins[e]=t;t=I.indexOf(e);-1!==t&&I.splice(t,1),I.splice(i,0,e),this.sort()}get(t,e){return e&&M([this,"access",e=>e.plugins,"access",e=>e[t],"optionalAccess",e=>e.paused])?null:this.plugins[t]}update(e){for(const t of this.list)t.update(e)}resize(){for(const e of this.list)e.resize()}reset(){for(const e of this.list)e.reset()}removeAll(){this.plugins={},this.sort()}remove(e){this.plugins[e]&&(delete this.plugins[e],this.viewport.emit(e+"-remove"),this.sort())}pause(t){M([this,"access",e=>e.plugins,"access",e=>e[t],"optionalAccess",e=>e.pause,"call",e=>e()])}resume(t){M([this,"access",e=>e.plugins,"access",e=>e[t],"optionalAccess",e=>e.resume,"call",e=>e()])}sort(){this.list=[];for(const e of I)this.plugins[e]&&this.list.push(this.plugins[e])}down(e){let t=!1;for(const i of this.list)i.down(e)&&(t=!0);return t}move(e){let t=!1;for(const i of this.viewport.plugins.list)i.move(e)&&(t=!0);return t}up(e){let t=!1;for(const i of this.list)i.up(e)&&(t=!0);return t}wheel(e){let t=!1;for(const i of this.list)i.wheel(e)&&(t=!0);return t}}const U={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,interaction:null,disableOnContextMenu:!1,ticker:i.Ticker.shared};class L extends t.Container{__init(){this._disableOnContextMenu=e=>e.preventDefault()}constructor(e={}){super(),L.prototype.__init.call(this),this.options=Object.assign({},{divWheel:document.body},U,e),this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.divWheel=this.options.divWheel||document.body,this.options.disableOnContextMenu&&this.options.divWheel.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new C(this),this.plugins=new D(this)}destroy(e){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.divWheel.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(e)}update(e){this.pause||(this.plugins.update(e),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new a.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(e=window.innerWidth,t=window.innerHeight,i,r){this.screenWidth=e,this.screenHeight=t,void 0!==i&&(this._worldWidth=i),void 0!==r&&(this._worldHeight=r),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth||this.width/this.scale.x}set worldWidth(e){this._worldWidth=e,this.plugins.resize()}get worldHeight(){return this._worldHeight||this.height/this.scale.y}set worldHeight(e){this._worldHeight=e,this.plugins.resize()}getVisibleBounds(){return new a.Rectangle(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(e,t){return 2===arguments.length?this.toLocal(new a.Point(e,t)):this.toLocal(e)}toScreen(e,t){return 2===arguments.length?this.toGlobal(new a.Point(e,t)):this.toGlobal(e)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new a.Point(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(e){this.moveCenter(e)}moveCenter(...e){let t,i;i="number"==typeof e[0]?(t=e[0],e[1]):(t=e[0].x,e[0].y);var e=(this.worldScreenWidth/2-t)*this.scale.x,r=(this.worldScreenHeight/2-i)*this.scale.y;return this.x===e&&this.y===r||(this.position.set(e,r),this.plugins.reset(),this.dirty=!0),this}get corner(){return new a.Point(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(e){this.moveCorner(e)}moveCorner(...e){let t,i;return i=1===e.length?(t=-e[0].x*this.scale.x,-e[0].y*this.scale.y):(t=-e[0]*this.scale.x,-e[1]*this.scale.y),t===this.x&&i===this.y||(this.position.set(t,i),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(e){return this.screenWidth/e}findFitHeight(e){return this.screenHeight/e}findFit(e,t){e=this.screenWidth/e,t=this.screenHeight/t;return Math.min(e,t)}findCover(e,t){e=this.screenWidth/e,t=this.screenHeight/t;return Math.max(e,t)}fitWidth(e=this.worldWidth,t,i=!0,r){let n;t&&(n=this.center),this.scale.x=this.screenWidth/e,i&&(this.scale.y=this.scale.x);e=this.plugins.get("clamp-zoom",!0);return!r&&e&&e.clamp(),t&&n&&this.moveCenter(n),this}fitHeight(e=this.worldHeight,t,i=!0,r){let n;t&&(n=this.center),this.scale.y=this.screenHeight/e,i&&(this.scale.x=this.scale.y);e=this.plugins.get("clamp-zoom",!0);return!r&&e&&e.clamp(),t&&n&&this.moveCenter(n),this}fitWorld(e){let t;e&&(t=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;var i=this.plugins.get("clamp-zoom",!0);return i&&i.clamp(),e&&t&&this.moveCenter(t),this}fit(e,t=this.worldWidth,i=this.worldHeight){let r;e&&(r=this.center),this.scale.x=this.screenWidth/t,this.scale.y=this.screenHeight/i,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;t=this.plugins.get("clamp-zoom",!0);return t&&t.clamp(),e&&r&&this.moveCenter(r),this}setZoom(e,t){let i;t&&(i=this.center),this.scale.set(e);e=this.plugins.get("clamp-zoom",!0);return e&&e.clamp(),t&&i&&this.moveCenter(i),this}zoomPercent(e,t){return this.setZoom(this.scale.x+this.scale.x*e,t)}zoom(e,t){return this.fitWidth(e+this.worldScreenWidth,t),this}get scaled(){return this.scale.x}set scaled(e){this.setZoom(e,!0)}snapZoom(e){return this.plugins.add("snap-zoom",new O(this,e)),this}OOB(){return{left:this.left<0,right:this.right>this.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new a.Point(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(e){this.x=-e*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(e){this.x=-e*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(e){this.y=-e*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(e){this.y=-e*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(e){this._dirty=e}get forceHitArea(){return this._forceHitArea}set forceHitArea(e){e?(this._forceHitArea=e,this.hitArea=e):(this._forceHitArea=null,this.hitArea=new a.Rectangle(0,0,this.worldWidth,this.worldHeight))}drag(e){return this.plugins.add("drag",new T(this,e)),this}clamp(e){return this.plugins.add("clamp",new _(this,e)),this}decelerate(e){return this.plugins.add("decelerate",new b(this,e)),this}bounce(e){return this.plugins.add("bounce",new f(this,e)),this}pinch(e){return this.plugins.add("pinch",new k(this,e)),this}snap(e,t,i){return this.plugins.add("snap",new P(this,e,t,i)),this}follow(e,t){return this.plugins.add("follow",new E(this,e,t)),this}wheel(e){return this.plugins.add("wheel",new R(this,e)),this}animate(e){return this.plugins.add("animate",new c(this,e)),this}clampZoom(e){return this.plugins.add("clamp-zoom",new v(this,e)),this}mouseEdges(e){return this.plugins.add("mouse-edges",new A(this,e)),this}get pause(){return!!this._pause}set pause(e){this._pause=e,this.lastViewport=null,this.moving=!1,this.zooming=!1,e&&this.input.pause()}ensureVisible(e,t,i,r,n){n&&(i>this.worldScreenWidth||r>this.worldScreenHeight)&&(this.fit(!0,i,r),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;e<this.left?(this.left=e,s=!0):e+i>this.right&&(this.right=e+i,s=!0),t<this.top?(this.top=t,s=!0):t+r>this.bottom&&(this.bottom=t+r,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}e.Animate=c,e.Bounce=f,e.Clamp=_,e.ClampZoom=v,e.Decelerate=b,e.Drag=T,e.Follow=E,e.InputManager=C,e.MouseEdges=A,e.Pinch=k,e.Plugin=r,e.PluginManager=D,e.Snap=P,e.SnapZoom=O,e.Viewport=L,e.Wheel=R,Object.defineProperty(e,"__esModule",{value:!0})}),"undefined"!=typeof pixi_viewport&&Object.assign(this.PIXI,pixi_viewport),!function(){"use strict";var h=new("undefined"==typeof WebKitCSSMatrix?DOMMatrix:WebKitCSSMatrix);function c(e,t,i){this.x=e,this.y=t,this.z=i}function r(e){for(var t=h,i=e;null!=i&&i!==i.ownerDocument.documentElement;)var r=window.getComputedStyle(i,void 0).transform||"none",t=("none"===r?h:function(t){try{return new("undefined"==typeof WebKitCSSMatrix?DOMMatrix:WebKitCSSMatrix)(t)}catch(e){return console.warn(t),console.warn(e.toString()),h}}(r)).multiply(t),i=i.parentNode;for(var n=e.offsetWidth,s=e.offsetHeight,o=4,a=1/0,l=1/0;0<=--o;){var u=new c(0===o||1===o?0:n,0===o||3===o?0:s,0).transformBy(t);u.x<a&&(a=u.x),u.y<l&&(l=u.y)}e=e.getBoundingClientRect();return t=h.translate(window.pageXOffset+e.left-a,window.pageYOffset+e.top-l,0).multiply(t)}c.prototype.transformBy=function(e){e=e.multiply(h.translate(this.x,this.y,this.z));return new c(e.m41,e.m42,e.m43)},window.convertPointFromPageToNode=function(e,t,i){return new c(t,i,0).transformBy(r(e).inverse())},window.convertPointFromNodeToPage=function(e,t,i){return new c(t,i,0).transformBy(r(e))}}(),!function(){var e={exports:null};function t(e){var t=[],i=0;if(this.trie=this.createTrie(e.patterns),this.leftMin=e.leftmin,this.rightMin=e.rightmin,this.exceptions={},e.exceptions)for(t=e.exceptions.split(/,\s?/g);i<t.length;i+=1)this.exceptions[t[i].replace(/\u2027/g,"").toLowerCase()]=new RegExp("("+t[i].split("‧").join(")(")+")","i")}t.prototype.createTrie=function(e){var t,i,r,n=0,s=0,o=0,a=0,l=null,u=null,h={_points:[]};for(n in e)if(e.hasOwnProperty(n))for(r=e[n].match(new RegExp(".{1,"+ +n+"}","g")),s=0;s<r.length;s+=1){for(l=r[s].replace(/[0-9]/g,"").split(""),t=r[s].split(/\D/),u=h,o=0;o<l.length;o+=1)u[i=l[o].charCodeAt(0)]||(u[i]={}),u=u[i];for(u._points=[],a=0;a<t.length;a+=1)u._points[a]=t[a]||0}return h},t.prototype.hyphenateText=function(e,t){t=t||4;for(var i=e.split(/([a-zA-Z0-9_\u0027\u00DF-\u00EA\u00EC-\u00EF\u00F1-\u00F6\u00F8-\u00FD\u0101\u0103\u0105\u0107\u0109\u010D\u010F\u0111\u0113\u0117\u0119\u011B\u011D\u011F\u0123\u0125\u012B\u012F\u0131\u0135\u0137\u013C\u013E\u0142\u0144\u0146\u0148\u0151\u0153\u0155\u0159\u015B\u015D\u015F\u0161\u0165\u016B\u016D\u016F\u0171\u0173\u017A\u017C\u017E\u017F\u0219\u021B\u02BC\u0390\u03AC-\u03CE\u03F2\u0401\u0410-\u044F\u0451\u0454\u0456\u0457\u045E\u0491\u0531-\u0556\u0561-\u0587\u0902\u0903\u0905-\u090B\u090E-\u0910\u0912\u0914-\u0928\u092A-\u0939\u093E-\u0943\u0946-\u0948\u094A-\u094D\u0982\u0983\u0985-\u098B\u098F\u0990\u0994-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BE-\u09C3\u09C7\u09C8\u09CB-\u09CD\u09D7\u0A02\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A14-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A82\u0A83\u0A85-\u0A8B\u0A8F\u0A90\u0A94-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABE-\u0AC3\u0AC7\u0AC8\u0ACB-\u0ACD\u0B02\u0B03\u0B05-\u0B0B\u0B0F\u0B10\u0B14-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B57\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C02\u0C03\u0C05-\u0C0B\u0C0E-\u0C10\u0C12\u0C14-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3E-\u0C43\u0C46-\u0C48\u0C4A-\u0C4D\u0C82\u0C83\u0C85-\u0C8B\u0C8E-\u0C90\u0C92\u0C94-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBE-\u0CC3\u0CC6-\u0CC8\u0CCA-\u0CCD\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D60\u0D61\u0D7A-\u0D7F\u1F00-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB2-\u1FB4\u1FB6\u1FB7\u1FBD\u1FBF\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD2\u1FD3\u1FD6\u1FD7\u1FE2-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u200D\u2019]+)/g),r=0;r<i.length;r+=1)-1!==i[r].indexOf("/")?0===r||r===i.length-1||/\s+\/|\/\s+/.test(i[r])||(i[r]+=""):i[r].length>t&&(i[r]=this.hyphenate(i[r]).join(""));return i.join("")},t.prototype.hyphenate=function(e){var t,i,r,n,s,o,a,l,u,h=[],c=[],p=e.toLowerCase(),d=Math.max,f=this.trie,m=[""];if(this.exceptions.hasOwnProperty(p))return e.match(this.exceptions[p]).slice(1);if(-1!==e.indexOf(""))return[e];for(t=(e="_"+e+"_").toLowerCase().split(""),i=e.split(""),a=t.length,r=0;r<a;r+=1)h[r]=t[r].charCodeAt(c[r]=0);for(r=0;r<a;r+=1)for(o=f,n=r;n<a&&(o=o[h[n]]);n+=1)if(l=o._points)for(s=0,u=l.length;s<u;s+=1)c[r+s]=d(c[r+s],l[s]);for(r=1;r<a-1;r+=1)r>this.leftMin&&r<a-this.rightMin&&c[r]%2?m.push(i[r]):m[m.length-1]+=i[r];return m},e.exports=t,window.Hypher=e.exports,window.Hypher.languages={}}(),(void(jQuery.fn.hyphenate=function(i){if(window.Hypher.languages[i])return this.each(function(){for(var e=0,t=this.childNodes.length;e<t;e+=1)3===this.childNodes[e].nodeType&&(this.childNodes[e].nodeValue=window.Hypher.languages[i].hyphenateText(this.childNodes[e].nodeValue))})}))(function(){var e={exports:null,exports:{id:"de",leftmin:2,rightmin:2,patterns:{3:"2aaa1äa1ba1da1ga1j2aoa1öa1p2aqa1ßa2ua1xä1aä1bä1dä1gä1jä1k1äqä1ß1äxä1z1bibl21cacä3c1dc4h1cic1jc4k3co2cp2cs3cu1cy1de1did1ö1due1be1d4eee1fe1ge1ke1m2eoe1pe1qe1ße1te3üe1wey1e1z1fa1fä1fe1fi1fo1fö1fu1fü1fy2gd1geg1n1guh1j2hl2hnh1q2hr4hsh2ü2hwh1zi1a2iä2ici1d2ifi1ji1ßi1üj2u1ka1käkl21ko1kök1q2ks1kü1le1li4ln1lo1lö1ly1ma3mä1me1mi1mo1mö1mu1mü1my1na1nä1ne1nin1j1noo1b2oco1d2oi2ol2omo1qo2uo1vo1xö1bö1dö1e1öf2önöo1ö1ßö1vö1wö1zp2a1päp2e1php1j1puqu42rc1re1ri4rnr1q1ru1rü1ry1sa1sä1sc1se1si1so1sös1t1su1sü1ße1ßiß1j1ßu1ta1tä1tet1h1ti1to2tö2ts1tu2tü2ua2ucu1h2uiu1ju1lun12uou1q2usu1w1üb2üc2üdü1gü1k2ünü1ß2ütü1vü1zve2v2r2vsw2aw2ä2wnw2rw2ux1a1xe1xix1jx1q1xu2xyx1zy1by1ey1gy1hy1jy1ly1py1ry1vy1wy1yzä2zu1zw2",4:"_ax4_äm3_ch2_en1_eu1_fs4_gd2_gs4_he2_ia4_in1_ks2_oa3_öd2_pf4_ph4_ps2_st4_th4_ts2_um3_ur1_xe3a1abaa1ca3au2abaab1ä1abd1abf1abg1abh2abi1abkab1l1abnab3r1abs2abu2abü1abw2aby1abz2aca2acc2acu1add2adf2adh5adj2ado2adp2adq2adu2a1eae2bae2cae2da2ekae2pa2eta2ewae2xaf1a2afe2afia2fö2agaag2n2agt2ah_2ahsa1huah1wa1hyaif2a2il2aisaje22ak_2akb2akc2akd4ako2aks1akza1laa1lä2ale2ali2aloa1lu4aly2am_2amä2amf2amk2amla2mö2amu1anb2ane1anf1anh2anj1anl2anna1nö1anra1nü1anwao1ia1opa1or2ap_2apa2apea2pfap2n2apr2ar_a1raa1rä1arb2are2arf2arh2ari2arr2arua2rü2arv2ary4asha2söa2süaße22a1tata1at2cat2eat2h3atmat1ö4atra3tü2au_2aub4auc2aue2aug2auj4aum4aunau1o2auu2auw2aux2auz2a1ü2a1v4avia2vr2a1wax2eays4ay3t2a1zaz2aaz2oaz2uäb2sä1ckä2daä2dräd2s2ä1eäf3läf3räf2säg2näh1aä3hi2ähm2ähsä1huäh1wä1imä1la2äleä1lu2ämläm2s2än_2äne2änsä1onä1paär1äär1c4äreä1röä2rü1ärzä3suä3teät2häu1cä2uf1äug4äul2äumä2un2äur1äuß4ä1v3bah3basb2ärb2äs4b1bb3bebb2sbbu12b1c3be_3bea3beb3bek3bel1bembe1o3bet1bezbge3bib23bilbiz24b1j2bl_b2leb2lo3blü2b1mbni2bo4abo2cboe1b1op2böfb1öl2b1qb2r42br_3brä3brü4b1sb3säb3scb4slb2söbss2bs2t4b3tb5teb4thbt4rbtü1bu2fbü1c2b1v2b1w3by1by3pbys2ca1h3camc4an3carcäs22c1ccch22cec2cefce1i2cek1cen1cer1cetce1u2c1f4ch_2chb2chc2chd2chf2chg2chh2chj2chk2chp4chs2cht4chü2chv4chw1chy2chzci1cci2s4ck_ck1ack1ä2ckb2ckc2ckd1cke2ckf2ckg2ckh1cki2ckk2ckm2ckp4cks2ckt1cku2ckv2ckw1cky2ckzclo1co2ccoi22c1qcre2cry2cs2ac2si4c1tcti22c1z3da_da1ad1afd1agda1sdä2u2d1cd3dhd5dodeg2d1eides1det2dga2d3gl3di_3dicdi2edi1p2d1j4d1ld3ladni2d1obdo2o2d1qd2r4d3rid3rö2d1s4dsb4dsld2södss4dst42d1td2thdto2d3tödt3rd3tüdu2fdu1idu1odur22düb3düf3dün2d1wdwa2dy2s2d1z2e1aea2ceak1eam3e2ase1ä22eba2ebl2ebre3bue1ce2ecle3cr2ected2eed2öee1eeeg2e1eie1en2ef_2efa2efe2efi2eflefs22efu2efüegd4e3gee2gn2egue1hee1hi2ehme1hoehs22ehte1hue1hüeh1we1hy4eibe2idei1ee4ilei1p2eire2it2eiu2e1jek2a1ekdek4nek2oek4r2ektek2ue1la2eli2eln2eloe1lü2elz2ema2emm2emüen3fe4nre4nten1ue1nüe1nye1ofe1ohe4ole1ore1ove1ö2e3pae3puer1ae1räer1cer3h2erie1roer1ö2eru2esbes2c2esf4eshes3l2esmes2ö2esp2esres3we3syes3ze3teet2he3tie3tö2etre3tü2etz2euf1euke1um2euneu1p2eut2eux2e1ve3vo2ewae3wä2eweew2s2ex_3exp2exuey4neys4e3ziez2wfab43facf4ahf2alf2arf3atfä1cf1äu2f1cfe2c3fewf1ex3fez2f1fff2efff4ff3lff2s3fi_fid2fi2ofi2r3fis3fiz2f1jf2l22fl_1fläf3löf4lü2föf2f1qf2r2f3ruf3rü4f1sf3scf3sifs2tf2süf3sy4f1tf2thf3töf3tü3fugf1umf2ur3fut2fübfü2r2f1v2f1w2f1zfz2afz2öfzu33ga_ga1c5gaiga1kgäs5gä4ugbi22g1cg1dag1dog1dögdt4gd1uge1cged4gef4g2el4g1gg3gegg4r2g1h4gh_gh2egh1lg2hugh1w2g1j4gl_2gls3glüg2ly2gn_gn2e2gng2gnp2gns2gnt2gnug2nüg2ny2gnzgo4a2goggo1igo1y2g1qg2r4gse2g4slgso2gsp4g4swg3sy2g1tg3tegt2sg3tügu1cgu2egu2t2gübgür1güs32g1v2g1w3haah1ahh1aph2as2h1c2heahe3x2hi_2hiahi2ehi2n2hio2hiuhlb4hld4hlg4hll2hlm2h2lo2h1mh2moh3möhm2sh2muh2nah2nähn2eh1nu2hodhoe42hoih2on2hoo2hop3hov1h2öhö2ch4örhr1chr3dhrf2hrg2h2rihrr4h3rüh2ryhrz2hss24h1th2thhto2h4tshtt4h3tühu1chu2n2hurhüs32h1vhvi23hyg3hyphz2o2ia_i4aai2ab2iaci2afi2ahi3aii2aji2ak2iali2am2iani2apia1q2iasi3au2iavi1ämiär22i1bib2oi2böice1idt4i2dyie1ci1eii1exif3lif3rif2s2i1gi2gli3go4i1hi3heih3mih3nih3rihs2ih1wi3i2ii4s2i1k4ikei2kni1la6ilbil2cilf22iloilv42im_2ime2imo2imt2imu2inein3f2inoi1nö2inp2inrin1ui1ny2i1oio1cio2dion2i2ori2oui2ovio2xi3ön2ip_i1pai1peiph2ip4li1pr2ips2ipu2i1qi1räir1cir2eir2i2irki1roi1rö2isb2iseis3ti2sü4itäi6tli3töi3tü2itzium12i1v2i1w2i1xi2xai3xi2i1zi2zöja1c2jatje2aje1cje2gje2pje3wji2ajit3ji2vjoa3jo2iju2kjus32j1v3ka_ka1ck2adk2agka2o3kask1ähk1änkär2kby42k3cki1c3kir2kiz2k3j4kl_k2lek1lu2kly2k1mk2n2k3nek3nu3knü3komk2onk2os3kowkö2fk1ölk2r4kst44k1tk2thktt2k3tükt3zku1ckuh12kübkü1c2k1v2k1w3la_1lad2laf1lai3lao1lawlay1lä1c1läd2läf4lät2l1blb2slb2u2l1c4l1dld3rldt43le_2lec3ledle2e3lehl2ek2leple2u3levl2ey2l1flf4u2l1glgd4l3go3li_3liali1cl2ie3ligli3l2limli2o3liu4l1j2l1klk2l4l1lllb4llg4llk4ll5mlln22l1mlm3plm3tlnd2l3nil1nul1nü3loklo2o2lox2löd4lög4löß2l1plp2fl3pu2l1q4l1s4l1tl2thl6tsltt2l3tü1luf4luo2lur3lux2lüb5lüd2l1v2l3wly3c3lynly1oly3u2l1zl2zölz1wm1abmae2ma1f3mas3maßm4aymb4lmby42m3c2m1dmd1ameb43mehme1o2meö3mesmeu13mi_mi1c3mig3mil3mit2m1jm3ka4m1lm3li4m1mmmd2mmm2mm3pmm2smoa33moh3mom3mos3motmo1ymö2c4mökm1öl2m1pm2pfm3pim3pu2m1q4m1sm3säm3scm3sem2süm3sy4m1tm2thm3tömtt2m3tümt3zmu1a3munm4us2müb3mün3müt2m1vmwa2my4s2m1z3na_n1af3nain1ar3nas3natn1au3näe3näs2näunby42n1cn2ck2n1dn2döndy33ne_2nec3nedn1efneg4ne2l3nenne2un2ew3nez2n1fnf2änff4n3finf4lnf2onf4rnf3s4n1gng3mn2gnn3hän3hen3hu3nian1idn4ie3niknin1n2ip2nitni3v3nix2n1k4n1nnn3fnng4n3ni3no_no1cn1of3nov3now3noz2nödn2ör2n1q6n1snsp4n3sy2n1tn3ton3tön4tsn3tun3tü1nu_1nud3nuenuf21nug1nuinu2n1nuo2nup2nur1nut1nuu1nux1nuz3nü_3nüs1nüt4n1w1ny_1nyhn1yo1nyr1nys1nyw2n1znz3so4aco4ado4aho2aro2aso4ato5au2obbob2e1objob1lo3cao1ceo1ck2odrodt4o2ecoen12ofa2ofiof3l2ofo2oft2o1go3ghogs2o1hao1häo1heo1hio1hooh1soh3to1huoh1wo3ieo1imo1inoi2r2o1j2o1kok4n4okrokt4o1lao1läol2io3loo1lu3olyoms2omy12ona2onä2onc2oneono1o1nuon3v1onyon3zoof2o1opo1oro1pao1pi2or_or1ao3räor1c4ore2orf2orh2orm2orq2orro3ru2osh2osio3sk2oso2o1to3tüoub4oug2o3uho3um2our2ouv2o1ü2ovi2ovo2o1wo3wiox2aox2eo2xu1oxyo1yo2o1zoz2eo3ziöb2l2ö1cödi3öf3lög3lög3rö1heö1huö1keök3r3öl_öls2öm2sön2eö3niön2sö1nuö1peör1cöru4ö2saö2spö2stö3su2ö1töt2höts2öze31pa_1paa1pacpag41pak1pap2paß1pat1pau3päd3pär3päs2p1b2p3cpda41pe_pe2a1pedpef4pei13pel1pem1pep3pet4pf_1pfäpff4pf3r2p1g4ph_ph2a2phä2phb4phd2phf4phg4phkph2l2phm2phn2phöph4r2phs2phz3pik1pilpi2o3pip3pispku22pl_3pläp4lo2p1n1p2opo1c3podpo2i3pokpo2wpo3xpö2c2p1ppp3lppt2p2r2p4rä2p1s4ps_p3sep2söp2st2p1tpt1ap3tep2thptt2ptü4pt3zpu1apub42puc2pur3put1püf2pülpün22p1v2p1w3py1pys4py3t2p1z1ra_r1abr2ad1raer2afr2air2alr2apr1arr2as2raß1rat1raür2ax4räf4räg2räh2rämrä2u2r1brbb2rb2orb2srb2ur1ce2r1dr2dördt43re_2reä3reg3rekre2u2reür1ew3rez2r1frf2u4r1gr1h42rh_2rha2rhä2rhö2rhsrid2r2ie3rigr2isr2itrix12r1j2r1krk4n4r1lrl2erl3t4r1mrm2urnd4r3nern3frng2r3nirn1ör1nur1nür1nyro1c2rof3roir2onr1or4roß2rox2röf4rögr1ök4röpr1örrp4erpf4r3porp3tr3pu2r1rrrb2rr1crr2or3ru4r1sr3sirs3lr3sor3sy4r1tr3tör4tsrtt4r3türt3zru1a3ruf4rug2rum3rut4ruz2rüb2r1v2r1w4r1xry2c2r1zrz2ö3sa_3saa3sams1an3sat3säl2sc_s2ci2scj4scl2scos2cr2scs2scusd4r3see3seh3seq3set2s1hsh2as3häsh3ns3hösh4rsib43sio2s1j4sk_4skbsk4lsk4n4skö4skss3läsl3bs3les3li4sna4snö3so_so4aso1c3sog3sol3somso3o3sos3sov3sow3sozsö2csö2fs1ös1sp22sp_s2pä2spls3pn4spy2s1q6s1sss3l6st_s2ta2stb2stdst2e2stf2stg4sth2stj2stk4stl4stm2stns2to1stö2stp2stqs2trst2u1stü2stv2stwsu2n3suv3süc3sün4s3v2s1ws3was3we1s4ysyl12s1zsz2os3zü2ß1c2ß1d2ß1f2ß1h2ß1l2ß1mß1o2ßos2ßst22ß1t2ß1ü2ß1v2ß1w2ß1z3ta_4taatah2t2ai2tam3tas3tav3tax4täbtä1c4täd3täe3täg2täh4tämt1äptä2st2ät2täx4t1ct4ckt3cr3te_2teh3ten3tes4th_th2e1thi2thk2thp2ths2thü2thvt2hy3tig3tik3tio3tip3tis3tiv2t1j4t3ltl4e3to_to1c3tod3tok3ton3too4toß3tow4töftö4l3tön4töß3töttpf42t1q2tr_3tritry14ts_ts1ot2söt3sy4t1tt3tit3tot3töttt4t3tut3tü2tub3tuc2tud3tue4tuf2tuh2tuk4tüb3tüf3tüm4t3v4t3wtwa21ty13typtys44t1ztz1ätz2öu1amu3auu1ayu1ämu1äu2u1bub2lub1ru1ce2u1d2u1eu2edu2eguen1u2ep2uffuf3luf3r2u1gugo3u2göu2gü2uh_uh1wu1ieu3iguk2au1keu1kiuk4nuk2öu1kuulb4ulg4u2lü1umf1umg1umk1uml4umm1umr1umz4un_u3ne2unk1unruns21unt1unw2unzu3ofuos2u1pau3piu1pr2ur_u1raurd22ure2urfu1röur3purt2u3ruurü2u2sü2u1ß2u1tu3teuto1u3töu3tüu1ü22u1xux2eux2oux3tu1ya2u1z2übc2übdübe2üb3lüb3rüd3rüf3lü2gnüg3süh1aü1heüh1iüh1süh3tü1huüh1wül1aül2cül4eü1luün2sünt2ü1nuü1peü1piür1aürr2ür2süs2aü2stva1cva1sv4at2v1b2v1dve3bve3cve3dve3gve3hve4ive3over1ves12veüve3v2v1g2v1hvi2cvig22v1k2v1m2v1n3vol3voyvö2c2v1pv3revs2e2v3t2v1v2v1w2v1z1waa1wag1wah1walwa2p1was1wäh1wäl1wäswbu22w1c2w1dwe2a1weg1wehwe2i1wet2w1g2w3h1widwi2ewik21wil2w1k2w1l2w1mwn3s1wohwot21wöc2w1pw3ro2w1sws2t2w1twti21wucwul2wus21wühwül2wün32w1w1xa_1xae2x1b2x1c4x1d2xekxe2lx1emx2en3xes2x1f2x1g2x1hxib4xi1cxi3gxil12x1l2x1m2x1nx1or4x1p2x1r4x1txt1äxt1uxu1axu2s2x1v2x1w3xy_3xys1yacy1äty1c2y1d4y2efy1f2ygi2yg2lyhr2y1i4y1k2yl3cynt2y1nuy1ofyom2y1osy1ouypa2ype2y2pfy3phypo3y3riyrr2yse1y1t2yu2ry1z2za1c3zahz1anz1as2z3czdä1ze1e2z1h2z1j3zolzo2oz1orz1öl2zön2z1qz3saz3shz3skz3sz2z1tz3töz3tüzu3azub4zud4zu3kzuz22züb2z1v4z1zzz2ö",5:"_ab1a_abi4_ab3l_abo2_ack2_ag4n_ag4r_ag2u_ai2s_ang2_an3s_apo1_aps2_as3t_at4h_au3d_ät2s_by4t_dab4_de1i_de1s_dü1b_dys1_ei3k_eke2_enn2_er1e_erf4_er1i_es1p_et2s_eu3t_ext4_fe2i_fi2s_ga4t_ge3u_hi2s_im2a_im5m_in3e_ink4_inu1_ire3_is2a_jor3_ka2i_ki4e_kus2_li2f_ma3d_ma2i_me2e_ne4s_ni4e_nob4_nus2_ob1a_obe2_or2a_ort2_ozo4_pro1_ro4a_ro3m_rü1b_sch4_sha2_te2e_te2f_te2s_ti2a_tid1_ti2s_to2w_umo2_un3d_un3e_un3g_un3s_ur2i_ut2a_ut3r_übe4_vo4r_wa2s_wi4e_wor2_ya4l_za2s_zi2e_zwe2aa2beaa2gr4a2araart2aas5tab2äuab1ebabe1eabei12abela3ber2abet2abew3abfiab1irab1it2ableab3liab4loa2blua2bo_ab2of2abora3braa4brä2abrü2abs_abs2aab5scab3spabst4ab3szab1uraby4ta1cem2ach_ach1a2achba1che4achfa1chiach3lach3mach3na1choach3öach3ra4chta1chuach3ü2achvac1in2ada_ad2agada2m4adav1a2dä2ade_2aden4a3diad2obad3ru2ads2ad3stad3szad2t1ad4tead4tra2elaa2eleae2o3aes5ta2faka2fana3faraf4ata2faua2fexaf2fl2af3lafo1saf3raaf3räaf3reaf3röaf2spag1abag1arag1auag2diag2drag2duage1iag2er2agesag3gl1aggr2a2glag4laa4glöag4nuag4roagsa2ags3pag2th2a1haah4at2a1heahe1sa1h2iahin3ah2löahnt21ahorah1osa2h3öahr1aah3riaht3saian3aid2sai1e2aien3ai3g4a3ik_ai3keai3kuai2loa1indain4ea1ingai2saaiso2a3iv_aive3a3ivla3ivs2akal2akarak4at4a1kea2kefa2keu2a1ki2ak3lak4li2a1kr4akra3akroak3sh2akta2aktb2a1kua2kun4a3kü2ala_al1abal1afala2ga3lalal1ama2larala4s2alatal1aual1ämal2bralb3sal2däal2dral3dualen1ale2pale4talf4r3algi3almba2l1öal3öfal2ös1alphal2ufa2lumal1ural2zw2am2aamab4amad2ama3g2am4e4ame_a2meba3meta2mewa3miea3mis2ammlammu2am3pr2am2sam3sa1amt_am4töam2tu2ana_2anabana3ca3nak2anam2ananan1äs2anbuan3ch2and_2andua3nee2anfi4ang_2angf2anghang1l2angoang1r2a3ni2ank_an3klank1rankt42anmu3annäan1oda3nola3nos2anpr1ansä1ansc2ansk2ant_2anto1antr1antw2a1nuanu3s2anzb2anzg2anzs1anzü2anzwa1os3ao3t2a3ot_a2pefap2faa3pfla3phäa2pht2ap3la2pot3applap3pu2a3pua3ra_ar2ab2arb_4arba2arbiar2bl2arbr2arbt2arbu1ar1ca2reaa4rega2reha4reka3renare3uar2ewarf1rar2glar2gnar2iaar1ima3riuarm2äarn2e2a1roar1oba2rorar2rh2arsaarse32arsiar2st2arto2artsar1ufar1uhar1umarwa2ar2zä2arze1arztas3aua2s1äa2sca4as2ea2seba3ses2asisas1ora2s1pas2phas2pias2poa3spuas2stas3teas3tias3to2astraßen3at1abat2afat4agata3la3tama2tatat1aua2t1ä4ate_a2teb4atena2tep4atesat3ha3athl4a3ti4atorat3räat3reat2saat2seat2siat2soat3taatt3sa3tubatu2nat2zoau2draue2baue2sau2faauff43aufn4au1iau2isau3lüaun2eau1nua4unz2aup22ausc1ausd3ausf1ausg1auslau2so1ausr1ausü1ausz2aut_2aute1autoauz2wa3v4aawi3eax4am2a1yaa1yeuaysi1ä2b3lä1cheä1chiäch3lä2chrä1chuäck2eäf2fläge1iäge3sä2g3lä2g3räg4ra1ä2gy2ä3heähl1aähl2eäh3neäh3riä1is_ä1iskä2k3lä2k3rälbe2äl2bläl2p3ämt2eän5deän2dräne1sän2f52ängeän2glän2gr2ä3niänk2eän2kränk2säp2pläp2präp4stär4afäre2när2grärk2särm2sär1o2ärse2är4siär2stärt4eär2thär2zwä5s4eäse3tä2s1päss2eäs2stäs4träte2nät1obä2t3rät2saät2sääts3lät4trät2zwäu2bräude3äu3eläuf2eäug3läu2maäun2eäu1nuäu3seä3usgä3uskä3usnäu2späu2trba2bl2babs2b1afbais2ba2kabak1lbak1rbal2a2b1amban2ab1ang2banlban3tb1anzbar3bbar3nba2scba2stbau3gbau1sba1yobben3bbe4pbb2lö2b3d4bde1sbe3anbe3arbe3asb2ebe1be1cbedi4be1eh3bef4be3g2beil2b2einbe3li1ben_ben3nbe1ra3be1sbes2abe1ur3b2ew2b1ex2b5f4bfal22b1g2bges42b5h2bhut2bi3akbibe2bie2sbik2abil2abi2lubin2ebi2o1bio3dbi3onbiri1bi3seb1isobi2spb2it_b2itebi2tu2b1k4b3lad3blatb3leb3blemb4letb3leub2lie2bligb4lisb2litb4locb3los2blun3blut4b3n2bnis1bo5asb1ob3bo2blbo2brbo3d22b1ofbo3febo1is3bon_bond1bo2ne3bonsbo4räbor2sb1ortbo2scbo3thbo2xibö2b32b1p2bpa2gb4ra_b4rahbrä4u2bre_3brea2breg3bremb4rer2brigb4riob3rohb4ronb4rucbru4sbs3arbsat2b4särbs2äubs2cabs4cub3se_bse2bbsi4tbs2kubso2rbs2plb3stob3stöb3stübtal3btil4b4ts2bu2e3bu3libung4b2urgbu2sa2b3z22c1abca2chca2e3ca3g4cal3tca2pecar3ncas3tca1y2ceco4ce2drcen3gcere3ce3sh2ceta2chab2chaf1chaoch1äs1chef4chei2chic2chl2ch2lech2lu4ch2m2chn42chobcho2fch1ohch2r44chrech3rh2chuf2chuh2chum1cka_2ckac1ckag2ckalcka4r2ckau2ckeh2ckexck1imck1in3ckis2ck3l2ck3nck1o22ck3rckt2e3c4l2clet4co3chco2d2co3dicoff4co1itco2keco2lecol2oco2peco1racor3dco3recos3tco4te1c4r2cte3ecti4octur6cu2p32d1ab2d1acd2ac_dagi2dah3lda1ho3d4aida1inda1isdal2ada3löd1altdamo3d4ampd2an_d1ang2danw2d1apd2aph4dapp3darlda2rod3arrdar3sd1artda2rudas4tdat2a4datmdau3e2dauk2d1äh2d1äp2därzdä3us2d1b4dbu2cdco4r2d1d2ddar2de2adde3asde3b43de1cde1e4de3gldehe2de3hod2eicde2löd2en_dend2den3gd2enhde2nide1nude1ondepi2d4er_de3rude2sade2spde2sude1unde3us2dexp2d1f42d1g2dga3gd2ge_2d1h2d2hisdi4abdi2addi4amdi1cediet3dik2adin2adi2obdi2spdist2di2tadi2thdit3sdi2tu3di5vdi3z22d1k4d3l2edli2f2d3m24d5n2dnis1d2obadob4ld2obrdole4doll22doped2opp2dorc2dordd2orp2dortd2os_dos3sdost1dot6hdo3undö2l13d2ör2d3p2drag4d3rai2drädd4räh4dre_2dreg4drem2d3rhd4ri_d4ridd4ried4rifd4rikd4rild3robd3rocd4roid3roud5rubdrü1bd2sands1änd3seidse4td3shodso2rd2späds2pods2pud2steds2tids2tud2sundta2dd5teadt3hodt5s2du1ardub3l2d1uh2dumd2dumf2dumg2dumld2ump2dumrd1umsdung42dunrdun2s2duntdus3t2d1v2e3a2beab3lea2drea2g4ea3gaea3gleakt2ea2laeam1oea2nae2anoe3ar_ea2rae3arre3arveas3se3athea5tre3aug2ebedebe2i2ebeleb2en2ebeteb3loeb2lö2eb2oebot2ebö2seb4rueb2s1ebse22e3caech1äe1chiech3lech3mech3ne1chuech1weci6a2eckteco3dec1s4e3d2aed2dre3deiede2re3d2oeds2äed2suedu2se3dy3ee3a2eeb2lee2ceee1chee2ckeede3e1effeef4leef3see1imeel2ee1empeena2e2enäe2encee3nie2enoeen3see1rae1erde1erkee1röeert2e1erzee3s2ees3kee3taee2thee1u2e1e2xef1are2fate2fäue3fe_ef1emef2er2eff_1effief2flefi2s1efkue3fraef4rüef3soef3spe2fumege1ue2gloeg3nieg2thegus32e1ha2e1häeh2eceh2ele3hereh1läehle2eh3loeh3mue3holehr1äeh3rieh3sheh3übei2blei3de2eidn1eifrei3gl2eigt2eigu2eil_2eilbeil3d2eilne1impei4näein3kei3o2eip2fei3ree1irre2is_2eitäei3teei2theitt4e3ke_e3kene3kese3keye3k2lekt2oe3k2wela2cel1afela2h2elaoela4s2e1läel2da2ele_elea2ele2c2eleh2elei1eleke3lepel2ete3leu2elevele2x1elf_el3feelf4l1elfm1elfte3lieel3klel3leelm2ael5nae2lofe2lolelon2elö2selto22e1luel1ure2lyaelz2eema2keme2se2mop3empfem2saem2stem3t21emule2n1a4ena_2enace3nade4naf4enahe4nak4enam4enaten1äu2ene_2enem2enen2enesenf2aenf2uen3geen2gl1engpe3ni_e3nice2nide3niee3nio2enise3nit2enive2nofen1ohe3nolen1one3noteno2w2e1nöen3sp1entd1entn2entü1entw1entz2enut4enwüeo2fee1on_e1onde1onfe1onhe1onle1onre1onse1opee1opfeop4te3or_e3orbe3orse3orweo1s2e3os_eo3ulepa2gep3leep2paep4plep2prept2aepu2se3ra_era2ge1raie2rake1rale1rape2rare1rasera2ße1rawe1razer1äher1ämerb2eer3brer3da1erdber3de4ere_er1ebere2l2erer2ereserf2eerf4rerg3s2erhüe3ribe3rio2erk_erk3te3ro_er3oaer1ofer1ohe3rone3rose3rowerö2d2eröker3p4er3rä2errüers2aer3seers2ier3sker3sner3sper3sz4ertier3uzerü4bes3abes3ake3sceesch2es2eles2hues2ide2siles2ire4skees3kles3kue4skye3sote3spies3sces3se2essoe1stre1stues4tüeße2setab4et1am3etapet4atet1ähet2enete2oet3hüeti2m2e3toeto2bets2pet3suett1aet2thet2zäet2zweu1a2eu2gaeugs4euil4eu1ineu2käe3um_e3umbe3umleun2eeu1o2eur2eeu3speust4eut2heu2zw4everewä2se2we_e3wirewi2se3witex3atex1er1exis2ext_ex2tu2e3xye3z2aezi2sf1abefab5sfa2drfaib4fa2ke2fanb2fanf2fanlf1anp2fanrfan3s2fanw2f1ap3farifa3shf3aug3f4avfa2xa2f1b22f3d4fdie2f2echfe2drfe2eife1emfef4lf4eief1eisfel3tf2em_fem4m2fempfe2näfen3gfe2nof1entf2er_fe1raf2eref2ertf1erwfe2st3fete2fexpff3arff1auffe2eff3eiffe2mff4enf2fexff4laff4läff4lof3fluf3flüff3roff3röffs3t4f3g2fge3s2f1h2fi3atfien3fi3klfi2krfil3dfilg4fi3lif2inafi3nifin2sfi3olfi3rafis2afis2pfi3tu4f1k4f3ladf3lapf3länf4leef3lerflo2wf4luc2f3m2fma2d2f3n2fni2sfob2l2f1offoli3fo2nafon2efo2nu2f1opfo1ra3form2f1ök2f1ölför2s4f1p2f4racf5radfra4mf5rap2fre_f3recf3red2fregf3repf4reufri3dfri2e2frig1frisf3rocfro2sf3rotf2sanfs3arf4scefs4cofse4tf2sphfs1prfs3s4fs3thf4ta_f2tabft1afft1anft1arf3tatft3hoft1opft2s1ftsa2ftse4ft3stf2tumftwa4ft3z23f2uhfung42funt2gabfgab4r2gabz2gadlga1flga2kagal2ag4amo2ganbgan3d2ganh2ganl2ganwga1ny2garb2garc3gardg2arsga3ruga2saga2siga3spgas3sgat2a2gatmgat4rgau1cg2aukg1aus2g1äp2gärz2g1b2gber2gby4tgd1ing1d3rgd3s2ge3a2geb2ageb4rge1e2ge3ecge2esge1imge1irge2isge3lege3lügelz2ge3migem2uge3nagen3ggen3ngeo2rge1ouge3p4ge1ragerm4ge3sigest2ge5trge1ulge1ur2g1ex2g1f4gga4tg2g3lgg4log2g3n3gh2rgie3ggi2elgi2gugi3negi3tugi4us4g3k2g1labg1lac3glad3glätg2l4e2gle_3gleag3lecg3leg2glehg3len2glesg4lia2glib2glif2gligg2lik4gling2lio2glisg2lizglo3gg2lom2g1luglu2t2g1m2g2n2ag4na_2gnacg4nat3g2näg3neh2gneug2nieg2nifg4nin3g2nogno1r2g1of2g1ohgol2a2gord2gorggo2s1go3stgo3th2g1p2g4rebg4remg4rerg3retg3revgri2e3grif2grig2groc2grohgron4g4rosgro4ug4ruf2grut4g2s1gsa2gg3salgs3angs3arg3s2cg4scagsch4g4scogs2ehgsen1gs3ergse4tgsi2dg3silg3spigs3plgsrü2gs5s4gs3tag3stog3stögs3trg3stugs3tügti2mg5t4rgu3amgu1as2guedguet42g1uhgu1is3gummgu4stgut1agut3h2g3z2hab2ahab2eh2absha1kl2haleh1alph1amth2an_h2andh4ann2hanr2hantha2plha2pr2harbh2ardhasi1h1äff2h3b22h3d4hdan2he2adhe3behe2blhe3brhed2ghee4she2fä2heffhe2frhe2fuhe3guh1eieh1eifh1eighe2im4heioh1eiwhe3lihe3lohe2lö3hemdhe3mi3hemmh2en_he2näheng22henihe2nohen3z4he2ohe3onhe3ophe3phherg22hermhe3roh1eröhert2he3thhet2ih2e2uheu3ghe1y22h3f4hfi2s2h3g2hget42h1h2hi2achi1ce2hi3dh2idehi2krh1infh1inhhi3nohi4onhi3or2hip1hi2phhi2pih2i2rhi3rahi3rihirn1hi3rohir2shis2ahi2sehi2sthi1thhi3ti2h1k4h4lachla2nh1lash1lath3lädh1läsh1läuh3lebhle3eh3lerh3lesh3lexh2lieh2lifh2liph2lish2lith3lochl1ofhl1oph4lorh3löch2löshl3t2h3lufh3lukh1lüfh2mabh3magh3manh3marh4mäch4mähh4mälh4mäuh3me_hme1eh3menh4monhm3p4hm3sahms1phn1adh3namhn1anhn3d4h2nelhn3exh2nich2nidh2niehn1imhn1inh2niphn3k4h2norhnts2h2nuch2nulho2blho2efho4fa3hole4holo3holzhom2ehono3ho1rahor3dh1orgho3slho2spho4st2hot_ho3thh1o2xho1y2hö3ckhö2s1h3öst2h3p2hr1achr3adh1raih3räuh2rech3redh3refh3relh3rephre2th3revh3richri4eh3rinh2robh3rohh3rolh4ronh2rorh3rouhrs3khr2suhr4swhr2thh3ruhh4rübh2sanh2sauh2späh2sphh1stah1stoh2s1uh2t1ahta4nht2ash2tärht1ehhte2sh4thohtod1h3töpht4riht3röht2soht2sphtti2ht3z2hu2buhuko3hu2lähu2loh1umsh1unah1up_h1upshurg2hu3sahu2sohu2tihut2th4übsh3übuhvil4hwe1c2hy2thzug4iab4liaf4li3ak_i3akti5al_ia2läial3bial3dialk2i3allia2lui3am_i4amoian2ei3anni2anoi3anti3anzi3ar_ia2rai2ascia3shi2asiias3siast4i3at_i4ate1iatri3atsia3uni1är_i1ärsi1ät_i1ätaib1eiibe4nibi2ki3blai3blei4bräich1aich1äi1chei1chiich3lich3mi1choi1chuich1wi3damid2ani2deiidni3i2dol2i2drie3a2ie2bäie2blie2ckie2drie1e2iel3di1ell2i1eni3en_i3enai3endi2enei3enfi3enhi3enji3enki3enmi3enni3enöi3enpi3enrien2sie1nui3envi3enwi3enzie1o2i2erei4erii1ernie2röie3sui1ettieu2eie1unif1arif4atif1aui2fecife2iif2enif2flif4läi1flüif4rai1freif3seif3spif2taiga3iig1läig4nai4gnäig4noig4raig3säig4seig3soi2harihe1eihe4ni4is_i4i3ti2käri3ki_ik1ini2k3lik3noiko3si2kölik3räik3reik1s2ik3soik3szikt2eikt3ri2kuni3kusi1lä1il2daild1oil2drile2hil1el2ill_2illsil3öfi1lu2i2lumi3lusim4ati2megi2meji2meki2mew1immo1impoimp4s1impuim2stin2afin3ami3napina4sin1äsin3do2indrin3eii3nelin1euine2x2ingain2gl4inhei3nie2inigin2ir2inis2inn_2innlin1odin1orino3tin3suint2hin3zwi2odaio3e4iof4li2o3hio3k4i3ol_i3om_i3omsi3on_ion3di2onyi2o1pio4pfi3opsi3opti3or_i3orci3orpi3orsi3ortio3s2i2osti3ot_i3otsi3oz_i1ö2ki1ös_ipen3i3perip3fa2i1piipi2sip2plip3pui1r2ai3radirat2ir2bli3ree2irekir2glirg4sir2he2irigir4mäir2no1ironiro2sirr2hir3seir3shir2sti3sacis2api2saui2scaise3eisi2ais1opis1pais1peis3sais2stis4töis4tüit1amit1ani3tatit1auit2ärität22itelite4ni2texi5thr1itiii5tocit3rei3truit2sait2soit1uhitut4it2zä2i3u2i2vebive4niwur2ix2emiz1apiz1auize2niz4erizo2bi2z1wja3nejani1ja1stje3najet3tjo2b1job3rjoni1jo1rajord2jo2scjou4lju2blju3nijur2ok3a2aka3ar2kabh2kabska1frka1inka3kak1allkalo5k3amakand4kan2ekank42kanlk1anska3nu2kanw3kara2karbk2ardk2argk2arkk2arskar3tkaru2k2arwka3sekasi1kas3s2kattk1auskäse32k3b4kbo4nkbu2s2k3d2k1effkefi4kege2ke2glk1einkei1skeit2ke2lake2läkel1ek4eltk2en_ke2no2keo2ke2plk2er_k2erck2erlkerz2k6es_ket3ske1up2k3f42k1g22k1h4kho3mki3a4ki3drki2elki3k4ki3liki3lok2imik2in_k2ing2kinhk2inik2innkin3ski3orkio4skis2pkist2ki3zi2k1k44kla_k4lar4kle_4kleh2klic2kligk2link3lipk2lir4klizk4lopklö2sk2lötkluf23knabk4neiko2al2kobjkoff4ko1i2kol4ako3leko4muko3nu2kop_ko1pe2kops2kopzko3riko2spko2stko3ta2k1ouko2wek1o2x2k1p2k4rawk4raz2kre_2kreg2k3rh2krib2krip3kris2krufkrü1bk2sanks3ark2sauks2änksch4ks3hak3sofks1pak3speks2puks3s2k1stak1stek1stok1strk1stuk2s1uk3talkt1amkt1anktä3skte3ekt1eik2texkt3hokt1imk3topkt4rokt3s4kul2a4kulpkung42kuntku2roku2spkus3tku2sukür4s2k3z2kze3lla3ba2labb2labf2labg2labhlab2ol2abrl1abt3labu2labwla1celad2il1adl2ladm3ladul1advla2falaf3slaf3tla2gala2gnlago2l2akk2l1al4lall4lalpl2amil2amp2lanb2lanf2lanll1anp2lanslar3sla2ru4lasdla3se2lash2lasila2so2laspla2stlat2ala3telat2s1lauglawa41länd2läub2läuc2läue1läufl3bacl3blälb3lel2blil3blolb3salb3selb4sklb3splbs6tl3chel3chilch3llch3rlch3ülch1wlda2gld1all3daml3dasl3datld1auld1ärl2deil2dexldo2rld2osld2ö2l2dreld4rüld3sald3stld3thle2adle2bl4leddle3dele3eilef2ale2gäle2glleg4r4lehs4lehtl2eicl2eidl2eitlel3s4lemplem3sl2en_le2näl2enfle3nil2enkle1os3lepa3lepf3leprl2er_lerb4lerk2ler3tl1erzles2ele3shlesi1le3skles2t4lesw2lesy2leto4leud3leut2lexe2lexzl3fahlfe1elf3lolf2trlfur1lga3tlg3rel3gro2l1h23lhi_li3acli3akli3amli3arlia1sli3b4libi34lickli4ds3lie_lig4nli3keli2krlil2a3limol1inv2linzli4om3lis_li2spliss2lit2ali3telit2hli3tu2lixili2zalk3lolk4nelk4ralk2s1lk3sälks3tl3k2ülla2nl3lapll1aullch4ll3d4ll2emll2esl2lexll3l2ll1obl3lowll3shll5t4llu2fll1urll3z2lme2el2möllmpf4lms2tlna4rl3n4e2lobjl2obrlo1fllof4rloi4rlol2a2lopf2loptlo1ralo4rä2lorcl1ordlo3ro3lorq3los_lo4sa3loselo2talot4h2l1ovlo2velö2b3l2ö2fl1öhrlpi4plp3t42l3r2lre1slrut4lrü1bl3sacl2saul3sexl4shalsho2ls2pols3s2lst2al2stels4trls2tuls1uml2sunlsu3sl2tabltag4lt1aklt1ehlt2enlt3hol3thul2toblt1oplto2wlt1öll3törlt1ösl3trält3relt3sclt2solt1uhlu1anluba2lubs2lu2drlu2es2lufflu2golu2gu2l1uhlume22lumf2lumll2umpl1umsl1umw1lu2n2lunt2lunwl1urnl1urt2luselu2splu4stlu2tälüh1lly1ar2lymply3nolzo2flz3t2m2abe2mabk2mabs2mabtma2cima3damal3dmalu4mam3m2manbm2anfm2anh2manlm4ann2manzma2orm2app2marb4marrm1arzmat4cma3unma1yom1ähnmä1i2m1ärg2m1b2mbe2em3b4rm2d1äm2deimds2em2e1cmedi32medyme1efmega1m2eil3meldmell2m2en_m2ens2meou3mer_me1rame2ro3mersmes1ame4sä4mesume3th2m1ex2m1f4mfi4l4m1g22m1h4mi2admi3akmibi1mi3damie3lmi2ermi4etmi2kimi2ku4milzmi3nimi1nu3mir_mi3ra3miri3mirs3mirwmi2samise1mi2tami2th4mitz4m1k4m2mabmm1eimm3simm3spm2mummm2unmmül22m3n22mobj3m2odmo2dr4mog_mo2i32mol_mom2e3m2onmo3ne3mo2o2moptmo1ramork4m1o2xmp2flm3ponmp3ta2m3r2m2sanm4sapms1asm2saumsch2m4scom4sexmso2rm2späms2poms2pums3s2m3stoms4trms4tüms1ummt1abmt1akm3tammt1armt3homti2smt1ösm4ts1mt2samt2semt1um2m3uhmu3la2mulsmu3nim4unkmunt24munzmu3ra3musimu2spmus3tmu2sumuts32m1w2mwa4rmwel42n1abna2bä4nabg4nabhna2bln2abona2br4nabt3n2ac4naddn2ade3n2ag3n2ahn3ahnnai2en1aig2n1akna2ka3nakon2al_na2län4alena2lu2nalyn4am_3name3namon1an_4nanb2nanh2nani4nank2nanl3nannna3non1anp2nanr2nanw5nar_2narcn2ard4narg3narin2ark2narmn2arpn2as_4naspn4ata4natmnats14natt4naufn3aug5naui3n2äcn1ähn2n1ännä2scn2äss2n3b4nbe3nnbes4nbu2snch3mnd2agndat2nd1aun2dein2dobndo1cnd1opnd1orn2drönd3thndt4rn2dü4ne2apne3asne3atne2bl3necane1ckne2de2nee33nehm2n1ein2eid4neifne2ke3nelanel3bne3lin2em_n4en_n2enbn2encn2enhne2nin2enjnen3kne2non2ensn2envn2enwne2obne1os2nepfn2er_ne1ranere2n1erfn1erh3nerin1erkne2ron2erpn2erv3n2esn4es_nes4cnes1one2thneu1cneu3gneur22n1exnf1aknfo1snft2on2f1ung1adng3d4n3gefn3gerng3g4ng3hun2glon2glöng3neng1orngs3cng3tsn2gum2n1h4n3hann3harn3haunhe2rnib4lni2deni3drnie3bni1elnig2anig3rni3klni2kr3n2ilnim2o2ninfni2obni3okni3olni3ra3n2isni2tinit4sni3tunk2amn2kähnke2cnk2lonk2lunk4nan2knenk2öfn2köl2n3l22n1m4n2naunne2snn2exn2nofnn3scnn3senn2thnn1ur3nobl2no2dno3drn3olen2on_3nor_nor2a2norc3norh3norm3norsn1ortno3shno2täno2tr2nö2f2n3p4npa2gnpro1npsy32n3r2n3savns2cans1ebnse2tn3sexn3siln4sphn2sponsrü2ns3s2ns2tins2tunst2ün2styns2umnta3mnt4atnt1ämnte2bnte1ent1ehnt2enn3ternteu3nte3vn3thrnti3cntmo2nt3sants2onts2pnts2tntum4nt3z21nu1anu3arnubi11nu1cnu2esnu2fe2n1uhnu3k4n2um_2numf2numg3numm2numr2nuna2nunt3nu2snu3scnu3senu3slnu2ta2nü4bnür1c2n1v2n3ver2nymun2zadn2zann2zärnz1ecn2zornz2öln2zwö2o3a2o4abioa3deo4a3ioa3ke2obano3bar2obe_2obea2obewobi4t2o3boo3briob3skobs2pob3sz2o3buobu2s2o3bü2oby4och1ao1cheoch3loch3moch1ooch3roch1socht2o1chuoch1wo3ckeo3ckio2ckoo3d2aod2dro3debo3dexo3diro2donodo4so2dre2o3du2o1e2o4e3so2e3to3et_o3etsof1amof1auof2eno3feroffs2of2fuof1laof4läof4löof3raof3räof4rüofs1aof3thoga3dog2loo3g4nog3spohl1aoh3looh2lu3ohngoh2ni1ohnmo2h3öohr1aoh1ro2o1hyo1i2do2isco1ismoiss2oi1thoki2ook1läo2labol2arol4drole3eoler2ole3sol1exol2faol2flolf1rol2glol2grol2klolk3rol2of1olymol2zwo2mabo2mebome3co2melo2mepom2esom3maom3pfomtu3ona2bo2naeo3nalon1apon2auonbe3one2ion3f2ong4rong3s4o3nion3k2onli4o3nodono3sons1aonsi2ons3lons1pont2hont3s2onukoor3foo4skoo2tr2o1ö2opab4o3panopa5so1peco1pei2opf_op2fäo2pfeopf1l4oph2o3pheopin2op3li2o3poop4plop2pr2o1pr1opsiop3szo1rad2orak2oral3oramo1rasor1ätorb2l2orcaor2ce4orda1ordnor2do2ordr2ords2ordwore2hor1eror3gaor2glor2gn4oril2oritork2aork2s2o1ro2o1röorr4aor3rh2ors2or3shor3szor4töor2ufo2r3üo2ryaos3ados4anosa1sos4co2o3seose3eose2no3shoo4skaos3keo4skios2lo2os1pos2peos2saos4säos3to2osu42o3syo2tebote2s4ot2hot4heo2throt2inotli2ot4olot2oroto1so3traot2saot3scots1pot2thou2ceou2geou3glouri4outu4ove3so3wecoy1s4o3z2aozon1ö2bleö2b3röb2s3öch1lö2chröch2söcht4öd2stöf2flöh3riö3ig_ö2ko3öl1a2öl1eiöl1emöl4enöl1imöl1inöl3laöl1o2öl3saöl3szö2l1uölz2wönn2eön3scön3spöpf3lör3a2ör2drör2glör2klör1o2örs2eört2eör2trös2stös3teös2thös3trö2t3aöt2scöt2trözes4pa3dapa2drpa3ghpa1ho3pala1paläpa3li2paltpank42panl2pannpant2panz4papi23para1parc2parg1paro2parppa4stpat4cp3auf3pä2cpä2to2p1d2pea4rpech1pe2en2peicpe1im2pekupel3dpena41pennpe1rapere21perl3pero5perspe3sape2stp2fabp2fadp2fafpf1aip2feipf3lopf3lup2forpf1ra2pfs2pf3slpf3sz2pf3tpgra2p3hopph3t2phu4s2p1hüpi2a3pias4p4id2pi2el3pierpi3lepin2epi3oipi2pepi3ri4pisopi1thpit2s2pitz2p1k2pkur11p2l43p4lap5la_p5lad2ple_ple1cp4legp4lem2pligp4likp4liz2p3lu2p1m2po3b42p3ohpo3id3poin3p4olpo3li2pondpo1pepo2plpo3pt2pornpor3spos2epo3ta3potepö2blp2p1hpp1läp2plep2pripp3sa1prak1prax1präd1präg3präm3präs2pre_2prec1pred1preipri4e2prig1p4ro3prob2proc3prod3prog3proj3prot1prüf2prünps4anp3s2hps1idps2pop3staps2tup3stü3p2syps2zept2abpt3atpte4lp4tospto2wp2t3rpt3s2pt1um3p2typu2dr2p1uh2pundpun2s2puntput2spwa4r1queura2abr3aalra3ar2rabd2rabf2rabgra2br2rabs2rabt1rabyra1cer2ackr4ad_3radf3radlrad5tra2gn4raht2raic1rake3rakür4al_ral3bra3le2ralgr4aliralk2r4alsra2lu3ralyr2ammr2an_4ranc2ranf2ranl2ranr2rapfr2ara2rarbr2arkr2arpr4as_ras2ar4at_r3atlrat4r4rau_4raud2rauf2raug3raum3r2äd3rän_3räni3räns2r1ärr2är_rä3raräu2s4räutr2bakr3blärb2lörb4rirb3serbs1orb3sprby4tr1chirch3lrch3mrch3rrch1wr2ck1r2dafrd2amr4dapr2deir3denrd1itr2dobr3donrd1osrd4rird3tard3thrdwa4re2amre3asreb1rre2bür2ech3red_4reddre1elre1er3refe4reff3refl3refo5reg_rehl4r2ei_r2eie2reigr1einre3larel2ere3lorelu2r4em_r2emi4remur4en_r2enare2näre2nir2enzre3or3repe3repo4reppr1erfr1ergr1erkr1erlrer2nr2eror1erör1ertre2sa3rese3reso2ress3rest3resu2reulre2wi4rezirf2äurf2esrf4lör3flür3forrf4rurf4rürf2sarf2targ2abrg2anr2gnorg3spr2ha_r3herr2hoe2rholrhu2sri3amria1sri3atri1ceri1elri1euri2frrif3s5rig_5rigjrig1l4rigrrik1lr2imb2rimprim2s2rink3rinn2rint4r1irris2ari3so3rissri2strit4r5riturk2amr2kährk4lork2lur3krirk2sprk1strk2tark1uhrk2umrku2nr3l2arle2ar3lecrle2ir3letr3l2irli2sr3l2orm2ärrm3d2r3me_r2meorm2esrmo1srm3sarmt2arna2brna4nr2naurn3drr4nefrn2eirne2nr5nesrn2etr4nexr3nodr1nötrn1ur2robj2robsro3e4roh1lro1irro3lerol3s2roly4rom_4romm4romt3ronnrons2ro1pero3phr2oraro3shro2ßu3routrö2du1r2öh1r2öl3römir2ös_r2öse2r1p2r3p4ar2plirpro1rps3trr2abrr2arrr1ämr3r2er4rewrr2herrik2rro3mrr2strr2thr3r2ürrü1brs3abrs2anrs3arr3shors2klr4skor4skrr4skurs4nor4sobrs2p4rs3s2rs2thrs2tir3stor3störs2tur3swirtal2rt1amrt1ärrten1r2thirto1prt1orr5trirt2sorube2ru2drru2fa3ruinru1is4rumfru2mi4ruml4rumz2rund4runn2runwru3pr4r3urru2ra5ruroru2siru2strut3hru2zwrü1ch4rümmrz2anr2zarr2zasrz1idrz1oprz3terz2thr3zwä2s1absa2besa2blsa2br4sabss1adm3safasa2fe3safi3sagasag4nsa2gr3s2aisail22s1aksa2ka3saki3sakr4sakt3salo5samms1amps2an_s3anbs2and3sani2s1apsa2po3sapr2s1ar3saris3arrs1aspsat2a4satmsa2trsa3tss1a4u3sau_3sauc3saue3saum3saur2s3avsa2vos3ähns1ält2s1äm2s1är3s2ät3säul2säuß4s3b4sba4n2scams2cans2cap2scar2s1ce4sch_s4chä4schb4schc2schd2schf2schg2schh2schks4chls4chö2schp2schq4schss4chu3schü2schv2schz4s3d2sde1sseb4rse1ecse2glseg4rse3heseh1lseh1sseh3ts1ein3s2eks2el_s2elsse2nä3senkse2noseo2rs4er_3seraser3gs1erh3seriseru25ses_se3su2s1exse2xe4sexpsex3t4s3f4sflo44s3g2sha2k1shass3h2e3shi_3shidshi4rs3hoc4shof3shop3showsi2ad2siat5si1cs2ido3s4iesien3sie2ssi1f43s4igsig4nsi2kisik1lsi2krsik3ssi2ku3silosin1ision43s2issi2sasis3s3s2itsit3rsi3tusiv1asive3si2vr2s1k24skams3kar4skasskel1s4keps2kifs2kig4skirski1s3skiz4skom4skor4skow4sk3t2s1l23slal4slans2laws3lo_s3loe2s3m22s3n4snab4so3baso3et3softso3la3s2onsone22sopf3sor_s1orc3sorsso4rus4os_2s1ox2s1ök2spaa4spak4spap3spaß4spaus2paz3späh2spärs3pe_2spel4spet4s3pf2sphas4phäs3phespi2k4spil3spio4spis4spla4splä4sple2spod2spogs2poi2spok4spol4spr_3spru2s3ps2s4pt2spun2spup3spur4sput4s3r4sret3srü2ds5safs3sagss1ajs3sals3s2äs4sces4scoss1ecssoi4ss2poss3s4sst2ass2thss2tis3stü4sta_3staast2ac2stag3stah2stak2stax3s2tä4stäg2st3c2steas2ted4stee2stem4stens2tep2ster4stes2stetst3ev4stexs4thäs4this2thu2stia2stibs2ticsti2e2stig2stiks2til2stio2stis2stiv2sto_s3tob1stof4ston4stoo1stoß4stou2stow2stoz2stöt1stru1stub4stuc2stue3stuf3stuhstu2n3stüt4st3zsu1ansuba24subi3su1c2s1uhsu1issul2asul2isult23summ3sun_su4nes1unf4sunt3s2upsup3psu2ras1urtsu2s1su3sasu3shsu3sisus3s2sü4bsü2d1sweh24swie4swilsy4n34s3zas2zess2zis4s3zu4s3zw2ß1a22ß1b22ß1ec2ß1eißen3gße2niße2noße2roßer3t2ß3g2ßig4s2ß1in2ß1k4ßler32ß1n22ß1p22ß3r22ß1s22ß1um5taan4tab_2tabf2tabg2tabh2tabkta2br4tabsta2bü2tabw2tabz2t1ac3tacut1adatadi33taf_4tafft1afg3t2agt3agotai2ltai4r2takzta2latal3d3talo2talt3tameta2mit1amt3tan_2tanbta3ne4tanf2tang3tanit2ank4tanlt2anot1ansta2nuta3or2tapfta2pl2tarb4tark2taro2tartta2ruta3sata2tht3atlt4atmt1auk3taum4tägyt1ämt3tänzt2är_tä2ru4tätt2täuß4t3b2t3chat3chetch2itch3lt2chutch1w4t3d4tdun2te2a22teakte3alte3an3tebat2ech2teckte1emte2es2teff3teha3tehä3tei_teik43teiltekt25tel_3telatelb43telg3telk5teln3telp5tels3tem_tem3st6en_ten3ate2nät4enbten3gt4enhte2nit4enjt4enmten3n3terct4erit4erot3erötert2teru2t2estte2su3tet2t2et_4teth4tetl3teuf3teumte1unte2vite1xa4texp3text4t1f4tfi2l4t1g2tger22th4at2hagt3hait2hak2t3hä3thea2thebt2hect2hekt2hem1then3theot2hest2heut2hik4th3l4th3m2th3n1t2hot3hoft3horthou24t3hö2thub4thunti2ad3tib4ti1cetieg42tiehti1elti1etti1eu3tif_ti1fr4tift3tilgti2lötil3stilt4ti2lut2imiti3nat1inbt1infti1nuti3orti3plti1rhti2sptium2tive3ti2za4t3k45tlem6t5li4t3m24t5n4tnes2to4asto5at4tobjtob2ltode2toi4rto3la3tole4tolz2tomg3topo2topt3tor_to1ra4torct1ord3toret1orgto2rö3torsto2rut2orwto3sc3toseto4sktos2p4toss3totrtots23t4outo3un3töch4t1ökt1öst4t3p21t2r45tra_3trac3trag3trak3tral4traß5träc3träg4träs4träß4treb4trec3tref4treg2trekt4remt4rert4rett4reut3rev2trez2t3rh4trict4riptri2x3tro_3troe3tront4rop3troyt3röc2tröh3trös3trua4truktrum2t4rübt4rügts1adts1alt2sants1ast2sauts1emts3krtso2rt3sout2spät2spht2spots3s4t1st4ts2tut2s1u1tsubtt1abtt2actt1aktt2altta1st3telttes1tto1st3trott3rutt3rütts1ptt2untu3antuf2etuff3tu2istul2at2um_3tun_3tune3tungt1up_tu2rätur1c3turntu2rotu4rutu2satu2sotu3ta3tüch3tür_tür1c3türe3türg4tütztwi4ety2pat2za2tz1agtz1altz1artz1aut3ze_t2zortz2thtz1wätz1witz1wuu1a2bu1a2cuad4ru1al_u1albu1alfu1alru1alsu1altua2luu1ansu3ar_u1arsua3saua2thuat2iubau1u3b4iu2bopub3räu2bübuch1auch1äu1cheu1chiuch3luch3much3nu1chuuch3üuch1wu2ckiu3d2au2donud3rau3druue2ckue2enu2elaue2leueli4ue2miue2näue2niue2nou2ereu3errue2tau3fahuf1akuf3aru3fasuf1au2ufe_uff4luffs4u2fobufo2ruf3säuf4sou2fumug1afug1akuga4sug1auug3d2ug3huu2g1lug3lou4gluu2g3nug1orug3roug3seug3siuh1lauh1läuh2liuhme4uhr1auh3riuhrt4uh2ruuh4rüui2chui1emu4igeu1in_u1is_u3käuu1k2lu1k4ruk2tauku2sul1abul1amula2sul1ämul2drule4nule2tu2lexul3f4uli2kul3kaul2knull2aull3sulo2iul1orul2sauls3z2ultaul3thult3sul2vrulz2wuma4rum2enum1irumm2aum2suum3t2um2un2una_1unabun3acun4alun3at1unda1undd1undf2undg1undn1undv1undzune2bune2hung5hun2idunik4un2imuni2r2unisunks23unkuunna2uno4run2os2uns_un3se1unsiun3skun3spun3taun3trunt3s2untuu1o2bu3or_u3orsu1os_uote2u1pe2uper1up2faup2plup2prupt1oup4tru2rabu2rar2u1räur1änurch1ur3diure4nurf3turi2cur1imurk2s4u1rou3roluro1sur4swur2zaur2zäur2ziur2zou4safu3sepus3klu4skous3ocu3sohus1ouus1peu2spou2spuus2thus3tru1stuus2uru2tärut1egute2lut2esut2etu4tevutfi4ut2heu2thiu2thuuto3cut4orutos4ut3rüut3teutts2ut2zo2u1u2uufe22u1v4u2ve_uz1weuz3z4übe3cüber3ü1cheüch3lüd3a4üd1o4üd3s2üdsa1üd3t4ü2f1aüfer2üf2flü2f1iüf2toü2g3lüg4stühla2ühl2eüh3moüh3neühn2süh1roühs2püh4thül2laül2loül2löü2n1aün2daün2dründ3sünen3ün2faün2frünn2sün3scün3seün3spün2zaüp2plür2flür2frür3scür3seür3spürt2hüse3hüse3lüse1süss2eüs2stü2t3rüt2s1üt2tr2v1abval2s2vang2varb2v1auve3arveit4ve3lave3leve3live3love3maven2cve3neve3nive3növer3averd2vere2verf4verg4ve3river3kvert2ver3uve3tavete1ve3trve3x22v1f4vi3arvi2elvi2ervima2vi4navin2svi3savise4vi2spvis2u2v1l22v1obvo3gavo2gu2v1opvo2r1vor3avor3dvor3evor3gvo3ri2v3rav4ree2v3rov1stav3s2zvu2et2vumfwa5gewa3gowai2b2walb2walmwa3nawa3sawa3sewa3sh2wängwäs2c2w1b2we2bawe2blweb3swe2e4weed3we2fl2weiewe3niwerd2we2röwer2s1wesewe4stwet2s2w1eywie3lwin2e2wing1wi4rwi2sp1wisswi3th1wo1c1wolfwor3aw3s2kwun2s4wur_wur2s2xa2b1x2adxa1fl1x2agx3a2mx2anz1x2asx1e4gx2er_x2erexers22x3euxich2xide2xie3lxil2axi2loxi2lux2is1xis2cxi2sexis3sxi2su2x1k22x3s2x2t1axt2asx2tänxtfi4xt3s2x3turx1u2n2y1aby1al_y1a2myan2gy1anky2chiych3nyen4ny2erey2es_yes2pye2thygie5yke3nyk3s2y4le_yli4nyl3s2y2l1uyma4tym3p4ympi1y2n1oyno4dyon4iy1ontyp3any4p3sy3r2eyri2ayri1ey3r4oys2any3s2cy3s2hy4s3lysme3ys2poys1prys3t4y3s2zy2te_y2tesy3to1yure3zab3lz1a2dza3de2z1afza3grzale32z1amza2na3zani2zarb2zarcz1arm3zaubz3aug3zaun2z1äc3z2äh2z1ämz1ärgz1ärm4z3b4zbü1b2z3d2zdan2zeik4zelu25zen_zen3nze2no3zentz2er_zerk2z2ernzers2ze2säze3sczes1ezes1ize2spze2tr2z1ex2z1f42z1g2z2henzhir3zi3arzid3rzil2ezin2ezi2o3zi3opzirk22z3k42z1l22z1m2zme2e2z3n42z1ob2z1ofzo2gl2z1oh2zopezo2ri2z3ot2zö2f2z3p42z3r24z1s2zt3hozt3s2zu4chzudi4zu2elzu3f4zu3gl2zumf2zumg2zumlzun2ezung42zuntz1urkzu3s4zu5t2zür1cz1wac4zwahz1war2zwas4zwäl2zweg2zwet4zwirz2wit2z1woz1wörz1wur2z1wüz3z4az3z2o",6:"_ab3ol_ab1or_akt2a_al3br_alt3s_ampe4_an3d2_angs4_ans2p_ans2t_an3th_ari1e_ark2a_ar2sc_as4ta_au2f3_au4s3_be3ra_boge2_da2r1_darm1_de2al_de1o2_des2e_de3sk_des2t_do2mo_do1pe_dorf1_ehe1i_ei3e2_ei4na_ei2sp_ei4st_ei4tr_el2bi_elb3s_em3m2_end3s_enns3_en2t3_en4tr_er2da_ere3c_es3ta_est2h_es3to_es5tr_eu3g4_eve4r_flug1_for2t_fu2sc_ge3ne_guss1_he3fe_he3ri_inn2e_kamp2_kle2i_kni4e_kopf1_le4ar_li4tu_ma3la_ma2st_mel2a_mi4t1_näs1c_no4th_oper4_oste2_ost3r_poka2_ram3s_reli1_ri2as_rom2a_rö2s1_se3ck_sen3s_ser2u_se2t1_si4te_ski1e_tal2e_ta2to_te3no_te4st_ti5ta_tite4_to4pl_tro2s_tu3ri_uf2e2_ufer1_un3a2_uni4t_uns4t_uro2p_ur3s2_wah4l4a1a2naa2r1aaar3f4aat4s3ab1aufab1eilabe2laab1erkab1erzab1ins1a2blaab5lag1a2bläab4le_3a2blö1a2bon2absarab3s2i2abst_ab3ste1abteia1chalach3auach1eia3cho_ach1orach3su4ach1wa1ckarack2ena2ckinack2seack3slacon4na3d2abad3amaa2d1an3a4dapade2aladefi4a2deina2deri4ade1sades4sadi3enad4resa2f1eca2fentaf1erlaf4fluaf3s2aaf3s2haf2t1aaf2teiaf2t3raf2tura2f3urag1a2da3gen_age4naage2saage4si3a2gitag4ne_a2g3rea2g3riag4samag4setag4spoag3staag3stea2gundahl3a2ahl3szah4n1aah3r2eahrta2ain3spai3s2e2a3kam1a2kazaken2nak3rauak5tan2aktikak2t3r2aktstal1ageal3amealami5al3ampal1anaal1ansal1anza3lar_a3lareal2armal3arral1asial1assal3augal2b1lalb3lial2bohalb3rualds2ta4l1eha2l1eia2l1ela2lengal1epoal1erl3alermal1etaal1etha2l1eua4leur3a2lexal2glial1insa2linvalk1ar1alkohalk3s2alks4tal2labal2laual3les1allgäal2lobalo2gaal1opeal1orc3alpe_al3sklal3sunal4takal3tamal2treal2trial2troalt2seal1umbame2n1amer2aa2meriame3rua4mesh2a3mirami3taami3ti2ammalam2meiam2minam3stram2t1aam2t1äam4tel2amtemam2t3ram4treanadi3an1algan3dacande2san2dexand2suand1uran3e2can2ei_an3eifan1e4kan1ethanft5san3f2uang1ar3angeb2angiean2gla4angs_an2i3d3a4nima4ninsan2keian4klöank3ra3an3naann2aban3n2ea2n1orans2enan2seuan3skrans1pa1anspran3s2z1antei1anthran2tro2anwet1anzeian2zwiar3abtara3d2a2r3al2a2rara2r1auar2bauar2bec2arbenar2bre2arbs2ar2droar1effar1ehra2reinar2erfa2reria2rerlar1intar2kalar2knear2korar4kriark1s4ark3saark3shar2lesar2nana2r1oparr3hear3s2har3staar3t2ear2thear3t2iartin2art3rear2z1was1alaa3schea3schia2schma3schua3s2hiasin2gaska3sa3skopas3s2aas3s2eas3s2ias2s1pass3tias3stras3stu2as3taas4tauas4tofast3räaswa2s3a2sylat1apfa2tausat3eiga2teliate2ru4athe1atil4sati2st4atmusatra4tat3romat4setat2s1pat4takat4tauat2teiatz1eratz3t2at2z1w2au1a2au2bliau2bloauf1an2aufe_2aufehauf1er2aufs_2auft_4augehaule2sau2malau2m1oaum3p2aum3s6au3n4aau2nio2au3r2au2sauau2spraus3s22auts4ava3t4äche1eäch2späch4stä2d1iaäft4s3äg3str2äh3t4äl2l1aämi3enäne2n1äng3seän2k3län2s1cänse3häp2s1cä2r3a2ä2r1eiär1intär2k3lärt2s3äse3g2äser2iäskop2ä3s2kräs6s1cä4s3t2äß1erkä4t1a2ät2e1iätein2ät2s1iät2s1pät2s3täum4s52ä3us_backs4b1a2drbah2nuba2k1iba2krabal3th3b2andban2drba3n2eban4klban2kr2b1ansbar3deba2reibar2enbar3zwba3s2abau3sp3b2ä1cbbens2bb3lerbbru2cbe2delbe2erkbe1erlbe1etabei1f4bei3k4bei3labe1indbei3scbeis2ebei1stbeit2sbe3lasbe3lecbe3leibe2letbel3label3szbel3t4ben3arbe3nei3ben3gbe3n2iben2sebenst4ben2su2bentbb2entib1ents2bentwben3unben3z2ber3ambe2ranbere4sber3nab1erntbe2robbe3ropbe3rumbe3slobes2pobess4ebes3szbe2tapbe3thabien3sbi2ke_bi2kes2b1inb2b1infbin3gl2b1intbi2solbi2s5tb2it2abla3b4b2lancb2latt2b3law3ble2a2b3legb3lein3ble4nb3leseble3sz2blich3blickbling43blitzbo3ch2bo2e3ibon2debo1r2abo2reibo4rigbo4s3pbot2st2b3radb4ra3k2b3refb3reif2b3repbri2er2b3rolbrust3bru2thb2s1adb3sandb3sel_bse2n1b3s2esb2s1ofb3s2pubst3acbst1akbs3tätbst3erb2stipb4stodbs4trib4stübb2s1unbu2chibul2la2b3umkbu3r4ibus1erbu2sinbu2s1pbu2s1ubzeit1carri1ca3t4hcha2ck2ch1akch2anb3chancch1ang4chanz4char_1characha2sc3chato4chatuch1ärm3chef_3chefi3chefsch1eimcher3ach1ess2cheta1ch1iachi3na4chind2chinf2chinhch1insch1int1chiruch1offch1orcchre3s1chron2chunt2ck3an4ckeffck1ehe4ck1eick1entcke2rack2ereck1erhck2ern2ckero2ck1id2ckunt2ck1upcon2nec1s4trcussi43d2abäda2ben3d2ablda2bredab4rüdach3ada2chodach1sdal3b2d1amma2d1amt2d1ana2dangedan4kldan2kr2d1ans2dantwd2anz_4danzida2r3a2darb2dar2mada3s2hdat4e2da3teidate4n4d3atl4daush2d1ämt2d1änd2d1ängde3a2tde4ca_de2cka2d1eff2d1ehrdein2ddein2sdel1ändel1ec2delek2delem2delfmdelle2de2lopde3lordel5scdel2sodel3t4dem2ar2d1empden3th2dentwdera2bde1radde2rapder2bl2derdbderer33derieder3m2de4ruhde4rumde3sacdesa2gde4samdes2äcde2sebde4sehde2seide4setde2sinde2sordes3s2de2sto2d1etwde1urlde2xisdha1s4di3e2ddi3enidie2thdige4sdil2s52d1imb2d1ind2d1inf2d1inh2d1ins2d1intdion3sdi4re_di2rendi2ris2d1irl2d1isrdi4t3rdle2ra2d1o2fdo2mardo5n4adoni1e2d1opfdor2fädor2fldor2fr2d1orgdo2riedor2tadö2s1c3d4ra_2d3rad2drahm3d4ramd3rand2d3rät2d3räud4rea_d4reas3d4rehd4reiv4d3ren2d3rep4d3rer4dres_d4resc3d4ria2d5ricd5riegd4rin_3d4rit4dritu2d3rod2d3rot2d3rovdrö2s13d4ruc2d3ruh2d5rutd2sau2d2s1efds2eigd2serhds1errd3s2had2s1imds2infd3skuld2s1opds1orids1pasd2sprods3tabd4stagd4stead3steid4stemds4tilds4tipds1umsds2zend4theidtran2du1alvdu2bli2d1ufe2d1umb2d3umkd2ums_2d1umvdund2a2d1unfdun3kedun2kl2d1url2dursadwest3ea3dereadli4e3aleiealti2eat4e2eater1eat3s2e3au2feau1ste3b2akebert4eb3lereb4leue3blieeb3reiebs3paeb3staeb3strebu2t12e3cheech1eie2cho_e2ch3rech3taech1uheck3seede2aledens1edi4aled2s1oed2s1pee2choeed3s2ee2lekee3lenee4nage1e2pie1erbtee3r2eeere2see4reteer2öse1ertree3r2uee4tateewa4re2f1adef1anae2fente3f4lu2e3f2oef3reaef3rolef3romef2tanege2raeg4saleg4stoegung4eh1ache3h2aleh2auseh1eff1e2hepehe1raeh1inteh1lameh2linehl2seehr1a2eh2reiehre3seh1ro2ehr1obehr1ofeh1stee2hunt2ei3a2ei2bareibu4tei2choei2d1aei3danei3dra4eien33eifrüeig2er2eigew2eigrueik2arei3kauei2lareilen1eil3f41eilzuei2moreim2plei2n1aei4nasein3dr2einduei4nelei2neu2einfoein3g2e1initein4szei2sa4eis2peeis4thei1stoei2sumei2tabei2tanei2tarei2troeit3umek1s4tek5triel3abiel2abte2l1akel4amiel4ampel1ansel1anze2l1apel3ariel1asiel1aspel2ast3elbiseld3s22e3lebe2l1el1e2leme3lem_el1empel1erdel1erfel1erkel1erl2eles2el1esse2l1ideli2neel1itael3lanel5le_el3linell3spel1opee2l1orelo2riel2sumelte2kel2t3re2l1umel3useel2zwae2m1ad3emanze3m2ene2m1imemi5naem1intemi3tiemma3uem2meiem3pflem2spren4amee4nanden3angen3areen2ascen3atte3nauee2n1ären4ce_en2dalend3siend3szend2umen1e2ce2neffe4neine2n1elene4lee2nerfe4nerhe4nerk4enerne4nerz1engad3engagen3g2ien3gloeng3see2n1inen3k2üeno2mae2n1openost3en1ö2den3sacen2sauen2sebens2el1ensemensen1en3skaens2po2enstoent4agen2teb1entfa3entgaen2thi3entlaenü1ste1o2b1e3p2f41episo1e2pocep2tale3rad_er3admeraf4aera1frer3aicer3alleran3de3raneer3anfe2ranher3anmer3apfe3rarie2rathe3ratie2ratme1rauber3aueerau2fer3augerb4sper3chl2erdece3recher1effer1eige2reiner1ele2e3reme3renae3renz4erer_e4rerl4ererne3reroer1errer1erse2rerter1erwer1esser1eul4erfür1ergolergs4t1erhabe2riat4e3ric4e3rieer1inber1inker1inter1ita1erklä2erkreern1oser1o2ber3onye4ro2rer3smoert2aker2thoerts2eeruf4ser1u4mer1underung4er1unses2aches3anze3s2ases3cape3schaes3evaes2haresi1eres3intes2kates4loges2ortes2sau4essemessi2aes2sofes2spues3stres3stuest1ake1stare1state3stele1stile2stipes4trie2s1umes3umse4teinet3haleti2tae4t1ofetons4e2treset4riget2tabet2teiet2t3ret4troett3szetwa4retze4seu2esceu4glae3um2seum4sceums1peum3steu4neie3un2geu2nioeun3ka3eu3roeu1staeu1stoeu1stre2velae2vent1e2xeme2x1inex2tinfa2benfa2chof1aderfa3l2afal2klfal3tefalt2sfan2gr2f1ankf1an3zfar2br2f3arcfarr3s3f4art2f3arzfa3s4afa2to32f1auff1ausb2f1ärmfä2ßerfeatu42f1eckfe1inifek2tafe2l1afel2drfe2lesfe2l1ofen3safer2anfe2rauferde3fer2erf1erfaf2erl_f4erpaf2ers_fest1afest3r2f1etafe4tagfeu4ruf2f3efffe1inf3f4räff3shoffs4trfi2kinfik1o2fi2kobfi2lesfi4linfil2ipfin3sp2f1intfi2s5tfit1o2fi2tor3f4läc2f5läd2f3läu2f3leb3f6limfli4ne2f5lon1f4lop1f4lot1f4lug4f3orgfo3rinfor4stfor2thfor3tu2f1o2xf3rand1f4ränfreik2frein42f3ricf4risc1f4ronfro2nafs1allfs4ammf2s1asf2sauff2sausf2sautfs1e2bf2s1emf2s1erf2si2df2s1o2f3spanfs1penf3s2plf2sprefs2prif2sprofs2pruf2stasf3steif2stipf3st4rf2s1unf2t1alft1e2hft1eigft1eisf4theif2t3rof2t3röf3t4ruft4samft3s2cft4sehfts3elfts2tift1url2f1unffun2klfun2ko2f1unmfu4re_fus2safus2stfzu4gaga2b5l2ga2dr2g1amtgan2gagan2grg3anla3g2ano2g1armga3r2og1arti2g1arzgas3eiga2sorga4spega4sprgas4taga4ste2g1auf2g1autg2d1aug2d1erge3g2l2g1eifge2in_gein2sge2intgein2vgei3shgelb1rge5lehgell2age3lorgels2tgel3szge3lumge4namge4nargen1ebge3necgen3szgen3th2gentwge2rabger2erger3noge1r2öge3r2ug1erwag2e1s23ge3scges4pige3steges3thge3t2a2getapge3t4ugge2ne3g2het3g2hiegi3alogi2e1igie1stgi2me_gi4mesgi2met2g1indgin2ga2g1insgi3t2ag2lade2g1lag3glanz2gläuf2g3leb4g5lerg3lese3g2lid3g2lie3g2lit3g2loa3g2lobg3loch3g4lok3g2lop3g2lotgne2tr4g3notgoa3li2gonis2g1ope2g1opfg2o1ragra2bigra2bl2gradl2g3rah2g3rak2g3räu2g5re_2g3recg4re2eg3reit2g3ric2g3röh2g3rui2g3rum3g4rup2g3rüc3g4rüng3s2ahg4saltgs3amags3augg4s3cegs4chig4s3crg3sel_gs3elig3selngs5erkg4setags4pieg4spingsrat4g3stang3starg4s3täg5stämg3stelg1steugst2heg3stirgs3tocg4stolgs3topgst4rig4sturgs4tücgu1an_gu1antgu4d3r2g1u2fgu1ins2g1unfg2ung_gunge2g2un4s2gunt22g1urlgurt3sgu2s3agus2spgus2stha2choha2delha4dinh1adle2h2al_ha2lauhal2bahalb3rhal2lahal2sthand3shan2krh4a3rah1arm_h2armehar2thh1arti2ha3sahat5t2h1aukthau2sahau2sc2hautohau2trhä3usphe1choh1echthe3ckehe2e3lhe2fanhe2f3lhe3friheim3phei4muheine2h1einkhe1ismhe1isthel1eche3lenhe4lof4h1emphend2she2nethenst2hen5trh1entshe2ral2heraphe3rasherb4she2relh1erfüh1erkeher3thher2zwhe1stahe2tapheter2he3t4she1x4ahfell1hi2angh1i4dihi3enshier1ihiers2hil2frh1induhin2enhi3n2ihin3n2hin3s22hi3rehl1anzh1lauth5len_hlen3ghl2ennhle2rahl1erghl1erwh4lerzh4lesihl1indh3listhlo2reh3losihl2sanhl2serhl3skuhl3slohme1inhmen2shme2rahn3eighn3einhne4n1hne4pfh3nerlh3nerzhn3s2khn1unfho2ch3ho2ckahock3tho2f3rhol1au4holdyhol3g4ho4lor3hol3sh1o2lyho2mecho2medho4seihotli42ho2w1h1raneh3rechh4rei_h3reich3r2enhr2erghr2erkhr2ermhr2erzh4rickh4rineh4rinhh4risth4romeh4romihr2sauhr2serhr4sethr2tabhr2tanhr2torhrt3rihr2trohrt2sahrt2sehr1umsh2s1ech3s2exh2s1ofhs2porh2spräh2sprohst2anh1stechst2heh1s2tih2storh1s4trhst3rih1stunhs2ungh3t2alht3aneh3tankh4tasyht3a2tht1e2ch2t1efhte2heh2teifh2temph2t1euh2t1exh4theihthe3uh2t1inh2tolyh2torgh4trefh2t3ruh2t3rühts2tihu2b1ahu2b3lhu4b3rhu2h1ahu2h1ihuk3t4hu2l3ahu2lerhu2lethu3m2ahung4shu3ni1hus4sahus2sphu2tabhu3t2hhühne4h2wallh1weibhy2pe_i4a3g2ia2l1ai3aleiial3laia2lorial3t4ial3z2ia2nali3and2ia3p2fi2a3spi3a4tai3at4hib2blii2beigi2beisibela2iben3aib3renib4stei2bunki2buntibu2s1ich1eii2chini3chloi2ch3ri3ck2eid2ab4i2d1au1i2deeidel2äide3soide3sp1i2dio1idol_i3d2scid2s1pie2breie2choie2fauief3f4ie2f3lie2froie4g5lie3g4nie2g3riegs3cie3lasiel3auiel1ecielo4biel3sziel3taiena2bi3e2näien1ebie3neri3en3gi3e2noien3scien3siiens2kien3szier3a2ie2rapie3resi3ereuierin3ier3k2i3ern_iers2tier3teies2spie1staie2t1aie4t1oie2triiet2seiet3zwifens2if1ergif1erhi1f4lai1frauif4reii1f4rüif2topift3szig2absig1artiga1s4ige4naig1erzi2g1imig3reiig4salig3sprig4stoig4stöig3strig3stüigung4i2h1ami2h1umi4i3a4ik1amtik1anzik1artik3atti2k1aui2k1eiike2l1ik1erfi2kindi3k4läi2k3raik2trei2l3abi2l1acil1a2di2l1akil1ansil1aspi2l1auil3ausild2eril2doril1e2cil1eheil1einil2f3lilf4s3ilie4ni2l1ipi3lip_i3lipsil3l2ail3l2iil2makil2mauil2mini2l1oril3t2hilung4i2manwima2tri2melei2melfi4meshi2metiim2meiim1orgim3pseim3staimt3s2in3a2ci4nacki2n1adin2arain2arsin4arti2n3auin2dalin2dan1indexind4riin3drü1indusin1ehein2erhi4neskine3un1info_1infosing1af1inhab2inhar2inhauin2i3dini3krini3sei3nitzin2nor1inntain3olsino1s4in1ö2dins2aminsch2in2seb2insenin3skr1insta1insufin3s2z1integin3t4rin5trii3n2umin3unzinvil4io2i3dio2naui3ons3ion4stiore4nipi3elipi3en1i2rakir2k3lirli4nir2makir2mauir2mumir2narirpla4irt2stiru2s1isage2is3arei2s1äni2schmi2s3crise3haise3hiise2n1is2endisen3si2serhiser2uis2hasi2s1idi2s1of3i2soti2sparis1picis2pitis2pori2sprois4sauis3stais3stoiss3tris3stuis2sumis4tabis4tamist2anis4teliste4nistes3is4tocis5törist4raist3reisum3piß1ersit1ab_ital1ait1altit2an_it1arti3tauci4t1axi2t1äsi2t1eii4teigit2eili4teinite2lai4tepoi2t1idit2innitmen2i2t1ofit3rafit3rasit3rauit3räuit3ricit3romit4ronit3runit2stoit2tebit4triitt2spi2t1umi2tunsit1urgitzes4it2z1wi2v1akiv1angi2v1eiiv1elti2v1urizei3ci2z1irjahr4sja3l2ajean2sjek2trje4s3tje2t1aje2t3hje2t3rjet3s2jugen2jut2e1kab2blka2ben2kabla2kabläka3b4r2k1abt2k3adaka1f4lkaf3t2kaken42kala_ka2lanka3leikal2kakal2krkal4trkan2alka2nau2kanda2k1angk2ans_k2anz_2k1apfka3r2i2k1armk2arp3kar2pfk2artaka2s3tka3tanka3t4hka4t3r4kaufrkau3t22kautok1ä2mikä2s1ckdamp22k1e1cke2he_kehr2s2k1eic2k1eig2keinhkel1acke3lagkel3b4ke2lenke2lerkell4e2k1empken3au2kenläkens2kken3szk2enteken3thk2entrk2entu2kentwke1radk2erkok1e2rok2ers_ke2selke4t1ake2t3h2k1e2xki1f4lki1f4r2k1intkis4to4k1lack4leidk3lem_2k3lerkle2ra2k3leukle3usk2lisc2klistklit2s2k3locklo2i3klost4klung42k1lüc2k5nerkno4bl2k5norkoh3lukol2k5ko3n2ekon3s4ko1r2a2k1orckot3s22k3radk3rats2kraum2k3rät2k3rec2kred_2k3refk3reick3reih2k3rick3ries3k4ronks1e2bk2s1emk2sentks1erlk2s1idk2s1ink2s1o2ks2pork1s2tik2stork2sträk2stumks2zenk2t1adkt1aktkta4rek2t1auk2tempk2tentkte3ruk2t1idkt1insk2t1ofkt1opekt4rankt3rask4trefktro1skt3runk2tuns2k1uhrku3l2eku3l2i2k3umlkum2s1kun4s4kunst32k1up_kur2blku2reikuri2ekur2spkur2stlab4ralab4ri2l3absla2ce_la2gio2la1hola2kesla2k1ila1k4lla3min1lammf2l1amtlamt4sla4munl1analla2nau3l2andlan2gl2lanhäl2anhe4lanli2l3ann4lansä2lantrlan2zwlap4pll3artila2saulast1ola4tel2l3athl2auf_lau2fol2aufz2lausl2lausr2lauto2l1ähnlä2s1cl4betal2b1idlb2latl4bre_lb3ritlbst3elb4stol2b3uflbzei2l3d2acl2d1akld1amml2da2rld3arild1arml2delel3der_ld1erpl2d1idl2d1iml2dranl3d4rul2d1umle2chile2gau3l2ei_lei2br4l1eigl2ein_l2eindl2eine2leinkl2eintl4eistlei2talekt2a2lektr3l2ela3lemesle4nad2lendul2e2nolen3szl1ents4lentzlen2zil2e1rale2ragle2raul1erfol2erfrl2erfül2erkal2erkol2erlel4ers_lers2klers2tl2ert_l2ertel2erzales2amle3serleste3le1stole2tat2le3thlet4tule3u2f2leurole2xislfang3l2f1ecl4feisl3f4läl3f4lulf3ramlgen2alge3ral2getilian2gli3chili2ckali3d2ali2deo2l1idolid3scli3enelien3slie2stli2grelik2spli3m2ali3n2alin3alli2nefli2nehli2nepli2nes2l1inflings52l1inh2l1injlink2sli2noll2ins_l2insal2insc2linsp2linst2l1intli3os_li2p3ali3s2a2l1islli2tallit1s2lit3szlizei3lk1alpl3k2anl3kar_lken3tl3k4lul2k3rol2k3rulk4ställ1abbl2labtll1affll1aktl3l2alll3amall2anwll1anzll1armll3augl2lausl2l1ämll1echlle3enl2l1efll1eiml3len_llen3gl3ler_lle2ral2lerzll1imbll1impll1insl2lobel2l1ofll1opfl3lor_l3lorel2l1oul2l3öfll3s2kll2sprllti2mllt5s2l2marclm1auslm1indlm1inslm3stelm3s2zln3are3l2ob_lo2berlob4ril1o2felo2gaulo3h2e2l1ohrlo2k3rl1o2lylo2minlo2n1olo3renlo4skelo2speloss2elo4stelo3thalo3thiloti4o2l3öfelpe2n3l2p1holrat4sl3s2all2sannl3sarel2s1ecl2s1emls1erels1ergl2serhls1erlls2logl3s2pil2sprol3s2pulstab6ls4tafl3stecl3steil3stell4stemls2tiel2stitls2zenlt1a2mlt3andlt1angl3tarblt1artl2t1aultbau1lt3elil5ten_lter3alt2erglt4erölte2thl2t1eul4theiltimo4l2t1ofl4t3ötltra3llt3räult4rielt3roclt3rosl2t3röl2t1umltu2ri4lu4b32l1ufelu2g1alu4g3llu2g3rlug3salug3splu1id_2l1una2l1unf2l1unilu2s1ulu2t1alu4teglu2toplu4t3rl2z3acl3z2anlz2erklz1indlz2wecm2ab4rma2d4rma4d2sma2ge_ma2gebma2gefma2gegma2gekma2gepma2getma2gevma2gew2m1aggma3g4n2m1agomai4se2m1aktmal1akma2lanma2lauma3lermali1emal3lo2malltma2nauman3d2ma2net2mansa2mansä2mansc2mantwmar3g2maro3dma3r2uma2tanma2telma5trimat3semat3sp2mausg4m1ändmä3t4rm2d1ummedie4mee2n12m1eif2m1eig3meistme3lamme2laume2lekme2lermelet42melf_mel2semel5t4mena2bme3nalmen3armen3aumen3glme3normen4skmen2somen3ta2mentnmer2er3merinme2sal4meser2me3shmes2stmeste2me1stome3t2amie3drmi2e1imien3smie2romie4timi2karmi3l2amilch1mild4s2m1impmin2enmin2eumin2ga3min2omi2t1rmit3s2mit5sami5tsumi2t1umk5re_m2m1akm2m1almm1angmm1anzm2m1aumme4namme2samm1inbmm1infmm1inhmm1insmm1intmmi3scmm3stamm3strmmüll1m4nesimode3smo2galmo2k1lmon2s3mon3su2m1opemo2rar2m1orcmor2drmo2rermos4tampf3limpf1ormp3strms3andm4s1efms1erwms1inims1orim2spedm2spotm2sprom4stagm3stelm3s2tims5träm3s2tumt3aremt1eltm2t1eum2t1immtmen2m2t3romt2sprmt1urtmu3cke4m3unfmu4s1amu2s1omut1aumut2stmvoll14n3absna2ch1nach3s4na2drna1f4rna2gemna2h1a3n2aldna2letnal3lanalmo2na2lopnal2phn2als_nal3t4n4amenna3m4n2n1amtnamt4sn1and24n1ang2n1ans2nantrnap2sina2r1an2arle4n3artna3r2unasyl2na3t4hnat4sanat4sc3n2aul4nausb4nausgn2auso4nauss4nausw2n1ä2mnär4s53nä1umnbe2inn2d1akn2danlnd1annnde2sendi2a3ndo2ben2d3ren2drobnd3rolnd3rosn2druind2sornd2spr2n1ebnne3ein4n1ehr3neigtnek3t42n1ele5neleb4nelek4nelemne3lennel4la3ne3lu2n1embn1e2mi2n3emp2n1emsnen3a2n1endgnen3einenen14nengb4nengs4nengtnens4enen3skn1entb4nentn5nentrn1ents4nentzne2n3u2n1epone2posne2ranne2rapne2raun1erbine2reb2nerfü3nergrn2erlin1ermän2ern_ne1rösn2ert_n1ertrne2rup2n1erzne3sanne3skane2s1pne1stanes3tine2tadne2tapn1etatne2taunet3han1e2tunet2zi2n1eupnfalt4nf5linnft4s3ng2absn2g1acn2g1akng2anfng1anzn2g1äln3g2enngen2an3gläsn2glicngrab6ng3ratng3rocngs3panich1s3n2id_nie4n3ni3eneni1eronifes3ni2grenig4spni2kalni2karni3ker4n1imp3n2in_n2in4a4n3ind4n1inhni2nor2n1insn2ins_4ninse4n1int2n1invni2s1eni3se_ni2s1pni3spinis3s4ni2s1uni3t4rni3tscnitts1n2k3adn2k1akn3k2aln2kansn2kausn2k1ärnk4ergnk1inhnk3lennk3lesn2klienk3lunn2k3ronks2eink3s2znk2taknk2tannkt1itnk4topnk2trunmen2snna2ben2nadan2n1annnen3gnn2erhnn2erknne2rönner2znnes1enne4stnn1o2rnn3s2pn2n1ufno2blano2leu3n2opano2radno1rakno3ral3n2os_no2s3pn2ostenost1r2nostvno3tabno2telno3t3hno4thano4thi2n1o2x4n1ö4lnräu3snre3sznrö2s1n2sangn2santn2sausn2s1änns1e2dns1entn2s1epns1erfns1ergn2serhns1ersnsfi4lnsho2fn2simpnsi4tensi2trns2kaln2s1opn4spatn3s2pins4piens3ponn4sprän4spronst1akn3starn3statns4tornstü1bn2s1unns2ungns4unrns4unsn4s3zint3absn3t2alnt1angnt2arbnt1arknt2armn2t1äunte3aunt1ebente3g6n2teignt4enent4ernnt4ersnt4ertnt2hern2t3hon3t4hunti3kln2tinfntini1nt2insn3ti1tnt4lemntmen2nto3ment3recn5trepnt4rign5tropn2t3rünt4saunt2sto3n4tu_ntu2ra2n3umb2n1ums2n3umz3nung_n3ungl2n1uninu4t3rn2z1aun2z1ännzdi1snzi2ganzig4snz1inin2zurkn2z1wan2z1wän2z1wuoa3cheoa3chioa4k1lo4a3lao4a3mi3oa3seo3b2al2o3b2äob3ein2o3b2iob3iteo2b3li2o3bloo2b3reob3s2hob2staocha2boche4boch1eioch3ö2och3teochu2fo2ckarock2erock3szodein3ode2n1odene4ode3sp2o3diaof1a2co2f1eiof2f1a1offizof2f5lof2f3r2o1f1rof4samof2speof2sprof2s1uof2teio2g1abog1alaog1ango2g1eiogi2erog1steohen3sohl3auoh3lecohl1eioh3lemoh3lenoh3lepohls2eoh2n1ooho2laoh1o2poh4rinoimmu4oka2laokale43o2kelok2s1po2l1akolars2ol1aufol4damol1eieol1eisol2fraoli3k4ol2kreol2lakol2lelolo3p2ol1ortol2strol2z1aol2zinom2anwom1arto2m1auo2m1eio3men_o2meruom1erzomiet1om1ingom1orgo4munto2narbon3ausone2n3onens2on1erbon1ergon1eröo3netton3g2lon2i3do4nikro4n1imon3ingonlo2con3n2eo2nokeon1orconsa2gon4samon2sebonse2lonst2hon3t2aoo2k3lo2p3adop3aktopa2leo1pe4nop2f3aop3fahopf3laop1flüopi5a4op5lago2p3le1op3t4or3a2bor4altor2ando2ranhor3arbor3attor1ändor2baror2dauor2deuor2ditor2dumore4aso2r1efor1eigo2reino2rerfor1ethor2fleorf3s42orgetor3g2h2orgiaorgi1eor3gle2o3ric4orie_o3rier4orin1or5ne_or3s4aor2täror2tefor2theor2torort3reo4r3un2o3s2ao3scheo2s1eio3s2hi2os2kl2os2koos3peco3s2poos2seios2s3oos4sonos2s3pos2s3tost1auos4teios2t3hos3tilost3räost3reost3ufo3s2zeo2ß1elota2goo5tarko3tarto2t1auot3augotei4not4em3otemp2ot5helo2t3hiot3hosot1opfoto2rao2t3reot3rinot4spaots2peot2sprot2t3rot4triou1f4lou4le_o3undsou3s2ioviso3owe2r11o2xidöbe2laöbe4liöh3l2eöl2k3löl2naröl2ungönizi1öp4s3tö2r3ecö2r1eiör2ergö2rerlör2f3lö2r1imörner2ör3s2kö2schaö2schlö2schwö2s1eiös2s1cöte4n3pa1f4rpa1k4lpak2topala3tpa2narpa3neipa2neu1pa2nopan3slpa5regpa5rek1park_par2klpar2kr1partn1partypar3z2pa3s2ppat4e2pa5t4rpa3unipä3ckepä2t3hpät3s4pekt4spe2letpe2lexpell2apell4epen3dape4nenpe2n1o3pensi1pensupen3z2per2anper4nape2robperwa4pes3s2p2f1akpf1ansp2fa4rpf3arepf3armp2f1au4p3fe_pf1eimpf1einp3fen_p2fentp3fer_pf2erwp3f2esp2f3läpf3leipf3lie2p1heiphen3dphen3sphi2ka2phthepi3as_pi3chlpiela2ping3s3pinsepi3onupi4pel3pirinpi3t2aplan3gpo2laupo4lorpo1o2bpo1ralpo1raupo4stapo4stäpo2stopos6trpo2t1upp3anlppe2n1p2p1f4p3p2hopp5lanp2p3rap2p3repre2e13preis2p3rer3p4res1prinz2prosspro1stp3steap3stelp3s2tipt3albp4t3ecp4t1eip4telept1in1pto3mept1urspul2sppu2s3t2r3aacra2barrab2blr2aber1r4abi2r3abwra2chura2dam2radapraf3arra2ferra3gle3r2ahmrail4l2r3airra2krera2kro2raktira2la2ral3abr3alar3r4aldral3larall2e2rallgr3alp_2ralper3al3trama3srambi2ra2mer1r2ami2r1amtramt4sr4andar4anderand3sr4aner1rangirani1eran2kr2r1anm2r1anpr2ans_r2ansp2rantr2r3anw3rareirar3f42r3arz2rato_rat2st3raub_rau2mi3rausc2rausgrau2spraut5srä2s1c3rätser2b1abrbal3arba3rerb1artrb1aufrb1echr4belärb1entr3b2larbla2dr2ble_rb3lerrb2linrb4seirb3skarb4stärb3strr1che_r1chenrch1s2rch3sprch3tar3d2acr2d1akr2d1alrdani1rd1antrd1anzrd2ei_rden3drde3rerde3sprdi3a2rdia4lrdo2berd3ratre2altre3at_re3atsre2b1are2b1lreb3ra4rechs2reck_2recki2reditre2hacre2h1ire2h1orei4bl4reifrrei3gareim2p4reingr3eink4reinr4re2ke2r1elbre3lei2r1elf2r1elt4rempfrena2bre3nal3rendiren3drren4gl2rengp2rengsr1ense2rentw3r4er_2r1erbr2erbr2r1erdr2erenr2erki2rerlö2r1ermre2robr2erse2rerspr2erte2rertr2r1erzrer5zer2erzy3r4es_ress2ere1stare2thyreu3g2re3uni2r1eurrewa4rrf1ältr2fentrf3licrf3linrf2s1ärf2s3trf3t4rr2g1ahr2g1akrge4anrge2blr2getor2glanr2gleur2g1obr2gregr2gresr2gretrg3rinrgs4tr3r4he_3r4henrho2i3rib2blri1cha2ridolrie2frriene4rien3srie2nuri1er_ri4ereri2f1ari2ferri2f1orim4scr2i3na2r1indri3n4erine1i2r1infrin2foring3lrin2gr2r1inh2rinitr1innu2r1insrin4sorin2sp2r1inv3risikri4s1pri3t2irit2trr3klaur2klisrk5nebr2k5nurk3räurk3rinrk2s1erk3shirk2tinrk2t3rrk3trark4trirk1unirlös3srl2s1prl3ster3m2agrma2larm1ansrm1anzrm1a2pr2maphr2m1efr2mider2m1imrm3starm3umsrn2andrn3anirn2a2rrn3arern3arirn3eifr4nerfr4nerkr4n1inr2n1opr2n1orrn3s2ärn3s2prn3s2zrn3t2ero2bei3rock_r2o3deroh3na3r2ohrro2madro2mer4ro1nyror3alro2ratro2reiro2r1oror3thro3s2iro3smoro3starost1rro4tagrote3iro2thoro4trirots2orot2taro3t2uro3untrö2b3lrpe2rerrer4srre2strr2n3ar2r3obrr3stur4samprs3anprs3antrsch2lr3schur3schwr2seinrse2n1rs2endrse4ners1erers1erörs1ersrs1erzrs1etars2kalrs2kanrs2kiers2kisr4s1opr4sordr2s3phrs2tecr3stier2stinr2stiprs4tobr4stotr3s4trr3s4türtals1rt1angrt1annrt1antrt1anzr2t1arrte1e2rt4eifr2telfr2temort1ersrt3holrt2humr2t1idr2tinfrto2rirt3recrt3rosrtrü2crt2spart2sprru2ckurude2aruf2s32r1uhrru1insru2m3ar2ums_2r1unar2unde2r1unf2runglrun2kr2r1unl2r1unm4r3untru2r1erus4stru3staru4teiru2t3rrü1benrwun3srz1a2cr5zenerz1engr3z2ofrzug2u3sabetsa3blesach3t2s1ada2s3affsa1f4r3s2al_sal2se2s1alt3s2alz4s1amnsam2tos2an2cs4and_3sang_2s3anh2s3anl2s3anssan4sk2s3anw3s4ar_3s2ara4s3arb3s2ard3s2ars4sartisa4ru24s3ath4s3atlsauri1s3ausw2s1änd3sänge2schak2schao3sche_2schefsch2en3sches4schexschi4es4chim3schis2schmö2schn_2schoxschs2e4sch3tscht2ascht4rsch2up3s4cop3sco4rsda3mese3at_s1echtsee3igseein2se1er_se1erö2s1effse2galse4helse2hinseh3rese2hüb2s1ei_2s1eie2s1eig2seinb4seing2seinh4seink2seinl2seinn4seinr2seinw4s1eis3s2eitse2l1ase3ladsela2gse3lamsel1ec4selem2self_s3elixse2l3ösel3szsel3trs4e3ma2s1emp3s2en_se4nagsen3gl3s2enise4nob3s2enss2ent_s2enti2sentw2sentzse2n3use5refser2ers2erfrs3erfüs2ergr2serhöse2robs2ers_2sersas4ert_s2ertase3rum3s4ervse2selse1stase2tatse1u2n3s2ha_4s3hansho4resi2achsi3enesi1errsi3gnusi2g3rsig4stsi2k1äsik3t42s1immsi3n4a2s1ind2s1infsing1asin3ghsin2gr4s1inhsini1e2s1inq2s1ins2s1int4s1invsi2s1esi2s1osi2s1psi2tausi2tra3skala4skanz3s2ki_3s2kik3skulpsla2vesler3s3s4lipsli4tuslo3be4s5not2s1o2bs1o2he4sohng2s1ohr4so2lyson3auson3säso1ral2s3ordso2rei4s1ostso3unt2s1ö2l2spala2spara4sparo3sparuspe3p4s1peri2sperl2speros2perr4spers3s2pez4spi4p3s2plis3p4lu4s3poss2potts2pracs2pran4sprax2spräm4spräs2spred2spres2sprob4sprüfsrat2ssrö2s1ssa3bos2sanos4sansss2antss3attsse3hass1erös3s2essse3tass1offs2s1opss1oris2spros3stelss4tipss2turss1ums2stabb3s4tad3staff2stale2stalkst1almst1alpst1ami4stan_sta4na3stand2stani2stans2stanws4tar_4staris4tarsst1asis3tat_2stauf2staum3staur2staus4stälts4tänd5stätts3täus4s5te_3s2tegste2gr3s4tehs2te2i3steig4steil1s2tel2stel_2steln2stels4stem_s5ten_st4ens4stermste4sts4teti3s2teu1steue4steufs2t3ho2stie_s2tiegs2tiel2stien3s2tif3s4tims4tinfs3tinnst1ins1stitu2sto3d4stod_s4toffs4t3om2stopo2stor_2store2storg2storis3tort2stose4stote2stöch2strad2strag4strai4strak2stral5straß2strua2strug3struk2strup2st3t43s4tud2stumt2stun_4stunn2stuntstu3rest3url2sturn2s3tus2stüch2stür_2stüre2stürg2stürs3s2tyl3su2b3su2cha2s1u2fsu1it_su2marsu2mau3s2umesu2mels3umfesum1o2su2mors3umsas3umst2s1uni2s1urlsüden24s3zeis2zena4szent4s3zet2ß1e2gße2l1aß2ers_2ßerseßge2bl2t1abb3tabel2taben3table2t3abn2t3abtta3d2s3taf2et1af4rta2ga24ta3gltag4sttah3leta3i2kta1insta1ir_t1a2kata2krotak6ta3taktb3t2al_ta3lagta3lakt1alb_t1albk3t4aletal2löta2mert1amplt1a2na4t2andt3ankl2tanwa2tanwät2anz_t1anzat1anzuta2pe_ta2pes2t1armt1artitar2to2t1arz4t1aspta2tanta2tautat3eita2temtat3heta2tom4tatue2t1auf4taufg4taufnt1ausb3tausct2auset1ausk4tausltaxi1s2t1ältt1ängs3t4ebbte3cha3technteck2ete2ckite2en3te1erwteg3ret3eifr2t1ein4teinf4teinnt3eis_t3eisb3te3letel1eb2telemtel1ente4leute2littell2ete2l1ö3telt4tel3tatel3thte2min2temme2tempfte4m1utena2bte4naste4nauten3dat6endit6endote2nefte2nettens2et4entat3entb4tentdt4ente4tentnten3zwt3e2pi3t4er_tera2bte1rafter3am4terbs4terbtte2relt4erfrte3ria3termi2ternct4ers_terst4ter3zatesa2cte2santesä2cte2selte2sprtes3s2te2tat3teur_2t1exz3t4ha_3thal_4t3hau1t2he_2t3heit4heint4henet4heni2therr3these2t3hil2t3himth4mag2t3hoc2t3hoht4hol_2t3hot1th2r2ti3a2mtiden2ti2deo3tief_3ti2erti2kamti2karti2kinti2kräti2larti2leiti2lel4t1imp3t2in_4t1indti3n2eting3lting3s2t1inj2t1int4t1invti2seiti1sta2ti3tuti2vanti2velti2v1oti2v3rtlung4tnes4s3tochtto4d1utom1e2to2mento2nauto2nehto2pakto2patto2rauto4ränto2relt3orga3torint1ort_3tost4to1sta3to3teto2thotouil44tractt3rad_6trahm5t4rai2trand3trankt3rann3transt3raset3rasi3träne4t5re_tre2brt3recht4reck6t3red5t4ree4trefe4trefot4rei_4treic2treift3reigt3reint3reis6treitt3reiz6t3relt4ren_3trendt3rent2trepe2trepot4reprt4res_3treuh5trieb2triegtri4er5triggt3rind4tringtri3ni4trinn4tripttrizi13t4roitro2ke4trom_tro2mi4troml2t3roo3tropf2t3röttrums15t4ruptru2thtrü1betrü1bu2t3rüct4sa4bt3s2act2s1aht4s3art2s1änts4cort3seiltse2n1t2s1erts1init2s1irt1slalt3spalts1parts2pedt3spekt3s2pit4stagts3takts4talt2stipt4stitts3tocts3tort2strits3türtta2bet2t1adtt2anttt1arttt1ebett1eiftt1eistte2lattel1otte2satte2sätt2häut2t3hott4roctt2sentt2sortt2spett2sprtt2stitu1almtu2chitu3fent3u2kr3t2ume2t3umf2t3umg2t3umk2t3umrtum2situm2so2t3umt2t3umz2t1una2t1und2t3unft3unga2tunif2t3unttu2re_tu2reitu2resturin1tück2s3tür3s3tütentze4n1tz2enetz1erltze2rotz2erst3ze2stzgel2tz1indtz1inttz2tinua2lauu3aletual2mau3a2louara2bu2be2cub3licu2b3luub2sanub2s1oub2spau1cha_uch1eiu3chesuch1iluch1inu2ch3ruch2souchst4u2ckemuder2eudert4udi3enuditi4ue2neruenge4uen2zuue2r3aue2r1äu3erehu3ereru3erexuer3g2uer2neue2r3ouer3scuer3t2u3erumue4teku2f1äsu2f1eiu2f1emu3fen_u2fentuf2ernuf2frouf1oriuf4sinuf2spouft3s2u2g1apu2g1eiug3ladu3g2löug4serug3spaug4sprug4spuug5stäug3strug3stüuhe3s6uh2reruh4rinuisi4nui4s5tukle1iuk2t3ruld2seu2l1elul1erful1erhul1erwule2saul1etaul1insul2lesul2p1hul4samuls2thul4trium1allum1anzu2maut1um3d2umer2aum1ins3umsatum4serum2simu2m1uru3n2amu2n3an2un2asun4dabun4deiun2didun2dorun2d3r4unds_und3spund3stun2ei_un3einunen2tun4es41unget1ungew1unglüun2g1rung3raung3riung4saun3ide1u2nifun3islu3n2it3u2nivun2keiun3n2eunvol2u1or3cu2pf2eu2pf1iu3rabaura2beur2anbur2anhu2r1auur3b2aur1effu2releu4r1epur1erhur1erwur2griurg3s4ur1iniur3insur1int1urlauur3sacur2sanur2sauur2serur4sinurst4rur2z1wus4annu2s1ecu2s1eiu3seiduse1rau2serpu2s1opu2spatus1picus2porus4sezus2sofu1stalus3tauust2inu2stunu2sturut1altut3a2mu2t1apu2t1arute4geut1ei_ut1eieutel1eute2n1u2tentu4t1exu2t3hout1opfu2topsut3reaut3s2aut2s1äut2spaut5t4lutu4reutu5ruut2z1wuve3räüb2s3tücht4eü3ckenück1erü3den_üden4güdwes2ü2f1eiü2h1eiühl1acüh3r2eühr3taü2mentün2fliün2g3lün3strü2r1eiü3r2o1ü2schlüs2s1cü2t1alva2teiva2t3hvatik2va2t3rvat3s4va2t1uveits32ve3muve3nalve3radve3rasver3b2ve4rekve4rinver3stver5te2ve3scves3tivi4a3tvie2w1vi2l1avi4leh2v1i2m2v1intvi3s2ovoll1avol2livo5rigv1steuwab2blwa3chewaffe2wa2g3nwah2liwal4dawal2tawal2towang4s1war2eware1iwart4ewass4e4webebwe2g1awe2g3lwe2g3rweg3s4wei4blwei2gawei3k4wei4trwel2t1wel4trwen3a4we2r3awer2bl1werbu1werduwerer2wer2fl1werk_wer2ka1werkewer2klwer2kuwer2tawer2to1wertswe2s1pwest1awes2thwest3rwes4tuwett3swi3ckawien2ewie2stwim2mawin2drwi3s2e1witzlwo2chawoche4woh2lewo2r3iwo4r3uwört2hwul3sewur2fa1wurstwus3te1wu4t1xe3lei3x2em_xen3s2x1i2doxin3s2xi2so2xis4täx1i2tuxtblo4x2t1eix4tentx2t3evy3chisyloni1y2p1iny1s4tyy2s1u22z3a2b2z3a2k2z1all2z3anf2z3anlz1artizar2tr2z1arzza1st42z3at3z1au2fzbübe32zecho2z1eck2z1effzei3lazeile42z1einzei3s4zeist4zei2trze2lenzell2azel3sz2z1empzens2ezent3sze2r3a2zerhöz2erl_2zerlö2z1erq2z1erzze3skuzes2spzes2stze2s3tze3sta2zettszger2azi3alozi1erhziers1zi1es_2z1impzin4er2z1inf2z1inhzin1itzin2sa2z1invzirk6szi3s2zzi1t2hzor4ne2z1oszz2t1auz4tehezt1inszt3reczu3ckezug1un2z1uhr2z1um_zumen22z1umszup2fizu3r2a2z1url2z1urs2z1urtz2wangz2weigz1weis2z1wel2z1wen2z1werz2werg2z1weszzi1s4",7:"_al4tei_amt4s3_and4ri_an3gli_angst3_an4si__an4tag_ausch3_be3erb_be3r2e_berg3a_bo4s3k_bu4ser_da4rin_da4te__da4tes_de4in__dien4e_ebe2r1_en2d3r_en4tei_er4dan_er4dar_er4dei_er4der_es5t4e_fer4no_fi3est_fi4le__fi4len_ge5nar_ge3r2a_ge3r2e_ger4in_hau2t1_her3an_ho4met_ima4ge_ka2b5l_li4ve__lo3ver_lus4tr_men3t4_orts3e_pa4r1e_reb3s2_re3cha_rein4t_reli3e_res6tr_sali3e_sim3p4_sto4re_tage4s_ti4me__ti4mes_to4nin_tri3es_ul4mei_urin4s_ur3o2m_ve5n2e_wei4ta_wor4tu_zin4stab1er2raber4ziaber4zoab3essea4cherfa4cherka4cheröach1o2bach2t1oach1u2fa3d2ar3ade1r2aade3s2pade5str2ad3recaf4t5reage4neba4gentuage4ralage4selage2s3pag3esseags4toca2h1erhah4l1eiahner4eahre4s3ahr6tria3isch_ajekt4o1a2k4adak5t4riala5ch2a2l1angalb3einalb3eisal4berh3a2l1efa4l3einal3endsa2l1erfa2l1erha2l1ert3a2lerza2l1eskali4eneali4nalal3lenda2l1o2balt3eigalt3ricalt4stüalzer4zamen4seamp2fa2am4schlana4lin2ana1s4and4artandel4san2d3rüand4sasand3stean2f5laan2g1eian4gerwan2g3raan2k1anan2k3noan2k3rä3antennan3t4heant3rina3ra3lia2r1anga2r1ansa2r1anza2r3appar2b3unaren4seare3r2aa2r1erhar2f3raari3e4nari3erdari3ergarin3itark3amtar2k1arark3aueark3lagark4trear4merkar3m2ora2r1o2dar2r3adarre4n3ar4schla4schecasch3laa2s3e2ma2s1o2fas4s3eia1s4tasas6t3rea2t1aktater3s2ato4mana2t1ortat4schnatt3angat3t4häat2t3räat4zerkat4zerwat2z1inau2b1alauch3taau4ferkaup4terau2s1ahau4schmau4schoaus3erp3aussagaus4se_aus5triau2t1äuä3isch_äl4schlän3n4e2ä2r1eneär4mentäser4eiäse4renäskopf3ät4schlät4schräu4schmäus2s1cba2k1erban2k1aba2r1ambau3s2k2b1eierbei4ge_2b1eimebe1in2hbe2l1enben3dorben4spaben4sprben5t4rber4ei_be4rerkber4in_ber3issbe2s1erb3esst_be3s4ze4b1illubis2s1cb2i3tusbjek4to2b3leidbo2l1anbor2d1ibor2d3rbor2t3rbra1st42b3rat_2b3riemb4schanb6schefb4s1erfb4s1ersbst1a2bb2s3träbs3treubtast3rbu4schlbu4schmbu4schwbügel3eca3s2a3ch3a2bich3anst3chartache4fer4chelemche4ler4chents4chentwche3rei2ch1e4x3chines2ch1invch3leinch4sper2ch1unf4ckense4ckentw4ckerhö4ckerke2ck1err4ckerze2ck1eseck4stro2ck1um3com4te_comtes4cre4mes2d1alar2d1ammädan4ce_dan5kladan2k1odar2m1i2d1au2f2d1aus3delei4gde3leindel4lebdel4leide2l1obdel4sandel2s5edel2s1p4denergden4sende2re2bde4reckder3ediderer4tderin4f4derklä4derneuder3taudert4rades3eltde2sen1de4stredes4tumdeten4tdge4t1edie4nebdi3ens_die2s3cdi2s5tedi4tengd2o3r4ador2f1a2d3rast2d3rauc3d4reck2d3reic3d4riscdrunge3drü5cked4s1amtds3assid4schind2s1e2bd4seinsd2s1engd2s1entd2s1erfd2s1erkd2s1erzd4s1etad3s2kand2s1pard3stell2d1un3ddu4schndu4schrdu4schwe4aler_e3at5t4ebens3eebet2s3eb4scheeb4stätebs3temebs3t2hech1o2bede3n2eeden4seeden4speder3t2ed2s1esed2s3treein4see2f1e2be2f1i2de2f1insege4strehen6t3ehe3strehl3eineh4lenteh5l2erehr1e2cehr3erleienge44eigeno1ei2g3nei3k4laei4leineil3inseim3allei4nengein4fo_ein4fosein4hab3einkomei2n1o23einsate4inverekt4antekt3erfekt3ergela4bene2l3a2me2l1a2re2l1eine3leinee4leing2e3len_e4lensee2l1ente2l1erge2l1errell3ebeell3eiseller4nelt3eng3elternelt3s2kelt3s2pe2m3anfe2m1ansem2d3a2e2m1erw1e2metiem2p3leena3l2ien3d2acend4ortend3romend3s2pene4bene4n1enten4entr4e3ner_e2n1erd1e2nerge2n1erle2n1erre2n1erse2n1erte2n3erue2n1erwe4n3essenge3raeni3er_e2n1i4me2n1o2benob4lee2n1o2ren4terb3entspr4entwetenz3erte4ratemerd3erwer3echser1e2ckere4dite2r1e2h4e3rei_4e3ren_e4rensee4rentne2r3erfe2r1erher3e4tiere4vid3ergebn4ergehäe3ri3k44e3rin_e2r1ini3erlebnermen4serm3erse2r1o2pers4toder4tersert3ins3erweck6erweise4s3atoe2s3einese4lere3s2peke3s2pore3s4praess3erges2s1paestab4be4starb1e2stase1s2tecest3ories3tropeße3r2eeten3d2eter4höeter4tre4traume6t3recetsch3wet2t3auette4n1et4t1umeu3ereieu3g2ereve5r2iewinde3e2z1ennfa4chebfa2ch1ifäh2r1ufeh4lei2f1eing4f1einh2f1einw2fe2lekfe2l1erfel4sohfe4rangfer3erz4ferneufest3eifet2t3afeuer3effel2d1f2f3emifi1er2ffi2l1anfisch3o2f3leinflu4gerfor4teifor2t3r2f5raucf4schanf4scheff4s1ehrf2s1entf4s1etaf3s2kief2s1pasf3s2porf4stechf3s4telf3sternft1a2bef4t1entft4scheft4s3täft4stri2f1u2nifun2k3rfus2s1pfu2ß1er4gangeb2g3ankugas5tangebe4amge4lanzge4lessgel3stegel3t2agen4auggen2d1rgen3eidgen3erngen4samgen4ta_2g1entfge4renggerin4fgerin4tger4satger4stoges3aufges3eltge2s3erges3s2tgien2e12g3isel3g2laub2g1lauf4g3lein4g3lisc2gni2s13g2num_2g3rede2g3reic2g3rein2g3renng3riese2g3ringg4s3a2kg4schefg3s2eilg3s2pekg3s2porgst3entgst3errg4s3torgs4trat4gungew2g1unglguschi5gus4serhaf3f4lhalan4chal4beihal4t3rhar4mes2h1aufmhau4spahäu2s1chba2r3ahe4b1eihe5ch2ehe2f1eihef3ermheiler4heit4s3he2l3auh3e2lekhel3ershel4meihe4n3a2hen3endhen3erg2h3entwher3a2bhe4reck4hereighe4rerwh1er2foherin4fherin4sh3erlauhe2s5trhie4rinhif3f4rhi2l3a4hin4t1ahir4nerhlags4ohle3runhner3eih3nungeho2l1ei2hot3s2hrei4bah4r3eigh3re2s1h2r1etah3rieslhr2s1achr2s3anhr3schlhr2s1enhr4s1inhr4s1ofh2s1achh4schanhse4lerh2s1erlh2s1ingh2s1parhst3alth2s3tauh3steinh5stellhst3ranh3taktsh4t3alth4t3a2mh4t3assh2t1eimh2t1eish4tentfht3erfoht3erfüh2t1erhh4terklht3erscht3ersth2t1erzh4t1eseh4t1esshte3stah4t3rakht3randh2t3rath4t5rinh2t3rolh2t3rosh4t1rösht3spriht4stabhts4tieht4stürh2t1urshu2b3eihu2b1enhu2l3eihu4lenthu2l1inhut4zeni3alenti3alerfi3alerhi3a2leti3a4liai1ät3s4i2b1aufich4speich2t3rieb4stoieb4strie2f1akie2f1anie3g4rai2e2l1aien4erfienge4fien3s2eie3r2erie4rerfi2er5niier4sehier3staier3steies2s3tie2t3hoie4t1ö4i2f3armift3erkif4t3riift3s2pi2g1angi4gefari3g4neuig3steiig4strei2k1a4ki2k1anoi4kanzei2k1erhi2ker2li2k1etaik4leriik2o3p4ikt3erki2l3a2mi4lentsi2l1erfi2l1ergi2l1erril2f3reilig1a2ili4gabi2l1indil3l2eril4mangil2m3atil2z1arilz3erki2m1armimat5scima4turi2m1erfi2m1erzi2m1infi2m1insindes4ii2n1engin3erbei4nerbiiner4löing4sam3inkarninma4leinn4stains3ertin3skanin3stelin4s3umional3aion4spiir2m1eii4s1amtisch3ari3s2chei4schefi4schini2sch1lisch3leisch3obisch3reisch3rui4schwai4schwoisch3wuise3infi4seinti2s1ermi2s1essis4s1aci1s4tati1s4teui1s4tilit3a4reiten3s2iti4kaniti3k2ei2t1in1i2t3ranits1a2git2s1e4its3er1it2s1peit4stafi2v1enei2v1enti2z1enejek4terjektor4je2t1u2jugend3jung3s42k1a2bo2k3a2drka3len_ka4lenskal3eri2k1annakari3es2k1artikau2f1okauf4spke1in2d2k1eiseke4leim2ke2lek2ke3letkel3s2kk3enten2k1ents4kerfahk4erfamk3ergebk3er4hökerin4tker4kenker4neuker4zeu2k1i2dekie2l3o2ki3l2aki3n4o32k1inse4k1lastkle3ari4k3leit2k1o2fekop4fenkot4tak2k3räum2k3redekreier4k4s1amtk2s1ersk2s1erwk3stat4k2t3a2rk2t1erhk2t1ingkti4terk4torgakt3oriek2u3n2akuri4erku4schl4l3aben4l1a2bl2l1a2drla2g1oblan2d3rlang3s4l1a2po2la2r1anla2r1eila4rene3l2ar3glar3ini2l1ar3t3lasserla2t3ralat4tanlat2t3rlau2b3rlaub4se2l1ausslär2m1al2b1edel2b1insld3a2b1ld3a2ckl2d1a2dl2d3a2nld4arm_lecht4ele2g1asleh3r2elein4dulei4ßerleit3s22le2lekle2m1o24lendet4lenerg2l1ennilen4sem2l3entwlent4wäle2r3asler3engle4rers3lergehl3ergen2l1ergilerin4s2l1er2ö3l2erra2l1esellgeräu33lichem3licherliebe4slie2s3clik4ter2l1indulingst4lin2k1ali4schu2l1i4solkor2b1ll1a2bel2l1a2mlle4n3all3endul4lentsl4lerfol4lergoll3erntll3ertrl2l1indl2l1o2rll1ö4sellus5t6l2m3a2blm3einsl2m1e2pl2m1erz2l1o2bllos3t4r2l1ö4l3l2s1a2dl4s1ambl4schinl4schmül2s1e2bl2s1ersl2s1erwl2s1impls3ohnel4t3amel2t3atol2t1eislt4stablt4stocltu4ranluf2t1aluf2t1eluf2t5rlung4sclus4s3alus2s1cluss3erlus2s1olus2s1plus2s3tlus4stälus4t1alust3relut1o2fmach4trma4ges_ma4laktma4l3atma2l3ut2m1analman4ce_man3ers2m1angr4ma3r2oma3s2pa4m1aspemassen3mas4telma1s4trma2ta2b2m1au2fmäu2s1cmbast3emedien3mein4dame1i4so2m1e2miment4spme2r3apme4rensmerin4dmerin4tmerz4en4m1essames2s1omes2s1pme4t3römierer4mil4cheminde4sming3s4mi4schami4schnmi4schwmis2s1cmi2s5tem2m1ansmme4linm4mentwmme2ra2mme4recmmi1s4tmo4n1ermor2d3amoster4mpf3erpmpf3errms5trenm2t1erfm4t1ergm2t1erlm2t1ersm2t1ertm4t1etam2t1insmt3s2kamun2d1amül4lenmütter3na3chenna2l1a2na4lent4n1a2nana4schw4n1a2synauf4frn4austenbe3r2en3ce2n3n2d1anznde4al_nde4lännde4robn2d3ratn4d3runnd4stabnds3taune2e2i22ne2he_2nehen44n3eing4n3eink3ne3l2o4n1endb4n1endd4n1endf4n1endh4n1endk4n1endp4n1endt4n1endwne4nenenen4ge_nen4gen4n1entl4n3entwne2ra2bne3r4alne2r3am4nerbe_4nerben4n5erfonerfor42n3erhö2n1erlöner4mit4n1ernt3n2ers_2n3ersa4n3essine2t1akne2t1annett4scnfi4le_n2g3a2mn2g1andn2g1einnge4ramnge4zänn2g1i2dn3g2locngs5trinie3l2a3n2ing4ni4schwnitt4san4k3algn2k1insn2k1ortnk2s1aln4n1alln4nentsn2n1unfn2o3ble2n1ob2s2n3o2fenor2d5rno4t3eino2t3inno2t1opn2s1a2dn2s1alln2s1äusn6schefn4schronsen4spn2s1erkn2s1erön2s1erwn2s1erzn4s1etan2s1inin4sperin4stat_nst3eifn3stemmns4tentnst4erön4stracn4strien3t2a3cn4tanzan2t1eisn4t1essn2t1inhnton2s1nt3reifnt3riegntu4re_ntu4res1n2ung4n2z1a2gn4zensen4zentwn4zentznz3erwe2o3b4enoben3d4oben3seobe4riso2ch1ecocher4ko3d2e1iof2f1inoge2l1io2h1eiso2h1erto2h1erzoh4lergoh4lerwo3isch_ol2l3auoll1e2col2l1eiol4lerkoma4nero3m2eiso2m1indo2m1into2n1erdon3n2anont3antont3erwon4t3riop4ferdopi3er_o2r3almor2d3amor2d1irord3s2to4rientor2k3aror4mansor4mentor3n2o1oro3n2aor2t1akor4t1anor2t1auort3eigort3erfor2t3evort3insor4trauort3ricor2t1umo4sentsoss3andost1a2bos4t3amost3angos3tarros4ta4soster3eos4t1obost3ranost3roto2ß1enzo2ß1ereo2ß1erfo3t2e1iote2l1aote4leio2t1erwo2t1i2mot4terkoun4ge_our4ne_ozen4taöchs4tuögen2s1öl2f1eiö2r1e2lö3r2erzö2r1uneö2sch3mpa2r3afpar3akt2par2erpar4kampar4kaupe2l1a2pe3li4npe3n2alper2r1a2ph1erspil4zerpingen4pi2z1in3ple5n4po2p3akpo2p3arpor4tinpor4trepor6tripo2s3tepost3eipost3rap2p3a2bppe4lerp4t1entpt3ereip4t1erwp4t1erz2r1acetra4chebra4chinracht3rr3a2d3r3ra1k4l2r3alm_r4alt2hram4manram4m3uram2p3lran4dep4r3aneiran4spara2r1inra4schl2r3asph2r3attarau3e2nrau4man2raus5srbe3r2erchst4rr2d1elbrden4glrder4err2d1innre3alerrech3ar3reigewrei3l2arei3l2irei3necre1in2v2re2lek2r1entl2r1ents4r3entzr4ergen2r1ernä4r3erns4r3ernt3r2ers_2r1ersare2s2tu2r3evid2r3e2x1rfi4le_rfolg4srf4s1idrf2s3prr2g1a2drge4ralrge4taprgi4selr2g3ralrg5s2turi2d3anri3ers_ri3estiri2f1eirif4terri4generin4dexrin4diz4rinnta3r4ins_r4inspirin4tegrin4t5rri4schori4schwr3i2talr2k3reark4stecrkt3ersrk2t1o2rl2s3tor2m1aldr2n1anzr4n3eisr4n1enern3enser4n1ergrn4erhir4n1ertrol4lanro4nerbron4tanros2s1crre4aler2s1a2dr4s1amtr2s3angr3sch2er4stantrs4temprs4terbrst3ingrst3ranr2t1almrt3a4rer2t3attrtei3lartei1s4rten3s2rt3ereir4terfar4terfor4t3erhr2t1erkrter4rerte3s2kr2t1imar4t3rakr4treisrt4s1ehr2t1urtru3a2r3ruch3strun2d1arund3er2r1u2ni4r3uniorus2s1pru2t1o2rve4n1er2z1erfr2z1ergr2z1erkr2z1erwrz2t3ror3z2wecsa2cho22s1a2drsa4gentsa3i2k1sa2l1ids3ameri6s1amma2s3a2nasan4dri4s3antr4s3a2sy2s3aufb2s3ausb3s2ausesbe3r2es4ch2al4schanc4schangsch3ei_4schemp4schess4schiru4schle_sch6lit4schre_4schrinsch3rom4schrousch3s2k4schunt4schwetsch4wilsdien4e2s1echo2s1e2ckse2e1i4se2h1a2se4h1eise4herk5s4ein_sein4dusei3n2esein4fos4eins_4seinsp4seinstsel3ers2s1endl4s1entf2s3entg2s1entsser3a2dse2r3als3erbe_s3ereig2s1erfo4serfül4serken2s3ernt4s3eröf4sersehse4r1ufse3rund4se4tap4s1e2thsi3ach_siege4ssi2g1a2si2k1absik3erlsin3g4lsing3sasi4schuska4te_4skategska4tes4s3klassni3er_sni3ersso4l3eisol4lerson2s1o2s1orga5s2orgeso2r1o24s1o2ve4spensi3s2pi4e4spier43s4prec3sprosssrat4scss1a2cks4s1alas4s1albs4s3amts4s3angs4s3anzs3sa1s2s2s1egasse3infss3ersessquet4s3ta3li4s3tann3staus_st3a2ve4stechn3steilhstei4naste4mar6s5ter_3sterncs4t3ese3s4tett1s2ti2rst1i4sosto3s2t1s4trah4strans3s4tras4straum4s5träg4sträne4s5tref4streibst3renn2s4trig2s5trisst3rollstro4ma4st3run2s4t3s42stum2sstum4sc3s4tunds2t3uni2s3tuns2st3urtsuch4st3s4zene2ß1estrßi2g1a2ta2b1anta4bend2t1a2drta2g1eitahl3sk3t2aktuta4lensta2l1optan4gar2t1anme4t1anna3t2ans_4t3ansi4t3anspta4rens3t4a3rita2ta2bta2t3erta2t1um4t3ausg4t3auss4t1auswtbauer4tbe3r2e4teilhet3einget3einlate2l3abte2l1acte2l1autele4bete4l1ecte4l1ehte4leinte4lerd4t3elf_te2l1inte4losttel3s2kte2m1ei3temperte4na2dte4na2g4t3endf4t1endl4t3endpten3d4rten3eidten3ens4tenerg4t1eng_ten4glate4n3in4tensem4t3entw4t3entzte3ran_te2re2bter3endte4rengte4rerkterer4z4terfol4terfül3ter3g2t6ergru4terklä2t1erlöter4mert3erneuter4re_ter4sert4erst_t4erstit4erstute4r1ufter4wäh2t3erzbtes3tantest3eitestes4teu3ereteu3eriteu2r3a2t3e2xe2t1e2xi4thrin_4thrinsti4dendti3e4n3tie4recti4gerzti2ma2gtim2m1atin2g1at1in1ittin2k1l3t2ins_4t1inseti4que_ti4schatisch3w3ti3t2etle2r3atmen6t3tmo4desto2d1ertor3inttra3chatra4demtra4far2t3rams3t4ran_tre4ale3t4reib2t3reih4trenditre2t3r2t3rund3t4runkt3s2chat4schart3sch2et4schefts4chemtsch4lit4schrot2s1e2bt4seindt2s1engt2s1entt2s1i2dts4paret3s2pont3s2port4spreits3tätit2s3tepts3tradt4strants3traut2s3trät4streut4stropt2s3trütte4lebtte4lent3u2fertums5trtung4s5tu2r1ertu4schlt2z1e2ct2z1eiet2z1eistz3entsubal3l2ubi3os_u2b3rituch4spruch4toruch2t3ru4ckentu3ck2eruden3s2ue3reigue4rergue4rerku4erinnuer4neru3erunfu3eruntu2f1ä2ßu2f1erhu4ferleufs3temuf2t1ebu4gabteu2g1erfu2g1erlugge4stu2g3rüsu3isch_u3ischsuk2t1inulm3einu2m3a2ku2m1artu2m1ausument4su2m1ergu2m1erlu2m1erwumpf4lium2p3leum2s1peun2d1umun2k1a2unk4titunk2t3run2n3aduns4t1runte4riunvoll3up4t3a2upt3ergu2r3a2mu2r1anau2r1angurgros4ur3s2zeu2s1eseusi3er_us3partu2s1pasu3s2peku5s4pizust3abeu5strasus6trisute4leiuter4eruto4berut4schlut4schmut4schöutz3engut2z1inüch2s1cück3eriü4ckersück4speü3d2ensü2f1ergü2h1engü2h1erkü2h1erzühr3ei_ül2l1eiün2f1eiü2r1entüste3neva2t3a4va4t1inve4l1auvenen4dve3rand2ve3s2evid3s2tvie2h3avie4recvi2l1invollen4vormen4waffel3wah4lerwalt4stwar3stewa4schawä3schewe3cke_we3ckeswei3strwer4gelwe4r3iowest3eiwest1o2wim4m3uwolf4s3wol4lerwor2t3rxi2d1emx2t1e2dxtra3b4x2t3rany2l3a2myl4antezei2t1aze2l1a2ze2l1erze2l1inzel3t2hze4n3aczen4semzen4zerze2re2b2z1ergäz3erhalzerin4tzer4neb2z1ersazert1a2zert4anzer4tin4zerwei3z2erzazessen4zger4s1zin4ser4zinsufzon4terz3t2herzu2g1arzu4gentzwan2d1",8:"_al1e2r1_al5l4en_anden6k_ar4m3ac_ar4t3ei_ber6gab_ber4g3r_de3r4en_einen6g_en4d3er_en5der__er4zen4_ka4t3io_lo4g3in_mode6ra_ost5end_oste6re_par3t4h_richt6e_sucher6_tan4k3la2ch1e2ca4ch3erwacht5ergach6tritack3sta43a2er2o1af4t3erlage4s3tiah4l3erhal4b3erw3a2l1e2bal2l3a4rall5erfaalli5er_al4t3erfam4t3ernand6spas3a4n1erban4g3erfan4g3erlan4g3erzang4s3poani5ers_an2t3a4ran2z1i4nar4t3ramau5ereinau4s3erwauster6mau4ten4gau4t3erhäs4s3erkbach7t4ebal4l3ehbe4r3eiwber6gan_ber3st4abe6steinbe4s3tolbote3n4ebst5einbbu4s3chach3e4ben6chergebcher6zie6ckergeb4d3achse2d1an3d22d1e4ben3d2e1i2mde2l1a2gde4l3augdel5sterde4n3endden4k3li4den4semde4r3eisde3r4erbde3r4erfde4r3ero4d3erhöh4d3ersatdest5altdest5ratdienst5r2d1in1it4d3innerdi4t3erldi4t3ermdi4t3ersd4s3tätid3s4tern2d1u2m1edu4sch3le3a4reneech3t4eiege4n3a2eg4se4r1ehr6erleei4b3uteei4d3errei2m1a2gein6karnein6stalei6schwuei4s3erwek4t3erzeld5erstel4d3erwe4ler4fae4ler4lae4l3ernäe4l3e4taelgi5er_elgi5ersel4l3einemen4t3he6mentspen4d3esse4n3ermoeni5ers_en5sch4eenst5alten4s3täten4t3rolen4z3erfen4z3ergen4z3erke2r3a4sie4r3eis_e4r3entferi3e4n3er6tereier4t3erfess4e3rees4t3enges4t3erhes4t3essestmo6deet4z3enteue6reifeut6schnfacher5ffal6schafal6schmfe4r3anzfrach6trf4s3tätif4s3tresf4s3tütef4t1e4tift4s3tanfzeiten6gas4t3el2g1eise2gel4b3ragel4b3rogel6dersge4l3ers4g3ereigge4ren4sge4r3entge4s3terglei4t5rgrammen6gros6selg3s4tatigs4t3rosgu4t3erhhaft4s3phal6lerfhau3f4lihau5steihau6terkhe4f3inghel4l3auhe2n1e2bhe4r3eishe4r3o4bhfel6lerhich6terho6ckerlhol6zeneh6rerlebh3s4terbh3t4akt_h4teil4zh4t3elith4t3entsht5erkenh6terneuh4t3erreh6terstaht6ersteht6raumeht4s3turhu4l3enghut4z3eria4l3ermie4n3a2gie4n3ergienst5räie4r3erziesen3s4ie4t3erhie4t3ertiker6fahi3l4aufbim4m3enti2n1e2bei4ner4trin2g1a2gin4n3ermin4s3tätir4m3untir4sch3wi4sch3eii5schingi6schwiri4s3etatiso6nendis4s3cheit4z3ergjah4r3eika4n1a4s6kantennkehr4s3o4ken4gagken5steiker6gebnkerin6stk3er4lauk3er4lebk6erlebe2k1er2zikeu6schlkor6dergkre1i2e4k4s3tanzk4t3erfolan2d3a22lat2t1alat4t3inl2d1e2seleben4s3lei6nerble4n3end5lentwet4l3ereigle4r3eim3l4ergew6lerwerbli4g3ers2l1in1itl6lergebl6lergen2l1or3g2l4s3ort_l4s3tätils6ternels6ternsl4te4leml4t1e4skl2t1o2rilu2g1e2blus6serflus6serklus6serslu4t3ergl2z1u4femagi5er_magi5ersmar6schmmar6schrma4t3erdmen6tanz4m3entwi4m3ergänmes6sergmp4f3ergmp4f3erz4m3ungebmu4r1u2fnacht6ra4n3a2mernavi5er_navi5ersn4d3entsnder5stene2n1e2bn4g3erseng4s3e4h2n3i2gelni4k3ingn4k3erfanseh5eren4s3ort_n4s3prien4s3tatens6terbenst5opfenten6te_nt4s3parober3in4ode6rat_ode6rateoh4l3erholl5endsoll5erweol4z3ernonderer5on4t3endopf5erdeopi5ers_or4d3engo2r1e2ckorsch5lior4t3entor4t3ereor4t3offor4t3räuos4s3enzo2ß1en2kö4sch3eipargel6dpä4t1e2hpä4t3entpe4l3inkp2f1in3spos4t3agrach6trärali5er_rali5ersran4d3errau4m3agräu5scher2b1a2der4b3lastrch6terwrderin6sr4d3erntrege4l3äre4h3entreister6re4n3end4r3erken4r3erlaurge4l3errgen4z3w4r3innerrkstati6rk4t3engrk4t3erfrk6terscrk4t3erwr2m1o2rirn3e4benrol3l4enrpe4r3inr6scherlr4s3ort_r6strangr4t3erler4t3ernäru6ckerlrun6derlrun6dersrun6derwr4z3entssa4l3erbsat4z3en6schlein2s1e2bense4l3erl4s1e2pos6sereignse4r3eimse4r3enk2s1i2deoson5ende2s1o2riesrücker6sse3in4tstel4l3äs4t3endss4t3engls4t3entfste6rersstes6se_5st4reif1s4tri2ksun6derhtan6zerhta4r3eretau3f4litau6schrtau6schwtblock5e4t1e2bentein3e4cte2m1o2rte2n1e2bte3n4ei_ten4t3riten6zerh4t3erde_te4r3eif6tergreiter4n3art6erscha6terwerbtes6terkti4v3erlto6ckenttrücker6t4s1amt4t4s3esset3s4terotta6gess2t1u2niotu2r1a2gtu2r1e4tu2ch1e4cu3erin4tuern3s4tu4g3reisun4d3erfund5erhau2r1an5sur3a4renu6schentusch5werusi5ers_u4t3ersaüge6leiswach6stuwach4t4rwahl5entwandels6we5cken_wein4s3aweis4s3pwel6schlwel6schrwel4t3a2wen4k3ri5werdensxpor6terx2t1er2fx2t1il2l2z1e2benzeit5endzei4t3er4z3ergebzer4n3ei4z3erstezer4t3agzer6terezer6trau",9:"_char8me__er8stein_he6r5inn_men8schl_men8schw_os5t6alg_rü6cker6_wort5en6_wor8tendach8traumalli7ers_allkon8tral5s6terbausan8ne_äh4l3e4be6b5rechtebs3e4r3inchner8ei_dampf8erfden6s5taue6ch5erziee4r3en4ge6l5eier_erg3el4s3fal6l5erk6fel6ternfor4m3a4gforni7er_fzei8tendgot6t5erggrab8schegren6z5eihä6s5chenhe6rin6nuherin8terh6l3er4näh6t5erspaieler8gebi2k1e2r2eil4d3en4ti4sch3e4hkamp8ferfke6rin6nulan6d5erwlan6d5erzleis6s5erlepositi86mel6ternmorgen5s65n2en3t2aner8schlenich8tersn4n3er4wano6t5entrnsch7werdn5s6ternen5s6ternsos4s3en4kpapieren8ram6m5ersr8blasserres6s5erw6r5innenmris6t5ersr6st5eingrs4t3er4wr4t3er4lasfal6l5erspani7er_sse6r5atts4s3e4strsu6m5ents4t3a4genttblocken8tes6ter6gür4g3en4gvati8ons_vol6l5endwer6t5ermwin4d3e4czes6s5end",10:"_er8brecht_os8ten8deder6t5en6deren8z7endgram8m7endhrei6b5e6cos6t5er6werein8s7trewel6t5en6dwin8n7ersczge8rin8nu",11:"_er8stritt__spiege8leiach8träume_lei8t7er8scpapie8r7endpiegelei8en",12:"ach8träumen_7sprechende_",13:"_er8stritten_"},charSubstitution:{"ſ":"s"}}},t=new window.Hypher(e.exports);"string"==typeof e.exports.id&&(e.exports.id=[e.exports.id]);for(var i=0;i<e.exports.id.length;i+=1)window.Hypher.languages[e.exports.id[i]]=t}()),!function(){var e={exports:null,exports:{id:"en-gb",leftmin:2,rightmin:3,patterns:{3:"sw2s2ym1p2chck1cl2cn2st24sss1rzz21moc1qcr2m5q2ct2byb1vcz2z5sd3bs1jbr4m3rs2hd2gbo2t3gd1jb1j1dosc2d1pdr2dt4m1v1dum3w2myd1vea2r2zr1we1bb2e2edn1az1irt2e1fe1j4aya4xr1q2av2tlzd4r2kr1jer1m1frh2r1fr2er1bqu44qft3ptr22ffy3wyv4y3ufl21fo1po2pn2ft3fut1wg1ba2ra4q2gh4ucm2ep5gp1fm5d2ap2aom1cg3p2gyuf2ha2h1bh1ch1d4nda2nhe22oz2oyo4xh1fh5h4hl2ot2hrun1h1wh2y2yp2aki2d2upie22ah2oo2igu4r2ii2omo1j2oiyn1lz42ip2iq2ir1aba4a2ocn3fuu4uv22ix1iz1jay1iy1h2lylx4l3wn5w2ji4jr4ng4jsy1gk1ck1fkk4y5fk1mkn21vok1pvr44vsk1t4vyk5vk1wl2aw5cn2ul3bw5fwh2wi2w1m1wowt4wy2wz4x1an1in1rn1ql3hxe4x1hx1ill24lsn3mlm2n1jx1ox3plr4x5wxx4",4:"d3gr_fi2xy3ty1a2x5usy5acx1urxu4on2ielph2xti4ni2gx4thn2ilx1t2x1s25niql3rix4osxo4n1logn2ivx5om1locl3ro2lo_l3nel1n4_hi2l5rul1mexi4pl1max3io_ex1l1lu_ig3ll5tll3sll3p_in14n2kl1loll3mn3le_ew4n1n4nne4l1lixi4cll3fn3nil1lal5skls4p_eu14no_l4ivx3erx3enl1itx1eml1isx5eg3lirli1qxe2d3lik5lihx1ec1lig4y1bn1oun4ow4li_x3c4yb2il1g2l2fox2as1leyn3p42lev1letx2ag4ni_l1te_es1nhy2yc1l4n1sw3tow5tenho4ns2cwra42lerle5qn2si3womwol4l1try1d4lek42ledwl1in3suw3la4le_l3don1teldi2nth2lce4yda4l1c2l1tu4lu_l4by_od4lbe4lu1a4laz_oi4l4awnt2iwes4l4aul4asn2tjla4p_or1n1tr5wein1tun2tyn1h2w4ednu1awe4b5nuc_os13nudl4all4af_ov4w3drl4aey3eenu3iw1b45nukl4ac5laa4la_4lue3kyllu1in1gu4wabn1go_ph2v5vikur5_en12vv2ks4ty3enk3slv5rov5ri4k1sk3rung1n2vowy1erkol4ko5a4vonk2novo2l2vo_5lupn2gingh4k3lok3lik3lak2l2ng2aki4wvi2tkis4k1inki2l5kihk3holu1vke4g3kee4kedkdo4_sa2k5d2_eg4k1b4kav4kap4vim4ka3ovi4lk4ann3v2nve2vic2ka4lju1v4vi_ju5ljui4_sh2ygi2nfo4_st44jo_3jo2jil43jigl4vi2vel3veive3gjew3jeu42ve_4jesjeo2y3gljal43jac2ja__th44ly_2izz_ti22izo_do2i5yeix3oy3in2i1wn2x4i2vov4ad2ny25nyc5vacn1z24va_nzy4uy4aux2o2oa2o3ag2ivauve2u4vayle2i3um2ittly1c4obau3tu2itrob2i4obo_up12ithob5tuts2lym2ut2o_ve2oc2ait1a2isyo1clo1crut2ioct2is1pis1lo1cy4usto2doo2du4isblyp2n4ew2ab_2abai4saoe3a2abbus1pir2sir4qoe4do5eeir1ioep5o5eqo3er2usco1etir1a3lyr3lywipy43oeuo3evi3poab1ro3ex4ofo2o1gur1uo2ga2abyac2a3lyzi5oxo3gii3oti1orioe4ur2so2gui1od2io22acio1h2ur1o2inuo3hao3heohy44ma_oi4cins24inqoig4ac1r2ino2inn4inl4inkur1ioi4our2f4oisoi4t2iniynd4ok3lok5u2ind2inco1loyn2eo1mai2moom1iur2ca2doim1iil3v4iluon1co2nead1ril3f4onh2ik24iju4adyae5aija4i5in4aed2mahae5gihy4ae5pur1aae4s2i1h4igions2i1geyng42ont4af_4afe5maka4fui3fyu2pri3foon2zn1eru4po4agli2fe2i1foo1iu1ph4ieua2groo4moo2pyn4yi1er4iemie5ia1heah4n4iec2ai24ai_ai3aa1icne2p4idraig2oo2tu1peo1paop1iy1o2u1ouu3os4oplid1ayo3d2icuop1uor1a2ick4ich2a1ja4ju2mam4iceak5u4ibuunu44iboib1i2oreiav4i3aui3atun5ror1iun5o2alei5aii3ah2unniaf4i5ae2ormhy4thyr4hy3ohyn4hy2m2orthy2l1man2nedhuz4un2ihu4gh1th4alko1sch4skhsi42mapu1mu2h1shry4hri4hre41mar4h1pum2ph2ou4osp4osuy2ph4oth4ho_u1mi2h1mh1leh3la2ne_h4irhi2pu1mao4u2oub2h1in2a2mhi4l4oueu1lu2ulsoug4h1ic2hi_u1loul3mnde24ulln2daheu2ul2iou3mam1ihet12ounhep1ow1iows4ow5yyp1nox3ih4eiox5oypo1oy5aoys4u1la4ul_am2pu2izmav4h2ea4he_y2prhdu42m1ban2ao1zo_ch4mb4dy5pu4pa_ha4m1paru2ic5pau2ui2h4ac4ha_u4gon1cug5z2uft43gynu4fou3fl3ufa5gymmb2iue4tgy2b4anhnc1t2g1w5paw3gun2p1bu4edueb4p1c42guep5d2an1og5to2pe_gs4tgs4c2g1san2s2ped3grug4rou2dog4reud4g1gr2n1crgov12gou3gosud4e3goop4ee3goe5god3goc5goa2go_pe2fg2nog1niuc3lg1na2gn2an2y2pes3gluyr4r3pet5aowyr4s4ap_4apa3glo4pexyr5uu4ch2gl24y2s5gip2me_3gioap1i2ph_gi4g3gib4gi_uba41g2igh2tg3hoa2prphe44aps2medg2gegg4ame2g2g1gy3shu1alua5hu2ag2g1f3get2ua2ph2lge4o1pho2tz23gen4phs1gel1typ4gef2ge_g5d4me2m1phug1at4pi_p2iety4a4ty_p2ilt3wopim23gait2wi3gagn3b44ga_5piqar3har1i1tutfu4c4fu_1menp2l23tunna2vfs4p2f3s1pla1fr2tu1ifo3v4tufp4ly2p1myso53foo2arrme4par2stu1afo2n4tu_4po_t2tytt5s3pod2aru4poffo2e3foc4fo_ar5zas1ays1t3flu2asc3flo3flan2asas2et3ti2fin5poypph44f5hf3fr1pr2f1fif1fena5o3feufe4t4pry2ps22asotta4p3sh5fei3fecass2p1sits2its4ht2sc2fe_4t1s2f5d4f5b5faw5farp1st2pt2as1u2fa_1f2aeyl44ey_1expe1wre3whe1waevu4p4trp1tupub1puc4p4uneus44eumeuk5eue4p4uset5zyzy4z1a14p1wet2t2p4y4tovpy3e3pyg3pylpy5t2za__av44ra_r2adras2et2ae1su1namr2bat1orr2berb2ir1c2r2clrct4nak24re_rea4e2sc4es_2erza2to5tok2erurei4erk44erj1tog3toere1qre1vza2irf4lr1g2r2gez4as4ri_2ereto1b2erd2to_2erc4m3hri3ori5reph14mi_2au24au_m1ic4auc4t3me1paeo3mt1lieo2leof2eo3b4enur1lar1leaun2r1loen2sen1ot1laen3kzeb4r1mur2n24ene2end3tiurn5nrnt4ze4d4ro_r2od4roiroo4r2opelv4e1lur4owti4q1tip4roxrpe2r2ph1tior3puaw1i5nahaw5y4mijr3ri_as12eleay3mayn4ays2r5rurry5ek4l2az2m2ilaze4e2ize2iv4eis2ba_t1ineig24eifeid45bahba4ir2seehy21timeh5se5hoe1h2e2gr2efuef4lna2ceep1ee2mee1iee5gee2fr3su2na_rt3ced4g1basede23mytr1turu3ar2udr4ufe1clru2le1ceru2pb1c2ec2a2b1deb2te2bre4bl3myi4be_3beaeb2iebe4eb2b2bedzib5r1v2r2veeau3t1icmy3e5bee3bef2r2yry2tz2ie1bel2sa_2sabeap25saebe3meak1ea4gsa4g3sai4ti_5sak4beobe3q4eabmy4dd3zo3dyndyl25dyksa2l2d2y2d1wsa4mbe3w2b1fbfa44b1hb4ha2bi_1biazi5mdu3udu2ps3apb4ie3ducbif42ths2du_z4isb1ilmi3od4swds3m4bimd5sl1saumi3pz3li3dox4s3bd4osd2or3doosby3bip4bi5qbir44zo_s1cab2iss1cedo4jd4ob4do_5zoa2d1mmtu4d5lu2bl2d1losch2d1la2dl4tha42th_m5si4m1ss2co2t3f1diu2se_se2a4bly2b1m3texbmi44b1nm4ry4bo_3boa2sed5bobdil4bo5h3sei1didse2p1dia4di_d4hu3bon4d1hxys4dg4ami2t2d5f1boo3dexs2es1set3sev3sex3sey2s1fsfi4_an1d3eqde1ps4idsif4bow2si4g2sin5boyzo5p3sipde3gs1it3dec2de_d3di2tep3miute2od1d4d3c4zot23davs2k24sk_d1atske2d3ap4sksd1agb3sc2sl44da_5zumb5sicy4tbso2te2ltei4cys4cy4m2b1tcyl34bu_5bubte2g1cyc2cy_bun2cu5v5cuu1cuss2le1curt4edc4ufc1tyc1tu4te_c1trs1n2s2na2so_t1ca5mix4b3w4zy_4by_3byibys45byt2ca_2tc23soes2olc1te5cafsos45cai5cakc1al3sou4t3bt4axc2ta4m1lcry2sph2s1plc2res2pos4pym3pum3pocoz4cov14mo_sre22moc5cao1caps1sa3cooss3mcon11cars4sns1sos1su1takss3wmod13coe4st_1tai3tah3coc3coa4co_taf4c3nim2pist3cc1atste2mo1mc4kem4ons1th2cim3cau2tab2ta_3cayc1c44stl3cilc3ch3syn4cigci3f4ce_4ci_3chrs1tu1cho2ced4chm1sylch5k4stw4cefce5gs4tysy4d4su_sug3sy1c3sui4ch_m3pa2cem4sy_cew4ce2t1cepsu5zm4op2swo2s3vzzo3",5:"n5tau2cenn3centsves45swee5cencsu5sus4urg1cen2sur3csu5pe3cerasun4a3cerdsum3i5cern5cesss4u2m1s2ulce4mo3cemi4celysy4bi4chab3chae3chaisui5ccelo45cellchec44ched3chee3chemsuf3fch1ersu3etsud4asuct44chessubt2ch5eusu4b13chewch5ex5chi_3chiasu5ansy4ce1styl3ceiv3chio5chip3cedi3cedestu4m5cedace4cicho3a5choc4chois4tud3chor3ceas2st3sstre43chots2tou3stonchow5cean3chur43chut5chyd3chyl3chym1c2i24ceab4ciaccia4mci3ca4cids4cie_ci3ers4toeci5etccle3cifi4ccip4ci3gast3lisyn5esyr5icat4ucim3aci3mes5tizs4thu4cinds4thac4atss4tec4cintci3olci5omci4pocisi4cit3rt2abockar5cka5tt5adeck5ifck4scc2atcs4teb3clasc2le22cle_c5lecc4at_clev3cli1mtad4icli2qclo4q4stakclue4clyp55clystad2rtae5n1c2o2case5car4vco5ba3tagrco3cico5custab23tail4cody2tairco5etco3grcar5mt4ais4col_col3atal2css5poco5lyta3lyco4met4anecomp4cap3uta4pass5liss1ins1sifs1siccon3scon3ts3siacapt4coop4co3orcop4eco3phco5plco3pocop4t2corassev3s5seus1sel1tard3corn4corotar3n5cort3cos_sre4ssreg5co5ta3tarr5cotytas3it3asmco3vacow5a5tassco5zic4anotas4t5craftat4rc4ran5spomcam4is4plysple2ca3maca3lys2pins2pids3phacal4m4speocri3lcron4so3vi4crousov5et5awacrym3cryo34c5s4csim5tawn43calcc3tacc4alaso5thct1an4soseca3gos3orycad4rc4teasor3os2o2ps4onect5esct5etct2ics2onaso3mo1so2mc3timsol3acaco3c4acesody4sod3oc5tio2s3odc3tittcas4tch5u4t1d4smo4dsmi3gc1tomc3tons3mensmas4b3utec2tres3man3bustc2tumte3cr2s1m4buss2s5lucslov5c2ulislo3cs3lits5leycu4mi5cunacun4e5cuni5cuolcu5pacu3pic3upl4tedds3lets5leabur3ebunt4cus5a3slauc3utr4tedobun4a4teeicy4bib4ulit3egoteg1rcy5noteg3us1latbsin41tellbsen4d4abr1d2acdach43tels3dact4b1s2sky3ld4aled4alg4bry_dam5a3damed3amida5mu3dangs5keybrum4d3ard5darms3ketbros4tem3as5kardat4ub4roa4teme4tenet5enm4tenob2ridteo5l4bre_5sivad3dlid3dyite3pe4s1ivde5awde4bisi4teb2ranbram44sismde1cr4dectded3i4sishs1is24bralde4gude3iosi4prtep5i4sio_1sio45sinkde5lo1d4emsin3is2ine4boxy1silibow3ssif5f4demybous4den4d4dened3enh4sidssi4de4sid_3bourde3oddeo3ldeon2si4cu5terd3sicc4s1ibde2pu5botishys44shu4d4eres3hon5shipsh3io1derider3k3dermsh5etsh1er4shab1teri2s1g4der3s5deru4des_de3sa5descbor4nter5k3terrdes4isexo23borides1psewo4de3sq2t2es5seum1de1t4tes_de5thde2tise5sh4ses_bor3d3septsep3atesi4t3esqdfol4tes4tteti4dgel4d4genbon4ebon4cdhot4bol4tbol3itet1rdi2ad3diarbol4e4d1ibd1ic_3sensdi4cedi3chd5iclsen5g1dictsem4osem2i5self4sele4boke5selasei3gd4ifo2boid3seedbod5i5dilldilo4di3luse4dabo5amdi1mi2d1indin4ese2cosec4a3di1odio4csea3wdip5t3diredi3riseas4di4s1d4iscs4eamb3lis3dissbli2q2s1d22s1cud3itos4coi2ditybli3oscof44blikscid5dix4i3bler4the_b3lan5dlefblag43dlewdlin45blac4b5k4bi5ve4d1n24bity4thea4thed4sceidog4abis4od4ol_s4ced5bismscav3sca2pd4ols5dom_1thei3theobi3ousbe4sdo5mos4bei4donybio5mbio3l4dor_dor4mdort41bi2ot4hersavi2dot1asaur52dousd4own4thi_th5lo2thm25binad3ral3dramdran4d4rassat1u3dreldres4sa2tedri4ed4rifs2a1td4romsas3s3sas_4d1s2th4mi3thotds4mi1th2rb2iledt5hobigu3bi5gadu1at5thurduch5sar5sdu4cosap3rbid5idu5en2santdu5indul3cd3uledul4lsan3adun4asamp43b2iddu3pl5durod5usesam5o5thymbi4b1dver2be3trsa3lube3sl3sale2bes_be1s2dy5ar5dy4e3thyrber5sdyll35dymi5berrdys3pberl4thys42beree1actbe5nuea5cue5addbe1neead1i1ti2ati3abben4deal3abel4tsad5osad5is3actean5i2t3ibsac4qe3appear3a5sacks3abl2belebe3labe3gube5grryp5arym4bry4goeas4t5rygmry5erbe3gobe4durvi4tr3veyr3vetr3vene4atube4doeav5ibed2it3ic_eaz5ibe3daebar43becube3caru3tirus4pe2beneb5et4bease5bile4bine4bisbdi4ve4bosrur4ibde4beb1rat2icie4bucru3putic1ut3id_run4trun4ge5camrun2eec3atr4umib3blir4umeech3ie4cibeci4ft4ida2b1b2ru3in3tidirue4lt5idsru4cerub3rr4ube1tif2ec1ror4tusti3fert5sirto5lr1t4oec1ulrt3li4tiffr2tize2dat3tigie4dede5dehrt3ivr2tinrth2ir5teue3deve5dew5barsr5tetr1ted4tigmr3tarrta4grt3abed1itedi2v5tigued3liedor4e4doxed1ror4suse2dulbar4nrs5liee4cers3ivee4doti4kabar4d5barbr4sitba4p1r3sioeem3ib4ansee4par4sileesi4ee3tot4illr5sieefal4rs3ibr3shir3sha5bangr3setb4anee4fugrsel4egel3egi5ae4gibe3glaeg3leeg4mir3secr3seat4ilte5gurban4abam4abal5utim1abal3abag4a5eidobaen43backr4sare4in_e3ince2inee1ingein5ir2sanei4p4eir3oazz4leis3ir2saleith4azyg4r4sagaz5eeaz3ar2r1s2ek3enek5isayth4e4lace5ladr3rymelam4r3ryi3tinnay5sirro4trrog5rrob3ay5larric4ax2idrrhe3rre2lele3orrap4el1ere1lesrra4h4r1r44tinst4intrpre4el5exrp5ise1lierph5ee3limav1isti3ocrp3atav3ige3livavas3r4oute3loae3locroul35rouero3tue2logro1te4rossr4osa4roreel3soror5dav5arelu4melus42t1ise5lyi3elytr4opr4rop_emar4tis4c5root1roomem5bie1me4e4meee4mele3mem3tissro1noro3murom4pe4miee2migro3lyro3laroid3e3mioro3ictis2te4miuro3gnro1fero3doava4ge2moge4moiro3cuem5om4emon5roccro5bre2morro4beav4abr5nute5mozrnuc4au3thr5nogr3noc3titlem3ume5muten3ace4nalrn3izrni5vr1nisrn3inr3nicrn5ibr5niaenct42t1ivr3neyr3netr3nelaus5pene5den3eern5are5nepe2nerr5nadr3nacrn3abt3iveen1et4aus_rmol4e3newen3gien3icr3mocrmil5en5inr5migaur4o5tleben3oieno2mrm4ieenov3aun3dr2micen3sprme2arm4asr2malr5madr3mac3tlefen2tor4litau3marlat33tlem5tlenen3uaen3ufen3uren5ut5enwa5tlewe4oche4odaaul4taul3ir3keyr3ketrk1ere5olutlin4eon4ae3onteop4te1or1r5kaseor3eeor5oeo1s2eo4toauc3oep4alaub5iepa4t4a2tyr2i4vr2ispris4cep5extmet2eph4ie2pige5pla2t3n2ri5orri4oprio4gatu4mrin4sr4inorin4e4rimse1p4u4rimmr4imbri2ma4rim_at1ulr4ileri2esera4gera4lri3erri5elrid4e2ricur4icl2riceri3boer3be2r2ib2a2tuer3cher3cltoas4ri5apri3am4toccat1ri4ered3r2hyrhos4tod4irgu5frg5lier3enr3gerr3geor5geee3reqer3erere4sa4trergal4r4gagat3rarfu4meret42a2tra5tozatos4ere4ver3exreur4er3glre3unre3tur3esq2res_er2ider3ierere4rer4aer3into5dore5phre1pe3reos3reogre3oce3river5iza3too4atoner3mer4enirene2rena4r3empr5em_re1le4ero_re1lam5ordreit3re3isre1inre3if2atolre2fe3reerree3mre1drre1de2r4ed4atogeru4beru5dre3cure3ce3reavr5eautol4ltolu5es5ames5an4atiure3agre3afr4ea_to5lye3seatom4be5seeat1itese4lr4dolrd3lie1shie5shurdi3ord2inr5digr4dier4desr2dares3imes3inr5dame4sitrc5titon4er5clor4clees4od3tonnrcis2rcil4eso3pe1sorr2cesrca4ston3ses4plr4bumr2bosrbit1r2binrbic4top4er4beses2sor3belrbe5ca4timrbar3e2stirb1anr4baga2tif4toreest4rrawn4tor5pra3sor4asktor4qr2aseras3cati2crare2eta3p4rarcran2tet4asra3mur5amnet5ayra3lyra3grra4de3tos_eter2r2acurac4aetex4e2th1r2abo2etia5rabera3bae5timet3inath5re3tir5quireti4u1quet2que_e2ton4quar5quaktos4ttot5uath3ipyr3etou4fet1ri5tourt3ousath3aet1ro4a2that5etetud4pu3tre4tumet4wetra5q3tray4ater4tre_4trede3urgeur5itren4pur3cpur5beut3ipu3pipun2tpun3i3puncev3atpun4aeve4n4trewpum4op4u4mpu5ere4vese1viapuch4e2vict2rieevid3ev5igpu5be2trilt2rit4trixe4viuevoc3p5tomp3tilata3st4rode4wage5wayew1erata3pew5ieew1inp5tiee3witatam4ex5icpt4ictro5ft2rotey4as2a2taey3s2p5tetp1tedez5ieas5uras4unfab4ip2tarfact2p4tan2f3agp4tad5falopt3abtro1v3psyc3troypso3mt4rucfar3itru3i2t4rytrys42asta3feast4silfeb5ras3ph2fed1as5orfe1lifem3i2t1t4p3sacf5enias4loas4la3feropro1l4pro_3ferrfer3v2fes_priv24priopren3aski43prempre1dfet4ot3tabpreb3as5iva3sit4pre_f5feta5siof5fiaf3ficf5fieffil3prar4ff4lepra5dffoc3prac1as3int5tanppi4ct5tast3tedfib5u4fic_ppet33fici4ficsppar34p1p2fiel4asep4p5oxi1fi2l4asedfin2apo1tefind3fin2ef1ing3p4os3portpor3pf3itapo4paas2crt3tlifle2s2ponyflin4t5toip4o2nasan2pom4eas4afa5ryta3ryot5torar3umt3tospo3caar2thar3soar2rhar4pupnos4tu5bufor5bar3oxtu5en5formplu2m2plesaro4ntu4is3plen3plegfrar44ple_fre4sar3odfruc42tum_3tumi4tumsf1tedtun4aft5es2p3k2p2itutu4netur4dtur4npis2sfug4ap4iscfun2gp4is_fur3npir4tfus5oar3guar5ghpi4pegadi4pip4at3wa4ar3en3gale3pi1op4innpin4e3galot3wit5pilo3piletwon4pig3n5tychpict4g5arcg4arepi4crpi3co4picagar5p5garr1ga4sgas5igas3o3piarar4bl3phyltyl5ig4at_2phy_phu5ity5mig4attgat5ugaud5ga5zaar3baara3va3rau5geal3gean2ge4d3gedi5gednar1at3type4gelege4li1tyr13phrage4lu2gelygem3i5gemoara3mph3ou3phorgen3oa3rajt5ziat5zie4gereph1is2ges_5gessphi4nua3ciget3aara2ga5quia5punua5lu1philg3ger4phic3phibg3gligglu3g5glyph3etg4grouan4og5haiuar3auar2dg4hosuar3iap5lia5pirph2angi4atu1b2igi5coap3in4phaeub5loub3ragi4orgi4otaph3igi5pag4i4s5gis_gi2t15gituu1c2aa5peug3laru5chrglec43glerap3alpe4wag4leypet3rpe2tia1pacaol3iglom34glopa5nyian5yap4ery3glyp2g1m4a5nuta3nurg4nabper3vp4eri4pere5percpe5ongn5eegn3eru4comg4niapen5upel5v4pelean3uluco5tgno4suc2trant4ruc3ubuc5ulu5cumgo4etgo4geu5dacg5oidgo3isgo2me5gonnpe2duud1algoph44gor_5gorg4gorsg4oryud5epgos4t1anth3pedsg1ousan2teu4derudev4grab43gram3pedigra2pudi3ogril43pedeu5doigro4gg5rongrop4ud5onan3scgru5ipe4coan5otan2osanor3g4stiu5doran2oeg4u2agu5ab5guan4annyg5uatan5no5gueu4aniuuen4ogu2magu4mi4anigpawk4uer3agur4ngur4u4gurypau3pani3fan3icues4san3euan4eagyn5ouga4cug2niug3uluhem3ui3alp5atohae3opas1t1p4ashag5uha5ichais4par3luid5ouil4apa3pypap3uhan2gpa3pepa4pahan4tpan3iha4pehap3lhar1ahar5bhar4dpan1ep4alspa3lohar3opain2paes4pad4rhat5ouil4to3zygozo5ihav5oana5kuin4san3aeuint4amyl5am3ului5pruis4t1head3hearui3vou4laba3mon4ulacu5lathe3doheek4ul4bohe3isul3caul4ch4uleaow5slow5shu5leehem1aow5in3amidow5hahem4pow1elhe3orulet4h1er_owd3lher2bowd4io5wayow3anow3ago1vish5erho5varouv5ah1erlouss42ouseh1ersoun2dul4evami2cul2fahet3ioul4tul4iaheum3ou5gihe4v4hev5ihex5oa3men3ambuu5lomhi4aram1atou5gaul4poh4iclh5ie_h1ierou3eth1iesama4gh3ifyhig4ohi5kaa5madoud5iou5coou5caa5lynhin4dou5brul1v45ou3aalv5uh2ins4o1trh4ioral1vahip3lum3amhir4ro4touhit4ahiv5aumar4u5masalu3bh3leth1l2ihli4aum2bio1t2oot4iv2h1n2o5tiaal3phho3anho4cou4micho5duho5epo4tedhold1o3taxo3tapot3ama5lowh2o4nos1uru4mos4ostaos4saos1pihon1o1hoodhoo5rh4opea4louo5sono5skeh4orno4sisos1inos5ifhosi4o3siaalos4os5eual1ora3looo2seta3lomoser4hr5erhres4um4paos5eohrim4h5rith3rodose5ga5loeo3secumpt4un5abun4aeht5aght5eeo4scio2schos4ceos4caht5eoht5esun2ce4aliuosar5un3doos3alosa5iory5phun4chunk4hun4thur3ior4unu1nicun4ie4or1uun3inal1in5aligal3ifal1iduni5por4schy1pehy3phuni1vor1ouun3iz2i1a2ia4blo5rooorm1ii2achiac3oa2letork5a5origa1leoun3kni2ag4ia3gnor3ifia3graleg4a3lec4ori_al3chor5gn4ialnor4fria5lyi5ambia3me5orexi3anti5apeia3phi2ardore4va5lavor3eiore3giat4uore3fal3atun3s4un5shun2tiibio4or4duib5lia1laei4bonibor4or4chi5bouib1riun3usoram4ic3acor5ali4calic1an2icariccu4akel4i5ceoa5ismich4io5raiora4g4icini5cioais1iic4lo2i2coico3cair3sair5pi5copop2ta2i1cri4crii4crui4cry1op1top5soopre4air5aop2plic3umopon4i5cut2i1cyuo3deain5oi5dayide4mo4poiain3iu1pato1phyid3ifi5digi5dili3dimo4pheo1phaidir4op1ero5peco4pabidi4vid3liid3olail3oai5guid3owu5peeid5riid3ulaid4aa5hoo2ieg2ie3gauper3i5ellahar22i1enien2da1h2aoo4sei2erio3opt4iernier2oi4erti3escagru5oon3iag3ri2i1eti4et_oo4leag5otook3iiev3au5pidiev3o4ag1nagli4if4fau5pola5giao5nuson5urifi4difi4n4i2fla5gheifoc5ont4rupre4af5tai3gadaev3a3igaraeth4i3geraet4aono3saes3ton5oionk4si3gonig1orig3oto1nioo5nigon3ifig1urae5siae3on4ura_aeco34uraead3umura2gik5anike4bi2l3aila4gon4id4a2duil4axil5dril4dui3lenon4guuras5on1eto3neoon1ee4oned4oneaad1owon5dyon3dril1ina3dos4onauon3aiil5iqona4do2mouil4moi5lonil3ouilth4il2trad3olil5uli5lumo4moi4adoi4ilymima4cim2agomni3im1alim5amom2naomme4om2itomil44adoeomi2co3mia3adjuome4gurc3ai5mogi3monim5ooome4dom4beo3mato2malo2macim5primpu4im1ulim5umin3abo4mabur4duadi4p4olytina4lol1ouin5amin3anin3apo3losol1or4olocur3eain3auin4aw4adilol3mia5difolle2ol2itolis4o5lifoli2eo1lia4inea4inedin5eeo3leuol1erine4so3lepo3leo4ineuinev5ol5chol4an4infu4ingaola4c4ingeur5ee4ingiad4haur1er4ingo4inguoith44adeeada3v4inico3isma5daiur3faac2too3inguril4ur1m4ac3ry4ino_in3oioil5i4inos4acou4oideo2i4d4acosurn5soi5chinse2o3ic_aco3din3si5insk4aco_ac3lio3ho4ack5aohab34acitacif4in5ulin5umin3unin3ura4cicuro4do5gyrur5oturph4iod5our3shio3gr4i1olio3maog4shio3moi5opeio3phi5opoiop4sa5cato4gro4ioreo2grio4got4iorlior4nio3sci3osei3osii4osoog2naur5taiot4aio5tho4gioio5tri4otyur1teo5geyac3alurth2ip3alipap4ogen1o3gasip1ato3gamurti4ur4vaofun4iphi4i4phuip3idi5pilip3ino4fulipir4ip5isab1uloflu42abs_ip3lou3sadi4pogus3agi4pomipon3i4powip2plab3omip4reoet4rip1uli5putus3alabli4i3quaab3laus4apoet3iira4co4et_ir4agus3atoes3t4abio2abiniray4ird3iire3air3ecir5eeirel4a3bieires4oelo4ab1icoe5icir4ima3bet5irizush5aoe5cuir5olir3omusil52abe4ir5taoe4biabay4us4pais5ado5dytis1alis3amis1anis3aris5av_za5ri2s3cod3ul_xy3lod5ruo3drouss4eod3liis2er5odizod5it4iseuod4ilodes4o5degode4co5cyt2isiais5icis3ie4isim_vo1c4isisis4keus1troc5uo2ismais1onocum4iso5pu5teooc1to5ispr2is1soc2te_vi2socre3u3tieiss4o4istao2cleu3tioo5chuoch4e4istho4cea4istloc5ago3cadis1tro4cab4istyi5sulis3urut3leutli4it5abita4c4itaiit3am_vec5it4asit3at_ur4oit3eeo3busob3ul_ura4_up3lo3braith5io5botith3rithy52itiao5bolob3ocit1ieit3ig4itim_un5uob1lio3blaob3iti5tiqut5smit3ivit4liit5lo4ito_it5ol2itonit1ou_un5sobe4lu4tul_un3goat5aoap5ioan4t4itueit1ulit1urit3us2i1u2_un3eiur5euven3oal4iiv1ati4vedu5vinoad5io3acto5ace_ul4luy5er2v3abives4iv3eti4vieiv3ifnyth4va1cavacu1iv1itva4geivoc3vag5rv1al_1vale_tor1vali25valu4izahiz3i2_til4iz5oivam4i_tho4va5mo5vannnwom4jac3ujag5u_te4mja5lonwin44vasev4at_jeop34vatuvect4_ta4m4velev1ellve1nejill55jis_4venu5ve3ojoc5ojoc5ujol4e_sis35verbju1di4ves__ses1ju3ninvi4tjut3a_se1qk4abinvel3kach4k3a4gkais5vi1b4vi4ca5vicuvign3vil3i5vimekar4i1kas_kaur42v1invin2evint4kcom43vi1oviol3kdol5vi5omke5dak5ede_rit2_rin4ken4dkeno4kep5tker5ak4erenu1trker4jker5okes4iket5anu4to5vi3pkfur4_re3w_re5uvire4kilo3vir3uk2in_3kind3nunc5numik3ingkin4ik2inskir3mkir4rv3ism3kis_k1ishkit5cvit2avit1rk5kervi3tu_re5ok5leak3lerk3let_re1mv3ity_re1ivi5zovolv41know3vorc4voreko5miko5pe3vorok5ro4_po2pv5ra4vrot4ks2miv3ure_pi2ev5verwag3owais4w3al_w3alswar4fwass4nu1men3ult5labrwas4tla2can4ulowa1tela4chla2conu4isw4bonla3cula4del5admw5die_out1nug4anu3enlag3r5lah4nud5i_oth54lale_osi4_or2o_or4ilam1ol5amu_ore4lan2d_or3dn5turntub5n3tua3weedweir4n5topwel3ilapi4n3tomn1t2o_op2i_on4ent3izla4tenti3pn3tign1tient4ibwent45laur_ome2_ol4d_of5twest3_oed5l4bit_ob3lw5hidl2catwid4elcen4n1thelch4el3darl3dedl3dehwi5ern4teol5dew_no4cl3dien3teln4tecwim2pld5li_ni4cwin2ecen3int1atnt1aln3swale3cawl1ernsta4_na5kle5drleg1an3s2t3leggn5sonleg3ons3ivwl4iensi2tlel5olelu5n3sion3sien3sid5lemml3emnle2mon4sicns3ibwon2tn3sh2n5seule1nen2seslen3on5seclen5ule3onleo4swoun4wp5inn4scun2sco_mis1_mi4enre3mnre4ix4ach4les_x4adenpri4x3aggnpos4npla4npil4leur5x3amil3eva5levexan5dle4wil5exaxano4lf5id_lyo3lf3on_lub3l4gall4gemlgi4al4gidl4goixas5pxcav3now3llias4lib1rl1ic_5lich_lo2pnove2nou5v2nousli4cul3ida3nounn4oug3lieul4ifel4ifoxcor5_li4p3notenot1a_li3oxec3r1l4illil4ilim2bno3splim4pnos4on4os_lin4dl4inenor4tn4oronop5i5nood4noneno2mo1nomi3linqnol4i3liogli4ollio3mliot4li3ou5liphlipt5x5edlx5edn_le2pl4iskno3la_le4ml2it_n5ol_no4fa3lithnoe4c3litrlit4uxer4gn4odyno4dinob4ln5obilk5atxer3on5nyi_ki4ex3ia_nnov3x4iasl5lasl4lawl5lebl1lecl1legl3leil1lellle5ml1lenl3lepl3leul3lev_is4o_is4c_ir3rx5ige_in3tllic4nlet4_in3ol5lie4n1l2l2linnk5ilnk5ifn3keyl5liolli5v_in2ixim3ank5ar_in3dllo2ql4lovnjam2_im5b_il4i_ig1n_idi2llun4l5lyal3lycl3lygl3lyhl3lyil5lymx4ime_hov3_ho2ll4mer_hi3bl5mipni3vox4it__he4ilneo4x4its5loadniv4ax4ode_hab2ni4ten5iss2locynis4onis4l_gos3n4isk4loi_lo5milom4mn4is_lon4expel43nipuni1ou5nioln4inu5ninnnin4jn4imelop4en3im1l3opm1lo1qnil4ax4tednik5e3nignn3igml4os_lo1soloss4_ga4mnift4nif4flo5tu5louplp1atlp3erxtre4l5phe_fo3cl2phol3piel3pitxur4b1y2ar_eye3_ex3a3yardl5samls5an4nicllsi4mls4isyas4i_eur4l1s2tni3ba3niac_es3tl5tar_es3pl4teiyca5mlth3inhyd5y3choltin4lti3tycom4lt4ory2cosnhab3_er2al4tusyder4_epi1luch4_eos5n2gumlu4cu_ent2lu1enlu5er_en3slu4ityel5olu4mo5lumpn4gry_en5c5lune_emp4n5gic_em3by5ettlusk5luss4_el2in5geen4gae_ei5rlut5r_ei3dygi5a_ec3t_eco3l4vorygo4i_dys3_du4c_do4eyl3osly4calyc4lyl5ouy1me4news3_de4wly4pay3meny5metnet1ry5miaym5inymot4yn4cim4acanet3an1est1nessn1escmact44mad_4mada4madsma4ge5magn2nes_yn3erma5ho3ma4i4mai_maid3_der2ner2vner5oyni4c_de1mneon4m3algneo3ln3end4n1enne2moyoun4n4ely2neleyp5alneis4man3a5negune3goneg3a3nedi_dav5m4ansne2coyper3m3aphy4petne4cl5neckn3earyph4en3dyind2wemar3vn4dunndu4bn2doundor4n5docnd1lin3diem4at_n1dicnd4hin5deznde4snde4ln1dedn3deayph3in3damm4atsn3daly4p1iy4poxyp5riyp4siypt3am5becn4cuny3ragm4besyr3atm2bicnct2oyr3icm4bisy5rigncoc4n1c2lm3blimbru4mbu3lmbur4yr3is_can1ys5agys5atmea5gn4cifme4bame4biy3s2c4med_n4cicn3chun3chon3chan5ceyme4dom5edy_bre2n5cetn3cer4melen1c2anbit4nbet4mel4tnbe4n_bov4ys1icys3in3men_2menaysi4o3nautnaus3me1nenat4rnati45meogys4sonas3s4merenas5p2me2snas5iys4tomes5qyz5er1me2tnam4nmet1e3nameza4bina3lyn5algmet3o_aus5_au3b_at3t_at3rza4tena5ivmi3co5nailm4ictzen4an5agom4idina4ginag4ami5fimig5an2ae_mi2gr_as4qmi5kaz5engm3ilanadi4nach4zer5a3millmi5lomil4t3m2immim5iz3et4_ari4_ar4e_ar5d5zic4_ap4i5my3c_any5z3ing3zlemz3ler_an3smu4sem5uncm2is_m4iscmi4semuff4zo3anmsol43zoo2_and2zo3olzo3onzo5op4mity_am2i_al1k_air3_ag5nmlun42m1m2_ag4amp5trmp3tompov5mpo2tmmig3_af3tmmis3mmob3m5mocmmor3mp3is4m1n2mnif4m4ninmni5omnis4mno5l_af3f_ae5d_ad3o_ad3em3pirmp1inmo4gom5pigm5oirmok4imol3amp5idz3zarm4phlmo3lyz5zasm4phe_ach4mona4z3ziemon1gmo4no_ace45most_ab4imo3spmop4t3morpz5zot",6:"reit4i_ab3olmo5rel3moriam5orizmor5onm3orab3morse_acet3_aer3i_al5immo3sta2m1ous_al3le4monedm4pancm4pantmpath3_am5ar_am3pemper3izo5oti_am3phmo4mis_ana3b_ana3s_an5damog5rimp3ily_an4el_an4enmmut3ammin3u_an4glmmet4e_ant3am3medizing5imman4d_ar5abm5itanm3ists_ar5apmsel5fm3ist_5missimis3hamuck4e4misemmul1t2_ar4cimu5niomun3ismus5comirab4mus5kemu3til_at5ar1m4intmin3olm4initmin5ie_bas4i_be3di5myst4_be3lo_be5sm5min4d_bi4er_bo3lo_ca3de_cam5inac4te_cam3oyr5olona4d4amil4adnad4opyr3i4t_car4imid5onn4agen_ca4timid4inmi4cus_cer4imi3cul3micromi4cinmet3ri4naledyp5syfn4aliameti4cmeth4i4metedmeta3tna5nas_cit4anan4ta_co5itnan4to_co3pa4n4ard_co3ru_co3simes5enmer4iam5erannas5tenat5alna5tatn4ateena3thenath4l5mentsn4ati_nat5icn4ato_na3tomna4tosy4peroy4periy5peremend5oyoung5naut3imen4agna5vel4m5emeyo4gisnbeau4_de3linbene4mel3on_de3nomel5een4cal_yn4golncel4i_de3ra_de3rimega5tncer4en4ces_yn5ast3medityn5ap4nch4ie4medieynand5ynago43mediaym4phame5and_de3vem5blern4cles_dia3s_di4atmb5ist_din4anc4tin_dio5cm5bil5m4beryncu4lo_east5_ed5emncus4tmbat4t_elu5sn3da4c3m4attn4dalema3topnd3ancmat5omma3tognde3ciyes5tey3est__em5innd3enc_em5pyn3derlm4atit_en5tay4drouma3term4atenndic5undid5aydro5snd5ilynd4inend3ise_epi3d_er4i4nd5itynd3ler_er4o2_eros43mas1ty4collnd5ourndrag5ndram4n5dronmassi4y4colima3sonyclam4mar5rima3roone3aloma5ronne2b3umar5ol5maran_erot3_er4rima5nilych5isne4du4manic4man3dr_eth3e3m4an__eval3ne5lianeli4g_far4imal4limal3le_fen4dm3alismal3efmal5ed5male24nered_fin3gxtra3vner4r5mal3apxtra5d2mago4ma4cisne3sia5machy_fu5ganes3trmac3adnet3icne4toglys5erxtern3neut5rnev5erlypt5olymph5n4eys_lyc5osl5vet4xter3ixpoun4nfran3lv5atelu5tocxpo5n2_ge3ron3gerin5gerolut5an3lur3olu3oringio4gn5glemn3glien5gliol3unta_go3nolu2m5uxo4matluc5ralu2c5o_hama5l3t4ivltim4alti4ciltern3lt5antl4tangltan3en4icabni4cen_hem5anict5a_hy3loni4diol3phinni4ersximet4lot5atnif5ti_ico3s_in3e2loros4lo5rof_is4li_iso5ml4ored_ka5ro_kin3e5nimetn4inesl3onizl3onisloni4e3lonia_lab4olo5neyl5onellon4allo5gan3lo3drl3odis_la4me_lan5ixen4opnitch4loc5ulni3thon4itosni5tra_lep5rni3trinit4urloc3al5lob3al2m3odnivoc4niz5enlm3ing_lig3anjur5illoc5ulloc3an5kerol3linel3linal5lin__loc3anland5lli5col4liclllib4e_loph3_mac5ulli4anlli5amxa5met_math5llact4nni3killa4balk3erslk3er_lkal5ono5billiv5id_ment4_mi3gr_mirk4liv3erl5ivat5litia5liternois5il3it5a5lisselint5inom3al3lingu5lingtling3i3nonicw5sterws5ingnora4tnor5dinor4ianor4isnor3ma_mi5to_mo3bil4inasl4ina_wotch4word5ili5ger_mon3a5lidifl4idarlict4o_mu3ninova4l5licionov3el_mu3sili4cienow5erli4ani_myth3_nari4le5trenpoin4npo5lale5tra3les4sle3scon4quefler3otleros4ler3om_nast4le5rigl4eric3w4isens3cotle5recwin4tr_nec3tle5nielen4dolend4e_nom3ol5endalem5onn5sickl5emizlem3isns5ifins3ing_nos3tn3s2is4leledle3gransolu4le4ginn4soren4soryn3spirl3egan_obed5nstil4le5chansur4e_ob3elntab4unt3agew5est__oe5sont5and_om5el_on4cewel4liweliz4nt3ast_opt5ant5athnt3ati_or3eo3leaguld3ish_pal5in4tee_n4teesld4ine_pa5tald3estn4ter_n3terin5tern_pecu3war4tel5deral4cerenther5_ped3elav5atlat5usn4tic_ward5r_pend4n4tics_pep3tn3tid4_pi3la_plic4_plos4_po3lan5tillnt3ing_pop5lvo3tar_pur4rn4tis_nt3ismnt3istvo5raclat5al4laredlar5delar5anntoni4lan4tr_re3cantra3dnt3ralviv5orn3tratviv5alnt3rilv5itien5trymlan3etlan4er3landsvi5telland3i3land_lan3atlam4ievi3tal2v5istla4ic_la4gisla3gerlac5on5visiola5cerla5ceolabel4vi5ridlab5ar_re3ta5numerkin5et_rib5anu3tatn5utivkey4wok5erelkal4iska5limk2a5bunven4enven5o_ros3ajuscu4_sac5rjel5laja5panja2c5oi5vorevin5ta_sal4inym5itv5iniz5vinit3vinciiv3erii4ver_iv5elsoad5ervin4aciv5el_oak5ero3alesiv5ancoal5ino5alitit5uar_sanc5oar5eroar4se_sap5ait4titoat5eeoat5eri4tric_sa3vo4i5titob3ing2obi3o_sci3e4itio_it4insit4in_it5icuiti4coi5tholitha5lobrom4it3erait3entit3enci3tectit4ana3istry_sea3si4s1to5vider_sect4oc5ato4o3ce25vict2ocen5ovice3r_se3groch5ino3chon_sen3tvi4atroci3aboci4al5verseis4taliss4ivis5sanis4saliss5adi3s2phocu4luver4neislun4ocuss4ver3m4ocut5ris3incis5horocyt5ood3al_ish3op4ishioode4gao5dendo3dentish5eeod3icao4d1ieod3igais3harod1is2v5eriei2s3etis5ere4is3enis3ellod5olood5ousise5cr4i1secisci5cver3eiver5eaven4tris5chiis3agevent5oir5teeir5ochve5niair4is_ir2i4do3elecoelli4ir5essoe3o4pire5liven4doi5rasoven4alvel3liir4ae_ir4abiv4ellaip3plii4poliip3linip4itiip1i4tip4ine_su5daiphen3i1ph2ei3pendog5ar5v3eleripar3oi4oursi4our_iot5icio5staogoni45ioriz4ioritiora4mvel3atiod3i4ioact4_sul3tintu5m_tar5oin3til_tect45vateein4tee_tel5avast3av5a4sovar4isin3osiin5osei3nos_oi5ki5oil3eri5noleoin3de4vantlvanta4oin4tr_ter4pin3ionin4iciin5ia_oit4aling3um4ingliok4ine4ingleing5hain5galo4lacko5laliinfol4olan5dol5ast_thol45val4vole2c4ol5eciol5efiine5teole4onin3esi4in5eoo3lestin5egain5drool3icao3lice_ti5niol5ickol3icsol5id_va5lieo3lier_tri3dinde3tvager4oli5goo5linaol3ingoli5osol5ip4indes5inde5pin5darollim34vagedol4lyi3vag3ava5ceo4inataol3oido4lona_tro4vi3nas_in4ars_turb44ol1ubo3lumi_turi4ol3us_oly3phin3airin5aglin4ado4inaceimpot5im5pieo4maneomast4_tu5te_tu3toi3mos_im5mesomeg5aome3liom3enaomen4to3meriim5inoim4inei3m2ieomic5rom4ie_imat5uom4inyomiss4uv5eri_un5cei5m2asim3ageil5ureomoli3o2mo4nom5onyo4mos__un5chilit5uom5pil_un3d2il4iteil5ippo5nas__uni3c_uni3o4iliou_un3k4oncat3on4cho_un3t4u4t1raon3deru4to5sili4feili4eri5lienonec4ri3lici_ve5loon5ellil3iaron3essil3ia_ong3atilesi45u5tiz4o1niaon5iar2oni4conic5aut3istut5ismon3iesigu5iti4g5roi5gretigno5m4onneson5odiign5izono4miu5tiniut3ingo5nota_ver3nig3andu4tereon4ter_vis3ionton5if5teeon4treif5icsut5eniutch4eif3ic_u3taneoof3eriev3erook3eri5eutiiet3ieool5iei3est_i1es2ties3eloop4ieieri4ni3eresus5uri4idomioot3erooz5eridol3ausur4eo5paliopa5raopath5id4istopens4id1is43operaus4treidios4_vi5sooph4ieo5philop5holi3dicuus1to4iderm5op3iesop5ingo3p2itid3eraust3ilid3encopol3ii5cun4op5onyop5oriopoun4o2p5ovicu4luop5plioprac4op3ranict5icopro4lop5ropic4terust5igust4icicon3ous5tanic5olaor5adoich5olus3tacic5ado4oralsib3utaoran3eab5areorb3ini4boseorch3iibios4ib3eraor5eadore5arore5caab5beri5atomia5theoreo5lor3escore3shor3essusk5eru4s1inor5ett4iaritianch5i2a3loial5lii3alitab3erdor3ia_4orianori4cius5ianorien4ab3erria5demori5gaori4no4orio_or5ion4oriosia5crii2ac2rus4canor3n4a5ornisor3nitor3oneabi5onor5oseor5osohys3teorrel3orres3hyol5ior4seyor4stihyl5enort3anort3atort3erab3itaor3thior4thror4titort3izor4toror5traort3reh4warthu3siahu4minhu5merhu4matht4ineht4fooht3ensht3eniab4ituht3en_ab3otah3rym3osec3uhrom4ios5encosens43abouthre5maabu4loab3useho4tonosi4alosi4anos5ideo3sierhort5hho5roghorn5ihor5etab3usio3sophos3opoho2p5ro3specho5niohong3ioss5aros4sithon3eyur3theos4taros5teeos5tenac5ablur5tesos3tilac5ardost3orho5neuhon5emhom5inot3a4gurs3orho4magach5alho5lysurs5ero5ta5vurs5alhol3aroter4muroti4ho3donachro4ur5o4mach5urac5onro5thorurn3ero5tillurn3alh5micao3tivao5tiviur5lieo5toneo4tornhirr5ihio5looturi4oty3lehi5noph5inizhi5nieh2in2ehimos4hi5merhi5ma4h3ifi4url5erhi4cinur5ionur4iliur4ie_ac2t5roult5ih4et3ahes3trh5erwaound5aac5uatur3ettoun3troup5liour3erou5sanh4eron5ousiaher5omur1e2tur3ersova3lead5eni4ovatiad3icao4ver_over3bover3sov4eteadi4opadis4iovis5oo2v5oshere3ohere3aherb3iherb3aher4ashende5ur5diehe5mopa3ditihemis4he3menowi5neh3el3ohel4lihe5liuhe3lioh5elinhe5lat5admithe5delhec3t4adram4heast5ad3ulahdeac5ae4cithavel4ura4cipac4tepa5douhas4tehar4tipa3gan4pagataed5isu5quet4pairmpa5lanpal3inag4ariharge4pan5ac4agerihant3ah5anizh1ani4agi4asham5an4aginopara5sup3ingpa3rocpa3rolpar5onhagi3oag3onihaged5agor4apa3terpati4naha5raaid5erail3erhadi4epaul5egust5apa5vilg4uredg4uraspaw5kigui5ta5guit43guardaim5erai5neagrum4bpec4tugru3en5ped3agrim3a4grameped3isgour4igo5noma3ing_5gnorig4ni2ope5leogn4in_pen4at5p4encu5orospen5drpen4ic3p4ennal5ablg2n3ingn5edlalact4until4g5natial5ais5gnathala3map3eronalc3atald5riun4nagg5nateglu5tiglu5tepes4s3ale5ma4g5lodun5ketpet3eng5lis4gli5ong4letrg4letoal3ibrali4cigin5gigi5ganun3istph5al_gi4alluni3sogh5eniph5esiggrav3ggi4a5al5icsg5gedlun4ine3germ4phi5thgeo3logen5ti4phobla5linigen5italin5ophos3pgen4dugel5ligel4ing4atosg4ato_gat5ivgast3ral5ipegasol5ga5rotp5icalu3n2ergar3eeg5antsgan4trp4iestpi5etip5ifieg5ant_un4dus4ganed4alis_gan5atpi3lotgam4blun4diepin5et3pingegali4a5p4insga5lenga4dosga4ciefu5tilpir5acfu3sil4furedfu4minundi4cpiss5aunde4tpis4trft4inefti4etf4ter_un3dedpla5noun4dalalk5ieun4as_al4lab4pled_frant4frag5aunabu44plism4plistal4lagu4n3a4umu4lofore3tfor4difor5ayfo5ramfon4deallig4fo4liefo1l4ifoeti42p5oidpois5iump5tepo4ly1poly3spoman5flum4iump5lipon4acpon4ceump3er3ponifpon5taf3licaf5iteepo5pleal3ogrpor3ea4poredpori4ffir2m1fin4nial3ous5fininpos1s2fi3nalu4moraumi4fyu2m5iffight5fier4cfid3enfi5delal5penp4pene4ficalumen4tal3tiep4pledp5plerp5pletal5uedal3uesffor3effoni4ff3linf2f3isal5ver2a1ly4fet4inaman5dul3siffet4ala3mas_fest5ipres3aulph3op3reseulph3i5pricipri4es4pri4mam5atuam4binfest3ap5riolpri4osul4litfess3o4privafer5ompro3boul4lispro4chfe5rocpron4aul4latam5elopro3r2pros4iu5litypro3thfer3ee4feredu5litipsal5tfemin5fea3tup5sin_fant3iul5ishpsul3i4fan3aul3ingfa5lonu3linefa2c3ufa3cetpt5arcez5ersp5tenapt5enn5pteryez5er_ex4on_ew5ishamen4dp2t3inpt4inep3tisep5tisievol5eevis5oam3eraev5ishev4ileam5erle4viabpudi4ce4veriam5icapu4laramic5rpu5lisu5lentu1len4a3miliev5eliev3astpun5gieva2p3eval5eev4abieu3tereu5teneudio5am5ilypu3tat5ulcheet3udeet3tere4trima5mis_et4riaul5ardet4ranetra5mamor5aetra5getor3iet3onaamort3am5ose3quera4quere4ques_et5olo5quinauit5er3quito4quitueti4naeti4gie3ticuuisti4ethyl3ra3bolamp3liuis3erampo5luin4taet5enia5nadian3agerag5ouuinc5u3raillra5ist4raliaet3eeret3atiet3ater4andian3aliran4dura5neeui3libra3niara3noiet5aryan3arca5nastan4conrant5orapol5rap5toet3arieta5merar3efand5auug3uraan5delet3al_es4ur5e2s3ulrass5aan5difug5lifra5tapra5tatrat5eurath4erat3ifan5ditra5tocan5eeran3ellra4tosra5tuirat5umrat3urrav5aian3ganrav3itestud4ra3ziees5tooe3stocangov4rb3alian4gures5taue5starest3anesta4brbel5orb3entes4siless5eeessar5rbic5uan5ifor5binee5s2pres5potan5ionrbu5t4es5pitrcant54anityr4celean3omaan4scoans3ilrcha3irch3alan4suran2t2ar3cheor4cherud3iedr4chinrch3isr3chites3onaan3talan5tamrciz4ies3olae3s4mie3skinrcolo4rcrit5an4thies4itses4it_e5sion3anthrrd4an_es5iesr5de4lr3dens4anticrd5essrd5ianan4tiee5sickes5ic_rd3ingesi4anrd1is2rd5lere3sh4aes5encrd5ouse5seg5e3sectescut5esci5eant4ives5chees5canre5altre5ambre3anire5antre5ascreas3oeryth35erwauan4tusreb5ucre3calrec4ceer4vilan5tymre3chaan3um_an5umsap5aroerund5ert5izer4thire3disre4dolape5lireed5iu4cender4terer5tedre3finuccen5re5grare3grereg3rire3groreg3ulaph5emer4repaph5olaphyl3ero5stero5iser3oidern3it4reledre3liarel3icre5ligreli4qrel3liern3isrem5acap5icuub3linern3errem5ulu4bicuren5atr4endiap4ineren4eser4moirenic5ren4itub5blyre5num4eri2ta3planre5olare3olier4iscer3ioure4pereri4onrep5idre3pinre3plere4preeri4nauari4ner3iffre5reare3r2uapo3thre3scrre3selre3semre3serap5ronre5sitre3speapt5at4arabiara5bore5stu3retarre3tenar3agear5agire1t2ore5tonre3trare3trere5trier4ianer3ia_ergi3ver3ettrev3elrevi4ter3etser3et_ar3agoar3allaran4ger3esier5eseere5olr4geneeren4e5erende4remeer5elser5ellr5hel4rhe5oler5el_er3egrer3ealerdi4eerd5arerb5oser3batar5apaer5atuarb5etar4bidty4letri5cliri3colri5corri4craarb3lirid4aler3apyer3apier3aphera4doar4bularch5otwi5liri5gamaren5dri5l4aar5ettar3ev5ar5iff5tur5oequin4rima4gar4illrim3ate4putarimen4e3pur5ept3or5turitr4inetturf5iturb3aep5rimt4uranrins5itu5racep3rehtun5it5rioneepol3iepol3ari5p2ari5piear5iniep3licarm3erris4ise4peteris4paris4pear5mit4ristiri3tonr5it5rep5ertriv4alar3nalar3nisriv3enriv3il5ri5zoar5oidep5arceor4derk5atir5kellrk5enia5rotieol5ata5roucr3kiertud5ier5kin_r5kinsrks4meen4tusent5uptu5denr3l4icr3liner5linsen4tritu4binen5tiarma5cetuari4ent3arr4mancr4manor4marir4maryen4susars5alart5atarth4een4sumens5alrm4icar5m2iden3otyenit5ut4tupermin4erm3ingarth3rar5tizen5iere2n3euen4ettrmu3lie3nessen5esiener5var5un4as5conrn3ateas5cotrn5edlt3tlerr3nessrn5esttti3tuas3ectt5test3encept4tereen3as_rn4inee2n3arrn3isten4annash5ayem4preash5ilem5pesas5ilyempa5rask5erem3orras5ochrob3letstay4e3moniem3oloemod4uemo3birody4n4emnitem4maee4mitaem3ismem5ingem3inar4oledas4silassit5as4tatro5melro3mitas4tiaas3tisemet4eron4ac4ronalas4titron5chron4dorong5ir5onmeem5ero4asto2as3traas4trit5roto4atabiem3anaro3peltro3spem3agor5opteel5tieelp5inel5opsrosi4aro5solel5op_5troopros4tiatar3aro3tatata3t4ro4terelo4dieloc3uelo5caat3eautri3me4roussell5izel4labrow3erelit4ttri3lie4li4seli3onr3pentrp5er_el3ingat3echr3pholrp3ingat5eerrpol3ar2p5ouele3vi3tricuelev3at5ricla5tel_e5lesstres4sele5phel3enor4reo4el5eni4e4ledelea5grricu4tre5prate5lerri4oseld3ertre4moat3entat3eraelast3el5ancel5age4traddeiv3ereit5ertra4co4atesse4ins_to3warehyd5re5g4oneg5nabefut5arsell5rs3er_rs3ersa3thene4fiteath3odr4shier5si2ato3temto5stra5thonrs3ingeem5eree2l1ieed3ere4d5urrstor4to3s4ped3ulo4a3tiator5oitor5ered3imeed5igrrt3ageto5radr4tareed5icsto4posr4tedlr3tel4r5tendrt3enito5piaa2t3in4atinaat5ingede3teton5earth3rir1t4icr4ticlr5tietr5tilar5tilltom5osrt5ilyedes3tr3tinart3ingr3titirti5tue4delee5dansrt5lete5culito4mogec4titrt5ridecti4cec4teratit3urtwis4e4cremtoma4nec3ratec5oroec3oratom3acat4iviec3lipruis5iecip5i4toledec5ath5at5odrun4clruncu42t3oidrun2d4e4caporu5netecal5ea4topsec3adea4toryebus5iebot3oe4belstode5cat3ronat5rouat4tagru3tale4bel_eav5our4vanceavi4ervel4ie3atrirven4erv5er_t4nerer3vestat3uraeatit4e3atifeat5ieeat3ertmo4t5east5iat3urge1as1s3ryngoau5ceraud5ereas5erryth4iaudic4ear4tee5ar2rear4liear3ereap5eream3ersac4teeam4blea3logeal3eread3liead3ersain4teac4tedy4ad_sa5lacdwell3sa3lies4al4t5tletrdvert3sa5minault5id5un4cdum4be5tledrs4an4etlant4san5ifdu5ettau5reodu5elldu5eliau5rordrunk3tiv3isaus5erdri4g3aut3ars5ativti3tradrast4d5railsau5ciaut3erdossi4sa3voudo5simdon4atdom5itt3itisdomin5doman4tit5ildo4lonscar4cdol5ittith4edol3endo4c3u4s4ces5dlestt4istrdi4val1di1v2ditor3av3ageava5latish5idithe4av5alr3tisand4iterd4itas3disiadisen34d5irodi4oladi5nossec5andin5gisecon4dimet4di5mersed4itdi3gamdig3al3di3evdi4ersd5icurse3lecselen55dicul2s4emedic4tesemi5dav5antdic5oldic5amt3iristi5quaav3end5sentmti3pliav3ernti5omosep4side4voisep3tiser4antiol3aser4to4servode3vitde3visdev3ils5estade3tesdes3tid3est_sev3enaviol4aw5er_de3sidde3sectin3uetin4tedes4casfor5esfran5der5os3dero45dernesh4abiaw5ersder4miaw5nieay5sta3dererde5reg4deredde3raiderac4si4allsiast5tin3ets3icatdepen42s5icldeont5si5cul4tinedba5birdens5aside5lsid3enbalm5ideni4eba5lonsi4ersde1n2ade4mosde3morba5nan5tilindemo4nti4letsin5etbardi44demiedel5lisi5nolsi3nusba5romdeli4esi5o5sde3lat5de3isde4fy_bar3onde4cilsist3asist3otigi5odeb5itsit5omdeac3td3dlerd4derebas4tedaugh3dativ4dast5a3d4as2d1an4ts3kierba4th4sk5ily3baticba5tiod4a4gid5ache3ti2encys5toc3utivbat5on4cur4oti3diecur4er1c2ultb4batab4bonecul5abcu5itycub3atctro5tbcord4ti3colct5olo3smithbdeac5tic5asct5ivec4tityc4tituc3t2isbed5elc3tinict5ing4s3oid4te3loct4in_so5lansol4erso3lic3solvebe5dra5ti5bube3lit3some_bend5ac4ticsbe5nigson5atbicen5son5orc4tentbi4ers5soriosor4its5orizc2t5eec3tato5bilesct5antc5ta5gctac5u5c4ruscrost4spast45thoug3b2ill3sperms5pero4thoptcre4to5creti3spher4t5hoocre4p3sp5id_s5pierspil4lcre3atsp3ingspi5nith3oli4creancra4tecras3tbimet55crani5bin4d3spons3spoonspru5dbind3ecous5t3co3trth4is_srep5ucost3aco5rolco3rels5sam24coreds5sengs3sent5th4ioss3er_s5seriss3ers3thinkt5hillbin5etcon4iecon4eyth3eryss4in_s4siness4is_s3s2itss4ivicon4chth3ernco3mo4co5masssol3ut5herds4soreth5erc5colouco3logco3inc4c3oidco3difco3dicsta3bic4lotrs4talebin5i4s3tas_theo3lc3lingbi3re4ste5arste5atbi5rusbisul54s1teds4tedls4tedn4stereth5eas3bituas3terost5est5blastcine5a4cinabs3ti3a3sticks3ticuthal3ms4tilyst3ing5s4tir5cimenth5al_st3lercigar5ci3estch5ousstone3bla5tu5blespblim3as4tose4chotis4tray4chosostrep33strucstru5dbment4tew3arch5oid5chlorstur4echizz4ch3innch4in_ch3ily3chicoche5va3chetech4erltetr5och4eriche3olcha3pa4boledbon4iesu5ingces5trcest5oce3remcer4bites5tusu3pinsupra3sur4ascept3a5testesur3pltest3aboni4ft3ess_bon4spcent4ab3oratbor5eebor5etbor5icter5nobor5iocen5cice4metce5lomter3itt4erinsy4chrcel3aice3darcci3d4ter5ifsy5photer5idcav3ilter3iabot3an3tablica3t2rta3bolta4bout4a3cete3reota3chyta4cidc4atom3casu35t2adjta5dor5terel3cas3scashi4tage5ota5gogca3roucar5oocar5oncar3olcar3nicar3ifter5ecca3reeter3ebta5lept4aliat4alin2tere45tallut2alo43ter3bt4eragtera4c3brachtan5atbran4db4reas5taneltan5iet5aniz4b2rescap3tica5piltent4atark5ican4trte5nog5brief5tennaca3noec2an4eta3stabring5t4ateu3tatist4ato_tat4ouca5nartat3uttau3tobri4osca5lefcal5ar4tenarcab5inb5ut5obut4ivten4ag3butiob5utinbu5tarte5cha5technbus5sibusi4ete5d2abur4rite5monb4ulosb5rist5tegicb5tletbro4mab4stacbso3lubsol3e4teledtel5izbscon4ct4ina",7:"mor4atobstupe5buf5ferb5u5nattch5ettm3orat4call5inmor5talcan5tarcan5tedcan4tictar5ia_brev5ettant5anca3ra5ctand5er_ad4din5ta3mettam5arit4eratocar5ameboun5tital4l3atal5entmonolo4cas5tigta5chom3teres4ta5blemcaulk4iccent5rcces4sacel5ib5mpel5licel5lincen5ded5ternit4sweredswell5icend5encend5ersvest5isvers5acen5tedt5esses_ama5tem5perercen5testest5ertest5intest5orcep5ticmpet5itchan5gi5cherin4choredchor5olmphal5os5toratblem5atston4iecil5lin4mologu4mologss4tern_ster4iaci5nesscla5rifclemat45static4molog_5therapmogast4ssolu4b4theredcon4aticond5erconta5dcor5dedcord5ermpol5itcost5ercraft5ispon5gicra5niuspital5spic5ulspers5a4thorescret5orspens5ac5tariabi4fid_4sor3iecter4iab5ertinberga5mc5ticiabend5erso5metesoma5toctifi4esolv5erc5tin5o_an4on_ct4ivittici5ar3ti3cint4icityc5torisc5toriz4ticulecull5ercull5inbattle5cur5ialmmel5lislang5idal5lersk5iness5kiest4tific_daun5tede5cantdefor5edel5ler_an3ti34dem4issim4plyb4aniti_ant4icde4mons_an4t5osid5eri5timet4dens5er5ti5nadden5titdeposi4zin4c3i_aph5orshil5lider5minsfact5otin5tedtint5erde5scalmis4tindes5ponse5renedevol5u4tionemdiat5omti5plexseo5logsent5eemi5racu_ar4isedic5tat4scuras4scura__ar4isi5scopic3s4cope5t4istedi5vineti5t4ando5linesca5lendom5inodot4tins5atorydress5oaus4tedtiv5allsassem4dropho4duci5ansant5risan5garaun4dresan4ded_ar5sendust5erault5erdvoc5ataul5tedearth5iea4soni4ryngoleassem4eat5enieat4iturv5ers_rus4t5urus5ticrust5eeatric5urust5at_as5sibrup5licminth5oecad5enruncul5ru4moreecent5oa5tivizecon4sc_ateli4_au3g4uec5rean_aur4e5ect5atiec4t5usrtil5le4at4is__av5erar4theneedeter5edi4alsr5terered5icala4t1i4lediges4at5icizediv5idtori4asrswear4ati5citat5icisedu5cerrstrat4eer4ineefact5oming5li_ba5sicef5ereemin4ersath5eteath5eromin4er__be5r4ae5ignitr5salizmind5err5salisejudic44traistmil5iestrarch4tra5ven_blaz5o4m5iliee4lates_bos5omat5enatelch5errrin5getrend5irri4fy_rran5gie4lesteel3et3o_boun4d_bra5chtri5fli_burn5ieli4ers_ca4ginrou5sel_can5tamigh5tiros5tita5talisro5stattro4pharop4ineemarc5aem5atizemat5ole4m3eraron4tonro5nateem4icisnaffil4romant4emig5rarol5iteass5iblassa5giemon5ola4sonedem5orise4moticempara54empli_en3am3o_cen5sot5tereren4cileen4d5alen4dedlttitud45n4a3grend5ritrn5atine5nellee5nereor4mite_r4ming_en3ig3rmet5icirma5tocr4m3atinannot4en4tersen4tifyarp5ersent5rinr5kiesteol5ar_eologi4aro4mas_clem5eriv5eliri5vallris5ternan5teda5rishi3mesti4epolit5tup5lettup5lic_cop5roepres5erink5erme5si4aring5ie_co5terrim5an4equi5noment5or4tut4ivna5turiera4cierig5ant5rifugaar4donear5dinarif5tiear5chetrift5er4erati_4eratimrick4enrich5omrica5tuaran5teer5esteer5estieres5trre5termar4aged_dea5coaract4irest5erre5stalapu5lareri4ciduant5isuant5itres5ist5er5ickapo5strer4imet_de5lecuar4t5iua5terneri5staren4ter5ernaclmend5errem5atoreman4d_del5egerre5laer5sinere5galiert5er_ert5ersrec4t3rr4e1c2rreci5simelt5er_deli5ran4tone_de5nitan4tinges5idenesi5diur4d1an4rcriti4es3ol3urci5nogant5abludi4cinrch4ieru5dinisrch5ateu5ditiorch5ardes3per3mel5lerrcen5eres5piraanis5teesplen5uen4teres4s3anest5ifi_de5resues5trin4cept_rav5elianel5li4r4atom5ra5tolan4donirat4in_r4as5teand5istrass5in5meg2a1et3al5oand5eerrar5ia_an3d4atrant5inuicent55rantelran5teduild5erran4gennch5oloetell5irad4inencid5enra5culorac5ulaet3er3aet5eria3ra3binet5itivui5val5amphi5gam5peri_de5sirqua5tio4e4trala4mium_et5ressetrib5aaminos4am5inizamini4fp5u5tis5ulchrepush4ieev5eratev5eren4ulenciever4erpu5lar_puff5erevictu4evis5in_de5sisfall5inncip5ie_di4al_fend5erpros5trpropyl5proph5eul4l5ibp3roc3apris5inpring5imbival5nco5pat5pressiyllab5iulp5ingpre5matylin5dem4b3ingnct4ivife5veriffec4te_du4al_pprob5am5bererum4bar__echin5fi5anceal5tatipparat5pout5ern4curviumi5liaumin4aru4minedu4m3ingpoult5epor5tieal4orim4poratopon4i4eflo5rical4lish_ed4it_foment4_ed4itialli5anplum4befor4m3a_el3ev3fratch4pla5t4oma5turem4atizafrost5ipis5tilmat4itifuel5ligal5lerpill5ingang5ergariz4aunho5lial5ipotgass5inph5oriz4phonedgest5atg5gererphant5ipha5gedgiv5en_5glass_unk5eripet5allal5endepes5tilpert5isper5tinper4os_al5ance5p4er3nperem5indeleg4gna5turndepre4aint5eruodent4pend5er4gogram_en4dedpearl5indes5crgth5enimas4tinpat4richad4inepas4tinnd5is4ihak4inehal5anthan4crohar5dieha5rismhar4tedaet4or_aerody5pag4atihaught5_er5em5hearch44urantiheav5enurb5ingoxic5olowhith4ur5den_ur5deniowel5lih5erettovid5ennd5ism_her5ialh5erineout5ishoun5ginound5elhet4tedact5oryu5ri5cuheumat5ur5ifieact5ileought5ihi3c4anuri4os_h4i4ersh4manicurl5ingact5atemast4ichnocen5_men5taaci4erso5thermmar4shimantel5ot5estaurpen5tach5isma5chinihol4is_ot4atioot4anico5talito5stome5acanthost5icaosten5tost5ageh4op4te3house3hras5eoy4chosen5ectom4abolicht5eneror5tes_man4icay5chedei5a4g5oori5cidialect4or5este_escal5iatur4aorator5_wine5s_vo5lutich5ingo5quial_etern5us5ticiic4tedloplast4ophy5laid4ines4operag2i4d1itoost5eriff5leronvo5lui4ficaconti5fiman5dar_vic5to_fal4lemament4mal4is__ver4ieila5telonical4i5later_feoff5ili4arl_va5ledil4ificond5ent_ur5eth5ond5arut4toneil5ine_on5ativonast5i_under5ompt5eromot5ivi4matedi4matin_fi5liaimpar5a_fil5tro5lunte4inalit_tular5olon5el5neringinator5_tro4ph_fis4c5inc4tua_trin4aol4lopeoli4f3eol5ies_mal5ari_tran4c_tit4isnerv5inval4iseol5icizinfilt5olat5erin4itud_gam5etxter4m3ink4inein4sch5_tell5evas5el5insect5insec5uinsolv5int5essvat4inaoher4erint5res_tamar5xtens5o_tact4iinvol5ui4omani_gen4et_gen5iave5linei5pheriip5torivel5lerir4alinvel5opiir4alliirassi4nfortu5irl5ingirwo4meo4ducts4lut5arv5en5ue_stat4o_si5gnoverde5v4v4ere4o4duct_odu5cerodis5iaocus5siis5onerist5encxotrop4_ser4ie5vialitist5entochro4n_gnost4_sec5tovi5cariocess4iis4t3iclum4brio5calli4is4tom4itioneit5ress3vili4av5ilisev5ilizevil5linoast5eritu4als_han4de_hast5ii4vers__sa5linlsi4fiai5vilit5ivist_5ivistsnvoc5at_ho5rol_rol4lakinema4ni4cul4nultim5_re5strloth4ie5la5collos5sienight5ilor4ife_re5spolor5iatntup5li5lo5pen_re5sen_res5ci_re5linnt5ressn4trant_re5garloom5erxhort4a_ran5gilong5invol4ubi_ra5cem_put4ten5tition4tiparlo4cus__pos5si_lash4e_len5tint5ing_nit5res_le5vanxecut5o_plica4n4tify__plast45latini_phon4illow5er_li4onslligat4_peri5nntic4u4_pen5dewall5ern5ticizwan5gliwank5erwar5dedward5ern5ticisnth5ine_lo4giawar5thinmater4_pec3t4_pa4tiowav4ine_lous5i_para5t_par5af_lov5ernmor5ti_orner4nt5ativ_or5che_ma5lin_mar5ti_or4at4le5ation5tasiswel4izint4ariun4t3antntan5eon4t3ancleav5erl3eb5rannel5li_nucle5_no5ticlem5enclen5darwill5in_ni5tronsec4tewing5er4lentio5l4eriannerv5a_nas5tinres5tr5le5tu5lev5itano5blemnovel5el3ic3onwol5ver_mor5tilift5erlight5ilimet4e_mo5lec5lin3ealin4er_lin4erslin4gern5ocula_min5uenobser4_met4er_me5rin_me5ridmas4ted",8:"_musi5cobserv5anwith5erilect5icaweight5ica5laman_mal5ad5l5di5nestast5i4cntend5enntern5alnter5nat_perse5c_pe5titi_phe5nomxe5cutio5latiliz_librar5nt5ilati_les5son_po5lite_ac5tiva5latilisnis5tersnis5ter_tamorph5_pro5batvo5litiolan5tine_ref5eremophil5ila5melli_re5statca3r4i3c5lamandrcen5ter_5visecti5numentanvers5aniver5saliv5eling_salt5ercen5ters_ha5bilio4c5ativlunch5eois5terer_sev5era_glor5io_stra5tocham5perstor5ianstil5ler_ge5neti_sulph5a_tac5ticnform5eroin4t5erneuma5to_te5ra5tma5chinecine5mat_tri5bal_fran5ch_tri5sti_fi5n4it_troph5o_fin5essimparad5stant5iv_vent5il4o5nomicssor5ialight5ersight5er__evol5utm5ament_ont5ane_icotyle5orest5atiab5oliziab5olismod5ifiehrill5inothalam5oth5erinnduct5ivrth5ing_otherm5a5ot5inizov5elinghav5ersipass5ivessent5ermater5n4ain5dersuo5tatiopens5atipercent5slav5eriplant5er5sing5erfortu5naplumb5erpo5lemicpound5erffranch5ppress5oa5lumnia_domest5pref5ereprel5atea5marinepre5scina5m4aticpring5ertil4l5agmmand5er5sid5u4a_de5spoievol5utee5tometeetend5erting5ingmed5icatran5dishm5ed5ieset5allis_de5servsh5inessmlo5cutiuest5ratncent5rincarn5atdes5ignareact5ivr5ebratereced5ennbarric5sen5sorier5nalisuar5tersre4t4er3_custom5naugh5tirill5er_sen5sati5scripti_cotyle5e4p5rob5a5ri5netaun5chierin4t5errip5lica_art5icl5at5ressepend5entu4al5lir5ma5tolttitu5di_cent5ria5torianena5ture5na5geri_cas5ualromolec5elom5ateatitud5i_ca5pituround5ernac5tiva_at5omizrpass5intomat5oltrifu5gae4l3ica4rpret5erel5ativetrav5esttra5versat5ernisat5ernizefor5estath5erinef5initeto5talizto5talis_barri5c_authen5mass5ing",9:"_bap5tismna5cious_econstit5na5ciousl_at5omisena5culari_cen5tena_clima5toepe5titionar5tisti_cri5ticirill5ingserpent5inrcen5tenaest5igati_de5scrib_de5signe_determ5ifals5ifiefan5tasizplas5ticiundeter5msmu5tatiopa5triciaosclero5s_fec5unda_ulti5matindeterm5ipart5ite_string5i5lutionizltramont5_re5storeter5iorit_invest5imonolog5introl5ler_lam5enta_po5sitio_para5dis_ora5tori_me5lodio"}}},t=new window.Hypher(e.exports);"string"==typeof e.exports.id&&(e.exports.id=[e.exports.id]);for(var i=0;i<e.exports.id.length;i+=1)window.Hypher.languages[e.exports.id[i]]=t}(); |