UNPKG

kd-deliver-api-3dcat

Version:

KD-DELIVER-API-3DCAT

2 lines 1.13 MB
/*! For license information please see index.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KdApi=t():e.KdApi=t()}(self,(function(){return(()=>{var e={3535:function(e,t,n){!function(e){"use strict";function t(){}function i(e,t){for(const n in t)e[n]=t[n];return e}function r(e){return e()}function o(){return Object.create(null)}function a(e){e.forEach(r)}function s(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let c,u;function d(e,t){return c||(c=document.createElement("a")),c.href=t,e===c.href}function h(e,n,i){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function p(e,t,n,i){if(e){const r=f(e,t,n,i);return e[0](r)}}function f(e,t,n,r){return e[1]&&r?i(n.ctx.slice(),e[1](r(t))):n.ctx}function m(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|r[i];return e}return t.dirty|r}return t.dirty}function y(e,t,n,i,r,o){if(r){const a=f(t,n,i,o);e.p(a,r)}}function g(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function v(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function _(e,t){const n={};t=new Set(t);for(const i in e)t.has(i)||"$"===i[0]||(n[i]=e[i]);return n}function b(e){return null==e?"":e}function w(e,t){e.appendChild(t)}function M(e,t,n){const i=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!i.getElementById(t)){const e=k("style");e.id=t,e.textContent=n,function(e,t){w(e.head||e,t),t.sheet}(i,e)}}function A(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function k(e){return document.createElement(e)}function x(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function V(){return T(" ")}function D(){return T("")}function S(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function C(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function E(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Y(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function O(e,t){e.value=null==t?"":t}function P(e,t,n,i){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function I(e,t,n){e.classList[n?"add":"remove"](t)}function R(e){u=e}function j(){if(!u)throw new Error("Function called outside component initialization");return u}function H(e){j().$$.on_mount.push(e)}const N=[],F=[];let B=[];const z=[],U=Promise.resolve();let W=!1;function K(e){B.push(e)}const G=new Set;let Z=0;function J(){if(0!==Z)return;const e=u;do{try{for(;Z<N.length;){const e=N[Z];Z++,R(e),X(e.$$)}}catch(e){throw N.length=0,Z=0,e}for(R(null),N.length=0,Z=0;F.length;)F.pop()();for(let e=0;e<B.length;e+=1){const t=B[e];G.has(t)||(G.add(t),t())}B.length=0}while(N.length);for(;z.length;)z.pop()();W=!1,G.clear(),R(e)}function X(e){if(null!==e.fragment){e.update(),a(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(K)}}const Q=new Set;let $;function q(){$={r:0,c:[],p:$}}function ee(){$.r||a($.c),$=$.p}function te(e,t){e&&e.i&&(Q.delete(e),e.i(t))}function ne(e,t,n,i){if(e&&e.o){if(Q.has(e))return;Q.add(e),$.c.push((()=>{Q.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}else i&&i()}function ie(e,t){const n={},i={},r={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(i[e]=1);for(const e in s)r[e]||(n[e]=s[e],r[e]=1);e[o]=s}else for(const e in a)r[e]=1}for(const e in i)e in n||(n[e]=void 0);return n}function re(e){return"object"==typeof e&&null!==e?e:{}}function oe(e){e&&e.c()}function ae(e,t,n,i){const{fragment:o,after_update:l}=e.$$;o&&o.m(t,n),i||K((()=>{const t=e.$$.on_mount.map(r).filter(s);e.$$.on_destroy?e.$$.on_destroy.push(...t):a(t),e.$$.on_mount=[]})),l.forEach(K)}function se(e,t){const n=e.$$;null!==n.fragment&&(function(e){const t=[],n=[];B.forEach((i=>-1===e.indexOf(i)?t.push(i):n.push(i))),n.forEach((e=>e())),B=t}(n.after_update),a(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function le(e,n,i,r,s,l,c,d=[-1]){const h=u;R(e);const p=e.$$={fragment:null,ctx:[],props:l,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(h?h.$$.context:[])),callbacks:o(),dirty:d,skip_bound:!1,root:n.target||h.$$.root};c&&c(p.root);let f=!1;if(p.ctx=i?i(e,n.props||{},((t,n,...i)=>{const r=i.length?i[0]:n;return p.ctx&&s(p.ctx[t],p.ctx[t]=r)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](r),f&&function(e,t){-1===e.$$.dirty[0]&&(N.push(e),W||(W=!0,U.then(J)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],p.update(),f=!0,a(p.before_update),p.fragment=!!r&&r(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(L)}else p.fragment&&p.fragment.c();n.intro&&te(e.$$.fragment),ae(e,n.target,n.anchor,n.customElement),J()}R(h)}class ce{$destroy(){se(this,1),this.$destroy=t}$on(e,n){if(!s(n))return t;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}var ue=function(e,t){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ue(e,t)};function de(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function he(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function pe(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function fe(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function me(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ye(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function ge(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function ve(e){return this instanceof ve?(this.v=e,this):new ve(e)}function _e(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof ve?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function be(e){return"function"==typeof e}var we,Me,Ae=(we=function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}},Me=we((function(e){Error.call(e),e.stack=(new Error).stack})),Me.prototype=Object.create(Error.prototype),Me.prototype.constructor=Me,Me);function Le(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ke=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,i,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=me(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(be(l))try{l()}catch(e){r=e instanceof Ae?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=me(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{Te(h)}catch(e){r=null!=r?r:[],e instanceof Ae?r=ge(ge([],ye(r)),ye(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}if(r)throw new Ae(r)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Te(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Le(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();function xe(e){return e instanceof ke||e&&"closed"in e&&be(e.remove)&&be(e.add)&&be(e.unsubscribe)}function Te(e){be(e)?e():e.unsubscribe()}ke.EMPTY;var Ve=void 0,De=!1,Se={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Se.delegate;return(null==r?void 0:r.setTimeout)?r.setTimeout.apply(r,ge([e,t],ye(n))):setTimeout.apply(void 0,ge([e,t],ye(n)))},clearTimeout:function(e){var t=Se.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ce(e){Se.setTimeout((function(){throw e}))}function Ee(){}var Ye=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,xe(t)&&t.add(n)):n.destination=He,n}return de(t,e),t.create=function(e,t,n){return new Re(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ke),Oe=Function.prototype.bind;function Pe(e,t){return Oe.call(e,t)}var Ie=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){je(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){je(e)}else je(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){je(e)}},e}(),Re=function(e){function t(t,n,i){var r,o,a=e.call(this)||this;return be(t)||!t?r={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=i?i:void 0}:a&&De?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},r={next:t.next&&Pe(t.next,o),error:t.error&&Pe(t.error,o),complete:t.complete&&Pe(t.complete,o)}):r=t,a.destination=new Ie(r),a}return de(t,e),t}(Ye);function je(e){Ce(e)}var He={closed:!0,next:Ee,error:function(e){throw e},complete:Ee},Ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fe(e){return e}var Be=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,r=this,o=(i=e)&&i instanceof Ye||function(e){return e&&be(e.next)&&be(e.error)&&be(e.complete)}(i)&&xe(i)?e:new Re(e,t,n);return function(){var e=r,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?r._subscribe(o):r._trySubscribe(o))}(),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=ze(t))((function(t,i){var r=new Re({next:function(t){try{e(t)}catch(e){i(e),r.unsubscribe()}},error:i,complete:t});n.subscribe(r)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ne]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Fe:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ze(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function ze(e){var t;return null!==(t=null!=e?e:Ve)&&void 0!==t?t:Promise}function Ue(e){return function(t){if(function(e){return be(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function We(e,t,n,i,r){return new Ke(e,t,n,i,r)}var Ke=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=r?function(e){try{r(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return de(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(Ye),Ge={now:function(){return(Ge.delegate||Date).now()},delegate:void 0},Ze=function(e){function t(t,n){return e.call(this)||this}return de(t,e),t.prototype.schedule=function(e,t){return this},t}(ke),Je={setInterval:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Je.delegate;return(null==r?void 0:r.setInterval)?r.setInterval.apply(r,ge([e,t],ye(n))):setInterval.apply(void 0,ge([e,t],ye(n)))},clearInterval:function(e){var t=Je.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Xe=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return de(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),Je.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&Je.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,i=!1;try{this.work(e)}catch(e){i=!0,n=e||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Le(i,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Ze),Qe=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=Ge.now,e}(),$e=new(function(e){function t(t,n){void 0===n&&(n=Qe.now);var i=e.call(this,t,n)||this;return i.actions=[],i._active=!1,i}return de(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(Qe))(Xe),qe=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e},et="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tt(e){if(e instanceof Be)return e;if(null!=e){if(function(e){return be(e[Ne])}(e))return o=e,new Be((function(e){var t=o[Ne]();if(be(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(qe(e))return r=e,new Be((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(be(null==(i=e)?void 0:i.then))return n=e,new Be((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,Ce)}));if(function(e){return Symbol.asyncIterator&&be(null==e?void 0:e[Symbol.asyncIterator])}(e))return nt(e);if(function(e){return be(null==e?void 0:e[et])}(e))return t=e,new Be((function(e){var n,i;try{for(var r=me(t),o=r.next();!o.done;o=r.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}e.complete()}));if(function(e){return be(null==e?void 0:e.getReader)}(e))return nt(function(e){return _e(this,arguments,(function(){var t,n,i;return fe(this,(function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,ve(t.read())];case 3:return n=r.sent(),i=n.value,n.done?[4,ve(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,ve(i)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e))}var t,n,i,r,o;throw function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}(e)}function nt(e){return new Be((function(t){(function(e,t){var n,i,r,o;return pe(this,void 0,void 0,(function(){var a,s;return fe(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=me(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}}(e),l.label=1;case 1:return[4,n.next()];case 2:if((i=l.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),r={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function it(e,t){return Ue((function(n,i){var r=0;n.subscribe(We(i,(function(n){i.next(e.call(t,n,r++))})))}))}var rt=Array.isArray;function ot(e,t,n){return void 0===n&&(n=1/0),be(t)?ot((function(n,i){return it((function(e,r){return t(n,e,i,r)}))(tt(e(n,i)))}),n):("number"==typeof t&&(n=t),Ue((function(t,i){return function(e,t,n,i,r,o,a,s){var l=[],c=0,u=0,d=!1,h=function(){!d||l.length||c||t.complete()},p=function(e){return c<i?f(e):l.push(e)},f=function(e){c++;var r=!1;tt(n(e,u++)).subscribe(We(t,(function(e){t.next(e)}),(function(){r=!0}),void 0,(function(){if(r)try{c--;for(var e=function(){var e=l.shift();f(e)};l.length&&c<i;)e();h()}catch(e){t.error(e)}})))};return e.subscribe(We(t,p,(function(){d=!0,h()}))),function(){}}(t,i,e,n)})))}var at=["addListener","removeListener"],st=["addEventListener","removeEventListener"],lt=["on","off"];function ct(e,t,n,i){if(be(n)&&(i=n,n=void 0),i)return ct(e,t,n).pipe(function(e){return it((function(t){return function(e,t){return rt(t)?e.apply(void 0,ge([],ye(t))):e(t)}(e,t)}))}(i));var r=ye(function(e){return be(e.addEventListener)&&be(e.removeEventListener)}(e)?st.map((function(i){return function(r){return e[i](t,r,n)}})):function(e){return be(e.addListener)&&be(e.removeListener)}(e)?at.map(ut(e,t)):function(e){return be(e.on)&&be(e.off)}(e)?lt.map(ut(e,t)):[],2),o=r[0],a=r[1];if(!o&&qe(e))return ot((function(e){return ct(e,t,n)}))(tt(e));if(!o)throw new TypeError("Invalid event target");return new Be((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return o(t),function(){return a(t)}}))}function ut(e,t){return function(n){return function(i){return e[n](t,i)}}}function dt(e,t){return Ue((function(n,i){var r=0;n.subscribe(We(i,(function(n){return e.call(t,n,r++)&&i.next(n)})))}))}function ht(e,t,n){var i=be(e)||t||n?{next:e,error:t,complete:n}:e;return i?Ue((function(e,t){var n;null===(n=i.subscribe)||void 0===n||n.call(i);var r=!0;e.subscribe(We(t,(function(e){var n;null===(n=i.next)||void 0===n||n.call(i,e),t.next(e)}),(function(){var e;r=!1,null===(e=i.complete)||void 0===e||e.call(i),t.complete()}),(function(e){var n;r=!1,null===(n=i.error)||void 0===n||n.call(i,e),t.error(e)}),(function(){var e,t;r&&(null===(e=i.unsubscribe)||void 0===e||e.call(i)),null===(t=i.finalize)||void 0===t||t.call(i)})))})):Fe}function pt(e){let n;return{c(){n=x("svg"),E(n,"version","1.0"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),E(n,"viewBox","0 0 300.000000 300.000000"),E(n,"width",mt),E(n,"height",yt),E(n,"preserveAspectRatio","xMidYMid meet"),P(n,"display","block"),E(n,"filter","drop-shadow(0 0 30px "+gt+")")},m(t,i){A(t,n,i),e[1](n)},p:t,i:t,o:t,d(t){t&&L(n),e[1](null)}}}const ft="http://www.w3.org/2000/svg",mt="75%",yt="75%",gt="#295297";function vt(e,t,n){const i=[];let r;var o;return H((()=>{r.appendChild(function(){const e=document.createElementNS(ft,"g");e.setAttributeNS(null,"transform","translate(0.000000,300.000000) scale(0.100000,-0.100000)"),e.setAttributeNS(null,"fill","#FFFFFF"),e.setAttributeNS(null,"stroke","#none");const t=document.createElementNS(ft,"path");t.setAttributeNS(null,"d","M220 2324 l0 -576 42 25 c89 51 1163 680 1165 681 1 1 -248 94 -555 206 -306 112 -578 212 -604 222 l-48 18 0 -576z");const n=document.createElementNS(ft,"path");n.setAttributeNS(null,"d","M2173 2676 c-334 -122 -597 -223 -590 -227 6 -4 278 -163 602 -353 l590 -346 3 291 c1 160 1 418 0 573 l-3 283 -602 -221z");const r=document.createElementNS(ft,"path");r.setAttributeNS(null,"d","M878 2022 c-460 -266 -614 -360 -605 -368 7 -6 285 -171 619 -368 l608 -357 614 368 c339 202 612 371 608 375 -8 8 -1203 699 -1217 704 -5 2 -288 -157 -627 -354z");const o=document.createElementNS(ft,"path");o.setAttributeNS(null,"d","M220 1193 l0 -378 606 -350 c333 -192 610 -351 615 -353 5 -2 9 145 9 370 l-1 373 -608 358 c-334 196 -611 357 -614 357 -4 0 -7 -170 -7 -377z");const a=document.createElementNS(ft,"path");a.setAttributeNS(null,"d","M2163 1222 l-613 -367 0 -373 c0 -225 4 -372 9 -370 5 2 282 161 615 353 l606 350 0 388 c0 213 -1 387 -2 386 -2 0 -279 -165 -615 -367z");const s=[];return s.push(t),s.push(n),s.push(a),s.push(o),s.push(r),s.forEach(((t,n)=>{t.style.opacity="0",function(e,t=0){let n=0,r=1;const o=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=$e);var i,r=-1;return null!=t&&((i=t)&&be(i.schedule)?n=t:r=t),new Be((function(t){var i=function(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule((function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}(1e3*t,10).subscribe((()=>{n>=100?r=-Math.abs(r):n<=0&&(r=Math.abs(r)),n+=r,e.style.opacity=""+n/100}));i.push(o)}(t,.2*n),e.appendChild(t)})),e}())})),o=()=>{i.forEach((e=>{e.unsubscribe()}))},j().$$.on_destroy.push(o),[r,function(e){F[e?"unshift":"push"]((()=>{r=e,n(0,r)}))}]}class _t extends ce{constructor(e){super(),le(this,e,vt,pt,l,{})}}const bt=[];function wt(e,n=t){let i;const r=new Set;function o(t){if(l(e,t)&&(e=t,i)){const t=!bt.length;for(const t of r)t[1](),bt.push(t,e);if(t){for(let e=0;e<bt.length;e+=2)bt[e][0](bt[e+1]);bt.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(a,s=t){const l=[a,s];return r.add(l),1===r.size&&(i=n(o)||t),a(e),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}const Mt=wt(0),At=wt(!0),Lt=wt(""),kt=wt(!0),xt=wt(t),Tt=wt(),Vt=wt(0);function Dt(e){let t,n,i;const r=e[5].default,o=p(r,e,e[4],null);return{c(){t=x("svg"),o&&o.c(),E(t,"width",e[2]),E(t,"height",e[3]),E(t,"viewBox",n="0 0 "+e[0]+" "+e[1]),E(t,"version","1.1"),E(t,"xmlns","http://www.w3.org/2000/svg"),E(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),P(t,"fill","currentColor")},m(e,n){A(e,t,n),o&&o.m(t,null),i=!0},p(e,[a]){o&&o.p&&(!i||16&a)&&y(o,r,e,e[4],i?m(r,e[4],a,null):g(e[4]),null),(!i||4&a)&&E(t,"width",e[2]),(!i||8&a)&&E(t,"height",e[3]),(!i||3&a&&n!==(n="0 0 "+e[0]+" "+e[1]))&&E(t,"viewBox",n)},i(e){i||(te(o,e),i=!0)},o(e){ne(o,e),i=!1},d(e){e&&L(t),o&&o.d(e)}}}function St(e,t,n){let{$$slots:i={},$$scope:r}=t,{w:o=12}=t,{h:a=12}=t,{width:s=o}=t,{height:l=18}=t;return e.$$set=e=>{"w"in e&&n(0,o=e.w),"h"in e&&n(1,a=e.h),"width"in e&&n(2,s=e.width),"height"in e&&n(3,l=e.height),"$$scope"in e&&n(4,r=e.$$scope)},[o,a,s,l,r,i]}class Ct extends ce{constructor(e){super(),le(this,e,St,Dt,l,{w:0,h:1,width:2,height:3})}}function Et(e){let n,i,r,o,a;return{c(){n=x("path"),i=V(),r=x("path"),o=V(),a=x("path"),E(n,"d","M12.1152 18.1756L4.00095 25.3513L4.00095 11L12.1152 18.1756Z"),E(n,"fill","white"),E(r,"d","M23.5723 18.1755L16.1151 23.9755L16.1151 12.3755L23.5723 18.1755Z"),E(r,"fill","white"),E(r,"fill-opacity","0.6"),E(a,"d","M32.373 18.1756L26.573 22.3184L26.573 14.0327L32.373 18.1756Z"),E(a,"fill","white"),E(a,"fill-opacity","0.29")},m(e,t){A(e,n,t),A(e,i,t),A(e,r,t),A(e,o,t),A(e,a,t)},p:t,d(e){e&&L(n),e&&L(i),e&&L(r),e&&L(o),e&&L(a)}}}function Yt(e){let t,n;const r=[e[0],{w:36},{h:36},{width:18}];let o={$$slots:{default:[Et]},$$scope:{ctx:e}};for(let e=0;e<r.length;e+=1)o=i(o,r[e]);return t=new Ct({props:o}),{c(){oe(t.$$.fragment)},m(e,i){ae(t,e,i),n=!0},p(e,[n]){const i=1&n?ie(r,[re(e[0]),r[1],r[2],r[3]]):{};2&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(te(t.$$.fragment,e),n=!0)},o(e){ne(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function Ot(e,t,n){const r=[];let o=_(t,r);return e.$$set=e=>{t=i(i({},t),v(e)),n(0,o=_(t,r))},[o]}class Pt extends ce{constructor(e){super(),le(this,e,Ot,Yt,l,{})}}const It=()=>navigator.userAgent.includes("miniProgram")||navigator.userAgent.includes("MicroMessenger"),Rt=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document;function jt(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||"ontouchstart"in document}function Ht(e){return new Promise((t=>setTimeout(t,e)))}function Nt(e,t=!1){return e.map((e=>{const[n,i]=e.split("@"),[r,o]=i.split(":");return{urls:[t?n.concat("?transport=tcp"):n],username:r,credential:o}}))}function Ft(e,t){var n,i,r;const o=document.createElement("canvas"),a=o.getContext("2d");return o.width=e.videoWidth/(null!==(n=t.accuracy)&&void 0!==n?n:1),o.height=e.videoHeight/(null!==(i=t.accuracy)&&void 0!==i?i:1),a.globalAlpha=null!==(r=t.alpha)&&void 0!==r?r:1,a.drawImage(e,0,0,o.width,o.height),o.toDataURL()}const Bt=(e,t)=>pe(void 0,void 0,void 0,(function*(){e.emitUIInteraction(JSON.stringify({_Agora_Service_Verify:t})).then((n=>pe(void 0,void 0,void 0,(function*(){return n||(yield Ht(200),yield Bt(e,t)),n}))))}));function zt(e){M(e,"svelte-1edl5zb",".enter-button-container.svelte-1edl5zb{align-items:center;border-radius:50px;color:#fff;cursor:pointer;display:flex;height:50px;justify-content:center;padding:0 24px}.enter-button-container.svelte-1edl5zb:active{color:hsla(0,0%,100%,.6)}.bg-flag.svelte-1edl5zb{background-color:hsla(0,0%,100%,.2);margin-top:30px;position:relative}.not-bg-flag.svelte-1edl5zb{background-color:rgba(0,0,0,.4);left:50%;position:fixed;top:50%;transform:translate(-50%,-50%)}.enter-app.svelte-1edl5zb{font-size:14px;margin-right:4px}")}function Ut(e){let t,n,i,r,o,a,s,l;return r=new Pt({props:{class:"enter-svg"}}),{c(){t=k("div"),n=k("span"),n.textContent="进入应用",i=V(),oe(r.$$.fragment),E(n,"class","enter-app svelte-1edl5zb"),E(t,"class",o="enter-button-container "+(e[0]?"bg-flag":"not-bg-flag")+" svelte-1edl5zb"),E(t,"aria-hidden","true")},m(o,c){A(o,t,c),w(t,n),w(t,i),ae(r,t,null),a=!0,s||(l=S(t,"click",e[3],{once:!0}),s=!0)},p(e,n){(!a||1&n&&o!==(o="enter-button-container "+(e[0]?"bg-flag":"not-bg-flag")+" svelte-1edl5zb"))&&E(t,"class",o)},i(e){a||(te(r.$$.fragment,e),a=!0)},o(e){ne(r.$$.fragment,e),a=!1},d(e){e&&L(t),se(r),s=!1,l()}}}function Wt(e){let t,n,i,r,o,a,s,l;return r=new Pt({props:{class:"enter-svg"}}),{c(){t=k("div"),n=k("span"),n.textContent="进入应用",i=V(),oe(r.$$.fragment),E(n,"class","enter-app svelte-1edl5zb"),E(t,"class",o="enter-button-container "+(e[0]?"bg-flag":"not-bg-flag")+" svelte-1edl5zb"),E(t,"aria-hidden","true")},m(o,c){A(o,t,c),w(t,n),w(t,i),ae(r,t,null),a=!0,s||(l=S(t,"touchstart",e[2],{passive:!0,once:!0}),s=!0)},p(e,n){(!a||1&n&&o!==(o="enter-button-container "+(e[0]?"bg-flag":"not-bg-flag")+" svelte-1edl5zb"))&&E(t,"class",o)},i(e){a||(te(r.$$.fragment,e),a=!0)},o(e){ne(r.$$.fragment,e),a=!1},d(e){e&&L(t),se(r),s=!1,l()}}}function Kt(e){let t,n,i,r;const o=[Wt,Ut],a=[];return t=jt()?0:1,n=a[t]=o[t](e),{c(){n.c(),i=D()},m(e,n){a[t].m(e,n),A(e,i,n),r=!0},p(e,[t]){n.p(e,t)},i(e){r||(te(n),r=!0)},o(e){ne(n),r=!1},d(e){a[t].d(e),e&&L(i)}}}function Gt(e,t,n){let i;h(e,xt,(e=>n(1,i=e)));let{hasLoadingBgImage:r}=t;return e.$$set=e=>{"hasLoadingBgImage"in e&&n(0,r=e.hasLoadingBgImage)},[r,i,()=>i(),()=>i()]}class Zt extends ce{constructor(e){super(),le(this,e,Gt,Kt,l,{hasLoadingBgImage:0},zt)}}function Jt(e){M(e,"svelte-52p1m0",".loading-image.svelte-52p1m0{height:200px;margin-bottom:30px}")}function Xt(e){let t,n;return{c(){t=k("img"),E(t,"class","loading-image svelte-52p1m0"),d(t.src,n=e[0])||E(t,"src",n),E(t,"alt","loadingImage")},m(e,n){A(e,t,n)},p(e,i){1&i&&!d(t.src,n=e[0])&&E(t,"src",n)},d(e){e&&L(t)}}}function Qt(e){let t;return{c(){t=T(e[0])},m(e,n){A(e,t,n)},p(e,n){1&n&&Y(t,e[0])},d(e){e&&L(t)}}}function $t(e){let n;function i(e,t){return e[0]instanceof HTMLImageElement?Qt:Xt}let r=i(e),o=r(e);return{c(){o.c(),n=D()},m(e,t){o.m(e,t),A(e,n,t)},p(e,[t]){r===(r=i(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(e){o.d(e),e&&L(n)}}}function qt(e,t,n){let{loadingImage:i}=t;return e.$$set=e=>{"loadingImage"in e&&n(0,i=e.loadingImage)},[i]}class en extends ce{constructor(e){super(),le(this,e,qt,$t,l,{loadingImage:0},Jt)}}var tn=function(){return tn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},tn.apply(this,arguments)},nn=function(){function e(e,t,n){var i=this;this.endVal=t,this.options=n,this.version="2.6.2",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){i.startTime||(i.startTime=e);var t=e-i.startTime;i.remaining=i.duration-t,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(t,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(t,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(t/i.duration);var n=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=n?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),t<i.duration?i.rAF=requestAnimationFrame(i.count):null!==i.finalEndVal?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(e){var t,n,r,o,a=e<0?"-":"";t=Math.abs(e).toFixed(i.options.decimalPlaces);var s=(t+="").split(".");if(n=s[0],r=s.length>1?i.options.decimal+s[1]:"",i.options.useGrouping){o="";for(var l=3,c=0,u=0,d=n.length;u<d;++u)i.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(o=i.options.separator+o),c++,o=n[d-u-1]+o;n=o}return i.options.numerals&&i.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return i.options.numerals[+e]})),r=r.replace(/[0-9]/g,(function(e){return i.options.numerals[+e]}))),a+i.options.prefix+n+r+i.options.suffix},this.easeOutExpo=function(e,t,n,i){return n*(1-Math.pow(2,-10*e/i))*1024/1023+t},this.options=tn(tn({},this.defaults),n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error||(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return i.handleScroll(i)})),window.onscroll=function(){window.onScrollFns.forEach((function(e){return e()}))},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,n=e.el.getBoundingClientRect(),i=n.top+window.pageYOffset,r=n.top+n.height+window.pageYOffset;r<t&&r>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>r||i>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var n=this.countDown?1:-1;this.endVal=e+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var n=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();function rn(e){M(e,"svelte-1vpsacd",".loading-text.svelte-1vpsacd.svelte-1vpsacd.svelte-1vpsacd{display:flex;font-size:14px}.loading-text.svelte-1vpsacd span.svelte-1vpsacd+span.svelte-1vpsacd{display:block}.percent-num.svelte-1vpsacd.svelte-1vpsacd.svelte-1vpsacd{margin-left:4px}")}function on(e){let n,i,r,o,a,s,l,c;return{c(){n=k("div"),i=k("span"),r=T(e[1]),o=V(),a=k("span"),s=V(),l=k("span"),c=T("%"),E(i,"class","svelte-1vpsacd"),E(a,"class","percent-num svelte-1vpsacd"),P(a,"display",e[2]?"inline-block":"none"),P(l,"display",e[2]?"inline-block":"none"),E(l,"class","svelte-1vpsacd"),E(n,"class","loading-text svelte-1vpsacd")},m(t,u){A(t,n,u),w(n,i),w(i,r),w(n,o),w(n,a),e[4](a),w(n,s),w(n,l),w(l,c)},p(e,[t]){2&t&&Y(r,e[1]),4&t&&P(a,"display",e[2]?"inline-block":"none"),4&t&&P(l,"display",e[2]?"inline-block":"none")},i:t,o:t,d(t){t&&L(n),e[4](null)}}}function an(e,t,n){let i,r,o;h(e,Mt,(e=>n(7,i=e))),h(e,Lt,(e=>n(1,r=e))),h(e,At,(e=>n(2,o=e)));let a,s,l=0;return H((()=>{s=new nn(a,i,{startVal:0,duration:2.5}),Mt.subscribe((e=>{s&&s.update(e)})),new MutationObserver(((e,t)=>{const n=+e[0].target.textContent;!isNaN(n)&&n>0&&n!==l&&(Vt.set(n),l=n),isNaN(n)||100!==n||t.disconnect()})).observe(a,{attributes:!0,childList:!0,subtree:!0})})),[a,r,o,"",function(e){F[e?"unshift":"push"]((()=>{a=e,n(0,a)}))}]}class sn extends ce{constructor(e){super(),le(this,e,an,on,l,{updatePrecentHandler:3},rn)}get updatePrecentHandler(){return this.$$.ctx[3]}}function ln(e){let n,i,r,o,a,s,l,c,u;return{c(){n=x("path"),i=V(),r=x("path"),o=V(),a=x("path"),s=V(),l=x("path"),c=V(),u=x("path"),E(n,"d","M1.95508 21.5235L22.4985 9.78271L43.0419 21.5235L22.4985 33.2609L1.95508 21.5235Z"),E(n,"fill","#338EF6"),E(r,"d","M21.5217 7.5248L0 0V19.5652L21.5217 7.5248Z"),E(r,"fill","#338EF6"),E(a,"d","M23.4814 7.5248L45.0031 0V19.5652L23.4814 7.5248Z"),E(a,"fill","#338EF6"),E(l,"d","M0 36.4386L21.5217 48.9127V35.9486L0 23.478V36.4386Z"),E(l,"fill","#338EF6"),E(u,"d","M45.0031 36.4386L23.4814 48.9127V35.9486L45.0031 23.478V36.4386Z"),E(u,"fill","#338EF6")},m(e,t){A(e,n,t),A(e,i,t),A(e,r,t),A(e,o,t),A(e,a,t),A(e,s,t),A(e,l,t),A(e,c,t),A(e,u,t)},p:t,d(e){e&&L(n),e&&L(i),e&&L(r),e&&L(o),e&&L(a),e&&L(s),e&&L(l),e&&L(c),e&&L(u)}}}function cn(e){let t,n;const r=[e[0],{w:46},{h:49}];let o={$$slots:{default:[ln]},$$scope:{ctx:e}};for(let e=0;e<r.length;e+=1)o=i(o,r[e]);return t=new Ct({props:o}),{c(){oe(t.$$.fragment)},m(e,i){ae(t,e,i),n=!0},p(e,[n]){const i=1&n?ie(r,[re(e[0]),r[1],r[2]]):{};2&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(te(t.$$.fragment,e),n=!0)},o(e){ne(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function un(e,t,n){const r=[];let o=_(t,r);return e.$$set=e=>{t=i(i({},t),v(e)),n(0,o=_(t,r))},[o]}class dn extends ce{constructor(e){super(),le(this,e,un,cn,l,{})}}function hn(e){M(e,"svelte-1xyirk9",".bar-container.svelte-1xyirk9{align-items:center;background-color:#262626;bottom:0;color:#fff;display:flex;font-size:14px;height:80px;justify-content:center;position:absolute;width:100%}")}function pn(e){let t,n,i,r;const o=[yn,mn,fn],a=[];function s(e,t){return e[0]instanceof HTMLImageElement?0:e[0]?1:2}return t=s(e),n=a[t]=o[t](e),{c(){n.c(),i=D()},m(e,n){a[t].m(e,n),A(e,i,n),r=!0},p(e,r){let l=t;t=s(e),t===l?a[t].p(e,r):(q(),ne(a[l],1,1,(()=>{a[l]=null})),ee(),n=a[t],n?n.p(e,r):(n=a[t]=o[t](e),n.c()),te(n,1),n.m(i.parentNode,i))},i(e){r||(te(n),r=!0)},o(e){ne(n),r=!1},d(e){a[t].d(e),e&&L(i)}}}function fn(e){let n,i;return n=new dn({}),{c(){oe(n.$$.fragment)},m(e,t){ae(n,e,t),i=!0},p:t,i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){ne(n.$$.fragment,e),i=!1},d(e){se(n,e)}}}function mn(e){let n,i;return{c(){n=k("img"),P(n,"width","24px"),d(n.src,i=e[0])||E(n,"src",i),E(n,"alt","loadingBarImage")},m(e,t){A(e,n,t)},p(e,t){1&t&&!d(n.src,i=e[0])&&E(n,"src",i)},i:t,o:t,d(e){e&&L(n)}}}function yn(e){let n;return{c(){n=T(e[0])},m(e,t){A(e,n,t)},p(e,t){1&t&&Y(n,e[0])},i:t,o:t,d(e){e&&L(n)}}}function gn(e){let t,n,i,r=e[1]&&pn(e);const o=e[3].default,a=p(o,e,e[2],null);return{c(){t=k("div"),r&&r.c(),n=V(),a&&a.c(),E(t,"class","bar-container svelte-1xyirk9")},m(e,o){A(e,t,o),r&&r.m(t,null),w(t,n),a&&a.m(t,null),i=!0},p(e,[s]){e[1]?r?(r.p(e,s),2&s&&te(r,1)):(r=pn(e),r.c(),te(r,1),r.m(t,n)):r&&(q(),ne(r,1,1,(()=>{r=null})),ee()),a&&a.p&&(!i||4&s)&&y(a,o,e,e[2],i?m(o,e[2],s,null):g(e[2]),null)},i(e){i||(te(r),te(a,e),i=!0)},o(e){ne(r),ne(a,e),i=!1},d(e){e&&L(t),r&&r.d(),a&&a.d(e)}}}function vn(e,t,n){let{$$slots:i={},$$scope:r}=t,{loadingBarImage:o}=t,{showLoadingBarLogo:a}=t;return e.$$set=e=>{"loadingBarImage"in e&&n(0,o=e.loadingBarImage),"showLoadingBarLogo"in e&&n(1,a=e.showLoadingBarLogo),"$$scope"in e&&n(2,r=e.$$scope)},[o,a,r,i]}class _n extends ce{constructor(e){super(),le(this,e,vn,gn,l,{loadingBarImage:0,showLoadingBarLogo:1},hn)}}var bn=window.matchMedia||window.webkitMatchmedia||window.mozMatchmedia||window.oMatchmedia;function wn(e){return null!=bn&&bn(e).matches}function Mn(){return"interactive"===document.readyState||"complete"===document.readyState}var An=0,Ln=0;function kn(){An=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Ln=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}kn();var xn=void 0,Tn=void 0;function Vn(){var e,t;switch("orientation"in window.Screen&&(e=window.screen.orientation.type),e){case"portrait-primary":case"portrait-secondary":xn="portrait",Tn=e;break;case"landscape-primary":case"landscape-secondary":xn="landscape",Tn=e;break;default:switch(!0){case wn("(orientation:portrait)"):xn="portrait";break;case wn("(orientation:landscape)"):case An>Ln:xn="landscape";break;default:xn="portrait"}Tn=void 0}if(Mn()){switch(document.body.classList.remove("Portrait","Landscape","Portrait-primary","Portrait-secondary","Landscape-primary","Landscape-secondary"),xn){case"portrait":document.body.classList.add("Portrait");break;case"landscape":document.body.classList.add("Landscape")}null!=Tn&&document.body.classList.add((t=Tn)[0].toUpperCase()+t.slice(1))}}Vn(),Mn()||window.addEventListener("DOMContentLoaded",Vn);var Dn,Sn=An,Cn=Ln,En=xn,Yn=Tn;function On(){Sn=An,Cn=Ln,En=xn,Yn=Tn}function Pn(){Mn()&&(Sn===An&&Cn===Ln||document.body.dispatchEvent(new Event("viewportchanged",{bubbles:!0,cancelable:!0})),En===xn&&Yn===Tn||document.body.dispatchEvent(new Event("orientationchangeend",{bubbles:!0,cancelable:!0})))}var In=0;function Rn(){clearInterval(Dn),Dn=void 0,In=0}function jn(){kn(),Vn(),null!=Dn&&(Rn(),Pn(),On()),Sn===An&&Cn===Ln?Dn=setInterval((function(){kn(),Sn===An&&Cn===Ln&&(In+=1)<=10||(Rn(),Vn(),Pn(),On())}),100):(Pn(),On())}window.addEventListener("orientationchange",(function(){setTimeout(jn,10)})),window.addEventListener("resize",jn),"orientation"in screen&&screen.orientation.addEventListener("change",(function(){setTimeout(jn,10)}));var Hn={get Width(){return An},get Height(){return Ln},get Orientation(){return xn},get detailledOrientation(){return Tn}};function Nn(e){M(e,"svelte-1d1dgg1","#live-cat-library *,#live-cat-library :before,#live-cat-library :after{box-sizing:border-box;touch-action:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}#live-cat-library.svelte-1d1dgg1{-ms-overflow-style:scrollbar;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#000;font-family:Source Han Sans CN,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;height:100%;position:absolute;text-rendering:optimizeLegibility;transform-origin:top left;width:100%;z-index:99999}")}function Fn(e){let t,n,i,r;const o=e[4].default,a=p(o,e,e[3],null);return{c(){t=k("div"),a&&a.c(),E(t,"id","live-cat-library"),E(t,"class","svelte-1d1dgg1")},m(o,s){A(o,t,s),a&&a.m(t,null),e[6](t),n=!0,i||(r=S(window,"orientationchangeend",e[5]),i=!0)},p(e,[t]){a&&a.p&&(!n||8&t)&&y(a,o,e,e[3],n?m(o,e[3],t,null):g(e[3]),null)},i(e){n||(te(a,e),n=!0)},o(e){ne(a,e),n=!1},d(n){n&&L(t),a&&a.d(n),e[6](null),i=!1,r()}}}function Bn(e,t,n){let i,{$$slots:r={},$$scope:o}=t,{host:a}=t;const s=()=>{Hn.Orientation&&Tt.set(Hn.Orientation)};return s(),H((()=>{const e=new ResizeObserver((()=>{n(0,i.style.width=`${a.clientWidth}px`,i),n(0,i.style.height=`${a.clientHeight}px`,i)}));return e.observe(a),()=>e.unobserve(a)})),e.$$set=e=>{"host"in e&&n(2,a=e.host),"$$scope"in e&&n(3,o=e.$$scope)},[i,s,a,o,r,()=>s(),function(e){F[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}class zn extends ce{constructor(e){super(),le(this,e,Bn,Fn,l,{host:2},Nn)}}function Un(e){M(e,"svelte-6o8tjg",".loading-container.svelte-6o8tjg{font-size:1.8em;height:100%;position:absolute;width:100%}.loading-container.svelte-6o8tjg,.loading-content.svelte-6o8tjg{align-items:center;color:#fff;display:flex;justify-content:center}.loading-content.svelte-6o8tjg{flex-direction:column}")}function Wn(e){let n,i;return n=new sn({}),{c(){oe(n.$$.fragment)},m(e,t){ae(n,e,t),i=!0},p:t,i(e){i||(te(n.$$.fragment,e),i=!0)},o(e){ne(n.$$.fragment,e),i=!1},d(e){se(n,e)}}}function Kn(e){let n,i,r,o;return n=new _t({}),r=new sn({}),{c(){oe(n.$$.fragment),i=V(),oe(r.$$.fragment)},m(e,t){ae(n,e,t),A(e,i,t),ae(r,e,t),o=!0},p:t,i(e){o||(te(n.$$.fragment,e),te(r.$$.fragment,e),o=!0)},o(e){ne(n.$$.fragment,e),ne(r.$$.fragment,e),o=!1},d(e){se(n,e),e&&L(i),se(r,e)}}}function Gn(e){let t,n,i,r;return t=new en({props:{loadingImage:e[1]}}),i=new sn({}),{c(){oe(t.$$.fragment),n=V(),oe(i.$$.fragment)},m(e,o){ae(t,e,o),A(e,n,o),ae(i,e,o),r=!0},p(e,n){const i={};2&n&&(i.loadingImage=e[1]),t.$set(i)},i(e){r||(te(t.$$.fragment,e),te(i.$$.fragment,e),r=!0)},o(e){ne(t.$$.fragment,e),ne(i.$$.fragment,e),r=!1},d(e){se(t,e),e&&L(n),se(i,e)}}}function Zn(e){let t,n;return t=new _n({props:{loadingBarImage:e[3],showLoadingBarLogo:e[5],$$slots:{default:[Jn]},$$scope:{ctx:e}}}),{c(){oe(t.$$.fragment)},m(e,i){ae(t,e,i),n=!0},p(e,n){const i={};8&n&&(i.loadingBarImage=e[3]),32&n&&(i.showLoadingBarLogo=e[5]),1024&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(te(t.$$.fragment,e),n=!0)},o(e){ne(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function Jn(e){let t,n;return t=new sn({}),{c(){oe(t.$$.fragment)},m(e,i){ae(t,e,i),n=!0},i(e){n||(te(t.$$.fragment,e),n=!0)},o(e){ne(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function Xn(e){let t,n;return t=new Zt({props:{hasLoadingBgImage:!!e[2]}}),{c(){oe(t.$$.fragment)},m(e,i){ae(t,e,i),n=!0},p(e,n){const i={};4&n&&(i.hasLoadingBgImage=!!e[2]),t.$set(i)},i(e){n||(te(t.$$.fragment,e),n=!0)},o(e){ne(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function Qn(e){let t,n,i,r,o,a;const s=[Zn,Gn,Kn,Wn],l=[];function c(e,t){return e[6]?0:e[1]?1:e[4]?2:3}i=c(e),r=l[i]=s[i](e);let u=!e[8]&&Xn(e);return{c(){t=k("div"),n=k("div"),r.c(),o=V(),u&&u.c(),E(n,"class","loading-content svelte-6o8tjg"),P(n,"height",e[1]?"auto":e[4]?"40%":"initial"),E(t,"class","loading-container svelte-6o8tjg"),P(t,"background",e[7])},m(e,r){A(e,t,r),w(t,n),l[i].m(n,null),w(n,o),u&&u.m(n,null),a=!0},p(e,d){let h=i;i=c(e),i===h?l[i].p(e,d):(q(),ne(l[h],1,1,(()=>{l[h]=null})),ee(),r=l[i],r?r.p(e,d):(r=l[i]=s[i](e),r.c()),te(r,1),r.m(n,o)),e[8]?u&&(q(),ne(u,1,1